chunk-KRTWMFYD.js 102 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126
  1. import {
  2. __esm,
  3. __export
  4. } from "./chunk-AC2VUBZ6.js";
  5. // node_modules/tslib/tslib.es6.js
  6. function __extends(d, b) {
  7. if (typeof b !== "function" && b !== null)
  8. throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
  9. extendStatics(d, b);
  10. function __() {
  11. this.constructor = d;
  12. }
  13. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  14. }
  15. function __rest(s, e) {
  16. var t = {};
  17. for (var p in s)
  18. if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
  19. t[p] = s[p];
  20. if (s != null && typeof Object.getOwnPropertySymbols === "function")
  21. for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
  22. if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
  23. t[p[i]] = s[p[i]];
  24. }
  25. return t;
  26. }
  27. function __awaiter(thisArg, _arguments, P, generator) {
  28. function adopt(value) {
  29. return value instanceof P ? value : new P(function(resolve) {
  30. resolve(value);
  31. });
  32. }
  33. return new (P || (P = Promise))(function(resolve, reject) {
  34. function fulfilled(value) {
  35. try {
  36. step(generator.next(value));
  37. } catch (e) {
  38. reject(e);
  39. }
  40. }
  41. function rejected(value) {
  42. try {
  43. step(generator["throw"](value));
  44. } catch (e) {
  45. reject(e);
  46. }
  47. }
  48. function step(result) {
  49. result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
  50. }
  51. step((generator = generator.apply(thisArg, _arguments || [])).next());
  52. });
  53. }
  54. function __generator(thisArg, body) {
  55. var _ = { label: 0, sent: function() {
  56. if (t[0] & 1)
  57. throw t[1];
  58. return t[1];
  59. }, trys: [], ops: [] }, f, y, t, g;
  60. return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
  61. return this;
  62. }), g;
  63. function verb(n) {
  64. return function(v) {
  65. return step([n, v]);
  66. };
  67. }
  68. function step(op) {
  69. if (f)
  70. throw new TypeError("Generator is already executing.");
  71. while (g && (g = 0, op[0] && (_ = 0)), _)
  72. try {
  73. if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
  74. return t;
  75. if (y = 0, t)
  76. op = [op[0] & 2, t.value];
  77. switch (op[0]) {
  78. case 0:
  79. case 1:
  80. t = op;
  81. break;
  82. case 4:
  83. _.label++;
  84. return { value: op[1], done: false };
  85. case 5:
  86. _.label++;
  87. y = op[1];
  88. op = [0];
  89. continue;
  90. case 7:
  91. op = _.ops.pop();
  92. _.trys.pop();
  93. continue;
  94. default:
  95. if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
  96. _ = 0;
  97. continue;
  98. }
  99. if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
  100. _.label = op[1];
  101. break;
  102. }
  103. if (op[0] === 6 && _.label < t[1]) {
  104. _.label = t[1];
  105. t = op;
  106. break;
  107. }
  108. if (t && _.label < t[2]) {
  109. _.label = t[2];
  110. _.ops.push(op);
  111. break;
  112. }
  113. if (t[2])
  114. _.ops.pop();
  115. _.trys.pop();
  116. continue;
  117. }
  118. op = body.call(thisArg, _);
  119. } catch (e) {
  120. op = [6, e];
  121. y = 0;
  122. } finally {
  123. f = t = 0;
  124. }
  125. if (op[0] & 5)
  126. throw op[1];
  127. return { value: op[0] ? op[1] : void 0, done: true };
  128. }
  129. }
  130. function __values(o) {
  131. var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
  132. if (m)
  133. return m.call(o);
  134. if (o && typeof o.length === "number")
  135. return {
  136. next: function() {
  137. if (o && i >= o.length)
  138. o = void 0;
  139. return { value: o && o[i++], done: !o };
  140. }
  141. };
  142. throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
  143. }
  144. function __read(o, n) {
  145. var m = typeof Symbol === "function" && o[Symbol.iterator];
  146. if (!m)
  147. return o;
  148. var i = m.call(o), r, ar = [], e;
  149. try {
  150. while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
  151. ar.push(r.value);
  152. } catch (error) {
  153. e = { error };
  154. } finally {
  155. try {
  156. if (r && !r.done && (m = i["return"]))
  157. m.call(i);
  158. } finally {
  159. if (e)
  160. throw e.error;
  161. }
  162. }
  163. return ar;
  164. }
  165. function __spreadArrays() {
  166. for (var s = 0, i = 0, il = arguments.length; i < il; i++)
  167. s += arguments[i].length;
  168. for (var r = Array(s), k = 0, i = 0; i < il; i++)
  169. for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
  170. r[k] = a[j];
  171. return r;
  172. }
  173. function __spreadArray(to, from, pack) {
  174. if (pack || arguments.length === 2)
  175. for (var i = 0, l = from.length, ar; i < l; i++) {
  176. if (ar || !(i in from)) {
  177. if (!ar)
  178. ar = Array.prototype.slice.call(from, 0, i);
  179. ar[i] = from[i];
  180. }
  181. }
  182. return to.concat(ar || Array.prototype.slice.call(from));
  183. }
  184. var extendStatics, __assign;
  185. var init_tslib_es6 = __esm({
  186. "node_modules/tslib/tslib.es6.js"() {
  187. extendStatics = function(d, b) {
  188. extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
  189. d2.__proto__ = b2;
  190. } || function(d2, b2) {
  191. for (var p in b2)
  192. if (Object.prototype.hasOwnProperty.call(b2, p))
  193. d2[p] = b2[p];
  194. };
  195. return extendStatics(d, b);
  196. };
  197. __assign = function() {
  198. __assign = Object.assign || function __assign2(t) {
  199. for (var s, i = 1, n = arguments.length; i < n; i++) {
  200. s = arguments[i];
  201. for (var p in s)
  202. if (Object.prototype.hasOwnProperty.call(s, p))
  203. t[p] = s[p];
  204. }
  205. return t;
  206. };
  207. return __assign.apply(this, arguments);
  208. };
  209. }
  210. });
  211. // node_modules/@antv/util/esm/is-nil.js
  212. var isNil, is_nil_default;
  213. var init_is_nil = __esm({
  214. "node_modules/@antv/util/esm/is-nil.js"() {
  215. isNil = function(value) {
  216. return value === null || value === void 0;
  217. };
  218. is_nil_default = isNil;
  219. }
  220. });
  221. // node_modules/@antv/util/esm/is-object.js
  222. var is_object_default;
  223. var init_is_object = __esm({
  224. "node_modules/@antv/util/esm/is-object.js"() {
  225. is_object_default = function(value) {
  226. var type = typeof value;
  227. return value !== null && type === "object" || type === "function";
  228. };
  229. }
  230. });
  231. // node_modules/@antv/util/esm/is-type.js
  232. var toString, isType, is_type_default;
  233. var init_is_type = __esm({
  234. "node_modules/@antv/util/esm/is-type.js"() {
  235. toString = {}.toString;
  236. isType = function(value, type) {
  237. return toString.call(value) === "[object " + type + "]";
  238. };
  239. is_type_default = isType;
  240. }
  241. });
  242. // node_modules/@antv/util/esm/is-array.js
  243. var is_array_default;
  244. var init_is_array = __esm({
  245. "node_modules/@antv/util/esm/is-array.js"() {
  246. init_is_type();
  247. is_array_default = function(value) {
  248. return Array.isArray ? Array.isArray(value) : is_type_default(value, "Array");
  249. };
  250. }
  251. });
  252. // node_modules/@antv/util/esm/each.js
  253. function each(elements, func) {
  254. if (!elements) {
  255. return;
  256. }
  257. var rst;
  258. if (is_array_default(elements)) {
  259. for (var i = 0, len3 = elements.length; i < len3; i++) {
  260. rst = func(elements[i], i);
  261. if (rst === false) {
  262. break;
  263. }
  264. }
  265. } else if (is_object_default(elements)) {
  266. for (var k in elements) {
  267. if (elements.hasOwnProperty(k)) {
  268. rst = func(elements[k], k);
  269. if (rst === false) {
  270. break;
  271. }
  272. }
  273. }
  274. }
  275. }
  276. var each_default;
  277. var init_each = __esm({
  278. "node_modules/@antv/util/esm/each.js"() {
  279. init_is_array();
  280. init_is_object();
  281. each_default = each;
  282. }
  283. });
  284. // node_modules/@antv/util/esm/is-object-like.js
  285. var isObjectLike, is_object_like_default;
  286. var init_is_object_like = __esm({
  287. "node_modules/@antv/util/esm/is-object-like.js"() {
  288. isObjectLike = function(value) {
  289. return typeof value === "object" && value !== null;
  290. };
  291. is_object_like_default = isObjectLike;
  292. }
  293. });
  294. // node_modules/@antv/util/esm/is-plain-object.js
  295. var isPlainObject, is_plain_object_default;
  296. var init_is_plain_object = __esm({
  297. "node_modules/@antv/util/esm/is-plain-object.js"() {
  298. init_is_object_like();
  299. init_is_type();
  300. isPlainObject = function(value) {
  301. if (!is_object_like_default(value) || !is_type_default(value, "Object")) {
  302. return false;
  303. }
  304. if (Object.getPrototypeOf(value) === null) {
  305. return true;
  306. }
  307. var proto = value;
  308. while (Object.getPrototypeOf(proto) !== null) {
  309. proto = Object.getPrototypeOf(proto);
  310. }
  311. return Object.getPrototypeOf(value) === proto;
  312. };
  313. is_plain_object_default = isPlainObject;
  314. }
  315. });
  316. // node_modules/@antv/util/esm/reduce.js
  317. var reduce, reduce_default;
  318. var init_reduce = __esm({
  319. "node_modules/@antv/util/esm/reduce.js"() {
  320. init_each();
  321. init_is_array();
  322. init_is_plain_object();
  323. reduce = function(arr, fn, init) {
  324. if (!is_array_default(arr) && !is_plain_object_default(arr)) {
  325. return arr;
  326. }
  327. var result = init;
  328. each_default(arr, function(data, i) {
  329. result = fn(result, data, i);
  330. });
  331. return result;
  332. };
  333. reduce_default = reduce;
  334. }
  335. });
  336. // node_modules/@antv/util/esm/is-string.js
  337. var is_string_default;
  338. var init_is_string = __esm({
  339. "node_modules/@antv/util/esm/is-string.js"() {
  340. init_is_type();
  341. is_string_default = function(str4) {
  342. return is_type_default(str4, "String");
  343. };
  344. }
  345. });
  346. // node_modules/@antv/util/esm/is-number.js
  347. var isNumber, is_number_default;
  348. var init_is_number = __esm({
  349. "node_modules/@antv/util/esm/is-number.js"() {
  350. init_is_type();
  351. isNumber = function(value) {
  352. return is_type_default(value, "Number");
  353. };
  354. is_number_default = isNumber;
  355. }
  356. });
  357. // node_modules/@antv/util/esm/is-function.js
  358. var is_function_default;
  359. var init_is_function = __esm({
  360. "node_modules/@antv/util/esm/is-function.js"() {
  361. init_is_type();
  362. is_function_default = function(value) {
  363. return is_type_default(value, "Function");
  364. };
  365. }
  366. });
  367. // node_modules/@antv/util/esm/values.js
  368. var values, values_default;
  369. var init_values = __esm({
  370. "node_modules/@antv/util/esm/values.js"() {
  371. init_each();
  372. init_is_function();
  373. values = Object.values ? function(obj) {
  374. return Object.values(obj);
  375. } : function(obj) {
  376. var result = [];
  377. each_default(obj, function(value, key) {
  378. if (!(is_function_default(obj) && key === "prototype")) {
  379. result.push(value);
  380. }
  381. });
  382. return result;
  383. };
  384. values_default = values;
  385. }
  386. });
  387. // node_modules/@antv/util/esm/mix.js
  388. function _mix(dist3, obj) {
  389. for (var key in obj) {
  390. if (obj.hasOwnProperty(key) && key !== "constructor" && obj[key] !== void 0) {
  391. dist3[key] = obj[key];
  392. }
  393. }
  394. }
  395. function mix(dist3, src1, src2, src3) {
  396. if (src1)
  397. _mix(dist3, src1);
  398. if (src2)
  399. _mix(dist3, src2);
  400. if (src3)
  401. _mix(dist3, src3);
  402. return dist3;
  403. }
  404. var init_mix = __esm({
  405. "node_modules/@antv/util/esm/mix.js"() {
  406. }
  407. });
  408. // node_modules/@antv/util/esm/memoize.js
  409. var memoize_default;
  410. var init_memoize = __esm({
  411. "node_modules/@antv/util/esm/memoize.js"() {
  412. init_is_function();
  413. memoize_default = function(f, resolver) {
  414. if (!is_function_default(f)) {
  415. throw new TypeError("Expected a function");
  416. }
  417. var memoized = function() {
  418. var args = [];
  419. for (var _i = 0; _i < arguments.length; _i++) {
  420. args[_i] = arguments[_i];
  421. }
  422. var key = resolver ? resolver.apply(this, args) : args[0];
  423. var cache = memoized.cache;
  424. if (cache.has(key)) {
  425. return cache.get(key);
  426. }
  427. var result = f.apply(this, args);
  428. cache.set(key, result);
  429. return result;
  430. };
  431. memoized.cache = /* @__PURE__ */ new Map();
  432. return memoized;
  433. };
  434. }
  435. });
  436. // node_modules/@antv/util/esm/deep-mix.js
  437. function _deepMix(dist3, src, level, maxLevel) {
  438. level = level || 0;
  439. maxLevel = maxLevel || MAX_MIX_LEVEL;
  440. for (var key in src) {
  441. if (src.hasOwnProperty(key)) {
  442. var value = src[key];
  443. if (value !== null && is_plain_object_default(value)) {
  444. if (!is_plain_object_default(dist3[key])) {
  445. dist3[key] = {};
  446. }
  447. if (level < maxLevel) {
  448. _deepMix(dist3[key], value, level + 1, maxLevel);
  449. } else {
  450. dist3[key] = src[key];
  451. }
  452. } else if (is_array_default(value)) {
  453. dist3[key] = [];
  454. dist3[key] = dist3[key].concat(value);
  455. } else if (value !== void 0) {
  456. dist3[key] = value;
  457. }
  458. }
  459. }
  460. }
  461. var MAX_MIX_LEVEL, deepMix, deep_mix_default;
  462. var init_deep_mix = __esm({
  463. "node_modules/@antv/util/esm/deep-mix.js"() {
  464. init_is_array();
  465. init_is_plain_object();
  466. MAX_MIX_LEVEL = 5;
  467. deepMix = function(rst) {
  468. var args = [];
  469. for (var _i = 1; _i < arguments.length; _i++) {
  470. args[_i - 1] = arguments[_i];
  471. }
  472. for (var i = 0; i < args.length; i += 1) {
  473. _deepMix(rst, args[i]);
  474. }
  475. return rst;
  476. };
  477. deep_mix_default = deepMix;
  478. }
  479. });
  480. // node_modules/@antv/util/esm/get.js
  481. var get_default;
  482. var init_get = __esm({
  483. "node_modules/@antv/util/esm/get.js"() {
  484. init_is_string();
  485. get_default = function(obj, key, defaultValue) {
  486. var p = 0;
  487. var keyArr = is_string_default(key) ? key.split(".") : key;
  488. while (obj && p < keyArr.length) {
  489. obj = obj[keyArr[p++]];
  490. }
  491. return obj === void 0 || p < keyArr.length ? defaultValue : obj;
  492. };
  493. }
  494. });
  495. // node_modules/@antv/util/esm/is-array-like.js
  496. var isArrayLike, is_array_like_default;
  497. var init_is_array_like = __esm({
  498. "node_modules/@antv/util/esm/is-array-like.js"() {
  499. isArrayLike = function(value) {
  500. return value !== null && typeof value !== "function" && isFinite(value.length);
  501. };
  502. is_array_like_default = isArrayLike;
  503. }
  504. });
  505. // node_modules/@antv/util/esm/contains.js
  506. var contains, contains_default;
  507. var init_contains = __esm({
  508. "node_modules/@antv/util/esm/contains.js"() {
  509. init_is_array_like();
  510. contains = function(arr, value) {
  511. if (!is_array_like_default(arr)) {
  512. return false;
  513. }
  514. return arr.indexOf(value) > -1;
  515. };
  516. contains_default = contains;
  517. }
  518. });
  519. // node_modules/@antv/util/esm/filter.js
  520. var filter, filter_default;
  521. var init_filter = __esm({
  522. "node_modules/@antv/util/esm/filter.js"() {
  523. init_is_array_like();
  524. filter = function(arr, func) {
  525. if (!is_array_like_default(arr)) {
  526. return arr;
  527. }
  528. var result = [];
  529. for (var index = 0; index < arr.length; index++) {
  530. var value = arr[index];
  531. if (func(value, index)) {
  532. result.push(value);
  533. }
  534. }
  535. return result;
  536. };
  537. filter_default = filter;
  538. }
  539. });
  540. // node_modules/@antv/util/esm/difference.js
  541. var difference, difference_default;
  542. var init_difference = __esm({
  543. "node_modules/@antv/util/esm/difference.js"() {
  544. init_filter();
  545. init_contains();
  546. difference = function(arr, values2) {
  547. if (values2 === void 0) {
  548. values2 = [];
  549. }
  550. return filter_default(arr, function(value) {
  551. return !contains_default(values2, value);
  552. });
  553. };
  554. difference_default = difference;
  555. }
  556. });
  557. // node_modules/@antv/util/esm/keys.js
  558. var keys, keys_default;
  559. var init_keys = __esm({
  560. "node_modules/@antv/util/esm/keys.js"() {
  561. init_each();
  562. init_is_function();
  563. keys = Object.keys ? function(obj) {
  564. return Object.keys(obj);
  565. } : function(obj) {
  566. var result = [];
  567. each_default(obj, function(value, key) {
  568. if (!(is_function_default(obj) && key === "prototype")) {
  569. result.push(key);
  570. }
  571. });
  572. return result;
  573. };
  574. keys_default = keys;
  575. }
  576. });
  577. // node_modules/@antv/util/esm/is-match.js
  578. function isMatch(obj, attrs) {
  579. var _keys = keys_default(attrs);
  580. var length5 = _keys.length;
  581. if (is_nil_default(obj))
  582. return !length5;
  583. for (var i = 0; i < length5; i += 1) {
  584. var key = _keys[i];
  585. if (attrs[key] !== obj[key] || !(key in obj)) {
  586. return false;
  587. }
  588. }
  589. return true;
  590. }
  591. var is_match_default;
  592. var init_is_match = __esm({
  593. "node_modules/@antv/util/esm/is-match.js"() {
  594. init_is_nil();
  595. init_keys();
  596. is_match_default = isMatch;
  597. }
  598. });
  599. // node_modules/@antv/util/esm/find.js
  600. function find(arr, predicate) {
  601. if (!is_array_default(arr))
  602. return null;
  603. var _predicate;
  604. if (is_function_default(predicate)) {
  605. _predicate = predicate;
  606. }
  607. if (is_plain_object_default(predicate)) {
  608. _predicate = function(a) {
  609. return is_match_default(a, predicate);
  610. };
  611. }
  612. if (_predicate) {
  613. for (var i = 0; i < arr.length; i += 1) {
  614. if (_predicate(arr[i])) {
  615. return arr[i];
  616. }
  617. }
  618. }
  619. return null;
  620. }
  621. var find_default;
  622. var init_find = __esm({
  623. "node_modules/@antv/util/esm/find.js"() {
  624. init_is_function();
  625. init_is_match();
  626. init_is_array();
  627. init_is_plain_object();
  628. find_default = find;
  629. }
  630. });
  631. // node_modules/@antv/util/esm/find-index.js
  632. function findIndex(arr, predicate, fromIndex) {
  633. if (fromIndex === void 0) {
  634. fromIndex = 0;
  635. }
  636. for (var i = fromIndex; i < arr.length; i++) {
  637. if (predicate(arr[i], i)) {
  638. return i;
  639. }
  640. }
  641. return -1;
  642. }
  643. var find_index_default;
  644. var init_find_index = __esm({
  645. "node_modules/@antv/util/esm/find-index.js"() {
  646. find_index_default = findIndex;
  647. }
  648. });
  649. // node_modules/@antv/util/esm/first-value.js
  650. var firstValue, first_value_default;
  651. var init_first_value = __esm({
  652. "node_modules/@antv/util/esm/first-value.js"() {
  653. init_is_nil();
  654. init_is_array();
  655. firstValue = function(data, name) {
  656. var rst = null;
  657. for (var i = 0; i < data.length; i++) {
  658. var obj = data[i];
  659. var value = obj[name];
  660. if (!is_nil_default(value)) {
  661. if (is_array_default(value)) {
  662. rst = value[0];
  663. } else {
  664. rst = value;
  665. }
  666. break;
  667. }
  668. }
  669. return rst;
  670. };
  671. first_value_default = firstValue;
  672. }
  673. });
  674. // node_modules/@antv/util/esm/flatten.js
  675. var flatten, flatten_default;
  676. var init_flatten = __esm({
  677. "node_modules/@antv/util/esm/flatten.js"() {
  678. init_is_array();
  679. flatten = function(arr) {
  680. if (!is_array_default(arr)) {
  681. return [];
  682. }
  683. var rst = [];
  684. for (var i = 0; i < arr.length; i++) {
  685. rst = rst.concat(arr[i]);
  686. }
  687. return rst;
  688. };
  689. flatten_default = flatten;
  690. }
  691. });
  692. // node_modules/@antv/util/esm/flatten-deep.js
  693. var flattenDeep, flatten_deep_default;
  694. var init_flatten_deep = __esm({
  695. "node_modules/@antv/util/esm/flatten-deep.js"() {
  696. init_is_array();
  697. flattenDeep = function(arr, result) {
  698. if (result === void 0) {
  699. result = [];
  700. }
  701. if (!is_array_default(arr)) {
  702. result.push(arr);
  703. } else {
  704. for (var i = 0; i < arr.length; i += 1) {
  705. flattenDeep(arr[i], result);
  706. }
  707. }
  708. return result;
  709. };
  710. flatten_deep_default = flattenDeep;
  711. }
  712. });
  713. // node_modules/@antv/util/esm/max.js
  714. var max_default;
  715. var init_max = __esm({
  716. "node_modules/@antv/util/esm/max.js"() {
  717. init_is_array();
  718. max_default = function(arr) {
  719. if (!is_array_default(arr)) {
  720. return void 0;
  721. }
  722. return arr.reduce(function(prev, curr) {
  723. return Math.max(prev, curr);
  724. }, arr[0]);
  725. };
  726. }
  727. });
  728. // node_modules/@antv/util/esm/min.js
  729. var min_default;
  730. var init_min = __esm({
  731. "node_modules/@antv/util/esm/min.js"() {
  732. init_is_array();
  733. min_default = function(arr) {
  734. if (!is_array_default(arr)) {
  735. return void 0;
  736. }
  737. return arr.reduce(function(prev, curr) {
  738. return Math.min(prev, curr);
  739. }, arr[0]);
  740. };
  741. }
  742. });
  743. // node_modules/@antv/util/esm/get-range.js
  744. var getRange, get_range_default;
  745. var init_get_range = __esm({
  746. "node_modules/@antv/util/esm/get-range.js"() {
  747. init_is_array();
  748. init_max();
  749. init_min();
  750. getRange = function(values2) {
  751. var filterValues = values2.filter(function(v) {
  752. return !isNaN(v);
  753. });
  754. if (!filterValues.length) {
  755. return {
  756. min: 0,
  757. max: 0
  758. };
  759. }
  760. if (is_array_default(values2[0])) {
  761. var tmp = [];
  762. for (var i = 0; i < values2.length; i++) {
  763. tmp = tmp.concat(values2[i]);
  764. }
  765. filterValues = tmp;
  766. }
  767. var max3 = max_default(filterValues);
  768. var min3 = min_default(filterValues);
  769. return {
  770. min: min3,
  771. max: max3
  772. };
  773. };
  774. get_range_default = getRange;
  775. }
  776. });
  777. // node_modules/@antv/util/esm/pull.js
  778. var arrPrototype, splice, indexOf, pull, pull_default;
  779. var init_pull = __esm({
  780. "node_modules/@antv/util/esm/pull.js"() {
  781. arrPrototype = Array.prototype;
  782. splice = arrPrototype.splice;
  783. indexOf = arrPrototype.indexOf;
  784. pull = function(arr) {
  785. var values2 = [];
  786. for (var _i = 1; _i < arguments.length; _i++) {
  787. values2[_i - 1] = arguments[_i];
  788. }
  789. for (var i = 0; i < values2.length; i++) {
  790. var value = values2[i];
  791. var fromIndex = -1;
  792. while ((fromIndex = indexOf.call(arr, value)) > -1) {
  793. splice.call(arr, fromIndex, 1);
  794. }
  795. }
  796. return arr;
  797. };
  798. pull_default = pull;
  799. }
  800. });
  801. // node_modules/@antv/util/esm/pull-at.js
  802. var splice2, pullAt, pull_at_default;
  803. var init_pull_at = __esm({
  804. "node_modules/@antv/util/esm/pull-at.js"() {
  805. init_is_array_like();
  806. splice2 = Array.prototype.splice;
  807. pullAt = function pullAt2(arr, indexes) {
  808. if (!is_array_like_default(arr)) {
  809. return [];
  810. }
  811. var length5 = arr ? indexes.length : 0;
  812. var last2 = length5 - 1;
  813. while (length5--) {
  814. var previous = void 0;
  815. var index = indexes[length5];
  816. if (length5 === last2 || index !== previous) {
  817. previous = index;
  818. splice2.call(arr, index, 1);
  819. }
  820. }
  821. return arr;
  822. };
  823. pull_at_default = pullAt;
  824. }
  825. });
  826. // node_modules/@antv/util/esm/remove.js
  827. var remove, remove_default;
  828. var init_remove = __esm({
  829. "node_modules/@antv/util/esm/remove.js"() {
  830. init_is_array_like();
  831. init_pull_at();
  832. remove = function(arr, predicate) {
  833. var result = [];
  834. if (!is_array_like_default(arr)) {
  835. return result;
  836. }
  837. var i = -1;
  838. var indexes = [];
  839. var length5 = arr.length;
  840. while (++i < length5) {
  841. var value = arr[i];
  842. if (predicate(value, i, arr)) {
  843. result.push(value);
  844. indexes.push(i);
  845. }
  846. }
  847. pull_at_default(arr, indexes);
  848. return result;
  849. };
  850. remove_default = remove;
  851. }
  852. });
  853. // node_modules/@antv/util/esm/sort-by.js
  854. function sortBy(arr, key) {
  855. var comparer;
  856. if (is_function_default(key)) {
  857. comparer = function(a, b) {
  858. return key(a) - key(b);
  859. };
  860. } else {
  861. var keys_1 = [];
  862. if (is_string_default(key)) {
  863. keys_1.push(key);
  864. } else if (is_array_default(key)) {
  865. keys_1 = key;
  866. }
  867. comparer = function(a, b) {
  868. for (var i = 0; i < keys_1.length; i += 1) {
  869. var prop = keys_1[i];
  870. if (a[prop] > b[prop]) {
  871. return 1;
  872. }
  873. if (a[prop] < b[prop]) {
  874. return -1;
  875. }
  876. }
  877. return 0;
  878. };
  879. }
  880. arr.sort(comparer);
  881. return arr;
  882. }
  883. var sort_by_default;
  884. var init_sort_by = __esm({
  885. "node_modules/@antv/util/esm/sort-by.js"() {
  886. init_is_array();
  887. init_is_string();
  888. init_is_function();
  889. sort_by_default = sortBy;
  890. }
  891. });
  892. // node_modules/@antv/util/esm/uniq.js
  893. function uniq(arr, cache) {
  894. if (cache === void 0) {
  895. cache = /* @__PURE__ */ new Map();
  896. }
  897. var r = [];
  898. if (Array.isArray(arr)) {
  899. for (var i = 0, len3 = arr.length; i < len3; i++) {
  900. var item = arr[i];
  901. if (!cache.has(item)) {
  902. r.push(item);
  903. cache.set(item, true);
  904. }
  905. }
  906. }
  907. return r;
  908. }
  909. var init_uniq = __esm({
  910. "node_modules/@antv/util/esm/uniq.js"() {
  911. }
  912. });
  913. // node_modules/@antv/util/esm/union.js
  914. var union, union_default;
  915. var init_union = __esm({
  916. "node_modules/@antv/util/esm/union.js"() {
  917. init_uniq();
  918. union = function() {
  919. var sources = [];
  920. for (var _i = 0; _i < arguments.length; _i++) {
  921. sources[_i] = arguments[_i];
  922. }
  923. return uniq([].concat.apply([], sources));
  924. };
  925. union_default = union;
  926. }
  927. });
  928. // node_modules/@antv/util/esm/values-of-key.js
  929. var values_of_key_default;
  930. var init_values_of_key = __esm({
  931. "node_modules/@antv/util/esm/values-of-key.js"() {
  932. init_is_array();
  933. init_is_nil();
  934. values_of_key_default = function(data, name) {
  935. var rst = [];
  936. var tmpMap = {};
  937. for (var i = 0; i < data.length; i++) {
  938. var obj = data[i];
  939. var value = obj[name];
  940. if (!is_nil_default(value)) {
  941. if (!is_array_default(value)) {
  942. value = [value];
  943. }
  944. for (var j = 0; j < value.length; j++) {
  945. var val = value[j];
  946. if (!tmpMap[val]) {
  947. rst.push(val);
  948. tmpMap[val] = true;
  949. }
  950. }
  951. }
  952. }
  953. return rst;
  954. };
  955. }
  956. });
  957. // node_modules/@antv/util/esm/head.js
  958. function head(o) {
  959. if (is_array_like_default(o)) {
  960. return o[0];
  961. }
  962. return void 0;
  963. }
  964. var init_head = __esm({
  965. "node_modules/@antv/util/esm/head.js"() {
  966. init_is_array_like();
  967. }
  968. });
  969. // node_modules/@antv/util/esm/last.js
  970. function last(o) {
  971. if (is_array_like_default(o)) {
  972. var arr = o;
  973. return arr[arr.length - 1];
  974. }
  975. return void 0;
  976. }
  977. var init_last = __esm({
  978. "node_modules/@antv/util/esm/last.js"() {
  979. init_is_array_like();
  980. }
  981. });
  982. // node_modules/@antv/util/esm/starts-with.js
  983. function startsWith(arr, e) {
  984. return is_array_default(arr) || is_string_default(arr) ? arr[0] === e : false;
  985. }
  986. var starts_with_default;
  987. var init_starts_with = __esm({
  988. "node_modules/@antv/util/esm/starts-with.js"() {
  989. init_is_array();
  990. init_is_string();
  991. starts_with_default = startsWith;
  992. }
  993. });
  994. // node_modules/@antv/util/esm/ends-with.js
  995. function endsWith(arr, e) {
  996. return is_array_default(arr) || is_string_default(arr) ? arr[arr.length - 1] === e : false;
  997. }
  998. var ends_with_default;
  999. var init_ends_with = __esm({
  1000. "node_modules/@antv/util/esm/ends-with.js"() {
  1001. init_is_array();
  1002. init_is_string();
  1003. ends_with_default = endsWith;
  1004. }
  1005. });
  1006. // node_modules/@antv/util/esm/every.js
  1007. var every, every_default;
  1008. var init_every = __esm({
  1009. "node_modules/@antv/util/esm/every.js"() {
  1010. every = function(arr, func) {
  1011. for (var i = 0; i < arr.length; i++) {
  1012. if (!func(arr[i], i))
  1013. return false;
  1014. }
  1015. return true;
  1016. };
  1017. every_default = every;
  1018. }
  1019. });
  1020. // node_modules/@antv/util/esm/some.js
  1021. var some, some_default;
  1022. var init_some = __esm({
  1023. "node_modules/@antv/util/esm/some.js"() {
  1024. some = function(arr, func) {
  1025. for (var i = 0; i < arr.length; i++) {
  1026. if (func(arr[i], i))
  1027. return true;
  1028. }
  1029. return false;
  1030. };
  1031. some_default = some;
  1032. }
  1033. });
  1034. // node_modules/@antv/util/esm/group-by.js
  1035. function groupBy(data, condition) {
  1036. if (!condition || !is_array_default(data)) {
  1037. return {};
  1038. }
  1039. var result = {};
  1040. var predicate = is_function_default(condition) ? condition : function(item2) {
  1041. return item2[condition];
  1042. };
  1043. var key;
  1044. for (var i = 0; i < data.length; i++) {
  1045. var item = data[i];
  1046. key = predicate(item);
  1047. if (hasOwnProperty.call(result, key)) {
  1048. result[key].push(item);
  1049. } else {
  1050. result[key] = [item];
  1051. }
  1052. }
  1053. return result;
  1054. }
  1055. var hasOwnProperty, group_by_default;
  1056. var init_group_by = __esm({
  1057. "node_modules/@antv/util/esm/group-by.js"() {
  1058. init_is_array();
  1059. init_is_function();
  1060. hasOwnProperty = Object.prototype.hasOwnProperty;
  1061. group_by_default = groupBy;
  1062. }
  1063. });
  1064. // node_modules/@antv/util/esm/group-to-map.js
  1065. function groupToMap(data, condition) {
  1066. if (!condition) {
  1067. return {
  1068. 0: data
  1069. };
  1070. }
  1071. if (!is_function_default(condition)) {
  1072. var paramscondition_1 = is_array_default(condition) ? condition : condition.replace(/\s+/g, "").split("*");
  1073. condition = function(row) {
  1074. var unique = "_";
  1075. for (var i = 0, l = paramscondition_1.length; i < l; i++) {
  1076. unique += row[paramscondition_1[i]] && row[paramscondition_1[i]].toString();
  1077. }
  1078. return unique;
  1079. };
  1080. }
  1081. return group_by_default(data, condition);
  1082. }
  1083. var init_group_to_map = __esm({
  1084. "node_modules/@antv/util/esm/group-to-map.js"() {
  1085. init_is_array();
  1086. init_is_function();
  1087. init_group_by();
  1088. }
  1089. });
  1090. // node_modules/@antv/util/esm/group.js
  1091. var group_default;
  1092. var init_group = __esm({
  1093. "node_modules/@antv/util/esm/group.js"() {
  1094. init_group_to_map();
  1095. group_default = function(data, condition) {
  1096. if (!condition) {
  1097. return [data];
  1098. }
  1099. var groups = groupToMap(data, condition);
  1100. var array = [];
  1101. for (var i in groups) {
  1102. array.push(groups[i]);
  1103. }
  1104. return array;
  1105. };
  1106. }
  1107. });
  1108. // node_modules/@antv/util/esm/get-wrap-behavior.js
  1109. function getWrapBehavior(obj, action) {
  1110. return obj["_wrap_" + action];
  1111. }
  1112. var get_wrap_behavior_default;
  1113. var init_get_wrap_behavior = __esm({
  1114. "node_modules/@antv/util/esm/get-wrap-behavior.js"() {
  1115. get_wrap_behavior_default = getWrapBehavior;
  1116. }
  1117. });
  1118. // node_modules/@antv/util/esm/wrap-behavior.js
  1119. function wrapBehavior(obj, action) {
  1120. if (obj["_wrap_" + action]) {
  1121. return obj["_wrap_" + action];
  1122. }
  1123. var method = function(e) {
  1124. obj[action](e);
  1125. };
  1126. obj["_wrap_" + action] = method;
  1127. return method;
  1128. }
  1129. var wrap_behavior_default;
  1130. var init_wrap_behavior = __esm({
  1131. "node_modules/@antv/util/esm/wrap-behavior.js"() {
  1132. wrap_behavior_default = wrapBehavior;
  1133. }
  1134. });
  1135. // node_modules/@antv/util/esm/number2color.js
  1136. function numberToColor(num) {
  1137. var color = numColorCache[num];
  1138. if (!color) {
  1139. var str4 = num.toString(16);
  1140. for (var i = str4.length; i < 6; i++) {
  1141. str4 = "0" + str4;
  1142. }
  1143. color = "#" + str4;
  1144. numColorCache[num] = color;
  1145. }
  1146. return color;
  1147. }
  1148. var numColorCache, number2color_default;
  1149. var init_number2color = __esm({
  1150. "node_modules/@antv/util/esm/number2color.js"() {
  1151. numColorCache = {};
  1152. number2color_default = numberToColor;
  1153. }
  1154. });
  1155. // node_modules/@antv/util/esm/parse-radius.js
  1156. function parseRadius(radius) {
  1157. var r1 = 0, r2 = 0, r3 = 0, r4 = 0;
  1158. if (is_array_default(radius)) {
  1159. if (radius.length === 1) {
  1160. r1 = r2 = r3 = r4 = radius[0];
  1161. } else if (radius.length === 2) {
  1162. r1 = r3 = radius[0];
  1163. r2 = r4 = radius[1];
  1164. } else if (radius.length === 3) {
  1165. r1 = radius[0];
  1166. r2 = r4 = radius[1];
  1167. r3 = radius[2];
  1168. } else {
  1169. r1 = radius[0];
  1170. r2 = radius[1];
  1171. r3 = radius[2];
  1172. r4 = radius[3];
  1173. }
  1174. } else {
  1175. r1 = r2 = r3 = r4 = radius;
  1176. }
  1177. return {
  1178. r1,
  1179. r2,
  1180. r3,
  1181. r4
  1182. };
  1183. }
  1184. var parse_radius_default;
  1185. var init_parse_radius = __esm({
  1186. "node_modules/@antv/util/esm/parse-radius.js"() {
  1187. init_is_array();
  1188. parse_radius_default = parseRadius;
  1189. }
  1190. });
  1191. // node_modules/@antv/util/esm/clamp.js
  1192. var clamp, clamp_default;
  1193. var init_clamp = __esm({
  1194. "node_modules/@antv/util/esm/clamp.js"() {
  1195. clamp = function(a, min3, max3) {
  1196. if (a < min3) {
  1197. return min3;
  1198. } else if (a > max3) {
  1199. return max3;
  1200. }
  1201. return a;
  1202. };
  1203. clamp_default = clamp;
  1204. }
  1205. });
  1206. // node_modules/@antv/util/esm/fixed-base.js
  1207. var fixedBase, fixed_base_default;
  1208. var init_fixed_base = __esm({
  1209. "node_modules/@antv/util/esm/fixed-base.js"() {
  1210. fixedBase = function(v, base) {
  1211. var str4 = base.toString();
  1212. var index = str4.indexOf(".");
  1213. if (index === -1) {
  1214. return Math.round(v);
  1215. }
  1216. var length5 = str4.substr(index + 1).length;
  1217. if (length5 > 20) {
  1218. length5 = 20;
  1219. }
  1220. return parseFloat(v.toFixed(length5));
  1221. };
  1222. fixed_base_default = fixedBase;
  1223. }
  1224. });
  1225. // node_modules/@antv/util/esm/is-decimal.js
  1226. var isDecimal, is_decimal_default;
  1227. var init_is_decimal = __esm({
  1228. "node_modules/@antv/util/esm/is-decimal.js"() {
  1229. init_is_number();
  1230. isDecimal = function(num) {
  1231. return is_number_default(num) && num % 1 !== 0;
  1232. };
  1233. is_decimal_default = isDecimal;
  1234. }
  1235. });
  1236. // node_modules/@antv/util/esm/is-even.js
  1237. var isEven, is_even_default;
  1238. var init_is_even = __esm({
  1239. "node_modules/@antv/util/esm/is-even.js"() {
  1240. init_is_number();
  1241. isEven = function(num) {
  1242. return is_number_default(num) && num % 2 === 0;
  1243. };
  1244. is_even_default = isEven;
  1245. }
  1246. });
  1247. // node_modules/@antv/util/esm/is-integer.js
  1248. var isInteger, is_integer_default;
  1249. var init_is_integer = __esm({
  1250. "node_modules/@antv/util/esm/is-integer.js"() {
  1251. init_is_number();
  1252. isInteger = Number.isInteger ? Number.isInteger : function(num) {
  1253. return is_number_default(num) && num % 1 === 0;
  1254. };
  1255. is_integer_default = isInteger;
  1256. }
  1257. });
  1258. // node_modules/@antv/util/esm/is-negative.js
  1259. var isNegative, is_negative_default;
  1260. var init_is_negative = __esm({
  1261. "node_modules/@antv/util/esm/is-negative.js"() {
  1262. init_is_number();
  1263. isNegative = function(num) {
  1264. return is_number_default(num) && num < 0;
  1265. };
  1266. is_negative_default = isNegative;
  1267. }
  1268. });
  1269. // node_modules/@antv/util/esm/is-number-equal.js
  1270. function isNumberEqual(a, b, precision) {
  1271. if (precision === void 0) {
  1272. precision = PRECISION;
  1273. }
  1274. return Math.abs(a - b) < precision;
  1275. }
  1276. var PRECISION;
  1277. var init_is_number_equal = __esm({
  1278. "node_modules/@antv/util/esm/is-number-equal.js"() {
  1279. PRECISION = 1e-5;
  1280. }
  1281. });
  1282. // node_modules/@antv/util/esm/is-odd.js
  1283. var isOdd, is_odd_default;
  1284. var init_is_odd = __esm({
  1285. "node_modules/@antv/util/esm/is-odd.js"() {
  1286. init_is_number();
  1287. isOdd = function(num) {
  1288. return is_number_default(num) && num % 2 !== 0;
  1289. };
  1290. is_odd_default = isOdd;
  1291. }
  1292. });
  1293. // node_modules/@antv/util/esm/is-positive.js
  1294. var isPositive, is_positive_default;
  1295. var init_is_positive = __esm({
  1296. "node_modules/@antv/util/esm/is-positive.js"() {
  1297. init_is_number();
  1298. isPositive = function(num) {
  1299. return is_number_default(num) && num > 0;
  1300. };
  1301. is_positive_default = isPositive;
  1302. }
  1303. });
  1304. // node_modules/@antv/util/esm/max-by.js
  1305. var max_by_default;
  1306. var init_max_by = __esm({
  1307. "node_modules/@antv/util/esm/max-by.js"() {
  1308. init_is_array();
  1309. init_is_function();
  1310. max_by_default = function(arr, fn) {
  1311. if (!is_array_default(arr)) {
  1312. return void 0;
  1313. }
  1314. var maxItem;
  1315. var max3 = -Infinity;
  1316. for (var i = 0; i < arr.length; i++) {
  1317. var item = arr[i];
  1318. var v = is_function_default(fn) ? fn(item) : item[fn];
  1319. if (v > max3) {
  1320. maxItem = item;
  1321. max3 = v;
  1322. }
  1323. }
  1324. return maxItem;
  1325. };
  1326. }
  1327. });
  1328. // node_modules/@antv/util/esm/min-by.js
  1329. var min_by_default;
  1330. var init_min_by = __esm({
  1331. "node_modules/@antv/util/esm/min-by.js"() {
  1332. init_is_array();
  1333. init_is_function();
  1334. min_by_default = function(arr, fn) {
  1335. if (!is_array_default(arr)) {
  1336. return void 0;
  1337. }
  1338. var minItem;
  1339. var min3 = Infinity;
  1340. for (var i = 0; i < arr.length; i++) {
  1341. var item = arr[i];
  1342. var v = is_function_default(fn) ? fn(item) : item[fn];
  1343. if (v < min3) {
  1344. minItem = item;
  1345. min3 = v;
  1346. }
  1347. }
  1348. return minItem;
  1349. };
  1350. }
  1351. });
  1352. // node_modules/@antv/util/esm/mod.js
  1353. var mod, mod_default;
  1354. var init_mod = __esm({
  1355. "node_modules/@antv/util/esm/mod.js"() {
  1356. mod = function(n, m) {
  1357. return (n % m + m) % m;
  1358. };
  1359. mod_default = mod;
  1360. }
  1361. });
  1362. // node_modules/@antv/util/esm/to-degree.js
  1363. var DEGREE, toDegree, to_degree_default;
  1364. var init_to_degree = __esm({
  1365. "node_modules/@antv/util/esm/to-degree.js"() {
  1366. DEGREE = 180 / Math.PI;
  1367. toDegree = function(radian) {
  1368. return DEGREE * radian;
  1369. };
  1370. to_degree_default = toDegree;
  1371. }
  1372. });
  1373. // node_modules/@antv/util/esm/to-integer.js
  1374. var to_integer_default;
  1375. var init_to_integer = __esm({
  1376. "node_modules/@antv/util/esm/to-integer.js"() {
  1377. to_integer_default = parseInt;
  1378. }
  1379. });
  1380. // node_modules/@antv/util/esm/to-radian.js
  1381. var RADIAN, toRadian, to_radian_default;
  1382. var init_to_radian = __esm({
  1383. "node_modules/@antv/util/esm/to-radian.js"() {
  1384. RADIAN = Math.PI / 180;
  1385. toRadian = function(degree2) {
  1386. return RADIAN * degree2;
  1387. };
  1388. to_radian_default = toRadian;
  1389. }
  1390. });
  1391. // node_modules/@antv/util/esm/for-in.js
  1392. var for_in_default;
  1393. var init_for_in = __esm({
  1394. "node_modules/@antv/util/esm/for-in.js"() {
  1395. init_each();
  1396. for_in_default = each_default;
  1397. }
  1398. });
  1399. // node_modules/@antv/util/esm/has.js
  1400. var has_default;
  1401. var init_has = __esm({
  1402. "node_modules/@antv/util/esm/has.js"() {
  1403. has_default = function(obj, key) {
  1404. return obj.hasOwnProperty(key);
  1405. };
  1406. }
  1407. });
  1408. // node_modules/@antv/util/esm/has-key.js
  1409. var has_key_default;
  1410. var init_has_key = __esm({
  1411. "node_modules/@antv/util/esm/has-key.js"() {
  1412. init_has();
  1413. has_key_default = has_default;
  1414. }
  1415. });
  1416. // node_modules/@antv/util/esm/has-value.js
  1417. var has_value_default;
  1418. var init_has_value = __esm({
  1419. "node_modules/@antv/util/esm/has-value.js"() {
  1420. init_contains();
  1421. init_values();
  1422. has_value_default = function(obj, value) {
  1423. return contains_default(values_default(obj), value);
  1424. };
  1425. }
  1426. });
  1427. // node_modules/@antv/util/esm/to-string.js
  1428. var to_string_default;
  1429. var init_to_string = __esm({
  1430. "node_modules/@antv/util/esm/to-string.js"() {
  1431. init_is_nil();
  1432. to_string_default = function(value) {
  1433. if (is_nil_default(value))
  1434. return "";
  1435. return value.toString();
  1436. };
  1437. }
  1438. });
  1439. // node_modules/@antv/util/esm/lower-case.js
  1440. var lowerCase, lower_case_default;
  1441. var init_lower_case = __esm({
  1442. "node_modules/@antv/util/esm/lower-case.js"() {
  1443. init_to_string();
  1444. lowerCase = function(str4) {
  1445. return to_string_default(str4).toLowerCase();
  1446. };
  1447. lower_case_default = lowerCase;
  1448. }
  1449. });
  1450. // node_modules/@antv/util/esm/lower-first.js
  1451. var lowerFirst, lower_first_default;
  1452. var init_lower_first = __esm({
  1453. "node_modules/@antv/util/esm/lower-first.js"() {
  1454. init_to_string();
  1455. lowerFirst = function(value) {
  1456. var str4 = to_string_default(value);
  1457. return str4.charAt(0).toLowerCase() + str4.substring(1);
  1458. };
  1459. lower_first_default = lowerFirst;
  1460. }
  1461. });
  1462. // node_modules/@antv/util/esm/substitute.js
  1463. function substitute(str4, o) {
  1464. if (!str4 || !o) {
  1465. return str4;
  1466. }
  1467. return str4.replace(/\\?\{([^{}]+)\}/g, function(match, name) {
  1468. if (match.charAt(0) === "\\") {
  1469. return match.slice(1);
  1470. }
  1471. return o[name] === void 0 ? "" : o[name];
  1472. });
  1473. }
  1474. var substitute_default;
  1475. var init_substitute = __esm({
  1476. "node_modules/@antv/util/esm/substitute.js"() {
  1477. substitute_default = substitute;
  1478. }
  1479. });
  1480. // node_modules/@antv/util/esm/upper-case.js
  1481. var upperCase, upper_case_default;
  1482. var init_upper_case = __esm({
  1483. "node_modules/@antv/util/esm/upper-case.js"() {
  1484. init_to_string();
  1485. upperCase = function(str4) {
  1486. return to_string_default(str4).toUpperCase();
  1487. };
  1488. upper_case_default = upperCase;
  1489. }
  1490. });
  1491. // node_modules/@antv/util/esm/upper-first.js
  1492. var upperFirst, upper_first_default;
  1493. var init_upper_first = __esm({
  1494. "node_modules/@antv/util/esm/upper-first.js"() {
  1495. init_to_string();
  1496. upperFirst = function(value) {
  1497. var str4 = to_string_default(value);
  1498. return str4.charAt(0).toUpperCase() + str4.substring(1);
  1499. };
  1500. upper_first_default = upperFirst;
  1501. }
  1502. });
  1503. // node_modules/@antv/util/esm/get-type.js
  1504. var toString2, getType, get_type_default;
  1505. var init_get_type = __esm({
  1506. "node_modules/@antv/util/esm/get-type.js"() {
  1507. toString2 = {}.toString;
  1508. getType = function(value) {
  1509. return toString2.call(value).replace(/^\[object /, "").replace(/]$/, "");
  1510. };
  1511. get_type_default = getType;
  1512. }
  1513. });
  1514. // node_modules/@antv/util/esm/is-arguments.js
  1515. var isArguments, is_arguments_default;
  1516. var init_is_arguments = __esm({
  1517. "node_modules/@antv/util/esm/is-arguments.js"() {
  1518. init_is_type();
  1519. isArguments = function(value) {
  1520. return is_type_default(value, "Arguments");
  1521. };
  1522. is_arguments_default = isArguments;
  1523. }
  1524. });
  1525. // node_modules/@antv/util/esm/is-boolean.js
  1526. var isBoolean, is_boolean_default;
  1527. var init_is_boolean = __esm({
  1528. "node_modules/@antv/util/esm/is-boolean.js"() {
  1529. init_is_type();
  1530. isBoolean = function(value) {
  1531. return is_type_default(value, "Boolean");
  1532. };
  1533. is_boolean_default = isBoolean;
  1534. }
  1535. });
  1536. // node_modules/@antv/util/esm/is-date.js
  1537. var isDate, is_date_default;
  1538. var init_is_date = __esm({
  1539. "node_modules/@antv/util/esm/is-date.js"() {
  1540. init_is_type();
  1541. isDate = function(value) {
  1542. return is_type_default(value, "Date");
  1543. };
  1544. is_date_default = isDate;
  1545. }
  1546. });
  1547. // node_modules/@antv/util/esm/is-error.js
  1548. var isError, is_error_default;
  1549. var init_is_error = __esm({
  1550. "node_modules/@antv/util/esm/is-error.js"() {
  1551. init_is_type();
  1552. isError = function(value) {
  1553. return is_type_default(value, "Error");
  1554. };
  1555. is_error_default = isError;
  1556. }
  1557. });
  1558. // node_modules/@antv/util/esm/is-finite.js
  1559. function is_finite_default(value) {
  1560. return is_number_default(value) && isFinite(value);
  1561. }
  1562. var init_is_finite = __esm({
  1563. "node_modules/@antv/util/esm/is-finite.js"() {
  1564. init_is_number();
  1565. }
  1566. });
  1567. // node_modules/@antv/util/esm/is-null.js
  1568. var isNull, is_null_default;
  1569. var init_is_null = __esm({
  1570. "node_modules/@antv/util/esm/is-null.js"() {
  1571. isNull = function(value) {
  1572. return value === null;
  1573. };
  1574. is_null_default = isNull;
  1575. }
  1576. });
  1577. // node_modules/@antv/util/esm/is-prototype.js
  1578. var objectProto, isPrototype, is_prototype_default;
  1579. var init_is_prototype = __esm({
  1580. "node_modules/@antv/util/esm/is-prototype.js"() {
  1581. objectProto = Object.prototype;
  1582. isPrototype = function(value) {
  1583. var Ctor = value && value.constructor;
  1584. var proto = typeof Ctor === "function" && Ctor.prototype || objectProto;
  1585. return value === proto;
  1586. };
  1587. is_prototype_default = isPrototype;
  1588. }
  1589. });
  1590. // node_modules/@antv/util/esm/is-reg-exp.js
  1591. var isRegExp, is_reg_exp_default;
  1592. var init_is_reg_exp = __esm({
  1593. "node_modules/@antv/util/esm/is-reg-exp.js"() {
  1594. init_is_type();
  1595. isRegExp = function(str4) {
  1596. return is_type_default(str4, "RegExp");
  1597. };
  1598. is_reg_exp_default = isRegExp;
  1599. }
  1600. });
  1601. // node_modules/@antv/util/esm/is-undefined.js
  1602. var isUndefined, is_undefined_default;
  1603. var init_is_undefined = __esm({
  1604. "node_modules/@antv/util/esm/is-undefined.js"() {
  1605. isUndefined = function(value) {
  1606. return value === void 0;
  1607. };
  1608. is_undefined_default = isUndefined;
  1609. }
  1610. });
  1611. // node_modules/@antv/util/esm/is-element.js
  1612. var isElement, is_element_default;
  1613. var init_is_element = __esm({
  1614. "node_modules/@antv/util/esm/is-element.js"() {
  1615. isElement = function(o) {
  1616. return o instanceof Element || o instanceof HTMLDocument;
  1617. };
  1618. is_element_default = isElement;
  1619. }
  1620. });
  1621. // node_modules/@antv/util/esm/request-animation-frame.js
  1622. function requestAnimationFrame(fn) {
  1623. var method = window.requestAnimationFrame || window.webkitRequestAnimationFrame || // @ts-ignore
  1624. window.mozRequestAnimationFrame || // @ts-ignore
  1625. window.msRequestAnimationFrame || function(f) {
  1626. return setTimeout(f, 16);
  1627. };
  1628. return method(fn);
  1629. }
  1630. var init_request_animation_frame = __esm({
  1631. "node_modules/@antv/util/esm/request-animation-frame.js"() {
  1632. }
  1633. });
  1634. // node_modules/@antv/util/esm/clear-animation-frame.js
  1635. function cancelAnimationFrame(handler) {
  1636. var method = window.cancelAnimationFrame || window.webkitCancelAnimationFrame || // @ts-ignore
  1637. window.mozCancelAnimationFrame || // @ts-ignore
  1638. window.msCancelAnimationFrame || clearTimeout;
  1639. method(handler);
  1640. }
  1641. var init_clear_animation_frame = __esm({
  1642. "node_modules/@antv/util/esm/clear-animation-frame.js"() {
  1643. }
  1644. });
  1645. // node_modules/@antv/util/esm/augment.js
  1646. var augment, augment_default;
  1647. var init_augment = __esm({
  1648. "node_modules/@antv/util/esm/augment.js"() {
  1649. init_mix();
  1650. init_is_function();
  1651. augment = function() {
  1652. var args = [];
  1653. for (var _i = 0; _i < arguments.length; _i++) {
  1654. args[_i] = arguments[_i];
  1655. }
  1656. var c = args[0];
  1657. for (var i = 1; i < args.length; i++) {
  1658. var obj = args[i];
  1659. if (is_function_default(obj)) {
  1660. obj = obj.prototype;
  1661. }
  1662. mix(c.prototype, obj);
  1663. }
  1664. };
  1665. augment_default = augment;
  1666. }
  1667. });
  1668. // node_modules/@antv/util/esm/clone.js
  1669. var clone, clone_default;
  1670. var init_clone = __esm({
  1671. "node_modules/@antv/util/esm/clone.js"() {
  1672. init_is_array();
  1673. clone = function(obj) {
  1674. if (typeof obj !== "object" || obj === null) {
  1675. return obj;
  1676. }
  1677. var rst;
  1678. if (is_array_default(obj)) {
  1679. rst = [];
  1680. for (var i = 0, l = obj.length; i < l; i++) {
  1681. if (typeof obj[i] === "object" && obj[i] != null) {
  1682. rst[i] = clone(obj[i]);
  1683. } else {
  1684. rst[i] = obj[i];
  1685. }
  1686. }
  1687. } else {
  1688. rst = {};
  1689. for (var k in obj) {
  1690. if (typeof obj[k] === "object" && obj[k] != null) {
  1691. rst[k] = clone(obj[k]);
  1692. } else {
  1693. rst[k] = obj[k];
  1694. }
  1695. }
  1696. }
  1697. return rst;
  1698. };
  1699. clone_default = clone;
  1700. }
  1701. });
  1702. // node_modules/@antv/util/esm/debounce.js
  1703. function debounce(func, wait, immediate) {
  1704. var timeout;
  1705. return function() {
  1706. var context = this, args = arguments;
  1707. var later = function() {
  1708. timeout = null;
  1709. if (!immediate) {
  1710. func.apply(context, args);
  1711. }
  1712. };
  1713. var callNow = immediate && !timeout;
  1714. clearTimeout(timeout);
  1715. timeout = setTimeout(later, wait);
  1716. if (callNow) {
  1717. func.apply(context, args);
  1718. }
  1719. };
  1720. }
  1721. var debounce_default;
  1722. var init_debounce = __esm({
  1723. "node_modules/@antv/util/esm/debounce.js"() {
  1724. debounce_default = debounce;
  1725. }
  1726. });
  1727. // node_modules/@antv/util/esm/extend.js
  1728. var extend, extend_default;
  1729. var init_extend = __esm({
  1730. "node_modules/@antv/util/esm/extend.js"() {
  1731. init_mix();
  1732. init_is_function();
  1733. extend = function(subclass, superclass, overrides, staticOverrides) {
  1734. if (!is_function_default(superclass)) {
  1735. overrides = superclass;
  1736. superclass = subclass;
  1737. subclass = function() {
  1738. };
  1739. }
  1740. var create6 = Object.create ? function(proto, c) {
  1741. return Object.create(proto, {
  1742. constructor: {
  1743. value: c
  1744. }
  1745. });
  1746. } : function(proto, c) {
  1747. function Tmp() {
  1748. }
  1749. Tmp.prototype = proto;
  1750. var o = new Tmp();
  1751. o.constructor = c;
  1752. return o;
  1753. };
  1754. var superObj = create6(superclass.prototype, subclass);
  1755. subclass.prototype = mix(superObj, subclass.prototype);
  1756. subclass.superclass = create6(superclass.prototype, superclass);
  1757. mix(superObj, overrides);
  1758. mix(subclass, staticOverrides);
  1759. return subclass;
  1760. };
  1761. extend_default = extend;
  1762. }
  1763. });
  1764. // node_modules/@antv/util/esm/index-of.js
  1765. var indexOf2, index_of_default;
  1766. var init_index_of = __esm({
  1767. "node_modules/@antv/util/esm/index-of.js"() {
  1768. init_is_array_like();
  1769. indexOf2 = function(arr, obj) {
  1770. if (!is_array_like_default(arr)) {
  1771. return -1;
  1772. }
  1773. var m = Array.prototype.indexOf;
  1774. if (m) {
  1775. return m.call(arr, obj);
  1776. }
  1777. var index = -1;
  1778. for (var i = 0; i < arr.length; i++) {
  1779. if (arr[i] === obj) {
  1780. index = i;
  1781. break;
  1782. }
  1783. }
  1784. return index;
  1785. };
  1786. index_of_default = indexOf2;
  1787. }
  1788. });
  1789. // node_modules/@antv/util/esm/is-empty.js
  1790. function isEmpty(value) {
  1791. if (is_nil_default(value)) {
  1792. return true;
  1793. }
  1794. if (is_array_like_default(value)) {
  1795. return !value.length;
  1796. }
  1797. var type = get_type_default(value);
  1798. if (type === "Map" || type === "Set") {
  1799. return !value.size;
  1800. }
  1801. if (is_prototype_default(value)) {
  1802. return !Object.keys(value).length;
  1803. }
  1804. for (var key in value) {
  1805. if (hasOwnProperty2.call(value, key)) {
  1806. return false;
  1807. }
  1808. }
  1809. return true;
  1810. }
  1811. var hasOwnProperty2, is_empty_default;
  1812. var init_is_empty = __esm({
  1813. "node_modules/@antv/util/esm/is-empty.js"() {
  1814. init_is_nil();
  1815. init_is_array_like();
  1816. init_get_type();
  1817. init_is_prototype();
  1818. hasOwnProperty2 = Object.prototype.hasOwnProperty;
  1819. is_empty_default = isEmpty;
  1820. }
  1821. });
  1822. // node_modules/@antv/util/esm/is-equal.js
  1823. var isEqual, is_equal_default;
  1824. var init_is_equal = __esm({
  1825. "node_modules/@antv/util/esm/is-equal.js"() {
  1826. init_is_object_like();
  1827. init_is_array_like();
  1828. init_is_string();
  1829. isEqual = function(value, other) {
  1830. if (value === other) {
  1831. return true;
  1832. }
  1833. if (!value || !other) {
  1834. return false;
  1835. }
  1836. if (is_string_default(value) || is_string_default(other)) {
  1837. return false;
  1838. }
  1839. if (is_array_like_default(value) || is_array_like_default(other)) {
  1840. if (value.length !== other.length) {
  1841. return false;
  1842. }
  1843. var rst = true;
  1844. for (var i = 0; i < value.length; i++) {
  1845. rst = isEqual(value[i], other[i]);
  1846. if (!rst) {
  1847. break;
  1848. }
  1849. }
  1850. return rst;
  1851. }
  1852. if (is_object_like_default(value) || is_object_like_default(other)) {
  1853. var valueKeys = Object.keys(value);
  1854. var otherKeys = Object.keys(other);
  1855. if (valueKeys.length !== otherKeys.length) {
  1856. return false;
  1857. }
  1858. var rst = true;
  1859. for (var i = 0; i < valueKeys.length; i++) {
  1860. rst = isEqual(value[valueKeys[i]], other[valueKeys[i]]);
  1861. if (!rst) {
  1862. break;
  1863. }
  1864. }
  1865. return rst;
  1866. }
  1867. return false;
  1868. };
  1869. is_equal_default = isEqual;
  1870. }
  1871. });
  1872. // node_modules/@antv/util/esm/is-equal-with.js
  1873. var is_equal_with_default;
  1874. var init_is_equal_with = __esm({
  1875. "node_modules/@antv/util/esm/is-equal-with.js"() {
  1876. init_is_function();
  1877. init_is_equal();
  1878. is_equal_with_default = function(value, other, fn) {
  1879. if (!is_function_default(fn)) {
  1880. return is_equal_default(value, other);
  1881. }
  1882. return !!fn(value, other);
  1883. };
  1884. }
  1885. });
  1886. // node_modules/@antv/util/esm/map.js
  1887. var map, map_default;
  1888. var init_map = __esm({
  1889. "node_modules/@antv/util/esm/map.js"() {
  1890. init_is_array_like();
  1891. map = function(arr, func) {
  1892. if (!is_array_like_default(arr)) {
  1893. return arr;
  1894. }
  1895. var result = [];
  1896. for (var index = 0; index < arr.length; index++) {
  1897. var value = arr[index];
  1898. result.push(func(value, index));
  1899. }
  1900. return result;
  1901. };
  1902. map_default = map;
  1903. }
  1904. });
  1905. // node_modules/@antv/util/esm/map-values.js
  1906. var identity, map_values_default;
  1907. var init_map_values = __esm({
  1908. "node_modules/@antv/util/esm/map-values.js"() {
  1909. init_is_nil();
  1910. init_is_object();
  1911. identity = function(v) {
  1912. return v;
  1913. };
  1914. map_values_default = function(object, func) {
  1915. if (func === void 0) {
  1916. func = identity;
  1917. }
  1918. var r = {};
  1919. if (is_object_default(object) && !is_nil_default(object)) {
  1920. Object.keys(object).forEach(function(key) {
  1921. r[key] = func(object[key], key);
  1922. });
  1923. }
  1924. return r;
  1925. };
  1926. }
  1927. });
  1928. // node_modules/@antv/util/esm/set.js
  1929. var set_default;
  1930. var init_set = __esm({
  1931. "node_modules/@antv/util/esm/set.js"() {
  1932. init_is_object();
  1933. init_is_string();
  1934. init_is_number();
  1935. set_default = function(obj, path, value) {
  1936. var o = obj;
  1937. var keyArr = is_string_default(path) ? path.split(".") : path;
  1938. keyArr.forEach(function(key, idx) {
  1939. if (idx < keyArr.length - 1) {
  1940. if (!is_object_default(o[key])) {
  1941. o[key] = is_number_default(keyArr[idx + 1]) ? [] : {};
  1942. }
  1943. o = o[key];
  1944. } else {
  1945. o[key] = value;
  1946. }
  1947. });
  1948. return obj;
  1949. };
  1950. }
  1951. });
  1952. // node_modules/@antv/util/esm/pick.js
  1953. var hasOwnProperty3, pick_default;
  1954. var init_pick = __esm({
  1955. "node_modules/@antv/util/esm/pick.js"() {
  1956. init_each();
  1957. init_is_plain_object();
  1958. hasOwnProperty3 = Object.prototype.hasOwnProperty;
  1959. pick_default = function(object, keys2) {
  1960. if (object === null || !is_plain_object_default(object)) {
  1961. return {};
  1962. }
  1963. var result = {};
  1964. each_default(keys2, function(key) {
  1965. if (hasOwnProperty3.call(object, key)) {
  1966. result[key] = object[key];
  1967. }
  1968. });
  1969. return result;
  1970. };
  1971. }
  1972. });
  1973. // node_modules/@antv/util/esm/omit.js
  1974. var omit_default;
  1975. var init_omit = __esm({
  1976. "node_modules/@antv/util/esm/omit.js"() {
  1977. init_reduce();
  1978. omit_default = function(obj, keys2) {
  1979. return reduce_default(obj, function(r, curr, key) {
  1980. if (!keys2.includes(key)) {
  1981. r[key] = curr;
  1982. }
  1983. return r;
  1984. }, {});
  1985. };
  1986. }
  1987. });
  1988. // node_modules/@antv/util/esm/throttle.js
  1989. var throttle_default;
  1990. var init_throttle = __esm({
  1991. "node_modules/@antv/util/esm/throttle.js"() {
  1992. throttle_default = function(func, wait, options) {
  1993. var timeout, context, args, result;
  1994. var previous = 0;
  1995. if (!options)
  1996. options = {};
  1997. var later = function() {
  1998. previous = options.leading === false ? 0 : Date.now();
  1999. timeout = null;
  2000. result = func.apply(context, args);
  2001. if (!timeout)
  2002. context = args = null;
  2003. };
  2004. var throttled = function() {
  2005. var now = Date.now();
  2006. if (!previous && options.leading === false)
  2007. previous = now;
  2008. var remaining = wait - (now - previous);
  2009. context = this;
  2010. args = arguments;
  2011. if (remaining <= 0 || remaining > wait) {
  2012. if (timeout) {
  2013. clearTimeout(timeout);
  2014. timeout = null;
  2015. }
  2016. previous = now;
  2017. result = func.apply(context, args);
  2018. if (!timeout)
  2019. context = args = null;
  2020. } else if (!timeout && options.trailing !== false) {
  2021. timeout = setTimeout(later, remaining);
  2022. }
  2023. return result;
  2024. };
  2025. throttled.cancel = function() {
  2026. clearTimeout(timeout);
  2027. previous = 0;
  2028. timeout = context = args = null;
  2029. };
  2030. return throttled;
  2031. };
  2032. }
  2033. });
  2034. // node_modules/@antv/util/esm/to-array.js
  2035. var to_array_default;
  2036. var init_to_array = __esm({
  2037. "node_modules/@antv/util/esm/to-array.js"() {
  2038. init_is_array_like();
  2039. to_array_default = function(value) {
  2040. return is_array_like_default(value) ? Array.prototype.slice.call(value) : [];
  2041. };
  2042. }
  2043. });
  2044. // node_modules/@antv/util/esm/unique-id.js
  2045. var map2, unique_id_default;
  2046. var init_unique_id = __esm({
  2047. "node_modules/@antv/util/esm/unique-id.js"() {
  2048. map2 = {};
  2049. unique_id_default = function(prefix) {
  2050. prefix = prefix || "g";
  2051. if (!map2[prefix]) {
  2052. map2[prefix] = 1;
  2053. } else {
  2054. map2[prefix] += 1;
  2055. }
  2056. return prefix + map2[prefix];
  2057. };
  2058. }
  2059. });
  2060. // node_modules/@antv/util/esm/noop.js
  2061. var noop_default;
  2062. var init_noop = __esm({
  2063. "node_modules/@antv/util/esm/noop.js"() {
  2064. noop_default = function() {
  2065. };
  2066. }
  2067. });
  2068. // node_modules/@antv/util/esm/identity.js
  2069. var identity_default;
  2070. var init_identity = __esm({
  2071. "node_modules/@antv/util/esm/identity.js"() {
  2072. identity_default = function(v) {
  2073. return v;
  2074. };
  2075. }
  2076. });
  2077. // node_modules/@antv/util/esm/size.js
  2078. function size(o) {
  2079. if (is_nil_default(o)) {
  2080. return 0;
  2081. }
  2082. if (is_array_like_default(o)) {
  2083. return o.length;
  2084. }
  2085. return Object.keys(o).length;
  2086. }
  2087. var init_size = __esm({
  2088. "node_modules/@antv/util/esm/size.js"() {
  2089. init_is_nil();
  2090. init_is_array_like();
  2091. }
  2092. });
  2093. // node_modules/@antv/util/esm/measure-text-width.js
  2094. var ctx, measure_text_width_default;
  2095. var init_measure_text_width = __esm({
  2096. "node_modules/@antv/util/esm/measure-text-width.js"() {
  2097. init_tslib_es6();
  2098. init_values();
  2099. init_memoize();
  2100. init_is_string();
  2101. measure_text_width_default = memoize_default(function(text, font) {
  2102. if (font === void 0) {
  2103. font = {};
  2104. }
  2105. var fontSize = font.fontSize, fontFamily = font.fontFamily, fontWeight = font.fontWeight, fontStyle = font.fontStyle, fontVariant = font.fontVariant;
  2106. if (!ctx) {
  2107. ctx = document.createElement("canvas").getContext("2d");
  2108. }
  2109. ctx.font = [fontStyle, fontVariant, fontWeight, fontSize + "px", fontFamily].join(" ");
  2110. return ctx.measureText(is_string_default(text) ? text : "").width;
  2111. }, function(text, font) {
  2112. if (font === void 0) {
  2113. font = {};
  2114. }
  2115. return __spreadArrays([text], values_default(font)).join("");
  2116. });
  2117. }
  2118. });
  2119. // node_modules/@antv/util/esm/get-ellipsis-text.js
  2120. var get_ellipsis_text_default;
  2121. var init_get_ellipsis_text = __esm({
  2122. "node_modules/@antv/util/esm/get-ellipsis-text.js"() {
  2123. init_is_string();
  2124. init_to_string();
  2125. init_measure_text_width();
  2126. get_ellipsis_text_default = function(text, maxWidth, font, str4) {
  2127. if (str4 === void 0) {
  2128. str4 = "...";
  2129. }
  2130. var STEP = 16;
  2131. var PLACEHOLDER_WIDTH = measure_text_width_default(str4, font);
  2132. var leftText = !is_string_default(text) ? to_string_default(text) : text;
  2133. var leftWidth = maxWidth;
  2134. var r = [];
  2135. var currentText;
  2136. var currentWidth;
  2137. if (measure_text_width_default(text, font) <= maxWidth) {
  2138. return text;
  2139. }
  2140. while (true) {
  2141. currentText = leftText.substr(0, STEP);
  2142. currentWidth = measure_text_width_default(currentText, font);
  2143. if (currentWidth + PLACEHOLDER_WIDTH > leftWidth) {
  2144. if (currentWidth > leftWidth) {
  2145. break;
  2146. }
  2147. }
  2148. r.push(currentText);
  2149. leftWidth -= currentWidth;
  2150. leftText = leftText.substr(STEP);
  2151. if (!leftText) {
  2152. return r.join("");
  2153. }
  2154. }
  2155. while (true) {
  2156. currentText = leftText.substr(0, 1);
  2157. currentWidth = measure_text_width_default(currentText, font);
  2158. if (currentWidth + PLACEHOLDER_WIDTH > leftWidth) {
  2159. break;
  2160. }
  2161. r.push(currentText);
  2162. leftWidth -= currentWidth;
  2163. leftText = leftText.substr(1);
  2164. if (!leftText) {
  2165. return r.join("");
  2166. }
  2167. }
  2168. return "" + r.join("") + str4;
  2169. };
  2170. }
  2171. });
  2172. // node_modules/@antv/util/esm/cache.js
  2173. var default_1, cache_default;
  2174. var init_cache = __esm({
  2175. "node_modules/@antv/util/esm/cache.js"() {
  2176. default_1 = /** @class */
  2177. function() {
  2178. function default_12() {
  2179. this.map = {};
  2180. }
  2181. default_12.prototype.has = function(key) {
  2182. return this.map[key] !== void 0;
  2183. };
  2184. default_12.prototype.get = function(key, def) {
  2185. var v = this.map[key];
  2186. return v === void 0 ? def : v;
  2187. };
  2188. default_12.prototype.set = function(key, value) {
  2189. this.map[key] = value;
  2190. };
  2191. default_12.prototype.clear = function() {
  2192. this.map = {};
  2193. };
  2194. default_12.prototype.delete = function(key) {
  2195. delete this.map[key];
  2196. };
  2197. default_12.prototype.size = function() {
  2198. return Object.keys(this.map).length;
  2199. };
  2200. return default_12;
  2201. }();
  2202. cache_default = default_1;
  2203. }
  2204. });
  2205. // node_modules/@antv/util/esm/index.js
  2206. var esm_exports = {};
  2207. __export(esm_exports, {
  2208. Cache: () => cache_default,
  2209. assign: () => mix,
  2210. augment: () => augment_default,
  2211. clamp: () => clamp_default,
  2212. clearAnimationFrame: () => cancelAnimationFrame,
  2213. clone: () => clone_default,
  2214. contains: () => contains_default,
  2215. debounce: () => debounce_default,
  2216. deepMix: () => deep_mix_default,
  2217. difference: () => difference_default,
  2218. each: () => each_default,
  2219. endsWith: () => ends_with_default,
  2220. every: () => every_default,
  2221. extend: () => extend_default,
  2222. filter: () => filter_default,
  2223. find: () => find_default,
  2224. findIndex: () => find_index_default,
  2225. firstValue: () => first_value_default,
  2226. fixedBase: () => fixed_base_default,
  2227. flatten: () => flatten_default,
  2228. flattenDeep: () => flatten_deep_default,
  2229. forIn: () => for_in_default,
  2230. get: () => get_default,
  2231. getEllipsisText: () => get_ellipsis_text_default,
  2232. getRange: () => get_range_default,
  2233. getType: () => get_type_default,
  2234. getWrapBehavior: () => get_wrap_behavior_default,
  2235. group: () => group_default,
  2236. groupBy: () => group_by_default,
  2237. groupToMap: () => groupToMap,
  2238. has: () => has_default,
  2239. hasKey: () => has_key_default,
  2240. hasValue: () => has_value_default,
  2241. head: () => head,
  2242. identity: () => identity_default,
  2243. includes: () => contains_default,
  2244. indexOf: () => index_of_default,
  2245. isArguments: () => is_arguments_default,
  2246. isArray: () => is_array_default,
  2247. isArrayLike: () => is_array_like_default,
  2248. isBoolean: () => is_boolean_default,
  2249. isDate: () => is_date_default,
  2250. isDecimal: () => is_decimal_default,
  2251. isElement: () => is_element_default,
  2252. isEmpty: () => is_empty_default,
  2253. isEqual: () => is_equal_default,
  2254. isEqualWith: () => is_equal_with_default,
  2255. isError: () => is_error_default,
  2256. isEven: () => is_even_default,
  2257. isFinite: () => is_finite_default,
  2258. isFunction: () => is_function_default,
  2259. isInteger: () => is_integer_default,
  2260. isMatch: () => is_match_default,
  2261. isNegative: () => is_negative_default,
  2262. isNil: () => is_nil_default,
  2263. isNull: () => is_null_default,
  2264. isNumber: () => is_number_default,
  2265. isNumberEqual: () => isNumberEqual,
  2266. isObject: () => is_object_default,
  2267. isObjectLike: () => is_object_like_default,
  2268. isOdd: () => is_odd_default,
  2269. isPlainObject: () => is_plain_object_default,
  2270. isPositive: () => is_positive_default,
  2271. isPrototype: () => is_prototype_default,
  2272. isRegExp: () => is_reg_exp_default,
  2273. isString: () => is_string_default,
  2274. isType: () => is_type_default,
  2275. isUndefined: () => is_undefined_default,
  2276. keys: () => keys_default,
  2277. last: () => last,
  2278. lowerCase: () => lower_case_default,
  2279. lowerFirst: () => lower_first_default,
  2280. map: () => map_default,
  2281. mapValues: () => map_values_default,
  2282. max: () => max_default,
  2283. maxBy: () => max_by_default,
  2284. measureTextWidth: () => measure_text_width_default,
  2285. memoize: () => memoize_default,
  2286. min: () => min_default,
  2287. minBy: () => min_by_default,
  2288. mix: () => mix,
  2289. mod: () => mod_default,
  2290. noop: () => noop_default,
  2291. number2color: () => number2color_default,
  2292. omit: () => omit_default,
  2293. parseRadius: () => parse_radius_default,
  2294. pick: () => pick_default,
  2295. pull: () => pull_default,
  2296. pullAt: () => pull_at_default,
  2297. reduce: () => reduce_default,
  2298. remove: () => remove_default,
  2299. requestAnimationFrame: () => requestAnimationFrame,
  2300. set: () => set_default,
  2301. size: () => size,
  2302. some: () => some_default,
  2303. sortBy: () => sort_by_default,
  2304. startsWith: () => starts_with_default,
  2305. substitute: () => substitute_default,
  2306. throttle: () => throttle_default,
  2307. toArray: () => to_array_default,
  2308. toDegree: () => to_degree_default,
  2309. toInteger: () => to_integer_default,
  2310. toRadian: () => to_radian_default,
  2311. toString: () => to_string_default,
  2312. union: () => union_default,
  2313. uniq: () => uniq,
  2314. uniqueId: () => unique_id_default,
  2315. upperCase: () => upper_case_default,
  2316. upperFirst: () => upper_first_default,
  2317. values: () => values_default,
  2318. valuesOfKey: () => values_of_key_default,
  2319. wrapBehavior: () => wrap_behavior_default
  2320. });
  2321. var init_esm = __esm({
  2322. "node_modules/@antv/util/esm/index.js"() {
  2323. init_contains();
  2324. init_difference();
  2325. init_find();
  2326. init_find_index();
  2327. init_first_value();
  2328. init_flatten();
  2329. init_flatten_deep();
  2330. init_get_range();
  2331. init_pull();
  2332. init_pull_at();
  2333. init_reduce();
  2334. init_remove();
  2335. init_sort_by();
  2336. init_union();
  2337. init_uniq();
  2338. init_values_of_key();
  2339. init_head();
  2340. init_last();
  2341. init_starts_with();
  2342. init_ends_with();
  2343. init_filter();
  2344. init_every();
  2345. init_some();
  2346. init_group();
  2347. init_group_by();
  2348. init_group_to_map();
  2349. init_get_wrap_behavior();
  2350. init_wrap_behavior();
  2351. init_number2color();
  2352. init_parse_radius();
  2353. init_clamp();
  2354. init_fixed_base();
  2355. init_is_decimal();
  2356. init_is_even();
  2357. init_is_integer();
  2358. init_is_negative();
  2359. init_is_number_equal();
  2360. init_is_odd();
  2361. init_is_positive();
  2362. init_max();
  2363. init_max_by();
  2364. init_min();
  2365. init_min_by();
  2366. init_mod();
  2367. init_to_degree();
  2368. init_to_integer();
  2369. init_to_radian();
  2370. init_for_in();
  2371. init_has();
  2372. init_has_key();
  2373. init_has_value();
  2374. init_keys();
  2375. init_is_match();
  2376. init_values();
  2377. init_lower_case();
  2378. init_lower_first();
  2379. init_substitute();
  2380. init_upper_case();
  2381. init_upper_first();
  2382. init_get_type();
  2383. init_is_arguments();
  2384. init_is_array();
  2385. init_is_array_like();
  2386. init_is_boolean();
  2387. init_is_date();
  2388. init_is_error();
  2389. init_is_function();
  2390. init_is_finite();
  2391. init_is_nil();
  2392. init_is_null();
  2393. init_is_number();
  2394. init_is_object();
  2395. init_is_object_like();
  2396. init_is_plain_object();
  2397. init_is_prototype();
  2398. init_is_reg_exp();
  2399. init_is_string();
  2400. init_is_type();
  2401. init_is_undefined();
  2402. init_is_element();
  2403. init_request_animation_frame();
  2404. init_clear_animation_frame();
  2405. init_augment();
  2406. init_clone();
  2407. init_debounce();
  2408. init_memoize();
  2409. init_deep_mix();
  2410. init_each();
  2411. init_extend();
  2412. init_index_of();
  2413. init_is_empty();
  2414. init_is_equal();
  2415. init_is_equal_with();
  2416. init_map();
  2417. init_map_values();
  2418. init_mix();
  2419. init_get();
  2420. init_set();
  2421. init_pick();
  2422. init_omit();
  2423. init_throttle();
  2424. init_to_array();
  2425. init_to_string();
  2426. init_unique_id();
  2427. init_noop();
  2428. init_identity();
  2429. init_size();
  2430. init_measure_text_width();
  2431. init_get_ellipsis_text();
  2432. init_cache();
  2433. }
  2434. });
  2435. // node_modules/gl-matrix/esm/common.js
  2436. var EPSILON, ARRAY_TYPE, RANDOM, degree;
  2437. var init_common = __esm({
  2438. "node_modules/gl-matrix/esm/common.js"() {
  2439. EPSILON = 1e-6;
  2440. ARRAY_TYPE = typeof Float32Array !== "undefined" ? Float32Array : Array;
  2441. RANDOM = Math.random;
  2442. degree = Math.PI / 180;
  2443. if (!Math.hypot)
  2444. Math.hypot = function() {
  2445. var y = 0, i = arguments.length;
  2446. while (i--) {
  2447. y += arguments[i] * arguments[i];
  2448. }
  2449. return Math.sqrt(y);
  2450. };
  2451. }
  2452. });
  2453. // node_modules/gl-matrix/esm/mat2.js
  2454. var init_mat2 = __esm({
  2455. "node_modules/gl-matrix/esm/mat2.js"() {
  2456. init_common();
  2457. }
  2458. });
  2459. // node_modules/gl-matrix/esm/mat2d.js
  2460. var init_mat2d = __esm({
  2461. "node_modules/gl-matrix/esm/mat2d.js"() {
  2462. init_common();
  2463. }
  2464. });
  2465. // node_modules/gl-matrix/esm/mat3.js
  2466. var mat3_exports = {};
  2467. __export(mat3_exports, {
  2468. add: () => add,
  2469. adjoint: () => adjoint,
  2470. clone: () => clone2,
  2471. copy: () => copy,
  2472. create: () => create,
  2473. determinant: () => determinant,
  2474. equals: () => equals,
  2475. exactEquals: () => exactEquals,
  2476. frob: () => frob,
  2477. fromMat2d: () => fromMat2d,
  2478. fromMat4: () => fromMat4,
  2479. fromQuat: () => fromQuat,
  2480. fromRotation: () => fromRotation,
  2481. fromScaling: () => fromScaling,
  2482. fromTranslation: () => fromTranslation,
  2483. fromValues: () => fromValues,
  2484. identity: () => identity2,
  2485. invert: () => invert,
  2486. mul: () => mul,
  2487. multiply: () => multiply,
  2488. multiplyScalar: () => multiplyScalar,
  2489. multiplyScalarAndAdd: () => multiplyScalarAndAdd,
  2490. normalFromMat4: () => normalFromMat4,
  2491. projection: () => projection,
  2492. rotate: () => rotate,
  2493. scale: () => scale,
  2494. set: () => set,
  2495. str: () => str,
  2496. sub: () => sub,
  2497. subtract: () => subtract,
  2498. translate: () => translate,
  2499. transpose: () => transpose
  2500. });
  2501. function create() {
  2502. var out = new ARRAY_TYPE(9);
  2503. if (ARRAY_TYPE != Float32Array) {
  2504. out[1] = 0;
  2505. out[2] = 0;
  2506. out[3] = 0;
  2507. out[5] = 0;
  2508. out[6] = 0;
  2509. out[7] = 0;
  2510. }
  2511. out[0] = 1;
  2512. out[4] = 1;
  2513. out[8] = 1;
  2514. return out;
  2515. }
  2516. function fromMat4(out, a) {
  2517. out[0] = a[0];
  2518. out[1] = a[1];
  2519. out[2] = a[2];
  2520. out[3] = a[4];
  2521. out[4] = a[5];
  2522. out[5] = a[6];
  2523. out[6] = a[8];
  2524. out[7] = a[9];
  2525. out[8] = a[10];
  2526. return out;
  2527. }
  2528. function clone2(a) {
  2529. var out = new ARRAY_TYPE(9);
  2530. out[0] = a[0];
  2531. out[1] = a[1];
  2532. out[2] = a[2];
  2533. out[3] = a[3];
  2534. out[4] = a[4];
  2535. out[5] = a[5];
  2536. out[6] = a[6];
  2537. out[7] = a[7];
  2538. out[8] = a[8];
  2539. return out;
  2540. }
  2541. function copy(out, a) {
  2542. out[0] = a[0];
  2543. out[1] = a[1];
  2544. out[2] = a[2];
  2545. out[3] = a[3];
  2546. out[4] = a[4];
  2547. out[5] = a[5];
  2548. out[6] = a[6];
  2549. out[7] = a[7];
  2550. out[8] = a[8];
  2551. return out;
  2552. }
  2553. function fromValues(m00, m01, m02, m10, m11, m12, m20, m21, m22) {
  2554. var out = new ARRAY_TYPE(9);
  2555. out[0] = m00;
  2556. out[1] = m01;
  2557. out[2] = m02;
  2558. out[3] = m10;
  2559. out[4] = m11;
  2560. out[5] = m12;
  2561. out[6] = m20;
  2562. out[7] = m21;
  2563. out[8] = m22;
  2564. return out;
  2565. }
  2566. function set(out, m00, m01, m02, m10, m11, m12, m20, m21, m22) {
  2567. out[0] = m00;
  2568. out[1] = m01;
  2569. out[2] = m02;
  2570. out[3] = m10;
  2571. out[4] = m11;
  2572. out[5] = m12;
  2573. out[6] = m20;
  2574. out[7] = m21;
  2575. out[8] = m22;
  2576. return out;
  2577. }
  2578. function identity2(out) {
  2579. out[0] = 1;
  2580. out[1] = 0;
  2581. out[2] = 0;
  2582. out[3] = 0;
  2583. out[4] = 1;
  2584. out[5] = 0;
  2585. out[6] = 0;
  2586. out[7] = 0;
  2587. out[8] = 1;
  2588. return out;
  2589. }
  2590. function transpose(out, a) {
  2591. if (out === a) {
  2592. var a01 = a[1], a02 = a[2], a12 = a[5];
  2593. out[1] = a[3];
  2594. out[2] = a[6];
  2595. out[3] = a01;
  2596. out[5] = a[7];
  2597. out[6] = a02;
  2598. out[7] = a12;
  2599. } else {
  2600. out[0] = a[0];
  2601. out[1] = a[3];
  2602. out[2] = a[6];
  2603. out[3] = a[1];
  2604. out[4] = a[4];
  2605. out[5] = a[7];
  2606. out[6] = a[2];
  2607. out[7] = a[5];
  2608. out[8] = a[8];
  2609. }
  2610. return out;
  2611. }
  2612. function invert(out, a) {
  2613. var a00 = a[0], a01 = a[1], a02 = a[2];
  2614. var a10 = a[3], a11 = a[4], a12 = a[5];
  2615. var a20 = a[6], a21 = a[7], a22 = a[8];
  2616. var b01 = a22 * a11 - a12 * a21;
  2617. var b11 = -a22 * a10 + a12 * a20;
  2618. var b21 = a21 * a10 - a11 * a20;
  2619. var det = a00 * b01 + a01 * b11 + a02 * b21;
  2620. if (!det) {
  2621. return null;
  2622. }
  2623. det = 1 / det;
  2624. out[0] = b01 * det;
  2625. out[1] = (-a22 * a01 + a02 * a21) * det;
  2626. out[2] = (a12 * a01 - a02 * a11) * det;
  2627. out[3] = b11 * det;
  2628. out[4] = (a22 * a00 - a02 * a20) * det;
  2629. out[5] = (-a12 * a00 + a02 * a10) * det;
  2630. out[6] = b21 * det;
  2631. out[7] = (-a21 * a00 + a01 * a20) * det;
  2632. out[8] = (a11 * a00 - a01 * a10) * det;
  2633. return out;
  2634. }
  2635. function adjoint(out, a) {
  2636. var a00 = a[0], a01 = a[1], a02 = a[2];
  2637. var a10 = a[3], a11 = a[4], a12 = a[5];
  2638. var a20 = a[6], a21 = a[7], a22 = a[8];
  2639. out[0] = a11 * a22 - a12 * a21;
  2640. out[1] = a02 * a21 - a01 * a22;
  2641. out[2] = a01 * a12 - a02 * a11;
  2642. out[3] = a12 * a20 - a10 * a22;
  2643. out[4] = a00 * a22 - a02 * a20;
  2644. out[5] = a02 * a10 - a00 * a12;
  2645. out[6] = a10 * a21 - a11 * a20;
  2646. out[7] = a01 * a20 - a00 * a21;
  2647. out[8] = a00 * a11 - a01 * a10;
  2648. return out;
  2649. }
  2650. function determinant(a) {
  2651. var a00 = a[0], a01 = a[1], a02 = a[2];
  2652. var a10 = a[3], a11 = a[4], a12 = a[5];
  2653. var a20 = a[6], a21 = a[7], a22 = a[8];
  2654. return a00 * (a22 * a11 - a12 * a21) + a01 * (-a22 * a10 + a12 * a20) + a02 * (a21 * a10 - a11 * a20);
  2655. }
  2656. function multiply(out, a, b) {
  2657. var a00 = a[0], a01 = a[1], a02 = a[2];
  2658. var a10 = a[3], a11 = a[4], a12 = a[5];
  2659. var a20 = a[6], a21 = a[7], a22 = a[8];
  2660. var b00 = b[0], b01 = b[1], b02 = b[2];
  2661. var b10 = b[3], b11 = b[4], b12 = b[5];
  2662. var b20 = b[6], b21 = b[7], b22 = b[8];
  2663. out[0] = b00 * a00 + b01 * a10 + b02 * a20;
  2664. out[1] = b00 * a01 + b01 * a11 + b02 * a21;
  2665. out[2] = b00 * a02 + b01 * a12 + b02 * a22;
  2666. out[3] = b10 * a00 + b11 * a10 + b12 * a20;
  2667. out[4] = b10 * a01 + b11 * a11 + b12 * a21;
  2668. out[5] = b10 * a02 + b11 * a12 + b12 * a22;
  2669. out[6] = b20 * a00 + b21 * a10 + b22 * a20;
  2670. out[7] = b20 * a01 + b21 * a11 + b22 * a21;
  2671. out[8] = b20 * a02 + b21 * a12 + b22 * a22;
  2672. return out;
  2673. }
  2674. function translate(out, a, v) {
  2675. var a00 = a[0], a01 = a[1], a02 = a[2], a10 = a[3], a11 = a[4], a12 = a[5], a20 = a[6], a21 = a[7], a22 = a[8], x = v[0], y = v[1];
  2676. out[0] = a00;
  2677. out[1] = a01;
  2678. out[2] = a02;
  2679. out[3] = a10;
  2680. out[4] = a11;
  2681. out[5] = a12;
  2682. out[6] = x * a00 + y * a10 + a20;
  2683. out[7] = x * a01 + y * a11 + a21;
  2684. out[8] = x * a02 + y * a12 + a22;
  2685. return out;
  2686. }
  2687. function rotate(out, a, rad) {
  2688. var a00 = a[0], a01 = a[1], a02 = a[2], a10 = a[3], a11 = a[4], a12 = a[5], a20 = a[6], a21 = a[7], a22 = a[8], s = Math.sin(rad), c = Math.cos(rad);
  2689. out[0] = c * a00 + s * a10;
  2690. out[1] = c * a01 + s * a11;
  2691. out[2] = c * a02 + s * a12;
  2692. out[3] = c * a10 - s * a00;
  2693. out[4] = c * a11 - s * a01;
  2694. out[5] = c * a12 - s * a02;
  2695. out[6] = a20;
  2696. out[7] = a21;
  2697. out[8] = a22;
  2698. return out;
  2699. }
  2700. function scale(out, a, v) {
  2701. var x = v[0], y = v[1];
  2702. out[0] = x * a[0];
  2703. out[1] = x * a[1];
  2704. out[2] = x * a[2];
  2705. out[3] = y * a[3];
  2706. out[4] = y * a[4];
  2707. out[5] = y * a[5];
  2708. out[6] = a[6];
  2709. out[7] = a[7];
  2710. out[8] = a[8];
  2711. return out;
  2712. }
  2713. function fromTranslation(out, v) {
  2714. out[0] = 1;
  2715. out[1] = 0;
  2716. out[2] = 0;
  2717. out[3] = 0;
  2718. out[4] = 1;
  2719. out[5] = 0;
  2720. out[6] = v[0];
  2721. out[7] = v[1];
  2722. out[8] = 1;
  2723. return out;
  2724. }
  2725. function fromRotation(out, rad) {
  2726. var s = Math.sin(rad), c = Math.cos(rad);
  2727. out[0] = c;
  2728. out[1] = s;
  2729. out[2] = 0;
  2730. out[3] = -s;
  2731. out[4] = c;
  2732. out[5] = 0;
  2733. out[6] = 0;
  2734. out[7] = 0;
  2735. out[8] = 1;
  2736. return out;
  2737. }
  2738. function fromScaling(out, v) {
  2739. out[0] = v[0];
  2740. out[1] = 0;
  2741. out[2] = 0;
  2742. out[3] = 0;
  2743. out[4] = v[1];
  2744. out[5] = 0;
  2745. out[6] = 0;
  2746. out[7] = 0;
  2747. out[8] = 1;
  2748. return out;
  2749. }
  2750. function fromMat2d(out, a) {
  2751. out[0] = a[0];
  2752. out[1] = a[1];
  2753. out[2] = 0;
  2754. out[3] = a[2];
  2755. out[4] = a[3];
  2756. out[5] = 0;
  2757. out[6] = a[4];
  2758. out[7] = a[5];
  2759. out[8] = 1;
  2760. return out;
  2761. }
  2762. function fromQuat(out, q) {
  2763. var x = q[0], y = q[1], z = q[2], w = q[3];
  2764. var x2 = x + x;
  2765. var y2 = y + y;
  2766. var z2 = z + z;
  2767. var xx = x * x2;
  2768. var yx = y * x2;
  2769. var yy = y * y2;
  2770. var zx = z * x2;
  2771. var zy = z * y2;
  2772. var zz = z * z2;
  2773. var wx = w * x2;
  2774. var wy = w * y2;
  2775. var wz = w * z2;
  2776. out[0] = 1 - yy - zz;
  2777. out[3] = yx - wz;
  2778. out[6] = zx + wy;
  2779. out[1] = yx + wz;
  2780. out[4] = 1 - xx - zz;
  2781. out[7] = zy - wx;
  2782. out[2] = zx - wy;
  2783. out[5] = zy + wx;
  2784. out[8] = 1 - xx - yy;
  2785. return out;
  2786. }
  2787. function normalFromMat4(out, a) {
  2788. var a00 = a[0], a01 = a[1], a02 = a[2], a03 = a[3];
  2789. var a10 = a[4], a11 = a[5], a12 = a[6], a13 = a[7];
  2790. var a20 = a[8], a21 = a[9], a22 = a[10], a23 = a[11];
  2791. var a30 = a[12], a31 = a[13], a32 = a[14], a33 = a[15];
  2792. var b00 = a00 * a11 - a01 * a10;
  2793. var b01 = a00 * a12 - a02 * a10;
  2794. var b02 = a00 * a13 - a03 * a10;
  2795. var b03 = a01 * a12 - a02 * a11;
  2796. var b04 = a01 * a13 - a03 * a11;
  2797. var b05 = a02 * a13 - a03 * a12;
  2798. var b06 = a20 * a31 - a21 * a30;
  2799. var b07 = a20 * a32 - a22 * a30;
  2800. var b08 = a20 * a33 - a23 * a30;
  2801. var b09 = a21 * a32 - a22 * a31;
  2802. var b10 = a21 * a33 - a23 * a31;
  2803. var b11 = a22 * a33 - a23 * a32;
  2804. var det = b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06;
  2805. if (!det) {
  2806. return null;
  2807. }
  2808. det = 1 / det;
  2809. out[0] = (a11 * b11 - a12 * b10 + a13 * b09) * det;
  2810. out[1] = (a12 * b08 - a10 * b11 - a13 * b07) * det;
  2811. out[2] = (a10 * b10 - a11 * b08 + a13 * b06) * det;
  2812. out[3] = (a02 * b10 - a01 * b11 - a03 * b09) * det;
  2813. out[4] = (a00 * b11 - a02 * b08 + a03 * b07) * det;
  2814. out[5] = (a01 * b08 - a00 * b10 - a03 * b06) * det;
  2815. out[6] = (a31 * b05 - a32 * b04 + a33 * b03) * det;
  2816. out[7] = (a32 * b02 - a30 * b05 - a33 * b01) * det;
  2817. out[8] = (a30 * b04 - a31 * b02 + a33 * b00) * det;
  2818. return out;
  2819. }
  2820. function projection(out, width, height) {
  2821. out[0] = 2 / width;
  2822. out[1] = 0;
  2823. out[2] = 0;
  2824. out[3] = 0;
  2825. out[4] = -2 / height;
  2826. out[5] = 0;
  2827. out[6] = -1;
  2828. out[7] = 1;
  2829. out[8] = 1;
  2830. return out;
  2831. }
  2832. function str(a) {
  2833. return "mat3(" + a[0] + ", " + a[1] + ", " + a[2] + ", " + a[3] + ", " + a[4] + ", " + a[5] + ", " + a[6] + ", " + a[7] + ", " + a[8] + ")";
  2834. }
  2835. function frob(a) {
  2836. return Math.hypot(a[0], a[1], a[2], a[3], a[4], a[5], a[6], a[7], a[8]);
  2837. }
  2838. function add(out, a, b) {
  2839. out[0] = a[0] + b[0];
  2840. out[1] = a[1] + b[1];
  2841. out[2] = a[2] + b[2];
  2842. out[3] = a[3] + b[3];
  2843. out[4] = a[4] + b[4];
  2844. out[5] = a[5] + b[5];
  2845. out[6] = a[6] + b[6];
  2846. out[7] = a[7] + b[7];
  2847. out[8] = a[8] + b[8];
  2848. return out;
  2849. }
  2850. function subtract(out, a, b) {
  2851. out[0] = a[0] - b[0];
  2852. out[1] = a[1] - b[1];
  2853. out[2] = a[2] - b[2];
  2854. out[3] = a[3] - b[3];
  2855. out[4] = a[4] - b[4];
  2856. out[5] = a[5] - b[5];
  2857. out[6] = a[6] - b[6];
  2858. out[7] = a[7] - b[7];
  2859. out[8] = a[8] - b[8];
  2860. return out;
  2861. }
  2862. function multiplyScalar(out, a, b) {
  2863. out[0] = a[0] * b;
  2864. out[1] = a[1] * b;
  2865. out[2] = a[2] * b;
  2866. out[3] = a[3] * b;
  2867. out[4] = a[4] * b;
  2868. out[5] = a[5] * b;
  2869. out[6] = a[6] * b;
  2870. out[7] = a[7] * b;
  2871. out[8] = a[8] * b;
  2872. return out;
  2873. }
  2874. function multiplyScalarAndAdd(out, a, b, scale5) {
  2875. out[0] = a[0] + b[0] * scale5;
  2876. out[1] = a[1] + b[1] * scale5;
  2877. out[2] = a[2] + b[2] * scale5;
  2878. out[3] = a[3] + b[3] * scale5;
  2879. out[4] = a[4] + b[4] * scale5;
  2880. out[5] = a[5] + b[5] * scale5;
  2881. out[6] = a[6] + b[6] * scale5;
  2882. out[7] = a[7] + b[7] * scale5;
  2883. out[8] = a[8] + b[8] * scale5;
  2884. return out;
  2885. }
  2886. function exactEquals(a, b) {
  2887. return a[0] === b[0] && a[1] === b[1] && a[2] === b[2] && a[3] === b[3] && a[4] === b[4] && a[5] === b[5] && a[6] === b[6] && a[7] === b[7] && a[8] === b[8];
  2888. }
  2889. function equals(a, b) {
  2890. var a0 = a[0], a1 = a[1], a2 = a[2], a3 = a[3], a4 = a[4], a5 = a[5], a6 = a[6], a7 = a[7], a8 = a[8];
  2891. var b0 = b[0], b1 = b[1], b2 = b[2], b3 = b[3], b4 = b[4], b5 = b[5], b6 = b[6], b7 = b[7], b8 = b[8];
  2892. return Math.abs(a0 - b0) <= EPSILON * Math.max(1, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= EPSILON * Math.max(1, Math.abs(a1), Math.abs(b1)) && Math.abs(a2 - b2) <= EPSILON * Math.max(1, Math.abs(a2), Math.abs(b2)) && Math.abs(a3 - b3) <= EPSILON * Math.max(1, Math.abs(a3), Math.abs(b3)) && Math.abs(a4 - b4) <= EPSILON * Math.max(1, Math.abs(a4), Math.abs(b4)) && Math.abs(a5 - b5) <= EPSILON * Math.max(1, Math.abs(a5), Math.abs(b5)) && Math.abs(a6 - b6) <= EPSILON * Math.max(1, Math.abs(a6), Math.abs(b6)) && Math.abs(a7 - b7) <= EPSILON * Math.max(1, Math.abs(a7), Math.abs(b7)) && Math.abs(a8 - b8) <= EPSILON * Math.max(1, Math.abs(a8), Math.abs(b8));
  2893. }
  2894. var mul, sub;
  2895. var init_mat3 = __esm({
  2896. "node_modules/gl-matrix/esm/mat3.js"() {
  2897. init_common();
  2898. mul = multiply;
  2899. sub = subtract;
  2900. }
  2901. });
  2902. // node_modules/gl-matrix/esm/mat4.js
  2903. var init_mat4 = __esm({
  2904. "node_modules/gl-matrix/esm/mat4.js"() {
  2905. init_common();
  2906. }
  2907. });
  2908. // node_modules/gl-matrix/esm/vec3.js
  2909. var vec3_exports = {};
  2910. __export(vec3_exports, {
  2911. add: () => add2,
  2912. angle: () => angle,
  2913. bezier: () => bezier,
  2914. ceil: () => ceil,
  2915. clone: () => clone3,
  2916. copy: () => copy2,
  2917. create: () => create2,
  2918. cross: () => cross,
  2919. dist: () => dist,
  2920. distance: () => distance,
  2921. div: () => div,
  2922. divide: () => divide,
  2923. dot: () => dot,
  2924. equals: () => equals2,
  2925. exactEquals: () => exactEquals2,
  2926. floor: () => floor,
  2927. forEach: () => forEach,
  2928. fromValues: () => fromValues2,
  2929. hermite: () => hermite,
  2930. inverse: () => inverse,
  2931. len: () => len,
  2932. length: () => length,
  2933. lerp: () => lerp,
  2934. max: () => max,
  2935. min: () => min,
  2936. mul: () => mul2,
  2937. multiply: () => multiply2,
  2938. negate: () => negate,
  2939. normalize: () => normalize,
  2940. random: () => random,
  2941. rotateX: () => rotateX,
  2942. rotateY: () => rotateY,
  2943. rotateZ: () => rotateZ,
  2944. round: () => round,
  2945. scale: () => scale2,
  2946. scaleAndAdd: () => scaleAndAdd,
  2947. set: () => set2,
  2948. sqrDist: () => sqrDist,
  2949. sqrLen: () => sqrLen,
  2950. squaredDistance: () => squaredDistance,
  2951. squaredLength: () => squaredLength,
  2952. str: () => str2,
  2953. sub: () => sub2,
  2954. subtract: () => subtract2,
  2955. transformMat3: () => transformMat3,
  2956. transformMat4: () => transformMat4,
  2957. transformQuat: () => transformQuat,
  2958. zero: () => zero
  2959. });
  2960. function create2() {
  2961. var out = new ARRAY_TYPE(3);
  2962. if (ARRAY_TYPE != Float32Array) {
  2963. out[0] = 0;
  2964. out[1] = 0;
  2965. out[2] = 0;
  2966. }
  2967. return out;
  2968. }
  2969. function clone3(a) {
  2970. var out = new ARRAY_TYPE(3);
  2971. out[0] = a[0];
  2972. out[1] = a[1];
  2973. out[2] = a[2];
  2974. return out;
  2975. }
  2976. function length(a) {
  2977. var x = a[0];
  2978. var y = a[1];
  2979. var z = a[2];
  2980. return Math.hypot(x, y, z);
  2981. }
  2982. function fromValues2(x, y, z) {
  2983. var out = new ARRAY_TYPE(3);
  2984. out[0] = x;
  2985. out[1] = y;
  2986. out[2] = z;
  2987. return out;
  2988. }
  2989. function copy2(out, a) {
  2990. out[0] = a[0];
  2991. out[1] = a[1];
  2992. out[2] = a[2];
  2993. return out;
  2994. }
  2995. function set2(out, x, y, z) {
  2996. out[0] = x;
  2997. out[1] = y;
  2998. out[2] = z;
  2999. return out;
  3000. }
  3001. function add2(out, a, b) {
  3002. out[0] = a[0] + b[0];
  3003. out[1] = a[1] + b[1];
  3004. out[2] = a[2] + b[2];
  3005. return out;
  3006. }
  3007. function subtract2(out, a, b) {
  3008. out[0] = a[0] - b[0];
  3009. out[1] = a[1] - b[1];
  3010. out[2] = a[2] - b[2];
  3011. return out;
  3012. }
  3013. function multiply2(out, a, b) {
  3014. out[0] = a[0] * b[0];
  3015. out[1] = a[1] * b[1];
  3016. out[2] = a[2] * b[2];
  3017. return out;
  3018. }
  3019. function divide(out, a, b) {
  3020. out[0] = a[0] / b[0];
  3021. out[1] = a[1] / b[1];
  3022. out[2] = a[2] / b[2];
  3023. return out;
  3024. }
  3025. function ceil(out, a) {
  3026. out[0] = Math.ceil(a[0]);
  3027. out[1] = Math.ceil(a[1]);
  3028. out[2] = Math.ceil(a[2]);
  3029. return out;
  3030. }
  3031. function floor(out, a) {
  3032. out[0] = Math.floor(a[0]);
  3033. out[1] = Math.floor(a[1]);
  3034. out[2] = Math.floor(a[2]);
  3035. return out;
  3036. }
  3037. function min(out, a, b) {
  3038. out[0] = Math.min(a[0], b[0]);
  3039. out[1] = Math.min(a[1], b[1]);
  3040. out[2] = Math.min(a[2], b[2]);
  3041. return out;
  3042. }
  3043. function max(out, a, b) {
  3044. out[0] = Math.max(a[0], b[0]);
  3045. out[1] = Math.max(a[1], b[1]);
  3046. out[2] = Math.max(a[2], b[2]);
  3047. return out;
  3048. }
  3049. function round(out, a) {
  3050. out[0] = Math.round(a[0]);
  3051. out[1] = Math.round(a[1]);
  3052. out[2] = Math.round(a[2]);
  3053. return out;
  3054. }
  3055. function scale2(out, a, b) {
  3056. out[0] = a[0] * b;
  3057. out[1] = a[1] * b;
  3058. out[2] = a[2] * b;
  3059. return out;
  3060. }
  3061. function scaleAndAdd(out, a, b, scale5) {
  3062. out[0] = a[0] + b[0] * scale5;
  3063. out[1] = a[1] + b[1] * scale5;
  3064. out[2] = a[2] + b[2] * scale5;
  3065. return out;
  3066. }
  3067. function distance(a, b) {
  3068. var x = b[0] - a[0];
  3069. var y = b[1] - a[1];
  3070. var z = b[2] - a[2];
  3071. return Math.hypot(x, y, z);
  3072. }
  3073. function squaredDistance(a, b) {
  3074. var x = b[0] - a[0];
  3075. var y = b[1] - a[1];
  3076. var z = b[2] - a[2];
  3077. return x * x + y * y + z * z;
  3078. }
  3079. function squaredLength(a) {
  3080. var x = a[0];
  3081. var y = a[1];
  3082. var z = a[2];
  3083. return x * x + y * y + z * z;
  3084. }
  3085. function negate(out, a) {
  3086. out[0] = -a[0];
  3087. out[1] = -a[1];
  3088. out[2] = -a[2];
  3089. return out;
  3090. }
  3091. function inverse(out, a) {
  3092. out[0] = 1 / a[0];
  3093. out[1] = 1 / a[1];
  3094. out[2] = 1 / a[2];
  3095. return out;
  3096. }
  3097. function normalize(out, a) {
  3098. var x = a[0];
  3099. var y = a[1];
  3100. var z = a[2];
  3101. var len3 = x * x + y * y + z * z;
  3102. if (len3 > 0) {
  3103. len3 = 1 / Math.sqrt(len3);
  3104. }
  3105. out[0] = a[0] * len3;
  3106. out[1] = a[1] * len3;
  3107. out[2] = a[2] * len3;
  3108. return out;
  3109. }
  3110. function dot(a, b) {
  3111. return a[0] * b[0] + a[1] * b[1] + a[2] * b[2];
  3112. }
  3113. function cross(out, a, b) {
  3114. var ax = a[0], ay = a[1], az = a[2];
  3115. var bx = b[0], by = b[1], bz = b[2];
  3116. out[0] = ay * bz - az * by;
  3117. out[1] = az * bx - ax * bz;
  3118. out[2] = ax * by - ay * bx;
  3119. return out;
  3120. }
  3121. function lerp(out, a, b, t) {
  3122. var ax = a[0];
  3123. var ay = a[1];
  3124. var az = a[2];
  3125. out[0] = ax + t * (b[0] - ax);
  3126. out[1] = ay + t * (b[1] - ay);
  3127. out[2] = az + t * (b[2] - az);
  3128. return out;
  3129. }
  3130. function hermite(out, a, b, c, d, t) {
  3131. var factorTimes2 = t * t;
  3132. var factor1 = factorTimes2 * (2 * t - 3) + 1;
  3133. var factor2 = factorTimes2 * (t - 2) + t;
  3134. var factor3 = factorTimes2 * (t - 1);
  3135. var factor4 = factorTimes2 * (3 - 2 * t);
  3136. out[0] = a[0] * factor1 + b[0] * factor2 + c[0] * factor3 + d[0] * factor4;
  3137. out[1] = a[1] * factor1 + b[1] * factor2 + c[1] * factor3 + d[1] * factor4;
  3138. out[2] = a[2] * factor1 + b[2] * factor2 + c[2] * factor3 + d[2] * factor4;
  3139. return out;
  3140. }
  3141. function bezier(out, a, b, c, d, t) {
  3142. var inverseFactor = 1 - t;
  3143. var inverseFactorTimesTwo = inverseFactor * inverseFactor;
  3144. var factorTimes2 = t * t;
  3145. var factor1 = inverseFactorTimesTwo * inverseFactor;
  3146. var factor2 = 3 * t * inverseFactorTimesTwo;
  3147. var factor3 = 3 * factorTimes2 * inverseFactor;
  3148. var factor4 = factorTimes2 * t;
  3149. out[0] = a[0] * factor1 + b[0] * factor2 + c[0] * factor3 + d[0] * factor4;
  3150. out[1] = a[1] * factor1 + b[1] * factor2 + c[1] * factor3 + d[1] * factor4;
  3151. out[2] = a[2] * factor1 + b[2] * factor2 + c[2] * factor3 + d[2] * factor4;
  3152. return out;
  3153. }
  3154. function random(out, scale5) {
  3155. scale5 = scale5 || 1;
  3156. var r = RANDOM() * 2 * Math.PI;
  3157. var z = RANDOM() * 2 - 1;
  3158. var zScale = Math.sqrt(1 - z * z) * scale5;
  3159. out[0] = Math.cos(r) * zScale;
  3160. out[1] = Math.sin(r) * zScale;
  3161. out[2] = z * scale5;
  3162. return out;
  3163. }
  3164. function transformMat4(out, a, m) {
  3165. var x = a[0], y = a[1], z = a[2];
  3166. var w = m[3] * x + m[7] * y + m[11] * z + m[15];
  3167. w = w || 1;
  3168. out[0] = (m[0] * x + m[4] * y + m[8] * z + m[12]) / w;
  3169. out[1] = (m[1] * x + m[5] * y + m[9] * z + m[13]) / w;
  3170. out[2] = (m[2] * x + m[6] * y + m[10] * z + m[14]) / w;
  3171. return out;
  3172. }
  3173. function transformMat3(out, a, m) {
  3174. var x = a[0], y = a[1], z = a[2];
  3175. out[0] = x * m[0] + y * m[3] + z * m[6];
  3176. out[1] = x * m[1] + y * m[4] + z * m[7];
  3177. out[2] = x * m[2] + y * m[5] + z * m[8];
  3178. return out;
  3179. }
  3180. function transformQuat(out, a, q) {
  3181. var qx = q[0], qy = q[1], qz = q[2], qw = q[3];
  3182. var x = a[0], y = a[1], z = a[2];
  3183. var uvx = qy * z - qz * y, uvy = qz * x - qx * z, uvz = qx * y - qy * x;
  3184. var uuvx = qy * uvz - qz * uvy, uuvy = qz * uvx - qx * uvz, uuvz = qx * uvy - qy * uvx;
  3185. var w2 = qw * 2;
  3186. uvx *= w2;
  3187. uvy *= w2;
  3188. uvz *= w2;
  3189. uuvx *= 2;
  3190. uuvy *= 2;
  3191. uuvz *= 2;
  3192. out[0] = x + uvx + uuvx;
  3193. out[1] = y + uvy + uuvy;
  3194. out[2] = z + uvz + uuvz;
  3195. return out;
  3196. }
  3197. function rotateX(out, a, b, rad) {
  3198. var p = [], r = [];
  3199. p[0] = a[0] - b[0];
  3200. p[1] = a[1] - b[1];
  3201. p[2] = a[2] - b[2];
  3202. r[0] = p[0];
  3203. r[1] = p[1] * Math.cos(rad) - p[2] * Math.sin(rad);
  3204. r[2] = p[1] * Math.sin(rad) + p[2] * Math.cos(rad);
  3205. out[0] = r[0] + b[0];
  3206. out[1] = r[1] + b[1];
  3207. out[2] = r[2] + b[2];
  3208. return out;
  3209. }
  3210. function rotateY(out, a, b, rad) {
  3211. var p = [], r = [];
  3212. p[0] = a[0] - b[0];
  3213. p[1] = a[1] - b[1];
  3214. p[2] = a[2] - b[2];
  3215. r[0] = p[2] * Math.sin(rad) + p[0] * Math.cos(rad);
  3216. r[1] = p[1];
  3217. r[2] = p[2] * Math.cos(rad) - p[0] * Math.sin(rad);
  3218. out[0] = r[0] + b[0];
  3219. out[1] = r[1] + b[1];
  3220. out[2] = r[2] + b[2];
  3221. return out;
  3222. }
  3223. function rotateZ(out, a, b, rad) {
  3224. var p = [], r = [];
  3225. p[0] = a[0] - b[0];
  3226. p[1] = a[1] - b[1];
  3227. p[2] = a[2] - b[2];
  3228. r[0] = p[0] * Math.cos(rad) - p[1] * Math.sin(rad);
  3229. r[1] = p[0] * Math.sin(rad) + p[1] * Math.cos(rad);
  3230. r[2] = p[2];
  3231. out[0] = r[0] + b[0];
  3232. out[1] = r[1] + b[1];
  3233. out[2] = r[2] + b[2];
  3234. return out;
  3235. }
  3236. function angle(a, b) {
  3237. var ax = a[0], ay = a[1], az = a[2], bx = b[0], by = b[1], bz = b[2], mag1 = Math.sqrt(ax * ax + ay * ay + az * az), mag2 = Math.sqrt(bx * bx + by * by + bz * bz), mag = mag1 * mag2, cosine = mag && dot(a, b) / mag;
  3238. return Math.acos(Math.min(Math.max(cosine, -1), 1));
  3239. }
  3240. function zero(out) {
  3241. out[0] = 0;
  3242. out[1] = 0;
  3243. out[2] = 0;
  3244. return out;
  3245. }
  3246. function str2(a) {
  3247. return "vec3(" + a[0] + ", " + a[1] + ", " + a[2] + ")";
  3248. }
  3249. function exactEquals2(a, b) {
  3250. return a[0] === b[0] && a[1] === b[1] && a[2] === b[2];
  3251. }
  3252. function equals2(a, b) {
  3253. var a0 = a[0], a1 = a[1], a2 = a[2];
  3254. var b0 = b[0], b1 = b[1], b2 = b[2];
  3255. return Math.abs(a0 - b0) <= EPSILON * Math.max(1, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= EPSILON * Math.max(1, Math.abs(a1), Math.abs(b1)) && Math.abs(a2 - b2) <= EPSILON * Math.max(1, Math.abs(a2), Math.abs(b2));
  3256. }
  3257. var sub2, mul2, div, dist, sqrDist, len, sqrLen, forEach;
  3258. var init_vec3 = __esm({
  3259. "node_modules/gl-matrix/esm/vec3.js"() {
  3260. init_common();
  3261. sub2 = subtract2;
  3262. mul2 = multiply2;
  3263. div = divide;
  3264. dist = distance;
  3265. sqrDist = squaredDistance;
  3266. len = length;
  3267. sqrLen = squaredLength;
  3268. forEach = function() {
  3269. var vec = create2();
  3270. return function(a, stride, offset, count, fn, arg) {
  3271. var i, l;
  3272. if (!stride) {
  3273. stride = 3;
  3274. }
  3275. if (!offset) {
  3276. offset = 0;
  3277. }
  3278. if (count) {
  3279. l = Math.min(count * stride + offset, a.length);
  3280. } else {
  3281. l = a.length;
  3282. }
  3283. for (i = offset; i < l; i += stride) {
  3284. vec[0] = a[i];
  3285. vec[1] = a[i + 1];
  3286. vec[2] = a[i + 2];
  3287. fn(vec, vec, arg);
  3288. a[i] = vec[0];
  3289. a[i + 1] = vec[1];
  3290. a[i + 2] = vec[2];
  3291. }
  3292. return a;
  3293. };
  3294. }();
  3295. }
  3296. });
  3297. // node_modules/gl-matrix/esm/vec4.js
  3298. function create3() {
  3299. var out = new ARRAY_TYPE(4);
  3300. if (ARRAY_TYPE != Float32Array) {
  3301. out[0] = 0;
  3302. out[1] = 0;
  3303. out[2] = 0;
  3304. out[3] = 0;
  3305. }
  3306. return out;
  3307. }
  3308. function normalize2(out, a) {
  3309. var x = a[0];
  3310. var y = a[1];
  3311. var z = a[2];
  3312. var w = a[3];
  3313. var len3 = x * x + y * y + z * z + w * w;
  3314. if (len3 > 0) {
  3315. len3 = 1 / Math.sqrt(len3);
  3316. }
  3317. out[0] = x * len3;
  3318. out[1] = y * len3;
  3319. out[2] = z * len3;
  3320. out[3] = w * len3;
  3321. return out;
  3322. }
  3323. var forEach2;
  3324. var init_vec4 = __esm({
  3325. "node_modules/gl-matrix/esm/vec4.js"() {
  3326. init_common();
  3327. forEach2 = function() {
  3328. var vec = create3();
  3329. return function(a, stride, offset, count, fn, arg) {
  3330. var i, l;
  3331. if (!stride) {
  3332. stride = 4;
  3333. }
  3334. if (!offset) {
  3335. offset = 0;
  3336. }
  3337. if (count) {
  3338. l = Math.min(count * stride + offset, a.length);
  3339. } else {
  3340. l = a.length;
  3341. }
  3342. for (i = offset; i < l; i += stride) {
  3343. vec[0] = a[i];
  3344. vec[1] = a[i + 1];
  3345. vec[2] = a[i + 2];
  3346. vec[3] = a[i + 3];
  3347. fn(vec, vec, arg);
  3348. a[i] = vec[0];
  3349. a[i + 1] = vec[1];
  3350. a[i + 2] = vec[2];
  3351. a[i + 3] = vec[3];
  3352. }
  3353. return a;
  3354. };
  3355. }();
  3356. }
  3357. });
  3358. // node_modules/gl-matrix/esm/quat.js
  3359. function create4() {
  3360. var out = new ARRAY_TYPE(4);
  3361. if (ARRAY_TYPE != Float32Array) {
  3362. out[0] = 0;
  3363. out[1] = 0;
  3364. out[2] = 0;
  3365. }
  3366. out[3] = 1;
  3367. return out;
  3368. }
  3369. function setAxisAngle(out, axis, rad) {
  3370. rad = rad * 0.5;
  3371. var s = Math.sin(rad);
  3372. out[0] = s * axis[0];
  3373. out[1] = s * axis[1];
  3374. out[2] = s * axis[2];
  3375. out[3] = Math.cos(rad);
  3376. return out;
  3377. }
  3378. function slerp(out, a, b, t) {
  3379. var ax = a[0], ay = a[1], az = a[2], aw = a[3];
  3380. var bx = b[0], by = b[1], bz = b[2], bw = b[3];
  3381. var omega, cosom, sinom, scale0, scale1;
  3382. cosom = ax * bx + ay * by + az * bz + aw * bw;
  3383. if (cosom < 0) {
  3384. cosom = -cosom;
  3385. bx = -bx;
  3386. by = -by;
  3387. bz = -bz;
  3388. bw = -bw;
  3389. }
  3390. if (1 - cosom > EPSILON) {
  3391. omega = Math.acos(cosom);
  3392. sinom = Math.sin(omega);
  3393. scale0 = Math.sin((1 - t) * omega) / sinom;
  3394. scale1 = Math.sin(t * omega) / sinom;
  3395. } else {
  3396. scale0 = 1 - t;
  3397. scale1 = t;
  3398. }
  3399. out[0] = scale0 * ax + scale1 * bx;
  3400. out[1] = scale0 * ay + scale1 * by;
  3401. out[2] = scale0 * az + scale1 * bz;
  3402. out[3] = scale0 * aw + scale1 * bw;
  3403. return out;
  3404. }
  3405. function fromMat3(out, m) {
  3406. var fTrace = m[0] + m[4] + m[8];
  3407. var fRoot;
  3408. if (fTrace > 0) {
  3409. fRoot = Math.sqrt(fTrace + 1);
  3410. out[3] = 0.5 * fRoot;
  3411. fRoot = 0.5 / fRoot;
  3412. out[0] = (m[5] - m[7]) * fRoot;
  3413. out[1] = (m[6] - m[2]) * fRoot;
  3414. out[2] = (m[1] - m[3]) * fRoot;
  3415. } else {
  3416. var i = 0;
  3417. if (m[4] > m[0])
  3418. i = 1;
  3419. if (m[8] > m[i * 3 + i])
  3420. i = 2;
  3421. var j = (i + 1) % 3;
  3422. var k = (i + 2) % 3;
  3423. fRoot = Math.sqrt(m[i * 3 + i] - m[j * 3 + j] - m[k * 3 + k] + 1);
  3424. out[i] = 0.5 * fRoot;
  3425. fRoot = 0.5 / fRoot;
  3426. out[3] = (m[j * 3 + k] - m[k * 3 + j]) * fRoot;
  3427. out[j] = (m[j * 3 + i] + m[i * 3 + j]) * fRoot;
  3428. out[k] = (m[k * 3 + i] + m[i * 3 + k]) * fRoot;
  3429. }
  3430. return out;
  3431. }
  3432. var normalize3, rotationTo, sqlerp, setAxes;
  3433. var init_quat = __esm({
  3434. "node_modules/gl-matrix/esm/quat.js"() {
  3435. init_common();
  3436. init_mat3();
  3437. init_vec3();
  3438. init_vec4();
  3439. normalize3 = normalize2;
  3440. rotationTo = function() {
  3441. var tmpvec3 = create2();
  3442. var xUnitVec3 = fromValues2(1, 0, 0);
  3443. var yUnitVec3 = fromValues2(0, 1, 0);
  3444. return function(out, a, b) {
  3445. var dot5 = dot(a, b);
  3446. if (dot5 < -0.999999) {
  3447. cross(tmpvec3, xUnitVec3, a);
  3448. if (len(tmpvec3) < 1e-6)
  3449. cross(tmpvec3, yUnitVec3, a);
  3450. normalize(tmpvec3, tmpvec3);
  3451. setAxisAngle(out, tmpvec3, Math.PI);
  3452. return out;
  3453. } else if (dot5 > 0.999999) {
  3454. out[0] = 0;
  3455. out[1] = 0;
  3456. out[2] = 0;
  3457. out[3] = 1;
  3458. return out;
  3459. } else {
  3460. cross(tmpvec3, a, b);
  3461. out[0] = tmpvec3[0];
  3462. out[1] = tmpvec3[1];
  3463. out[2] = tmpvec3[2];
  3464. out[3] = 1 + dot5;
  3465. return normalize3(out, out);
  3466. }
  3467. };
  3468. }();
  3469. sqlerp = function() {
  3470. var temp1 = create4();
  3471. var temp2 = create4();
  3472. return function(out, a, b, c, d, t) {
  3473. slerp(temp1, a, d, t);
  3474. slerp(temp2, b, c, t);
  3475. slerp(out, temp1, temp2, 2 * t * (1 - t));
  3476. return out;
  3477. };
  3478. }();
  3479. setAxes = function() {
  3480. var matr = create();
  3481. return function(out, view, right, up) {
  3482. matr[0] = right[0];
  3483. matr[3] = right[1];
  3484. matr[6] = right[2];
  3485. matr[1] = up[0];
  3486. matr[4] = up[1];
  3487. matr[7] = up[2];
  3488. matr[2] = -view[0];
  3489. matr[5] = -view[1];
  3490. matr[8] = -view[2];
  3491. return normalize3(out, fromMat3(out, matr));
  3492. };
  3493. }();
  3494. }
  3495. });
  3496. // node_modules/gl-matrix/esm/quat2.js
  3497. var init_quat2 = __esm({
  3498. "node_modules/gl-matrix/esm/quat2.js"() {
  3499. init_common();
  3500. init_quat();
  3501. init_mat4();
  3502. }
  3503. });
  3504. // node_modules/gl-matrix/esm/vec2.js
  3505. var vec2_exports = {};
  3506. __export(vec2_exports, {
  3507. add: () => add4,
  3508. angle: () => angle2,
  3509. ceil: () => ceil2,
  3510. clone: () => clone5,
  3511. copy: () => copy5,
  3512. create: () => create5,
  3513. cross: () => cross2,
  3514. dist: () => dist2,
  3515. distance: () => distance2,
  3516. div: () => div2,
  3517. divide: () => divide2,
  3518. dot: () => dot4,
  3519. equals: () => equals4,
  3520. exactEquals: () => exactEquals4,
  3521. floor: () => floor2,
  3522. forEach: () => forEach3,
  3523. fromValues: () => fromValues4,
  3524. inverse: () => inverse2,
  3525. len: () => len2,
  3526. length: () => length4,
  3527. lerp: () => lerp3,
  3528. max: () => max2,
  3529. min: () => min2,
  3530. mul: () => mul3,
  3531. multiply: () => multiply3,
  3532. negate: () => negate2,
  3533. normalize: () => normalize4,
  3534. random: () => random2,
  3535. rotate: () => rotate2,
  3536. round: () => round2,
  3537. scale: () => scale4,
  3538. scaleAndAdd: () => scaleAndAdd2,
  3539. set: () => set4,
  3540. sqrDist: () => sqrDist2,
  3541. sqrLen: () => sqrLen2,
  3542. squaredDistance: () => squaredDistance2,
  3543. squaredLength: () => squaredLength4,
  3544. str: () => str3,
  3545. sub: () => sub3,
  3546. subtract: () => subtract3,
  3547. transformMat2: () => transformMat2,
  3548. transformMat2d: () => transformMat2d,
  3549. transformMat3: () => transformMat32,
  3550. transformMat4: () => transformMat42,
  3551. zero: () => zero2
  3552. });
  3553. function create5() {
  3554. var out = new ARRAY_TYPE(2);
  3555. if (ARRAY_TYPE != Float32Array) {
  3556. out[0] = 0;
  3557. out[1] = 0;
  3558. }
  3559. return out;
  3560. }
  3561. function clone5(a) {
  3562. var out = new ARRAY_TYPE(2);
  3563. out[0] = a[0];
  3564. out[1] = a[1];
  3565. return out;
  3566. }
  3567. function fromValues4(x, y) {
  3568. var out = new ARRAY_TYPE(2);
  3569. out[0] = x;
  3570. out[1] = y;
  3571. return out;
  3572. }
  3573. function copy5(out, a) {
  3574. out[0] = a[0];
  3575. out[1] = a[1];
  3576. return out;
  3577. }
  3578. function set4(out, x, y) {
  3579. out[0] = x;
  3580. out[1] = y;
  3581. return out;
  3582. }
  3583. function add4(out, a, b) {
  3584. out[0] = a[0] + b[0];
  3585. out[1] = a[1] + b[1];
  3586. return out;
  3587. }
  3588. function subtract3(out, a, b) {
  3589. out[0] = a[0] - b[0];
  3590. out[1] = a[1] - b[1];
  3591. return out;
  3592. }
  3593. function multiply3(out, a, b) {
  3594. out[0] = a[0] * b[0];
  3595. out[1] = a[1] * b[1];
  3596. return out;
  3597. }
  3598. function divide2(out, a, b) {
  3599. out[0] = a[0] / b[0];
  3600. out[1] = a[1] / b[1];
  3601. return out;
  3602. }
  3603. function ceil2(out, a) {
  3604. out[0] = Math.ceil(a[0]);
  3605. out[1] = Math.ceil(a[1]);
  3606. return out;
  3607. }
  3608. function floor2(out, a) {
  3609. out[0] = Math.floor(a[0]);
  3610. out[1] = Math.floor(a[1]);
  3611. return out;
  3612. }
  3613. function min2(out, a, b) {
  3614. out[0] = Math.min(a[0], b[0]);
  3615. out[1] = Math.min(a[1], b[1]);
  3616. return out;
  3617. }
  3618. function max2(out, a, b) {
  3619. out[0] = Math.max(a[0], b[0]);
  3620. out[1] = Math.max(a[1], b[1]);
  3621. return out;
  3622. }
  3623. function round2(out, a) {
  3624. out[0] = Math.round(a[0]);
  3625. out[1] = Math.round(a[1]);
  3626. return out;
  3627. }
  3628. function scale4(out, a, b) {
  3629. out[0] = a[0] * b;
  3630. out[1] = a[1] * b;
  3631. return out;
  3632. }
  3633. function scaleAndAdd2(out, a, b, scale5) {
  3634. out[0] = a[0] + b[0] * scale5;
  3635. out[1] = a[1] + b[1] * scale5;
  3636. return out;
  3637. }
  3638. function distance2(a, b) {
  3639. var x = b[0] - a[0], y = b[1] - a[1];
  3640. return Math.hypot(x, y);
  3641. }
  3642. function squaredDistance2(a, b) {
  3643. var x = b[0] - a[0], y = b[1] - a[1];
  3644. return x * x + y * y;
  3645. }
  3646. function length4(a) {
  3647. var x = a[0], y = a[1];
  3648. return Math.hypot(x, y);
  3649. }
  3650. function squaredLength4(a) {
  3651. var x = a[0], y = a[1];
  3652. return x * x + y * y;
  3653. }
  3654. function negate2(out, a) {
  3655. out[0] = -a[0];
  3656. out[1] = -a[1];
  3657. return out;
  3658. }
  3659. function inverse2(out, a) {
  3660. out[0] = 1 / a[0];
  3661. out[1] = 1 / a[1];
  3662. return out;
  3663. }
  3664. function normalize4(out, a) {
  3665. var x = a[0], y = a[1];
  3666. var len3 = x * x + y * y;
  3667. if (len3 > 0) {
  3668. len3 = 1 / Math.sqrt(len3);
  3669. }
  3670. out[0] = a[0] * len3;
  3671. out[1] = a[1] * len3;
  3672. return out;
  3673. }
  3674. function dot4(a, b) {
  3675. return a[0] * b[0] + a[1] * b[1];
  3676. }
  3677. function cross2(out, a, b) {
  3678. var z = a[0] * b[1] - a[1] * b[0];
  3679. out[0] = out[1] = 0;
  3680. out[2] = z;
  3681. return out;
  3682. }
  3683. function lerp3(out, a, b, t) {
  3684. var ax = a[0], ay = a[1];
  3685. out[0] = ax + t * (b[0] - ax);
  3686. out[1] = ay + t * (b[1] - ay);
  3687. return out;
  3688. }
  3689. function random2(out, scale5) {
  3690. scale5 = scale5 || 1;
  3691. var r = RANDOM() * 2 * Math.PI;
  3692. out[0] = Math.cos(r) * scale5;
  3693. out[1] = Math.sin(r) * scale5;
  3694. return out;
  3695. }
  3696. function transformMat2(out, a, m) {
  3697. var x = a[0], y = a[1];
  3698. out[0] = m[0] * x + m[2] * y;
  3699. out[1] = m[1] * x + m[3] * y;
  3700. return out;
  3701. }
  3702. function transformMat2d(out, a, m) {
  3703. var x = a[0], y = a[1];
  3704. out[0] = m[0] * x + m[2] * y + m[4];
  3705. out[1] = m[1] * x + m[3] * y + m[5];
  3706. return out;
  3707. }
  3708. function transformMat32(out, a, m) {
  3709. var x = a[0], y = a[1];
  3710. out[0] = m[0] * x + m[3] * y + m[6];
  3711. out[1] = m[1] * x + m[4] * y + m[7];
  3712. return out;
  3713. }
  3714. function transformMat42(out, a, m) {
  3715. var x = a[0];
  3716. var y = a[1];
  3717. out[0] = m[0] * x + m[4] * y + m[12];
  3718. out[1] = m[1] * x + m[5] * y + m[13];
  3719. return out;
  3720. }
  3721. function rotate2(out, a, b, rad) {
  3722. var p0 = a[0] - b[0], p1 = a[1] - b[1], sinC = Math.sin(rad), cosC = Math.cos(rad);
  3723. out[0] = p0 * cosC - p1 * sinC + b[0];
  3724. out[1] = p0 * sinC + p1 * cosC + b[1];
  3725. return out;
  3726. }
  3727. function angle2(a, b) {
  3728. var x1 = a[0], y1 = a[1], x2 = b[0], y2 = b[1], mag = Math.sqrt(x1 * x1 + y1 * y1) * Math.sqrt(x2 * x2 + y2 * y2), cosine = mag && (x1 * x2 + y1 * y2) / mag;
  3729. return Math.acos(Math.min(Math.max(cosine, -1), 1));
  3730. }
  3731. function zero2(out) {
  3732. out[0] = 0;
  3733. out[1] = 0;
  3734. return out;
  3735. }
  3736. function str3(a) {
  3737. return "vec2(" + a[0] + ", " + a[1] + ")";
  3738. }
  3739. function exactEquals4(a, b) {
  3740. return a[0] === b[0] && a[1] === b[1];
  3741. }
  3742. function equals4(a, b) {
  3743. var a0 = a[0], a1 = a[1];
  3744. var b0 = b[0], b1 = b[1];
  3745. return Math.abs(a0 - b0) <= EPSILON * Math.max(1, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= EPSILON * Math.max(1, Math.abs(a1), Math.abs(b1));
  3746. }
  3747. var len2, sub3, mul3, div2, dist2, sqrDist2, sqrLen2, forEach3;
  3748. var init_vec2 = __esm({
  3749. "node_modules/gl-matrix/esm/vec2.js"() {
  3750. init_common();
  3751. len2 = length4;
  3752. sub3 = subtract3;
  3753. mul3 = multiply3;
  3754. div2 = divide2;
  3755. dist2 = distance2;
  3756. sqrDist2 = squaredDistance2;
  3757. sqrLen2 = squaredLength4;
  3758. forEach3 = function() {
  3759. var vec = create5();
  3760. return function(a, stride, offset, count, fn, arg) {
  3761. var i, l;
  3762. if (!stride) {
  3763. stride = 2;
  3764. }
  3765. if (!offset) {
  3766. offset = 0;
  3767. }
  3768. if (count) {
  3769. l = Math.min(count * stride + offset, a.length);
  3770. } else {
  3771. l = a.length;
  3772. }
  3773. for (i = offset; i < l; i += stride) {
  3774. vec[0] = a[i];
  3775. vec[1] = a[i + 1];
  3776. fn(vec, vec, arg);
  3777. a[i] = vec[0];
  3778. a[i + 1] = vec[1];
  3779. }
  3780. return a;
  3781. };
  3782. }();
  3783. }
  3784. });
  3785. // node_modules/gl-matrix/esm/index.js
  3786. var init_esm2 = __esm({
  3787. "node_modules/gl-matrix/esm/index.js"() {
  3788. init_common();
  3789. init_mat2();
  3790. init_mat2d();
  3791. init_mat3();
  3792. init_mat4();
  3793. init_quat();
  3794. init_quat2();
  3795. init_vec2();
  3796. init_vec3();
  3797. init_vec4();
  3798. }
  3799. });
  3800. // node_modules/@antv/matrix-util/esm/ext.js
  3801. var ext_exports = {};
  3802. __export(ext_exports, {
  3803. angleTo: () => angleTo,
  3804. direction: () => direction,
  3805. leftRotate: () => leftRotate,
  3806. leftScale: () => leftScale,
  3807. leftTranslate: () => leftTranslate,
  3808. transform: () => transform,
  3809. vertical: () => vertical
  3810. });
  3811. function leftTranslate(out, a, v) {
  3812. var transMat = [0, 0, 0, 0, 0, 0, 0, 0, 0];
  3813. mat3_exports.fromTranslation(transMat, v);
  3814. return mat3_exports.multiply(out, transMat, a);
  3815. }
  3816. function leftRotate(out, a, rad) {
  3817. var rotateMat = [0, 0, 0, 0, 0, 0, 0, 0, 0];
  3818. mat3_exports.fromRotation(rotateMat, rad);
  3819. return mat3_exports.multiply(out, rotateMat, a);
  3820. }
  3821. function leftScale(out, a, v) {
  3822. var scaleMat = [0, 0, 0, 0, 0, 0, 0, 0, 0];
  3823. mat3_exports.fromScaling(scaleMat, v);
  3824. return mat3_exports.multiply(out, scaleMat, a);
  3825. }
  3826. function leftMultiply(out, a, a1) {
  3827. return mat3_exports.multiply(out, a1, a);
  3828. }
  3829. function transform(m, actions) {
  3830. var matrix = m ? [].concat(m) : [1, 0, 0, 0, 1, 0, 0, 0, 1];
  3831. for (var i = 0, len3 = actions.length; i < len3; i++) {
  3832. var action = actions[i];
  3833. switch (action[0]) {
  3834. case "t":
  3835. leftTranslate(matrix, matrix, [action[1], action[2]]);
  3836. break;
  3837. case "s":
  3838. leftScale(matrix, matrix, [action[1], action[2]]);
  3839. break;
  3840. case "r":
  3841. leftRotate(matrix, matrix, action[1]);
  3842. break;
  3843. case "m":
  3844. leftMultiply(matrix, matrix, action[1]);
  3845. break;
  3846. default:
  3847. break;
  3848. }
  3849. }
  3850. return matrix;
  3851. }
  3852. function direction(v1, v2) {
  3853. return v1[0] * v2[1] - v2[0] * v1[1];
  3854. }
  3855. function angleTo(v1, v2, direct) {
  3856. var ang = vec2_exports.angle(v1, v2);
  3857. var angleLargeThanPI = direction(v1, v2) >= 0;
  3858. if (direct) {
  3859. if (angleLargeThanPI) {
  3860. return Math.PI * 2 - ang;
  3861. }
  3862. return ang;
  3863. }
  3864. if (angleLargeThanPI) {
  3865. return ang;
  3866. }
  3867. return Math.PI * 2 - ang;
  3868. }
  3869. function vertical(out, v, flag) {
  3870. if (flag) {
  3871. out[0] = v[1];
  3872. out[1] = -1 * v[0];
  3873. } else {
  3874. out[0] = -1 * v[1];
  3875. out[1] = v[0];
  3876. }
  3877. return out;
  3878. }
  3879. var init_ext = __esm({
  3880. "node_modules/@antv/matrix-util/esm/ext.js"() {
  3881. init_esm2();
  3882. }
  3883. });
  3884. // node_modules/@antv/matrix-util/esm/index.js
  3885. var esm_exports2 = {};
  3886. __export(esm_exports2, {
  3887. ext: () => ext_exports,
  3888. mat3: () => mat3_exports,
  3889. vec2: () => vec2_exports,
  3890. vec3: () => vec3_exports
  3891. });
  3892. var init_esm3 = __esm({
  3893. "node_modules/@antv/matrix-util/esm/index.js"() {
  3894. init_esm2();
  3895. init_ext();
  3896. }
  3897. });
  3898. export {
  3899. __extends,
  3900. __assign,
  3901. __rest,
  3902. __awaiter,
  3903. __generator,
  3904. __values,
  3905. __read,
  3906. __spreadArrays,
  3907. __spreadArray,
  3908. init_tslib_es6,
  3909. contains_default,
  3910. filter_default,
  3911. difference_default,
  3912. is_type_default,
  3913. is_function_default,
  3914. is_nil_default,
  3915. is_array_default,
  3916. is_object_default,
  3917. each_default,
  3918. keys_default,
  3919. is_match_default,
  3920. is_plain_object_default,
  3921. find_default,
  3922. find_index_default,
  3923. first_value_default,
  3924. flatten_default,
  3925. max_default,
  3926. min_default,
  3927. get_range_default,
  3928. reduce_default,
  3929. remove_default,
  3930. is_string_default,
  3931. sort_by_default,
  3932. uniq,
  3933. values_of_key_default,
  3934. head,
  3935. last,
  3936. every_default,
  3937. some_default,
  3938. group_by_default,
  3939. groupToMap,
  3940. group_default,
  3941. clamp_default,
  3942. fixed_base_default,
  3943. is_number_default,
  3944. isNumberEqual,
  3945. max_by_default,
  3946. min_by_default,
  3947. mod_default,
  3948. to_radian_default,
  3949. for_in_default,
  3950. has_key_default,
  3951. values_default,
  3952. to_string_default,
  3953. lower_case_default,
  3954. substitute_default,
  3955. upper_first_default,
  3956. is_boolean_default,
  3957. is_date_default,
  3958. is_null_default,
  3959. is_undefined_default,
  3960. is_element_default,
  3961. requestAnimationFrame,
  3962. cancelAnimationFrame,
  3963. mix,
  3964. clone_default,
  3965. debounce_default,
  3966. memoize_default,
  3967. deep_mix_default,
  3968. index_of_default,
  3969. is_empty_default,
  3970. is_equal_default,
  3971. map_default,
  3972. map_values_default,
  3973. get_default,
  3974. set_default,
  3975. pick_default,
  3976. omit_default,
  3977. throttle_default,
  3978. to_array_default,
  3979. unique_id_default,
  3980. noop_default,
  3981. size,
  3982. get_ellipsis_text_default,
  3983. cache_default,
  3984. esm_exports,
  3985. init_esm,
  3986. mat3_exports,
  3987. transformMat3,
  3988. vec3_exports,
  3989. init_vec3,
  3990. normalize4 as normalize,
  3991. dot4 as dot,
  3992. exactEquals4 as exactEquals,
  3993. vec2_exports,
  3994. init_vec2,
  3995. init_esm2,
  3996. ext_exports,
  3997. esm_exports2,
  3998. init_esm3
  3999. };
  4000. //# sourceMappingURL=chunk-KRTWMFYD.js.map