stats.html 271 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6. <meta http-equiv="X-UA-Compatible" content="ie=edge" />
  7. <title>Rollup Visualizer</title>
  8. <style>
  9. :root {
  10. --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
  11. "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  12. --background-color: #2b2d42;
  13. --text-color: #edf2f4;
  14. }
  15. html {
  16. box-sizing: border-box;
  17. }
  18. *,
  19. *:before,
  20. *:after {
  21. box-sizing: inherit;
  22. }
  23. html {
  24. background-color: var(--background-color);
  25. color: var(--text-color);
  26. font-family: var(--font-family);
  27. }
  28. body {
  29. padding: 0;
  30. margin: 0;
  31. }
  32. html,
  33. body {
  34. height: 100%;
  35. width: 100%;
  36. overflow: hidden;
  37. }
  38. body {
  39. display: flex;
  40. flex-direction: column;
  41. }
  42. svg {
  43. vertical-align: middle;
  44. width: 100%;
  45. height: 100%;
  46. max-height: 100vh;
  47. }
  48. main {
  49. flex-grow: 1;
  50. height: 100vh;
  51. padding: 20px;
  52. }
  53. .tooltip {
  54. position: absolute;
  55. z-index: 1070;
  56. border: 2px solid;
  57. border-radius: 5px;
  58. padding: 5px;
  59. white-space: nowrap;
  60. font-size: 0.875rem;
  61. background-color: var(--background-color);
  62. color: var(--text-color);
  63. }
  64. .tooltip-hidden {
  65. visibility: hidden;
  66. opacity: 0;
  67. }
  68. .sidebar {
  69. position: fixed;
  70. top: 0;
  71. left: 0;
  72. right: 0;
  73. display: flex;
  74. flex-direction: row;
  75. font-size: 0.7rem;
  76. align-items: center;
  77. margin: 0 50px;
  78. height: 20px;
  79. }
  80. .size-selectors {
  81. display: flex;
  82. flex-direction: row;
  83. align-items: center;
  84. }
  85. .size-selector {
  86. display: flex;
  87. flex-direction: row;
  88. align-items: center;
  89. justify-content: center;
  90. margin-right: 1rem;
  91. }
  92. .size-selector input {
  93. margin: 0 0.3rem 0 0;
  94. }
  95. .filters {
  96. flex: 1;
  97. display: flex;
  98. flex-direction: row;
  99. align-items: center;
  100. }
  101. .module-filters {
  102. display: flex;
  103. flex-grow: 1;
  104. }
  105. .module-filter {
  106. display: flex;
  107. flex-direction: row;
  108. align-items: center;
  109. justify-content: center;
  110. flex: 1;
  111. }
  112. .module-filter input {
  113. flex: 1;
  114. height: 1rem;
  115. padding: 0.01rem;
  116. font-size: 0.7rem;
  117. margin-left: 0.3rem;
  118. }
  119. .module-filter + .module-filter {
  120. margin-left: 0.5rem;
  121. }
  122. </style>
  123. </head>
  124. <body>
  125. <main></main>
  126. <script>
  127. /*<!--*/
  128. var drawChart = (function (exports) {
  129. 'use strict';
  130. var n,l$1,u$1,t$1,o$2,r$1,f$1={},e$1=[],c$1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function s$1(n,l){for(var u in l)n[u]=l[u];return n}function a$1(n){var l=n.parentNode;l&&l.removeChild(n);}function h$1(l,u,i){var t,o,r,f={};for(r in u)"key"==r?t=u[r]:"ref"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):i),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return v$1(l,f,t,o,null)}function v$1(n,i,t,o,r){var f={type:n,props:i,key:t,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++u$1:r};return null==r&&null!=l$1.vnode&&l$1.vnode(f),f}function p$1(n){return n.children}function d$1(n,l){this.props=n,this.context=l;}function _$2(n,l){if(null==l)return n.__?_$2(n.__,n.__.__k.indexOf(n)+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return "function"==typeof n.type?_$2(n):null}function k$1(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return k$1(n)}}function b$1(n){(!n.__d&&(n.__d=!0)&&t$1.push(n)&&!g$1.__r++||o$2!==l$1.debounceRendering)&&((o$2=l$1.debounceRendering)||setTimeout)(g$1);}function g$1(){for(var n;g$1.__r=t$1.length;)n=t$1.sort(function(n,l){return n.__v.__b-l.__v.__b}),t$1=[],n.some(function(n){var l,u,i,t,o,r;n.__d&&(o=(t=(l=n).__v).__e,(r=l.__P)&&(u=[],(i=s$1({},t)).__v=t.__v+1,j$1(r,t,i,l.__n,void 0!==r.ownerSVGElement,null!=t.__h?[o]:null,u,null==o?_$2(t):o,t.__h),z$1(u,t),t.__e!=o&&k$1(t)));});}function w$1(n,l,u,i,t,o,r,c,s,a){var h,y,d,k,b,g,w,x=i&&i.__k||e$1,C=x.length;for(u.__k=[],h=0;h<l.length;h++)if(null!=(k=u.__k[h]=null==(k=l[h])||"boolean"==typeof k?null:"string"==typeof k||"number"==typeof k||"bigint"==typeof k?v$1(null,k,null,null,k):Array.isArray(k)?v$1(p$1,{children:k},null,null,null):k.__b>0?v$1(k.type,k.props,k.key,k.ref?k.ref:null,k.__v):k)){if(k.__=u,k.__b=u.__b+1,null===(d=x[h])||d&&k.key==d.key&&k.type===d.type)x[h]=void 0;else for(y=0;y<C;y++){if((d=x[y])&&k.key==d.key&&k.type===d.type){x[y]=void 0;break}d=null;}j$1(n,k,d=d||f$1,t,o,r,c,s,a),b=k.__e,(y=k.ref)&&d.ref!=y&&(w||(w=[]),d.ref&&w.push(d.ref,null,k),w.push(y,k.__c||b,k)),null!=b?(null==g&&(g=b),"function"==typeof k.type&&k.__k===d.__k?k.__d=s=m$1(k,s,n):s=A$1(n,k,d,x,b,s),"function"==typeof u.type&&(u.__d=s)):s&&d.__e==s&&s.parentNode!=n&&(s=_$2(d));}for(u.__e=g,h=C;h--;)null!=x[h]&&N(x[h],x[h]);if(w)for(h=0;h<w.length;h++)M(w[h],w[++h],w[++h]);}function m$1(n,l,u){for(var i,t=n.__k,o=0;t&&o<t.length;o++)(i=t[o])&&(i.__=n,l="function"==typeof i.type?m$1(i,l,u):A$1(u,i,i,t,i.__e,l));return l}function A$1(n,l,u,i,t,o){var r,f,e;if(void 0!==l.__d)r=l.__d,l.__d=void 0;else if(null==u||t!=o||null==t.parentNode)n:if(null==o||o.parentNode!==n)n.appendChild(t),r=null;else {for(f=o,e=0;(f=f.nextSibling)&&e<i.length;e+=1)if(f==t)break n;n.insertBefore(t,o),r=o;}return void 0!==r?r:t.nextSibling}function C$1(n,l,u,i,t){var o;for(o in u)"children"===o||"key"===o||o in l||H(n,o,null,u[o],i);for(o in l)t&&"function"!=typeof l[o]||"children"===o||"key"===o||"value"===o||"checked"===o||u[o]===l[o]||H(n,o,l[o],u[o],i);}function $(n,l,u){"-"===l[0]?n.setProperty(l,u):n[l]=null==u?"":"number"!=typeof u||c$1.test(l)?u:u+"px";}function H(n,l,u,i,t){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof i&&(n.style.cssText=i=""),i)for(l in i)u&&l in u||$(n.style,l,"");if(u)for(l in u)i&&u[l]===i[l]||$(n.style,l,u[l]);}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/Capture$/,"")),l=l.toLowerCase()in n?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?i||n.addEventListener(l,o?T$1:I,o):n.removeEventListener(l,o?T$1:I,o);else if("dangerouslySetInnerHTML"!==l){if(t)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&-1==l.indexOf("-")?n.removeAttribute(l):n.setAttribute(l,u));}}function I(n){this.l[n.type+!1](l$1.event?l$1.event(n):n);}function T$1(n){this.l[n.type+!0](l$1.event?l$1.event(n):n);}function j$1(n,u,i,t,o,r,f,e,c){var a,h,v,y,_,k,b,g,m,x,A,C,$,H,I,T=u.type;if(void 0!==u.constructor)return null;null!=i.__h&&(c=i.__h,e=u.__e=i.__e,u.__h=null,r=[e]),(a=l$1.__b)&&a(u);try{n:if("function"==typeof T){if(g=u.props,m=(a=T.contextType)&&t[a.__c],x=a?m?m.props.value:a.__:t,i.__c?b=(h=u.__c=i.__c).__=h.__E:("prototype"in T&&T.prototype.render?u.__c=h=new T(g,x):(u.__c=h=new d$1(g,x),h.constructor=T,h.render=O),m&&m.sub(h),h.props=g,h.state||(h.state={}),h.context=x,h.__n=t,v=h.__d=!0,h.__h=[],h._sb=[]),null==h.__s&&(h.__s=h.state),null!=T.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=s$1({},h.__s)),s$1(h.__s,T.getDerivedStateFromProps(g,h.__s))),y=h.props,_=h.state,v)null==T.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else {if(null==T.getDerivedStateFromProps&&g!==y&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(g,x),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(g,h.__s,x)||u.__v===i.__v){for(h.props=g,h.state=h.__s,u.__v!==i.__v&&(h.__d=!1),h.__v=u,u.__e=i.__e,u.__k=i.__k,u.__k.forEach(function(n){n&&(n.__=u);}),A=0;A<h._sb.length;A++)h.__h.push(h._sb[A]);h._sb=[],h.__h.length&&f.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(g,h.__s,x),null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(y,_,k);});}if(h.context=x,h.props=g,h.__v=u,h.__P=n,C=l$1.__r,$=0,"prototype"in T&&T.prototype.render){for(h.state=h.__s,h.__d=!1,C&&C(u),a=h.render(h.props,h.state,h.context),H=0;H<h._sb.length;H++)h.__h.push(h._sb[H]);h._sb=[];}else do{h.__d=!1,C&&C(u),a=h.render(h.props,h.state,h.context),h.state=h.__s;}while(h.__d&&++$<25);h.state=h.__s,null!=h.getChildContext&&(t=s$1(s$1({},t),h.getChildContext())),v||null==h.getSnapshotBeforeUpdate||(k=h.getSnapshotBeforeUpdate(y,_)),I=null!=a&&a.type===p$1&&null==a.key?a.props.children:a,w$1(n,Array.isArray(I)?I:[I],u,i,t,o,r,f,e,c),h.base=u.__e,u.__h=null,h.__h.length&&f.push(h),b&&(h.__E=h.__=null),h.__e=!1;}else null==r&&u.__v===i.__v?(u.__k=i.__k,u.__e=i.__e):u.__e=L(i.__e,u,i,t,o,r,f,c);(a=l$1.diffed)&&a(u);}catch(n){u.__v=null,(c||null!=r)&&(u.__e=e,u.__h=!!c,r[r.indexOf(e)]=null),l$1.__e(n,u,i);}}function z$1(n,u){l$1.__c&&l$1.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l$1.__e(n,u.__v);}});}function L(l,u,i,t,o,r,e,c){var s,h,v,y=i.props,p=u.props,d=u.type,k=0;if("svg"===d&&(o=!0),null!=r)for(;k<r.length;k++)if((s=r[k])&&"setAttribute"in s==!!d&&(d?s.localName===d:3===s.nodeType)){l=s,r[k]=null;break}if(null==l){if(null===d)return document.createTextNode(p);l=o?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,p.is&&p),r=null,c=!1;}if(null===d)y===p||c&&l.data===p||(l.data=p);else {if(r=r&&n.call(l.childNodes),h=(y=i.props||f$1).dangerouslySetInnerHTML,v=p.dangerouslySetInnerHTML,!c){if(null!=r)for(y={},k=0;k<l.attributes.length;k++)y[l.attributes[k].name]=l.attributes[k].value;(v||h)&&(v&&(h&&v.__html==h.__html||v.__html===l.innerHTML)||(l.innerHTML=v&&v.__html||""));}if(C$1(l,p,y,o,c),v)u.__k=[];else if(k=u.props.children,w$1(l,Array.isArray(k)?k:[k],u,i,t,o&&"foreignObject"!==d,r,e,r?r[0]:i.__k&&_$2(i,0),c),null!=r)for(k=r.length;k--;)null!=r[k]&&a$1(r[k]);c||("value"in p&&void 0!==(k=p.value)&&(k!==l.value||"progress"===d&&!k||"option"===d&&k!==y.value)&&H(l,"value",k,y.value,!1),"checked"in p&&void 0!==(k=p.checked)&&k!==l.checked&&H(l,"checked",k,y.checked,!1));}return l}function M(n,u,i){try{"function"==typeof n?n(u):n.current=u;}catch(n){l$1.__e(n,i);}}function N(n,u,i){var t,o;if(l$1.unmount&&l$1.unmount(n),(t=n.ref)&&(t.current&&t.current!==n.__e||M(t,null,u)),null!=(t=n.__c)){if(t.componentWillUnmount)try{t.componentWillUnmount();}catch(n){l$1.__e(n,u);}t.base=t.__P=null,n.__c=void 0;}if(t=n.__k)for(o=0;o<t.length;o++)t[o]&&N(t[o],u,i||"function"!=typeof n.type);i||null==n.__e||a$1(n.__e),n.__=n.__e=n.__d=void 0;}function O(n,l,u){return this.constructor(n,u)}function P(u,i,t){var o,r,e;l$1.__&&l$1.__(u,i),r=(o="function"==typeof t)?null:t&&t.__k||i.__k,e=[],j$1(i,u=(!o&&t||i).__k=h$1(p$1,null,[u]),r||f$1,f$1,void 0!==i.ownerSVGElement,!o&&t?[t]:r?null:i.firstChild?n.call(i.childNodes):null,e,!o&&t?t:r?r.__e:i.firstChild,o),z$1(e,u);}function B$2(n,l){var u={__c:l="__cC"+r$1++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var u,i;return this.getChildContext||(u=[],(i={})[l]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&u.some(b$1);},this.sub=function(n){u.push(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u.splice(u.indexOf(n),1),l&&l.call(n);};}),n.children}};return u.Provider.__=u.Consumer.contextType=u}n=e$1.slice,l$1={__e:function(n,l,u,i){for(var t,o,r;l=l.__;)if((t=l.__c)&&!t.__)try{if((o=t.constructor)&&null!=o.getDerivedStateFromError&&(t.setState(o.getDerivedStateFromError(n)),r=t.__d),null!=t.componentDidCatch&&(t.componentDidCatch(n,i||{}),r=t.__d),r)return t.__E=t}catch(l){n=l;}throw n}},u$1=0,d$1.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=s$1({},this.state),"function"==typeof n&&(n=n(s$1({},u),this.props)),n&&s$1(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),b$1(this));},d$1.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),b$1(this));},d$1.prototype.render=p$1,t$1=[],g$1.__r=0,r$1=0;
  131. var _$1=0;function o$1(o,e,n,t,f){var l,s,u={};for(s in e)"ref"==s?l=e[s]:u[s]=e[s];var a={type:o,props:u,key:n,ref:l,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--_$1,__source:f,__self:t};if("function"==typeof o&&(l=o.defaultProps))for(s in l)void 0===u[s]&&(u[s]=l[s]);return l$1.vnode&&l$1.vnode(a),a}
  132. function count$1(node) {
  133. var sum = 0,
  134. children = node.children,
  135. i = children && children.length;
  136. if (!i) sum = 1;
  137. else while (--i >= 0) sum += children[i].value;
  138. node.value = sum;
  139. }
  140. function node_count() {
  141. return this.eachAfter(count$1);
  142. }
  143. function node_each(callback, that) {
  144. let index = -1;
  145. for (const node of this) {
  146. callback.call(that, node, ++index, this);
  147. }
  148. return this;
  149. }
  150. function node_eachBefore(callback, that) {
  151. var node = this, nodes = [node], children, i, index = -1;
  152. while (node = nodes.pop()) {
  153. callback.call(that, node, ++index, this);
  154. if (children = node.children) {
  155. for (i = children.length - 1; i >= 0; --i) {
  156. nodes.push(children[i]);
  157. }
  158. }
  159. }
  160. return this;
  161. }
  162. function node_eachAfter(callback, that) {
  163. var node = this, nodes = [node], next = [], children, i, n, index = -1;
  164. while (node = nodes.pop()) {
  165. next.push(node);
  166. if (children = node.children) {
  167. for (i = 0, n = children.length; i < n; ++i) {
  168. nodes.push(children[i]);
  169. }
  170. }
  171. }
  172. while (node = next.pop()) {
  173. callback.call(that, node, ++index, this);
  174. }
  175. return this;
  176. }
  177. function node_find(callback, that) {
  178. let index = -1;
  179. for (const node of this) {
  180. if (callback.call(that, node, ++index, this)) {
  181. return node;
  182. }
  183. }
  184. }
  185. function node_sum(value) {
  186. return this.eachAfter(function(node) {
  187. var sum = +value(node.data) || 0,
  188. children = node.children,
  189. i = children && children.length;
  190. while (--i >= 0) sum += children[i].value;
  191. node.value = sum;
  192. });
  193. }
  194. function node_sort(compare) {
  195. return this.eachBefore(function(node) {
  196. if (node.children) {
  197. node.children.sort(compare);
  198. }
  199. });
  200. }
  201. function node_path(end) {
  202. var start = this,
  203. ancestor = leastCommonAncestor(start, end),
  204. nodes = [start];
  205. while (start !== ancestor) {
  206. start = start.parent;
  207. nodes.push(start);
  208. }
  209. var k = nodes.length;
  210. while (end !== ancestor) {
  211. nodes.splice(k, 0, end);
  212. end = end.parent;
  213. }
  214. return nodes;
  215. }
  216. function leastCommonAncestor(a, b) {
  217. if (a === b) return a;
  218. var aNodes = a.ancestors(),
  219. bNodes = b.ancestors(),
  220. c = null;
  221. a = aNodes.pop();
  222. b = bNodes.pop();
  223. while (a === b) {
  224. c = a;
  225. a = aNodes.pop();
  226. b = bNodes.pop();
  227. }
  228. return c;
  229. }
  230. function node_ancestors() {
  231. var node = this, nodes = [node];
  232. while (node = node.parent) {
  233. nodes.push(node);
  234. }
  235. return nodes;
  236. }
  237. function node_descendants() {
  238. return Array.from(this);
  239. }
  240. function node_leaves() {
  241. var leaves = [];
  242. this.eachBefore(function(node) {
  243. if (!node.children) {
  244. leaves.push(node);
  245. }
  246. });
  247. return leaves;
  248. }
  249. function node_links() {
  250. var root = this, links = [];
  251. root.each(function(node) {
  252. if (node !== root) { // Don’t include the root’s parent, if any.
  253. links.push({source: node.parent, target: node});
  254. }
  255. });
  256. return links;
  257. }
  258. function* node_iterator() {
  259. var node = this, current, next = [node], children, i, n;
  260. do {
  261. current = next.reverse(), next = [];
  262. while (node = current.pop()) {
  263. yield node;
  264. if (children = node.children) {
  265. for (i = 0, n = children.length; i < n; ++i) {
  266. next.push(children[i]);
  267. }
  268. }
  269. }
  270. } while (next.length);
  271. }
  272. function hierarchy(data, children) {
  273. if (data instanceof Map) {
  274. data = [undefined, data];
  275. if (children === undefined) children = mapChildren;
  276. } else if (children === undefined) {
  277. children = objectChildren;
  278. }
  279. var root = new Node$1(data),
  280. node,
  281. nodes = [root],
  282. child,
  283. childs,
  284. i,
  285. n;
  286. while (node = nodes.pop()) {
  287. if ((childs = children(node.data)) && (n = (childs = Array.from(childs)).length)) {
  288. node.children = childs;
  289. for (i = n - 1; i >= 0; --i) {
  290. nodes.push(child = childs[i] = new Node$1(childs[i]));
  291. child.parent = node;
  292. child.depth = node.depth + 1;
  293. }
  294. }
  295. }
  296. return root.eachBefore(computeHeight);
  297. }
  298. function node_copy() {
  299. return hierarchy(this).eachBefore(copyData);
  300. }
  301. function objectChildren(d) {
  302. return d.children;
  303. }
  304. function mapChildren(d) {
  305. return Array.isArray(d) ? d[1] : null;
  306. }
  307. function copyData(node) {
  308. if (node.data.value !== undefined) node.value = node.data.value;
  309. node.data = node.data.data;
  310. }
  311. function computeHeight(node) {
  312. var height = 0;
  313. do node.height = height;
  314. while ((node = node.parent) && (node.height < ++height));
  315. }
  316. function Node$1(data) {
  317. this.data = data;
  318. this.depth =
  319. this.height = 0;
  320. this.parent = null;
  321. }
  322. Node$1.prototype = hierarchy.prototype = {
  323. constructor: Node$1,
  324. count: node_count,
  325. each: node_each,
  326. eachAfter: node_eachAfter,
  327. eachBefore: node_eachBefore,
  328. find: node_find,
  329. sum: node_sum,
  330. sort: node_sort,
  331. path: node_path,
  332. ancestors: node_ancestors,
  333. descendants: node_descendants,
  334. leaves: node_leaves,
  335. links: node_links,
  336. copy: node_copy,
  337. [Symbol.iterator]: node_iterator
  338. };
  339. function required(f) {
  340. if (typeof f !== "function") throw new Error;
  341. return f;
  342. }
  343. function constantZero() {
  344. return 0;
  345. }
  346. function constant$1(x) {
  347. return function() {
  348. return x;
  349. };
  350. }
  351. function roundNode(node) {
  352. node.x0 = Math.round(node.x0);
  353. node.y0 = Math.round(node.y0);
  354. node.x1 = Math.round(node.x1);
  355. node.y1 = Math.round(node.y1);
  356. }
  357. function treemapDice(parent, x0, y0, x1, y1) {
  358. var nodes = parent.children,
  359. node,
  360. i = -1,
  361. n = nodes.length,
  362. k = parent.value && (x1 - x0) / parent.value;
  363. while (++i < n) {
  364. node = nodes[i], node.y0 = y0, node.y1 = y1;
  365. node.x0 = x0, node.x1 = x0 += node.value * k;
  366. }
  367. }
  368. Object.create(Node$1.prototype);
  369. function treemapSlice(parent, x0, y0, x1, y1) {
  370. var nodes = parent.children,
  371. node,
  372. i = -1,
  373. n = nodes.length,
  374. k = parent.value && (y1 - y0) / parent.value;
  375. while (++i < n) {
  376. node = nodes[i], node.x0 = x0, node.x1 = x1;
  377. node.y0 = y0, node.y1 = y0 += node.value * k;
  378. }
  379. }
  380. var phi = (1 + Math.sqrt(5)) / 2;
  381. function squarifyRatio(ratio, parent, x0, y0, x1, y1) {
  382. var rows = [],
  383. nodes = parent.children,
  384. row,
  385. nodeValue,
  386. i0 = 0,
  387. i1 = 0,
  388. n = nodes.length,
  389. dx, dy,
  390. value = parent.value,
  391. sumValue,
  392. minValue,
  393. maxValue,
  394. newRatio,
  395. minRatio,
  396. alpha,
  397. beta;
  398. while (i0 < n) {
  399. dx = x1 - x0, dy = y1 - y0;
  400. // Find the next non-empty node.
  401. do sumValue = nodes[i1++].value; while (!sumValue && i1 < n);
  402. minValue = maxValue = sumValue;
  403. alpha = Math.max(dy / dx, dx / dy) / (value * ratio);
  404. beta = sumValue * sumValue * alpha;
  405. minRatio = Math.max(maxValue / beta, beta / minValue);
  406. // Keep adding nodes while the aspect ratio maintains or improves.
  407. for (; i1 < n; ++i1) {
  408. sumValue += nodeValue = nodes[i1].value;
  409. if (nodeValue < minValue) minValue = nodeValue;
  410. if (nodeValue > maxValue) maxValue = nodeValue;
  411. beta = sumValue * sumValue * alpha;
  412. newRatio = Math.max(maxValue / beta, beta / minValue);
  413. if (newRatio > minRatio) { sumValue -= nodeValue; break; }
  414. minRatio = newRatio;
  415. }
  416. // Position and record the row orientation.
  417. rows.push(row = {value: sumValue, dice: dx < dy, children: nodes.slice(i0, i1)});
  418. if (row.dice) treemapDice(row, x0, y0, x1, value ? y0 += dy * sumValue / value : y1);
  419. else treemapSlice(row, x0, y0, value ? x0 += dx * sumValue / value : x1, y1);
  420. value -= sumValue, i0 = i1;
  421. }
  422. return rows;
  423. }
  424. var squarify = (function custom(ratio) {
  425. function squarify(parent, x0, y0, x1, y1) {
  426. squarifyRatio(ratio, parent, x0, y0, x1, y1);
  427. }
  428. squarify.ratio = function(x) {
  429. return custom((x = +x) > 1 ? x : 1);
  430. };
  431. return squarify;
  432. })(phi);
  433. function treemap() {
  434. var tile = squarify,
  435. round = false,
  436. dx = 1,
  437. dy = 1,
  438. paddingStack = [0],
  439. paddingInner = constantZero,
  440. paddingTop = constantZero,
  441. paddingRight = constantZero,
  442. paddingBottom = constantZero,
  443. paddingLeft = constantZero;
  444. function treemap(root) {
  445. root.x0 =
  446. root.y0 = 0;
  447. root.x1 = dx;
  448. root.y1 = dy;
  449. root.eachBefore(positionNode);
  450. paddingStack = [0];
  451. if (round) root.eachBefore(roundNode);
  452. return root;
  453. }
  454. function positionNode(node) {
  455. var p = paddingStack[node.depth],
  456. x0 = node.x0 + p,
  457. y0 = node.y0 + p,
  458. x1 = node.x1 - p,
  459. y1 = node.y1 - p;
  460. if (x1 < x0) x0 = x1 = (x0 + x1) / 2;
  461. if (y1 < y0) y0 = y1 = (y0 + y1) / 2;
  462. node.x0 = x0;
  463. node.y0 = y0;
  464. node.x1 = x1;
  465. node.y1 = y1;
  466. if (node.children) {
  467. p = paddingStack[node.depth + 1] = paddingInner(node) / 2;
  468. x0 += paddingLeft(node) - p;
  469. y0 += paddingTop(node) - p;
  470. x1 -= paddingRight(node) - p;
  471. y1 -= paddingBottom(node) - p;
  472. if (x1 < x0) x0 = x1 = (x0 + x1) / 2;
  473. if (y1 < y0) y0 = y1 = (y0 + y1) / 2;
  474. tile(node, x0, y0, x1, y1);
  475. }
  476. }
  477. treemap.round = function(x) {
  478. return arguments.length ? (round = !!x, treemap) : round;
  479. };
  480. treemap.size = function(x) {
  481. return arguments.length ? (dx = +x[0], dy = +x[1], treemap) : [dx, dy];
  482. };
  483. treemap.tile = function(x) {
  484. return arguments.length ? (tile = required(x), treemap) : tile;
  485. };
  486. treemap.padding = function(x) {
  487. return arguments.length ? treemap.paddingInner(x).paddingOuter(x) : treemap.paddingInner();
  488. };
  489. treemap.paddingInner = function(x) {
  490. return arguments.length ? (paddingInner = typeof x === "function" ? x : constant$1(+x), treemap) : paddingInner;
  491. };
  492. treemap.paddingOuter = function(x) {
  493. return arguments.length ? treemap.paddingTop(x).paddingRight(x).paddingBottom(x).paddingLeft(x) : treemap.paddingTop();
  494. };
  495. treemap.paddingTop = function(x) {
  496. return arguments.length ? (paddingTop = typeof x === "function" ? x : constant$1(+x), treemap) : paddingTop;
  497. };
  498. treemap.paddingRight = function(x) {
  499. return arguments.length ? (paddingRight = typeof x === "function" ? x : constant$1(+x), treemap) : paddingRight;
  500. };
  501. treemap.paddingBottom = function(x) {
  502. return arguments.length ? (paddingBottom = typeof x === "function" ? x : constant$1(+x), treemap) : paddingBottom;
  503. };
  504. treemap.paddingLeft = function(x) {
  505. return arguments.length ? (paddingLeft = typeof x === "function" ? x : constant$1(+x), treemap) : paddingLeft;
  506. };
  507. return treemap;
  508. }
  509. var treemapResquarify = (function custom(ratio) {
  510. function resquarify(parent, x0, y0, x1, y1) {
  511. if ((rows = parent._squarify) && (rows.ratio === ratio)) {
  512. var rows,
  513. row,
  514. nodes,
  515. i,
  516. j = -1,
  517. n,
  518. m = rows.length,
  519. value = parent.value;
  520. while (++j < m) {
  521. row = rows[j], nodes = row.children;
  522. for (i = row.value = 0, n = nodes.length; i < n; ++i) row.value += nodes[i].value;
  523. if (row.dice) treemapDice(row, x0, y0, x1, value ? y0 += (y1 - y0) * row.value / value : y1);
  524. else treemapSlice(row, x0, y0, value ? x0 += (x1 - x0) * row.value / value : x1, y1);
  525. value -= row.value;
  526. }
  527. } else {
  528. parent._squarify = rows = squarifyRatio(ratio, parent, x0, y0, x1, y1);
  529. rows.ratio = ratio;
  530. }
  531. }
  532. resquarify.ratio = function(x) {
  533. return custom((x = +x) > 1 ? x : 1);
  534. };
  535. return resquarify;
  536. })(phi);
  537. const isModuleTree = (mod) => "children" in mod;
  538. let count = 0;
  539. class Id {
  540. constructor(id) {
  541. this._id = id;
  542. const url = new URL(window.location.href);
  543. url.hash = id;
  544. this._href = url.toString();
  545. }
  546. get id() {
  547. return this._id;
  548. }
  549. get href() {
  550. return this._href;
  551. }
  552. toString() {
  553. return `url(${this.href})`;
  554. }
  555. }
  556. function generateUniqueId(name) {
  557. count += 1;
  558. const id = ["O", name, count].filter(Boolean).join("-");
  559. return new Id(id);
  560. }
  561. const LABELS = {
  562. renderedLength: "Rendered",
  563. gzipLength: "Gzip",
  564. brotliLength: "Brotli",
  565. };
  566. const getAvailableSizeOptions = (options) => {
  567. const availableSizeProperties = ["renderedLength"];
  568. if (options.gzip) {
  569. availableSizeProperties.push("gzipLength");
  570. }
  571. if (options.brotli) {
  572. availableSizeProperties.push("brotliLength");
  573. }
  574. return availableSizeProperties;
  575. };
  576. var t,r,u,i,o=0,f=[],c=[],e=l$1.__b,a=l$1.__r,v=l$1.diffed,l=l$1.__c,m=l$1.unmount;function d(t,u){l$1.__h&&l$1.__h(r,t,o||u),o=0;var i=r.__H||(r.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({__V:c}),i.__[t]}function p(n){return o=1,y(B$1,n)}function y(n,u,i){var o=d(t++,2);if(o.t=n,!o.__c&&(o.__=[i?i(u):B$1(void 0,u),function(n){var t=o.__N?o.__N[0]:o.__[0],r=o.t(t,n);t!==r&&(o.__N=[r,o.__[1]],o.__c.setState({}));}],o.__c=r,!r.u)){r.u=!0;var f=r.shouldComponentUpdate;r.shouldComponentUpdate=function(n,t,r){if(!o.__c.__H)return !0;var u=o.__c.__H.__.filter(function(n){return n.__c});if(u.every(function(n){return !n.__N}))return !f||f.call(this,n,t,r);var i=!1;return u.forEach(function(n){if(n.__N){var t=n.__[0];n.__=n.__N,n.__N=void 0,t!==n.__[0]&&(i=!0);}}),!(!i&&o.__c.props===n)&&(!f||f.call(this,n,t,r))};}return o.__N||o.__}function h(u,i){var o=d(t++,3);!l$1.__s&&z(o.__H,i)&&(o.__=u,o.i=i,r.__H.__h.push(o));}function s(u,i){var o=d(t++,4);!l$1.__s&&z(o.__H,i)&&(o.__=u,o.i=i,r.__h.push(o));}function _(n){return o=5,F(function(){return {current:n}},[])}function F(n,r){var u=d(t++,7);return z(u.__H,r)?(u.__V=n(),u.i=r,u.__h=n,u.__V):u.__}function T(n,t){return o=8,F(function(){return n},t)}function q(n){var u=r.context[n.__c],i=d(t++,9);return i.c=n,u?(null==i.__&&(i.__=!0,u.sub(r)),u.props.value):n.__}function b(){for(var t;t=f.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(k),t.__H.__h.forEach(w),t.__H.__h=[];}catch(r){t.__H.__h=[],l$1.__e(r,t.__v);}}l$1.__b=function(n){r=null,e&&e(n);},l$1.__r=function(n){a&&a(n),t=0;var i=(r=n.__c).__H;i&&(u===r?(i.__h=[],r.__h=[],i.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=c,n.__N=n.i=void 0;})):(i.__h.forEach(k),i.__h.forEach(w),i.__h=[])),u=r;},l$1.diffed=function(t){v&&v(t);var o=t.__c;o&&o.__H&&(o.__H.__h.length&&(1!==f.push(o)&&i===l$1.requestAnimationFrame||((i=l$1.requestAnimationFrame)||j)(b)),o.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==c&&(n.__=n.__V),n.i=void 0,n.__V=c;})),u=r=null;},l$1.__c=function(t,r){r.some(function(t){try{t.__h.forEach(k),t.__h=t.__h.filter(function(n){return !n.__||w(n)});}catch(u){r.some(function(n){n.__h&&(n.__h=[]);}),r=[],l$1.__e(u,t.__v);}}),l&&l(t,r);},l$1.unmount=function(t){m&&m(t);var r,u=t.__c;u&&u.__H&&(u.__H.__.forEach(function(n){try{k(n);}catch(n){r=n;}}),u.__H=void 0,r&&l$1.__e(r,u.__v));};var g="function"==typeof requestAnimationFrame;function j(n){var t,r=function(){clearTimeout(u),g&&cancelAnimationFrame(t),setTimeout(n);},u=setTimeout(r,100);g&&(t=requestAnimationFrame(r));}function k(n){var t=r,u=n.__c;"function"==typeof u&&(n.__c=void 0,u()),r=t;}function w(n){var t=r;n.__c=n.__(),r=t;}function z(n,t){return !n||n.length!==t.length||t.some(function(t,r){return t!==n[r]})}function B$1(n,t){return "function"==typeof t?t(n):t}
  577. const PLACEHOLDER = "bundle-*:**/file/**,**/file**, bundle-*:";
  578. const SideBar = ({ availableSizeProperties, sizeProperty, setSizeProperty, onExcludeChange, onIncludeChange, }) => {
  579. const [includeValue, setIncludeValue] = p("");
  580. const [excludeValue, setExcludeValue] = p("");
  581. const handleSizePropertyChange = (sizeProp) => () => {
  582. if (sizeProp !== sizeProperty) {
  583. setSizeProperty(sizeProp);
  584. }
  585. };
  586. const handleIncludeChange = (event) => {
  587. const value = event.currentTarget.value;
  588. setIncludeValue(value);
  589. onIncludeChange(value);
  590. };
  591. const handleExcludeChange = (event) => {
  592. const value = event.currentTarget.value;
  593. setExcludeValue(value);
  594. onExcludeChange(value);
  595. };
  596. return (o$1("aside", Object.assign({ className: "sidebar" }, { children: [o$1("div", Object.assign({ className: "size-selectors" }, { children: availableSizeProperties.length > 1 &&
  597. availableSizeProperties.map((sizeProp) => {
  598. const id = `selector-${sizeProp}`;
  599. return (o$1("div", Object.assign({ className: "size-selector" }, { children: [o$1("input", { type: "radio", id: id, checked: sizeProp === sizeProperty, onChange: handleSizePropertyChange(sizeProp) }), o$1("label", Object.assign({ htmlFor: id }, { children: LABELS[sizeProp] }))] }), sizeProp));
  600. }) })), o$1("div", Object.assign({ className: "module-filters" }, { children: [o$1("div", Object.assign({ className: "module-filter" }, { children: [o$1("label", Object.assign({ htmlFor: "module-filter-exclude" }, { children: "Exclude" })), o$1("input", { type: "text", id: "module-filter-exclude", value: excludeValue, onInput: handleExcludeChange, placeholder: PLACEHOLDER })] })), o$1("div", Object.assign({ className: "module-filter" }, { children: [o$1("label", Object.assign({ htmlFor: "module-filter-include" }, { children: "Include" })), o$1("input", { type: "text", id: "module-filter-include", value: includeValue, onInput: handleIncludeChange, placeholder: PLACEHOLDER })] }))] }))] })));
  601. };
  602. function getDefaultExportFromCjs (x) {
  603. return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
  604. }
  605. var picomatchBrowserExports = {};
  606. var picomatchBrowser = {
  607. get exports(){ return picomatchBrowserExports; },
  608. set exports(v){ picomatchBrowserExports = v; },
  609. };
  610. var utils$3 = {};
  611. const WIN_SLASH = '\\\\/';
  612. const WIN_NO_SLASH = `[^${WIN_SLASH}]`;
  613. /**
  614. * Posix glob regex
  615. */
  616. const DOT_LITERAL = '\\.';
  617. const PLUS_LITERAL = '\\+';
  618. const QMARK_LITERAL = '\\?';
  619. const SLASH_LITERAL = '\\/';
  620. const ONE_CHAR = '(?=.)';
  621. const QMARK = '[^/]';
  622. const END_ANCHOR = `(?:${SLASH_LITERAL}|$)`;
  623. const START_ANCHOR = `(?:^|${SLASH_LITERAL})`;
  624. const DOTS_SLASH = `${DOT_LITERAL}{1,2}${END_ANCHOR}`;
  625. const NO_DOT = `(?!${DOT_LITERAL})`;
  626. const NO_DOTS = `(?!${START_ANCHOR}${DOTS_SLASH})`;
  627. const NO_DOT_SLASH = `(?!${DOT_LITERAL}{0,1}${END_ANCHOR})`;
  628. const NO_DOTS_SLASH = `(?!${DOTS_SLASH})`;
  629. const QMARK_NO_DOT = `[^.${SLASH_LITERAL}]`;
  630. const STAR = `${QMARK}*?`;
  631. const SEP = '/';
  632. const POSIX_CHARS = {
  633. DOT_LITERAL,
  634. PLUS_LITERAL,
  635. QMARK_LITERAL,
  636. SLASH_LITERAL,
  637. ONE_CHAR,
  638. QMARK,
  639. END_ANCHOR,
  640. DOTS_SLASH,
  641. NO_DOT,
  642. NO_DOTS,
  643. NO_DOT_SLASH,
  644. NO_DOTS_SLASH,
  645. QMARK_NO_DOT,
  646. STAR,
  647. START_ANCHOR,
  648. SEP
  649. };
  650. /**
  651. * Windows glob regex
  652. */
  653. const WINDOWS_CHARS = {
  654. ...POSIX_CHARS,
  655. SLASH_LITERAL: `[${WIN_SLASH}]`,
  656. QMARK: WIN_NO_SLASH,
  657. STAR: `${WIN_NO_SLASH}*?`,
  658. DOTS_SLASH: `${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$)`,
  659. NO_DOT: `(?!${DOT_LITERAL})`,
  660. NO_DOTS: `(?!(?:^|[${WIN_SLASH}])${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$))`,
  661. NO_DOT_SLASH: `(?!${DOT_LITERAL}{0,1}(?:[${WIN_SLASH}]|$))`,
  662. NO_DOTS_SLASH: `(?!${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$))`,
  663. QMARK_NO_DOT: `[^.${WIN_SLASH}]`,
  664. START_ANCHOR: `(?:^|[${WIN_SLASH}])`,
  665. END_ANCHOR: `(?:[${WIN_SLASH}]|$)`,
  666. SEP: '\\'
  667. };
  668. /**
  669. * POSIX Bracket Regex
  670. */
  671. const POSIX_REGEX_SOURCE$1 = {
  672. alnum: 'a-zA-Z0-9',
  673. alpha: 'a-zA-Z',
  674. ascii: '\\x00-\\x7F',
  675. blank: ' \\t',
  676. cntrl: '\\x00-\\x1F\\x7F',
  677. digit: '0-9',
  678. graph: '\\x21-\\x7E',
  679. lower: 'a-z',
  680. print: '\\x20-\\x7E ',
  681. punct: '\\-!"#$%&\'()\\*+,./:;<=>?@[\\]^_`{|}~',
  682. space: ' \\t\\r\\n\\v\\f',
  683. upper: 'A-Z',
  684. word: 'A-Za-z0-9_',
  685. xdigit: 'A-Fa-f0-9'
  686. };
  687. var constants$3 = {
  688. MAX_LENGTH: 1024 * 64,
  689. POSIX_REGEX_SOURCE: POSIX_REGEX_SOURCE$1,
  690. // regular expressions
  691. REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g,
  692. REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/,
  693. REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/,
  694. REGEX_SPECIAL_CHARS_BACKREF: /(\\?)((\W)(\3*))/g,
  695. REGEX_SPECIAL_CHARS_GLOBAL: /([-*+?.^${}(|)[\]])/g,
  696. REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g,
  697. // Replace globs with equivalent patterns to reduce parsing time.
  698. REPLACEMENTS: {
  699. '***': '*',
  700. '**/**': '**',
  701. '**/**/**': '**'
  702. },
  703. // Digits
  704. CHAR_0: 48, /* 0 */
  705. CHAR_9: 57, /* 9 */
  706. // Alphabet chars.
  707. CHAR_UPPERCASE_A: 65, /* A */
  708. CHAR_LOWERCASE_A: 97, /* a */
  709. CHAR_UPPERCASE_Z: 90, /* Z */
  710. CHAR_LOWERCASE_Z: 122, /* z */
  711. CHAR_LEFT_PARENTHESES: 40, /* ( */
  712. CHAR_RIGHT_PARENTHESES: 41, /* ) */
  713. CHAR_ASTERISK: 42, /* * */
  714. // Non-alphabetic chars.
  715. CHAR_AMPERSAND: 38, /* & */
  716. CHAR_AT: 64, /* @ */
  717. CHAR_BACKWARD_SLASH: 92, /* \ */
  718. CHAR_CARRIAGE_RETURN: 13, /* \r */
  719. CHAR_CIRCUMFLEX_ACCENT: 94, /* ^ */
  720. CHAR_COLON: 58, /* : */
  721. CHAR_COMMA: 44, /* , */
  722. CHAR_DOT: 46, /* . */
  723. CHAR_DOUBLE_QUOTE: 34, /* " */
  724. CHAR_EQUAL: 61, /* = */
  725. CHAR_EXCLAMATION_MARK: 33, /* ! */
  726. CHAR_FORM_FEED: 12, /* \f */
  727. CHAR_FORWARD_SLASH: 47, /* / */
  728. CHAR_GRAVE_ACCENT: 96, /* ` */
  729. CHAR_HASH: 35, /* # */
  730. CHAR_HYPHEN_MINUS: 45, /* - */
  731. CHAR_LEFT_ANGLE_BRACKET: 60, /* < */
  732. CHAR_LEFT_CURLY_BRACE: 123, /* { */
  733. CHAR_LEFT_SQUARE_BRACKET: 91, /* [ */
  734. CHAR_LINE_FEED: 10, /* \n */
  735. CHAR_NO_BREAK_SPACE: 160, /* \u00A0 */
  736. CHAR_PERCENT: 37, /* % */
  737. CHAR_PLUS: 43, /* + */
  738. CHAR_QUESTION_MARK: 63, /* ? */
  739. CHAR_RIGHT_ANGLE_BRACKET: 62, /* > */
  740. CHAR_RIGHT_CURLY_BRACE: 125, /* } */
  741. CHAR_RIGHT_SQUARE_BRACKET: 93, /* ] */
  742. CHAR_SEMICOLON: 59, /* ; */
  743. CHAR_SINGLE_QUOTE: 39, /* ' */
  744. CHAR_SPACE: 32, /* */
  745. CHAR_TAB: 9, /* \t */
  746. CHAR_UNDERSCORE: 95, /* _ */
  747. CHAR_VERTICAL_LINE: 124, /* | */
  748. CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279, /* \uFEFF */
  749. /**
  750. * Create EXTGLOB_CHARS
  751. */
  752. extglobChars(chars) {
  753. return {
  754. '!': { type: 'negate', open: '(?:(?!(?:', close: `))${chars.STAR})` },
  755. '?': { type: 'qmark', open: '(?:', close: ')?' },
  756. '+': { type: 'plus', open: '(?:', close: ')+' },
  757. '*': { type: 'star', open: '(?:', close: ')*' },
  758. '@': { type: 'at', open: '(?:', close: ')' }
  759. };
  760. },
  761. /**
  762. * Create GLOB_CHARS
  763. */
  764. globChars(win32) {
  765. return win32 === true ? WINDOWS_CHARS : POSIX_CHARS;
  766. }
  767. };
  768. (function (exports) {
  769. const {
  770. REGEX_BACKSLASH,
  771. REGEX_REMOVE_BACKSLASH,
  772. REGEX_SPECIAL_CHARS,
  773. REGEX_SPECIAL_CHARS_GLOBAL
  774. } = constants$3;
  775. exports.isObject = val => val !== null && typeof val === 'object' && !Array.isArray(val);
  776. exports.hasRegexChars = str => REGEX_SPECIAL_CHARS.test(str);
  777. exports.isRegexChar = str => str.length === 1 && exports.hasRegexChars(str);
  778. exports.escapeRegex = str => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, '\\$1');
  779. exports.toPosixSlashes = str => str.replace(REGEX_BACKSLASH, '/');
  780. exports.removeBackslashes = str => {
  781. return str.replace(REGEX_REMOVE_BACKSLASH, match => {
  782. return match === '\\' ? '' : match;
  783. });
  784. };
  785. exports.supportsLookbehinds = () => {
  786. const segs = process.version.slice(1).split('.').map(Number);
  787. if (segs.length === 3 && segs[0] >= 9 || (segs[0] === 8 && segs[1] >= 10)) {
  788. return true;
  789. }
  790. return false;
  791. };
  792. exports.escapeLast = (input, char, lastIdx) => {
  793. const idx = input.lastIndexOf(char, lastIdx);
  794. if (idx === -1) return input;
  795. if (input[idx - 1] === '\\') return exports.escapeLast(input, char, idx - 1);
  796. return `${input.slice(0, idx)}\\${input.slice(idx)}`;
  797. };
  798. exports.removePrefix = (input, state = {}) => {
  799. let output = input;
  800. if (output.startsWith('./')) {
  801. output = output.slice(2);
  802. state.prefix = './';
  803. }
  804. return output;
  805. };
  806. exports.wrapOutput = (input, state = {}, options = {}) => {
  807. const prepend = options.contains ? '' : '^';
  808. const append = options.contains ? '' : '$';
  809. let output = `${prepend}(?:${input})${append}`;
  810. if (state.negated === true) {
  811. output = `(?:^(?!${output}).*$)`;
  812. }
  813. return output;
  814. };
  815. exports.basename = (path, { windows } = {}) => {
  816. if (windows) {
  817. return path.replace(/[\\/]$/, '').replace(/.*[\\/]/, '');
  818. } else {
  819. return path.replace(/\/$/, '').replace(/.*\//, '');
  820. }
  821. };
  822. } (utils$3));
  823. const utils$2 = utils$3;
  824. const {
  825. CHAR_ASTERISK, /* * */
  826. CHAR_AT, /* @ */
  827. CHAR_BACKWARD_SLASH, /* \ */
  828. CHAR_COMMA, /* , */
  829. CHAR_DOT, /* . */
  830. CHAR_EXCLAMATION_MARK, /* ! */
  831. CHAR_FORWARD_SLASH, /* / */
  832. CHAR_LEFT_CURLY_BRACE, /* { */
  833. CHAR_LEFT_PARENTHESES, /* ( */
  834. CHAR_LEFT_SQUARE_BRACKET, /* [ */
  835. CHAR_PLUS, /* + */
  836. CHAR_QUESTION_MARK, /* ? */
  837. CHAR_RIGHT_CURLY_BRACE, /* } */
  838. CHAR_RIGHT_PARENTHESES, /* ) */
  839. CHAR_RIGHT_SQUARE_BRACKET /* ] */
  840. } = constants$3;
  841. const isPathSeparator = code => {
  842. return code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH;
  843. };
  844. const depth = token => {
  845. if (token.isPrefix !== true) {
  846. token.depth = token.isGlobstar ? Infinity : 1;
  847. }
  848. };
  849. /**
  850. * Quickly scans a glob pattern and returns an object with a handful of
  851. * useful properties, like `isGlob`, `path` (the leading non-glob, if it exists),
  852. * `glob` (the actual pattern), and `negated` (true if the path starts with `!`).
  853. *
  854. * ```js
  855. * const pm = require('picomatch');
  856. * console.log(pm.scan('foo/bar/*.js'));
  857. * { isGlob: true, input: 'foo/bar/*.js', base: 'foo/bar', glob: '*.js' }
  858. * ```
  859. * @param {String} `str`
  860. * @param {Object} `options`
  861. * @return {Object} Returns an object with tokens and regex source string.
  862. * @api public
  863. */
  864. const scan$1 = (input, options) => {
  865. const opts = options || {};
  866. const length = input.length - 1;
  867. const scanToEnd = opts.parts === true || opts.scanToEnd === true;
  868. const slashes = [];
  869. const tokens = [];
  870. const parts = [];
  871. let str = input;
  872. let index = -1;
  873. let start = 0;
  874. let lastIndex = 0;
  875. let isBrace = false;
  876. let isBracket = false;
  877. let isGlob = false;
  878. let isExtglob = false;
  879. let isGlobstar = false;
  880. let braceEscaped = false;
  881. let backslashes = false;
  882. let negated = false;
  883. let finished = false;
  884. let braces = 0;
  885. let prev;
  886. let code;
  887. let token = { value: '', depth: 0, isGlob: false };
  888. const eos = () => index >= length;
  889. const peek = () => str.charCodeAt(index + 1);
  890. const advance = () => {
  891. prev = code;
  892. return str.charCodeAt(++index);
  893. };
  894. while (index < length) {
  895. code = advance();
  896. let next;
  897. if (code === CHAR_BACKWARD_SLASH) {
  898. backslashes = token.backslashes = true;
  899. code = advance();
  900. if (code === CHAR_LEFT_CURLY_BRACE) {
  901. braceEscaped = true;
  902. }
  903. continue;
  904. }
  905. if (braceEscaped === true || code === CHAR_LEFT_CURLY_BRACE) {
  906. braces++;
  907. while (eos() !== true && (code = advance())) {
  908. if (code === CHAR_BACKWARD_SLASH) {
  909. backslashes = token.backslashes = true;
  910. advance();
  911. continue;
  912. }
  913. if (code === CHAR_LEFT_CURLY_BRACE) {
  914. braces++;
  915. continue;
  916. }
  917. if (braceEscaped !== true && code === CHAR_DOT && (code = advance()) === CHAR_DOT) {
  918. isBrace = token.isBrace = true;
  919. isGlob = token.isGlob = true;
  920. finished = true;
  921. if (scanToEnd === true) {
  922. continue;
  923. }
  924. break;
  925. }
  926. if (braceEscaped !== true && code === CHAR_COMMA) {
  927. isBrace = token.isBrace = true;
  928. isGlob = token.isGlob = true;
  929. finished = true;
  930. if (scanToEnd === true) {
  931. continue;
  932. }
  933. break;
  934. }
  935. if (code === CHAR_RIGHT_CURLY_BRACE) {
  936. braces--;
  937. if (braces === 0) {
  938. braceEscaped = false;
  939. isBrace = token.isBrace = true;
  940. finished = true;
  941. break;
  942. }
  943. }
  944. }
  945. if (scanToEnd === true) {
  946. continue;
  947. }
  948. break;
  949. }
  950. if (code === CHAR_FORWARD_SLASH) {
  951. slashes.push(index);
  952. tokens.push(token);
  953. token = { value: '', depth: 0, isGlob: false };
  954. if (finished === true) continue;
  955. if (prev === CHAR_DOT && index === (start + 1)) {
  956. start += 2;
  957. continue;
  958. }
  959. lastIndex = index + 1;
  960. continue;
  961. }
  962. if (opts.noext !== true) {
  963. const isExtglobChar = code === CHAR_PLUS
  964. || code === CHAR_AT
  965. || code === CHAR_ASTERISK
  966. || code === CHAR_QUESTION_MARK
  967. || code === CHAR_EXCLAMATION_MARK;
  968. if (isExtglobChar === true && peek() === CHAR_LEFT_PARENTHESES) {
  969. isGlob = token.isGlob = true;
  970. isExtglob = token.isExtglob = true;
  971. finished = true;
  972. if (scanToEnd === true) {
  973. while (eos() !== true && (code = advance())) {
  974. if (code === CHAR_BACKWARD_SLASH) {
  975. backslashes = token.backslashes = true;
  976. code = advance();
  977. continue;
  978. }
  979. if (code === CHAR_RIGHT_PARENTHESES) {
  980. isGlob = token.isGlob = true;
  981. finished = true;
  982. break;
  983. }
  984. }
  985. continue;
  986. }
  987. break;
  988. }
  989. }
  990. if (code === CHAR_ASTERISK) {
  991. if (prev === CHAR_ASTERISK) isGlobstar = token.isGlobstar = true;
  992. isGlob = token.isGlob = true;
  993. finished = true;
  994. if (scanToEnd === true) {
  995. continue;
  996. }
  997. break;
  998. }
  999. if (code === CHAR_QUESTION_MARK) {
  1000. isGlob = token.isGlob = true;
  1001. finished = true;
  1002. if (scanToEnd === true) {
  1003. continue;
  1004. }
  1005. break;
  1006. }
  1007. if (code === CHAR_LEFT_SQUARE_BRACKET) {
  1008. while (eos() !== true && (next = advance())) {
  1009. if (next === CHAR_BACKWARD_SLASH) {
  1010. backslashes = token.backslashes = true;
  1011. advance();
  1012. continue;
  1013. }
  1014. if (next === CHAR_RIGHT_SQUARE_BRACKET) {
  1015. isBracket = token.isBracket = true;
  1016. isGlob = token.isGlob = true;
  1017. finished = true;
  1018. if (scanToEnd === true) {
  1019. continue;
  1020. }
  1021. break;
  1022. }
  1023. }
  1024. }
  1025. if (opts.nonegate !== true && code === CHAR_EXCLAMATION_MARK && index === start) {
  1026. negated = token.negated = true;
  1027. start++;
  1028. continue;
  1029. }
  1030. if (opts.noparen !== true && code === CHAR_LEFT_PARENTHESES) {
  1031. isGlob = token.isGlob = true;
  1032. if (scanToEnd === true) {
  1033. while (eos() !== true && (code = advance())) {
  1034. if (code === CHAR_LEFT_PARENTHESES) {
  1035. backslashes = token.backslashes = true;
  1036. code = advance();
  1037. continue;
  1038. }
  1039. if (code === CHAR_RIGHT_PARENTHESES) {
  1040. finished = true;
  1041. break;
  1042. }
  1043. }
  1044. continue;
  1045. }
  1046. break;
  1047. }
  1048. if (isGlob === true) {
  1049. finished = true;
  1050. if (scanToEnd === true) {
  1051. continue;
  1052. }
  1053. break;
  1054. }
  1055. }
  1056. if (opts.noext === true) {
  1057. isExtglob = false;
  1058. isGlob = false;
  1059. }
  1060. let base = str;
  1061. let prefix = '';
  1062. let glob = '';
  1063. if (start > 0) {
  1064. prefix = str.slice(0, start);
  1065. str = str.slice(start);
  1066. lastIndex -= start;
  1067. }
  1068. if (base && isGlob === true && lastIndex > 0) {
  1069. base = str.slice(0, lastIndex);
  1070. glob = str.slice(lastIndex);
  1071. } else if (isGlob === true) {
  1072. base = '';
  1073. glob = str;
  1074. } else {
  1075. base = str;
  1076. }
  1077. if (base && base !== '' && base !== '/' && base !== str) {
  1078. if (isPathSeparator(base.charCodeAt(base.length - 1))) {
  1079. base = base.slice(0, -1);
  1080. }
  1081. }
  1082. if (opts.unescape === true) {
  1083. if (glob) glob = utils$2.removeBackslashes(glob);
  1084. if (base && backslashes === true) {
  1085. base = utils$2.removeBackslashes(base);
  1086. }
  1087. }
  1088. const state = {
  1089. prefix,
  1090. input,
  1091. start,
  1092. base,
  1093. glob,
  1094. isBrace,
  1095. isBracket,
  1096. isGlob,
  1097. isExtglob,
  1098. isGlobstar,
  1099. negated
  1100. };
  1101. if (opts.tokens === true) {
  1102. state.maxDepth = 0;
  1103. if (!isPathSeparator(code)) {
  1104. tokens.push(token);
  1105. }
  1106. state.tokens = tokens;
  1107. }
  1108. if (opts.parts === true || opts.tokens === true) {
  1109. let prevIndex;
  1110. for (let idx = 0; idx < slashes.length; idx++) {
  1111. const n = prevIndex ? prevIndex + 1 : start;
  1112. const i = slashes[idx];
  1113. const value = input.slice(n, i);
  1114. if (opts.tokens) {
  1115. if (idx === 0 && start !== 0) {
  1116. tokens[idx].isPrefix = true;
  1117. tokens[idx].value = prefix;
  1118. } else {
  1119. tokens[idx].value = value;
  1120. }
  1121. depth(tokens[idx]);
  1122. state.maxDepth += tokens[idx].depth;
  1123. }
  1124. if (idx !== 0 || value !== '') {
  1125. parts.push(value);
  1126. }
  1127. prevIndex = i;
  1128. }
  1129. if (prevIndex && prevIndex + 1 < input.length) {
  1130. const value = input.slice(prevIndex + 1);
  1131. parts.push(value);
  1132. if (opts.tokens) {
  1133. tokens[tokens.length - 1].value = value;
  1134. depth(tokens[tokens.length - 1]);
  1135. state.maxDepth += tokens[tokens.length - 1].depth;
  1136. }
  1137. }
  1138. state.slashes = slashes;
  1139. state.parts = parts;
  1140. }
  1141. return state;
  1142. };
  1143. var scan_1 = scan$1;
  1144. const constants$2 = constants$3;
  1145. const utils$1 = utils$3;
  1146. /**
  1147. * Constants
  1148. */
  1149. const {
  1150. MAX_LENGTH,
  1151. POSIX_REGEX_SOURCE,
  1152. REGEX_NON_SPECIAL_CHARS,
  1153. REGEX_SPECIAL_CHARS_BACKREF,
  1154. REPLACEMENTS
  1155. } = constants$2;
  1156. /**
  1157. * Helpers
  1158. */
  1159. const expandRange = (args, options) => {
  1160. if (typeof options.expandRange === 'function') {
  1161. return options.expandRange(...args, options);
  1162. }
  1163. args.sort();
  1164. const value = `[${args.join('-')}]`;
  1165. try {
  1166. /* eslint-disable-next-line no-new */
  1167. new RegExp(value);
  1168. } catch (ex) {
  1169. return args.map(v => utils$1.escapeRegex(v)).join('..');
  1170. }
  1171. return value;
  1172. };
  1173. /**
  1174. * Create the message for a syntax error
  1175. */
  1176. const syntaxError = (type, char) => {
  1177. return `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`;
  1178. };
  1179. /**
  1180. * Parse the given input string.
  1181. * @param {String} input
  1182. * @param {Object} options
  1183. * @return {Object}
  1184. */
  1185. const parse$2 = (input, options) => {
  1186. if (typeof input !== 'string') {
  1187. throw new TypeError('Expected a string');
  1188. }
  1189. input = REPLACEMENTS[input] || input;
  1190. const opts = { ...options };
  1191. const max = typeof opts.maxLength === 'number' ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
  1192. let len = input.length;
  1193. if (len > max) {
  1194. throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`);
  1195. }
  1196. const bos = { type: 'bos', value: '', output: opts.prepend || '' };
  1197. const tokens = [bos];
  1198. const capture = opts.capture ? '' : '?:';
  1199. // create constants based on platform, for windows or posix
  1200. const PLATFORM_CHARS = constants$2.globChars(opts.windows);
  1201. const EXTGLOB_CHARS = constants$2.extglobChars(PLATFORM_CHARS);
  1202. const {
  1203. DOT_LITERAL,
  1204. PLUS_LITERAL,
  1205. SLASH_LITERAL,
  1206. ONE_CHAR,
  1207. DOTS_SLASH,
  1208. NO_DOT,
  1209. NO_DOT_SLASH,
  1210. NO_DOTS_SLASH,
  1211. QMARK,
  1212. QMARK_NO_DOT,
  1213. STAR,
  1214. START_ANCHOR
  1215. } = PLATFORM_CHARS;
  1216. const globstar = (opts) => {
  1217. return `(${capture}(?:(?!${START_ANCHOR}${opts.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`;
  1218. };
  1219. const nodot = opts.dot ? '' : NO_DOT;
  1220. const qmarkNoDot = opts.dot ? QMARK : QMARK_NO_DOT;
  1221. let star = opts.bash === true ? globstar(opts) : STAR;
  1222. if (opts.capture) {
  1223. star = `(${star})`;
  1224. }
  1225. // minimatch options support
  1226. if (typeof opts.noext === 'boolean') {
  1227. opts.noextglob = opts.noext;
  1228. }
  1229. const state = {
  1230. input,
  1231. index: -1,
  1232. start: 0,
  1233. dot: opts.dot === true,
  1234. consumed: '',
  1235. output: '',
  1236. prefix: '',
  1237. backtrack: false,
  1238. negated: false,
  1239. brackets: 0,
  1240. braces: 0,
  1241. parens: 0,
  1242. quotes: 0,
  1243. globstar: false,
  1244. tokens
  1245. };
  1246. input = utils$1.removePrefix(input, state);
  1247. len = input.length;
  1248. const extglobs = [];
  1249. const braces = [];
  1250. const stack = [];
  1251. let prev = bos;
  1252. let value;
  1253. /**
  1254. * Tokenizing helpers
  1255. */
  1256. const eos = () => state.index === len - 1;
  1257. const peek = state.peek = (n = 1) => input[state.index + n];
  1258. const advance = state.advance = () => input[++state.index];
  1259. const remaining = () => input.slice(state.index + 1);
  1260. const consume = (value = '', num = 0) => {
  1261. state.consumed += value;
  1262. state.index += num;
  1263. };
  1264. const append = token => {
  1265. state.output += token.output != null ? token.output : token.value;
  1266. consume(token.value);
  1267. };
  1268. const negate = () => {
  1269. let count = 1;
  1270. while (peek() === '!' && (peek(2) !== '(' || peek(3) === '?')) {
  1271. advance();
  1272. state.start++;
  1273. count++;
  1274. }
  1275. if (count % 2 === 0) {
  1276. return false;
  1277. }
  1278. state.negated = true;
  1279. state.start++;
  1280. return true;
  1281. };
  1282. const increment = type => {
  1283. state[type]++;
  1284. stack.push(type);
  1285. };
  1286. const decrement = type => {
  1287. state[type]--;
  1288. stack.pop();
  1289. };
  1290. /**
  1291. * Push tokens onto the tokens array. This helper speeds up
  1292. * tokenizing by 1) helping us avoid backtracking as much as possible,
  1293. * and 2) helping us avoid creating extra tokens when consecutive
  1294. * characters are plain text. This improves performance and simplifies
  1295. * lookbehinds.
  1296. */
  1297. const push = tok => {
  1298. if (prev.type === 'globstar') {
  1299. const isBrace = state.braces > 0 && (tok.type === 'comma' || tok.type === 'brace');
  1300. const isExtglob = tok.extglob === true || (extglobs.length && (tok.type === 'pipe' || tok.type === 'paren'));
  1301. if (tok.type !== 'slash' && tok.type !== 'paren' && !isBrace && !isExtglob) {
  1302. state.output = state.output.slice(0, -prev.output.length);
  1303. prev.type = 'star';
  1304. prev.value = '*';
  1305. prev.output = star;
  1306. state.output += prev.output;
  1307. }
  1308. }
  1309. if (extglobs.length && tok.type !== 'paren' && !EXTGLOB_CHARS[tok.value]) {
  1310. extglobs[extglobs.length - 1].inner += tok.value;
  1311. }
  1312. if (tok.value || tok.output) append(tok);
  1313. if (prev && prev.type === 'text' && tok.type === 'text') {
  1314. prev.value += tok.value;
  1315. prev.output = (prev.output || '') + tok.value;
  1316. return;
  1317. }
  1318. tok.prev = prev;
  1319. tokens.push(tok);
  1320. prev = tok;
  1321. };
  1322. const extglobOpen = (type, value) => {
  1323. const token = { ...EXTGLOB_CHARS[value], conditions: 1, inner: '' };
  1324. token.prev = prev;
  1325. token.parens = state.parens;
  1326. token.output = state.output;
  1327. const output = (opts.capture ? '(' : '') + token.open;
  1328. increment('parens');
  1329. push({ type, value, output: state.output ? '' : ONE_CHAR });
  1330. push({ type: 'paren', extglob: true, value: advance(), output });
  1331. extglobs.push(token);
  1332. };
  1333. const extglobClose = token => {
  1334. let output = token.close + (opts.capture ? ')' : '');
  1335. if (token.type === 'negate') {
  1336. let extglobStar = star;
  1337. if (token.inner && token.inner.length > 1 && token.inner.includes('/')) {
  1338. extglobStar = globstar(opts);
  1339. }
  1340. if (extglobStar !== star || eos() || /^\)+$/.test(remaining())) {
  1341. output = token.close = `)$))${extglobStar}`;
  1342. }
  1343. if (token.prev.type === 'bos' && eos()) {
  1344. state.negatedExtglob = true;
  1345. }
  1346. }
  1347. push({ type: 'paren', extglob: true, value, output });
  1348. decrement('parens');
  1349. };
  1350. /**
  1351. * Fast paths
  1352. */
  1353. if (opts.fastpaths !== false && !/(^[*!]|[/()[\]{}"])/.test(input)) {
  1354. let backslashes = false;
  1355. let output = input.replace(REGEX_SPECIAL_CHARS_BACKREF, (m, esc, chars, first, rest, index) => {
  1356. if (first === '\\') {
  1357. backslashes = true;
  1358. return m;
  1359. }
  1360. if (first === '?') {
  1361. if (esc) {
  1362. return esc + first + (rest ? QMARK.repeat(rest.length) : '');
  1363. }
  1364. if (index === 0) {
  1365. return qmarkNoDot + (rest ? QMARK.repeat(rest.length) : '');
  1366. }
  1367. return QMARK.repeat(chars.length);
  1368. }
  1369. if (first === '.') {
  1370. return DOT_LITERAL.repeat(chars.length);
  1371. }
  1372. if (first === '*') {
  1373. if (esc) {
  1374. return esc + first + (rest ? star : '');
  1375. }
  1376. return star;
  1377. }
  1378. return esc ? m : `\\${m}`;
  1379. });
  1380. if (backslashes === true) {
  1381. if (opts.unescape === true) {
  1382. output = output.replace(/\\/g, '');
  1383. } else {
  1384. output = output.replace(/\\+/g, m => {
  1385. return m.length % 2 === 0 ? '\\\\' : (m ? '\\' : '');
  1386. });
  1387. }
  1388. }
  1389. if (output === input && opts.contains === true) {
  1390. state.output = input;
  1391. return state;
  1392. }
  1393. state.output = utils$1.wrapOutput(output, state, options);
  1394. return state;
  1395. }
  1396. /**
  1397. * Tokenize input until we reach end-of-string
  1398. */
  1399. while (!eos()) {
  1400. value = advance();
  1401. if (value === '\u0000') {
  1402. continue;
  1403. }
  1404. /**
  1405. * Escaped characters
  1406. */
  1407. if (value === '\\') {
  1408. const next = peek();
  1409. if (next === '/' && opts.bash !== true) {
  1410. continue;
  1411. }
  1412. if (next === '.' || next === ';') {
  1413. continue;
  1414. }
  1415. if (!next) {
  1416. value += '\\';
  1417. push({ type: 'text', value });
  1418. continue;
  1419. }
  1420. // collapse slashes to reduce potential for exploits
  1421. const match = /^\\+/.exec(remaining());
  1422. let slashes = 0;
  1423. if (match && match[0].length > 2) {
  1424. slashes = match[0].length;
  1425. state.index += slashes;
  1426. if (slashes % 2 !== 0) {
  1427. value += '\\';
  1428. }
  1429. }
  1430. if (opts.unescape === true) {
  1431. value = advance() || '';
  1432. } else {
  1433. value += advance() || '';
  1434. }
  1435. if (state.brackets === 0) {
  1436. push({ type: 'text', value });
  1437. continue;
  1438. }
  1439. }
  1440. /**
  1441. * If we're inside a regex character class, continue
  1442. * until we reach the closing bracket.
  1443. */
  1444. if (state.brackets > 0 && (value !== ']' || prev.value === '[' || prev.value === '[^')) {
  1445. if (opts.posix !== false && value === ':') {
  1446. const inner = prev.value.slice(1);
  1447. if (inner.includes('[')) {
  1448. prev.posix = true;
  1449. if (inner.includes(':')) {
  1450. const idx = prev.value.lastIndexOf('[');
  1451. const pre = prev.value.slice(0, idx);
  1452. const rest = prev.value.slice(idx + 2);
  1453. const posix = POSIX_REGEX_SOURCE[rest];
  1454. if (posix) {
  1455. prev.value = pre + posix;
  1456. state.backtrack = true;
  1457. advance();
  1458. if (!bos.output && tokens.indexOf(prev) === 1) {
  1459. bos.output = ONE_CHAR;
  1460. }
  1461. continue;
  1462. }
  1463. }
  1464. }
  1465. }
  1466. if ((value === '[' && peek() !== ':') || (value === '-' && peek() === ']')) {
  1467. value = `\\${value}`;
  1468. }
  1469. if (value === ']' && (prev.value === '[' || prev.value === '[^')) {
  1470. value = `\\${value}`;
  1471. }
  1472. if (opts.posix === true && value === '!' && prev.value === '[') {
  1473. value = '^';
  1474. }
  1475. prev.value += value;
  1476. append({ value });
  1477. continue;
  1478. }
  1479. /**
  1480. * If we're inside a quoted string, continue
  1481. * until we reach the closing double quote.
  1482. */
  1483. if (state.quotes === 1 && value !== '"') {
  1484. value = utils$1.escapeRegex(value);
  1485. prev.value += value;
  1486. append({ value });
  1487. continue;
  1488. }
  1489. /**
  1490. * Double quotes
  1491. */
  1492. if (value === '"') {
  1493. state.quotes = state.quotes === 1 ? 0 : 1;
  1494. if (opts.keepQuotes === true) {
  1495. push({ type: 'text', value });
  1496. }
  1497. continue;
  1498. }
  1499. /**
  1500. * Parentheses
  1501. */
  1502. if (value === '(') {
  1503. increment('parens');
  1504. push({ type: 'paren', value });
  1505. continue;
  1506. }
  1507. if (value === ')') {
  1508. if (state.parens === 0 && opts.strictBrackets === true) {
  1509. throw new SyntaxError(syntaxError('opening', '('));
  1510. }
  1511. const extglob = extglobs[extglobs.length - 1];
  1512. if (extglob && state.parens === extglob.parens + 1) {
  1513. extglobClose(extglobs.pop());
  1514. continue;
  1515. }
  1516. push({ type: 'paren', value, output: state.parens ? ')' : '\\)' });
  1517. decrement('parens');
  1518. continue;
  1519. }
  1520. /**
  1521. * Square brackets
  1522. */
  1523. if (value === '[') {
  1524. if (opts.nobracket === true || !remaining().includes(']')) {
  1525. if (opts.nobracket !== true && opts.strictBrackets === true) {
  1526. throw new SyntaxError(syntaxError('closing', ']'));
  1527. }
  1528. value = `\\${value}`;
  1529. } else {
  1530. increment('brackets');
  1531. }
  1532. push({ type: 'bracket', value });
  1533. continue;
  1534. }
  1535. if (value === ']') {
  1536. if (opts.nobracket === true || (prev && prev.type === 'bracket' && prev.value.length === 1)) {
  1537. push({ type: 'text', value, output: `\\${value}` });
  1538. continue;
  1539. }
  1540. if (state.brackets === 0) {
  1541. if (opts.strictBrackets === true) {
  1542. throw new SyntaxError(syntaxError('opening', '['));
  1543. }
  1544. push({ type: 'text', value, output: `\\${value}` });
  1545. continue;
  1546. }
  1547. decrement('brackets');
  1548. const prevValue = prev.value.slice(1);
  1549. if (prev.posix !== true && prevValue[0] === '^' && !prevValue.includes('/')) {
  1550. value = `/${value}`;
  1551. }
  1552. prev.value += value;
  1553. append({ value });
  1554. // when literal brackets are explicitly disabled
  1555. // assume we should match with a regex character class
  1556. if (opts.literalBrackets === false || utils$1.hasRegexChars(prevValue)) {
  1557. continue;
  1558. }
  1559. const escaped = utils$1.escapeRegex(prev.value);
  1560. state.output = state.output.slice(0, -prev.value.length);
  1561. // when literal brackets are explicitly enabled
  1562. // assume we should escape the brackets to match literal characters
  1563. if (opts.literalBrackets === true) {
  1564. state.output += escaped;
  1565. prev.value = escaped;
  1566. continue;
  1567. }
  1568. // when the user specifies nothing, try to match both
  1569. prev.value = `(${capture}${escaped}|${prev.value})`;
  1570. state.output += prev.value;
  1571. continue;
  1572. }
  1573. /**
  1574. * Braces
  1575. */
  1576. if (value === '{' && opts.nobrace !== true) {
  1577. increment('braces');
  1578. const open = {
  1579. type: 'brace',
  1580. value,
  1581. output: '(',
  1582. outputIndex: state.output.length,
  1583. tokensIndex: state.tokens.length
  1584. };
  1585. braces.push(open);
  1586. push(open);
  1587. continue;
  1588. }
  1589. if (value === '}') {
  1590. const brace = braces[braces.length - 1];
  1591. if (opts.nobrace === true || !brace) {
  1592. push({ type: 'text', value, output: value });
  1593. continue;
  1594. }
  1595. let output = ')';
  1596. if (brace.dots === true) {
  1597. const arr = tokens.slice();
  1598. const range = [];
  1599. for (let i = arr.length - 1; i >= 0; i--) {
  1600. tokens.pop();
  1601. if (arr[i].type === 'brace') {
  1602. break;
  1603. }
  1604. if (arr[i].type !== 'dots') {
  1605. range.unshift(arr[i].value);
  1606. }
  1607. }
  1608. output = expandRange(range, opts);
  1609. state.backtrack = true;
  1610. }
  1611. if (brace.comma !== true && brace.dots !== true) {
  1612. const out = state.output.slice(0, brace.outputIndex);
  1613. const toks = state.tokens.slice(brace.tokensIndex);
  1614. brace.value = brace.output = '\\{';
  1615. value = output = '\\}';
  1616. state.output = out;
  1617. for (const t of toks) {
  1618. state.output += (t.output || t.value);
  1619. }
  1620. }
  1621. push({ type: 'brace', value, output });
  1622. decrement('braces');
  1623. braces.pop();
  1624. continue;
  1625. }
  1626. /**
  1627. * Pipes
  1628. */
  1629. if (value === '|') {
  1630. if (extglobs.length > 0) {
  1631. extglobs[extglobs.length - 1].conditions++;
  1632. }
  1633. push({ type: 'text', value });
  1634. continue;
  1635. }
  1636. /**
  1637. * Commas
  1638. */
  1639. if (value === ',') {
  1640. let output = value;
  1641. const brace = braces[braces.length - 1];
  1642. if (brace && stack[stack.length - 1] === 'braces') {
  1643. brace.comma = true;
  1644. output = '|';
  1645. }
  1646. push({ type: 'comma', value, output });
  1647. continue;
  1648. }
  1649. /**
  1650. * Slashes
  1651. */
  1652. if (value === '/') {
  1653. // if the beginning of the glob is "./", advance the start
  1654. // to the current index, and don't add the "./" characters
  1655. // to the state. This greatly simplifies lookbehinds when
  1656. // checking for BOS characters like "!" and "." (not "./")
  1657. if (prev.type === 'dot' && state.index === state.start + 1) {
  1658. state.start = state.index + 1;
  1659. state.consumed = '';
  1660. state.output = '';
  1661. tokens.pop();
  1662. prev = bos; // reset "prev" to the first token
  1663. continue;
  1664. }
  1665. push({ type: 'slash', value, output: SLASH_LITERAL });
  1666. continue;
  1667. }
  1668. /**
  1669. * Dots
  1670. */
  1671. if (value === '.') {
  1672. if (state.braces > 0 && prev.type === 'dot') {
  1673. if (prev.value === '.') prev.output = DOT_LITERAL;
  1674. const brace = braces[braces.length - 1];
  1675. prev.type = 'dots';
  1676. prev.output += value;
  1677. prev.value += value;
  1678. brace.dots = true;
  1679. continue;
  1680. }
  1681. if ((state.braces + state.parens) === 0 && prev.type !== 'bos' && prev.type !== 'slash') {
  1682. push({ type: 'text', value, output: DOT_LITERAL });
  1683. continue;
  1684. }
  1685. push({ type: 'dot', value, output: DOT_LITERAL });
  1686. continue;
  1687. }
  1688. /**
  1689. * Question marks
  1690. */
  1691. if (value === '?') {
  1692. const isGroup = prev && prev.value === '(';
  1693. if (!isGroup && opts.noextglob !== true && peek() === '(' && peek(2) !== '?') {
  1694. extglobOpen('qmark', value);
  1695. continue;
  1696. }
  1697. if (prev && prev.type === 'paren') {
  1698. const next = peek();
  1699. let output = value;
  1700. if (next === '<' && !utils$1.supportsLookbehinds()) {
  1701. throw new Error('Node.js v10 or higher is required for regex lookbehinds');
  1702. }
  1703. if ((prev.value === '(' && !/[!=<:]/.test(next)) || (next === '<' && !/<([!=]|\w+>)/.test(remaining()))) {
  1704. output = `\\${value}`;
  1705. }
  1706. push({ type: 'text', value, output });
  1707. continue;
  1708. }
  1709. if (opts.dot !== true && (prev.type === 'slash' || prev.type === 'bos')) {
  1710. push({ type: 'qmark', value, output: QMARK_NO_DOT });
  1711. continue;
  1712. }
  1713. push({ type: 'qmark', value, output: QMARK });
  1714. continue;
  1715. }
  1716. /**
  1717. * Exclamation
  1718. */
  1719. if (value === '!') {
  1720. if (opts.noextglob !== true && peek() === '(') {
  1721. if (peek(2) !== '?' || !/[!=<:]/.test(peek(3))) {
  1722. extglobOpen('negate', value);
  1723. continue;
  1724. }
  1725. }
  1726. if (opts.nonegate !== true && state.index === 0) {
  1727. negate();
  1728. continue;
  1729. }
  1730. }
  1731. /**
  1732. * Plus
  1733. */
  1734. if (value === '+') {
  1735. if (opts.noextglob !== true && peek() === '(' && peek(2) !== '?') {
  1736. extglobOpen('plus', value);
  1737. continue;
  1738. }
  1739. if ((prev && prev.value === '(') || opts.regex === false) {
  1740. push({ type: 'plus', value, output: PLUS_LITERAL });
  1741. continue;
  1742. }
  1743. if ((prev && (prev.type === 'bracket' || prev.type === 'paren' || prev.type === 'brace')) || state.parens > 0) {
  1744. push({ type: 'plus', value });
  1745. continue;
  1746. }
  1747. push({ type: 'plus', value: PLUS_LITERAL });
  1748. continue;
  1749. }
  1750. /**
  1751. * Plain text
  1752. */
  1753. if (value === '@') {
  1754. if (opts.noextglob !== true && peek() === '(' && peek(2) !== '?') {
  1755. push({ type: 'at', extglob: true, value, output: '' });
  1756. continue;
  1757. }
  1758. push({ type: 'text', value });
  1759. continue;
  1760. }
  1761. /**
  1762. * Plain text
  1763. */
  1764. if (value !== '*') {
  1765. if (value === '$' || value === '^') {
  1766. value = `\\${value}`;
  1767. }
  1768. const match = REGEX_NON_SPECIAL_CHARS.exec(remaining());
  1769. if (match) {
  1770. value += match[0];
  1771. state.index += match[0].length;
  1772. }
  1773. push({ type: 'text', value });
  1774. continue;
  1775. }
  1776. /**
  1777. * Stars
  1778. */
  1779. if (prev && (prev.type === 'globstar' || prev.star === true)) {
  1780. prev.type = 'star';
  1781. prev.star = true;
  1782. prev.value += value;
  1783. prev.output = star;
  1784. state.backtrack = true;
  1785. state.globstar = true;
  1786. consume(value);
  1787. continue;
  1788. }
  1789. let rest = remaining();
  1790. if (opts.noextglob !== true && /^\([^?]/.test(rest)) {
  1791. extglobOpen('star', value);
  1792. continue;
  1793. }
  1794. if (prev.type === 'star') {
  1795. if (opts.noglobstar === true) {
  1796. consume(value);
  1797. continue;
  1798. }
  1799. const prior = prev.prev;
  1800. const before = prior.prev;
  1801. const isStart = prior.type === 'slash' || prior.type === 'bos';
  1802. const afterStar = before && (before.type === 'star' || before.type === 'globstar');
  1803. if (opts.bash === true && (!isStart || (rest[0] && rest[0] !== '/'))) {
  1804. push({ type: 'star', value, output: '' });
  1805. continue;
  1806. }
  1807. const isBrace = state.braces > 0 && (prior.type === 'comma' || prior.type === 'brace');
  1808. const isExtglob = extglobs.length && (prior.type === 'pipe' || prior.type === 'paren');
  1809. if (!isStart && prior.type !== 'paren' && !isBrace && !isExtglob) {
  1810. push({ type: 'star', value, output: '' });
  1811. continue;
  1812. }
  1813. // strip consecutive `/**/`
  1814. while (rest.slice(0, 3) === '/**') {
  1815. const after = input[state.index + 4];
  1816. if (after && after !== '/') {
  1817. break;
  1818. }
  1819. rest = rest.slice(3);
  1820. consume('/**', 3);
  1821. }
  1822. if (prior.type === 'bos' && eos()) {
  1823. prev.type = 'globstar';
  1824. prev.value += value;
  1825. prev.output = globstar(opts);
  1826. state.output = prev.output;
  1827. state.globstar = true;
  1828. consume(value);
  1829. continue;
  1830. }
  1831. if (prior.type === 'slash' && prior.prev.type !== 'bos' && !afterStar && eos()) {
  1832. state.output = state.output.slice(0, -(prior.output + prev.output).length);
  1833. prior.output = `(?:${prior.output}`;
  1834. prev.type = 'globstar';
  1835. prev.output = globstar(opts) + (opts.strictSlashes ? ')' : '|$)');
  1836. prev.value += value;
  1837. state.globstar = true;
  1838. state.output += prior.output + prev.output;
  1839. consume(value);
  1840. continue;
  1841. }
  1842. if (prior.type === 'slash' && prior.prev.type !== 'bos' && rest[0] === '/') {
  1843. const end = rest[1] !== void 0 ? '|$' : '';
  1844. state.output = state.output.slice(0, -(prior.output + prev.output).length);
  1845. prior.output = `(?:${prior.output}`;
  1846. prev.type = 'globstar';
  1847. prev.output = `${globstar(opts)}${SLASH_LITERAL}|${SLASH_LITERAL}${end})`;
  1848. prev.value += value;
  1849. state.output += prior.output + prev.output;
  1850. state.globstar = true;
  1851. consume(value + advance());
  1852. push({ type: 'slash', value: '/', output: '' });
  1853. continue;
  1854. }
  1855. if (prior.type === 'bos' && rest[0] === '/') {
  1856. prev.type = 'globstar';
  1857. prev.value += value;
  1858. prev.output = `(?:^|${SLASH_LITERAL}|${globstar(opts)}${SLASH_LITERAL})`;
  1859. state.output = prev.output;
  1860. state.globstar = true;
  1861. consume(value + advance());
  1862. push({ type: 'slash', value: '/', output: '' });
  1863. continue;
  1864. }
  1865. // remove single star from output
  1866. state.output = state.output.slice(0, -prev.output.length);
  1867. // reset previous token to globstar
  1868. prev.type = 'globstar';
  1869. prev.output = globstar(opts);
  1870. prev.value += value;
  1871. // reset output with globstar
  1872. state.output += prev.output;
  1873. state.globstar = true;
  1874. consume(value);
  1875. continue;
  1876. }
  1877. const token = { type: 'star', value, output: star };
  1878. if (opts.bash === true) {
  1879. token.output = '.*?';
  1880. if (prev.type === 'bos' || prev.type === 'slash') {
  1881. token.output = nodot + token.output;
  1882. }
  1883. push(token);
  1884. continue;
  1885. }
  1886. if (prev && (prev.type === 'bracket' || prev.type === 'paren') && opts.regex === true) {
  1887. token.output = value;
  1888. push(token);
  1889. continue;
  1890. }
  1891. if (state.index === state.start || prev.type === 'slash' || prev.type === 'dot') {
  1892. if (prev.type === 'dot') {
  1893. state.output += NO_DOT_SLASH;
  1894. prev.output += NO_DOT_SLASH;
  1895. } else if (opts.dot === true) {
  1896. state.output += NO_DOTS_SLASH;
  1897. prev.output += NO_DOTS_SLASH;
  1898. } else {
  1899. state.output += nodot;
  1900. prev.output += nodot;
  1901. }
  1902. if (peek() !== '*') {
  1903. state.output += ONE_CHAR;
  1904. prev.output += ONE_CHAR;
  1905. }
  1906. }
  1907. push(token);
  1908. }
  1909. while (state.brackets > 0) {
  1910. if (opts.strictBrackets === true) throw new SyntaxError(syntaxError('closing', ']'));
  1911. state.output = utils$1.escapeLast(state.output, '[');
  1912. decrement('brackets');
  1913. }
  1914. while (state.parens > 0) {
  1915. if (opts.strictBrackets === true) throw new SyntaxError(syntaxError('closing', ')'));
  1916. state.output = utils$1.escapeLast(state.output, '(');
  1917. decrement('parens');
  1918. }
  1919. while (state.braces > 0) {
  1920. if (opts.strictBrackets === true) throw new SyntaxError(syntaxError('closing', '}'));
  1921. state.output = utils$1.escapeLast(state.output, '{');
  1922. decrement('braces');
  1923. }
  1924. if (opts.strictSlashes !== true && (prev.type === 'star' || prev.type === 'bracket')) {
  1925. push({ type: 'maybe_slash', value: '', output: `${SLASH_LITERAL}?` });
  1926. }
  1927. // rebuild the output if we had to backtrack at any point
  1928. if (state.backtrack === true) {
  1929. state.output = '';
  1930. for (const token of state.tokens) {
  1931. state.output += token.output != null ? token.output : token.value;
  1932. if (token.suffix) {
  1933. state.output += token.suffix;
  1934. }
  1935. }
  1936. }
  1937. return state;
  1938. };
  1939. /**
  1940. * Fast paths for creating regular expressions for common glob patterns.
  1941. * This can significantly speed up processing and has very little downside
  1942. * impact when none of the fast paths match.
  1943. */
  1944. parse$2.fastpaths = (input, options) => {
  1945. const opts = { ...options };
  1946. const max = typeof opts.maxLength === 'number' ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
  1947. const len = input.length;
  1948. if (len > max) {
  1949. throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`);
  1950. }
  1951. input = REPLACEMENTS[input] || input;
  1952. // create constants based on platform, for windows or posix
  1953. const {
  1954. DOT_LITERAL,
  1955. SLASH_LITERAL,
  1956. ONE_CHAR,
  1957. DOTS_SLASH,
  1958. NO_DOT,
  1959. NO_DOTS,
  1960. NO_DOTS_SLASH,
  1961. STAR,
  1962. START_ANCHOR
  1963. } = constants$2.globChars(opts.windows);
  1964. const nodot = opts.dot ? NO_DOTS : NO_DOT;
  1965. const slashDot = opts.dot ? NO_DOTS_SLASH : NO_DOT;
  1966. const capture = opts.capture ? '' : '?:';
  1967. const state = { negated: false, prefix: '' };
  1968. let star = opts.bash === true ? '.*?' : STAR;
  1969. if (opts.capture) {
  1970. star = `(${star})`;
  1971. }
  1972. const globstar = (opts) => {
  1973. if (opts.noglobstar === true) return star;
  1974. return `(${capture}(?:(?!${START_ANCHOR}${opts.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`;
  1975. };
  1976. const create = str => {
  1977. switch (str) {
  1978. case '*':
  1979. return `${nodot}${ONE_CHAR}${star}`;
  1980. case '.*':
  1981. return `${DOT_LITERAL}${ONE_CHAR}${star}`;
  1982. case '*.*':
  1983. return `${nodot}${star}${DOT_LITERAL}${ONE_CHAR}${star}`;
  1984. case '*/*':
  1985. return `${nodot}${star}${SLASH_LITERAL}${ONE_CHAR}${slashDot}${star}`;
  1986. case '**':
  1987. return nodot + globstar(opts);
  1988. case '**/*':
  1989. return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${slashDot}${ONE_CHAR}${star}`;
  1990. case '**/*.*':
  1991. return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${slashDot}${star}${DOT_LITERAL}${ONE_CHAR}${star}`;
  1992. case '**/.*':
  1993. return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${DOT_LITERAL}${ONE_CHAR}${star}`;
  1994. default: {
  1995. const match = /^(.*?)\.(\w+)$/.exec(str);
  1996. if (!match) return;
  1997. const source = create(match[1]);
  1998. if (!source) return;
  1999. return source + DOT_LITERAL + match[2];
  2000. }
  2001. }
  2002. };
  2003. const output = utils$1.removePrefix(input, state);
  2004. let source = create(output);
  2005. if (source && opts.strictSlashes !== true) {
  2006. source += `${SLASH_LITERAL}?`;
  2007. }
  2008. return source;
  2009. };
  2010. var parse_1 = parse$2;
  2011. const scan = scan_1;
  2012. const parse$1 = parse_1;
  2013. const utils = utils$3;
  2014. const constants$1 = constants$3;
  2015. const isObject = val => val && typeof val === 'object' && !Array.isArray(val);
  2016. /**
  2017. * Creates a matcher function from one or more glob patterns. The
  2018. * returned function takes a string to match as its first argument,
  2019. * and returns true if the string is a match. The returned matcher
  2020. * function also takes a boolean as the second argument that, when true,
  2021. * returns an object with additional information.
  2022. *
  2023. * ```js
  2024. * const picomatch = require('picomatch');
  2025. * // picomatch(glob[, options]);
  2026. *
  2027. * const isMatch = picomatch('*.!(*a)');
  2028. * console.log(isMatch('a.a')); //=> false
  2029. * console.log(isMatch('a.b')); //=> true
  2030. * ```
  2031. * @name picomatch
  2032. * @param {String|Array} `globs` One or more glob patterns.
  2033. * @param {Object=} `options`
  2034. * @return {Function=} Returns a matcher function.
  2035. * @api public
  2036. */
  2037. const picomatch = (glob, options, returnState = false) => {
  2038. if (Array.isArray(glob)) {
  2039. const fns = glob.map(input => picomatch(input, options, returnState));
  2040. const arrayMatcher = str => {
  2041. for (const isMatch of fns) {
  2042. const state = isMatch(str);
  2043. if (state) return state;
  2044. }
  2045. return false;
  2046. };
  2047. return arrayMatcher;
  2048. }
  2049. const isState = isObject(glob) && glob.tokens && glob.input;
  2050. if (glob === '' || (typeof glob !== 'string' && !isState)) {
  2051. throw new TypeError('Expected pattern to be a non-empty string');
  2052. }
  2053. const opts = options || {};
  2054. const posix = opts.windows;
  2055. const regex = isState
  2056. ? picomatch.compileRe(glob, options)
  2057. : picomatch.makeRe(glob, options, false, true);
  2058. const state = regex.state;
  2059. delete regex.state;
  2060. let isIgnored = () => false;
  2061. if (opts.ignore) {
  2062. const ignoreOpts = { ...options, ignore: null, onMatch: null, onResult: null };
  2063. isIgnored = picomatch(opts.ignore, ignoreOpts, returnState);
  2064. }
  2065. const matcher = (input, returnObject = false) => {
  2066. const { isMatch, match, output } = picomatch.test(input, regex, options, { glob, posix });
  2067. const result = { glob, state, regex, posix, input, output, match, isMatch };
  2068. if (typeof opts.onResult === 'function') {
  2069. opts.onResult(result);
  2070. }
  2071. if (isMatch === false) {
  2072. result.isMatch = false;
  2073. return returnObject ? result : false;
  2074. }
  2075. if (isIgnored(input)) {
  2076. if (typeof opts.onIgnore === 'function') {
  2077. opts.onIgnore(result);
  2078. }
  2079. result.isMatch = false;
  2080. return returnObject ? result : false;
  2081. }
  2082. if (typeof opts.onMatch === 'function') {
  2083. opts.onMatch(result);
  2084. }
  2085. return returnObject ? result : true;
  2086. };
  2087. if (returnState) {
  2088. matcher.state = state;
  2089. }
  2090. return matcher;
  2091. };
  2092. /**
  2093. * Test `input` with the given `regex`. This is used by the main
  2094. * `picomatch()` function to test the input string.
  2095. *
  2096. * ```js
  2097. * const picomatch = require('picomatch');
  2098. * // picomatch.test(input, regex[, options]);
  2099. *
  2100. * console.log(picomatch.test('foo/bar', /^(?:([^/]*?)\/([^/]*?))$/));
  2101. * // { isMatch: true, match: [ 'foo/', 'foo', 'bar' ], output: 'foo/bar' }
  2102. * ```
  2103. * @param {String} `input` String to test.
  2104. * @param {RegExp} `regex`
  2105. * @return {Object} Returns an object with matching info.
  2106. * @api public
  2107. */
  2108. picomatch.test = (input, regex, options, { glob, posix } = {}) => {
  2109. if (typeof input !== 'string') {
  2110. throw new TypeError('Expected input to be a string');
  2111. }
  2112. if (input === '') {
  2113. return { isMatch: false, output: '' };
  2114. }
  2115. const opts = options || {};
  2116. const format = opts.format || (posix ? utils.toPosixSlashes : null);
  2117. let match = input === glob;
  2118. let output = (match && format) ? format(input) : input;
  2119. if (match === false) {
  2120. output = format ? format(input) : input;
  2121. match = output === glob;
  2122. }
  2123. if (match === false || opts.capture === true) {
  2124. if (opts.matchBase === true || opts.basename === true) {
  2125. match = picomatch.matchBase(input, regex, options, posix);
  2126. } else {
  2127. match = regex.exec(output);
  2128. }
  2129. }
  2130. return { isMatch: Boolean(match), match, output };
  2131. };
  2132. /**
  2133. * Match the basename of a filepath.
  2134. *
  2135. * ```js
  2136. * const picomatch = require('picomatch');
  2137. * // picomatch.matchBase(input, glob[, options]);
  2138. * console.log(picomatch.matchBase('foo/bar.js', '*.js'); // true
  2139. * ```
  2140. * @param {String} `input` String to test.
  2141. * @param {RegExp|String} `glob` Glob pattern or regex created by [.makeRe](#makeRe).
  2142. * @return {Boolean}
  2143. * @api public
  2144. */
  2145. picomatch.matchBase = (input, glob, options) => {
  2146. const regex = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options);
  2147. return regex.test(utils.basename(input));
  2148. };
  2149. /**
  2150. * Returns true if **any** of the given glob `patterns` match the specified `string`.
  2151. *
  2152. * ```js
  2153. * const picomatch = require('picomatch');
  2154. * // picomatch.isMatch(string, patterns[, options]);
  2155. *
  2156. * console.log(picomatch.isMatch('a.a', ['b.*', '*.a'])); //=> true
  2157. * console.log(picomatch.isMatch('a.a', 'b.*')); //=> false
  2158. * ```
  2159. * @param {String|Array} str The string to test.
  2160. * @param {String|Array} patterns One or more glob patterns to use for matching.
  2161. * @param {Object} [options] See available [options](#options).
  2162. * @return {Boolean} Returns true if any patterns match `str`
  2163. * @api public
  2164. */
  2165. picomatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
  2166. /**
  2167. * Parse a glob pattern to create the source string for a regular
  2168. * expression.
  2169. *
  2170. * ```js
  2171. * const picomatch = require('picomatch');
  2172. * const result = picomatch.parse(pattern[, options]);
  2173. * ```
  2174. * @param {String} `pattern`
  2175. * @param {Object} `options`
  2176. * @return {Object} Returns an object with useful properties and output to be used as a regex source string.
  2177. * @api public
  2178. */
  2179. picomatch.parse = (pattern, options) => {
  2180. if (Array.isArray(pattern)) return pattern.map(p => picomatch.parse(p, options));
  2181. return parse$1(pattern, { ...options, fastpaths: false });
  2182. };
  2183. /**
  2184. * Scan a glob pattern to separate the pattern into segments.
  2185. *
  2186. * ```js
  2187. * const picomatch = require('picomatch');
  2188. * // picomatch.scan(input[, options]);
  2189. *
  2190. * const result = picomatch.scan('!./foo/*.js');
  2191. * console.log(result);
  2192. * { prefix: '!./',
  2193. * input: '!./foo/*.js',
  2194. * start: 3,
  2195. * base: 'foo',
  2196. * glob: '*.js',
  2197. * isBrace: false,
  2198. * isBracket: false,
  2199. * isGlob: true,
  2200. * isExtglob: false,
  2201. * isGlobstar: false,
  2202. * negated: true }
  2203. * ```
  2204. * @param {String} `input` Glob pattern to scan.
  2205. * @param {Object} `options`
  2206. * @return {Object} Returns an object with
  2207. * @api public
  2208. */
  2209. picomatch.scan = (input, options) => scan(input, options);
  2210. /**
  2211. * Create a regular expression from a parsed glob pattern.
  2212. *
  2213. * ```js
  2214. * const picomatch = require('picomatch');
  2215. * const state = picomatch.parse('*.js');
  2216. * // picomatch.compileRe(state[, options]);
  2217. *
  2218. * console.log(picomatch.compileRe(state));
  2219. * //=> /^(?:(?!\.)(?=.)[^/]*?\.js)$/
  2220. * ```
  2221. * @param {String} `state` The object returned from the `.parse` method.
  2222. * @param {Object} `options`
  2223. * @return {RegExp} Returns a regex created from the given pattern.
  2224. * @api public
  2225. */
  2226. picomatch.compileRe = (parsed, options, returnOutput = false, returnState = false) => {
  2227. if (returnOutput === true) {
  2228. return parsed.output;
  2229. }
  2230. const opts = options || {};
  2231. const prepend = opts.contains ? '' : '^';
  2232. const append = opts.contains ? '' : '$';
  2233. let source = `${prepend}(?:${parsed.output})${append}`;
  2234. if (parsed && parsed.negated === true) {
  2235. source = `^(?!${source}).*$`;
  2236. }
  2237. const regex = picomatch.toRegex(source, options);
  2238. if (returnState === true) {
  2239. regex.state = parsed;
  2240. }
  2241. return regex;
  2242. };
  2243. picomatch.makeRe = (input, options, returnOutput = false, returnState = false) => {
  2244. if (!input || typeof input !== 'string') {
  2245. throw new TypeError('Expected a non-empty string');
  2246. }
  2247. const opts = options || {};
  2248. let parsed = { negated: false, fastpaths: true };
  2249. let prefix = '';
  2250. let output;
  2251. if (input.startsWith('./')) {
  2252. input = input.slice(2);
  2253. prefix = parsed.prefix = './';
  2254. }
  2255. if (opts.fastpaths !== false && (input[0] === '.' || input[0] === '*')) {
  2256. output = parse$1.fastpaths(input, options);
  2257. }
  2258. if (output === undefined) {
  2259. parsed = parse$1(input, options);
  2260. parsed.prefix = prefix + (parsed.prefix || '');
  2261. } else {
  2262. parsed.output = output;
  2263. }
  2264. return picomatch.compileRe(parsed, options, returnOutput, returnState);
  2265. };
  2266. /**
  2267. * Create a regular expression from the given regex source string.
  2268. *
  2269. * ```js
  2270. * const picomatch = require('picomatch');
  2271. * // picomatch.toRegex(source[, options]);
  2272. *
  2273. * const { output } = picomatch.parse('*.js');
  2274. * console.log(picomatch.toRegex(output));
  2275. * //=> /^(?:(?!\.)(?=.)[^/]*?\.js)$/
  2276. * ```
  2277. * @param {String} `source` Regular expression source string.
  2278. * @param {Object} `options`
  2279. * @return {RegExp}
  2280. * @api public
  2281. */
  2282. picomatch.toRegex = (source, options) => {
  2283. try {
  2284. const opts = options || {};
  2285. return new RegExp(source, opts.flags || (opts.nocase ? 'i' : ''));
  2286. } catch (err) {
  2287. if (options && options.debug === true) throw err;
  2288. return /$^/;
  2289. }
  2290. };
  2291. /**
  2292. * Picomatch constants.
  2293. * @return {Object}
  2294. */
  2295. picomatch.constants = constants$1;
  2296. /**
  2297. * Expose "picomatch"
  2298. */
  2299. var picomatch_1 = picomatch;
  2300. (function (module) {
  2301. module.exports = picomatch_1;
  2302. } (picomatchBrowser));
  2303. var pm = /*@__PURE__*/getDefaultExportFromCjs(picomatchBrowserExports);
  2304. function isArray(arg) {
  2305. return Array.isArray(arg);
  2306. }
  2307. function ensureArray(thing) {
  2308. if (isArray(thing))
  2309. return thing;
  2310. if (thing == null)
  2311. return [];
  2312. return [thing];
  2313. }
  2314. const globToTest = (glob) => {
  2315. const pattern = glob;
  2316. const fn = pm(pattern, { dot: true });
  2317. return {
  2318. test: (what) => {
  2319. const result = fn(what);
  2320. return result;
  2321. },
  2322. };
  2323. };
  2324. const testTrue = {
  2325. test: () => true,
  2326. };
  2327. const getMatcher = (filter) => {
  2328. const bundleTest = "bundle" in filter && filter.bundle != null ? globToTest(filter.bundle) : testTrue;
  2329. const fileTest = "file" in filter && filter.file != null ? globToTest(filter.file) : testTrue;
  2330. return { bundleTest, fileTest };
  2331. };
  2332. const createFilter = (include, exclude) => {
  2333. const includeMatchers = ensureArray(include).map(getMatcher);
  2334. const excludeMatchers = ensureArray(exclude).map(getMatcher);
  2335. return (bundleId, id) => {
  2336. for (let i = 0; i < excludeMatchers.length; ++i) {
  2337. const { bundleTest, fileTest } = excludeMatchers[i];
  2338. if (bundleTest.test(bundleId) && fileTest.test(id))
  2339. return false;
  2340. }
  2341. for (let i = 0; i < includeMatchers.length; ++i) {
  2342. const { bundleTest, fileTest } = includeMatchers[i];
  2343. if (bundleTest.test(bundleId) && fileTest.test(id))
  2344. return true;
  2345. }
  2346. return !includeMatchers.length;
  2347. };
  2348. };
  2349. const throttleFilter = (callback, limit) => {
  2350. let waiting = false;
  2351. return (val) => {
  2352. if (!waiting) {
  2353. callback(val);
  2354. waiting = true;
  2355. setTimeout(() => {
  2356. waiting = false;
  2357. }, limit);
  2358. }
  2359. };
  2360. };
  2361. const prepareFilter = (filt) => {
  2362. if (filt === "")
  2363. return [];
  2364. return (filt
  2365. .split(",")
  2366. // remove spaces before and after
  2367. .map((entry) => entry.trim())
  2368. // unquote "
  2369. .map((entry) => entry.startsWith('"') && entry.endsWith('"') ? entry.substring(1, entry.length - 1) : entry)
  2370. // unquote '
  2371. .map((entry) => entry.startsWith("'") && entry.endsWith("'") ? entry.substring(1, entry.length - 1) : entry)
  2372. // remove empty strings
  2373. .filter((entry) => entry)
  2374. // parse bundle:file
  2375. .map((entry) => entry.split(":"))
  2376. // normalize entry just in case
  2377. .flatMap((entry) => {
  2378. if (entry.length === 0)
  2379. return [];
  2380. let bundle = null;
  2381. let file = null;
  2382. if (entry.length === 1 && entry[0]) {
  2383. file = entry[0];
  2384. return [{ file, bundle }];
  2385. }
  2386. bundle = entry[0] || null;
  2387. file = entry.slice(1).join(":") || null;
  2388. return [{ bundle, file }];
  2389. }));
  2390. };
  2391. const useFilter = () => {
  2392. const [includeFilter, setIncludeFilter] = p("");
  2393. const [excludeFilter, setExcludeFilter] = p("");
  2394. const setIncludeFilterTrottled = F(() => throttleFilter(setIncludeFilter, 200), []);
  2395. const setExcludeFilterTrottled = F(() => throttleFilter(setExcludeFilter, 200), []);
  2396. const isIncluded = F(() => createFilter(prepareFilter(includeFilter), prepareFilter(excludeFilter)), [includeFilter, excludeFilter]);
  2397. const getModuleFilterMultiplier = T((bundleId, data) => {
  2398. return isIncluded(bundleId, data.id) ? 1 : 0;
  2399. }, [isIncluded]);
  2400. return {
  2401. getModuleFilterMultiplier,
  2402. includeFilter,
  2403. excludeFilter,
  2404. setExcludeFilter: setExcludeFilterTrottled,
  2405. setIncludeFilter: setIncludeFilterTrottled,
  2406. };
  2407. };
  2408. function ascending(a, b) {
  2409. return a == null || b == null ? NaN : a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;
  2410. }
  2411. function descending(a, b) {
  2412. return a == null || b == null ? NaN
  2413. : b < a ? -1
  2414. : b > a ? 1
  2415. : b >= a ? 0
  2416. : NaN;
  2417. }
  2418. function bisector(f) {
  2419. let compare1, compare2, delta;
  2420. // If an accessor is specified, promote it to a comparator. In this case we
  2421. // can test whether the search value is (self-) comparable. We can’t do this
  2422. // for a comparator (except for specific, known comparators) because we can’t
  2423. // tell if the comparator is symmetric, and an asymmetric comparator can’t be
  2424. // used to test whether a single value is comparable.
  2425. if (f.length !== 2) {
  2426. compare1 = ascending;
  2427. compare2 = (d, x) => ascending(f(d), x);
  2428. delta = (d, x) => f(d) - x;
  2429. } else {
  2430. compare1 = f === ascending || f === descending ? f : zero$1;
  2431. compare2 = f;
  2432. delta = f;
  2433. }
  2434. function left(a, x, lo = 0, hi = a.length) {
  2435. if (lo < hi) {
  2436. if (compare1(x, x) !== 0) return hi;
  2437. do {
  2438. const mid = (lo + hi) >>> 1;
  2439. if (compare2(a[mid], x) < 0) lo = mid + 1;
  2440. else hi = mid;
  2441. } while (lo < hi);
  2442. }
  2443. return lo;
  2444. }
  2445. function right(a, x, lo = 0, hi = a.length) {
  2446. if (lo < hi) {
  2447. if (compare1(x, x) !== 0) return hi;
  2448. do {
  2449. const mid = (lo + hi) >>> 1;
  2450. if (compare2(a[mid], x) <= 0) lo = mid + 1;
  2451. else hi = mid;
  2452. } while (lo < hi);
  2453. }
  2454. return lo;
  2455. }
  2456. function center(a, x, lo = 0, hi = a.length) {
  2457. const i = left(a, x, lo, hi - 1);
  2458. return i > lo && delta(a[i - 1], x) > -delta(a[i], x) ? i - 1 : i;
  2459. }
  2460. return {left, center, right};
  2461. }
  2462. function zero$1() {
  2463. return 0;
  2464. }
  2465. function number$1(x) {
  2466. return x === null ? NaN : +x;
  2467. }
  2468. const ascendingBisect = bisector(ascending);
  2469. const bisectRight = ascendingBisect.right;
  2470. bisector(number$1).center;
  2471. class InternMap extends Map {
  2472. constructor(entries, key = keyof) {
  2473. super();
  2474. Object.defineProperties(this, {_intern: {value: new Map()}, _key: {value: key}});
  2475. if (entries != null) for (const [key, value] of entries) this.set(key, value);
  2476. }
  2477. get(key) {
  2478. return super.get(intern_get(this, key));
  2479. }
  2480. has(key) {
  2481. return super.has(intern_get(this, key));
  2482. }
  2483. set(key, value) {
  2484. return super.set(intern_set(this, key), value);
  2485. }
  2486. delete(key) {
  2487. return super.delete(intern_delete(this, key));
  2488. }
  2489. }
  2490. function intern_get({_intern, _key}, value) {
  2491. const key = _key(value);
  2492. return _intern.has(key) ? _intern.get(key) : value;
  2493. }
  2494. function intern_set({_intern, _key}, value) {
  2495. const key = _key(value);
  2496. if (_intern.has(key)) return _intern.get(key);
  2497. _intern.set(key, value);
  2498. return value;
  2499. }
  2500. function intern_delete({_intern, _key}, value) {
  2501. const key = _key(value);
  2502. if (_intern.has(key)) {
  2503. value = _intern.get(key);
  2504. _intern.delete(key);
  2505. }
  2506. return value;
  2507. }
  2508. function keyof(value) {
  2509. return value !== null && typeof value === "object" ? value.valueOf() : value;
  2510. }
  2511. function identity$2(x) {
  2512. return x;
  2513. }
  2514. function group(values, ...keys) {
  2515. return nest(values, identity$2, identity$2, keys);
  2516. }
  2517. function nest(values, map, reduce, keys) {
  2518. return (function regroup(values, i) {
  2519. if (i >= keys.length) return reduce(values);
  2520. const groups = new InternMap();
  2521. const keyof = keys[i++];
  2522. let index = -1;
  2523. for (const value of values) {
  2524. const key = keyof(value, ++index, values);
  2525. const group = groups.get(key);
  2526. if (group) group.push(value);
  2527. else groups.set(key, [value]);
  2528. }
  2529. for (const [key, values] of groups) {
  2530. groups.set(key, regroup(values, i));
  2531. }
  2532. return map(groups);
  2533. })(values, 0);
  2534. }
  2535. var e10 = Math.sqrt(50),
  2536. e5 = Math.sqrt(10),
  2537. e2 = Math.sqrt(2);
  2538. function ticks(start, stop, count) {
  2539. var reverse,
  2540. i = -1,
  2541. n,
  2542. ticks,
  2543. step;
  2544. stop = +stop, start = +start, count = +count;
  2545. if (start === stop && count > 0) return [start];
  2546. if (reverse = stop < start) n = start, start = stop, stop = n;
  2547. if ((step = tickIncrement(start, stop, count)) === 0 || !isFinite(step)) return [];
  2548. if (step > 0) {
  2549. let r0 = Math.round(start / step), r1 = Math.round(stop / step);
  2550. if (r0 * step < start) ++r0;
  2551. if (r1 * step > stop) --r1;
  2552. ticks = new Array(n = r1 - r0 + 1);
  2553. while (++i < n) ticks[i] = (r0 + i) * step;
  2554. } else {
  2555. step = -step;
  2556. let r0 = Math.round(start * step), r1 = Math.round(stop * step);
  2557. if (r0 / step < start) ++r0;
  2558. if (r1 / step > stop) --r1;
  2559. ticks = new Array(n = r1 - r0 + 1);
  2560. while (++i < n) ticks[i] = (r0 + i) / step;
  2561. }
  2562. if (reverse) ticks.reverse();
  2563. return ticks;
  2564. }
  2565. function tickIncrement(start, stop, count) {
  2566. var step = (stop - start) / Math.max(0, count),
  2567. power = Math.floor(Math.log(step) / Math.LN10),
  2568. error = step / Math.pow(10, power);
  2569. return power >= 0
  2570. ? (error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1) * Math.pow(10, power)
  2571. : -Math.pow(10, -power) / (error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1);
  2572. }
  2573. function tickStep(start, stop, count) {
  2574. var step0 = Math.abs(stop - start) / Math.max(0, count),
  2575. step1 = Math.pow(10, Math.floor(Math.log(step0) / Math.LN10)),
  2576. error = step0 / step1;
  2577. if (error >= e10) step1 *= 10;
  2578. else if (error >= e5) step1 *= 5;
  2579. else if (error >= e2) step1 *= 2;
  2580. return stop < start ? -step1 : step1;
  2581. }
  2582. const TOP_PADDING = 20;
  2583. const PADDING = 2;
  2584. const Node = ({ node, onMouseOver, onClick, selected }) => {
  2585. const { getModuleColor } = q(StaticContext);
  2586. const { backgroundColor, fontColor } = getModuleColor(node);
  2587. const { x0, x1, y1, y0, data, children = null } = node;
  2588. const textRef = _(null);
  2589. const textRectRef = _();
  2590. const width = x1 - x0;
  2591. const height = y1 - y0;
  2592. const textProps = {
  2593. "font-size": "0.7em",
  2594. "dominant-baseline": "middle",
  2595. "text-anchor": "middle",
  2596. x: width / 2,
  2597. };
  2598. if (children != null) {
  2599. textProps.y = (TOP_PADDING + PADDING) / 2;
  2600. }
  2601. else {
  2602. textProps.y = height / 2;
  2603. }
  2604. s(() => {
  2605. if (width == 0 || height == 0 || !textRef.current) {
  2606. return;
  2607. }
  2608. if (textRectRef.current == null) {
  2609. textRectRef.current = textRef.current.getBoundingClientRect();
  2610. }
  2611. let scale = 1;
  2612. if (children != null) {
  2613. scale = Math.min((width * 0.9) / textRectRef.current.width, Math.min(height, TOP_PADDING + PADDING) / textRectRef.current.height);
  2614. scale = Math.min(1, scale);
  2615. textRef.current.setAttribute("y", String(Math.min(TOP_PADDING + PADDING, height) / 2 / scale));
  2616. textRef.current.setAttribute("x", String(width / 2 / scale));
  2617. }
  2618. else {
  2619. scale = Math.min((width * 0.9) / textRectRef.current.width, (height * 0.9) / textRectRef.current.height);
  2620. scale = Math.min(1, scale);
  2621. textRef.current.setAttribute("y", String(height / 2 / scale));
  2622. textRef.current.setAttribute("x", String(width / 2 / scale));
  2623. }
  2624. textRef.current.setAttribute("transform", `scale(${scale.toFixed(2)})`);
  2625. }, [children, height, width]);
  2626. if (width == 0 || height == 0) {
  2627. return null;
  2628. }
  2629. return (o$1("g", Object.assign({ className: "node", transform: `translate(${x0},${y0})`, onClick: (event) => {
  2630. event.stopPropagation();
  2631. onClick(node);
  2632. }, onMouseOver: (event) => {
  2633. event.stopPropagation();
  2634. onMouseOver(node);
  2635. } }, { children: [o$1("rect", { fill: backgroundColor, rx: 2, ry: 2, width: x1 - x0, height: y1 - y0, stroke: selected ? "#fff" : undefined, "stroke-width": selected ? 2 : undefined }), o$1("text", Object.assign({ ref: textRef, fill: fontColor, onClick: (event) => {
  2636. var _a;
  2637. if (((_a = window.getSelection()) === null || _a === void 0 ? void 0 : _a.toString()) !== "") {
  2638. event.stopPropagation();
  2639. }
  2640. } }, textProps, { children: data.name }))] })));
  2641. };
  2642. const TreeMap = ({ root, onNodeHover, selectedNode, onNodeClick, }) => {
  2643. const { width, height, getModuleIds } = q(StaticContext);
  2644. console.time("layering");
  2645. // this will make groups by height
  2646. const nestedData = F(() => {
  2647. const nestedDataMap = group(root.descendants(), (d) => d.height);
  2648. const nestedData = Array.from(nestedDataMap, ([key, values]) => ({
  2649. key,
  2650. values,
  2651. }));
  2652. nestedData.sort((a, b) => b.key - a.key);
  2653. return nestedData;
  2654. }, [root]);
  2655. console.timeEnd("layering");
  2656. return (o$1("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: `0 0 ${width} ${height}` }, { children: nestedData.map(({ key, values }) => {
  2657. return (o$1("g", Object.assign({ className: "layer" }, { children: values.map((node) => {
  2658. return (o$1(Node, { node: node, onMouseOver: onNodeHover, selected: selectedNode === node, onClick: onNodeClick }, getModuleIds(node.data).nodeUid.id));
  2659. }) }), key));
  2660. }) })));
  2661. };
  2662. var bytesExports = {};
  2663. var bytes$1 = {
  2664. get exports(){ return bytesExports; },
  2665. set exports(v){ bytesExports = v; },
  2666. };
  2667. /*!
  2668. * bytes
  2669. * Copyright(c) 2012-2014 TJ Holowaychuk
  2670. * Copyright(c) 2015 Jed Watson
  2671. * MIT Licensed
  2672. */
  2673. /**
  2674. * Module exports.
  2675. * @public
  2676. */
  2677. bytes$1.exports = bytes;
  2678. var format_1 = bytesExports.format = format$1;
  2679. bytesExports.parse = parse;
  2680. /**
  2681. * Module variables.
  2682. * @private
  2683. */
  2684. var formatThousandsRegExp = /\B(?=(\d{3})+(?!\d))/g;
  2685. var formatDecimalsRegExp = /(?:\.0*|(\.[^0]+)0+)$/;
  2686. var map$1 = {
  2687. b: 1,
  2688. kb: 1 << 10,
  2689. mb: 1 << 20,
  2690. gb: 1 << 30,
  2691. tb: Math.pow(1024, 4),
  2692. pb: Math.pow(1024, 5),
  2693. };
  2694. var parseRegExp = /^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb|pb)$/i;
  2695. /**
  2696. * Convert the given value in bytes into a string or parse to string to an integer in bytes.
  2697. *
  2698. * @param {string|number} value
  2699. * @param {{
  2700. * case: [string],
  2701. * decimalPlaces: [number]
  2702. * fixedDecimals: [boolean]
  2703. * thousandsSeparator: [string]
  2704. * unitSeparator: [string]
  2705. * }} [options] bytes options.
  2706. *
  2707. * @returns {string|number|null}
  2708. */
  2709. function bytes(value, options) {
  2710. if (typeof value === 'string') {
  2711. return parse(value);
  2712. }
  2713. if (typeof value === 'number') {
  2714. return format$1(value, options);
  2715. }
  2716. return null;
  2717. }
  2718. /**
  2719. * Format the given value in bytes into a string.
  2720. *
  2721. * If the value is negative, it is kept as such. If it is a float,
  2722. * it is rounded.
  2723. *
  2724. * @param {number} value
  2725. * @param {object} [options]
  2726. * @param {number} [options.decimalPlaces=2]
  2727. * @param {number} [options.fixedDecimals=false]
  2728. * @param {string} [options.thousandsSeparator=]
  2729. * @param {string} [options.unit=]
  2730. * @param {string} [options.unitSeparator=]
  2731. *
  2732. * @returns {string|null}
  2733. * @public
  2734. */
  2735. function format$1(value, options) {
  2736. if (!Number.isFinite(value)) {
  2737. return null;
  2738. }
  2739. var mag = Math.abs(value);
  2740. var thousandsSeparator = (options && options.thousandsSeparator) || '';
  2741. var unitSeparator = (options && options.unitSeparator) || '';
  2742. var decimalPlaces = (options && options.decimalPlaces !== undefined) ? options.decimalPlaces : 2;
  2743. var fixedDecimals = Boolean(options && options.fixedDecimals);
  2744. var unit = (options && options.unit) || '';
  2745. if (!unit || !map$1[unit.toLowerCase()]) {
  2746. if (mag >= map$1.pb) {
  2747. unit = 'PB';
  2748. } else if (mag >= map$1.tb) {
  2749. unit = 'TB';
  2750. } else if (mag >= map$1.gb) {
  2751. unit = 'GB';
  2752. } else if (mag >= map$1.mb) {
  2753. unit = 'MB';
  2754. } else if (mag >= map$1.kb) {
  2755. unit = 'KB';
  2756. } else {
  2757. unit = 'B';
  2758. }
  2759. }
  2760. var val = value / map$1[unit.toLowerCase()];
  2761. var str = val.toFixed(decimalPlaces);
  2762. if (!fixedDecimals) {
  2763. str = str.replace(formatDecimalsRegExp, '$1');
  2764. }
  2765. if (thousandsSeparator) {
  2766. str = str.split('.').map(function (s, i) {
  2767. return i === 0
  2768. ? s.replace(formatThousandsRegExp, thousandsSeparator)
  2769. : s
  2770. }).join('.');
  2771. }
  2772. return str + unitSeparator + unit;
  2773. }
  2774. /**
  2775. * Parse the string value into an integer in bytes.
  2776. *
  2777. * If no unit is given, it is assumed the value is in bytes.
  2778. *
  2779. * @param {number|string} val
  2780. *
  2781. * @returns {number|null}
  2782. * @public
  2783. */
  2784. function parse(val) {
  2785. if (typeof val === 'number' && !isNaN(val)) {
  2786. return val;
  2787. }
  2788. if (typeof val !== 'string') {
  2789. return null;
  2790. }
  2791. // Test if the string passed is valid
  2792. var results = parseRegExp.exec(val);
  2793. var floatValue;
  2794. var unit = 'b';
  2795. if (!results) {
  2796. // Nothing could be extracted from the given string
  2797. floatValue = parseInt(val, 10);
  2798. unit = 'b';
  2799. } else {
  2800. // Retrieve the value and the unit
  2801. floatValue = parseFloat(results[1]);
  2802. unit = results[4].toLowerCase();
  2803. }
  2804. if (isNaN(floatValue)) {
  2805. return null;
  2806. }
  2807. return Math.floor(map$1[unit] * floatValue);
  2808. }
  2809. const Tooltip_marginX = 10;
  2810. const Tooltip_marginY = 30;
  2811. const SOURCEMAP_RENDERED = (o$1("span", { children: [" ", o$1("b", { children: LABELS.renderedLength }), " is a number of characters in the file after individual and ", o$1("br", {}), " ", "whole bundle transformations according to sourcemap."] }));
  2812. const RENDRED = (o$1("span", { children: [o$1("b", { children: LABELS.renderedLength }), " is a byte size of individual file after transformations and treeshake."] }));
  2813. const COMPRESSED = (o$1("span", { children: [o$1("b", { children: LABELS.gzipLength }), " and ", o$1("b", { children: LABELS.brotliLength }), " is a byte size of individual file after individual transformations,", o$1("br", {}), " treeshake and compression."] }));
  2814. const Tooltip = ({ node, visible, root, sizeProperty, }) => {
  2815. const { availableSizeProperties, getModuleSize, data } = q(StaticContext);
  2816. const ref = _(null);
  2817. const [style, setStyle] = p({});
  2818. const content = F(() => {
  2819. if (!node)
  2820. return null;
  2821. const mainSize = getModuleSize(node.data, sizeProperty);
  2822. const percentageNum = (100 * mainSize) / getModuleSize(root.data, sizeProperty);
  2823. const percentage = percentageNum.toFixed(2);
  2824. const percentageString = percentage + "%";
  2825. const path = node
  2826. .ancestors()
  2827. .reverse()
  2828. .map((d) => d.data.name)
  2829. .join("/");
  2830. let dataNode = null;
  2831. if (!isModuleTree(node.data)) {
  2832. const mainUid = data.nodeParts[node.data.uid].metaUid;
  2833. dataNode = data.nodeMetas[mainUid];
  2834. }
  2835. return (o$1(p$1, { children: [o$1("div", { children: path }), availableSizeProperties.map((sizeProp) => {
  2836. if (sizeProp === sizeProperty) {
  2837. return (o$1("div", { children: [o$1("b", { children: [LABELS[sizeProp], ": ", format_1(mainSize)] }), " ", "(", percentageString, ")"] }, sizeProp));
  2838. }
  2839. else {
  2840. return (o$1("div", { children: [LABELS[sizeProp], ": ", format_1(getModuleSize(node.data, sizeProp))] }, sizeProp));
  2841. }
  2842. }), o$1("br", {}), dataNode && dataNode.importedBy.length > 0 && (o$1("div", { children: [o$1("div", { children: [o$1("b", { children: "Imported By" }), ":"] }), dataNode.importedBy.map(({ uid }) => {
  2843. const id = data.nodeMetas[uid].id;
  2844. return o$1("div", { children: id }, id);
  2845. })] })), o$1("br", {}), o$1("small", { children: data.options.sourcemap ? SOURCEMAP_RENDERED : RENDRED }), (data.options.gzip || data.options.brotli) && (o$1(p$1, { children: [o$1("br", {}), o$1("small", { children: COMPRESSED })] }))] }));
  2846. }, [availableSizeProperties, data, getModuleSize, node, root.data, sizeProperty]);
  2847. const updatePosition = (mouseCoords) => {
  2848. if (!ref.current)
  2849. return;
  2850. const pos = {
  2851. left: mouseCoords.x + Tooltip_marginX,
  2852. top: mouseCoords.y + Tooltip_marginY,
  2853. };
  2854. const boundingRect = ref.current.getBoundingClientRect();
  2855. if (pos.left + boundingRect.width > window.innerWidth) {
  2856. // Shifting horizontally
  2857. pos.left = window.innerWidth - boundingRect.width;
  2858. }
  2859. if (pos.top + boundingRect.height > window.innerHeight) {
  2860. // Flipping vertically
  2861. pos.top = mouseCoords.y - Tooltip_marginY - boundingRect.height;
  2862. }
  2863. setStyle(pos);
  2864. };
  2865. h(() => {
  2866. const handleMouseMove = (event) => {
  2867. updatePosition({
  2868. x: event.pageX,
  2869. y: event.pageY,
  2870. });
  2871. };
  2872. document.addEventListener("mousemove", handleMouseMove, true);
  2873. return () => {
  2874. document.removeEventListener("mousemove", handleMouseMove, true);
  2875. };
  2876. }, []);
  2877. return (o$1("div", Object.assign({ className: `tooltip ${visible ? "" : "tooltip-hidden"}`, ref: ref, style: style }, { children: content })));
  2878. };
  2879. const Chart = ({ root, sizeProperty, selectedNode, setSelectedNode, }) => {
  2880. const [showTooltip, setShowTooltip] = p(false);
  2881. const [tooltipNode, setTooltipNode] = p(undefined);
  2882. h(() => {
  2883. const handleMouseOut = () => {
  2884. setShowTooltip(false);
  2885. };
  2886. document.addEventListener("mouseover", handleMouseOut);
  2887. return () => {
  2888. document.removeEventListener("mouseover", handleMouseOut);
  2889. };
  2890. }, []);
  2891. return (o$1(p$1, { children: [o$1(TreeMap, { root: root, onNodeHover: (node) => {
  2892. setTooltipNode(node);
  2893. setShowTooltip(true);
  2894. }, selectedNode: selectedNode, onNodeClick: (node) => {
  2895. setSelectedNode(selectedNode === node ? undefined : node);
  2896. } }), o$1(Tooltip, { visible: showTooltip, node: tooltipNode, root: root, sizeProperty: sizeProperty })] }));
  2897. };
  2898. const Main = () => {
  2899. const { availableSizeProperties, rawHierarchy, getModuleSize, layout, data } = q(StaticContext);
  2900. const [sizeProperty, setSizeProperty] = p(availableSizeProperties[0]);
  2901. const [selectedNode, setSelectedNode] = p(undefined);
  2902. const { getModuleFilterMultiplier, setExcludeFilter, setIncludeFilter } = useFilter();
  2903. console.time("getNodeSizeMultiplier");
  2904. const getNodeSizeMultiplier = F(() => {
  2905. const selectedMultiplier = 1; // selectedSize < rootSize * increaseFactor ? (rootSize * increaseFactor) / selectedSize : rootSize / selectedSize;
  2906. const nonSelectedMultiplier = 0; // 1 / selectedMultiplier
  2907. if (selectedNode === undefined) {
  2908. return () => 1;
  2909. }
  2910. else if (isModuleTree(selectedNode.data)) {
  2911. const leaves = new Set(selectedNode.leaves().map((d) => d.data));
  2912. return (node) => {
  2913. if (leaves.has(node)) {
  2914. return selectedMultiplier;
  2915. }
  2916. return nonSelectedMultiplier;
  2917. };
  2918. }
  2919. else {
  2920. return (node) => {
  2921. if (node === selectedNode.data) {
  2922. return selectedMultiplier;
  2923. }
  2924. return nonSelectedMultiplier;
  2925. };
  2926. }
  2927. }, [getModuleSize, rawHierarchy.data, selectedNode, sizeProperty]);
  2928. console.timeEnd("getNodeSizeMultiplier");
  2929. console.time("root hierarchy compute");
  2930. // root here always be the same as rawHierarchy even after layouting
  2931. const root = F(() => {
  2932. const rootWithSizesAndSorted = rawHierarchy
  2933. .sum((node) => {
  2934. var _a;
  2935. if (isModuleTree(node))
  2936. return 0;
  2937. const meta = data.nodeMetas[data.nodeParts[node.uid].metaUid];
  2938. const bundleId = (_a = Object.entries(meta.moduleParts).find(([bundleId, uid]) => uid == node.uid)) === null || _a === void 0 ? void 0 : _a[0];
  2939. const ownSize = getModuleSize(node, sizeProperty);
  2940. const zoomMultiplier = getNodeSizeMultiplier(node);
  2941. const filterMultiplier = getModuleFilterMultiplier(bundleId, meta);
  2942. return ownSize * zoomMultiplier * filterMultiplier;
  2943. })
  2944. .sort((a, b) => getModuleSize(a.data, sizeProperty) - getModuleSize(b.data, sizeProperty));
  2945. return layout(rootWithSizesAndSorted);
  2946. }, [
  2947. data,
  2948. getModuleFilterMultiplier,
  2949. getModuleSize,
  2950. getNodeSizeMultiplier,
  2951. layout,
  2952. rawHierarchy,
  2953. sizeProperty,
  2954. ]);
  2955. console.timeEnd("root hierarchy compute");
  2956. return (o$1(p$1, { children: [o$1(SideBar, { sizeProperty: sizeProperty, availableSizeProperties: availableSizeProperties, setSizeProperty: setSizeProperty, onExcludeChange: setExcludeFilter, onIncludeChange: setIncludeFilter }), o$1(Chart, { root: root, sizeProperty: sizeProperty, selectedNode: selectedNode, setSelectedNode: setSelectedNode })] }));
  2957. };
  2958. function initRange(domain, range) {
  2959. switch (arguments.length) {
  2960. case 0: break;
  2961. case 1: this.range(domain); break;
  2962. default: this.range(range).domain(domain); break;
  2963. }
  2964. return this;
  2965. }
  2966. function initInterpolator(domain, interpolator) {
  2967. switch (arguments.length) {
  2968. case 0: break;
  2969. case 1: {
  2970. if (typeof domain === "function") this.interpolator(domain);
  2971. else this.range(domain);
  2972. break;
  2973. }
  2974. default: {
  2975. this.domain(domain);
  2976. if (typeof interpolator === "function") this.interpolator(interpolator);
  2977. else this.range(interpolator);
  2978. break;
  2979. }
  2980. }
  2981. return this;
  2982. }
  2983. function define(constructor, factory, prototype) {
  2984. constructor.prototype = factory.prototype = prototype;
  2985. prototype.constructor = constructor;
  2986. }
  2987. function extend(parent, definition) {
  2988. var prototype = Object.create(parent.prototype);
  2989. for (var key in definition) prototype[key] = definition[key];
  2990. return prototype;
  2991. }
  2992. function Color() {}
  2993. var darker = 0.7;
  2994. var brighter = 1 / darker;
  2995. var reI = "\\s*([+-]?\\d+)\\s*",
  2996. reN = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",
  2997. reP = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",
  2998. reHex = /^#([0-9a-f]{3,8})$/,
  2999. reRgbInteger = new RegExp(`^rgb\\(${reI},${reI},${reI}\\)$`),
  3000. reRgbPercent = new RegExp(`^rgb\\(${reP},${reP},${reP}\\)$`),
  3001. reRgbaInteger = new RegExp(`^rgba\\(${reI},${reI},${reI},${reN}\\)$`),
  3002. reRgbaPercent = new RegExp(`^rgba\\(${reP},${reP},${reP},${reN}\\)$`),
  3003. reHslPercent = new RegExp(`^hsl\\(${reN},${reP},${reP}\\)$`),
  3004. reHslaPercent = new RegExp(`^hsla\\(${reN},${reP},${reP},${reN}\\)$`);
  3005. var named = {
  3006. aliceblue: 0xf0f8ff,
  3007. antiquewhite: 0xfaebd7,
  3008. aqua: 0x00ffff,
  3009. aquamarine: 0x7fffd4,
  3010. azure: 0xf0ffff,
  3011. beige: 0xf5f5dc,
  3012. bisque: 0xffe4c4,
  3013. black: 0x000000,
  3014. blanchedalmond: 0xffebcd,
  3015. blue: 0x0000ff,
  3016. blueviolet: 0x8a2be2,
  3017. brown: 0xa52a2a,
  3018. burlywood: 0xdeb887,
  3019. cadetblue: 0x5f9ea0,
  3020. chartreuse: 0x7fff00,
  3021. chocolate: 0xd2691e,
  3022. coral: 0xff7f50,
  3023. cornflowerblue: 0x6495ed,
  3024. cornsilk: 0xfff8dc,
  3025. crimson: 0xdc143c,
  3026. cyan: 0x00ffff,
  3027. darkblue: 0x00008b,
  3028. darkcyan: 0x008b8b,
  3029. darkgoldenrod: 0xb8860b,
  3030. darkgray: 0xa9a9a9,
  3031. darkgreen: 0x006400,
  3032. darkgrey: 0xa9a9a9,
  3033. darkkhaki: 0xbdb76b,
  3034. darkmagenta: 0x8b008b,
  3035. darkolivegreen: 0x556b2f,
  3036. darkorange: 0xff8c00,
  3037. darkorchid: 0x9932cc,
  3038. darkred: 0x8b0000,
  3039. darksalmon: 0xe9967a,
  3040. darkseagreen: 0x8fbc8f,
  3041. darkslateblue: 0x483d8b,
  3042. darkslategray: 0x2f4f4f,
  3043. darkslategrey: 0x2f4f4f,
  3044. darkturquoise: 0x00ced1,
  3045. darkviolet: 0x9400d3,
  3046. deeppink: 0xff1493,
  3047. deepskyblue: 0x00bfff,
  3048. dimgray: 0x696969,
  3049. dimgrey: 0x696969,
  3050. dodgerblue: 0x1e90ff,
  3051. firebrick: 0xb22222,
  3052. floralwhite: 0xfffaf0,
  3053. forestgreen: 0x228b22,
  3054. fuchsia: 0xff00ff,
  3055. gainsboro: 0xdcdcdc,
  3056. ghostwhite: 0xf8f8ff,
  3057. gold: 0xffd700,
  3058. goldenrod: 0xdaa520,
  3059. gray: 0x808080,
  3060. green: 0x008000,
  3061. greenyellow: 0xadff2f,
  3062. grey: 0x808080,
  3063. honeydew: 0xf0fff0,
  3064. hotpink: 0xff69b4,
  3065. indianred: 0xcd5c5c,
  3066. indigo: 0x4b0082,
  3067. ivory: 0xfffff0,
  3068. khaki: 0xf0e68c,
  3069. lavender: 0xe6e6fa,
  3070. lavenderblush: 0xfff0f5,
  3071. lawngreen: 0x7cfc00,
  3072. lemonchiffon: 0xfffacd,
  3073. lightblue: 0xadd8e6,
  3074. lightcoral: 0xf08080,
  3075. lightcyan: 0xe0ffff,
  3076. lightgoldenrodyellow: 0xfafad2,
  3077. lightgray: 0xd3d3d3,
  3078. lightgreen: 0x90ee90,
  3079. lightgrey: 0xd3d3d3,
  3080. lightpink: 0xffb6c1,
  3081. lightsalmon: 0xffa07a,
  3082. lightseagreen: 0x20b2aa,
  3083. lightskyblue: 0x87cefa,
  3084. lightslategray: 0x778899,
  3085. lightslategrey: 0x778899,
  3086. lightsteelblue: 0xb0c4de,
  3087. lightyellow: 0xffffe0,
  3088. lime: 0x00ff00,
  3089. limegreen: 0x32cd32,
  3090. linen: 0xfaf0e6,
  3091. magenta: 0xff00ff,
  3092. maroon: 0x800000,
  3093. mediumaquamarine: 0x66cdaa,
  3094. mediumblue: 0x0000cd,
  3095. mediumorchid: 0xba55d3,
  3096. mediumpurple: 0x9370db,
  3097. mediumseagreen: 0x3cb371,
  3098. mediumslateblue: 0x7b68ee,
  3099. mediumspringgreen: 0x00fa9a,
  3100. mediumturquoise: 0x48d1cc,
  3101. mediumvioletred: 0xc71585,
  3102. midnightblue: 0x191970,
  3103. mintcream: 0xf5fffa,
  3104. mistyrose: 0xffe4e1,
  3105. moccasin: 0xffe4b5,
  3106. navajowhite: 0xffdead,
  3107. navy: 0x000080,
  3108. oldlace: 0xfdf5e6,
  3109. olive: 0x808000,
  3110. olivedrab: 0x6b8e23,
  3111. orange: 0xffa500,
  3112. orangered: 0xff4500,
  3113. orchid: 0xda70d6,
  3114. palegoldenrod: 0xeee8aa,
  3115. palegreen: 0x98fb98,
  3116. paleturquoise: 0xafeeee,
  3117. palevioletred: 0xdb7093,
  3118. papayawhip: 0xffefd5,
  3119. peachpuff: 0xffdab9,
  3120. peru: 0xcd853f,
  3121. pink: 0xffc0cb,
  3122. plum: 0xdda0dd,
  3123. powderblue: 0xb0e0e6,
  3124. purple: 0x800080,
  3125. rebeccapurple: 0x663399,
  3126. red: 0xff0000,
  3127. rosybrown: 0xbc8f8f,
  3128. royalblue: 0x4169e1,
  3129. saddlebrown: 0x8b4513,
  3130. salmon: 0xfa8072,
  3131. sandybrown: 0xf4a460,
  3132. seagreen: 0x2e8b57,
  3133. seashell: 0xfff5ee,
  3134. sienna: 0xa0522d,
  3135. silver: 0xc0c0c0,
  3136. skyblue: 0x87ceeb,
  3137. slateblue: 0x6a5acd,
  3138. slategray: 0x708090,
  3139. slategrey: 0x708090,
  3140. snow: 0xfffafa,
  3141. springgreen: 0x00ff7f,
  3142. steelblue: 0x4682b4,
  3143. tan: 0xd2b48c,
  3144. teal: 0x008080,
  3145. thistle: 0xd8bfd8,
  3146. tomato: 0xff6347,
  3147. turquoise: 0x40e0d0,
  3148. violet: 0xee82ee,
  3149. wheat: 0xf5deb3,
  3150. white: 0xffffff,
  3151. whitesmoke: 0xf5f5f5,
  3152. yellow: 0xffff00,
  3153. yellowgreen: 0x9acd32
  3154. };
  3155. define(Color, color, {
  3156. copy(channels) {
  3157. return Object.assign(new this.constructor, this, channels);
  3158. },
  3159. displayable() {
  3160. return this.rgb().displayable();
  3161. },
  3162. hex: color_formatHex, // Deprecated! Use color.formatHex.
  3163. formatHex: color_formatHex,
  3164. formatHex8: color_formatHex8,
  3165. formatHsl: color_formatHsl,
  3166. formatRgb: color_formatRgb,
  3167. toString: color_formatRgb
  3168. });
  3169. function color_formatHex() {
  3170. return this.rgb().formatHex();
  3171. }
  3172. function color_formatHex8() {
  3173. return this.rgb().formatHex8();
  3174. }
  3175. function color_formatHsl() {
  3176. return hslConvert(this).formatHsl();
  3177. }
  3178. function color_formatRgb() {
  3179. return this.rgb().formatRgb();
  3180. }
  3181. function color(format) {
  3182. var m, l;
  3183. format = (format + "").trim().toLowerCase();
  3184. return (m = reHex.exec(format)) ? (l = m[1].length, m = parseInt(m[1], 16), l === 6 ? rgbn(m) // #ff0000
  3185. : l === 3 ? new Rgb((m >> 8 & 0xf) | (m >> 4 & 0xf0), (m >> 4 & 0xf) | (m & 0xf0), ((m & 0xf) << 4) | (m & 0xf), 1) // #f00
  3186. : l === 8 ? rgba(m >> 24 & 0xff, m >> 16 & 0xff, m >> 8 & 0xff, (m & 0xff) / 0xff) // #ff000000
  3187. : l === 4 ? rgba((m >> 12 & 0xf) | (m >> 8 & 0xf0), (m >> 8 & 0xf) | (m >> 4 & 0xf0), (m >> 4 & 0xf) | (m & 0xf0), (((m & 0xf) << 4) | (m & 0xf)) / 0xff) // #f000
  3188. : null) // invalid hex
  3189. : (m = reRgbInteger.exec(format)) ? new Rgb(m[1], m[2], m[3], 1) // rgb(255, 0, 0)
  3190. : (m = reRgbPercent.exec(format)) ? new Rgb(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, 1) // rgb(100%, 0%, 0%)
  3191. : (m = reRgbaInteger.exec(format)) ? rgba(m[1], m[2], m[3], m[4]) // rgba(255, 0, 0, 1)
  3192. : (m = reRgbaPercent.exec(format)) ? rgba(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, m[4]) // rgb(100%, 0%, 0%, 1)
  3193. : (m = reHslPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, 1) // hsl(120, 50%, 50%)
  3194. : (m = reHslaPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, m[4]) // hsla(120, 50%, 50%, 1)
  3195. : named.hasOwnProperty(format) ? rgbn(named[format]) // eslint-disable-line no-prototype-builtins
  3196. : format === "transparent" ? new Rgb(NaN, NaN, NaN, 0)
  3197. : null;
  3198. }
  3199. function rgbn(n) {
  3200. return new Rgb(n >> 16 & 0xff, n >> 8 & 0xff, n & 0xff, 1);
  3201. }
  3202. function rgba(r, g, b, a) {
  3203. if (a <= 0) r = g = b = NaN;
  3204. return new Rgb(r, g, b, a);
  3205. }
  3206. function rgbConvert(o) {
  3207. if (!(o instanceof Color)) o = color(o);
  3208. if (!o) return new Rgb;
  3209. o = o.rgb();
  3210. return new Rgb(o.r, o.g, o.b, o.opacity);
  3211. }
  3212. function rgb$1(r, g, b, opacity) {
  3213. return arguments.length === 1 ? rgbConvert(r) : new Rgb(r, g, b, opacity == null ? 1 : opacity);
  3214. }
  3215. function Rgb(r, g, b, opacity) {
  3216. this.r = +r;
  3217. this.g = +g;
  3218. this.b = +b;
  3219. this.opacity = +opacity;
  3220. }
  3221. define(Rgb, rgb$1, extend(Color, {
  3222. brighter(k) {
  3223. k = k == null ? brighter : Math.pow(brighter, k);
  3224. return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
  3225. },
  3226. darker(k) {
  3227. k = k == null ? darker : Math.pow(darker, k);
  3228. return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
  3229. },
  3230. rgb() {
  3231. return this;
  3232. },
  3233. clamp() {
  3234. return new Rgb(clampi(this.r), clampi(this.g), clampi(this.b), clampa(this.opacity));
  3235. },
  3236. displayable() {
  3237. return (-0.5 <= this.r && this.r < 255.5)
  3238. && (-0.5 <= this.g && this.g < 255.5)
  3239. && (-0.5 <= this.b && this.b < 255.5)
  3240. && (0 <= this.opacity && this.opacity <= 1);
  3241. },
  3242. hex: rgb_formatHex, // Deprecated! Use color.formatHex.
  3243. formatHex: rgb_formatHex,
  3244. formatHex8: rgb_formatHex8,
  3245. formatRgb: rgb_formatRgb,
  3246. toString: rgb_formatRgb
  3247. }));
  3248. function rgb_formatHex() {
  3249. return `#${hex(this.r)}${hex(this.g)}${hex(this.b)}`;
  3250. }
  3251. function rgb_formatHex8() {
  3252. return `#${hex(this.r)}${hex(this.g)}${hex(this.b)}${hex((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
  3253. }
  3254. function rgb_formatRgb() {
  3255. const a = clampa(this.opacity);
  3256. return `${a === 1 ? "rgb(" : "rgba("}${clampi(this.r)}, ${clampi(this.g)}, ${clampi(this.b)}${a === 1 ? ")" : `, ${a})`}`;
  3257. }
  3258. function clampa(opacity) {
  3259. return isNaN(opacity) ? 1 : Math.max(0, Math.min(1, opacity));
  3260. }
  3261. function clampi(value) {
  3262. return Math.max(0, Math.min(255, Math.round(value) || 0));
  3263. }
  3264. function hex(value) {
  3265. value = clampi(value);
  3266. return (value < 16 ? "0" : "") + value.toString(16);
  3267. }
  3268. function hsla(h, s, l, a) {
  3269. if (a <= 0) h = s = l = NaN;
  3270. else if (l <= 0 || l >= 1) h = s = NaN;
  3271. else if (s <= 0) h = NaN;
  3272. return new Hsl(h, s, l, a);
  3273. }
  3274. function hslConvert(o) {
  3275. if (o instanceof Hsl) return new Hsl(o.h, o.s, o.l, o.opacity);
  3276. if (!(o instanceof Color)) o = color(o);
  3277. if (!o) return new Hsl;
  3278. if (o instanceof Hsl) return o;
  3279. o = o.rgb();
  3280. var r = o.r / 255,
  3281. g = o.g / 255,
  3282. b = o.b / 255,
  3283. min = Math.min(r, g, b),
  3284. max = Math.max(r, g, b),
  3285. h = NaN,
  3286. s = max - min,
  3287. l = (max + min) / 2;
  3288. if (s) {
  3289. if (r === max) h = (g - b) / s + (g < b) * 6;
  3290. else if (g === max) h = (b - r) / s + 2;
  3291. else h = (r - g) / s + 4;
  3292. s /= l < 0.5 ? max + min : 2 - max - min;
  3293. h *= 60;
  3294. } else {
  3295. s = l > 0 && l < 1 ? 0 : h;
  3296. }
  3297. return new Hsl(h, s, l, o.opacity);
  3298. }
  3299. function hsl(h, s, l, opacity) {
  3300. return arguments.length === 1 ? hslConvert(h) : new Hsl(h, s, l, opacity == null ? 1 : opacity);
  3301. }
  3302. function Hsl(h, s, l, opacity) {
  3303. this.h = +h;
  3304. this.s = +s;
  3305. this.l = +l;
  3306. this.opacity = +opacity;
  3307. }
  3308. define(Hsl, hsl, extend(Color, {
  3309. brighter(k) {
  3310. k = k == null ? brighter : Math.pow(brighter, k);
  3311. return new Hsl(this.h, this.s, this.l * k, this.opacity);
  3312. },
  3313. darker(k) {
  3314. k = k == null ? darker : Math.pow(darker, k);
  3315. return new Hsl(this.h, this.s, this.l * k, this.opacity);
  3316. },
  3317. rgb() {
  3318. var h = this.h % 360 + (this.h < 0) * 360,
  3319. s = isNaN(h) || isNaN(this.s) ? 0 : this.s,
  3320. l = this.l,
  3321. m2 = l + (l < 0.5 ? l : 1 - l) * s,
  3322. m1 = 2 * l - m2;
  3323. return new Rgb(
  3324. hsl2rgb(h >= 240 ? h - 240 : h + 120, m1, m2),
  3325. hsl2rgb(h, m1, m2),
  3326. hsl2rgb(h < 120 ? h + 240 : h - 120, m1, m2),
  3327. this.opacity
  3328. );
  3329. },
  3330. clamp() {
  3331. return new Hsl(clamph(this.h), clampt(this.s), clampt(this.l), clampa(this.opacity));
  3332. },
  3333. displayable() {
  3334. return (0 <= this.s && this.s <= 1 || isNaN(this.s))
  3335. && (0 <= this.l && this.l <= 1)
  3336. && (0 <= this.opacity && this.opacity <= 1);
  3337. },
  3338. formatHsl() {
  3339. const a = clampa(this.opacity);
  3340. return `${a === 1 ? "hsl(" : "hsla("}${clamph(this.h)}, ${clampt(this.s) * 100}%, ${clampt(this.l) * 100}%${a === 1 ? ")" : `, ${a})`}`;
  3341. }
  3342. }));
  3343. function clamph(value) {
  3344. value = (value || 0) % 360;
  3345. return value < 0 ? value + 360 : value;
  3346. }
  3347. function clampt(value) {
  3348. return Math.max(0, Math.min(1, value || 0));
  3349. }
  3350. /* From FvD 13.37, CSS Color Module Level 3 */
  3351. function hsl2rgb(h, m1, m2) {
  3352. return (h < 60 ? m1 + (m2 - m1) * h / 60
  3353. : h < 180 ? m2
  3354. : h < 240 ? m1 + (m2 - m1) * (240 - h) / 60
  3355. : m1) * 255;
  3356. }
  3357. const radians = Math.PI / 180;
  3358. const degrees = 180 / Math.PI;
  3359. // https://observablehq.com/@mbostock/lab-and-rgb
  3360. const K = 18,
  3361. Xn = 0.96422,
  3362. Yn = 1,
  3363. Zn = 0.82521,
  3364. t0$1 = 4 / 29,
  3365. t1$1 = 6 / 29,
  3366. t2 = 3 * t1$1 * t1$1,
  3367. t3 = t1$1 * t1$1 * t1$1;
  3368. function labConvert(o) {
  3369. if (o instanceof Lab) return new Lab(o.l, o.a, o.b, o.opacity);
  3370. if (o instanceof Hcl) return hcl2lab(o);
  3371. if (!(o instanceof Rgb)) o = rgbConvert(o);
  3372. var r = rgb2lrgb(o.r),
  3373. g = rgb2lrgb(o.g),
  3374. b = rgb2lrgb(o.b),
  3375. y = xyz2lab((0.2225045 * r + 0.7168786 * g + 0.0606169 * b) / Yn), x, z;
  3376. if (r === g && g === b) x = z = y; else {
  3377. x = xyz2lab((0.4360747 * r + 0.3850649 * g + 0.1430804 * b) / Xn);
  3378. z = xyz2lab((0.0139322 * r + 0.0971045 * g + 0.7141733 * b) / Zn);
  3379. }
  3380. return new Lab(116 * y - 16, 500 * (x - y), 200 * (y - z), o.opacity);
  3381. }
  3382. function lab(l, a, b, opacity) {
  3383. return arguments.length === 1 ? labConvert(l) : new Lab(l, a, b, opacity == null ? 1 : opacity);
  3384. }
  3385. function Lab(l, a, b, opacity) {
  3386. this.l = +l;
  3387. this.a = +a;
  3388. this.b = +b;
  3389. this.opacity = +opacity;
  3390. }
  3391. define(Lab, lab, extend(Color, {
  3392. brighter(k) {
  3393. return new Lab(this.l + K * (k == null ? 1 : k), this.a, this.b, this.opacity);
  3394. },
  3395. darker(k) {
  3396. return new Lab(this.l - K * (k == null ? 1 : k), this.a, this.b, this.opacity);
  3397. },
  3398. rgb() {
  3399. var y = (this.l + 16) / 116,
  3400. x = isNaN(this.a) ? y : y + this.a / 500,
  3401. z = isNaN(this.b) ? y : y - this.b / 200;
  3402. x = Xn * lab2xyz(x);
  3403. y = Yn * lab2xyz(y);
  3404. z = Zn * lab2xyz(z);
  3405. return new Rgb(
  3406. lrgb2rgb( 3.1338561 * x - 1.6168667 * y - 0.4906146 * z),
  3407. lrgb2rgb(-0.9787684 * x + 1.9161415 * y + 0.0334540 * z),
  3408. lrgb2rgb( 0.0719453 * x - 0.2289914 * y + 1.4052427 * z),
  3409. this.opacity
  3410. );
  3411. }
  3412. }));
  3413. function xyz2lab(t) {
  3414. return t > t3 ? Math.pow(t, 1 / 3) : t / t2 + t0$1;
  3415. }
  3416. function lab2xyz(t) {
  3417. return t > t1$1 ? t * t * t : t2 * (t - t0$1);
  3418. }
  3419. function lrgb2rgb(x) {
  3420. return 255 * (x <= 0.0031308 ? 12.92 * x : 1.055 * Math.pow(x, 1 / 2.4) - 0.055);
  3421. }
  3422. function rgb2lrgb(x) {
  3423. return (x /= 255) <= 0.04045 ? x / 12.92 : Math.pow((x + 0.055) / 1.055, 2.4);
  3424. }
  3425. function hclConvert(o) {
  3426. if (o instanceof Hcl) return new Hcl(o.h, o.c, o.l, o.opacity);
  3427. if (!(o instanceof Lab)) o = labConvert(o);
  3428. if (o.a === 0 && o.b === 0) return new Hcl(NaN, 0 < o.l && o.l < 100 ? 0 : NaN, o.l, o.opacity);
  3429. var h = Math.atan2(o.b, o.a) * degrees;
  3430. return new Hcl(h < 0 ? h + 360 : h, Math.sqrt(o.a * o.a + o.b * o.b), o.l, o.opacity);
  3431. }
  3432. function hcl(h, c, l, opacity) {
  3433. return arguments.length === 1 ? hclConvert(h) : new Hcl(h, c, l, opacity == null ? 1 : opacity);
  3434. }
  3435. function Hcl(h, c, l, opacity) {
  3436. this.h = +h;
  3437. this.c = +c;
  3438. this.l = +l;
  3439. this.opacity = +opacity;
  3440. }
  3441. function hcl2lab(o) {
  3442. if (isNaN(o.h)) return new Lab(o.l, 0, 0, o.opacity);
  3443. var h = o.h * radians;
  3444. return new Lab(o.l, Math.cos(h) * o.c, Math.sin(h) * o.c, o.opacity);
  3445. }
  3446. define(Hcl, hcl, extend(Color, {
  3447. brighter(k) {
  3448. return new Hcl(this.h, this.c, this.l + K * (k == null ? 1 : k), this.opacity);
  3449. },
  3450. darker(k) {
  3451. return new Hcl(this.h, this.c, this.l - K * (k == null ? 1 : k), this.opacity);
  3452. },
  3453. rgb() {
  3454. return hcl2lab(this).rgb();
  3455. }
  3456. }));
  3457. var A = -0.14861,
  3458. B = +1.78277,
  3459. C = -0.29227,
  3460. D = -0.90649,
  3461. E = +1.97294,
  3462. ED = E * D,
  3463. EB = E * B,
  3464. BC_DA = B * C - D * A;
  3465. function cubehelixConvert(o) {
  3466. if (o instanceof Cubehelix) return new Cubehelix(o.h, o.s, o.l, o.opacity);
  3467. if (!(o instanceof Rgb)) o = rgbConvert(o);
  3468. var r = o.r / 255,
  3469. g = o.g / 255,
  3470. b = o.b / 255,
  3471. l = (BC_DA * b + ED * r - EB * g) / (BC_DA + ED - EB),
  3472. bl = b - l,
  3473. k = (E * (g - l) - C * bl) / D,
  3474. s = Math.sqrt(k * k + bl * bl) / (E * l * (1 - l)), // NaN if l=0 or l=1
  3475. h = s ? Math.atan2(k, bl) * degrees - 120 : NaN;
  3476. return new Cubehelix(h < 0 ? h + 360 : h, s, l, o.opacity);
  3477. }
  3478. function cubehelix$1(h, s, l, opacity) {
  3479. return arguments.length === 1 ? cubehelixConvert(h) : new Cubehelix(h, s, l, opacity == null ? 1 : opacity);
  3480. }
  3481. function Cubehelix(h, s, l, opacity) {
  3482. this.h = +h;
  3483. this.s = +s;
  3484. this.l = +l;
  3485. this.opacity = +opacity;
  3486. }
  3487. define(Cubehelix, cubehelix$1, extend(Color, {
  3488. brighter(k) {
  3489. k = k == null ? brighter : Math.pow(brighter, k);
  3490. return new Cubehelix(this.h, this.s, this.l * k, this.opacity);
  3491. },
  3492. darker(k) {
  3493. k = k == null ? darker : Math.pow(darker, k);
  3494. return new Cubehelix(this.h, this.s, this.l * k, this.opacity);
  3495. },
  3496. rgb() {
  3497. var h = isNaN(this.h) ? 0 : (this.h + 120) * radians,
  3498. l = +this.l,
  3499. a = isNaN(this.s) ? 0 : this.s * l * (1 - l),
  3500. cosh = Math.cos(h),
  3501. sinh = Math.sin(h);
  3502. return new Rgb(
  3503. 255 * (l + a * (A * cosh + B * sinh)),
  3504. 255 * (l + a * (C * cosh + D * sinh)),
  3505. 255 * (l + a * (E * cosh)),
  3506. this.opacity
  3507. );
  3508. }
  3509. }));
  3510. var constant = x => () => x;
  3511. function linear$1(a, d) {
  3512. return function(t) {
  3513. return a + t * d;
  3514. };
  3515. }
  3516. function exponential(a, b, y) {
  3517. return a = Math.pow(a, y), b = Math.pow(b, y) - a, y = 1 / y, function(t) {
  3518. return Math.pow(a + t * b, y);
  3519. };
  3520. }
  3521. function hue(a, b) {
  3522. var d = b - a;
  3523. return d ? linear$1(a, d > 180 || d < -180 ? d - 360 * Math.round(d / 360) : d) : constant(isNaN(a) ? b : a);
  3524. }
  3525. function gamma(y) {
  3526. return (y = +y) === 1 ? nogamma : function(a, b) {
  3527. return b - a ? exponential(a, b, y) : constant(isNaN(a) ? b : a);
  3528. };
  3529. }
  3530. function nogamma(a, b) {
  3531. var d = b - a;
  3532. return d ? linear$1(a, d) : constant(isNaN(a) ? b : a);
  3533. }
  3534. var rgb = (function rgbGamma(y) {
  3535. var color = gamma(y);
  3536. function rgb(start, end) {
  3537. var r = color((start = rgb$1(start)).r, (end = rgb$1(end)).r),
  3538. g = color(start.g, end.g),
  3539. b = color(start.b, end.b),
  3540. opacity = nogamma(start.opacity, end.opacity);
  3541. return function(t) {
  3542. start.r = r(t);
  3543. start.g = g(t);
  3544. start.b = b(t);
  3545. start.opacity = opacity(t);
  3546. return start + "";
  3547. };
  3548. }
  3549. rgb.gamma = rgbGamma;
  3550. return rgb;
  3551. })(1);
  3552. function numberArray(a, b) {
  3553. if (!b) b = [];
  3554. var n = a ? Math.min(b.length, a.length) : 0,
  3555. c = b.slice(),
  3556. i;
  3557. return function(t) {
  3558. for (i = 0; i < n; ++i) c[i] = a[i] * (1 - t) + b[i] * t;
  3559. return c;
  3560. };
  3561. }
  3562. function isNumberArray(x) {
  3563. return ArrayBuffer.isView(x) && !(x instanceof DataView);
  3564. }
  3565. function genericArray(a, b) {
  3566. var nb = b ? b.length : 0,
  3567. na = a ? Math.min(nb, a.length) : 0,
  3568. x = new Array(na),
  3569. c = new Array(nb),
  3570. i;
  3571. for (i = 0; i < na; ++i) x[i] = interpolate(a[i], b[i]);
  3572. for (; i < nb; ++i) c[i] = b[i];
  3573. return function(t) {
  3574. for (i = 0; i < na; ++i) c[i] = x[i](t);
  3575. return c;
  3576. };
  3577. }
  3578. function date(a, b) {
  3579. var d = new Date;
  3580. return a = +a, b = +b, function(t) {
  3581. return d.setTime(a * (1 - t) + b * t), d;
  3582. };
  3583. }
  3584. function interpolateNumber(a, b) {
  3585. return a = +a, b = +b, function(t) {
  3586. return a * (1 - t) + b * t;
  3587. };
  3588. }
  3589. function object(a, b) {
  3590. var i = {},
  3591. c = {},
  3592. k;
  3593. if (a === null || typeof a !== "object") a = {};
  3594. if (b === null || typeof b !== "object") b = {};
  3595. for (k in b) {
  3596. if (k in a) {
  3597. i[k] = interpolate(a[k], b[k]);
  3598. } else {
  3599. c[k] = b[k];
  3600. }
  3601. }
  3602. return function(t) {
  3603. for (k in i) c[k] = i[k](t);
  3604. return c;
  3605. };
  3606. }
  3607. var reA = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,
  3608. reB = new RegExp(reA.source, "g");
  3609. function zero(b) {
  3610. return function() {
  3611. return b;
  3612. };
  3613. }
  3614. function one(b) {
  3615. return function(t) {
  3616. return b(t) + "";
  3617. };
  3618. }
  3619. function string(a, b) {
  3620. var bi = reA.lastIndex = reB.lastIndex = 0, // scan index for next number in b
  3621. am, // current match in a
  3622. bm, // current match in b
  3623. bs, // string preceding current number in b, if any
  3624. i = -1, // index in s
  3625. s = [], // string constants and placeholders
  3626. q = []; // number interpolators
  3627. // Coerce inputs to strings.
  3628. a = a + "", b = b + "";
  3629. // Interpolate pairs of numbers in a & b.
  3630. while ((am = reA.exec(a))
  3631. && (bm = reB.exec(b))) {
  3632. if ((bs = bm.index) > bi) { // a string precedes the next number in b
  3633. bs = b.slice(bi, bs);
  3634. if (s[i]) s[i] += bs; // coalesce with previous string
  3635. else s[++i] = bs;
  3636. }
  3637. if ((am = am[0]) === (bm = bm[0])) { // numbers in a & b match
  3638. if (s[i]) s[i] += bm; // coalesce with previous string
  3639. else s[++i] = bm;
  3640. } else { // interpolate non-matching numbers
  3641. s[++i] = null;
  3642. q.push({i: i, x: interpolateNumber(am, bm)});
  3643. }
  3644. bi = reB.lastIndex;
  3645. }
  3646. // Add remains of b.
  3647. if (bi < b.length) {
  3648. bs = b.slice(bi);
  3649. if (s[i]) s[i] += bs; // coalesce with previous string
  3650. else s[++i] = bs;
  3651. }
  3652. // Special optimization for only a single match.
  3653. // Otherwise, interpolate each of the numbers and rejoin the string.
  3654. return s.length < 2 ? (q[0]
  3655. ? one(q[0].x)
  3656. : zero(b))
  3657. : (b = q.length, function(t) {
  3658. for (var i = 0, o; i < b; ++i) s[(o = q[i]).i] = o.x(t);
  3659. return s.join("");
  3660. });
  3661. }
  3662. function interpolate(a, b) {
  3663. var t = typeof b, c;
  3664. return b == null || t === "boolean" ? constant(b)
  3665. : (t === "number" ? interpolateNumber
  3666. : t === "string" ? ((c = color(b)) ? (b = c, rgb) : string)
  3667. : b instanceof color ? rgb
  3668. : b instanceof Date ? date
  3669. : isNumberArray(b) ? numberArray
  3670. : Array.isArray(b) ? genericArray
  3671. : typeof b.valueOf !== "function" && typeof b.toString !== "function" || isNaN(b) ? object
  3672. : interpolateNumber)(a, b);
  3673. }
  3674. function interpolateRound(a, b) {
  3675. return a = +a, b = +b, function(t) {
  3676. return Math.round(a * (1 - t) + b * t);
  3677. };
  3678. }
  3679. var epsilon2 = 1e-12;
  3680. function cosh(x) {
  3681. return ((x = Math.exp(x)) + 1 / x) / 2;
  3682. }
  3683. function sinh(x) {
  3684. return ((x = Math.exp(x)) - 1 / x) / 2;
  3685. }
  3686. function tanh(x) {
  3687. return ((x = Math.exp(2 * x)) - 1) / (x + 1);
  3688. }
  3689. ((function zoomRho(rho, rho2, rho4) {
  3690. // p0 = [ux0, uy0, w0]
  3691. // p1 = [ux1, uy1, w1]
  3692. function zoom(p0, p1) {
  3693. var ux0 = p0[0], uy0 = p0[1], w0 = p0[2],
  3694. ux1 = p1[0], uy1 = p1[1], w1 = p1[2],
  3695. dx = ux1 - ux0,
  3696. dy = uy1 - uy0,
  3697. d2 = dx * dx + dy * dy,
  3698. i,
  3699. S;
  3700. // Special case for u0 ≅ u1.
  3701. if (d2 < epsilon2) {
  3702. S = Math.log(w1 / w0) / rho;
  3703. i = function(t) {
  3704. return [
  3705. ux0 + t * dx,
  3706. uy0 + t * dy,
  3707. w0 * Math.exp(rho * t * S)
  3708. ];
  3709. };
  3710. }
  3711. // General case.
  3712. else {
  3713. var d1 = Math.sqrt(d2),
  3714. b0 = (w1 * w1 - w0 * w0 + rho4 * d2) / (2 * w0 * rho2 * d1),
  3715. b1 = (w1 * w1 - w0 * w0 - rho4 * d2) / (2 * w1 * rho2 * d1),
  3716. r0 = Math.log(Math.sqrt(b0 * b0 + 1) - b0),
  3717. r1 = Math.log(Math.sqrt(b1 * b1 + 1) - b1);
  3718. S = (r1 - r0) / rho;
  3719. i = function(t) {
  3720. var s = t * S,
  3721. coshr0 = cosh(r0),
  3722. u = w0 / (rho2 * d1) * (coshr0 * tanh(rho * s + r0) - sinh(r0));
  3723. return [
  3724. ux0 + u * dx,
  3725. uy0 + u * dy,
  3726. w0 * coshr0 / cosh(rho * s + r0)
  3727. ];
  3728. };
  3729. }
  3730. i.duration = S * 1000 * rho / Math.SQRT2;
  3731. return i;
  3732. }
  3733. zoom.rho = function(_) {
  3734. var _1 = Math.max(1e-3, +_), _2 = _1 * _1, _4 = _2 * _2;
  3735. return zoomRho(_1, _2, _4);
  3736. };
  3737. return zoom;
  3738. }))(Math.SQRT2, 2, 4);
  3739. function cubehelix(hue) {
  3740. return (function cubehelixGamma(y) {
  3741. y = +y;
  3742. function cubehelix(start, end) {
  3743. var h = hue((start = cubehelix$1(start)).h, (end = cubehelix$1(end)).h),
  3744. s = nogamma(start.s, end.s),
  3745. l = nogamma(start.l, end.l),
  3746. opacity = nogamma(start.opacity, end.opacity);
  3747. return function(t) {
  3748. start.h = h(t);
  3749. start.s = s(t);
  3750. start.l = l(Math.pow(t, y));
  3751. start.opacity = opacity(t);
  3752. return start + "";
  3753. };
  3754. }
  3755. cubehelix.gamma = cubehelixGamma;
  3756. return cubehelix;
  3757. })(1);
  3758. }
  3759. cubehelix(hue);
  3760. cubehelix(nogamma);
  3761. function constants(x) {
  3762. return function() {
  3763. return x;
  3764. };
  3765. }
  3766. function number(x) {
  3767. return +x;
  3768. }
  3769. var unit = [0, 1];
  3770. function identity$1(x) {
  3771. return x;
  3772. }
  3773. function normalize(a, b) {
  3774. return (b -= (a = +a))
  3775. ? function(x) { return (x - a) / b; }
  3776. : constants(isNaN(b) ? NaN : 0.5);
  3777. }
  3778. function clamper(a, b) {
  3779. var t;
  3780. if (a > b) t = a, a = b, b = t;
  3781. return function(x) { return Math.max(a, Math.min(b, x)); };
  3782. }
  3783. // normalize(a, b)(x) takes a domain value x in [a,b] and returns the corresponding parameter t in [0,1].
  3784. // interpolate(a, b)(t) takes a parameter t in [0,1] and returns the corresponding range value x in [a,b].
  3785. function bimap(domain, range, interpolate) {
  3786. var d0 = domain[0], d1 = domain[1], r0 = range[0], r1 = range[1];
  3787. if (d1 < d0) d0 = normalize(d1, d0), r0 = interpolate(r1, r0);
  3788. else d0 = normalize(d0, d1), r0 = interpolate(r0, r1);
  3789. return function(x) { return r0(d0(x)); };
  3790. }
  3791. function polymap(domain, range, interpolate) {
  3792. var j = Math.min(domain.length, range.length) - 1,
  3793. d = new Array(j),
  3794. r = new Array(j),
  3795. i = -1;
  3796. // Reverse descending domains.
  3797. if (domain[j] < domain[0]) {
  3798. domain = domain.slice().reverse();
  3799. range = range.slice().reverse();
  3800. }
  3801. while (++i < j) {
  3802. d[i] = normalize(domain[i], domain[i + 1]);
  3803. r[i] = interpolate(range[i], range[i + 1]);
  3804. }
  3805. return function(x) {
  3806. var i = bisectRight(domain, x, 1, j) - 1;
  3807. return r[i](d[i](x));
  3808. };
  3809. }
  3810. function copy$1(source, target) {
  3811. return target
  3812. .domain(source.domain())
  3813. .range(source.range())
  3814. .interpolate(source.interpolate())
  3815. .clamp(source.clamp())
  3816. .unknown(source.unknown());
  3817. }
  3818. function transformer$1() {
  3819. var domain = unit,
  3820. range = unit,
  3821. interpolate$1 = interpolate,
  3822. transform,
  3823. untransform,
  3824. unknown,
  3825. clamp = identity$1,
  3826. piecewise,
  3827. output,
  3828. input;
  3829. function rescale() {
  3830. var n = Math.min(domain.length, range.length);
  3831. if (clamp !== identity$1) clamp = clamper(domain[0], domain[n - 1]);
  3832. piecewise = n > 2 ? polymap : bimap;
  3833. output = input = null;
  3834. return scale;
  3835. }
  3836. function scale(x) {
  3837. return x == null || isNaN(x = +x) ? unknown : (output || (output = piecewise(domain.map(transform), range, interpolate$1)))(transform(clamp(x)));
  3838. }
  3839. scale.invert = function(y) {
  3840. return clamp(untransform((input || (input = piecewise(range, domain.map(transform), interpolateNumber)))(y)));
  3841. };
  3842. scale.domain = function(_) {
  3843. return arguments.length ? (domain = Array.from(_, number), rescale()) : domain.slice();
  3844. };
  3845. scale.range = function(_) {
  3846. return arguments.length ? (range = Array.from(_), rescale()) : range.slice();
  3847. };
  3848. scale.rangeRound = function(_) {
  3849. return range = Array.from(_), interpolate$1 = interpolateRound, rescale();
  3850. };
  3851. scale.clamp = function(_) {
  3852. return arguments.length ? (clamp = _ ? true : identity$1, rescale()) : clamp !== identity$1;
  3853. };
  3854. scale.interpolate = function(_) {
  3855. return arguments.length ? (interpolate$1 = _, rescale()) : interpolate$1;
  3856. };
  3857. scale.unknown = function(_) {
  3858. return arguments.length ? (unknown = _, scale) : unknown;
  3859. };
  3860. return function(t, u) {
  3861. transform = t, untransform = u;
  3862. return rescale();
  3863. };
  3864. }
  3865. function continuous() {
  3866. return transformer$1()(identity$1, identity$1);
  3867. }
  3868. function formatDecimal(x) {
  3869. return Math.abs(x = Math.round(x)) >= 1e21
  3870. ? x.toLocaleString("en").replace(/,/g, "")
  3871. : x.toString(10);
  3872. }
  3873. // Computes the decimal coefficient and exponent of the specified number x with
  3874. // significant digits p, where x is positive and p is in [1, 21] or undefined.
  3875. // For example, formatDecimalParts(1.23) returns ["123", 0].
  3876. function formatDecimalParts(x, p) {
  3877. if ((i = (x = p ? x.toExponential(p - 1) : x.toExponential()).indexOf("e")) < 0) return null; // NaN, ±Infinity
  3878. var i, coefficient = x.slice(0, i);
  3879. // The string returned by toExponential either has the form \d\.\d+e[-+]\d+
  3880. // (e.g., 1.2e+3) or the form \de[-+]\d+ (e.g., 1e+3).
  3881. return [
  3882. coefficient.length > 1 ? coefficient[0] + coefficient.slice(2) : coefficient,
  3883. +x.slice(i + 1)
  3884. ];
  3885. }
  3886. function exponent(x) {
  3887. return x = formatDecimalParts(Math.abs(x)), x ? x[1] : NaN;
  3888. }
  3889. function formatGroup(grouping, thousands) {
  3890. return function(value, width) {
  3891. var i = value.length,
  3892. t = [],
  3893. j = 0,
  3894. g = grouping[0],
  3895. length = 0;
  3896. while (i > 0 && g > 0) {
  3897. if (length + g + 1 > width) g = Math.max(1, width - length);
  3898. t.push(value.substring(i -= g, i + g));
  3899. if ((length += g + 1) > width) break;
  3900. g = grouping[j = (j + 1) % grouping.length];
  3901. }
  3902. return t.reverse().join(thousands);
  3903. };
  3904. }
  3905. function formatNumerals(numerals) {
  3906. return function(value) {
  3907. return value.replace(/[0-9]/g, function(i) {
  3908. return numerals[+i];
  3909. });
  3910. };
  3911. }
  3912. // [[fill]align][sign][symbol][0][width][,][.precision][~][type]
  3913. var re = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
  3914. function formatSpecifier(specifier) {
  3915. if (!(match = re.exec(specifier))) throw new Error("invalid format: " + specifier);
  3916. var match;
  3917. return new FormatSpecifier({
  3918. fill: match[1],
  3919. align: match[2],
  3920. sign: match[3],
  3921. symbol: match[4],
  3922. zero: match[5],
  3923. width: match[6],
  3924. comma: match[7],
  3925. precision: match[8] && match[8].slice(1),
  3926. trim: match[9],
  3927. type: match[10]
  3928. });
  3929. }
  3930. formatSpecifier.prototype = FormatSpecifier.prototype; // instanceof
  3931. function FormatSpecifier(specifier) {
  3932. this.fill = specifier.fill === undefined ? " " : specifier.fill + "";
  3933. this.align = specifier.align === undefined ? ">" : specifier.align + "";
  3934. this.sign = specifier.sign === undefined ? "-" : specifier.sign + "";
  3935. this.symbol = specifier.symbol === undefined ? "" : specifier.symbol + "";
  3936. this.zero = !!specifier.zero;
  3937. this.width = specifier.width === undefined ? undefined : +specifier.width;
  3938. this.comma = !!specifier.comma;
  3939. this.precision = specifier.precision === undefined ? undefined : +specifier.precision;
  3940. this.trim = !!specifier.trim;
  3941. this.type = specifier.type === undefined ? "" : specifier.type + "";
  3942. }
  3943. FormatSpecifier.prototype.toString = function() {
  3944. return this.fill
  3945. + this.align
  3946. + this.sign
  3947. + this.symbol
  3948. + (this.zero ? "0" : "")
  3949. + (this.width === undefined ? "" : Math.max(1, this.width | 0))
  3950. + (this.comma ? "," : "")
  3951. + (this.precision === undefined ? "" : "." + Math.max(0, this.precision | 0))
  3952. + (this.trim ? "~" : "")
  3953. + this.type;
  3954. };
  3955. // Trims insignificant zeros, e.g., replaces 1.2000k with 1.2k.
  3956. function formatTrim(s) {
  3957. out: for (var n = s.length, i = 1, i0 = -1, i1; i < n; ++i) {
  3958. switch (s[i]) {
  3959. case ".": i0 = i1 = i; break;
  3960. case "0": if (i0 === 0) i0 = i; i1 = i; break;
  3961. default: if (!+s[i]) break out; if (i0 > 0) i0 = 0; break;
  3962. }
  3963. }
  3964. return i0 > 0 ? s.slice(0, i0) + s.slice(i1 + 1) : s;
  3965. }
  3966. var prefixExponent;
  3967. function formatPrefixAuto(x, p) {
  3968. var d = formatDecimalParts(x, p);
  3969. if (!d) return x + "";
  3970. var coefficient = d[0],
  3971. exponent = d[1],
  3972. i = exponent - (prefixExponent = Math.max(-8, Math.min(8, Math.floor(exponent / 3))) * 3) + 1,
  3973. n = coefficient.length;
  3974. return i === n ? coefficient
  3975. : i > n ? coefficient + new Array(i - n + 1).join("0")
  3976. : i > 0 ? coefficient.slice(0, i) + "." + coefficient.slice(i)
  3977. : "0." + new Array(1 - i).join("0") + formatDecimalParts(x, Math.max(0, p + i - 1))[0]; // less than 1y!
  3978. }
  3979. function formatRounded(x, p) {
  3980. var d = formatDecimalParts(x, p);
  3981. if (!d) return x + "";
  3982. var coefficient = d[0],
  3983. exponent = d[1];
  3984. return exponent < 0 ? "0." + new Array(-exponent).join("0") + coefficient
  3985. : coefficient.length > exponent + 1 ? coefficient.slice(0, exponent + 1) + "." + coefficient.slice(exponent + 1)
  3986. : coefficient + new Array(exponent - coefficient.length + 2).join("0");
  3987. }
  3988. var formatTypes = {
  3989. "%": (x, p) => (x * 100).toFixed(p),
  3990. "b": (x) => Math.round(x).toString(2),
  3991. "c": (x) => x + "",
  3992. "d": formatDecimal,
  3993. "e": (x, p) => x.toExponential(p),
  3994. "f": (x, p) => x.toFixed(p),
  3995. "g": (x, p) => x.toPrecision(p),
  3996. "o": (x) => Math.round(x).toString(8),
  3997. "p": (x, p) => formatRounded(x * 100, p),
  3998. "r": formatRounded,
  3999. "s": formatPrefixAuto,
  4000. "X": (x) => Math.round(x).toString(16).toUpperCase(),
  4001. "x": (x) => Math.round(x).toString(16)
  4002. };
  4003. function identity(x) {
  4004. return x;
  4005. }
  4006. var map = Array.prototype.map,
  4007. prefixes = ["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];
  4008. function formatLocale$1(locale) {
  4009. var group = locale.grouping === undefined || locale.thousands === undefined ? identity : formatGroup(map.call(locale.grouping, Number), locale.thousands + ""),
  4010. currencyPrefix = locale.currency === undefined ? "" : locale.currency[0] + "",
  4011. currencySuffix = locale.currency === undefined ? "" : locale.currency[1] + "",
  4012. decimal = locale.decimal === undefined ? "." : locale.decimal + "",
  4013. numerals = locale.numerals === undefined ? identity : formatNumerals(map.call(locale.numerals, String)),
  4014. percent = locale.percent === undefined ? "%" : locale.percent + "",
  4015. minus = locale.minus === undefined ? "−" : locale.minus + "",
  4016. nan = locale.nan === undefined ? "NaN" : locale.nan + "";
  4017. function newFormat(specifier) {
  4018. specifier = formatSpecifier(specifier);
  4019. var fill = specifier.fill,
  4020. align = specifier.align,
  4021. sign = specifier.sign,
  4022. symbol = specifier.symbol,
  4023. zero = specifier.zero,
  4024. width = specifier.width,
  4025. comma = specifier.comma,
  4026. precision = specifier.precision,
  4027. trim = specifier.trim,
  4028. type = specifier.type;
  4029. // The "n" type is an alias for ",g".
  4030. if (type === "n") comma = true, type = "g";
  4031. // The "" type, and any invalid type, is an alias for ".12~g".
  4032. else if (!formatTypes[type]) precision === undefined && (precision = 12), trim = true, type = "g";
  4033. // If zero fill is specified, padding goes after sign and before digits.
  4034. if (zero || (fill === "0" && align === "=")) zero = true, fill = "0", align = "=";
  4035. // Compute the prefix and suffix.
  4036. // For SI-prefix, the suffix is lazily computed.
  4037. var prefix = symbol === "$" ? currencyPrefix : symbol === "#" && /[boxX]/.test(type) ? "0" + type.toLowerCase() : "",
  4038. suffix = symbol === "$" ? currencySuffix : /[%p]/.test(type) ? percent : "";
  4039. // What format function should we use?
  4040. // Is this an integer type?
  4041. // Can this type generate exponential notation?
  4042. var formatType = formatTypes[type],
  4043. maybeSuffix = /[defgprs%]/.test(type);
  4044. // Set the default precision if not specified,
  4045. // or clamp the specified precision to the supported range.
  4046. // For significant precision, it must be in [1, 21].
  4047. // For fixed precision, it must be in [0, 20].
  4048. precision = precision === undefined ? 6
  4049. : /[gprs]/.test(type) ? Math.max(1, Math.min(21, precision))
  4050. : Math.max(0, Math.min(20, precision));
  4051. function format(value) {
  4052. var valuePrefix = prefix,
  4053. valueSuffix = suffix,
  4054. i, n, c;
  4055. if (type === "c") {
  4056. valueSuffix = formatType(value) + valueSuffix;
  4057. value = "";
  4058. } else {
  4059. value = +value;
  4060. // Determine the sign. -0 is not less than 0, but 1 / -0 is!
  4061. var valueNegative = value < 0 || 1 / value < 0;
  4062. // Perform the initial formatting.
  4063. value = isNaN(value) ? nan : formatType(Math.abs(value), precision);
  4064. // Trim insignificant zeros.
  4065. if (trim) value = formatTrim(value);
  4066. // If a negative value rounds to zero after formatting, and no explicit positive sign is requested, hide the sign.
  4067. if (valueNegative && +value === 0 && sign !== "+") valueNegative = false;
  4068. // Compute the prefix and suffix.
  4069. valuePrefix = (valueNegative ? (sign === "(" ? sign : minus) : sign === "-" || sign === "(" ? "" : sign) + valuePrefix;
  4070. valueSuffix = (type === "s" ? prefixes[8 + prefixExponent / 3] : "") + valueSuffix + (valueNegative && sign === "(" ? ")" : "");
  4071. // Break the formatted value into the integer “value” part that can be
  4072. // grouped, and fractional or exponential “suffix” part that is not.
  4073. if (maybeSuffix) {
  4074. i = -1, n = value.length;
  4075. while (++i < n) {
  4076. if (c = value.charCodeAt(i), 48 > c || c > 57) {
  4077. valueSuffix = (c === 46 ? decimal + value.slice(i + 1) : value.slice(i)) + valueSuffix;
  4078. value = value.slice(0, i);
  4079. break;
  4080. }
  4081. }
  4082. }
  4083. }
  4084. // If the fill character is not "0", grouping is applied before padding.
  4085. if (comma && !zero) value = group(value, Infinity);
  4086. // Compute the padding.
  4087. var length = valuePrefix.length + value.length + valueSuffix.length,
  4088. padding = length < width ? new Array(width - length + 1).join(fill) : "";
  4089. // If the fill character is "0", grouping is applied after padding.
  4090. if (comma && zero) value = group(padding + value, padding.length ? width - valueSuffix.length : Infinity), padding = "";
  4091. // Reconstruct the final output based on the desired alignment.
  4092. switch (align) {
  4093. case "<": value = valuePrefix + value + valueSuffix + padding; break;
  4094. case "=": value = valuePrefix + padding + value + valueSuffix; break;
  4095. case "^": value = padding.slice(0, length = padding.length >> 1) + valuePrefix + value + valueSuffix + padding.slice(length); break;
  4096. default: value = padding + valuePrefix + value + valueSuffix; break;
  4097. }
  4098. return numerals(value);
  4099. }
  4100. format.toString = function() {
  4101. return specifier + "";
  4102. };
  4103. return format;
  4104. }
  4105. function formatPrefix(specifier, value) {
  4106. var f = newFormat((specifier = formatSpecifier(specifier), specifier.type = "f", specifier)),
  4107. e = Math.max(-8, Math.min(8, Math.floor(exponent(value) / 3))) * 3,
  4108. k = Math.pow(10, -e),
  4109. prefix = prefixes[8 + e / 3];
  4110. return function(value) {
  4111. return f(k * value) + prefix;
  4112. };
  4113. }
  4114. return {
  4115. format: newFormat,
  4116. formatPrefix: formatPrefix
  4117. };
  4118. }
  4119. var locale$1;
  4120. var format;
  4121. var formatPrefix;
  4122. defaultLocale$1({
  4123. thousands: ",",
  4124. grouping: [3],
  4125. currency: ["$", ""]
  4126. });
  4127. function defaultLocale$1(definition) {
  4128. locale$1 = formatLocale$1(definition);
  4129. format = locale$1.format;
  4130. formatPrefix = locale$1.formatPrefix;
  4131. return locale$1;
  4132. }
  4133. function precisionFixed(step) {
  4134. return Math.max(0, -exponent(Math.abs(step)));
  4135. }
  4136. function precisionPrefix(step, value) {
  4137. return Math.max(0, Math.max(-8, Math.min(8, Math.floor(exponent(value) / 3))) * 3 - exponent(Math.abs(step)));
  4138. }
  4139. function precisionRound(step, max) {
  4140. step = Math.abs(step), max = Math.abs(max) - step;
  4141. return Math.max(0, exponent(max) - exponent(step)) + 1;
  4142. }
  4143. function tickFormat(start, stop, count, specifier) {
  4144. var step = tickStep(start, stop, count),
  4145. precision;
  4146. specifier = formatSpecifier(specifier == null ? ",f" : specifier);
  4147. switch (specifier.type) {
  4148. case "s": {
  4149. var value = Math.max(Math.abs(start), Math.abs(stop));
  4150. if (specifier.precision == null && !isNaN(precision = precisionPrefix(step, value))) specifier.precision = precision;
  4151. return formatPrefix(specifier, value);
  4152. }
  4153. case "":
  4154. case "e":
  4155. case "g":
  4156. case "p":
  4157. case "r": {
  4158. if (specifier.precision == null && !isNaN(precision = precisionRound(step, Math.max(Math.abs(start), Math.abs(stop))))) specifier.precision = precision - (specifier.type === "e");
  4159. break;
  4160. }
  4161. case "f":
  4162. case "%": {
  4163. if (specifier.precision == null && !isNaN(precision = precisionFixed(step))) specifier.precision = precision - (specifier.type === "%") * 2;
  4164. break;
  4165. }
  4166. }
  4167. return format(specifier);
  4168. }
  4169. function linearish(scale) {
  4170. var domain = scale.domain;
  4171. scale.ticks = function(count) {
  4172. var d = domain();
  4173. return ticks(d[0], d[d.length - 1], count == null ? 10 : count);
  4174. };
  4175. scale.tickFormat = function(count, specifier) {
  4176. var d = domain();
  4177. return tickFormat(d[0], d[d.length - 1], count == null ? 10 : count, specifier);
  4178. };
  4179. scale.nice = function(count) {
  4180. if (count == null) count = 10;
  4181. var d = domain();
  4182. var i0 = 0;
  4183. var i1 = d.length - 1;
  4184. var start = d[i0];
  4185. var stop = d[i1];
  4186. var prestep;
  4187. var step;
  4188. var maxIter = 10;
  4189. if (stop < start) {
  4190. step = start, start = stop, stop = step;
  4191. step = i0, i0 = i1, i1 = step;
  4192. }
  4193. while (maxIter-- > 0) {
  4194. step = tickIncrement(start, stop, count);
  4195. if (step === prestep) {
  4196. d[i0] = start;
  4197. d[i1] = stop;
  4198. return domain(d);
  4199. } else if (step > 0) {
  4200. start = Math.floor(start / step) * step;
  4201. stop = Math.ceil(stop / step) * step;
  4202. } else if (step < 0) {
  4203. start = Math.ceil(start * step) / step;
  4204. stop = Math.floor(stop * step) / step;
  4205. } else {
  4206. break;
  4207. }
  4208. prestep = step;
  4209. }
  4210. return scale;
  4211. };
  4212. return scale;
  4213. }
  4214. function linear() {
  4215. var scale = continuous();
  4216. scale.copy = function() {
  4217. return copy$1(scale, linear());
  4218. };
  4219. initRange.apply(scale, arguments);
  4220. return linearish(scale);
  4221. }
  4222. const t0 = new Date, t1 = new Date;
  4223. function timeInterval(floori, offseti, count, field) {
  4224. function interval(date) {
  4225. return floori(date = arguments.length === 0 ? new Date : new Date(+date)), date;
  4226. }
  4227. interval.floor = (date) => {
  4228. return floori(date = new Date(+date)), date;
  4229. };
  4230. interval.ceil = (date) => {
  4231. return floori(date = new Date(date - 1)), offseti(date, 1), floori(date), date;
  4232. };
  4233. interval.round = (date) => {
  4234. const d0 = interval(date), d1 = interval.ceil(date);
  4235. return date - d0 < d1 - date ? d0 : d1;
  4236. };
  4237. interval.offset = (date, step) => {
  4238. return offseti(date = new Date(+date), step == null ? 1 : Math.floor(step)), date;
  4239. };
  4240. interval.range = (start, stop, step) => {
  4241. const range = [];
  4242. start = interval.ceil(start);
  4243. step = step == null ? 1 : Math.floor(step);
  4244. if (!(start < stop) || !(step > 0)) return range; // also handles Invalid Date
  4245. let previous;
  4246. do range.push(previous = new Date(+start)), offseti(start, step), floori(start);
  4247. while (previous < start && start < stop);
  4248. return range;
  4249. };
  4250. interval.filter = (test) => {
  4251. return timeInterval((date) => {
  4252. if (date >= date) while (floori(date), !test(date)) date.setTime(date - 1);
  4253. }, (date, step) => {
  4254. if (date >= date) {
  4255. if (step < 0) while (++step <= 0) {
  4256. while (offseti(date, -1), !test(date)) {} // eslint-disable-line no-empty
  4257. } else while (--step >= 0) {
  4258. while (offseti(date, +1), !test(date)) {} // eslint-disable-line no-empty
  4259. }
  4260. }
  4261. });
  4262. };
  4263. if (count) {
  4264. interval.count = (start, end) => {
  4265. t0.setTime(+start), t1.setTime(+end);
  4266. floori(t0), floori(t1);
  4267. return Math.floor(count(t0, t1));
  4268. };
  4269. interval.every = (step) => {
  4270. step = Math.floor(step);
  4271. return !isFinite(step) || !(step > 0) ? null
  4272. : !(step > 1) ? interval
  4273. : interval.filter(field
  4274. ? (d) => field(d) % step === 0
  4275. : (d) => interval.count(0, d) % step === 0);
  4276. };
  4277. }
  4278. return interval;
  4279. }
  4280. const millisecond = timeInterval(() => {
  4281. // noop
  4282. }, (date, step) => {
  4283. date.setTime(+date + step);
  4284. }, (start, end) => {
  4285. return end - start;
  4286. });
  4287. // An optimized implementation for this simple case.
  4288. millisecond.every = (k) => {
  4289. k = Math.floor(k);
  4290. if (!isFinite(k) || !(k > 0)) return null;
  4291. if (!(k > 1)) return millisecond;
  4292. return timeInterval((date) => {
  4293. date.setTime(Math.floor(date / k) * k);
  4294. }, (date, step) => {
  4295. date.setTime(+date + step * k);
  4296. }, (start, end) => {
  4297. return (end - start) / k;
  4298. });
  4299. };
  4300. millisecond.range;
  4301. const durationSecond = 1000;
  4302. const durationMinute = durationSecond * 60;
  4303. const durationHour = durationMinute * 60;
  4304. const durationDay = durationHour * 24;
  4305. const durationWeek = durationDay * 7;
  4306. const second = timeInterval((date) => {
  4307. date.setTime(date - date.getMilliseconds());
  4308. }, (date, step) => {
  4309. date.setTime(+date + step * durationSecond);
  4310. }, (start, end) => {
  4311. return (end - start) / durationSecond;
  4312. }, (date) => {
  4313. return date.getUTCSeconds();
  4314. });
  4315. second.range;
  4316. const timeMinute = timeInterval((date) => {
  4317. date.setTime(date - date.getMilliseconds() - date.getSeconds() * durationSecond);
  4318. }, (date, step) => {
  4319. date.setTime(+date + step * durationMinute);
  4320. }, (start, end) => {
  4321. return (end - start) / durationMinute;
  4322. }, (date) => {
  4323. return date.getMinutes();
  4324. });
  4325. timeMinute.range;
  4326. const utcMinute = timeInterval((date) => {
  4327. date.setUTCSeconds(0, 0);
  4328. }, (date, step) => {
  4329. date.setTime(+date + step * durationMinute);
  4330. }, (start, end) => {
  4331. return (end - start) / durationMinute;
  4332. }, (date) => {
  4333. return date.getUTCMinutes();
  4334. });
  4335. utcMinute.range;
  4336. const timeHour = timeInterval((date) => {
  4337. date.setTime(date - date.getMilliseconds() - date.getSeconds() * durationSecond - date.getMinutes() * durationMinute);
  4338. }, (date, step) => {
  4339. date.setTime(+date + step * durationHour);
  4340. }, (start, end) => {
  4341. return (end - start) / durationHour;
  4342. }, (date) => {
  4343. return date.getHours();
  4344. });
  4345. timeHour.range;
  4346. const utcHour = timeInterval((date) => {
  4347. date.setUTCMinutes(0, 0, 0);
  4348. }, (date, step) => {
  4349. date.setTime(+date + step * durationHour);
  4350. }, (start, end) => {
  4351. return (end - start) / durationHour;
  4352. }, (date) => {
  4353. return date.getUTCHours();
  4354. });
  4355. utcHour.range;
  4356. const timeDay = timeInterval(
  4357. date => date.setHours(0, 0, 0, 0),
  4358. (date, step) => date.setDate(date.getDate() + step),
  4359. (start, end) => (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * durationMinute) / durationDay,
  4360. date => date.getDate() - 1
  4361. );
  4362. timeDay.range;
  4363. const utcDay = timeInterval((date) => {
  4364. date.setUTCHours(0, 0, 0, 0);
  4365. }, (date, step) => {
  4366. date.setUTCDate(date.getUTCDate() + step);
  4367. }, (start, end) => {
  4368. return (end - start) / durationDay;
  4369. }, (date) => {
  4370. return date.getUTCDate() - 1;
  4371. });
  4372. utcDay.range;
  4373. const unixDay = timeInterval((date) => {
  4374. date.setUTCHours(0, 0, 0, 0);
  4375. }, (date, step) => {
  4376. date.setUTCDate(date.getUTCDate() + step);
  4377. }, (start, end) => {
  4378. return (end - start) / durationDay;
  4379. }, (date) => {
  4380. return Math.floor(date / durationDay);
  4381. });
  4382. unixDay.range;
  4383. function timeWeekday(i) {
  4384. return timeInterval((date) => {
  4385. date.setDate(date.getDate() - (date.getDay() + 7 - i) % 7);
  4386. date.setHours(0, 0, 0, 0);
  4387. }, (date, step) => {
  4388. date.setDate(date.getDate() + step * 7);
  4389. }, (start, end) => {
  4390. return (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * durationMinute) / durationWeek;
  4391. });
  4392. }
  4393. const timeSunday = timeWeekday(0);
  4394. const timeMonday = timeWeekday(1);
  4395. const timeTuesday = timeWeekday(2);
  4396. const timeWednesday = timeWeekday(3);
  4397. const timeThursday = timeWeekday(4);
  4398. const timeFriday = timeWeekday(5);
  4399. const timeSaturday = timeWeekday(6);
  4400. timeSunday.range;
  4401. timeMonday.range;
  4402. timeTuesday.range;
  4403. timeWednesday.range;
  4404. timeThursday.range;
  4405. timeFriday.range;
  4406. timeSaturday.range;
  4407. function utcWeekday(i) {
  4408. return timeInterval((date) => {
  4409. date.setUTCDate(date.getUTCDate() - (date.getUTCDay() + 7 - i) % 7);
  4410. date.setUTCHours(0, 0, 0, 0);
  4411. }, (date, step) => {
  4412. date.setUTCDate(date.getUTCDate() + step * 7);
  4413. }, (start, end) => {
  4414. return (end - start) / durationWeek;
  4415. });
  4416. }
  4417. const utcSunday = utcWeekday(0);
  4418. const utcMonday = utcWeekday(1);
  4419. const utcTuesday = utcWeekday(2);
  4420. const utcWednesday = utcWeekday(3);
  4421. const utcThursday = utcWeekday(4);
  4422. const utcFriday = utcWeekday(5);
  4423. const utcSaturday = utcWeekday(6);
  4424. utcSunday.range;
  4425. utcMonday.range;
  4426. utcTuesday.range;
  4427. utcWednesday.range;
  4428. utcThursday.range;
  4429. utcFriday.range;
  4430. utcSaturday.range;
  4431. const timeMonth = timeInterval((date) => {
  4432. date.setDate(1);
  4433. date.setHours(0, 0, 0, 0);
  4434. }, (date, step) => {
  4435. date.setMonth(date.getMonth() + step);
  4436. }, (start, end) => {
  4437. return end.getMonth() - start.getMonth() + (end.getFullYear() - start.getFullYear()) * 12;
  4438. }, (date) => {
  4439. return date.getMonth();
  4440. });
  4441. timeMonth.range;
  4442. const utcMonth = timeInterval((date) => {
  4443. date.setUTCDate(1);
  4444. date.setUTCHours(0, 0, 0, 0);
  4445. }, (date, step) => {
  4446. date.setUTCMonth(date.getUTCMonth() + step);
  4447. }, (start, end) => {
  4448. return end.getUTCMonth() - start.getUTCMonth() + (end.getUTCFullYear() - start.getUTCFullYear()) * 12;
  4449. }, (date) => {
  4450. return date.getUTCMonth();
  4451. });
  4452. utcMonth.range;
  4453. const timeYear = timeInterval((date) => {
  4454. date.setMonth(0, 1);
  4455. date.setHours(0, 0, 0, 0);
  4456. }, (date, step) => {
  4457. date.setFullYear(date.getFullYear() + step);
  4458. }, (start, end) => {
  4459. return end.getFullYear() - start.getFullYear();
  4460. }, (date) => {
  4461. return date.getFullYear();
  4462. });
  4463. // An optimized implementation for this simple case.
  4464. timeYear.every = (k) => {
  4465. return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : timeInterval((date) => {
  4466. date.setFullYear(Math.floor(date.getFullYear() / k) * k);
  4467. date.setMonth(0, 1);
  4468. date.setHours(0, 0, 0, 0);
  4469. }, (date, step) => {
  4470. date.setFullYear(date.getFullYear() + step * k);
  4471. });
  4472. };
  4473. timeYear.range;
  4474. const utcYear = timeInterval((date) => {
  4475. date.setUTCMonth(0, 1);
  4476. date.setUTCHours(0, 0, 0, 0);
  4477. }, (date, step) => {
  4478. date.setUTCFullYear(date.getUTCFullYear() + step);
  4479. }, (start, end) => {
  4480. return end.getUTCFullYear() - start.getUTCFullYear();
  4481. }, (date) => {
  4482. return date.getUTCFullYear();
  4483. });
  4484. // An optimized implementation for this simple case.
  4485. utcYear.every = (k) => {
  4486. return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : timeInterval((date) => {
  4487. date.setUTCFullYear(Math.floor(date.getUTCFullYear() / k) * k);
  4488. date.setUTCMonth(0, 1);
  4489. date.setUTCHours(0, 0, 0, 0);
  4490. }, (date, step) => {
  4491. date.setUTCFullYear(date.getUTCFullYear() + step * k);
  4492. });
  4493. };
  4494. utcYear.range;
  4495. function localDate(d) {
  4496. if (0 <= d.y && d.y < 100) {
  4497. var date = new Date(-1, d.m, d.d, d.H, d.M, d.S, d.L);
  4498. date.setFullYear(d.y);
  4499. return date;
  4500. }
  4501. return new Date(d.y, d.m, d.d, d.H, d.M, d.S, d.L);
  4502. }
  4503. function utcDate(d) {
  4504. if (0 <= d.y && d.y < 100) {
  4505. var date = new Date(Date.UTC(-1, d.m, d.d, d.H, d.M, d.S, d.L));
  4506. date.setUTCFullYear(d.y);
  4507. return date;
  4508. }
  4509. return new Date(Date.UTC(d.y, d.m, d.d, d.H, d.M, d.S, d.L));
  4510. }
  4511. function newDate(y, m, d) {
  4512. return {y: y, m: m, d: d, H: 0, M: 0, S: 0, L: 0};
  4513. }
  4514. function formatLocale(locale) {
  4515. var locale_dateTime = locale.dateTime,
  4516. locale_date = locale.date,
  4517. locale_time = locale.time,
  4518. locale_periods = locale.periods,
  4519. locale_weekdays = locale.days,
  4520. locale_shortWeekdays = locale.shortDays,
  4521. locale_months = locale.months,
  4522. locale_shortMonths = locale.shortMonths;
  4523. var periodRe = formatRe(locale_periods),
  4524. periodLookup = formatLookup(locale_periods),
  4525. weekdayRe = formatRe(locale_weekdays),
  4526. weekdayLookup = formatLookup(locale_weekdays),
  4527. shortWeekdayRe = formatRe(locale_shortWeekdays),
  4528. shortWeekdayLookup = formatLookup(locale_shortWeekdays),
  4529. monthRe = formatRe(locale_months),
  4530. monthLookup = formatLookup(locale_months),
  4531. shortMonthRe = formatRe(locale_shortMonths),
  4532. shortMonthLookup = formatLookup(locale_shortMonths);
  4533. var formats = {
  4534. "a": formatShortWeekday,
  4535. "A": formatWeekday,
  4536. "b": formatShortMonth,
  4537. "B": formatMonth,
  4538. "c": null,
  4539. "d": formatDayOfMonth,
  4540. "e": formatDayOfMonth,
  4541. "f": formatMicroseconds,
  4542. "g": formatYearISO,
  4543. "G": formatFullYearISO,
  4544. "H": formatHour24,
  4545. "I": formatHour12,
  4546. "j": formatDayOfYear,
  4547. "L": formatMilliseconds,
  4548. "m": formatMonthNumber,
  4549. "M": formatMinutes,
  4550. "p": formatPeriod,
  4551. "q": formatQuarter,
  4552. "Q": formatUnixTimestamp,
  4553. "s": formatUnixTimestampSeconds,
  4554. "S": formatSeconds,
  4555. "u": formatWeekdayNumberMonday,
  4556. "U": formatWeekNumberSunday,
  4557. "V": formatWeekNumberISO,
  4558. "w": formatWeekdayNumberSunday,
  4559. "W": formatWeekNumberMonday,
  4560. "x": null,
  4561. "X": null,
  4562. "y": formatYear,
  4563. "Y": formatFullYear,
  4564. "Z": formatZone,
  4565. "%": formatLiteralPercent
  4566. };
  4567. var utcFormats = {
  4568. "a": formatUTCShortWeekday,
  4569. "A": formatUTCWeekday,
  4570. "b": formatUTCShortMonth,
  4571. "B": formatUTCMonth,
  4572. "c": null,
  4573. "d": formatUTCDayOfMonth,
  4574. "e": formatUTCDayOfMonth,
  4575. "f": formatUTCMicroseconds,
  4576. "g": formatUTCYearISO,
  4577. "G": formatUTCFullYearISO,
  4578. "H": formatUTCHour24,
  4579. "I": formatUTCHour12,
  4580. "j": formatUTCDayOfYear,
  4581. "L": formatUTCMilliseconds,
  4582. "m": formatUTCMonthNumber,
  4583. "M": formatUTCMinutes,
  4584. "p": formatUTCPeriod,
  4585. "q": formatUTCQuarter,
  4586. "Q": formatUnixTimestamp,
  4587. "s": formatUnixTimestampSeconds,
  4588. "S": formatUTCSeconds,
  4589. "u": formatUTCWeekdayNumberMonday,
  4590. "U": formatUTCWeekNumberSunday,
  4591. "V": formatUTCWeekNumberISO,
  4592. "w": formatUTCWeekdayNumberSunday,
  4593. "W": formatUTCWeekNumberMonday,
  4594. "x": null,
  4595. "X": null,
  4596. "y": formatUTCYear,
  4597. "Y": formatUTCFullYear,
  4598. "Z": formatUTCZone,
  4599. "%": formatLiteralPercent
  4600. };
  4601. var parses = {
  4602. "a": parseShortWeekday,
  4603. "A": parseWeekday,
  4604. "b": parseShortMonth,
  4605. "B": parseMonth,
  4606. "c": parseLocaleDateTime,
  4607. "d": parseDayOfMonth,
  4608. "e": parseDayOfMonth,
  4609. "f": parseMicroseconds,
  4610. "g": parseYear,
  4611. "G": parseFullYear,
  4612. "H": parseHour24,
  4613. "I": parseHour24,
  4614. "j": parseDayOfYear,
  4615. "L": parseMilliseconds,
  4616. "m": parseMonthNumber,
  4617. "M": parseMinutes,
  4618. "p": parsePeriod,
  4619. "q": parseQuarter,
  4620. "Q": parseUnixTimestamp,
  4621. "s": parseUnixTimestampSeconds,
  4622. "S": parseSeconds,
  4623. "u": parseWeekdayNumberMonday,
  4624. "U": parseWeekNumberSunday,
  4625. "V": parseWeekNumberISO,
  4626. "w": parseWeekdayNumberSunday,
  4627. "W": parseWeekNumberMonday,
  4628. "x": parseLocaleDate,
  4629. "X": parseLocaleTime,
  4630. "y": parseYear,
  4631. "Y": parseFullYear,
  4632. "Z": parseZone,
  4633. "%": parseLiteralPercent
  4634. };
  4635. // These recursive directive definitions must be deferred.
  4636. formats.x = newFormat(locale_date, formats);
  4637. formats.X = newFormat(locale_time, formats);
  4638. formats.c = newFormat(locale_dateTime, formats);
  4639. utcFormats.x = newFormat(locale_date, utcFormats);
  4640. utcFormats.X = newFormat(locale_time, utcFormats);
  4641. utcFormats.c = newFormat(locale_dateTime, utcFormats);
  4642. function newFormat(specifier, formats) {
  4643. return function(date) {
  4644. var string = [],
  4645. i = -1,
  4646. j = 0,
  4647. n = specifier.length,
  4648. c,
  4649. pad,
  4650. format;
  4651. if (!(date instanceof Date)) date = new Date(+date);
  4652. while (++i < n) {
  4653. if (specifier.charCodeAt(i) === 37) {
  4654. string.push(specifier.slice(j, i));
  4655. if ((pad = pads[c = specifier.charAt(++i)]) != null) c = specifier.charAt(++i);
  4656. else pad = c === "e" ? " " : "0";
  4657. if (format = formats[c]) c = format(date, pad);
  4658. string.push(c);
  4659. j = i + 1;
  4660. }
  4661. }
  4662. string.push(specifier.slice(j, i));
  4663. return string.join("");
  4664. };
  4665. }
  4666. function newParse(specifier, Z) {
  4667. return function(string) {
  4668. var d = newDate(1900, undefined, 1),
  4669. i = parseSpecifier(d, specifier, string += "", 0),
  4670. week, day;
  4671. if (i != string.length) return null;
  4672. // If a UNIX timestamp is specified, return it.
  4673. if ("Q" in d) return new Date(d.Q);
  4674. if ("s" in d) return new Date(d.s * 1000 + ("L" in d ? d.L : 0));
  4675. // If this is utcParse, never use the local timezone.
  4676. if (Z && !("Z" in d)) d.Z = 0;
  4677. // The am-pm flag is 0 for AM, and 1 for PM.
  4678. if ("p" in d) d.H = d.H % 12 + d.p * 12;
  4679. // If the month was not specified, inherit from the quarter.
  4680. if (d.m === undefined) d.m = "q" in d ? d.q : 0;
  4681. // Convert day-of-week and week-of-year to day-of-year.
  4682. if ("V" in d) {
  4683. if (d.V < 1 || d.V > 53) return null;
  4684. if (!("w" in d)) d.w = 1;
  4685. if ("Z" in d) {
  4686. week = utcDate(newDate(d.y, 0, 1)), day = week.getUTCDay();
  4687. week = day > 4 || day === 0 ? utcMonday.ceil(week) : utcMonday(week);
  4688. week = utcDay.offset(week, (d.V - 1) * 7);
  4689. d.y = week.getUTCFullYear();
  4690. d.m = week.getUTCMonth();
  4691. d.d = week.getUTCDate() + (d.w + 6) % 7;
  4692. } else {
  4693. week = localDate(newDate(d.y, 0, 1)), day = week.getDay();
  4694. week = day > 4 || day === 0 ? timeMonday.ceil(week) : timeMonday(week);
  4695. week = timeDay.offset(week, (d.V - 1) * 7);
  4696. d.y = week.getFullYear();
  4697. d.m = week.getMonth();
  4698. d.d = week.getDate() + (d.w + 6) % 7;
  4699. }
  4700. } else if ("W" in d || "U" in d) {
  4701. if (!("w" in d)) d.w = "u" in d ? d.u % 7 : "W" in d ? 1 : 0;
  4702. day = "Z" in d ? utcDate(newDate(d.y, 0, 1)).getUTCDay() : localDate(newDate(d.y, 0, 1)).getDay();
  4703. d.m = 0;
  4704. d.d = "W" in d ? (d.w + 6) % 7 + d.W * 7 - (day + 5) % 7 : d.w + d.U * 7 - (day + 6) % 7;
  4705. }
  4706. // If a time zone is specified, all fields are interpreted as UTC and then
  4707. // offset according to the specified time zone.
  4708. if ("Z" in d) {
  4709. d.H += d.Z / 100 | 0;
  4710. d.M += d.Z % 100;
  4711. return utcDate(d);
  4712. }
  4713. // Otherwise, all fields are in local time.
  4714. return localDate(d);
  4715. };
  4716. }
  4717. function parseSpecifier(d, specifier, string, j) {
  4718. var i = 0,
  4719. n = specifier.length,
  4720. m = string.length,
  4721. c,
  4722. parse;
  4723. while (i < n) {
  4724. if (j >= m) return -1;
  4725. c = specifier.charCodeAt(i++);
  4726. if (c === 37) {
  4727. c = specifier.charAt(i++);
  4728. parse = parses[c in pads ? specifier.charAt(i++) : c];
  4729. if (!parse || ((j = parse(d, string, j)) < 0)) return -1;
  4730. } else if (c != string.charCodeAt(j++)) {
  4731. return -1;
  4732. }
  4733. }
  4734. return j;
  4735. }
  4736. function parsePeriod(d, string, i) {
  4737. var n = periodRe.exec(string.slice(i));
  4738. return n ? (d.p = periodLookup.get(n[0].toLowerCase()), i + n[0].length) : -1;
  4739. }
  4740. function parseShortWeekday(d, string, i) {
  4741. var n = shortWeekdayRe.exec(string.slice(i));
  4742. return n ? (d.w = shortWeekdayLookup.get(n[0].toLowerCase()), i + n[0].length) : -1;
  4743. }
  4744. function parseWeekday(d, string, i) {
  4745. var n = weekdayRe.exec(string.slice(i));
  4746. return n ? (d.w = weekdayLookup.get(n[0].toLowerCase()), i + n[0].length) : -1;
  4747. }
  4748. function parseShortMonth(d, string, i) {
  4749. var n = shortMonthRe.exec(string.slice(i));
  4750. return n ? (d.m = shortMonthLookup.get(n[0].toLowerCase()), i + n[0].length) : -1;
  4751. }
  4752. function parseMonth(d, string, i) {
  4753. var n = monthRe.exec(string.slice(i));
  4754. return n ? (d.m = monthLookup.get(n[0].toLowerCase()), i + n[0].length) : -1;
  4755. }
  4756. function parseLocaleDateTime(d, string, i) {
  4757. return parseSpecifier(d, locale_dateTime, string, i);
  4758. }
  4759. function parseLocaleDate(d, string, i) {
  4760. return parseSpecifier(d, locale_date, string, i);
  4761. }
  4762. function parseLocaleTime(d, string, i) {
  4763. return parseSpecifier(d, locale_time, string, i);
  4764. }
  4765. function formatShortWeekday(d) {
  4766. return locale_shortWeekdays[d.getDay()];
  4767. }
  4768. function formatWeekday(d) {
  4769. return locale_weekdays[d.getDay()];
  4770. }
  4771. function formatShortMonth(d) {
  4772. return locale_shortMonths[d.getMonth()];
  4773. }
  4774. function formatMonth(d) {
  4775. return locale_months[d.getMonth()];
  4776. }
  4777. function formatPeriod(d) {
  4778. return locale_periods[+(d.getHours() >= 12)];
  4779. }
  4780. function formatQuarter(d) {
  4781. return 1 + ~~(d.getMonth() / 3);
  4782. }
  4783. function formatUTCShortWeekday(d) {
  4784. return locale_shortWeekdays[d.getUTCDay()];
  4785. }
  4786. function formatUTCWeekday(d) {
  4787. return locale_weekdays[d.getUTCDay()];
  4788. }
  4789. function formatUTCShortMonth(d) {
  4790. return locale_shortMonths[d.getUTCMonth()];
  4791. }
  4792. function formatUTCMonth(d) {
  4793. return locale_months[d.getUTCMonth()];
  4794. }
  4795. function formatUTCPeriod(d) {
  4796. return locale_periods[+(d.getUTCHours() >= 12)];
  4797. }
  4798. function formatUTCQuarter(d) {
  4799. return 1 + ~~(d.getUTCMonth() / 3);
  4800. }
  4801. return {
  4802. format: function(specifier) {
  4803. var f = newFormat(specifier += "", formats);
  4804. f.toString = function() { return specifier; };
  4805. return f;
  4806. },
  4807. parse: function(specifier) {
  4808. var p = newParse(specifier += "", false);
  4809. p.toString = function() { return specifier; };
  4810. return p;
  4811. },
  4812. utcFormat: function(specifier) {
  4813. var f = newFormat(specifier += "", utcFormats);
  4814. f.toString = function() { return specifier; };
  4815. return f;
  4816. },
  4817. utcParse: function(specifier) {
  4818. var p = newParse(specifier += "", true);
  4819. p.toString = function() { return specifier; };
  4820. return p;
  4821. }
  4822. };
  4823. }
  4824. var pads = {"-": "", "_": " ", "0": "0"},
  4825. numberRe = /^\s*\d+/, // note: ignores next directive
  4826. percentRe = /^%/,
  4827. requoteRe = /[\\^$*+?|[\]().{}]/g;
  4828. function pad(value, fill, width) {
  4829. var sign = value < 0 ? "-" : "",
  4830. string = (sign ? -value : value) + "",
  4831. length = string.length;
  4832. return sign + (length < width ? new Array(width - length + 1).join(fill) + string : string);
  4833. }
  4834. function requote(s) {
  4835. return s.replace(requoteRe, "\\$&");
  4836. }
  4837. function formatRe(names) {
  4838. return new RegExp("^(?:" + names.map(requote).join("|") + ")", "i");
  4839. }
  4840. function formatLookup(names) {
  4841. return new Map(names.map((name, i) => [name.toLowerCase(), i]));
  4842. }
  4843. function parseWeekdayNumberSunday(d, string, i) {
  4844. var n = numberRe.exec(string.slice(i, i + 1));
  4845. return n ? (d.w = +n[0], i + n[0].length) : -1;
  4846. }
  4847. function parseWeekdayNumberMonday(d, string, i) {
  4848. var n = numberRe.exec(string.slice(i, i + 1));
  4849. return n ? (d.u = +n[0], i + n[0].length) : -1;
  4850. }
  4851. function parseWeekNumberSunday(d, string, i) {
  4852. var n = numberRe.exec(string.slice(i, i + 2));
  4853. return n ? (d.U = +n[0], i + n[0].length) : -1;
  4854. }
  4855. function parseWeekNumberISO(d, string, i) {
  4856. var n = numberRe.exec(string.slice(i, i + 2));
  4857. return n ? (d.V = +n[0], i + n[0].length) : -1;
  4858. }
  4859. function parseWeekNumberMonday(d, string, i) {
  4860. var n = numberRe.exec(string.slice(i, i + 2));
  4861. return n ? (d.W = +n[0], i + n[0].length) : -1;
  4862. }
  4863. function parseFullYear(d, string, i) {
  4864. var n = numberRe.exec(string.slice(i, i + 4));
  4865. return n ? (d.y = +n[0], i + n[0].length) : -1;
  4866. }
  4867. function parseYear(d, string, i) {
  4868. var n = numberRe.exec(string.slice(i, i + 2));
  4869. return n ? (d.y = +n[0] + (+n[0] > 68 ? 1900 : 2000), i + n[0].length) : -1;
  4870. }
  4871. function parseZone(d, string, i) {
  4872. var n = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(string.slice(i, i + 6));
  4873. return n ? (d.Z = n[1] ? 0 : -(n[2] + (n[3] || "00")), i + n[0].length) : -1;
  4874. }
  4875. function parseQuarter(d, string, i) {
  4876. var n = numberRe.exec(string.slice(i, i + 1));
  4877. return n ? (d.q = n[0] * 3 - 3, i + n[0].length) : -1;
  4878. }
  4879. function parseMonthNumber(d, string, i) {
  4880. var n = numberRe.exec(string.slice(i, i + 2));
  4881. return n ? (d.m = n[0] - 1, i + n[0].length) : -1;
  4882. }
  4883. function parseDayOfMonth(d, string, i) {
  4884. var n = numberRe.exec(string.slice(i, i + 2));
  4885. return n ? (d.d = +n[0], i + n[0].length) : -1;
  4886. }
  4887. function parseDayOfYear(d, string, i) {
  4888. var n = numberRe.exec(string.slice(i, i + 3));
  4889. return n ? (d.m = 0, d.d = +n[0], i + n[0].length) : -1;
  4890. }
  4891. function parseHour24(d, string, i) {
  4892. var n = numberRe.exec(string.slice(i, i + 2));
  4893. return n ? (d.H = +n[0], i + n[0].length) : -1;
  4894. }
  4895. function parseMinutes(d, string, i) {
  4896. var n = numberRe.exec(string.slice(i, i + 2));
  4897. return n ? (d.M = +n[0], i + n[0].length) : -1;
  4898. }
  4899. function parseSeconds(d, string, i) {
  4900. var n = numberRe.exec(string.slice(i, i + 2));
  4901. return n ? (d.S = +n[0], i + n[0].length) : -1;
  4902. }
  4903. function parseMilliseconds(d, string, i) {
  4904. var n = numberRe.exec(string.slice(i, i + 3));
  4905. return n ? (d.L = +n[0], i + n[0].length) : -1;
  4906. }
  4907. function parseMicroseconds(d, string, i) {
  4908. var n = numberRe.exec(string.slice(i, i + 6));
  4909. return n ? (d.L = Math.floor(n[0] / 1000), i + n[0].length) : -1;
  4910. }
  4911. function parseLiteralPercent(d, string, i) {
  4912. var n = percentRe.exec(string.slice(i, i + 1));
  4913. return n ? i + n[0].length : -1;
  4914. }
  4915. function parseUnixTimestamp(d, string, i) {
  4916. var n = numberRe.exec(string.slice(i));
  4917. return n ? (d.Q = +n[0], i + n[0].length) : -1;
  4918. }
  4919. function parseUnixTimestampSeconds(d, string, i) {
  4920. var n = numberRe.exec(string.slice(i));
  4921. return n ? (d.s = +n[0], i + n[0].length) : -1;
  4922. }
  4923. function formatDayOfMonth(d, p) {
  4924. return pad(d.getDate(), p, 2);
  4925. }
  4926. function formatHour24(d, p) {
  4927. return pad(d.getHours(), p, 2);
  4928. }
  4929. function formatHour12(d, p) {
  4930. return pad(d.getHours() % 12 || 12, p, 2);
  4931. }
  4932. function formatDayOfYear(d, p) {
  4933. return pad(1 + timeDay.count(timeYear(d), d), p, 3);
  4934. }
  4935. function formatMilliseconds(d, p) {
  4936. return pad(d.getMilliseconds(), p, 3);
  4937. }
  4938. function formatMicroseconds(d, p) {
  4939. return formatMilliseconds(d, p) + "000";
  4940. }
  4941. function formatMonthNumber(d, p) {
  4942. return pad(d.getMonth() + 1, p, 2);
  4943. }
  4944. function formatMinutes(d, p) {
  4945. return pad(d.getMinutes(), p, 2);
  4946. }
  4947. function formatSeconds(d, p) {
  4948. return pad(d.getSeconds(), p, 2);
  4949. }
  4950. function formatWeekdayNumberMonday(d) {
  4951. var day = d.getDay();
  4952. return day === 0 ? 7 : day;
  4953. }
  4954. function formatWeekNumberSunday(d, p) {
  4955. return pad(timeSunday.count(timeYear(d) - 1, d), p, 2);
  4956. }
  4957. function dISO(d) {
  4958. var day = d.getDay();
  4959. return (day >= 4 || day === 0) ? timeThursday(d) : timeThursday.ceil(d);
  4960. }
  4961. function formatWeekNumberISO(d, p) {
  4962. d = dISO(d);
  4963. return pad(timeThursday.count(timeYear(d), d) + (timeYear(d).getDay() === 4), p, 2);
  4964. }
  4965. function formatWeekdayNumberSunday(d) {
  4966. return d.getDay();
  4967. }
  4968. function formatWeekNumberMonday(d, p) {
  4969. return pad(timeMonday.count(timeYear(d) - 1, d), p, 2);
  4970. }
  4971. function formatYear(d, p) {
  4972. return pad(d.getFullYear() % 100, p, 2);
  4973. }
  4974. function formatYearISO(d, p) {
  4975. d = dISO(d);
  4976. return pad(d.getFullYear() % 100, p, 2);
  4977. }
  4978. function formatFullYear(d, p) {
  4979. return pad(d.getFullYear() % 10000, p, 4);
  4980. }
  4981. function formatFullYearISO(d, p) {
  4982. var day = d.getDay();
  4983. d = (day >= 4 || day === 0) ? timeThursday(d) : timeThursday.ceil(d);
  4984. return pad(d.getFullYear() % 10000, p, 4);
  4985. }
  4986. function formatZone(d) {
  4987. var z = d.getTimezoneOffset();
  4988. return (z > 0 ? "-" : (z *= -1, "+"))
  4989. + pad(z / 60 | 0, "0", 2)
  4990. + pad(z % 60, "0", 2);
  4991. }
  4992. function formatUTCDayOfMonth(d, p) {
  4993. return pad(d.getUTCDate(), p, 2);
  4994. }
  4995. function formatUTCHour24(d, p) {
  4996. return pad(d.getUTCHours(), p, 2);
  4997. }
  4998. function formatUTCHour12(d, p) {
  4999. return pad(d.getUTCHours() % 12 || 12, p, 2);
  5000. }
  5001. function formatUTCDayOfYear(d, p) {
  5002. return pad(1 + utcDay.count(utcYear(d), d), p, 3);
  5003. }
  5004. function formatUTCMilliseconds(d, p) {
  5005. return pad(d.getUTCMilliseconds(), p, 3);
  5006. }
  5007. function formatUTCMicroseconds(d, p) {
  5008. return formatUTCMilliseconds(d, p) + "000";
  5009. }
  5010. function formatUTCMonthNumber(d, p) {
  5011. return pad(d.getUTCMonth() + 1, p, 2);
  5012. }
  5013. function formatUTCMinutes(d, p) {
  5014. return pad(d.getUTCMinutes(), p, 2);
  5015. }
  5016. function formatUTCSeconds(d, p) {
  5017. return pad(d.getUTCSeconds(), p, 2);
  5018. }
  5019. function formatUTCWeekdayNumberMonday(d) {
  5020. var dow = d.getUTCDay();
  5021. return dow === 0 ? 7 : dow;
  5022. }
  5023. function formatUTCWeekNumberSunday(d, p) {
  5024. return pad(utcSunday.count(utcYear(d) - 1, d), p, 2);
  5025. }
  5026. function UTCdISO(d) {
  5027. var day = d.getUTCDay();
  5028. return (day >= 4 || day === 0) ? utcThursday(d) : utcThursday.ceil(d);
  5029. }
  5030. function formatUTCWeekNumberISO(d, p) {
  5031. d = UTCdISO(d);
  5032. return pad(utcThursday.count(utcYear(d), d) + (utcYear(d).getUTCDay() === 4), p, 2);
  5033. }
  5034. function formatUTCWeekdayNumberSunday(d) {
  5035. return d.getUTCDay();
  5036. }
  5037. function formatUTCWeekNumberMonday(d, p) {
  5038. return pad(utcMonday.count(utcYear(d) - 1, d), p, 2);
  5039. }
  5040. function formatUTCYear(d, p) {
  5041. return pad(d.getUTCFullYear() % 100, p, 2);
  5042. }
  5043. function formatUTCYearISO(d, p) {
  5044. d = UTCdISO(d);
  5045. return pad(d.getUTCFullYear() % 100, p, 2);
  5046. }
  5047. function formatUTCFullYear(d, p) {
  5048. return pad(d.getUTCFullYear() % 10000, p, 4);
  5049. }
  5050. function formatUTCFullYearISO(d, p) {
  5051. var day = d.getUTCDay();
  5052. d = (day >= 4 || day === 0) ? utcThursday(d) : utcThursday.ceil(d);
  5053. return pad(d.getUTCFullYear() % 10000, p, 4);
  5054. }
  5055. function formatUTCZone() {
  5056. return "+0000";
  5057. }
  5058. function formatLiteralPercent() {
  5059. return "%";
  5060. }
  5061. function formatUnixTimestamp(d) {
  5062. return +d;
  5063. }
  5064. function formatUnixTimestampSeconds(d) {
  5065. return Math.floor(+d / 1000);
  5066. }
  5067. var locale;
  5068. var utcFormat;
  5069. var utcParse;
  5070. defaultLocale({
  5071. dateTime: "%x, %X",
  5072. date: "%-m/%-d/%Y",
  5073. time: "%-I:%M:%S %p",
  5074. periods: ["AM", "PM"],
  5075. days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
  5076. shortDays: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
  5077. months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
  5078. shortMonths: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
  5079. });
  5080. function defaultLocale(definition) {
  5081. locale = formatLocale(definition);
  5082. locale.format;
  5083. locale.parse;
  5084. utcFormat = locale.utcFormat;
  5085. utcParse = locale.utcParse;
  5086. return locale;
  5087. }
  5088. var isoSpecifier = "%Y-%m-%dT%H:%M:%S.%LZ";
  5089. function formatIsoNative(date) {
  5090. return date.toISOString();
  5091. }
  5092. Date.prototype.toISOString
  5093. ? formatIsoNative
  5094. : utcFormat(isoSpecifier);
  5095. function parseIsoNative(string) {
  5096. var date = new Date(string);
  5097. return isNaN(date) ? null : date;
  5098. }
  5099. +new Date("2000-01-01T00:00:00.000Z")
  5100. ? parseIsoNative
  5101. : utcParse(isoSpecifier);
  5102. function transformer() {
  5103. var x0 = 0,
  5104. x1 = 1,
  5105. t0,
  5106. t1,
  5107. k10,
  5108. transform,
  5109. interpolator = identity$1,
  5110. clamp = false,
  5111. unknown;
  5112. function scale(x) {
  5113. return x == null || isNaN(x = +x) ? unknown : interpolator(k10 === 0 ? 0.5 : (x = (transform(x) - t0) * k10, clamp ? Math.max(0, Math.min(1, x)) : x));
  5114. }
  5115. scale.domain = function(_) {
  5116. return arguments.length ? ([x0, x1] = _, t0 = transform(x0 = +x0), t1 = transform(x1 = +x1), k10 = t0 === t1 ? 0 : 1 / (t1 - t0), scale) : [x0, x1];
  5117. };
  5118. scale.clamp = function(_) {
  5119. return arguments.length ? (clamp = !!_, scale) : clamp;
  5120. };
  5121. scale.interpolator = function(_) {
  5122. return arguments.length ? (interpolator = _, scale) : interpolator;
  5123. };
  5124. function range(interpolate) {
  5125. return function(_) {
  5126. var r0, r1;
  5127. return arguments.length ? ([r0, r1] = _, interpolator = interpolate(r0, r1), scale) : [interpolator(0), interpolator(1)];
  5128. };
  5129. }
  5130. scale.range = range(interpolate);
  5131. scale.rangeRound = range(interpolateRound);
  5132. scale.unknown = function(_) {
  5133. return arguments.length ? (unknown = _, scale) : unknown;
  5134. };
  5135. return function(t) {
  5136. transform = t, t0 = t(x0), t1 = t(x1), k10 = t0 === t1 ? 0 : 1 / (t1 - t0);
  5137. return scale;
  5138. };
  5139. }
  5140. function copy(source, target) {
  5141. return target
  5142. .domain(source.domain())
  5143. .interpolator(source.interpolator())
  5144. .clamp(source.clamp())
  5145. .unknown(source.unknown());
  5146. }
  5147. function sequential() {
  5148. var scale = linearish(transformer()(identity$1));
  5149. scale.copy = function() {
  5150. return copy(scale, sequential());
  5151. };
  5152. return initInterpolator.apply(scale, arguments);
  5153. }
  5154. const COLOR_BASE = "#cecece";
  5155. // https://www.w3.org/TR/WCAG20/#relativeluminancedef
  5156. const rc = 0.2126;
  5157. const gc = 0.7152;
  5158. const bc = 0.0722;
  5159. // low-gamma adjust coefficient
  5160. const lowc = 1 / 12.92;
  5161. function adjustGamma(p) {
  5162. return Math.pow((p + 0.055) / 1.055, 2.4);
  5163. }
  5164. function relativeLuminance(o) {
  5165. const rsrgb = o.r / 255;
  5166. const gsrgb = o.g / 255;
  5167. const bsrgb = o.b / 255;
  5168. const r = rsrgb <= 0.03928 ? rsrgb * lowc : adjustGamma(rsrgb);
  5169. const g = gsrgb <= 0.03928 ? gsrgb * lowc : adjustGamma(gsrgb);
  5170. const b = bsrgb <= 0.03928 ? bsrgb * lowc : adjustGamma(bsrgb);
  5171. return r * rc + g * gc + b * bc;
  5172. }
  5173. const createRainbowColor = (root) => {
  5174. const colorParentMap = new Map();
  5175. colorParentMap.set(root, COLOR_BASE);
  5176. if (root.children != null) {
  5177. const colorScale = sequential([0, root.children.length], (n) => hsl(360 * n, 0.3, 0.85));
  5178. root.children.forEach((c, id) => {
  5179. colorParentMap.set(c, colorScale(id).toString());
  5180. });
  5181. }
  5182. const colorMap = new Map();
  5183. const lightScale = linear().domain([0, root.height]).range([0.9, 0.3]);
  5184. const getBackgroundColor = (node) => {
  5185. const parents = node.ancestors();
  5186. const colorStr = parents.length === 1
  5187. ? colorParentMap.get(parents[0])
  5188. : colorParentMap.get(parents[parents.length - 2]);
  5189. const hslColor = hsl(colorStr);
  5190. hslColor.l = lightScale(node.depth);
  5191. return hslColor;
  5192. };
  5193. return (node) => {
  5194. if (!colorMap.has(node)) {
  5195. const backgroundColor = getBackgroundColor(node);
  5196. const l = relativeLuminance(backgroundColor.rgb());
  5197. const fontColor = l > 0.19 ? "#000" : "#fff";
  5198. colorMap.set(node, {
  5199. backgroundColor: backgroundColor.toString(),
  5200. fontColor,
  5201. });
  5202. }
  5203. return colorMap.get(node);
  5204. };
  5205. };
  5206. const StaticContext = B$2({});
  5207. const drawChart = (parentNode, data, width, height) => {
  5208. const availableSizeProperties = getAvailableSizeOptions(data.options);
  5209. console.time("layout create");
  5210. const layout = treemap()
  5211. .size([width, height])
  5212. .paddingOuter(PADDING)
  5213. .paddingTop(TOP_PADDING)
  5214. .paddingInner(PADDING)
  5215. .round(true)
  5216. .tile(treemapResquarify);
  5217. console.timeEnd("layout create");
  5218. console.time("rawHierarchy create");
  5219. const rawHierarchy = hierarchy(data.tree);
  5220. console.timeEnd("rawHierarchy create");
  5221. const nodeSizesCache = new Map();
  5222. const nodeIdsCache = new Map();
  5223. const getModuleSize = (node, sizeKey) => { var _a, _b; return (_b = (_a = nodeSizesCache.get(node)) === null || _a === void 0 ? void 0 : _a[sizeKey]) !== null && _b !== void 0 ? _b : 0; };
  5224. console.time("rawHierarchy eachAfter cache");
  5225. rawHierarchy.eachAfter((node) => {
  5226. var _a;
  5227. const nodeData = node.data;
  5228. nodeIdsCache.set(nodeData, {
  5229. nodeUid: generateUniqueId("node"),
  5230. clipUid: generateUniqueId("clip"),
  5231. });
  5232. const sizes = { renderedLength: 0, gzipLength: 0, brotliLength: 0 };
  5233. if (isModuleTree(nodeData)) {
  5234. for (const sizeKey of availableSizeProperties) {
  5235. sizes[sizeKey] = nodeData.children.reduce((acc, child) => getModuleSize(child, sizeKey) + acc, 0);
  5236. }
  5237. }
  5238. else {
  5239. for (const sizeKey of availableSizeProperties) {
  5240. sizes[sizeKey] = (_a = data.nodeParts[nodeData.uid][sizeKey]) !== null && _a !== void 0 ? _a : 0;
  5241. }
  5242. }
  5243. nodeSizesCache.set(nodeData, sizes);
  5244. });
  5245. console.timeEnd("rawHierarchy eachAfter cache");
  5246. const getModuleIds = (node) => nodeIdsCache.get(node);
  5247. console.time("color");
  5248. const getModuleColor = createRainbowColor(rawHierarchy);
  5249. console.timeEnd("color");
  5250. P(o$1(StaticContext.Provider, Object.assign({ value: {
  5251. data,
  5252. availableSizeProperties,
  5253. width,
  5254. height,
  5255. getModuleSize,
  5256. getModuleIds,
  5257. getModuleColor,
  5258. rawHierarchy,
  5259. layout,
  5260. } }, { children: o$1(Main, {}) })), parentNode);
  5261. };
  5262. exports.StaticContext = StaticContext;
  5263. exports.default = drawChart;
  5264. Object.defineProperty(exports, '__esModule', { value: true });
  5265. return exports;
  5266. })({});
  5267. /*-->*/
  5268. </script>
  5269. <script>
  5270. /*<!--*/
  5271. const data = {"version":2,"tree":{"name":"root","children":[{"name":"tres.umd.cjs","children":[{"name":"src","children":[{"name":"composables","children":[{"uid":"26e3-382","name":"useLogger.ts"},{"uid":"26e3-402","name":"useRenderer.ts"},{"uid":"26e3-404","name":"useRenderLoop.ts"},{"uid":"26e3-406","name":"useTres.ts"}]},{"name":"core","children":[{"name":"useCatalogue/index.ts","uid":"26e3-384"},{"name":"useRenderLoop/index.ts","uid":"26e3-388"},{"name":"useRenderer/index.ts","uid":"26e3-392"},{"name":"useScene/index.ts","uid":"26e3-394"},{"name":"useTres/index.ts","uid":"26e3-396"},{"name":"useRaycaster/index.ts","uid":"26e3-398"},{"name":"useCamera/index.ts","uid":"26e3-400"}]},{"name":"utils","children":[{"uid":"26e3-386","name":"normalize.ts"},{"uid":"26e3-390","name":"index.ts"}]},{"name":"components/TresCanvas.ts","uid":"26e3-408"},{"uid":"26e3-748","name":"index.ts"}]},{"name":".tres/components","children":[{"uid":"26e3-410","name":"AmbientLight.ts"},{"uid":"26e3-412","name":"AmbientLightProbe.ts"},{"uid":"26e3-414","name":"AnimationClip.ts"},{"uid":"26e3-416","name":"AnimationLoader.ts"},{"uid":"26e3-418","name":"AnimationMixer.ts"},{"uid":"26e3-420","name":"AnimationObjectGroup.ts"},{"uid":"26e3-422","name":"ArrayCamera.ts"},{"uid":"26e3-424","name":"ArrowHelper.ts"},{"uid":"26e3-426","name":"AxesHelper.ts"},{"uid":"26e3-428","name":"Bone.ts"},{"uid":"26e3-430","name":"BooleanKeyframeTrack.ts"},{"uid":"26e3-432","name":"Box2.ts"},{"uid":"26e3-434","name":"Box3.ts"},{"uid":"26e3-436","name":"Box3Helper.ts"},{"uid":"26e3-438","name":"BoxGeometry.ts"},{"uid":"26e3-440","name":"BoxHelper.ts"},{"uid":"26e3-442","name":"BufferAttribute.ts"},{"uid":"26e3-444","name":"Camera.ts"},{"uid":"26e3-446","name":"CameraHelper.ts"},{"uid":"26e3-448","name":"CanvasTexture.ts"},{"uid":"26e3-450","name":"CapsuleGeometry.ts"},{"uid":"26e3-452","name":"CircleGeometry.ts"},{"uid":"26e3-454","name":"Clock.ts"},{"uid":"26e3-456","name":"ColorKeyframeTrack.ts"},{"uid":"26e3-458","name":"CompressedArrayTexture.ts"},{"uid":"26e3-460","name":"CompressedTexture.ts"},{"uid":"26e3-462","name":"CompressedTextureLoader.ts"},{"uid":"26e3-464","name":"ConeGeometry.ts"},{"uid":"26e3-466","name":"CubeCamera.ts"},{"uid":"26e3-468","name":"CubeTexture.ts"},{"uid":"26e3-470","name":"CubeTextureLoader.ts"},{"uid":"26e3-472","name":"CubicInterpolant.ts"},{"uid":"26e3-474","name":"CylinderGeometry.ts"},{"uid":"26e3-476","name":"Cylindrical.ts"},{"uid":"26e3-478","name":"Data3DTexture.ts"},{"uid":"26e3-480","name":"DataArrayTexture.ts"},{"uid":"26e3-482","name":"DataTexture.ts"},{"uid":"26e3-484","name":"DataTextureLoader.ts"},{"uid":"26e3-486","name":"DepthTexture.ts"},{"uid":"26e3-488","name":"DirectionalLight.ts"},{"uid":"26e3-490","name":"DirectionalLightHelper.ts"},{"uid":"26e3-492","name":"DiscreteInterpolant.ts"},{"uid":"26e3-494","name":"DodecahedronGeometry.ts"},{"uid":"26e3-496","name":"EdgesGeometry.ts"},{"uid":"26e3-498","name":"Euler.ts"},{"uid":"26e3-500","name":"EventDispatcher.ts"},{"uid":"26e3-502","name":"ExtrudeGeometry.ts"},{"uid":"26e3-504","name":"FileLoader.ts"},{"uid":"26e3-506","name":"Float16BufferAttribute.ts"},{"uid":"26e3-508","name":"Float32BufferAttribute.ts"},{"uid":"26e3-510","name":"Float64BufferAttribute.ts"},{"uid":"26e3-512","name":"Fog.ts"},{"uid":"26e3-514","name":"FogExp2.ts"},{"uid":"26e3-516","name":"FramebufferTexture.ts"},{"uid":"26e3-518","name":"Frustum.ts"},{"uid":"26e3-520","name":"GLBufferAttribute.ts"},{"uid":"26e3-522","name":"GridHelper.ts"},{"uid":"26e3-524","name":"Group.ts"},{"uid":"26e3-526","name":"HemisphereLight.ts"},{"uid":"26e3-528","name":"HemisphereLightHelper.ts"},{"uid":"26e3-530","name":"HemisphereLightProbe.ts"},{"uid":"26e3-532","name":"IcosahedronGeometry.ts"},{"uid":"26e3-534","name":"ImageBitmapLoader.ts"},{"uid":"26e3-536","name":"ImageLoader.ts"},{"uid":"26e3-538","name":"InstancedBufferAttribute.ts"},{"uid":"26e3-540","name":"InstancedInterleavedBuffer.ts"},{"uid":"26e3-542","name":"InstancedMesh.ts"},{"uid":"26e3-544","name":"Int16BufferAttribute.ts"},{"uid":"26e3-546","name":"Int32BufferAttribute.ts"},{"uid":"26e3-548","name":"Int8BufferAttribute.ts"},{"uid":"26e3-550","name":"InterleavedBuffer.ts"},{"uid":"26e3-552","name":"InterleavedBufferAttribute.ts"},{"uid":"26e3-554","name":"Interpolant.ts"},{"uid":"26e3-556","name":"KeyframeTrack.ts"},{"uid":"26e3-558","name":"LOD.ts"},{"uid":"26e3-560","name":"LatheGeometry.ts"},{"uid":"26e3-562","name":"Layers.ts"},{"uid":"26e3-564","name":"Light.ts"},{"uid":"26e3-566","name":"LightProbe.ts"},{"uid":"26e3-568","name":"Line.ts"},{"uid":"26e3-570","name":"Line3.ts"},{"uid":"26e3-572","name":"LineBasicMaterial.ts"},{"uid":"26e3-574","name":"LineDashedMaterial.ts"},{"uid":"26e3-576","name":"LineLoop.ts"},{"uid":"26e3-578","name":"LineSegments.ts"},{"uid":"26e3-580","name":"LinearInterpolant.ts"},{"uid":"26e3-582","name":"Loader.ts"},{"uid":"26e3-584","name":"LoadingManager.ts"},{"uid":"26e3-586","name":"Material.ts"},{"uid":"26e3-588","name":"MaterialLoader.ts"},{"uid":"26e3-590","name":"Matrix3.ts"},{"uid":"26e3-592","name":"Matrix4.ts"},{"uid":"26e3-594","name":"Mesh.ts"},{"uid":"26e3-596","name":"MeshBasicMaterial.ts"},{"uid":"26e3-598","name":"MeshDepthMaterial.ts"},{"uid":"26e3-600","name":"MeshDistanceMaterial.ts"},{"uid":"26e3-602","name":"MeshLambertMaterial.ts"},{"uid":"26e3-604","name":"MeshMatcapMaterial.ts"},{"uid":"26e3-606","name":"MeshNormalMaterial.ts"},{"uid":"26e3-608","name":"MeshPhongMaterial.ts"},{"uid":"26e3-610","name":"MeshPhysicalMaterial.ts"},{"uid":"26e3-612","name":"MeshStandardMaterial.ts"},{"uid":"26e3-614","name":"MeshToonMaterial.ts"},{"uid":"26e3-616","name":"NumberKeyframeTrack.ts"},{"uid":"26e3-618","name":"ObjectLoader.ts"},{"uid":"26e3-620","name":"OctahedronGeometry.ts"},{"uid":"26e3-622","name":"OrthographicCamera.ts"},{"uid":"26e3-624","name":"PMREMGenerator.ts"},{"uid":"26e3-626","name":"Path.ts"},{"uid":"26e3-628","name":"PerspectiveCamera.ts"},{"uid":"26e3-630","name":"Plane.ts"},{"uid":"26e3-632","name":"PlaneGeometry.ts"},{"uid":"26e3-634","name":"PlaneHelper.ts"},{"uid":"26e3-636","name":"PointLight.ts"},{"uid":"26e3-638","name":"PointLightHelper.ts"},{"uid":"26e3-640","name":"Points.ts"},{"uid":"26e3-642","name":"PointsMaterial.ts"},{"uid":"26e3-644","name":"PolarGridHelper.ts"},{"uid":"26e3-646","name":"PolyhedronGeometry.ts"},{"uid":"26e3-648","name":"PropertyBinding.ts"},{"uid":"26e3-650","name":"PropertyMixer.ts"},{"uid":"26e3-652","name":"Quaternion.ts"},{"uid":"26e3-654","name":"QuaternionKeyframeTrack.ts"},{"uid":"26e3-656","name":"QuaternionLinearInterpolant.ts"},{"uid":"26e3-658","name":"RawShaderMaterial.ts"},{"uid":"26e3-660","name":"Ray.ts"},{"uid":"26e3-662","name":"Raycaster.ts"},{"uid":"26e3-664","name":"RectAreaLight.ts"},{"uid":"26e3-666","name":"RingGeometry.ts"},{"uid":"26e3-668","name":"ShaderMaterial.ts"},{"uid":"26e3-670","name":"ShadowMaterial.ts"},{"uid":"26e3-672","name":"Shape.ts"},{"uid":"26e3-674","name":"ShapeGeometry.ts"},{"uid":"26e3-676","name":"ShapePath.ts"},{"uid":"26e3-678","name":"Skeleton.ts"},{"uid":"26e3-680","name":"SkeletonHelper.ts"},{"uid":"26e3-682","name":"SkinnedMesh.ts"},{"uid":"26e3-684","name":"Source.ts"},{"uid":"26e3-686","name":"Sphere.ts"},{"uid":"26e3-688","name":"SphereGeometry.ts"},{"uid":"26e3-690","name":"Spherical.ts"},{"uid":"26e3-692","name":"SphericalHarmonics3.ts"},{"uid":"26e3-694","name":"SpotLight.ts"},{"uid":"26e3-696","name":"SpotLightHelper.ts"},{"uid":"26e3-698","name":"Sprite.ts"},{"uid":"26e3-700","name":"SpriteMaterial.ts"},{"uid":"26e3-702","name":"StereoCamera.ts"},{"uid":"26e3-704","name":"StringKeyframeTrack.ts"},{"uid":"26e3-706","name":"TetrahedronGeometry.ts"},{"uid":"26e3-708","name":"Texture.ts"},{"uid":"26e3-710","name":"TextureLoader.ts"},{"uid":"26e3-712","name":"TorusGeometry.ts"},{"uid":"26e3-714","name":"TorusKnotGeometry.ts"},{"uid":"26e3-716","name":"Triangle.ts"},{"uid":"26e3-718","name":"TubeGeometry.ts"},{"uid":"26e3-720","name":"Uint16BufferAttribute.ts"},{"uid":"26e3-722","name":"Uint32BufferAttribute.ts"},{"uid":"26e3-724","name":"Uint8BufferAttribute.ts"},{"uid":"26e3-726","name":"Uint8ClampedBufferAttribute.ts"},{"uid":"26e3-728","name":"Uniform.ts"},{"uid":"26e3-730","name":"UniformsGroup.ts"},{"uid":"26e3-732","name":"VideoTexture.ts"},{"uid":"26e3-734","name":"WebGL1Renderer.ts"},{"uid":"26e3-736","name":"WebGL3DRenderTarget.ts"},{"uid":"26e3-738","name":"WebGLArrayRenderTarget.ts"},{"uid":"26e3-740","name":"WebGLCubeRenderTarget.ts"},{"uid":"26e3-742","name":"WebGLMultipleRenderTargets.ts"},{"uid":"26e3-744","name":"WebGLRenderTarget.ts"},{"uid":"26e3-746","name":"WireframeGeometry.ts"}]}]}],"isRoot":true},"nodeParts":{"26e3-382":{"renderedLength":384,"gzipLength":213,"brotliLength":183,"metaUid":"26e3-381"},"26e3-384":{"renderedLength":134,"gzipLength":129,"brotliLength":99,"metaUid":"26e3-383"},"26e3-386":{"renderedLength":457,"gzipLength":209,"brotliLength":166,"metaUid":"26e3-385"},"26e3-388":{"renderedLength":642,"gzipLength":243,"brotliLength":208,"metaUid":"26e3-387"},"26e3-390":{"renderedLength":263,"gzipLength":160,"brotliLength":135,"metaUid":"26e3-389"},"26e3-392":{"renderedLength":37,"gzipLength":52,"brotliLength":41,"metaUid":"26e3-391"},"26e3-394":{"renderedLength":36,"gzipLength":56,"brotliLength":40,"metaUid":"26e3-393"},"26e3-396":{"renderedLength":422,"gzipLength":241,"brotliLength":205,"metaUid":"26e3-395"},"26e3-398":{"renderedLength":89,"gzipLength":81,"brotliLength":82,"metaUid":"26e3-397"},"26e3-400":{"renderedLength":1866,"gzipLength":599,"brotliLength":508,"metaUid":"26e3-399"},"26e3-402":{"renderedLength":4457,"gzipLength":1266,"brotliLength":1098,"metaUid":"26e3-401"},"26e3-404":{"renderedLength":755,"gzipLength":301,"brotliLength":272,"metaUid":"26e3-403"},"26e3-406":{"renderedLength":403,"gzipLength":233,"brotliLength":188,"metaUid":"26e3-405"},"26e3-408":{"renderedLength":2927,"gzipLength":958,"brotliLength":811,"metaUid":"26e3-407"},"26e3-410":{"renderedLength":2285,"gzipLength":762,"brotliLength":663,"metaUid":"26e3-409"},"26e3-412":{"renderedLength":2405,"gzipLength":769,"brotliLength":676,"metaUid":"26e3-411"},"26e3-414":{"renderedLength":2309,"gzipLength":762,"brotliLength":668,"metaUid":"26e3-413"},"26e3-416":{"renderedLength":2357,"gzipLength":767,"brotliLength":673,"metaUid":"26e3-415"},"26e3-418":{"renderedLength":2333,"gzipLength":766,"brotliLength":675,"metaUid":"26e3-417"},"26e3-420":{"renderedLength":2477,"gzipLength":768,"brotliLength":668,"metaUid":"26e3-419"},"26e3-422":{"renderedLength":2261,"gzipLength":757,"brotliLength":661,"metaUid":"26e3-421"},"26e3-424":{"renderedLength":2261,"gzipLength":763,"brotliLength":668,"metaUid":"26e3-423"},"26e3-426":{"renderedLength":2237,"gzipLength":761,"brotliLength":668,"metaUid":"26e3-425"},"26e3-428":{"renderedLength":2093,"gzipLength":749,"brotliLength":644,"metaUid":"26e3-427"},"26e3-430":{"renderedLength":2477,"gzipLength":773,"brotliLength":675,"metaUid":"26e3-429"},"26e3-432":{"renderedLength":2093,"gzipLength":751,"brotliLength":646,"metaUid":"26e3-431"},"26e3-434":{"renderedLength":2093,"gzipLength":751,"brotliLength":645,"metaUid":"26e3-433"},"26e3-436":{"renderedLength":2237,"gzipLength":762,"brotliLength":667,"metaUid":"26e3-435"},"26e3-438":{"renderedLength":2261,"gzipLength":762,"brotliLength":665,"metaUid":"26e3-437"},"26e3-440":{"renderedLength":2213,"gzipLength":759,"brotliLength":665,"metaUid":"26e3-439"},"26e3-442":{"renderedLength":2357,"gzipLength":768,"brotliLength":663,"metaUid":"26e3-441"},"26e3-444":{"renderedLength":2141,"gzipLength":747,"brotliLength":648,"metaUid":"26e3-443"},"26e3-446":{"renderedLength":2285,"gzipLength":758,"brotliLength":664,"metaUid":"26e3-445"},"26e3-448":{"renderedLength":2309,"gzipLength":763,"brotliLength":670,"metaUid":"26e3-447"},"26e3-450":{"renderedLength":2357,"gzipLength":767,"brotliLength":671,"metaUid":"26e3-449"},"26e3-452":{"renderedLength":2333,"gzipLength":766,"brotliLength":669,"metaUid":"26e3-451"},"26e3-454":{"renderedLength":2117,"gzipLength":751,"brotliLength":657,"metaUid":"26e3-453"},"26e3-456":{"renderedLength":2429,"gzipLength":768,"brotliLength":667,"metaUid":"26e3-455"},"26e3-458":{"renderedLength":2525,"gzipLength":772,"brotliLength":675,"metaUid":"26e3-457"},"26e3-460":{"renderedLength":2405,"gzipLength":766,"brotliLength":667,"metaUid":"26e3-459"},"26e3-462":{"renderedLength":2549,"gzipLength":772,"brotliLength":679,"metaUid":"26e3-461"},"26e3-464":{"renderedLength":2285,"gzipLength":761,"brotliLength":669,"metaUid":"26e3-463"},"26e3-466":{"renderedLength":2237,"gzipLength":756,"brotliLength":668,"metaUid":"26e3-465"},"26e3-468":{"renderedLength":2261,"gzipLength":760,"brotliLength":665,"metaUid":"26e3-467"},"26e3-470":{"renderedLength":2405,"gzipLength":769,"brotliLength":677,"metaUid":"26e3-469"},"26e3-472":{"renderedLength":2381,"gzipLength":768,"brotliLength":675,"metaUid":"26e3-471"},"26e3-474":{"renderedLength":2381,"gzipLength":768,"brotliLength":673,"metaUid":"26e3-473"},"26e3-476":{"renderedLength":2261,"gzipLength":761,"brotliLength":668,"metaUid":"26e3-475"},"26e3-478":{"renderedLength":2309,"gzipLength":766,"brotliLength":671,"metaUid":"26e3-477"},"26e3-480":{"renderedLength":2381,"gzipLength":768,"brotliLength":677,"metaUid":"26e3-479"},"26e3-482":{"renderedLength":2261,"gzipLength":761,"brotliLength":667,"metaUid":"26e3-481"},"26e3-484":{"renderedLength":2405,"gzipLength":771,"brotliLength":676,"metaUid":"26e3-483"},"26e3-486":{"renderedLength":2285,"gzipLength":762,"brotliLength":666,"metaUid":"26e3-485"},"26e3-488":{"renderedLength":2381,"gzipLength":765,"brotliLength":657,"metaUid":"26e3-487"},"26e3-490":{"renderedLength":2525,"gzipLength":773,"brotliLength":669,"metaUid":"26e3-489"},"26e3-492":{"renderedLength":2453,"gzipLength":771,"brotliLength":681,"metaUid":"26e3-491"},"26e3-494":{"renderedLength":2477,"gzipLength":773,"brotliLength":682,"metaUid":"26e3-493"},"26e3-496":{"renderedLength":2309,"gzipLength":766,"brotliLength":675,"metaUid":"26e3-495"},"26e3-498":{"renderedLength":2117,"gzipLength":752,"brotliLength":648,"metaUid":"26e3-497"},"26e3-500":{"renderedLength":2357,"gzipLength":767,"brotliLength":665,"metaUid":"26e3-499"},"26e3-502":{"renderedLength":2357,"gzipLength":768,"brotliLength":670,"metaUid":"26e3-501"},"26e3-504":{"renderedLength":2237,"gzipLength":761,"brotliLength":661,"metaUid":"26e3-503"},"26e3-506":{"renderedLength":2525,"gzipLength":778,"brotliLength":711,"metaUid":"26e3-505"},"26e3-508":{"renderedLength":2525,"gzipLength":777,"brotliLength":687,"metaUid":"26e3-507"},"26e3-510":{"renderedLength":2525,"gzipLength":778,"brotliLength":687,"metaUid":"26e3-509"},"26e3-512":{"renderedLength":2069,"gzipLength":749,"brotliLength":651,"metaUid":"26e3-511"},"26e3-514":{"renderedLength":2165,"gzipLength":758,"brotliLength":664,"metaUid":"26e3-513"},"26e3-516":{"renderedLength":2429,"gzipLength":770,"brotliLength":673,"metaUid":"26e3-515"},"26e3-518":{"renderedLength":2165,"gzipLength":757,"brotliLength":654,"metaUid":"26e3-517"},"26e3-520":{"renderedLength":2405,"gzipLength":771,"brotliLength":679,"metaUid":"26e3-519"},"26e3-522":{"renderedLength":2237,"gzipLength":762,"brotliLength":666,"metaUid":"26e3-521"},"26e3-524":{"renderedLength":2117,"gzipLength":751,"brotliLength":654,"metaUid":"26e3-523"},"26e3-526":{"renderedLength":2357,"gzipLength":769,"brotliLength":676,"metaUid":"26e3-525"},"26e3-528":{"renderedLength":2501,"gzipLength":777,"brotliLength":677,"metaUid":"26e3-527"},"26e3-530":{"renderedLength":2477,"gzipLength":773,"brotliLength":677,"metaUid":"26e3-529"},"26e3-532":{"renderedLength":2453,"gzipLength":773,"brotliLength":675,"metaUid":"26e3-531"},"26e3-534":{"renderedLength":2405,"gzipLength":771,"brotliLength":669,"metaUid":"26e3-533"},"26e3-536":{"renderedLength":2261,"gzipLength":762,"brotliLength":657,"metaUid":"26e3-535"},"26e3-538":{"renderedLength":2573,"gzipLength":774,"brotliLength":677,"metaUid":"26e3-537"},"26e3-540":{"renderedLength":2621,"gzipLength":780,"brotliLength":682,"metaUid":"26e3-539"},"26e3-542":{"renderedLength":2309,"gzipLength":762,"brotliLength":667,"metaUid":"26e3-541"},"26e3-544":{"renderedLength":2477,"gzipLength":775,"brotliLength":677,"metaUid":"26e3-543"},"26e3-546":{"renderedLength":2477,"gzipLength":775,"brotliLength":707,"metaUid":"26e3-545"},"26e3-548":{"renderedLength":2453,"gzipLength":774,"brotliLength":671,"metaUid":"26e3-547"},"26e3-550":{"renderedLength":2405,"gzipLength":771,"brotliLength":678,"metaUid":"26e3-549"},"26e3-552":{"renderedLength":2621,"gzipLength":783,"brotliLength":706,"metaUid":"26e3-551"},"26e3-554":{"renderedLength":2261,"gzipLength":760,"brotliLength":668,"metaUid":"26e3-553"},"26e3-556":{"renderedLength":2309,"gzipLength":764,"brotliLength":665,"metaUid":"26e3-555"},"26e3-558":{"renderedLength":2069,"gzipLength":749,"brotliLength":645,"metaUid":"26e3-557"},"26e3-560":{"renderedLength":2309,"gzipLength":765,"brotliLength":667,"metaUid":"26e3-559"},"26e3-562":{"renderedLength":2141,"gzipLength":753,"brotliLength":649,"metaUid":"26e3-561"},"26e3-564":{"renderedLength":2117,"gzipLength":751,"brotliLength":658,"metaUid":"26e3-563"},"26e3-566":{"renderedLength":2237,"gzipLength":759,"brotliLength":667,"metaUid":"26e3-565"},"26e3-568":{"renderedLength":2093,"gzipLength":748,"brotliLength":642,"metaUid":"26e3-567"},"26e3-570":{"renderedLength":2117,"gzipLength":751,"brotliLength":660,"metaUid":"26e3-569"},"26e3-572":{"renderedLength":2405,"gzipLength":771,"brotliLength":676,"metaUid":"26e3-571"},"26e3-574":{"renderedLength":2429,"gzipLength":772,"brotliLength":682,"metaUid":"26e3-573"},"26e3-576":{"renderedLength":2189,"gzipLength":756,"brotliLength":660,"metaUid":"26e3-575"},"26e3-578":{"renderedLength":2285,"gzipLength":762,"brotliLength":662,"metaUid":"26e3-577"},"26e3-580":{"renderedLength":2405,"gzipLength":769,"brotliLength":673,"metaUid":"26e3-579"},"26e3-582":{"renderedLength":2141,"gzipLength":753,"brotliLength":658,"metaUid":"26e3-581"},"26e3-584":{"renderedLength":2333,"gzipLength":768,"brotliLength":665,"metaUid":"26e3-583"},"26e3-586":{"renderedLength":2189,"gzipLength":758,"brotliLength":649,"metaUid":"26e3-585"},"26e3-588":{"renderedLength":2333,"gzipLength":767,"brotliLength":666,"metaUid":"26e3-587"},"26e3-590":{"renderedLength":2165,"gzipLength":757,"brotliLength":658,"metaUid":"26e3-589"},"26e3-592":{"renderedLength":2165,"gzipLength":757,"brotliLength":658,"metaUid":"26e3-591"},"26e3-594":{"renderedLength":2093,"gzipLength":751,"brotliLength":647,"metaUid":"26e3-593"},"26e3-596":{"renderedLength":2405,"gzipLength":771,"brotliLength":681,"metaUid":"26e3-595"},"26e3-598":{"renderedLength":2405,"gzipLength":771,"brotliLength":668,"metaUid":"26e3-597"},"26e3-600":{"renderedLength":2477,"gzipLength":773,"brotliLength":702,"metaUid":"26e3-599"},"26e3-602":{"renderedLength":2453,"gzipLength":774,"brotliLength":702,"metaUid":"26e3-601"},"26e3-604":{"renderedLength":2429,"gzipLength":772,"brotliLength":669,"metaUid":"26e3-603"},"26e3-606":{"renderedLength":2429,"gzipLength":772,"brotliLength":672,"metaUid":"26e3-605"},"26e3-608":{"renderedLength":2405,"gzipLength":771,"brotliLength":676,"metaUid":"26e3-607"},"26e3-610":{"renderedLength":2477,"gzipLength":775,"brotliLength":672,"metaUid":"26e3-609"},"26e3-612":{"renderedLength":2477,"gzipLength":774,"brotliLength":672,"metaUid":"26e3-611"},"26e3-614":{"renderedLength":2381,"gzipLength":770,"brotliLength":668,"metaUid":"26e3-613"},"26e3-616":{"renderedLength":2453,"gzipLength":773,"brotliLength":674,"metaUid":"26e3-615"},"26e3-618":{"renderedLength":2285,"gzipLength":759,"brotliLength":656,"metaUid":"26e3-617"},"26e3-620":{"renderedLength":2426,"gzipLength":771,"brotliLength":671,"metaUid":"26e3-619"},"26e3-622":{"renderedLength":2426,"gzipLength":767,"brotliLength":664,"metaUid":"26e3-621"},"26e3-624":{"renderedLength":2330,"gzipLength":767,"brotliLength":665,"metaUid":"26e3-623"},"26e3-626":{"renderedLength":2090,"gzipLength":750,"brotliLength":655,"metaUid":"26e3-625"},"26e3-628":{"renderedLength":2402,"gzipLength":763,"brotliLength":656,"metaUid":"26e3-627"},"26e3-630":{"renderedLength":2114,"gzipLength":749,"brotliLength":657,"metaUid":"26e3-629"},"26e3-632":{"renderedLength":2306,"gzipLength":764,"brotliLength":668,"metaUid":"26e3-631"},"26e3-634":{"renderedLength":2258,"gzipLength":760,"brotliLength":671,"metaUid":"26e3-633"},"26e3-636":{"renderedLength":2234,"gzipLength":761,"brotliLength":668,"metaUid":"26e3-635"},"26e3-638":{"renderedLength":2378,"gzipLength":768,"brotliLength":666,"metaUid":"26e3-637"},"26e3-640":{"renderedLength":2138,"gzipLength":752,"brotliLength":650,"metaUid":"26e3-639"},"26e3-642":{"renderedLength":2330,"gzipLength":766,"brotliLength":669,"metaUid":"26e3-641"},"26e3-644":{"renderedLength":2354,"gzipLength":767,"brotliLength":675,"metaUid":"26e3-643"},"26e3-646":{"renderedLength":2426,"gzipLength":770,"brotliLength":675,"metaUid":"26e3-645"},"26e3-648":{"renderedLength":2354,"gzipLength":764,"brotliLength":687,"metaUid":"26e3-647"},"26e3-650":{"renderedLength":2306,"gzipLength":759,"brotliLength":659,"metaUid":"26e3-649"},"26e3-652":{"renderedLength":2234,"gzipLength":760,"brotliLength":674,"metaUid":"26e3-651"},"26e3-654":{"renderedLength":2546,"gzipLength":774,"brotliLength":683,"metaUid":"26e3-653"},"26e3-656":{"renderedLength":2642,"gzipLength":781,"brotliLength":684,"metaUid":"26e3-655"},"26e3-658":{"renderedLength":2402,"gzipLength":770,"brotliLength":674,"metaUid":"26e3-657"},"26e3-660":{"renderedLength":2066,"gzipLength":747,"brotliLength":651,"metaUid":"26e3-659"},"26e3-662":{"renderedLength":2210,"gzipLength":757,"brotliLength":663,"metaUid":"26e3-661"},"26e3-664":{"renderedLength":2306,"gzipLength":765,"brotliLength":671,"metaUid":"26e3-663"},"26e3-666":{"renderedLength":2282,"gzipLength":762,"brotliLength":675,"metaUid":"26e3-665"},"26e3-668":{"renderedLength":2330,"gzipLength":766,"brotliLength":671,"metaUid":"26e3-667"},"26e3-670":{"renderedLength":2330,"gzipLength":767,"brotliLength":669,"metaUid":"26e3-669"},"26e3-672":{"renderedLength":2114,"gzipLength":750,"brotliLength":656,"metaUid":"26e3-671"},"26e3-674":{"renderedLength":2306,"gzipLength":764,"brotliLength":668,"metaUid":"26e3-673"},"26e3-676":{"renderedLength":2210,"gzipLength":757,"brotliLength":659,"metaUid":"26e3-675"},"26e3-678":{"renderedLength":2186,"gzipLength":756,"brotliLength":651,"metaUid":"26e3-677"},"26e3-680":{"renderedLength":2330,"gzipLength":766,"brotliLength":679,"metaUid":"26e3-679"},"26e3-682":{"renderedLength":2258,"gzipLength":761,"brotliLength":672,"metaUid":"26e3-681"},"26e3-684":{"renderedLength":2138,"gzipLength":751,"brotliLength":658,"metaUid":"26e3-683"},"26e3-686":{"renderedLength":2138,"gzipLength":751,"brotliLength":659,"metaUid":"26e3-685"},"26e3-688":{"renderedLength":2330,"gzipLength":765,"brotliLength":664,"metaUid":"26e3-687"},"26e3-690":{"renderedLength":2210,"gzipLength":757,"brotliLength":661,"metaUid":"26e3-689"},"26e3-692":{"renderedLength":2450,"gzipLength":772,"brotliLength":674,"metaUid":"26e3-691"},"26e3-694":{"renderedLength":2210,"gzipLength":758,"brotliLength":659,"metaUid":"26e3-693"},"26e3-696":{"renderedLength":2354,"gzipLength":767,"brotliLength":668,"metaUid":"26e3-695"},"26e3-698":{"renderedLength":2138,"gzipLength":751,"brotliLength":660,"metaUid":"26e3-697"},"26e3-700":{"renderedLength":2330,"gzipLength":766,"brotliLength":667,"metaUid":"26e3-699"},"26e3-702":{"renderedLength":2282,"gzipLength":756,"brotliLength":671,"metaUid":"26e3-701"},"26e3-704":{"renderedLength":2450,"gzipLength":771,"brotliLength":671,"metaUid":"26e3-703"},"26e3-706":{"renderedLength":2450,"gzipLength":771,"brotliLength":679,"metaUid":"26e3-705"},"26e3-708":{"renderedLength":2162,"gzipLength":753,"brotliLength":662,"metaUid":"26e3-707"},"26e3-710":{"renderedLength":2306,"gzipLength":764,"brotliLength":665,"metaUid":"26e3-709"},"26e3-712":{"renderedLength":2306,"gzipLength":764,"brotliLength":666,"metaUid":"26e3-711"},"26e3-714":{"renderedLength":2402,"gzipLength":769,"brotliLength":672,"metaUid":"26e3-713"},"26e3-716":{"renderedLength":2186,"gzipLength":755,"brotliLength":655,"metaUid":"26e3-715"},"26e3-718":{"renderedLength":2282,"gzipLength":762,"brotliLength":672,"metaUid":"26e3-717"},"26e3-720":{"renderedLength":2498,"gzipLength":776,"brotliLength":676,"metaUid":"26e3-719"},"26e3-722":{"renderedLength":2498,"gzipLength":775,"brotliLength":676,"metaUid":"26e3-721"},"26e3-724":{"renderedLength":2474,"gzipLength":774,"brotliLength":673,"metaUid":"26e3-723"},"26e3-726":{"renderedLength":2642,"gzipLength":784,"brotliLength":691,"metaUid":"26e3-725"},"26e3-728":{"renderedLength":2162,"gzipLength":755,"brotliLength":648,"metaUid":"26e3-727"},"26e3-730":{"renderedLength":2306,"gzipLength":764,"brotliLength":658,"metaUid":"26e3-729"},"26e3-732":{"renderedLength":2282,"gzipLength":761,"brotliLength":673,"metaUid":"26e3-731"},"26e3-734":{"renderedLength":2330,"gzipLength":768,"brotliLength":671,"metaUid":"26e3-733"},"26e3-736":{"renderedLength":2450,"gzipLength":773,"brotliLength":674,"metaUid":"26e3-735"},"26e3-738":{"renderedLength":2522,"gzipLength":776,"brotliLength":677,"metaUid":"26e3-737"},"26e3-740":{"renderedLength":2498,"gzipLength":775,"brotliLength":675,"metaUid":"26e3-739"},"26e3-742":{"renderedLength":2618,"gzipLength":783,"brotliLength":690,"metaUid":"26e3-741"},"26e3-744":{"renderedLength":2402,"gzipLength":770,"brotliLength":676,"metaUid":"26e3-743"},"26e3-746":{"renderedLength":2396,"gzipLength":764,"brotliLength":670,"metaUid":"26e3-745"},"26e3-748":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"26e3-747"}},"nodeMetas":{"26e3-381":{"id":"/src/composables/useLogger.ts","moduleParts":{"tres.umd.cjs":"26e3-382"},"imported":[],"importedBy":[{"uid":"26e3-407"},{"uid":"26e3-401"},{"uid":"26e3-383"},{"uid":"26e3-757"},{"uid":"26e3-391"},{"uid":"26e3-758"}]},"26e3-383":{"id":"/src/core/useCatalogue/index.ts","moduleParts":{"tres.umd.cjs":"26e3-384"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-381"}],"importedBy":[{"uid":"26e3-756"}]},"26e3-385":{"id":"/src/utils/normalize.ts","moduleParts":{"tres.umd.cjs":"26e3-386"},"imported":[{"uid":"26e3-753"}],"importedBy":[{"uid":"26e3-401"},{"uid":"26e3-409"},{"uid":"26e3-411"},{"uid":"26e3-413"},{"uid":"26e3-415"},{"uid":"26e3-417"},{"uid":"26e3-419"},{"uid":"26e3-421"},{"uid":"26e3-423"},{"uid":"26e3-425"},{"uid":"26e3-427"},{"uid":"26e3-429"},{"uid":"26e3-431"},{"uid":"26e3-433"},{"uid":"26e3-435"},{"uid":"26e3-437"},{"uid":"26e3-439"},{"uid":"26e3-441"},{"uid":"26e3-443"},{"uid":"26e3-445"},{"uid":"26e3-447"},{"uid":"26e3-449"},{"uid":"26e3-451"},{"uid":"26e3-453"},{"uid":"26e3-455"},{"uid":"26e3-457"},{"uid":"26e3-459"},{"uid":"26e3-461"},{"uid":"26e3-463"},{"uid":"26e3-465"},{"uid":"26e3-467"},{"uid":"26e3-469"},{"uid":"26e3-471"},{"uid":"26e3-473"},{"uid":"26e3-475"},{"uid":"26e3-477"},{"uid":"26e3-479"},{"uid":"26e3-481"},{"uid":"26e3-483"},{"uid":"26e3-485"},{"uid":"26e3-487"},{"uid":"26e3-489"},{"uid":"26e3-491"},{"uid":"26e3-493"},{"uid":"26e3-495"},{"uid":"26e3-497"},{"uid":"26e3-499"},{"uid":"26e3-501"},{"uid":"26e3-503"},{"uid":"26e3-505"},{"uid":"26e3-507"},{"uid":"26e3-509"},{"uid":"26e3-511"},{"uid":"26e3-513"},{"uid":"26e3-515"},{"uid":"26e3-517"},{"uid":"26e3-519"},{"uid":"26e3-521"},{"uid":"26e3-523"},{"uid":"26e3-525"},{"uid":"26e3-527"},{"uid":"26e3-529"},{"uid":"26e3-531"},{"uid":"26e3-533"},{"uid":"26e3-535"},{"uid":"26e3-537"},{"uid":"26e3-539"},{"uid":"26e3-541"},{"uid":"26e3-543"},{"uid":"26e3-545"},{"uid":"26e3-547"},{"uid":"26e3-549"},{"uid":"26e3-551"},{"uid":"26e3-553"},{"uid":"26e3-555"},{"uid":"26e3-557"},{"uid":"26e3-559"},{"uid":"26e3-561"},{"uid":"26e3-563"},{"uid":"26e3-565"},{"uid":"26e3-567"},{"uid":"26e3-569"},{"uid":"26e3-571"},{"uid":"26e3-573"},{"uid":"26e3-575"},{"uid":"26e3-577"},{"uid":"26e3-579"},{"uid":"26e3-581"},{"uid":"26e3-583"},{"uid":"26e3-585"},{"uid":"26e3-587"},{"uid":"26e3-589"},{"uid":"26e3-591"},{"uid":"26e3-593"},{"uid":"26e3-595"},{"uid":"26e3-597"},{"uid":"26e3-599"},{"uid":"26e3-601"},{"uid":"26e3-603"},{"uid":"26e3-605"},{"uid":"26e3-607"},{"uid":"26e3-609"},{"uid":"26e3-611"},{"uid":"26e3-613"},{"uid":"26e3-615"},{"uid":"26e3-617"},{"uid":"26e3-619"},{"uid":"26e3-621"},{"uid":"26e3-623"},{"uid":"26e3-625"},{"uid":"26e3-627"},{"uid":"26e3-629"},{"uid":"26e3-631"},{"uid":"26e3-633"},{"uid":"26e3-635"},{"uid":"26e3-637"},{"uid":"26e3-639"},{"uid":"26e3-641"},{"uid":"26e3-643"},{"uid":"26e3-645"},{"uid":"26e3-647"},{"uid":"26e3-649"},{"uid":"26e3-651"},{"uid":"26e3-653"},{"uid":"26e3-655"},{"uid":"26e3-657"},{"uid":"26e3-659"},{"uid":"26e3-661"},{"uid":"26e3-663"},{"uid":"26e3-665"},{"uid":"26e3-667"},{"uid":"26e3-669"},{"uid":"26e3-671"},{"uid":"26e3-673"},{"uid":"26e3-675"},{"uid":"26e3-677"},{"uid":"26e3-679"},{"uid":"26e3-681"},{"uid":"26e3-683"},{"uid":"26e3-685"},{"uid":"26e3-687"},{"uid":"26e3-689"},{"uid":"26e3-691"},{"uid":"26e3-693"},{"uid":"26e3-695"},{"uid":"26e3-697"},{"uid":"26e3-699"},{"uid":"26e3-701"},{"uid":"26e3-703"},{"uid":"26e3-705"},{"uid":"26e3-707"},{"uid":"26e3-709"},{"uid":"26e3-711"},{"uid":"26e3-713"},{"uid":"26e3-715"},{"uid":"26e3-717"},{"uid":"26e3-719"},{"uid":"26e3-721"},{"uid":"26e3-723"},{"uid":"26e3-725"},{"uid":"26e3-727"},{"uid":"26e3-729"},{"uid":"26e3-731"},{"uid":"26e3-733"},{"uid":"26e3-735"},{"uid":"26e3-737"},{"uid":"26e3-739"},{"uid":"26e3-741"},{"uid":"26e3-743"},{"uid":"26e3-745"},{"uid":"26e3-757"},{"uid":"26e3-391"}]},"26e3-387":{"id":"/src/core/useRenderLoop/index.ts","moduleParts":{"tres.umd.cjs":"26e3-388"},"imported":[{"uid":"26e3-755"},{"uid":"26e3-753"}],"importedBy":[{"uid":"26e3-756"}]},"26e3-389":{"id":"/src/utils/index.ts","moduleParts":{"tres.umd.cjs":"26e3-390"},"imported":[],"importedBy":[{"uid":"26e3-401"},{"uid":"26e3-391"}]},"26e3-391":{"id":"/src/core/useRenderer/index.ts","moduleParts":{"tres.umd.cjs":"26e3-392"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-755"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"},{"uid":"26e3-761"},{"uid":"26e3-389"},{"uid":"26e3-381"}],"importedBy":[{"uid":"26e3-756"}]},"26e3-393":{"id":"/src/core/useScene/index.ts","moduleParts":{"tres.umd.cjs":"26e3-394"},"imported":[{"uid":"26e3-753"},{"uid":"26e3-754"}],"importedBy":[{"uid":"26e3-756"}]},"26e3-395":{"id":"/src/core/useTres/index.ts","moduleParts":{"tres.umd.cjs":"26e3-396"},"imported":[{"uid":"26e3-754"}],"importedBy":[{"uid":"26e3-756"}]},"26e3-397":{"id":"/src/core/useRaycaster/index.ts","moduleParts":{"tres.umd.cjs":"26e3-398"},"imported":[{"uid":"26e3-753"},{"uid":"26e3-754"},{"uid":"26e3-756"}],"importedBy":[{"uid":"26e3-756"}]},"26e3-399":{"id":"/src/core/useCamera/index.ts","moduleParts":{"tres.umd.cjs":"26e3-400"},"imported":[{"uid":"26e3-756"},{"uid":"26e3-753"},{"uid":"26e3-754"}],"importedBy":[{"uid":"26e3-407"},{"uid":"26e3-756"}]},"26e3-401":{"id":"/src/composables/useRenderer.ts","moduleParts":{"tres.umd.cjs":"26e3-402"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-755"},{"uid":"26e3-753"},{"uid":"26e3-385"},{"uid":"26e3-389"},{"uid":"26e3-750"},{"uid":"26e3-381"}],"importedBy":[{"uid":"26e3-750"}]},"26e3-403":{"id":"/src/composables/useRenderLoop.ts","moduleParts":{"tres.umd.cjs":"26e3-404"},"imported":[{"uid":"26e3-755"},{"uid":"26e3-753"}],"importedBy":[{"uid":"26e3-750"}]},"26e3-405":{"id":"/src/composables/useTres.ts","moduleParts":{"tres.umd.cjs":"26e3-406"},"imported":[{"uid":"26e3-754"}],"importedBy":[{"uid":"26e3-750"}]},"26e3-407":{"id":"/src/components/TresCanvas.ts","moduleParts":{"tres.umd.cjs":"26e3-408"},"imported":[{"uid":"26e3-753"},{"uid":"26e3-754"},{"uid":"26e3-399"},{"uid":"26e3-750"},{"uid":"26e3-381"}],"importedBy":[{"uid":"26e3-749"}]},"26e3-409":{"id":"/.tres/components/AmbientLight.ts","moduleParts":{"tres.umd.cjs":"26e3-410"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-411":{"id":"/.tres/components/AmbientLightProbe.ts","moduleParts":{"tres.umd.cjs":"26e3-412"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-413":{"id":"/.tres/components/AnimationClip.ts","moduleParts":{"tres.umd.cjs":"26e3-414"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-415":{"id":"/.tres/components/AnimationLoader.ts","moduleParts":{"tres.umd.cjs":"26e3-416"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-417":{"id":"/.tres/components/AnimationMixer.ts","moduleParts":{"tres.umd.cjs":"26e3-418"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-419":{"id":"/.tres/components/AnimationObjectGroup.ts","moduleParts":{"tres.umd.cjs":"26e3-420"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-421":{"id":"/.tres/components/ArrayCamera.ts","moduleParts":{"tres.umd.cjs":"26e3-422"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-423":{"id":"/.tres/components/ArrowHelper.ts","moduleParts":{"tres.umd.cjs":"26e3-424"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-425":{"id":"/.tres/components/AxesHelper.ts","moduleParts":{"tres.umd.cjs":"26e3-426"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-427":{"id":"/.tres/components/Bone.ts","moduleParts":{"tres.umd.cjs":"26e3-428"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-429":{"id":"/.tres/components/BooleanKeyframeTrack.ts","moduleParts":{"tres.umd.cjs":"26e3-430"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-431":{"id":"/.tres/components/Box2.ts","moduleParts":{"tres.umd.cjs":"26e3-432"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-433":{"id":"/.tres/components/Box3.ts","moduleParts":{"tres.umd.cjs":"26e3-434"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-435":{"id":"/.tres/components/Box3Helper.ts","moduleParts":{"tres.umd.cjs":"26e3-436"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-437":{"id":"/.tres/components/BoxGeometry.ts","moduleParts":{"tres.umd.cjs":"26e3-438"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-439":{"id":"/.tres/components/BoxHelper.ts","moduleParts":{"tres.umd.cjs":"26e3-440"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-441":{"id":"/.tres/components/BufferAttribute.ts","moduleParts":{"tres.umd.cjs":"26e3-442"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-443":{"id":"/.tres/components/Camera.ts","moduleParts":{"tres.umd.cjs":"26e3-444"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-445":{"id":"/.tres/components/CameraHelper.ts","moduleParts":{"tres.umd.cjs":"26e3-446"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-447":{"id":"/.tres/components/CanvasTexture.ts","moduleParts":{"tres.umd.cjs":"26e3-448"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-449":{"id":"/.tres/components/CapsuleGeometry.ts","moduleParts":{"tres.umd.cjs":"26e3-450"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-451":{"id":"/.tres/components/CircleGeometry.ts","moduleParts":{"tres.umd.cjs":"26e3-452"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-453":{"id":"/.tres/components/Clock.ts","moduleParts":{"tres.umd.cjs":"26e3-454"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-455":{"id":"/.tres/components/ColorKeyframeTrack.ts","moduleParts":{"tres.umd.cjs":"26e3-456"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-457":{"id":"/.tres/components/CompressedArrayTexture.ts","moduleParts":{"tres.umd.cjs":"26e3-458"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-459":{"id":"/.tres/components/CompressedTexture.ts","moduleParts":{"tres.umd.cjs":"26e3-460"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-461":{"id":"/.tres/components/CompressedTextureLoader.ts","moduleParts":{"tres.umd.cjs":"26e3-462"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-463":{"id":"/.tres/components/ConeGeometry.ts","moduleParts":{"tres.umd.cjs":"26e3-464"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-465":{"id":"/.tres/components/CubeCamera.ts","moduleParts":{"tres.umd.cjs":"26e3-466"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-467":{"id":"/.tres/components/CubeTexture.ts","moduleParts":{"tres.umd.cjs":"26e3-468"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-469":{"id":"/.tres/components/CubeTextureLoader.ts","moduleParts":{"tres.umd.cjs":"26e3-470"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-471":{"id":"/.tres/components/CubicInterpolant.ts","moduleParts":{"tres.umd.cjs":"26e3-472"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-473":{"id":"/.tres/components/CylinderGeometry.ts","moduleParts":{"tres.umd.cjs":"26e3-474"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-475":{"id":"/.tres/components/Cylindrical.ts","moduleParts":{"tres.umd.cjs":"26e3-476"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-477":{"id":"/.tres/components/Data3DTexture.ts","moduleParts":{"tres.umd.cjs":"26e3-478"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-479":{"id":"/.tres/components/DataArrayTexture.ts","moduleParts":{"tres.umd.cjs":"26e3-480"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-481":{"id":"/.tres/components/DataTexture.ts","moduleParts":{"tres.umd.cjs":"26e3-482"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-483":{"id":"/.tres/components/DataTextureLoader.ts","moduleParts":{"tres.umd.cjs":"26e3-484"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-485":{"id":"/.tres/components/DepthTexture.ts","moduleParts":{"tres.umd.cjs":"26e3-486"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-487":{"id":"/.tres/components/DirectionalLight.ts","moduleParts":{"tres.umd.cjs":"26e3-488"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-489":{"id":"/.tres/components/DirectionalLightHelper.ts","moduleParts":{"tres.umd.cjs":"26e3-490"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-491":{"id":"/.tres/components/DiscreteInterpolant.ts","moduleParts":{"tres.umd.cjs":"26e3-492"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-493":{"id":"/.tres/components/DodecahedronGeometry.ts","moduleParts":{"tres.umd.cjs":"26e3-494"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-495":{"id":"/.tres/components/EdgesGeometry.ts","moduleParts":{"tres.umd.cjs":"26e3-496"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-497":{"id":"/.tres/components/Euler.ts","moduleParts":{"tres.umd.cjs":"26e3-498"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-499":{"id":"/.tres/components/EventDispatcher.ts","moduleParts":{"tres.umd.cjs":"26e3-500"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-501":{"id":"/.tres/components/ExtrudeGeometry.ts","moduleParts":{"tres.umd.cjs":"26e3-502"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-503":{"id":"/.tres/components/FileLoader.ts","moduleParts":{"tres.umd.cjs":"26e3-504"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-505":{"id":"/.tres/components/Float16BufferAttribute.ts","moduleParts":{"tres.umd.cjs":"26e3-506"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-507":{"id":"/.tres/components/Float32BufferAttribute.ts","moduleParts":{"tres.umd.cjs":"26e3-508"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-509":{"id":"/.tres/components/Float64BufferAttribute.ts","moduleParts":{"tres.umd.cjs":"26e3-510"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-511":{"id":"/.tres/components/Fog.ts","moduleParts":{"tres.umd.cjs":"26e3-512"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-513":{"id":"/.tres/components/FogExp2.ts","moduleParts":{"tres.umd.cjs":"26e3-514"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-515":{"id":"/.tres/components/FramebufferTexture.ts","moduleParts":{"tres.umd.cjs":"26e3-516"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-517":{"id":"/.tres/components/Frustum.ts","moduleParts":{"tres.umd.cjs":"26e3-518"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-519":{"id":"/.tres/components/GLBufferAttribute.ts","moduleParts":{"tres.umd.cjs":"26e3-520"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-521":{"id":"/.tres/components/GridHelper.ts","moduleParts":{"tres.umd.cjs":"26e3-522"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-523":{"id":"/.tres/components/Group.ts","moduleParts":{"tres.umd.cjs":"26e3-524"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-525":{"id":"/.tres/components/HemisphereLight.ts","moduleParts":{"tres.umd.cjs":"26e3-526"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-527":{"id":"/.tres/components/HemisphereLightHelper.ts","moduleParts":{"tres.umd.cjs":"26e3-528"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-529":{"id":"/.tres/components/HemisphereLightProbe.ts","moduleParts":{"tres.umd.cjs":"26e3-530"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-531":{"id":"/.tres/components/IcosahedronGeometry.ts","moduleParts":{"tres.umd.cjs":"26e3-532"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-533":{"id":"/.tres/components/ImageBitmapLoader.ts","moduleParts":{"tres.umd.cjs":"26e3-534"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-535":{"id":"/.tres/components/ImageLoader.ts","moduleParts":{"tres.umd.cjs":"26e3-536"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-537":{"id":"/.tres/components/InstancedBufferAttribute.ts","moduleParts":{"tres.umd.cjs":"26e3-538"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-539":{"id":"/.tres/components/InstancedInterleavedBuffer.ts","moduleParts":{"tres.umd.cjs":"26e3-540"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-541":{"id":"/.tres/components/InstancedMesh.ts","moduleParts":{"tres.umd.cjs":"26e3-542"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-543":{"id":"/.tres/components/Int16BufferAttribute.ts","moduleParts":{"tres.umd.cjs":"26e3-544"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-545":{"id":"/.tres/components/Int32BufferAttribute.ts","moduleParts":{"tres.umd.cjs":"26e3-546"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-547":{"id":"/.tres/components/Int8BufferAttribute.ts","moduleParts":{"tres.umd.cjs":"26e3-548"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-549":{"id":"/.tres/components/InterleavedBuffer.ts","moduleParts":{"tres.umd.cjs":"26e3-550"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-551":{"id":"/.tres/components/InterleavedBufferAttribute.ts","moduleParts":{"tres.umd.cjs":"26e3-552"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-553":{"id":"/.tres/components/Interpolant.ts","moduleParts":{"tres.umd.cjs":"26e3-554"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-555":{"id":"/.tres/components/KeyframeTrack.ts","moduleParts":{"tres.umd.cjs":"26e3-556"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-557":{"id":"/.tres/components/LOD.ts","moduleParts":{"tres.umd.cjs":"26e3-558"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-559":{"id":"/.tres/components/LatheGeometry.ts","moduleParts":{"tres.umd.cjs":"26e3-560"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-561":{"id":"/.tres/components/Layers.ts","moduleParts":{"tres.umd.cjs":"26e3-562"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-563":{"id":"/.tres/components/Light.ts","moduleParts":{"tres.umd.cjs":"26e3-564"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-565":{"id":"/.tres/components/LightProbe.ts","moduleParts":{"tres.umd.cjs":"26e3-566"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-567":{"id":"/.tres/components/Line.ts","moduleParts":{"tres.umd.cjs":"26e3-568"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-569":{"id":"/.tres/components/Line3.ts","moduleParts":{"tres.umd.cjs":"26e3-570"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-571":{"id":"/.tres/components/LineBasicMaterial.ts","moduleParts":{"tres.umd.cjs":"26e3-572"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-573":{"id":"/.tres/components/LineDashedMaterial.ts","moduleParts":{"tres.umd.cjs":"26e3-574"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-575":{"id":"/.tres/components/LineLoop.ts","moduleParts":{"tres.umd.cjs":"26e3-576"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-577":{"id":"/.tres/components/LineSegments.ts","moduleParts":{"tres.umd.cjs":"26e3-578"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-579":{"id":"/.tres/components/LinearInterpolant.ts","moduleParts":{"tres.umd.cjs":"26e3-580"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-581":{"id":"/.tres/components/Loader.ts","moduleParts":{"tres.umd.cjs":"26e3-582"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-583":{"id":"/.tres/components/LoadingManager.ts","moduleParts":{"tres.umd.cjs":"26e3-584"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-585":{"id":"/.tres/components/Material.ts","moduleParts":{"tres.umd.cjs":"26e3-586"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-587":{"id":"/.tres/components/MaterialLoader.ts","moduleParts":{"tres.umd.cjs":"26e3-588"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-589":{"id":"/.tres/components/Matrix3.ts","moduleParts":{"tres.umd.cjs":"26e3-590"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-591":{"id":"/.tres/components/Matrix4.ts","moduleParts":{"tres.umd.cjs":"26e3-592"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-593":{"id":"/.tres/components/Mesh.ts","moduleParts":{"tres.umd.cjs":"26e3-594"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-595":{"id":"/.tres/components/MeshBasicMaterial.ts","moduleParts":{"tres.umd.cjs":"26e3-596"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-597":{"id":"/.tres/components/MeshDepthMaterial.ts","moduleParts":{"tres.umd.cjs":"26e3-598"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-599":{"id":"/.tres/components/MeshDistanceMaterial.ts","moduleParts":{"tres.umd.cjs":"26e3-600"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-601":{"id":"/.tres/components/MeshLambertMaterial.ts","moduleParts":{"tres.umd.cjs":"26e3-602"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-603":{"id":"/.tres/components/MeshMatcapMaterial.ts","moduleParts":{"tres.umd.cjs":"26e3-604"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-605":{"id":"/.tres/components/MeshNormalMaterial.ts","moduleParts":{"tres.umd.cjs":"26e3-606"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-607":{"id":"/.tres/components/MeshPhongMaterial.ts","moduleParts":{"tres.umd.cjs":"26e3-608"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-609":{"id":"/.tres/components/MeshPhysicalMaterial.ts","moduleParts":{"tres.umd.cjs":"26e3-610"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-611":{"id":"/.tres/components/MeshStandardMaterial.ts","moduleParts":{"tres.umd.cjs":"26e3-612"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-613":{"id":"/.tres/components/MeshToonMaterial.ts","moduleParts":{"tres.umd.cjs":"26e3-614"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-615":{"id":"/.tres/components/NumberKeyframeTrack.ts","moduleParts":{"tres.umd.cjs":"26e3-616"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-617":{"id":"/.tres/components/ObjectLoader.ts","moduleParts":{"tres.umd.cjs":"26e3-618"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-619":{"id":"/.tres/components/OctahedronGeometry.ts","moduleParts":{"tres.umd.cjs":"26e3-620"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-621":{"id":"/.tres/components/OrthographicCamera.ts","moduleParts":{"tres.umd.cjs":"26e3-622"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-623":{"id":"/.tres/components/PMREMGenerator.ts","moduleParts":{"tres.umd.cjs":"26e3-624"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-625":{"id":"/.tres/components/Path.ts","moduleParts":{"tres.umd.cjs":"26e3-626"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-627":{"id":"/.tres/components/PerspectiveCamera.ts","moduleParts":{"tres.umd.cjs":"26e3-628"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-629":{"id":"/.tres/components/Plane.ts","moduleParts":{"tres.umd.cjs":"26e3-630"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-631":{"id":"/.tres/components/PlaneGeometry.ts","moduleParts":{"tres.umd.cjs":"26e3-632"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-633":{"id":"/.tres/components/PlaneHelper.ts","moduleParts":{"tres.umd.cjs":"26e3-634"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-635":{"id":"/.tres/components/PointLight.ts","moduleParts":{"tres.umd.cjs":"26e3-636"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-637":{"id":"/.tres/components/PointLightHelper.ts","moduleParts":{"tres.umd.cjs":"26e3-638"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-639":{"id":"/.tres/components/Points.ts","moduleParts":{"tres.umd.cjs":"26e3-640"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-641":{"id":"/.tres/components/PointsMaterial.ts","moduleParts":{"tres.umd.cjs":"26e3-642"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-643":{"id":"/.tres/components/PolarGridHelper.ts","moduleParts":{"tres.umd.cjs":"26e3-644"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-645":{"id":"/.tres/components/PolyhedronGeometry.ts","moduleParts":{"tres.umd.cjs":"26e3-646"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-647":{"id":"/.tres/components/PropertyBinding.ts","moduleParts":{"tres.umd.cjs":"26e3-648"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-649":{"id":"/.tres/components/PropertyMixer.ts","moduleParts":{"tres.umd.cjs":"26e3-650"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-651":{"id":"/.tres/components/Quaternion.ts","moduleParts":{"tres.umd.cjs":"26e3-652"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-653":{"id":"/.tres/components/QuaternionKeyframeTrack.ts","moduleParts":{"tres.umd.cjs":"26e3-654"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-655":{"id":"/.tres/components/QuaternionLinearInterpolant.ts","moduleParts":{"tres.umd.cjs":"26e3-656"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-657":{"id":"/.tres/components/RawShaderMaterial.ts","moduleParts":{"tres.umd.cjs":"26e3-658"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-659":{"id":"/.tres/components/Ray.ts","moduleParts":{"tres.umd.cjs":"26e3-660"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-661":{"id":"/.tres/components/Raycaster.ts","moduleParts":{"tres.umd.cjs":"26e3-662"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-663":{"id":"/.tres/components/RectAreaLight.ts","moduleParts":{"tres.umd.cjs":"26e3-664"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-665":{"id":"/.tres/components/RingGeometry.ts","moduleParts":{"tres.umd.cjs":"26e3-666"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-667":{"id":"/.tres/components/ShaderMaterial.ts","moduleParts":{"tres.umd.cjs":"26e3-668"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-669":{"id":"/.tres/components/ShadowMaterial.ts","moduleParts":{"tres.umd.cjs":"26e3-670"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-671":{"id":"/.tres/components/Shape.ts","moduleParts":{"tres.umd.cjs":"26e3-672"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-673":{"id":"/.tres/components/ShapeGeometry.ts","moduleParts":{"tres.umd.cjs":"26e3-674"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-675":{"id":"/.tres/components/ShapePath.ts","moduleParts":{"tres.umd.cjs":"26e3-676"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-677":{"id":"/.tres/components/Skeleton.ts","moduleParts":{"tres.umd.cjs":"26e3-678"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-679":{"id":"/.tres/components/SkeletonHelper.ts","moduleParts":{"tres.umd.cjs":"26e3-680"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-681":{"id":"/.tres/components/SkinnedMesh.ts","moduleParts":{"tres.umd.cjs":"26e3-682"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-683":{"id":"/.tres/components/Source.ts","moduleParts":{"tres.umd.cjs":"26e3-684"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-685":{"id":"/.tres/components/Sphere.ts","moduleParts":{"tres.umd.cjs":"26e3-686"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-687":{"id":"/.tres/components/SphereGeometry.ts","moduleParts":{"tres.umd.cjs":"26e3-688"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-689":{"id":"/.tres/components/Spherical.ts","moduleParts":{"tres.umd.cjs":"26e3-690"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-691":{"id":"/.tres/components/SphericalHarmonics3.ts","moduleParts":{"tres.umd.cjs":"26e3-692"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-693":{"id":"/.tres/components/SpotLight.ts","moduleParts":{"tres.umd.cjs":"26e3-694"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-695":{"id":"/.tres/components/SpotLightHelper.ts","moduleParts":{"tres.umd.cjs":"26e3-696"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-697":{"id":"/.tres/components/Sprite.ts","moduleParts":{"tres.umd.cjs":"26e3-698"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-699":{"id":"/.tres/components/SpriteMaterial.ts","moduleParts":{"tres.umd.cjs":"26e3-700"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-701":{"id":"/.tres/components/StereoCamera.ts","moduleParts":{"tres.umd.cjs":"26e3-702"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-703":{"id":"/.tres/components/StringKeyframeTrack.ts","moduleParts":{"tres.umd.cjs":"26e3-704"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-705":{"id":"/.tres/components/TetrahedronGeometry.ts","moduleParts":{"tres.umd.cjs":"26e3-706"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-707":{"id":"/.tres/components/Texture.ts","moduleParts":{"tres.umd.cjs":"26e3-708"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-709":{"id":"/.tres/components/TextureLoader.ts","moduleParts":{"tres.umd.cjs":"26e3-710"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-711":{"id":"/.tres/components/TorusGeometry.ts","moduleParts":{"tres.umd.cjs":"26e3-712"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-713":{"id":"/.tres/components/TorusKnotGeometry.ts","moduleParts":{"tres.umd.cjs":"26e3-714"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-715":{"id":"/.tres/components/Triangle.ts","moduleParts":{"tres.umd.cjs":"26e3-716"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-717":{"id":"/.tres/components/TubeGeometry.ts","moduleParts":{"tres.umd.cjs":"26e3-718"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-719":{"id":"/.tres/components/Uint16BufferAttribute.ts","moduleParts":{"tres.umd.cjs":"26e3-720"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-721":{"id":"/.tres/components/Uint32BufferAttribute.ts","moduleParts":{"tres.umd.cjs":"26e3-722"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-723":{"id":"/.tres/components/Uint8BufferAttribute.ts","moduleParts":{"tres.umd.cjs":"26e3-724"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-725":{"id":"/.tres/components/Uint8ClampedBufferAttribute.ts","moduleParts":{"tres.umd.cjs":"26e3-726"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-727":{"id":"/.tres/components/Uniform.ts","moduleParts":{"tres.umd.cjs":"26e3-728"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-729":{"id":"/.tres/components/UniformsGroup.ts","moduleParts":{"tres.umd.cjs":"26e3-730"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-731":{"id":"/.tres/components/VideoTexture.ts","moduleParts":{"tres.umd.cjs":"26e3-732"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-733":{"id":"/.tres/components/WebGL1Renderer.ts","moduleParts":{"tres.umd.cjs":"26e3-734"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-735":{"id":"/.tres/components/WebGL3DRenderTarget.ts","moduleParts":{"tres.umd.cjs":"26e3-736"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-737":{"id":"/.tres/components/WebGLArrayRenderTarget.ts","moduleParts":{"tres.umd.cjs":"26e3-738"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-739":{"id":"/.tres/components/WebGLCubeRenderTarget.ts","moduleParts":{"tres.umd.cjs":"26e3-740"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-741":{"id":"/.tres/components/WebGLMultipleRenderTargets.ts","moduleParts":{"tres.umd.cjs":"26e3-742"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-743":{"id":"/.tres/components/WebGLRenderTarget.ts","moduleParts":{"tres.umd.cjs":"26e3-744"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-745":{"id":"/.tres/components/WireframeGeometry.ts","moduleParts":{"tres.umd.cjs":"26e3-746"},"imported":[{"uid":"26e3-754"},{"uid":"26e3-753"},{"uid":"26e3-756"},{"uid":"26e3-385"}],"importedBy":[{"uid":"26e3-752"}]},"26e3-747":{"id":"/src/index.ts","moduleParts":{"tres.umd.cjs":"26e3-748"},"imported":[{"uid":"26e3-749"},{"uid":"26e3-750"},{"uid":"26e3-751"},{"uid":"26e3-752"}],"importedBy":[],"isEntry":true},"26e3-749":{"id":"/src/components/index.ts","moduleParts":{},"imported":[{"uid":"26e3-407"}],"importedBy":[{"uid":"26e3-747"}]},"26e3-750":{"id":"/src/composables/index.ts","moduleParts":{},"imported":[{"uid":"26e3-401"},{"uid":"26e3-403"},{"uid":"26e3-405"}],"importedBy":[{"uid":"26e3-747"},{"uid":"26e3-407"},{"uid":"26e3-401"}]},"26e3-751":{"id":"/src/types/index.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"26e3-747"}]},"26e3-752":{"id":"/.tres/components/index.ts","moduleParts":{},"imported":[{"uid":"26e3-409"},{"uid":"26e3-411"},{"uid":"26e3-413"},{"uid":"26e3-415"},{"uid":"26e3-417"},{"uid":"26e3-419"},{"uid":"26e3-421"},{"uid":"26e3-423"},{"uid":"26e3-425"},{"uid":"26e3-427"},{"uid":"26e3-429"},{"uid":"26e3-431"},{"uid":"26e3-433"},{"uid":"26e3-435"},{"uid":"26e3-437"},{"uid":"26e3-439"},{"uid":"26e3-441"},{"uid":"26e3-443"},{"uid":"26e3-445"},{"uid":"26e3-447"},{"uid":"26e3-449"},{"uid":"26e3-451"},{"uid":"26e3-453"},{"uid":"26e3-455"},{"uid":"26e3-457"},{"uid":"26e3-459"},{"uid":"26e3-461"},{"uid":"26e3-463"},{"uid":"26e3-465"},{"uid":"26e3-467"},{"uid":"26e3-469"},{"uid":"26e3-471"},{"uid":"26e3-473"},{"uid":"26e3-475"},{"uid":"26e3-477"},{"uid":"26e3-479"},{"uid":"26e3-481"},{"uid":"26e3-483"},{"uid":"26e3-485"},{"uid":"26e3-487"},{"uid":"26e3-489"},{"uid":"26e3-491"},{"uid":"26e3-493"},{"uid":"26e3-495"},{"uid":"26e3-497"},{"uid":"26e3-499"},{"uid":"26e3-501"},{"uid":"26e3-503"},{"uid":"26e3-505"},{"uid":"26e3-507"},{"uid":"26e3-509"},{"uid":"26e3-511"},{"uid":"26e3-513"},{"uid":"26e3-515"},{"uid":"26e3-517"},{"uid":"26e3-519"},{"uid":"26e3-521"},{"uid":"26e3-523"},{"uid":"26e3-525"},{"uid":"26e3-527"},{"uid":"26e3-529"},{"uid":"26e3-531"},{"uid":"26e3-533"},{"uid":"26e3-535"},{"uid":"26e3-537"},{"uid":"26e3-539"},{"uid":"26e3-541"},{"uid":"26e3-543"},{"uid":"26e3-545"},{"uid":"26e3-547"},{"uid":"26e3-549"},{"uid":"26e3-551"},{"uid":"26e3-553"},{"uid":"26e3-555"},{"uid":"26e3-557"},{"uid":"26e3-559"},{"uid":"26e3-561"},{"uid":"26e3-563"},{"uid":"26e3-565"},{"uid":"26e3-567"},{"uid":"26e3-569"},{"uid":"26e3-571"},{"uid":"26e3-573"},{"uid":"26e3-575"},{"uid":"26e3-577"},{"uid":"26e3-579"},{"uid":"26e3-581"},{"uid":"26e3-583"},{"uid":"26e3-585"},{"uid":"26e3-587"},{"uid":"26e3-589"},{"uid":"26e3-591"},{"uid":"26e3-593"},{"uid":"26e3-595"},{"uid":"26e3-597"},{"uid":"26e3-599"},{"uid":"26e3-601"},{"uid":"26e3-603"},{"uid":"26e3-605"},{"uid":"26e3-607"},{"uid":"26e3-609"},{"uid":"26e3-611"},{"uid":"26e3-613"},{"uid":"26e3-615"},{"uid":"26e3-617"},{"uid":"26e3-619"},{"uid":"26e3-621"},{"uid":"26e3-623"},{"uid":"26e3-625"},{"uid":"26e3-627"},{"uid":"26e3-629"},{"uid":"26e3-631"},{"uid":"26e3-633"},{"uid":"26e3-635"},{"uid":"26e3-637"},{"uid":"26e3-639"},{"uid":"26e3-641"},{"uid":"26e3-643"},{"uid":"26e3-645"},{"uid":"26e3-647"},{"uid":"26e3-649"},{"uid":"26e3-651"},{"uid":"26e3-653"},{"uid":"26e3-655"},{"uid":"26e3-657"},{"uid":"26e3-659"},{"uid":"26e3-661"},{"uid":"26e3-663"},{"uid":"26e3-665"},{"uid":"26e3-667"},{"uid":"26e3-669"},{"uid":"26e3-671"},{"uid":"26e3-673"},{"uid":"26e3-675"},{"uid":"26e3-677"},{"uid":"26e3-679"},{"uid":"26e3-681"},{"uid":"26e3-683"},{"uid":"26e3-685"},{"uid":"26e3-687"},{"uid":"26e3-689"},{"uid":"26e3-691"},{"uid":"26e3-693"},{"uid":"26e3-695"},{"uid":"26e3-697"},{"uid":"26e3-699"},{"uid":"26e3-701"},{"uid":"26e3-703"},{"uid":"26e3-705"},{"uid":"26e3-707"},{"uid":"26e3-709"},{"uid":"26e3-711"},{"uid":"26e3-713"},{"uid":"26e3-715"},{"uid":"26e3-717"},{"uid":"26e3-719"},{"uid":"26e3-721"},{"uid":"26e3-723"},{"uid":"26e3-725"},{"uid":"26e3-727"},{"uid":"26e3-729"},{"uid":"26e3-731"},{"uid":"26e3-733"},{"uid":"26e3-735"},{"uid":"26e3-737"},{"uid":"26e3-739"},{"uid":"26e3-741"},{"uid":"26e3-743"},{"uid":"26e3-745"}],"importedBy":[{"uid":"26e3-747"}]},"26e3-753":{"id":"three","moduleParts":{},"imported":[],"importedBy":[{"uid":"26e3-407"},{"uid":"26e3-401"},{"uid":"26e3-403"},{"uid":"26e3-409"},{"uid":"26e3-411"},{"uid":"26e3-413"},{"uid":"26e3-415"},{"uid":"26e3-417"},{"uid":"26e3-419"},{"uid":"26e3-421"},{"uid":"26e3-423"},{"uid":"26e3-425"},{"uid":"26e3-427"},{"uid":"26e3-429"},{"uid":"26e3-431"},{"uid":"26e3-433"},{"uid":"26e3-435"},{"uid":"26e3-437"},{"uid":"26e3-439"},{"uid":"26e3-441"},{"uid":"26e3-443"},{"uid":"26e3-445"},{"uid":"26e3-447"},{"uid":"26e3-449"},{"uid":"26e3-451"},{"uid":"26e3-453"},{"uid":"26e3-455"},{"uid":"26e3-457"},{"uid":"26e3-459"},{"uid":"26e3-461"},{"uid":"26e3-463"},{"uid":"26e3-465"},{"uid":"26e3-467"},{"uid":"26e3-469"},{"uid":"26e3-471"},{"uid":"26e3-473"},{"uid":"26e3-475"},{"uid":"26e3-477"},{"uid":"26e3-479"},{"uid":"26e3-481"},{"uid":"26e3-483"},{"uid":"26e3-485"},{"uid":"26e3-487"},{"uid":"26e3-489"},{"uid":"26e3-491"},{"uid":"26e3-493"},{"uid":"26e3-495"},{"uid":"26e3-497"},{"uid":"26e3-499"},{"uid":"26e3-501"},{"uid":"26e3-503"},{"uid":"26e3-505"},{"uid":"26e3-507"},{"uid":"26e3-509"},{"uid":"26e3-511"},{"uid":"26e3-513"},{"uid":"26e3-515"},{"uid":"26e3-517"},{"uid":"26e3-519"},{"uid":"26e3-521"},{"uid":"26e3-523"},{"uid":"26e3-525"},{"uid":"26e3-527"},{"uid":"26e3-529"},{"uid":"26e3-531"},{"uid":"26e3-533"},{"uid":"26e3-535"},{"uid":"26e3-537"},{"uid":"26e3-539"},{"uid":"26e3-541"},{"uid":"26e3-543"},{"uid":"26e3-545"},{"uid":"26e3-547"},{"uid":"26e3-549"},{"uid":"26e3-551"},{"uid":"26e3-553"},{"uid":"26e3-555"},{"uid":"26e3-557"},{"uid":"26e3-559"},{"uid":"26e3-561"},{"uid":"26e3-563"},{"uid":"26e3-565"},{"uid":"26e3-567"},{"uid":"26e3-569"},{"uid":"26e3-571"},{"uid":"26e3-573"},{"uid":"26e3-575"},{"uid":"26e3-577"},{"uid":"26e3-579"},{"uid":"26e3-581"},{"uid":"26e3-583"},{"uid":"26e3-585"},{"uid":"26e3-587"},{"uid":"26e3-589"},{"uid":"26e3-591"},{"uid":"26e3-593"},{"uid":"26e3-595"},{"uid":"26e3-597"},{"uid":"26e3-599"},{"uid":"26e3-601"},{"uid":"26e3-603"},{"uid":"26e3-605"},{"uid":"26e3-607"},{"uid":"26e3-609"},{"uid":"26e3-611"},{"uid":"26e3-613"},{"uid":"26e3-615"},{"uid":"26e3-617"},{"uid":"26e3-619"},{"uid":"26e3-621"},{"uid":"26e3-623"},{"uid":"26e3-625"},{"uid":"26e3-627"},{"uid":"26e3-629"},{"uid":"26e3-631"},{"uid":"26e3-633"},{"uid":"26e3-635"},{"uid":"26e3-637"},{"uid":"26e3-639"},{"uid":"26e3-641"},{"uid":"26e3-643"},{"uid":"26e3-645"},{"uid":"26e3-647"},{"uid":"26e3-649"},{"uid":"26e3-651"},{"uid":"26e3-653"},{"uid":"26e3-655"},{"uid":"26e3-657"},{"uid":"26e3-659"},{"uid":"26e3-661"},{"uid":"26e3-663"},{"uid":"26e3-665"},{"uid":"26e3-667"},{"uid":"26e3-669"},{"uid":"26e3-671"},{"uid":"26e3-673"},{"uid":"26e3-675"},{"uid":"26e3-677"},{"uid":"26e3-679"},{"uid":"26e3-681"},{"uid":"26e3-683"},{"uid":"26e3-685"},{"uid":"26e3-687"},{"uid":"26e3-689"},{"uid":"26e3-691"},{"uid":"26e3-693"},{"uid":"26e3-695"},{"uid":"26e3-697"},{"uid":"26e3-699"},{"uid":"26e3-701"},{"uid":"26e3-703"},{"uid":"26e3-705"},{"uid":"26e3-707"},{"uid":"26e3-709"},{"uid":"26e3-711"},{"uid":"26e3-713"},{"uid":"26e3-715"},{"uid":"26e3-717"},{"uid":"26e3-719"},{"uid":"26e3-721"},{"uid":"26e3-723"},{"uid":"26e3-725"},{"uid":"26e3-727"},{"uid":"26e3-729"},{"uid":"26e3-731"},{"uid":"26e3-733"},{"uid":"26e3-735"},{"uid":"26e3-737"},{"uid":"26e3-739"},{"uid":"26e3-741"},{"uid":"26e3-743"},{"uid":"26e3-745"},{"uid":"26e3-399"},{"uid":"26e3-385"},{"uid":"26e3-383"},{"uid":"26e3-757"},{"uid":"26e3-387"},{"uid":"26e3-391"},{"uid":"26e3-393"},{"uid":"26e3-759"},{"uid":"26e3-397"},{"uid":"26e3-761"}],"isExternal":true},"26e3-754":{"id":"vue","moduleParts":{},"imported":[],"importedBy":[{"uid":"26e3-407"},{"uid":"26e3-401"},{"uid":"26e3-405"},{"uid":"26e3-409"},{"uid":"26e3-411"},{"uid":"26e3-413"},{"uid":"26e3-415"},{"uid":"26e3-417"},{"uid":"26e3-419"},{"uid":"26e3-421"},{"uid":"26e3-423"},{"uid":"26e3-425"},{"uid":"26e3-427"},{"uid":"26e3-429"},{"uid":"26e3-431"},{"uid":"26e3-433"},{"uid":"26e3-435"},{"uid":"26e3-437"},{"uid":"26e3-439"},{"uid":"26e3-441"},{"uid":"26e3-443"},{"uid":"26e3-445"},{"uid":"26e3-447"},{"uid":"26e3-449"},{"uid":"26e3-451"},{"uid":"26e3-453"},{"uid":"26e3-455"},{"uid":"26e3-457"},{"uid":"26e3-459"},{"uid":"26e3-461"},{"uid":"26e3-463"},{"uid":"26e3-465"},{"uid":"26e3-467"},{"uid":"26e3-469"},{"uid":"26e3-471"},{"uid":"26e3-473"},{"uid":"26e3-475"},{"uid":"26e3-477"},{"uid":"26e3-479"},{"uid":"26e3-481"},{"uid":"26e3-483"},{"uid":"26e3-485"},{"uid":"26e3-487"},{"uid":"26e3-489"},{"uid":"26e3-491"},{"uid":"26e3-493"},{"uid":"26e3-495"},{"uid":"26e3-497"},{"uid":"26e3-499"},{"uid":"26e3-501"},{"uid":"26e3-503"},{"uid":"26e3-505"},{"uid":"26e3-507"},{"uid":"26e3-509"},{"uid":"26e3-511"},{"uid":"26e3-513"},{"uid":"26e3-515"},{"uid":"26e3-517"},{"uid":"26e3-519"},{"uid":"26e3-521"},{"uid":"26e3-523"},{"uid":"26e3-525"},{"uid":"26e3-527"},{"uid":"26e3-529"},{"uid":"26e3-531"},{"uid":"26e3-533"},{"uid":"26e3-535"},{"uid":"26e3-537"},{"uid":"26e3-539"},{"uid":"26e3-541"},{"uid":"26e3-543"},{"uid":"26e3-545"},{"uid":"26e3-547"},{"uid":"26e3-549"},{"uid":"26e3-551"},{"uid":"26e3-553"},{"uid":"26e3-555"},{"uid":"26e3-557"},{"uid":"26e3-559"},{"uid":"26e3-561"},{"uid":"26e3-563"},{"uid":"26e3-565"},{"uid":"26e3-567"},{"uid":"26e3-569"},{"uid":"26e3-571"},{"uid":"26e3-573"},{"uid":"26e3-575"},{"uid":"26e3-577"},{"uid":"26e3-579"},{"uid":"26e3-581"},{"uid":"26e3-583"},{"uid":"26e3-585"},{"uid":"26e3-587"},{"uid":"26e3-589"},{"uid":"26e3-591"},{"uid":"26e3-593"},{"uid":"26e3-595"},{"uid":"26e3-597"},{"uid":"26e3-599"},{"uid":"26e3-601"},{"uid":"26e3-603"},{"uid":"26e3-605"},{"uid":"26e3-607"},{"uid":"26e3-609"},{"uid":"26e3-611"},{"uid":"26e3-613"},{"uid":"26e3-615"},{"uid":"26e3-617"},{"uid":"26e3-619"},{"uid":"26e3-621"},{"uid":"26e3-623"},{"uid":"26e3-625"},{"uid":"26e3-627"},{"uid":"26e3-629"},{"uid":"26e3-631"},{"uid":"26e3-633"},{"uid":"26e3-635"},{"uid":"26e3-637"},{"uid":"26e3-639"},{"uid":"26e3-641"},{"uid":"26e3-643"},{"uid":"26e3-645"},{"uid":"26e3-647"},{"uid":"26e3-649"},{"uid":"26e3-651"},{"uid":"26e3-653"},{"uid":"26e3-655"},{"uid":"26e3-657"},{"uid":"26e3-659"},{"uid":"26e3-661"},{"uid":"26e3-663"},{"uid":"26e3-665"},{"uid":"26e3-667"},{"uid":"26e3-669"},{"uid":"26e3-671"},{"uid":"26e3-673"},{"uid":"26e3-675"},{"uid":"26e3-677"},{"uid":"26e3-679"},{"uid":"26e3-681"},{"uid":"26e3-683"},{"uid":"26e3-685"},{"uid":"26e3-687"},{"uid":"26e3-689"},{"uid":"26e3-691"},{"uid":"26e3-693"},{"uid":"26e3-695"},{"uid":"26e3-697"},{"uid":"26e3-699"},{"uid":"26e3-701"},{"uid":"26e3-703"},{"uid":"26e3-705"},{"uid":"26e3-707"},{"uid":"26e3-709"},{"uid":"26e3-711"},{"uid":"26e3-713"},{"uid":"26e3-715"},{"uid":"26e3-717"},{"uid":"26e3-719"},{"uid":"26e3-721"},{"uid":"26e3-723"},{"uid":"26e3-725"},{"uid":"26e3-727"},{"uid":"26e3-729"},{"uid":"26e3-731"},{"uid":"26e3-733"},{"uid":"26e3-735"},{"uid":"26e3-737"},{"uid":"26e3-739"},{"uid":"26e3-741"},{"uid":"26e3-743"},{"uid":"26e3-745"},{"uid":"26e3-399"},{"uid":"26e3-383"},{"uid":"26e3-757"},{"uid":"26e3-391"},{"uid":"26e3-393"},{"uid":"26e3-395"},{"uid":"26e3-397"}],"isExternal":true},"26e3-755":{"id":"@vueuse/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"26e3-401"},{"uid":"26e3-403"},{"uid":"26e3-757"},{"uid":"26e3-387"},{"uid":"26e3-391"}],"isExternal":true},"26e3-756":{"id":"/src/core/index.ts","moduleParts":{},"imported":[{"uid":"26e3-399"},{"uid":"26e3-383"},{"uid":"26e3-757"},{"uid":"26e3-387"},{"uid":"26e3-391"},{"uid":"26e3-393"},{"uid":"26e3-758"},{"uid":"26e3-759"},{"uid":"26e3-395"},{"uid":"26e3-397"}],"importedBy":[{"uid":"26e3-409"},{"uid":"26e3-411"},{"uid":"26e3-413"},{"uid":"26e3-415"},{"uid":"26e3-417"},{"uid":"26e3-419"},{"uid":"26e3-421"},{"uid":"26e3-423"},{"uid":"26e3-425"},{"uid":"26e3-427"},{"uid":"26e3-429"},{"uid":"26e3-431"},{"uid":"26e3-433"},{"uid":"26e3-435"},{"uid":"26e3-437"},{"uid":"26e3-439"},{"uid":"26e3-441"},{"uid":"26e3-443"},{"uid":"26e3-445"},{"uid":"26e3-447"},{"uid":"26e3-449"},{"uid":"26e3-451"},{"uid":"26e3-453"},{"uid":"26e3-455"},{"uid":"26e3-457"},{"uid":"26e3-459"},{"uid":"26e3-461"},{"uid":"26e3-463"},{"uid":"26e3-465"},{"uid":"26e3-467"},{"uid":"26e3-469"},{"uid":"26e3-471"},{"uid":"26e3-473"},{"uid":"26e3-475"},{"uid":"26e3-477"},{"uid":"26e3-479"},{"uid":"26e3-481"},{"uid":"26e3-483"},{"uid":"26e3-485"},{"uid":"26e3-487"},{"uid":"26e3-489"},{"uid":"26e3-491"},{"uid":"26e3-493"},{"uid":"26e3-495"},{"uid":"26e3-497"},{"uid":"26e3-499"},{"uid":"26e3-501"},{"uid":"26e3-503"},{"uid":"26e3-505"},{"uid":"26e3-507"},{"uid":"26e3-509"},{"uid":"26e3-511"},{"uid":"26e3-513"},{"uid":"26e3-515"},{"uid":"26e3-517"},{"uid":"26e3-519"},{"uid":"26e3-521"},{"uid":"26e3-523"},{"uid":"26e3-525"},{"uid":"26e3-527"},{"uid":"26e3-529"},{"uid":"26e3-531"},{"uid":"26e3-533"},{"uid":"26e3-535"},{"uid":"26e3-537"},{"uid":"26e3-539"},{"uid":"26e3-541"},{"uid":"26e3-543"},{"uid":"26e3-545"},{"uid":"26e3-547"},{"uid":"26e3-549"},{"uid":"26e3-551"},{"uid":"26e3-553"},{"uid":"26e3-555"},{"uid":"26e3-557"},{"uid":"26e3-559"},{"uid":"26e3-561"},{"uid":"26e3-563"},{"uid":"26e3-565"},{"uid":"26e3-567"},{"uid":"26e3-569"},{"uid":"26e3-571"},{"uid":"26e3-573"},{"uid":"26e3-575"},{"uid":"26e3-577"},{"uid":"26e3-579"},{"uid":"26e3-581"},{"uid":"26e3-583"},{"uid":"26e3-585"},{"uid":"26e3-587"},{"uid":"26e3-589"},{"uid":"26e3-591"},{"uid":"26e3-593"},{"uid":"26e3-595"},{"uid":"26e3-597"},{"uid":"26e3-599"},{"uid":"26e3-601"},{"uid":"26e3-603"},{"uid":"26e3-605"},{"uid":"26e3-607"},{"uid":"26e3-609"},{"uid":"26e3-611"},{"uid":"26e3-613"},{"uid":"26e3-615"},{"uid":"26e3-617"},{"uid":"26e3-619"},{"uid":"26e3-621"},{"uid":"26e3-623"},{"uid":"26e3-625"},{"uid":"26e3-627"},{"uid":"26e3-629"},{"uid":"26e3-631"},{"uid":"26e3-633"},{"uid":"26e3-635"},{"uid":"26e3-637"},{"uid":"26e3-639"},{"uid":"26e3-641"},{"uid":"26e3-643"},{"uid":"26e3-645"},{"uid":"26e3-647"},{"uid":"26e3-649"},{"uid":"26e3-651"},{"uid":"26e3-653"},{"uid":"26e3-655"},{"uid":"26e3-657"},{"uid":"26e3-659"},{"uid":"26e3-661"},{"uid":"26e3-663"},{"uid":"26e3-665"},{"uid":"26e3-667"},{"uid":"26e3-669"},{"uid":"26e3-671"},{"uid":"26e3-673"},{"uid":"26e3-675"},{"uid":"26e3-677"},{"uid":"26e3-679"},{"uid":"26e3-681"},{"uid":"26e3-683"},{"uid":"26e3-685"},{"uid":"26e3-687"},{"uid":"26e3-689"},{"uid":"26e3-691"},{"uid":"26e3-693"},{"uid":"26e3-695"},{"uid":"26e3-697"},{"uid":"26e3-699"},{"uid":"26e3-701"},{"uid":"26e3-703"},{"uid":"26e3-705"},{"uid":"26e3-707"},{"uid":"26e3-709"},{"uid":"26e3-711"},{"uid":"26e3-713"},{"uid":"26e3-715"},{"uid":"26e3-717"},{"uid":"26e3-719"},{"uid":"26e3-721"},{"uid":"26e3-723"},{"uid":"26e3-725"},{"uid":"26e3-727"},{"uid":"26e3-729"},{"uid":"26e3-731"},{"uid":"26e3-733"},{"uid":"26e3-735"},{"uid":"26e3-737"},{"uid":"26e3-739"},{"uid":"26e3-741"},{"uid":"26e3-743"},{"uid":"26e3-745"},{"uid":"26e3-399"},{"uid":"26e3-383"},{"uid":"26e3-757"},{"uid":"26e3-391"},{"uid":"26e3-397"}]},"26e3-757":{"id":"/src/core/useInstanceCreator/index.ts","moduleParts":{},"imported":[{"uid":"26e3-753"},{"uid":"26e3-754"},{"uid":"26e3-755"},{"uid":"26e3-760"},{"uid":"26e3-385"},{"uid":"26e3-756"},{"uid":"26e3-381"}],"importedBy":[{"uid":"26e3-756"}]},"26e3-758":{"id":"/src/core/useLoader/index.ts","moduleParts":{},"imported":[{"uid":"26e3-760"},{"uid":"26e3-381"}],"importedBy":[{"uid":"26e3-756"}]},"26e3-759":{"id":"/src/core/useTexture/index.ts","moduleParts":{},"imported":[{"uid":"26e3-760"},{"uid":"26e3-753"}],"importedBy":[{"uid":"26e3-756"}]},"26e3-760":{"id":"/Users/alvarosabu/Projects/tres/node_modules/.pnpm/@alvarosabu+utils@2.3.0/node_modules/@alvarosabu/utils/dist/as-utils.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"26e3-757"},{"uid":"26e3-758"},{"uid":"26e3-759"}]},"26e3-761":{"id":"/src/core/useRenderer/const.ts","moduleParts":{},"imported":[{"uid":"26e3-753"}],"importedBy":[{"uid":"26e3-391"}]}},"env":{"rollup":"3.17.2"},"options":{"gzip":true,"brotli":true,"sourcemap":false}};
  5272. const run = () => {
  5273. const width = window.innerWidth;
  5274. const height = window.innerHeight;
  5275. const chartNode = document.querySelector("main");
  5276. drawChart.default(chartNode, data, width, height);
  5277. };
  5278. window.addEventListener('resize', run);
  5279. document.addEventListener('DOMContentLoaded', run);
  5280. /*-->*/
  5281. </script>
  5282. </body>
  5283. </html>