index_bundled.js 231 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780
  1. "use strict";
  2. var __defProp = Object.defineProperty;
  3. var __defProps = Object.defineProperties;
  4. var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
  5. var __getOwnPropNames = Object.getOwnPropertyNames;
  6. var __getOwnPropSymbols = Object.getOwnPropertySymbols;
  7. var __hasOwnProp = Object.prototype.hasOwnProperty;
  8. var __propIsEnum = Object.prototype.propertyIsEnumerable;
  9. var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
  10. var __spreadValues = (a, b) => {
  11. for (var prop in b || (b = {}))
  12. if (__hasOwnProp.call(b, prop))
  13. __defNormalProp(a, prop, b[prop]);
  14. if (__getOwnPropSymbols)
  15. for (var prop of __getOwnPropSymbols(b)) {
  16. if (__propIsEnum.call(b, prop))
  17. __defNormalProp(a, prop, b[prop]);
  18. }
  19. return a;
  20. };
  21. var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
  22. var __objRest = (source, exclude) => {
  23. var target = {};
  24. for (var prop in source)
  25. if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
  26. target[prop] = source[prop];
  27. if (source != null && __getOwnPropSymbols)
  28. for (var prop of __getOwnPropSymbols(source)) {
  29. if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
  30. target[prop] = source[prop];
  31. }
  32. return target;
  33. };
  34. var __commonJS = (cb, mod) => function __require() {
  35. return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
  36. };
  37. var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
  38. var __async = (__this, __arguments, generator) => {
  39. return new Promise((resolve, reject) => {
  40. var fulfilled = (value) => {
  41. try {
  42. step(generator.next(value));
  43. } catch (e) {
  44. reject(e);
  45. }
  46. };
  47. var rejected = (value) => {
  48. try {
  49. step(generator.throw(value));
  50. } catch (e) {
  51. reject(e);
  52. }
  53. };
  54. var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
  55. step((generator = generator.apply(__this, __arguments)).next());
  56. });
  57. };
  58. // src/material/schematics/ng-update/data/attribute-selectors.js
  59. var require_attribute_selectors = __commonJS({
  60. "src/material/schematics/ng-update/data/attribute-selectors.js"(exports2) {
  61. "use strict";
  62. Object.defineProperty(exports2, "__esModule", { value: true });
  63. exports2.attributeSelectors = void 0;
  64. exports2.attributeSelectors = {};
  65. }
  66. });
  67. // src/material/schematics/ng-update/data/class-names.js
  68. var require_class_names = __commonJS({
  69. "src/material/schematics/ng-update/data/class-names.js"(exports2) {
  70. "use strict";
  71. Object.defineProperty(exports2, "__esModule", { value: true });
  72. exports2.classNames = void 0;
  73. exports2.classNames = {};
  74. }
  75. });
  76. // src/material/schematics/ng-update/data/constructor-checks.js
  77. var require_constructor_checks = __commonJS({
  78. "src/material/schematics/ng-update/data/constructor-checks.js"(exports2) {
  79. "use strict";
  80. Object.defineProperty(exports2, "__esModule", { value: true });
  81. exports2.constructorChecks = void 0;
  82. exports2.constructorChecks = {};
  83. }
  84. });
  85. // src/material/schematics/ng-update/data/css-selectors.js
  86. var require_css_selectors = __commonJS({
  87. "src/material/schematics/ng-update/data/css-selectors.js"(exports2) {
  88. "use strict";
  89. Object.defineProperty(exports2, "__esModule", { value: true });
  90. exports2.cssSelectors = void 0;
  91. exports2.cssSelectors = {};
  92. }
  93. });
  94. // src/material/schematics/ng-update/data/css-tokens.js
  95. var require_css_tokens = __commonJS({
  96. "src/material/schematics/ng-update/data/css-tokens.js"(exports2) {
  97. "use strict";
  98. Object.defineProperty(exports2, "__esModule", { value: true });
  99. exports2.cssTokens = void 0;
  100. exports2.cssTokens = {};
  101. }
  102. });
  103. // src/material/schematics/ng-update/data/element-selectors.js
  104. var require_element_selectors = __commonJS({
  105. "src/material/schematics/ng-update/data/element-selectors.js"(exports2) {
  106. "use strict";
  107. Object.defineProperty(exports2, "__esModule", { value: true });
  108. exports2.elementSelectors = void 0;
  109. exports2.elementSelectors = {};
  110. }
  111. });
  112. // src/material/schematics/ng-update/data/input-names.js
  113. var require_input_names = __commonJS({
  114. "src/material/schematics/ng-update/data/input-names.js"(exports2) {
  115. "use strict";
  116. Object.defineProperty(exports2, "__esModule", { value: true });
  117. exports2.inputNames = void 0;
  118. exports2.inputNames = {};
  119. }
  120. });
  121. // src/material/schematics/ng-update/data/method-call-checks.js
  122. var require_method_call_checks = __commonJS({
  123. "src/material/schematics/ng-update/data/method-call-checks.js"(exports2) {
  124. "use strict";
  125. Object.defineProperty(exports2, "__esModule", { value: true });
  126. exports2.methodCallChecks = void 0;
  127. exports2.methodCallChecks = {};
  128. }
  129. });
  130. // src/material/schematics/ng-update/data/output-names.js
  131. var require_output_names = __commonJS({
  132. "src/material/schematics/ng-update/data/output-names.js"(exports2) {
  133. "use strict";
  134. Object.defineProperty(exports2, "__esModule", { value: true });
  135. exports2.outputNames = void 0;
  136. exports2.outputNames = {};
  137. }
  138. });
  139. // src/material/schematics/ng-update/data/property-names.js
  140. var require_property_names = __commonJS({
  141. "src/material/schematics/ng-update/data/property-names.js"(exports2) {
  142. "use strict";
  143. Object.defineProperty(exports2, "__esModule", { value: true });
  144. exports2.propertyNames = void 0;
  145. exports2.propertyNames = {};
  146. }
  147. });
  148. // src/material/schematics/ng-update/data/symbol-removal.js
  149. var require_symbol_removal = __commonJS({
  150. "src/material/schematics/ng-update/data/symbol-removal.js"(exports2) {
  151. "use strict";
  152. Object.defineProperty(exports2, "__esModule", { value: true });
  153. exports2.symbolRemoval = void 0;
  154. exports2.symbolRemoval = {};
  155. }
  156. });
  157. // src/material/schematics/ng-update/data/index.js
  158. var require_data = __commonJS({
  159. "src/material/schematics/ng-update/data/index.js"(exports2) {
  160. "use strict";
  161. var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
  162. if (k2 === void 0) k2 = k;
  163. var desc = Object.getOwnPropertyDescriptor(m, k);
  164. if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
  165. desc = { enumerable: true, get: function() {
  166. return m[k];
  167. } };
  168. }
  169. Object.defineProperty(o, k2, desc);
  170. } : function(o, m, k, k2) {
  171. if (k2 === void 0) k2 = k;
  172. o[k2] = m[k];
  173. });
  174. var __exportStar = exports2 && exports2.__exportStar || function(m, exports3) {
  175. for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p)) __createBinding(exports3, m, p);
  176. };
  177. Object.defineProperty(exports2, "__esModule", { value: true });
  178. __exportStar(require_attribute_selectors(), exports2);
  179. __exportStar(require_class_names(), exports2);
  180. __exportStar(require_constructor_checks(), exports2);
  181. __exportStar(require_css_selectors(), exports2);
  182. __exportStar(require_css_tokens(), exports2);
  183. __exportStar(require_element_selectors(), exports2);
  184. __exportStar(require_input_names(), exports2);
  185. __exportStar(require_method_call_checks(), exports2);
  186. __exportStar(require_output_names(), exports2);
  187. __exportStar(require_property_names(), exports2);
  188. __exportStar(require_symbol_removal(), exports2);
  189. }
  190. });
  191. // src/material/schematics/ng-update/upgrade-data.js
  192. var require_upgrade_data = __commonJS({
  193. "src/material/schematics/ng-update/upgrade-data.js"(exports2) {
  194. "use strict";
  195. Object.defineProperty(exports2, "__esModule", { value: true });
  196. exports2.materialUpgradeData = void 0;
  197. var data_1 = require_data();
  198. exports2.materialUpgradeData = {
  199. attributeSelectors: data_1.attributeSelectors,
  200. classNames: data_1.classNames,
  201. constructorChecks: data_1.constructorChecks,
  202. cssSelectors: data_1.cssSelectors,
  203. cssTokens: data_1.cssTokens,
  204. elementSelectors: data_1.elementSelectors,
  205. inputNames: data_1.inputNames,
  206. methodCallChecks: data_1.methodCallChecks,
  207. outputNames: data_1.outputNames,
  208. propertyNames: data_1.propertyNames,
  209. symbolRemoval: data_1.symbolRemoval
  210. };
  211. }
  212. });
  213. // node_modules/.aspect_rules_js/picocolors@1.1.1/node_modules/picocolors/picocolors.js
  214. var require_picocolors = __commonJS({
  215. "node_modules/.aspect_rules_js/picocolors@1.1.1/node_modules/picocolors/picocolors.js"(exports2, module2) {
  216. var p = process || {};
  217. var argv = p.argv || [];
  218. var env = p.env || {};
  219. var isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI);
  220. var formatter = (open, close, replace = open) => (input) => {
  221. let string = "" + input, index = string.indexOf(close, open.length);
  222. return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
  223. };
  224. var replaceClose = (string, close, replace, index) => {
  225. let result = "", cursor = 0;
  226. do {
  227. result += string.substring(cursor, index) + replace;
  228. cursor = index + close.length;
  229. index = string.indexOf(close, cursor);
  230. } while (~index);
  231. return result + string.substring(cursor);
  232. };
  233. var createColors = (enabled = isColorSupported) => {
  234. let f = enabled ? formatter : () => String;
  235. return {
  236. isColorSupported: enabled,
  237. reset: f("\x1B[0m", "\x1B[0m"),
  238. bold: f("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
  239. dim: f("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
  240. italic: f("\x1B[3m", "\x1B[23m"),
  241. underline: f("\x1B[4m", "\x1B[24m"),
  242. inverse: f("\x1B[7m", "\x1B[27m"),
  243. hidden: f("\x1B[8m", "\x1B[28m"),
  244. strikethrough: f("\x1B[9m", "\x1B[29m"),
  245. black: f("\x1B[30m", "\x1B[39m"),
  246. red: f("\x1B[31m", "\x1B[39m"),
  247. green: f("\x1B[32m", "\x1B[39m"),
  248. yellow: f("\x1B[33m", "\x1B[39m"),
  249. blue: f("\x1B[34m", "\x1B[39m"),
  250. magenta: f("\x1B[35m", "\x1B[39m"),
  251. cyan: f("\x1B[36m", "\x1B[39m"),
  252. white: f("\x1B[37m", "\x1B[39m"),
  253. gray: f("\x1B[90m", "\x1B[39m"),
  254. bgBlack: f("\x1B[40m", "\x1B[49m"),
  255. bgRed: f("\x1B[41m", "\x1B[49m"),
  256. bgGreen: f("\x1B[42m", "\x1B[49m"),
  257. bgYellow: f("\x1B[43m", "\x1B[49m"),
  258. bgBlue: f("\x1B[44m", "\x1B[49m"),
  259. bgMagenta: f("\x1B[45m", "\x1B[49m"),
  260. bgCyan: f("\x1B[46m", "\x1B[49m"),
  261. bgWhite: f("\x1B[47m", "\x1B[49m"),
  262. blackBright: f("\x1B[90m", "\x1B[39m"),
  263. redBright: f("\x1B[91m", "\x1B[39m"),
  264. greenBright: f("\x1B[92m", "\x1B[39m"),
  265. yellowBright: f("\x1B[93m", "\x1B[39m"),
  266. blueBright: f("\x1B[94m", "\x1B[39m"),
  267. magentaBright: f("\x1B[95m", "\x1B[39m"),
  268. cyanBright: f("\x1B[96m", "\x1B[39m"),
  269. whiteBright: f("\x1B[97m", "\x1B[39m"),
  270. bgBlackBright: f("\x1B[100m", "\x1B[49m"),
  271. bgRedBright: f("\x1B[101m", "\x1B[49m"),
  272. bgGreenBright: f("\x1B[102m", "\x1B[49m"),
  273. bgYellowBright: f("\x1B[103m", "\x1B[49m"),
  274. bgBlueBright: f("\x1B[104m", "\x1B[49m"),
  275. bgMagentaBright: f("\x1B[105m", "\x1B[49m"),
  276. bgCyanBright: f("\x1B[106m", "\x1B[49m"),
  277. bgWhiteBright: f("\x1B[107m", "\x1B[49m")
  278. };
  279. };
  280. module2.exports = createColors();
  281. module2.exports.createColors = createColors;
  282. }
  283. });
  284. // node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/tokenize.js
  285. var require_tokenize = __commonJS({
  286. "node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/tokenize.js"(exports2, module2) {
  287. "use strict";
  288. var SINGLE_QUOTE = "'".charCodeAt(0);
  289. var DOUBLE_QUOTE = '"'.charCodeAt(0);
  290. var BACKSLASH = "\\".charCodeAt(0);
  291. var SLASH = "/".charCodeAt(0);
  292. var NEWLINE = "\n".charCodeAt(0);
  293. var SPACE = " ".charCodeAt(0);
  294. var FEED = "\f".charCodeAt(0);
  295. var TAB = " ".charCodeAt(0);
  296. var CR = "\r".charCodeAt(0);
  297. var OPEN_SQUARE = "[".charCodeAt(0);
  298. var CLOSE_SQUARE = "]".charCodeAt(0);
  299. var OPEN_PARENTHESES = "(".charCodeAt(0);
  300. var CLOSE_PARENTHESES = ")".charCodeAt(0);
  301. var OPEN_CURLY = "{".charCodeAt(0);
  302. var CLOSE_CURLY = "}".charCodeAt(0);
  303. var SEMICOLON = ";".charCodeAt(0);
  304. var ASTERISK = "*".charCodeAt(0);
  305. var COLON = ":".charCodeAt(0);
  306. var AT = "@".charCodeAt(0);
  307. var RE_AT_END = /[\t\n\f\r "#'()/;[\\\]{}]/g;
  308. var RE_WORD_END = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g;
  309. var RE_BAD_BRACKET = /.[\r\n"'(/\\]/;
  310. var RE_HEX_ESCAPE = /[\da-f]/i;
  311. module2.exports = function tokenizer(input, options = {}) {
  312. let css = input.css.valueOf();
  313. let ignore = options.ignoreErrors;
  314. let code, content, escape, next, quote;
  315. let currentToken, escaped, escapePos, n, prev;
  316. let length = css.length;
  317. let pos = 0;
  318. let buffer = [];
  319. let returned = [];
  320. function position() {
  321. return pos;
  322. }
  323. function unclosed(what) {
  324. throw input.error("Unclosed " + what, pos);
  325. }
  326. function endOfFile() {
  327. return returned.length === 0 && pos >= length;
  328. }
  329. function nextToken(opts) {
  330. if (returned.length) return returned.pop();
  331. if (pos >= length) return;
  332. let ignoreUnclosed = opts ? opts.ignoreUnclosed : false;
  333. code = css.charCodeAt(pos);
  334. switch (code) {
  335. case NEWLINE:
  336. case SPACE:
  337. case TAB:
  338. case CR:
  339. case FEED: {
  340. next = pos;
  341. do {
  342. next += 1;
  343. code = css.charCodeAt(next);
  344. } while (code === SPACE || code === NEWLINE || code === TAB || code === CR || code === FEED);
  345. currentToken = ["space", css.slice(pos, next)];
  346. pos = next - 1;
  347. break;
  348. }
  349. case OPEN_SQUARE:
  350. case CLOSE_SQUARE:
  351. case OPEN_CURLY:
  352. case CLOSE_CURLY:
  353. case COLON:
  354. case SEMICOLON:
  355. case CLOSE_PARENTHESES: {
  356. let controlChar = String.fromCharCode(code);
  357. currentToken = [controlChar, controlChar, pos];
  358. break;
  359. }
  360. case OPEN_PARENTHESES: {
  361. prev = buffer.length ? buffer.pop()[1] : "";
  362. n = css.charCodeAt(pos + 1);
  363. if (prev === "url" && n !== SINGLE_QUOTE && n !== DOUBLE_QUOTE && n !== SPACE && n !== NEWLINE && n !== TAB && n !== FEED && n !== CR) {
  364. next = pos;
  365. do {
  366. escaped = false;
  367. next = css.indexOf(")", next + 1);
  368. if (next === -1) {
  369. if (ignore || ignoreUnclosed) {
  370. next = pos;
  371. break;
  372. } else {
  373. unclosed("bracket");
  374. }
  375. }
  376. escapePos = next;
  377. while (css.charCodeAt(escapePos - 1) === BACKSLASH) {
  378. escapePos -= 1;
  379. escaped = !escaped;
  380. }
  381. } while (escaped);
  382. currentToken = ["brackets", css.slice(pos, next + 1), pos, next];
  383. pos = next;
  384. } else {
  385. next = css.indexOf(")", pos + 1);
  386. content = css.slice(pos, next + 1);
  387. if (next === -1 || RE_BAD_BRACKET.test(content)) {
  388. currentToken = ["(", "(", pos];
  389. } else {
  390. currentToken = ["brackets", content, pos, next];
  391. pos = next;
  392. }
  393. }
  394. break;
  395. }
  396. case SINGLE_QUOTE:
  397. case DOUBLE_QUOTE: {
  398. quote = code === SINGLE_QUOTE ? "'" : '"';
  399. next = pos;
  400. do {
  401. escaped = false;
  402. next = css.indexOf(quote, next + 1);
  403. if (next === -1) {
  404. if (ignore || ignoreUnclosed) {
  405. next = pos + 1;
  406. break;
  407. } else {
  408. unclosed("string");
  409. }
  410. }
  411. escapePos = next;
  412. while (css.charCodeAt(escapePos - 1) === BACKSLASH) {
  413. escapePos -= 1;
  414. escaped = !escaped;
  415. }
  416. } while (escaped);
  417. currentToken = ["string", css.slice(pos, next + 1), pos, next];
  418. pos = next;
  419. break;
  420. }
  421. case AT: {
  422. RE_AT_END.lastIndex = pos + 1;
  423. RE_AT_END.test(css);
  424. if (RE_AT_END.lastIndex === 0) {
  425. next = css.length - 1;
  426. } else {
  427. next = RE_AT_END.lastIndex - 2;
  428. }
  429. currentToken = ["at-word", css.slice(pos, next + 1), pos, next];
  430. pos = next;
  431. break;
  432. }
  433. case BACKSLASH: {
  434. next = pos;
  435. escape = true;
  436. while (css.charCodeAt(next + 1) === BACKSLASH) {
  437. next += 1;
  438. escape = !escape;
  439. }
  440. code = css.charCodeAt(next + 1);
  441. if (escape && code !== SLASH && code !== SPACE && code !== NEWLINE && code !== TAB && code !== CR && code !== FEED) {
  442. next += 1;
  443. if (RE_HEX_ESCAPE.test(css.charAt(next))) {
  444. while (RE_HEX_ESCAPE.test(css.charAt(next + 1))) {
  445. next += 1;
  446. }
  447. if (css.charCodeAt(next + 1) === SPACE) {
  448. next += 1;
  449. }
  450. }
  451. }
  452. currentToken = ["word", css.slice(pos, next + 1), pos, next];
  453. pos = next;
  454. break;
  455. }
  456. default: {
  457. if (code === SLASH && css.charCodeAt(pos + 1) === ASTERISK) {
  458. next = css.indexOf("*/", pos + 2) + 1;
  459. if (next === 0) {
  460. if (ignore || ignoreUnclosed) {
  461. next = css.length;
  462. } else {
  463. unclosed("comment");
  464. }
  465. }
  466. currentToken = ["comment", css.slice(pos, next + 1), pos, next];
  467. pos = next;
  468. } else {
  469. RE_WORD_END.lastIndex = pos + 1;
  470. RE_WORD_END.test(css);
  471. if (RE_WORD_END.lastIndex === 0) {
  472. next = css.length - 1;
  473. } else {
  474. next = RE_WORD_END.lastIndex - 2;
  475. }
  476. currentToken = ["word", css.slice(pos, next + 1), pos, next];
  477. buffer.push(currentToken);
  478. pos = next;
  479. }
  480. break;
  481. }
  482. }
  483. pos++;
  484. return currentToken;
  485. }
  486. function back(token) {
  487. returned.push(token);
  488. }
  489. return {
  490. back,
  491. endOfFile,
  492. nextToken,
  493. position
  494. };
  495. };
  496. }
  497. });
  498. // node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/terminal-highlight.js
  499. var require_terminal_highlight = __commonJS({
  500. "node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/terminal-highlight.js"(exports2, module2) {
  501. "use strict";
  502. var pico = require_picocolors();
  503. var tokenizer = require_tokenize();
  504. var Input;
  505. function registerInput(dependant) {
  506. Input = dependant;
  507. }
  508. var HIGHLIGHT_THEME = {
  509. ";": pico.yellow,
  510. ":": pico.yellow,
  511. "(": pico.cyan,
  512. ")": pico.cyan,
  513. "[": pico.yellow,
  514. "]": pico.yellow,
  515. "{": pico.yellow,
  516. "}": pico.yellow,
  517. "at-word": pico.cyan,
  518. "brackets": pico.cyan,
  519. "call": pico.cyan,
  520. "class": pico.yellow,
  521. "comment": pico.gray,
  522. "hash": pico.magenta,
  523. "string": pico.green
  524. };
  525. function getTokenType([type, value], processor) {
  526. if (type === "word") {
  527. if (value[0] === ".") {
  528. return "class";
  529. }
  530. if (value[0] === "#") {
  531. return "hash";
  532. }
  533. }
  534. if (!processor.endOfFile()) {
  535. let next = processor.nextToken();
  536. processor.back(next);
  537. if (next[0] === "brackets" || next[0] === "(") return "call";
  538. }
  539. return type;
  540. }
  541. function terminalHighlight(css) {
  542. let processor = tokenizer(new Input(css), { ignoreErrors: true });
  543. let result = "";
  544. while (!processor.endOfFile()) {
  545. let token = processor.nextToken();
  546. let color = HIGHLIGHT_THEME[getTokenType(token, processor)];
  547. if (color) {
  548. result += token[1].split(/\r?\n/).map((i) => color(i)).join("\n");
  549. } else {
  550. result += token[1];
  551. }
  552. }
  553. return result;
  554. }
  555. terminalHighlight.registerInput = registerInput;
  556. module2.exports = terminalHighlight;
  557. }
  558. });
  559. // node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/css-syntax-error.js
  560. var require_css_syntax_error = __commonJS({
  561. "node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/css-syntax-error.js"(exports2, module2) {
  562. "use strict";
  563. var pico = require_picocolors();
  564. var terminalHighlight = require_terminal_highlight();
  565. var CssSyntaxError = class _CssSyntaxError extends Error {
  566. constructor(message, line, column, source, file, plugin) {
  567. super(message);
  568. this.name = "CssSyntaxError";
  569. this.reason = message;
  570. if (file) {
  571. this.file = file;
  572. }
  573. if (source) {
  574. this.source = source;
  575. }
  576. if (plugin) {
  577. this.plugin = plugin;
  578. }
  579. if (typeof line !== "undefined" && typeof column !== "undefined") {
  580. if (typeof line === "number") {
  581. this.line = line;
  582. this.column = column;
  583. } else {
  584. this.line = line.line;
  585. this.column = line.column;
  586. this.endLine = column.line;
  587. this.endColumn = column.column;
  588. }
  589. }
  590. this.setMessage();
  591. if (Error.captureStackTrace) {
  592. Error.captureStackTrace(this, _CssSyntaxError);
  593. }
  594. }
  595. setMessage() {
  596. this.message = this.plugin ? this.plugin + ": " : "";
  597. this.message += this.file ? this.file : "<css input>";
  598. if (typeof this.line !== "undefined") {
  599. this.message += ":" + this.line + ":" + this.column;
  600. }
  601. this.message += ": " + this.reason;
  602. }
  603. showSourceCode(color) {
  604. if (!this.source) return "";
  605. let css = this.source;
  606. if (color == null) color = pico.isColorSupported;
  607. let aside = (text) => text;
  608. let mark = (text) => text;
  609. let highlight = (text) => text;
  610. if (color) {
  611. let { bold, gray, red } = pico.createColors(true);
  612. mark = (text) => bold(red(text));
  613. aside = (text) => gray(text);
  614. if (terminalHighlight) {
  615. highlight = (text) => terminalHighlight(text);
  616. }
  617. }
  618. let lines = css.split(/\r?\n/);
  619. let start = Math.max(this.line - 3, 0);
  620. let end = Math.min(this.line + 2, lines.length);
  621. let maxWidth = String(end).length;
  622. return lines.slice(start, end).map((line, index) => {
  623. let number = start + 1 + index;
  624. let gutter = " " + (" " + number).slice(-maxWidth) + " | ";
  625. if (number === this.line) {
  626. if (line.length > 160) {
  627. let padding = 20;
  628. let subLineStart = Math.max(0, this.column - padding);
  629. let subLineEnd = Math.max(
  630. this.column + padding,
  631. this.endColumn + padding
  632. );
  633. let subLine = line.slice(subLineStart, subLineEnd);
  634. let spacing2 = aside(gutter.replace(/\d/g, " ")) + line.slice(0, Math.min(this.column - 1, padding - 1)).replace(/[^\t]/g, " ");
  635. return mark(">") + aside(gutter) + highlight(subLine) + "\n " + spacing2 + mark("^");
  636. }
  637. let spacing = aside(gutter.replace(/\d/g, " ")) + line.slice(0, this.column - 1).replace(/[^\t]/g, " ");
  638. return mark(">") + aside(gutter) + highlight(line) + "\n " + spacing + mark("^");
  639. }
  640. return " " + aside(gutter) + highlight(line);
  641. }).join("\n");
  642. }
  643. toString() {
  644. let code = this.showSourceCode();
  645. if (code) {
  646. code = "\n\n" + code + "\n";
  647. }
  648. return this.name + ": " + this.message + code;
  649. }
  650. };
  651. module2.exports = CssSyntaxError;
  652. CssSyntaxError.default = CssSyntaxError;
  653. }
  654. });
  655. // node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/stringifier.js
  656. var require_stringifier = __commonJS({
  657. "node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/stringifier.js"(exports2, module2) {
  658. "use strict";
  659. var DEFAULT_RAW = {
  660. after: "\n",
  661. beforeClose: "\n",
  662. beforeComment: "\n",
  663. beforeDecl: "\n",
  664. beforeOpen: " ",
  665. beforeRule: "\n",
  666. colon: ": ",
  667. commentLeft: " ",
  668. commentRight: " ",
  669. emptyBody: "",
  670. indent: " ",
  671. semicolon: false
  672. };
  673. function capitalize(str) {
  674. return str[0].toUpperCase() + str.slice(1);
  675. }
  676. var Stringifier = class {
  677. constructor(builder) {
  678. this.builder = builder;
  679. }
  680. atrule(node, semicolon) {
  681. let name = "@" + node.name;
  682. let params = node.params ? this.rawValue(node, "params") : "";
  683. if (typeof node.raws.afterName !== "undefined") {
  684. name += node.raws.afterName;
  685. } else if (params) {
  686. name += " ";
  687. }
  688. if (node.nodes) {
  689. this.block(node, name + params);
  690. } else {
  691. let end = (node.raws.between || "") + (semicolon ? ";" : "");
  692. this.builder(name + params + end, node);
  693. }
  694. }
  695. beforeAfter(node, detect) {
  696. let value;
  697. if (node.type === "decl") {
  698. value = this.raw(node, null, "beforeDecl");
  699. } else if (node.type === "comment") {
  700. value = this.raw(node, null, "beforeComment");
  701. } else if (detect === "before") {
  702. value = this.raw(node, null, "beforeRule");
  703. } else {
  704. value = this.raw(node, null, "beforeClose");
  705. }
  706. let buf = node.parent;
  707. let depth = 0;
  708. while (buf && buf.type !== "root") {
  709. depth += 1;
  710. buf = buf.parent;
  711. }
  712. if (value.includes("\n")) {
  713. let indent = this.raw(node, null, "indent");
  714. if (indent.length) {
  715. for (let step = 0; step < depth; step++) value += indent;
  716. }
  717. }
  718. return value;
  719. }
  720. block(node, start) {
  721. let between = this.raw(node, "between", "beforeOpen");
  722. this.builder(start + between + "{", node, "start");
  723. let after;
  724. if (node.nodes && node.nodes.length) {
  725. this.body(node);
  726. after = this.raw(node, "after");
  727. } else {
  728. after = this.raw(node, "after", "emptyBody");
  729. }
  730. if (after) this.builder(after);
  731. this.builder("}", node, "end");
  732. }
  733. body(node) {
  734. let last = node.nodes.length - 1;
  735. while (last > 0) {
  736. if (node.nodes[last].type !== "comment") break;
  737. last -= 1;
  738. }
  739. let semicolon = this.raw(node, "semicolon");
  740. for (let i = 0; i < node.nodes.length; i++) {
  741. let child = node.nodes[i];
  742. let before = this.raw(child, "before");
  743. if (before) this.builder(before);
  744. this.stringify(child, last !== i || semicolon);
  745. }
  746. }
  747. comment(node) {
  748. let left = this.raw(node, "left", "commentLeft");
  749. let right = this.raw(node, "right", "commentRight");
  750. this.builder("/*" + left + node.text + right + "*/", node);
  751. }
  752. decl(node, semicolon) {
  753. let between = this.raw(node, "between", "colon");
  754. let string = node.prop + between + this.rawValue(node, "value");
  755. if (node.important) {
  756. string += node.raws.important || " !important";
  757. }
  758. if (semicolon) string += ";";
  759. this.builder(string, node);
  760. }
  761. document(node) {
  762. this.body(node);
  763. }
  764. raw(node, own, detect) {
  765. let value;
  766. if (!detect) detect = own;
  767. if (own) {
  768. value = node.raws[own];
  769. if (typeof value !== "undefined") return value;
  770. }
  771. let parent = node.parent;
  772. if (detect === "before") {
  773. if (!parent || parent.type === "root" && parent.first === node) {
  774. return "";
  775. }
  776. if (parent && parent.type === "document") {
  777. return "";
  778. }
  779. }
  780. if (!parent) return DEFAULT_RAW[detect];
  781. let root = node.root();
  782. if (!root.rawCache) root.rawCache = {};
  783. if (typeof root.rawCache[detect] !== "undefined") {
  784. return root.rawCache[detect];
  785. }
  786. if (detect === "before" || detect === "after") {
  787. return this.beforeAfter(node, detect);
  788. } else {
  789. let method = "raw" + capitalize(detect);
  790. if (this[method]) {
  791. value = this[method](root, node);
  792. } else {
  793. root.walk((i) => {
  794. value = i.raws[own];
  795. if (typeof value !== "undefined") return false;
  796. });
  797. }
  798. }
  799. if (typeof value === "undefined") value = DEFAULT_RAW[detect];
  800. root.rawCache[detect] = value;
  801. return value;
  802. }
  803. rawBeforeClose(root) {
  804. let value;
  805. root.walk((i) => {
  806. if (i.nodes && i.nodes.length > 0) {
  807. if (typeof i.raws.after !== "undefined") {
  808. value = i.raws.after;
  809. if (value.includes("\n")) {
  810. value = value.replace(/[^\n]+$/, "");
  811. }
  812. return false;
  813. }
  814. }
  815. });
  816. if (value) value = value.replace(/\S/g, "");
  817. return value;
  818. }
  819. rawBeforeComment(root, node) {
  820. let value;
  821. root.walkComments((i) => {
  822. if (typeof i.raws.before !== "undefined") {
  823. value = i.raws.before;
  824. if (value.includes("\n")) {
  825. value = value.replace(/[^\n]+$/, "");
  826. }
  827. return false;
  828. }
  829. });
  830. if (typeof value === "undefined") {
  831. value = this.raw(node, null, "beforeDecl");
  832. } else if (value) {
  833. value = value.replace(/\S/g, "");
  834. }
  835. return value;
  836. }
  837. rawBeforeDecl(root, node) {
  838. let value;
  839. root.walkDecls((i) => {
  840. if (typeof i.raws.before !== "undefined") {
  841. value = i.raws.before;
  842. if (value.includes("\n")) {
  843. value = value.replace(/[^\n]+$/, "");
  844. }
  845. return false;
  846. }
  847. });
  848. if (typeof value === "undefined") {
  849. value = this.raw(node, null, "beforeRule");
  850. } else if (value) {
  851. value = value.replace(/\S/g, "");
  852. }
  853. return value;
  854. }
  855. rawBeforeOpen(root) {
  856. let value;
  857. root.walk((i) => {
  858. if (i.type !== "decl") {
  859. value = i.raws.between;
  860. if (typeof value !== "undefined") return false;
  861. }
  862. });
  863. return value;
  864. }
  865. rawBeforeRule(root) {
  866. let value;
  867. root.walk((i) => {
  868. if (i.nodes && (i.parent !== root || root.first !== i)) {
  869. if (typeof i.raws.before !== "undefined") {
  870. value = i.raws.before;
  871. if (value.includes("\n")) {
  872. value = value.replace(/[^\n]+$/, "");
  873. }
  874. return false;
  875. }
  876. }
  877. });
  878. if (value) value = value.replace(/\S/g, "");
  879. return value;
  880. }
  881. rawColon(root) {
  882. let value;
  883. root.walkDecls((i) => {
  884. if (typeof i.raws.between !== "undefined") {
  885. value = i.raws.between.replace(/[^\s:]/g, "");
  886. return false;
  887. }
  888. });
  889. return value;
  890. }
  891. rawEmptyBody(root) {
  892. let value;
  893. root.walk((i) => {
  894. if (i.nodes && i.nodes.length === 0) {
  895. value = i.raws.after;
  896. if (typeof value !== "undefined") return false;
  897. }
  898. });
  899. return value;
  900. }
  901. rawIndent(root) {
  902. if (root.raws.indent) return root.raws.indent;
  903. let value;
  904. root.walk((i) => {
  905. let p = i.parent;
  906. if (p && p !== root && p.parent && p.parent === root) {
  907. if (typeof i.raws.before !== "undefined") {
  908. let parts = i.raws.before.split("\n");
  909. value = parts[parts.length - 1];
  910. value = value.replace(/\S/g, "");
  911. return false;
  912. }
  913. }
  914. });
  915. return value;
  916. }
  917. rawSemicolon(root) {
  918. let value;
  919. root.walk((i) => {
  920. if (i.nodes && i.nodes.length && i.last.type === "decl") {
  921. value = i.raws.semicolon;
  922. if (typeof value !== "undefined") return false;
  923. }
  924. });
  925. return value;
  926. }
  927. rawValue(node, prop) {
  928. let value = node[prop];
  929. let raw = node.raws[prop];
  930. if (raw && raw.value === value) {
  931. return raw.raw;
  932. }
  933. return value;
  934. }
  935. root(node) {
  936. this.body(node);
  937. if (node.raws.after) this.builder(node.raws.after);
  938. }
  939. rule(node) {
  940. this.block(node, this.rawValue(node, "selector"));
  941. if (node.raws.ownSemicolon) {
  942. this.builder(node.raws.ownSemicolon, node, "end");
  943. }
  944. }
  945. stringify(node, semicolon) {
  946. if (!this[node.type]) {
  947. throw new Error(
  948. "Unknown AST node type " + node.type + ". Maybe you need to change PostCSS stringifier."
  949. );
  950. }
  951. this[node.type](node, semicolon);
  952. }
  953. };
  954. module2.exports = Stringifier;
  955. Stringifier.default = Stringifier;
  956. }
  957. });
  958. // node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/stringify.js
  959. var require_stringify = __commonJS({
  960. "node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/stringify.js"(exports2, module2) {
  961. "use strict";
  962. var Stringifier = require_stringifier();
  963. function stringify(node, builder) {
  964. let str = new Stringifier(builder);
  965. str.stringify(node);
  966. }
  967. module2.exports = stringify;
  968. stringify.default = stringify;
  969. }
  970. });
  971. // node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/symbols.js
  972. var require_symbols = __commonJS({
  973. "node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/symbols.js"(exports2, module2) {
  974. "use strict";
  975. module2.exports.isClean = Symbol("isClean");
  976. module2.exports.my = Symbol("my");
  977. }
  978. });
  979. // node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/node.js
  980. var require_node = __commonJS({
  981. "node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/node.js"(exports2, module2) {
  982. "use strict";
  983. var CssSyntaxError = require_css_syntax_error();
  984. var Stringifier = require_stringifier();
  985. var stringify = require_stringify();
  986. var { isClean, my } = require_symbols();
  987. function cloneNode(obj, parent) {
  988. let cloned = new obj.constructor();
  989. for (let i in obj) {
  990. if (!Object.prototype.hasOwnProperty.call(obj, i)) {
  991. continue;
  992. }
  993. if (i === "proxyCache") continue;
  994. let value = obj[i];
  995. let type = typeof value;
  996. if (i === "parent" && type === "object") {
  997. if (parent) cloned[i] = parent;
  998. } else if (i === "source") {
  999. cloned[i] = value;
  1000. } else if (Array.isArray(value)) {
  1001. cloned[i] = value.map((j) => cloneNode(j, cloned));
  1002. } else {
  1003. if (type === "object" && value !== null) value = cloneNode(value);
  1004. cloned[i] = value;
  1005. }
  1006. }
  1007. return cloned;
  1008. }
  1009. function sourceOffset(inputCSS, position) {
  1010. if (position && typeof position.offset !== "undefined") {
  1011. return position.offset;
  1012. }
  1013. let column = 1;
  1014. let line = 1;
  1015. let offset = 0;
  1016. for (let i = 0; i < inputCSS.length; i++) {
  1017. if (line === position.line && column === position.column) {
  1018. offset = i;
  1019. break;
  1020. }
  1021. if (inputCSS[i] === "\n") {
  1022. column = 1;
  1023. line += 1;
  1024. } else {
  1025. column += 1;
  1026. }
  1027. }
  1028. return offset;
  1029. }
  1030. var Node = class {
  1031. get proxyOf() {
  1032. return this;
  1033. }
  1034. constructor(defaults = {}) {
  1035. this.raws = {};
  1036. this[isClean] = false;
  1037. this[my] = true;
  1038. for (let name in defaults) {
  1039. if (name === "nodes") {
  1040. this.nodes = [];
  1041. for (let node of defaults[name]) {
  1042. if (typeof node.clone === "function") {
  1043. this.append(node.clone());
  1044. } else {
  1045. this.append(node);
  1046. }
  1047. }
  1048. } else {
  1049. this[name] = defaults[name];
  1050. }
  1051. }
  1052. }
  1053. addToError(error) {
  1054. error.postcssNode = this;
  1055. if (error.stack && this.source && /\n\s{4}at /.test(error.stack)) {
  1056. let s = this.source;
  1057. error.stack = error.stack.replace(
  1058. /\n\s{4}at /,
  1059. `$&${s.input.from}:${s.start.line}:${s.start.column}$&`
  1060. );
  1061. }
  1062. return error;
  1063. }
  1064. after(add) {
  1065. this.parent.insertAfter(this, add);
  1066. return this;
  1067. }
  1068. assign(overrides = {}) {
  1069. for (let name in overrides) {
  1070. this[name] = overrides[name];
  1071. }
  1072. return this;
  1073. }
  1074. before(add) {
  1075. this.parent.insertBefore(this, add);
  1076. return this;
  1077. }
  1078. cleanRaws(keepBetween) {
  1079. delete this.raws.before;
  1080. delete this.raws.after;
  1081. if (!keepBetween) delete this.raws.between;
  1082. }
  1083. clone(overrides = {}) {
  1084. let cloned = cloneNode(this);
  1085. for (let name in overrides) {
  1086. cloned[name] = overrides[name];
  1087. }
  1088. return cloned;
  1089. }
  1090. cloneAfter(overrides = {}) {
  1091. let cloned = this.clone(overrides);
  1092. this.parent.insertAfter(this, cloned);
  1093. return cloned;
  1094. }
  1095. cloneBefore(overrides = {}) {
  1096. let cloned = this.clone(overrides);
  1097. this.parent.insertBefore(this, cloned);
  1098. return cloned;
  1099. }
  1100. error(message, opts = {}) {
  1101. if (this.source) {
  1102. let { end, start } = this.rangeBy(opts);
  1103. return this.source.input.error(
  1104. message,
  1105. { column: start.column, line: start.line },
  1106. { column: end.column, line: end.line },
  1107. opts
  1108. );
  1109. }
  1110. return new CssSyntaxError(message);
  1111. }
  1112. getProxyProcessor() {
  1113. return {
  1114. get(node, prop) {
  1115. if (prop === "proxyOf") {
  1116. return node;
  1117. } else if (prop === "root") {
  1118. return () => node.root().toProxy();
  1119. } else {
  1120. return node[prop];
  1121. }
  1122. },
  1123. set(node, prop, value) {
  1124. if (node[prop] === value) return true;
  1125. node[prop] = value;
  1126. if (prop === "prop" || prop === "value" || prop === "name" || prop === "params" || prop === "important" || /* c8 ignore next */
  1127. prop === "text") {
  1128. node.markDirty();
  1129. }
  1130. return true;
  1131. }
  1132. };
  1133. }
  1134. /* c8 ignore next 3 */
  1135. markClean() {
  1136. this[isClean] = true;
  1137. }
  1138. markDirty() {
  1139. if (this[isClean]) {
  1140. this[isClean] = false;
  1141. let next = this;
  1142. while (next = next.parent) {
  1143. next[isClean] = false;
  1144. }
  1145. }
  1146. }
  1147. next() {
  1148. if (!this.parent) return void 0;
  1149. let index = this.parent.index(this);
  1150. return this.parent.nodes[index + 1];
  1151. }
  1152. positionBy(opts) {
  1153. let pos = this.source.start;
  1154. if (opts.index) {
  1155. pos = this.positionInside(opts.index);
  1156. } else if (opts.word) {
  1157. let inputString = "document" in this.source.input ? this.source.input.document : this.source.input.css;
  1158. let stringRepresentation = inputString.slice(
  1159. sourceOffset(inputString, this.source.start),
  1160. sourceOffset(inputString, this.source.end)
  1161. );
  1162. let index = stringRepresentation.indexOf(opts.word);
  1163. if (index !== -1) pos = this.positionInside(index);
  1164. }
  1165. return pos;
  1166. }
  1167. positionInside(index) {
  1168. let column = this.source.start.column;
  1169. let line = this.source.start.line;
  1170. let inputString = "document" in this.source.input ? this.source.input.document : this.source.input.css;
  1171. let offset = sourceOffset(inputString, this.source.start);
  1172. let end = offset + index;
  1173. for (let i = offset; i < end; i++) {
  1174. if (inputString[i] === "\n") {
  1175. column = 1;
  1176. line += 1;
  1177. } else {
  1178. column += 1;
  1179. }
  1180. }
  1181. return { column, line };
  1182. }
  1183. prev() {
  1184. if (!this.parent) return void 0;
  1185. let index = this.parent.index(this);
  1186. return this.parent.nodes[index - 1];
  1187. }
  1188. rangeBy(opts) {
  1189. let start = {
  1190. column: this.source.start.column,
  1191. line: this.source.start.line
  1192. };
  1193. let end = this.source.end ? {
  1194. column: this.source.end.column + 1,
  1195. line: this.source.end.line
  1196. } : {
  1197. column: start.column + 1,
  1198. line: start.line
  1199. };
  1200. if (opts.word) {
  1201. let inputString = "document" in this.source.input ? this.source.input.document : this.source.input.css;
  1202. let stringRepresentation = inputString.slice(
  1203. sourceOffset(inputString, this.source.start),
  1204. sourceOffset(inputString, this.source.end)
  1205. );
  1206. let index = stringRepresentation.indexOf(opts.word);
  1207. if (index !== -1) {
  1208. start = this.positionInside(index);
  1209. end = this.positionInside(
  1210. index + opts.word.length
  1211. );
  1212. }
  1213. } else {
  1214. if (opts.start) {
  1215. start = {
  1216. column: opts.start.column,
  1217. line: opts.start.line
  1218. };
  1219. } else if (opts.index) {
  1220. start = this.positionInside(opts.index);
  1221. }
  1222. if (opts.end) {
  1223. end = {
  1224. column: opts.end.column,
  1225. line: opts.end.line
  1226. };
  1227. } else if (typeof opts.endIndex === "number") {
  1228. end = this.positionInside(opts.endIndex);
  1229. } else if (opts.index) {
  1230. end = this.positionInside(opts.index + 1);
  1231. }
  1232. }
  1233. if (end.line < start.line || end.line === start.line && end.column <= start.column) {
  1234. end = { column: start.column + 1, line: start.line };
  1235. }
  1236. return { end, start };
  1237. }
  1238. raw(prop, defaultType) {
  1239. let str = new Stringifier();
  1240. return str.raw(this, prop, defaultType);
  1241. }
  1242. remove() {
  1243. if (this.parent) {
  1244. this.parent.removeChild(this);
  1245. }
  1246. this.parent = void 0;
  1247. return this;
  1248. }
  1249. replaceWith(...nodes) {
  1250. if (this.parent) {
  1251. let bookmark = this;
  1252. let foundSelf = false;
  1253. for (let node of nodes) {
  1254. if (node === this) {
  1255. foundSelf = true;
  1256. } else if (foundSelf) {
  1257. this.parent.insertAfter(bookmark, node);
  1258. bookmark = node;
  1259. } else {
  1260. this.parent.insertBefore(bookmark, node);
  1261. }
  1262. }
  1263. if (!foundSelf) {
  1264. this.remove();
  1265. }
  1266. }
  1267. return this;
  1268. }
  1269. root() {
  1270. let result = this;
  1271. while (result.parent && result.parent.type !== "document") {
  1272. result = result.parent;
  1273. }
  1274. return result;
  1275. }
  1276. toJSON(_, inputs) {
  1277. let fixed = {};
  1278. let emitInputs = inputs == null;
  1279. inputs = inputs || /* @__PURE__ */ new Map();
  1280. let inputsNextIndex = 0;
  1281. for (let name in this) {
  1282. if (!Object.prototype.hasOwnProperty.call(this, name)) {
  1283. continue;
  1284. }
  1285. if (name === "parent" || name === "proxyCache") continue;
  1286. let value = this[name];
  1287. if (Array.isArray(value)) {
  1288. fixed[name] = value.map((i) => {
  1289. if (typeof i === "object" && i.toJSON) {
  1290. return i.toJSON(null, inputs);
  1291. } else {
  1292. return i;
  1293. }
  1294. });
  1295. } else if (typeof value === "object" && value.toJSON) {
  1296. fixed[name] = value.toJSON(null, inputs);
  1297. } else if (name === "source") {
  1298. let inputId = inputs.get(value.input);
  1299. if (inputId == null) {
  1300. inputId = inputsNextIndex;
  1301. inputs.set(value.input, inputsNextIndex);
  1302. inputsNextIndex++;
  1303. }
  1304. fixed[name] = {
  1305. end: value.end,
  1306. inputId,
  1307. start: value.start
  1308. };
  1309. } else {
  1310. fixed[name] = value;
  1311. }
  1312. }
  1313. if (emitInputs) {
  1314. fixed.inputs = [...inputs.keys()].map((input) => input.toJSON());
  1315. }
  1316. return fixed;
  1317. }
  1318. toProxy() {
  1319. if (!this.proxyCache) {
  1320. this.proxyCache = new Proxy(this, this.getProxyProcessor());
  1321. }
  1322. return this.proxyCache;
  1323. }
  1324. toString(stringifier = stringify) {
  1325. if (stringifier.stringify) stringifier = stringifier.stringify;
  1326. let result = "";
  1327. stringifier(this, (i) => {
  1328. result += i;
  1329. });
  1330. return result;
  1331. }
  1332. warn(result, text, opts) {
  1333. let data = { node: this };
  1334. for (let i in opts) data[i] = opts[i];
  1335. return result.warn(text, data);
  1336. }
  1337. };
  1338. module2.exports = Node;
  1339. Node.default = Node;
  1340. }
  1341. });
  1342. // node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/comment.js
  1343. var require_comment = __commonJS({
  1344. "node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/comment.js"(exports2, module2) {
  1345. "use strict";
  1346. var Node = require_node();
  1347. var Comment = class extends Node {
  1348. constructor(defaults) {
  1349. super(defaults);
  1350. this.type = "comment";
  1351. }
  1352. };
  1353. module2.exports = Comment;
  1354. Comment.default = Comment;
  1355. }
  1356. });
  1357. // node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/declaration.js
  1358. var require_declaration = __commonJS({
  1359. "node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/declaration.js"(exports2, module2) {
  1360. "use strict";
  1361. var Node = require_node();
  1362. var Declaration = class extends Node {
  1363. get variable() {
  1364. return this.prop.startsWith("--") || this.prop[0] === "$";
  1365. }
  1366. constructor(defaults) {
  1367. if (defaults && typeof defaults.value !== "undefined" && typeof defaults.value !== "string") {
  1368. defaults = __spreadProps(__spreadValues({}, defaults), { value: String(defaults.value) });
  1369. }
  1370. super(defaults);
  1371. this.type = "decl";
  1372. }
  1373. };
  1374. module2.exports = Declaration;
  1375. Declaration.default = Declaration;
  1376. }
  1377. });
  1378. // node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/container.js
  1379. var require_container = __commonJS({
  1380. "node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/container.js"(exports2, module2) {
  1381. "use strict";
  1382. var Comment = require_comment();
  1383. var Declaration = require_declaration();
  1384. var Node = require_node();
  1385. var { isClean, my } = require_symbols();
  1386. var AtRule;
  1387. var parse;
  1388. var Root;
  1389. var Rule;
  1390. function cleanSource(nodes) {
  1391. return nodes.map((i) => {
  1392. if (i.nodes) i.nodes = cleanSource(i.nodes);
  1393. delete i.source;
  1394. return i;
  1395. });
  1396. }
  1397. function markTreeDirty(node) {
  1398. node[isClean] = false;
  1399. if (node.proxyOf.nodes) {
  1400. for (let i of node.proxyOf.nodes) {
  1401. markTreeDirty(i);
  1402. }
  1403. }
  1404. }
  1405. var Container = class _Container extends Node {
  1406. get first() {
  1407. if (!this.proxyOf.nodes) return void 0;
  1408. return this.proxyOf.nodes[0];
  1409. }
  1410. get last() {
  1411. if (!this.proxyOf.nodes) return void 0;
  1412. return this.proxyOf.nodes[this.proxyOf.nodes.length - 1];
  1413. }
  1414. append(...children) {
  1415. for (let child of children) {
  1416. let nodes = this.normalize(child, this.last);
  1417. for (let node of nodes) this.proxyOf.nodes.push(node);
  1418. }
  1419. this.markDirty();
  1420. return this;
  1421. }
  1422. cleanRaws(keepBetween) {
  1423. super.cleanRaws(keepBetween);
  1424. if (this.nodes) {
  1425. for (let node of this.nodes) node.cleanRaws(keepBetween);
  1426. }
  1427. }
  1428. each(callback) {
  1429. if (!this.proxyOf.nodes) return void 0;
  1430. let iterator = this.getIterator();
  1431. let index, result;
  1432. while (this.indexes[iterator] < this.proxyOf.nodes.length) {
  1433. index = this.indexes[iterator];
  1434. result = callback(this.proxyOf.nodes[index], index);
  1435. if (result === false) break;
  1436. this.indexes[iterator] += 1;
  1437. }
  1438. delete this.indexes[iterator];
  1439. return result;
  1440. }
  1441. every(condition) {
  1442. return this.nodes.every(condition);
  1443. }
  1444. getIterator() {
  1445. if (!this.lastEach) this.lastEach = 0;
  1446. if (!this.indexes) this.indexes = {};
  1447. this.lastEach += 1;
  1448. let iterator = this.lastEach;
  1449. this.indexes[iterator] = 0;
  1450. return iterator;
  1451. }
  1452. getProxyProcessor() {
  1453. return {
  1454. get(node, prop) {
  1455. if (prop === "proxyOf") {
  1456. return node;
  1457. } else if (!node[prop]) {
  1458. return node[prop];
  1459. } else if (prop === "each" || typeof prop === "string" && prop.startsWith("walk")) {
  1460. return (...args) => {
  1461. return node[prop](
  1462. ...args.map((i) => {
  1463. if (typeof i === "function") {
  1464. return (child, index) => i(child.toProxy(), index);
  1465. } else {
  1466. return i;
  1467. }
  1468. })
  1469. );
  1470. };
  1471. } else if (prop === "every" || prop === "some") {
  1472. return (cb) => {
  1473. return node[prop](
  1474. (child, ...other) => cb(child.toProxy(), ...other)
  1475. );
  1476. };
  1477. } else if (prop === "root") {
  1478. return () => node.root().toProxy();
  1479. } else if (prop === "nodes") {
  1480. return node.nodes.map((i) => i.toProxy());
  1481. } else if (prop === "first" || prop === "last") {
  1482. return node[prop].toProxy();
  1483. } else {
  1484. return node[prop];
  1485. }
  1486. },
  1487. set(node, prop, value) {
  1488. if (node[prop] === value) return true;
  1489. node[prop] = value;
  1490. if (prop === "name" || prop === "params" || prop === "selector") {
  1491. node.markDirty();
  1492. }
  1493. return true;
  1494. }
  1495. };
  1496. }
  1497. index(child) {
  1498. if (typeof child === "number") return child;
  1499. if (child.proxyOf) child = child.proxyOf;
  1500. return this.proxyOf.nodes.indexOf(child);
  1501. }
  1502. insertAfter(exist, add) {
  1503. let existIndex = this.index(exist);
  1504. let nodes = this.normalize(add, this.proxyOf.nodes[existIndex]).reverse();
  1505. existIndex = this.index(exist);
  1506. for (let node of nodes) this.proxyOf.nodes.splice(existIndex + 1, 0, node);
  1507. let index;
  1508. for (let id in this.indexes) {
  1509. index = this.indexes[id];
  1510. if (existIndex < index) {
  1511. this.indexes[id] = index + nodes.length;
  1512. }
  1513. }
  1514. this.markDirty();
  1515. return this;
  1516. }
  1517. insertBefore(exist, add) {
  1518. let existIndex = this.index(exist);
  1519. let type = existIndex === 0 ? "prepend" : false;
  1520. let nodes = this.normalize(
  1521. add,
  1522. this.proxyOf.nodes[existIndex],
  1523. type
  1524. ).reverse();
  1525. existIndex = this.index(exist);
  1526. for (let node of nodes) this.proxyOf.nodes.splice(existIndex, 0, node);
  1527. let index;
  1528. for (let id in this.indexes) {
  1529. index = this.indexes[id];
  1530. if (existIndex <= index) {
  1531. this.indexes[id] = index + nodes.length;
  1532. }
  1533. }
  1534. this.markDirty();
  1535. return this;
  1536. }
  1537. normalize(nodes, sample) {
  1538. if (typeof nodes === "string") {
  1539. nodes = cleanSource(parse(nodes).nodes);
  1540. } else if (typeof nodes === "undefined") {
  1541. nodes = [];
  1542. } else if (Array.isArray(nodes)) {
  1543. nodes = nodes.slice(0);
  1544. for (let i of nodes) {
  1545. if (i.parent) i.parent.removeChild(i, "ignore");
  1546. }
  1547. } else if (nodes.type === "root" && this.type !== "document") {
  1548. nodes = nodes.nodes.slice(0);
  1549. for (let i of nodes) {
  1550. if (i.parent) i.parent.removeChild(i, "ignore");
  1551. }
  1552. } else if (nodes.type) {
  1553. nodes = [nodes];
  1554. } else if (nodes.prop) {
  1555. if (typeof nodes.value === "undefined") {
  1556. throw new Error("Value field is missed in node creation");
  1557. } else if (typeof nodes.value !== "string") {
  1558. nodes.value = String(nodes.value);
  1559. }
  1560. nodes = [new Declaration(nodes)];
  1561. } else if (nodes.selector || nodes.selectors) {
  1562. nodes = [new Rule(nodes)];
  1563. } else if (nodes.name) {
  1564. nodes = [new AtRule(nodes)];
  1565. } else if (nodes.text) {
  1566. nodes = [new Comment(nodes)];
  1567. } else {
  1568. throw new Error("Unknown node type in node creation");
  1569. }
  1570. let processed = nodes.map((i) => {
  1571. if (!i[my]) _Container.rebuild(i);
  1572. i = i.proxyOf;
  1573. if (i.parent) i.parent.removeChild(i);
  1574. if (i[isClean]) markTreeDirty(i);
  1575. if (!i.raws) i.raws = {};
  1576. if (typeof i.raws.before === "undefined") {
  1577. if (sample && typeof sample.raws.before !== "undefined") {
  1578. i.raws.before = sample.raws.before.replace(/\S/g, "");
  1579. }
  1580. }
  1581. i.parent = this.proxyOf;
  1582. return i;
  1583. });
  1584. return processed;
  1585. }
  1586. prepend(...children) {
  1587. children = children.reverse();
  1588. for (let child of children) {
  1589. let nodes = this.normalize(child, this.first, "prepend").reverse();
  1590. for (let node of nodes) this.proxyOf.nodes.unshift(node);
  1591. for (let id in this.indexes) {
  1592. this.indexes[id] = this.indexes[id] + nodes.length;
  1593. }
  1594. }
  1595. this.markDirty();
  1596. return this;
  1597. }
  1598. push(child) {
  1599. child.parent = this;
  1600. this.proxyOf.nodes.push(child);
  1601. return this;
  1602. }
  1603. removeAll() {
  1604. for (let node of this.proxyOf.nodes) node.parent = void 0;
  1605. this.proxyOf.nodes = [];
  1606. this.markDirty();
  1607. return this;
  1608. }
  1609. removeChild(child) {
  1610. child = this.index(child);
  1611. this.proxyOf.nodes[child].parent = void 0;
  1612. this.proxyOf.nodes.splice(child, 1);
  1613. let index;
  1614. for (let id in this.indexes) {
  1615. index = this.indexes[id];
  1616. if (index >= child) {
  1617. this.indexes[id] = index - 1;
  1618. }
  1619. }
  1620. this.markDirty();
  1621. return this;
  1622. }
  1623. replaceValues(pattern, opts, callback) {
  1624. if (!callback) {
  1625. callback = opts;
  1626. opts = {};
  1627. }
  1628. this.walkDecls((decl) => {
  1629. if (opts.props && !opts.props.includes(decl.prop)) return;
  1630. if (opts.fast && !decl.value.includes(opts.fast)) return;
  1631. decl.value = decl.value.replace(pattern, callback);
  1632. });
  1633. this.markDirty();
  1634. return this;
  1635. }
  1636. some(condition) {
  1637. return this.nodes.some(condition);
  1638. }
  1639. walk(callback) {
  1640. return this.each((child, i) => {
  1641. let result;
  1642. try {
  1643. result = callback(child, i);
  1644. } catch (e) {
  1645. throw child.addToError(e);
  1646. }
  1647. if (result !== false && child.walk) {
  1648. result = child.walk(callback);
  1649. }
  1650. return result;
  1651. });
  1652. }
  1653. walkAtRules(name, callback) {
  1654. if (!callback) {
  1655. callback = name;
  1656. return this.walk((child, i) => {
  1657. if (child.type === "atrule") {
  1658. return callback(child, i);
  1659. }
  1660. });
  1661. }
  1662. if (name instanceof RegExp) {
  1663. return this.walk((child, i) => {
  1664. if (child.type === "atrule" && name.test(child.name)) {
  1665. return callback(child, i);
  1666. }
  1667. });
  1668. }
  1669. return this.walk((child, i) => {
  1670. if (child.type === "atrule" && child.name === name) {
  1671. return callback(child, i);
  1672. }
  1673. });
  1674. }
  1675. walkComments(callback) {
  1676. return this.walk((child, i) => {
  1677. if (child.type === "comment") {
  1678. return callback(child, i);
  1679. }
  1680. });
  1681. }
  1682. walkDecls(prop, callback) {
  1683. if (!callback) {
  1684. callback = prop;
  1685. return this.walk((child, i) => {
  1686. if (child.type === "decl") {
  1687. return callback(child, i);
  1688. }
  1689. });
  1690. }
  1691. if (prop instanceof RegExp) {
  1692. return this.walk((child, i) => {
  1693. if (child.type === "decl" && prop.test(child.prop)) {
  1694. return callback(child, i);
  1695. }
  1696. });
  1697. }
  1698. return this.walk((child, i) => {
  1699. if (child.type === "decl" && child.prop === prop) {
  1700. return callback(child, i);
  1701. }
  1702. });
  1703. }
  1704. walkRules(selector, callback) {
  1705. if (!callback) {
  1706. callback = selector;
  1707. return this.walk((child, i) => {
  1708. if (child.type === "rule") {
  1709. return callback(child, i);
  1710. }
  1711. });
  1712. }
  1713. if (selector instanceof RegExp) {
  1714. return this.walk((child, i) => {
  1715. if (child.type === "rule" && selector.test(child.selector)) {
  1716. return callback(child, i);
  1717. }
  1718. });
  1719. }
  1720. return this.walk((child, i) => {
  1721. if (child.type === "rule" && child.selector === selector) {
  1722. return callback(child, i);
  1723. }
  1724. });
  1725. }
  1726. };
  1727. Container.registerParse = (dependant) => {
  1728. parse = dependant;
  1729. };
  1730. Container.registerRule = (dependant) => {
  1731. Rule = dependant;
  1732. };
  1733. Container.registerAtRule = (dependant) => {
  1734. AtRule = dependant;
  1735. };
  1736. Container.registerRoot = (dependant) => {
  1737. Root = dependant;
  1738. };
  1739. module2.exports = Container;
  1740. Container.default = Container;
  1741. Container.rebuild = (node) => {
  1742. if (node.type === "atrule") {
  1743. Object.setPrototypeOf(node, AtRule.prototype);
  1744. } else if (node.type === "rule") {
  1745. Object.setPrototypeOf(node, Rule.prototype);
  1746. } else if (node.type === "decl") {
  1747. Object.setPrototypeOf(node, Declaration.prototype);
  1748. } else if (node.type === "comment") {
  1749. Object.setPrototypeOf(node, Comment.prototype);
  1750. } else if (node.type === "root") {
  1751. Object.setPrototypeOf(node, Root.prototype);
  1752. }
  1753. node[my] = true;
  1754. if (node.nodes) {
  1755. node.nodes.forEach((child) => {
  1756. Container.rebuild(child);
  1757. });
  1758. }
  1759. };
  1760. }
  1761. });
  1762. // node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/at-rule.js
  1763. var require_at_rule = __commonJS({
  1764. "node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/at-rule.js"(exports2, module2) {
  1765. "use strict";
  1766. var Container = require_container();
  1767. var AtRule = class extends Container {
  1768. constructor(defaults) {
  1769. super(defaults);
  1770. this.type = "atrule";
  1771. }
  1772. append(...children) {
  1773. if (!this.proxyOf.nodes) this.nodes = [];
  1774. return super.append(...children);
  1775. }
  1776. prepend(...children) {
  1777. if (!this.proxyOf.nodes) this.nodes = [];
  1778. return super.prepend(...children);
  1779. }
  1780. };
  1781. module2.exports = AtRule;
  1782. AtRule.default = AtRule;
  1783. Container.registerAtRule(AtRule);
  1784. }
  1785. });
  1786. // node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/document.js
  1787. var require_document = __commonJS({
  1788. "node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/document.js"(exports2, module2) {
  1789. "use strict";
  1790. var Container = require_container();
  1791. var LazyResult;
  1792. var Processor;
  1793. var Document = class extends Container {
  1794. constructor(defaults) {
  1795. super(__spreadValues({ type: "document" }, defaults));
  1796. if (!this.nodes) {
  1797. this.nodes = [];
  1798. }
  1799. }
  1800. toResult(opts = {}) {
  1801. let lazy = new LazyResult(new Processor(), this, opts);
  1802. return lazy.stringify();
  1803. }
  1804. };
  1805. Document.registerLazyResult = (dependant) => {
  1806. LazyResult = dependant;
  1807. };
  1808. Document.registerProcessor = (dependant) => {
  1809. Processor = dependant;
  1810. };
  1811. module2.exports = Document;
  1812. Document.default = Document;
  1813. }
  1814. });
  1815. // node_modules/.aspect_rules_js/nanoid@3.3.8/node_modules/nanoid/non-secure/index.cjs
  1816. var require_non_secure = __commonJS({
  1817. "node_modules/.aspect_rules_js/nanoid@3.3.8/node_modules/nanoid/non-secure/index.cjs"(exports2, module2) {
  1818. var urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
  1819. var customAlphabet = (alphabet, defaultSize = 21) => {
  1820. return (size = defaultSize) => {
  1821. let id = "";
  1822. let i = size | 0;
  1823. while (i--) {
  1824. id += alphabet[Math.random() * alphabet.length | 0];
  1825. }
  1826. return id;
  1827. };
  1828. };
  1829. var nanoid = (size = 21) => {
  1830. let id = "";
  1831. let i = size | 0;
  1832. while (i--) {
  1833. id += urlAlphabet[Math.random() * 64 | 0];
  1834. }
  1835. return id;
  1836. };
  1837. module2.exports = { nanoid, customAlphabet };
  1838. }
  1839. });
  1840. // node_modules/.aspect_rules_js/source-map-js@1.2.1/node_modules/source-map-js/lib/base64.js
  1841. var require_base64 = __commonJS({
  1842. "node_modules/.aspect_rules_js/source-map-js@1.2.1/node_modules/source-map-js/lib/base64.js"(exports2) {
  1843. var intToCharMap = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");
  1844. exports2.encode = function(number) {
  1845. if (0 <= number && number < intToCharMap.length) {
  1846. return intToCharMap[number];
  1847. }
  1848. throw new TypeError("Must be between 0 and 63: " + number);
  1849. };
  1850. exports2.decode = function(charCode) {
  1851. var bigA = 65;
  1852. var bigZ = 90;
  1853. var littleA = 97;
  1854. var littleZ = 122;
  1855. var zero = 48;
  1856. var nine = 57;
  1857. var plus = 43;
  1858. var slash = 47;
  1859. var littleOffset = 26;
  1860. var numberOffset = 52;
  1861. if (bigA <= charCode && charCode <= bigZ) {
  1862. return charCode - bigA;
  1863. }
  1864. if (littleA <= charCode && charCode <= littleZ) {
  1865. return charCode - littleA + littleOffset;
  1866. }
  1867. if (zero <= charCode && charCode <= nine) {
  1868. return charCode - zero + numberOffset;
  1869. }
  1870. if (charCode == plus) {
  1871. return 62;
  1872. }
  1873. if (charCode == slash) {
  1874. return 63;
  1875. }
  1876. return -1;
  1877. };
  1878. }
  1879. });
  1880. // node_modules/.aspect_rules_js/source-map-js@1.2.1/node_modules/source-map-js/lib/base64-vlq.js
  1881. var require_base64_vlq = __commonJS({
  1882. "node_modules/.aspect_rules_js/source-map-js@1.2.1/node_modules/source-map-js/lib/base64-vlq.js"(exports2) {
  1883. var base64 = require_base64();
  1884. var VLQ_BASE_SHIFT = 5;
  1885. var VLQ_BASE = 1 << VLQ_BASE_SHIFT;
  1886. var VLQ_BASE_MASK = VLQ_BASE - 1;
  1887. var VLQ_CONTINUATION_BIT = VLQ_BASE;
  1888. function toVLQSigned(aValue) {
  1889. return aValue < 0 ? (-aValue << 1) + 1 : (aValue << 1) + 0;
  1890. }
  1891. function fromVLQSigned(aValue) {
  1892. var isNegative = (aValue & 1) === 1;
  1893. var shifted = aValue >> 1;
  1894. return isNegative ? -shifted : shifted;
  1895. }
  1896. exports2.encode = function base64VLQ_encode(aValue) {
  1897. var encoded = "";
  1898. var digit;
  1899. var vlq = toVLQSigned(aValue);
  1900. do {
  1901. digit = vlq & VLQ_BASE_MASK;
  1902. vlq >>>= VLQ_BASE_SHIFT;
  1903. if (vlq > 0) {
  1904. digit |= VLQ_CONTINUATION_BIT;
  1905. }
  1906. encoded += base64.encode(digit);
  1907. } while (vlq > 0);
  1908. return encoded;
  1909. };
  1910. exports2.decode = function base64VLQ_decode(aStr, aIndex, aOutParam) {
  1911. var strLen = aStr.length;
  1912. var result = 0;
  1913. var shift = 0;
  1914. var continuation, digit;
  1915. do {
  1916. if (aIndex >= strLen) {
  1917. throw new Error("Expected more digits in base 64 VLQ value.");
  1918. }
  1919. digit = base64.decode(aStr.charCodeAt(aIndex++));
  1920. if (digit === -1) {
  1921. throw new Error("Invalid base64 digit: " + aStr.charAt(aIndex - 1));
  1922. }
  1923. continuation = !!(digit & VLQ_CONTINUATION_BIT);
  1924. digit &= VLQ_BASE_MASK;
  1925. result = result + (digit << shift);
  1926. shift += VLQ_BASE_SHIFT;
  1927. } while (continuation);
  1928. aOutParam.value = fromVLQSigned(result);
  1929. aOutParam.rest = aIndex;
  1930. };
  1931. }
  1932. });
  1933. // node_modules/.aspect_rules_js/source-map-js@1.2.1/node_modules/source-map-js/lib/util.js
  1934. var require_util = __commonJS({
  1935. "node_modules/.aspect_rules_js/source-map-js@1.2.1/node_modules/source-map-js/lib/util.js"(exports2) {
  1936. function getArg(aArgs, aName, aDefaultValue) {
  1937. if (aName in aArgs) {
  1938. return aArgs[aName];
  1939. } else if (arguments.length === 3) {
  1940. return aDefaultValue;
  1941. } else {
  1942. throw new Error('"' + aName + '" is a required argument.');
  1943. }
  1944. }
  1945. exports2.getArg = getArg;
  1946. var urlRegexp = /^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/;
  1947. var dataUrlRegexp = /^data:.+\,.+$/;
  1948. function urlParse(aUrl) {
  1949. var match = aUrl.match(urlRegexp);
  1950. if (!match) {
  1951. return null;
  1952. }
  1953. return {
  1954. scheme: match[1],
  1955. auth: match[2],
  1956. host: match[3],
  1957. port: match[4],
  1958. path: match[5]
  1959. };
  1960. }
  1961. exports2.urlParse = urlParse;
  1962. function urlGenerate(aParsedUrl) {
  1963. var url = "";
  1964. if (aParsedUrl.scheme) {
  1965. url += aParsedUrl.scheme + ":";
  1966. }
  1967. url += "//";
  1968. if (aParsedUrl.auth) {
  1969. url += aParsedUrl.auth + "@";
  1970. }
  1971. if (aParsedUrl.host) {
  1972. url += aParsedUrl.host;
  1973. }
  1974. if (aParsedUrl.port) {
  1975. url += ":" + aParsedUrl.port;
  1976. }
  1977. if (aParsedUrl.path) {
  1978. url += aParsedUrl.path;
  1979. }
  1980. return url;
  1981. }
  1982. exports2.urlGenerate = urlGenerate;
  1983. var MAX_CACHED_INPUTS = 32;
  1984. function lruMemoize(f) {
  1985. var cache = [];
  1986. return function(input) {
  1987. for (var i = 0; i < cache.length; i++) {
  1988. if (cache[i].input === input) {
  1989. var temp = cache[0];
  1990. cache[0] = cache[i];
  1991. cache[i] = temp;
  1992. return cache[0].result;
  1993. }
  1994. }
  1995. var result = f(input);
  1996. cache.unshift({
  1997. input,
  1998. result
  1999. });
  2000. if (cache.length > MAX_CACHED_INPUTS) {
  2001. cache.pop();
  2002. }
  2003. return result;
  2004. };
  2005. }
  2006. var normalize = lruMemoize(function normalize2(aPath) {
  2007. var path = aPath;
  2008. var url = urlParse(aPath);
  2009. if (url) {
  2010. if (!url.path) {
  2011. return aPath;
  2012. }
  2013. path = url.path;
  2014. }
  2015. var isAbsolute = exports2.isAbsolute(path);
  2016. var parts = [];
  2017. var start = 0;
  2018. var i = 0;
  2019. while (true) {
  2020. start = i;
  2021. i = path.indexOf("/", start);
  2022. if (i === -1) {
  2023. parts.push(path.slice(start));
  2024. break;
  2025. } else {
  2026. parts.push(path.slice(start, i));
  2027. while (i < path.length && path[i] === "/") {
  2028. i++;
  2029. }
  2030. }
  2031. }
  2032. for (var part, up = 0, i = parts.length - 1; i >= 0; i--) {
  2033. part = parts[i];
  2034. if (part === ".") {
  2035. parts.splice(i, 1);
  2036. } else if (part === "..") {
  2037. up++;
  2038. } else if (up > 0) {
  2039. if (part === "") {
  2040. parts.splice(i + 1, up);
  2041. up = 0;
  2042. } else {
  2043. parts.splice(i, 2);
  2044. up--;
  2045. }
  2046. }
  2047. }
  2048. path = parts.join("/");
  2049. if (path === "") {
  2050. path = isAbsolute ? "/" : ".";
  2051. }
  2052. if (url) {
  2053. url.path = path;
  2054. return urlGenerate(url);
  2055. }
  2056. return path;
  2057. });
  2058. exports2.normalize = normalize;
  2059. function join(aRoot, aPath) {
  2060. if (aRoot === "") {
  2061. aRoot = ".";
  2062. }
  2063. if (aPath === "") {
  2064. aPath = ".";
  2065. }
  2066. var aPathUrl = urlParse(aPath);
  2067. var aRootUrl = urlParse(aRoot);
  2068. if (aRootUrl) {
  2069. aRoot = aRootUrl.path || "/";
  2070. }
  2071. if (aPathUrl && !aPathUrl.scheme) {
  2072. if (aRootUrl) {
  2073. aPathUrl.scheme = aRootUrl.scheme;
  2074. }
  2075. return urlGenerate(aPathUrl);
  2076. }
  2077. if (aPathUrl || aPath.match(dataUrlRegexp)) {
  2078. return aPath;
  2079. }
  2080. if (aRootUrl && !aRootUrl.host && !aRootUrl.path) {
  2081. aRootUrl.host = aPath;
  2082. return urlGenerate(aRootUrl);
  2083. }
  2084. var joined = aPath.charAt(0) === "/" ? aPath : normalize(aRoot.replace(/\/+$/, "") + "/" + aPath);
  2085. if (aRootUrl) {
  2086. aRootUrl.path = joined;
  2087. return urlGenerate(aRootUrl);
  2088. }
  2089. return joined;
  2090. }
  2091. exports2.join = join;
  2092. exports2.isAbsolute = function(aPath) {
  2093. return aPath.charAt(0) === "/" || urlRegexp.test(aPath);
  2094. };
  2095. function relative(aRoot, aPath) {
  2096. if (aRoot === "") {
  2097. aRoot = ".";
  2098. }
  2099. aRoot = aRoot.replace(/\/$/, "");
  2100. var level = 0;
  2101. while (aPath.indexOf(aRoot + "/") !== 0) {
  2102. var index = aRoot.lastIndexOf("/");
  2103. if (index < 0) {
  2104. return aPath;
  2105. }
  2106. aRoot = aRoot.slice(0, index);
  2107. if (aRoot.match(/^([^\/]+:\/)?\/*$/)) {
  2108. return aPath;
  2109. }
  2110. ++level;
  2111. }
  2112. return Array(level + 1).join("../") + aPath.substr(aRoot.length + 1);
  2113. }
  2114. exports2.relative = relative;
  2115. var supportsNullProto = function() {
  2116. var obj = /* @__PURE__ */ Object.create(null);
  2117. return !("__proto__" in obj);
  2118. }();
  2119. function identity(s) {
  2120. return s;
  2121. }
  2122. function toSetString(aStr) {
  2123. if (isProtoString(aStr)) {
  2124. return "$" + aStr;
  2125. }
  2126. return aStr;
  2127. }
  2128. exports2.toSetString = supportsNullProto ? identity : toSetString;
  2129. function fromSetString(aStr) {
  2130. if (isProtoString(aStr)) {
  2131. return aStr.slice(1);
  2132. }
  2133. return aStr;
  2134. }
  2135. exports2.fromSetString = supportsNullProto ? identity : fromSetString;
  2136. function isProtoString(s) {
  2137. if (!s) {
  2138. return false;
  2139. }
  2140. var length = s.length;
  2141. if (length < 9) {
  2142. return false;
  2143. }
  2144. if (s.charCodeAt(length - 1) !== 95 || s.charCodeAt(length - 2) !== 95 || s.charCodeAt(length - 3) !== 111 || s.charCodeAt(length - 4) !== 116 || s.charCodeAt(length - 5) !== 111 || s.charCodeAt(length - 6) !== 114 || s.charCodeAt(length - 7) !== 112 || s.charCodeAt(length - 8) !== 95 || s.charCodeAt(length - 9) !== 95) {
  2145. return false;
  2146. }
  2147. for (var i = length - 10; i >= 0; i--) {
  2148. if (s.charCodeAt(i) !== 36) {
  2149. return false;
  2150. }
  2151. }
  2152. return true;
  2153. }
  2154. function compareByOriginalPositions(mappingA, mappingB, onlyCompareOriginal) {
  2155. var cmp = strcmp(mappingA.source, mappingB.source);
  2156. if (cmp !== 0) {
  2157. return cmp;
  2158. }
  2159. cmp = mappingA.originalLine - mappingB.originalLine;
  2160. if (cmp !== 0) {
  2161. return cmp;
  2162. }
  2163. cmp = mappingA.originalColumn - mappingB.originalColumn;
  2164. if (cmp !== 0 || onlyCompareOriginal) {
  2165. return cmp;
  2166. }
  2167. cmp = mappingA.generatedColumn - mappingB.generatedColumn;
  2168. if (cmp !== 0) {
  2169. return cmp;
  2170. }
  2171. cmp = mappingA.generatedLine - mappingB.generatedLine;
  2172. if (cmp !== 0) {
  2173. return cmp;
  2174. }
  2175. return strcmp(mappingA.name, mappingB.name);
  2176. }
  2177. exports2.compareByOriginalPositions = compareByOriginalPositions;
  2178. function compareByOriginalPositionsNoSource(mappingA, mappingB, onlyCompareOriginal) {
  2179. var cmp;
  2180. cmp = mappingA.originalLine - mappingB.originalLine;
  2181. if (cmp !== 0) {
  2182. return cmp;
  2183. }
  2184. cmp = mappingA.originalColumn - mappingB.originalColumn;
  2185. if (cmp !== 0 || onlyCompareOriginal) {
  2186. return cmp;
  2187. }
  2188. cmp = mappingA.generatedColumn - mappingB.generatedColumn;
  2189. if (cmp !== 0) {
  2190. return cmp;
  2191. }
  2192. cmp = mappingA.generatedLine - mappingB.generatedLine;
  2193. if (cmp !== 0) {
  2194. return cmp;
  2195. }
  2196. return strcmp(mappingA.name, mappingB.name);
  2197. }
  2198. exports2.compareByOriginalPositionsNoSource = compareByOriginalPositionsNoSource;
  2199. function compareByGeneratedPositionsDeflated(mappingA, mappingB, onlyCompareGenerated) {
  2200. var cmp = mappingA.generatedLine - mappingB.generatedLine;
  2201. if (cmp !== 0) {
  2202. return cmp;
  2203. }
  2204. cmp = mappingA.generatedColumn - mappingB.generatedColumn;
  2205. if (cmp !== 0 || onlyCompareGenerated) {
  2206. return cmp;
  2207. }
  2208. cmp = strcmp(mappingA.source, mappingB.source);
  2209. if (cmp !== 0) {
  2210. return cmp;
  2211. }
  2212. cmp = mappingA.originalLine - mappingB.originalLine;
  2213. if (cmp !== 0) {
  2214. return cmp;
  2215. }
  2216. cmp = mappingA.originalColumn - mappingB.originalColumn;
  2217. if (cmp !== 0) {
  2218. return cmp;
  2219. }
  2220. return strcmp(mappingA.name, mappingB.name);
  2221. }
  2222. exports2.compareByGeneratedPositionsDeflated = compareByGeneratedPositionsDeflated;
  2223. function compareByGeneratedPositionsDeflatedNoLine(mappingA, mappingB, onlyCompareGenerated) {
  2224. var cmp = mappingA.generatedColumn - mappingB.generatedColumn;
  2225. if (cmp !== 0 || onlyCompareGenerated) {
  2226. return cmp;
  2227. }
  2228. cmp = strcmp(mappingA.source, mappingB.source);
  2229. if (cmp !== 0) {
  2230. return cmp;
  2231. }
  2232. cmp = mappingA.originalLine - mappingB.originalLine;
  2233. if (cmp !== 0) {
  2234. return cmp;
  2235. }
  2236. cmp = mappingA.originalColumn - mappingB.originalColumn;
  2237. if (cmp !== 0) {
  2238. return cmp;
  2239. }
  2240. return strcmp(mappingA.name, mappingB.name);
  2241. }
  2242. exports2.compareByGeneratedPositionsDeflatedNoLine = compareByGeneratedPositionsDeflatedNoLine;
  2243. function strcmp(aStr1, aStr2) {
  2244. if (aStr1 === aStr2) {
  2245. return 0;
  2246. }
  2247. if (aStr1 === null) {
  2248. return 1;
  2249. }
  2250. if (aStr2 === null) {
  2251. return -1;
  2252. }
  2253. if (aStr1 > aStr2) {
  2254. return 1;
  2255. }
  2256. return -1;
  2257. }
  2258. function compareByGeneratedPositionsInflated(mappingA, mappingB) {
  2259. var cmp = mappingA.generatedLine - mappingB.generatedLine;
  2260. if (cmp !== 0) {
  2261. return cmp;
  2262. }
  2263. cmp = mappingA.generatedColumn - mappingB.generatedColumn;
  2264. if (cmp !== 0) {
  2265. return cmp;
  2266. }
  2267. cmp = strcmp(mappingA.source, mappingB.source);
  2268. if (cmp !== 0) {
  2269. return cmp;
  2270. }
  2271. cmp = mappingA.originalLine - mappingB.originalLine;
  2272. if (cmp !== 0) {
  2273. return cmp;
  2274. }
  2275. cmp = mappingA.originalColumn - mappingB.originalColumn;
  2276. if (cmp !== 0) {
  2277. return cmp;
  2278. }
  2279. return strcmp(mappingA.name, mappingB.name);
  2280. }
  2281. exports2.compareByGeneratedPositionsInflated = compareByGeneratedPositionsInflated;
  2282. function parseSourceMapInput(str) {
  2283. return JSON.parse(str.replace(/^\)]}'[^\n]*\n/, ""));
  2284. }
  2285. exports2.parseSourceMapInput = parseSourceMapInput;
  2286. function computeSourceURL(sourceRoot, sourceURL, sourceMapURL) {
  2287. sourceURL = sourceURL || "";
  2288. if (sourceRoot) {
  2289. if (sourceRoot[sourceRoot.length - 1] !== "/" && sourceURL[0] !== "/") {
  2290. sourceRoot += "/";
  2291. }
  2292. sourceURL = sourceRoot + sourceURL;
  2293. }
  2294. if (sourceMapURL) {
  2295. var parsed = urlParse(sourceMapURL);
  2296. if (!parsed) {
  2297. throw new Error("sourceMapURL could not be parsed");
  2298. }
  2299. if (parsed.path) {
  2300. var index = parsed.path.lastIndexOf("/");
  2301. if (index >= 0) {
  2302. parsed.path = parsed.path.substring(0, index + 1);
  2303. }
  2304. }
  2305. sourceURL = join(urlGenerate(parsed), sourceURL);
  2306. }
  2307. return normalize(sourceURL);
  2308. }
  2309. exports2.computeSourceURL = computeSourceURL;
  2310. }
  2311. });
  2312. // node_modules/.aspect_rules_js/source-map-js@1.2.1/node_modules/source-map-js/lib/array-set.js
  2313. var require_array_set = __commonJS({
  2314. "node_modules/.aspect_rules_js/source-map-js@1.2.1/node_modules/source-map-js/lib/array-set.js"(exports2) {
  2315. var util = require_util();
  2316. var has = Object.prototype.hasOwnProperty;
  2317. var hasNativeMap = typeof Map !== "undefined";
  2318. function ArraySet() {
  2319. this._array = [];
  2320. this._set = hasNativeMap ? /* @__PURE__ */ new Map() : /* @__PURE__ */ Object.create(null);
  2321. }
  2322. ArraySet.fromArray = function ArraySet_fromArray(aArray, aAllowDuplicates) {
  2323. var set = new ArraySet();
  2324. for (var i = 0, len = aArray.length; i < len; i++) {
  2325. set.add(aArray[i], aAllowDuplicates);
  2326. }
  2327. return set;
  2328. };
  2329. ArraySet.prototype.size = function ArraySet_size() {
  2330. return hasNativeMap ? this._set.size : Object.getOwnPropertyNames(this._set).length;
  2331. };
  2332. ArraySet.prototype.add = function ArraySet_add(aStr, aAllowDuplicates) {
  2333. var sStr = hasNativeMap ? aStr : util.toSetString(aStr);
  2334. var isDuplicate = hasNativeMap ? this.has(aStr) : has.call(this._set, sStr);
  2335. var idx = this._array.length;
  2336. if (!isDuplicate || aAllowDuplicates) {
  2337. this._array.push(aStr);
  2338. }
  2339. if (!isDuplicate) {
  2340. if (hasNativeMap) {
  2341. this._set.set(aStr, idx);
  2342. } else {
  2343. this._set[sStr] = idx;
  2344. }
  2345. }
  2346. };
  2347. ArraySet.prototype.has = function ArraySet_has(aStr) {
  2348. if (hasNativeMap) {
  2349. return this._set.has(aStr);
  2350. } else {
  2351. var sStr = util.toSetString(aStr);
  2352. return has.call(this._set, sStr);
  2353. }
  2354. };
  2355. ArraySet.prototype.indexOf = function ArraySet_indexOf(aStr) {
  2356. if (hasNativeMap) {
  2357. var idx = this._set.get(aStr);
  2358. if (idx >= 0) {
  2359. return idx;
  2360. }
  2361. } else {
  2362. var sStr = util.toSetString(aStr);
  2363. if (has.call(this._set, sStr)) {
  2364. return this._set[sStr];
  2365. }
  2366. }
  2367. throw new Error('"' + aStr + '" is not in the set.');
  2368. };
  2369. ArraySet.prototype.at = function ArraySet_at(aIdx) {
  2370. if (aIdx >= 0 && aIdx < this._array.length) {
  2371. return this._array[aIdx];
  2372. }
  2373. throw new Error("No element indexed by " + aIdx);
  2374. };
  2375. ArraySet.prototype.toArray = function ArraySet_toArray() {
  2376. return this._array.slice();
  2377. };
  2378. exports2.ArraySet = ArraySet;
  2379. }
  2380. });
  2381. // node_modules/.aspect_rules_js/source-map-js@1.2.1/node_modules/source-map-js/lib/mapping-list.js
  2382. var require_mapping_list = __commonJS({
  2383. "node_modules/.aspect_rules_js/source-map-js@1.2.1/node_modules/source-map-js/lib/mapping-list.js"(exports2) {
  2384. var util = require_util();
  2385. function generatedPositionAfter(mappingA, mappingB) {
  2386. var lineA = mappingA.generatedLine;
  2387. var lineB = mappingB.generatedLine;
  2388. var columnA = mappingA.generatedColumn;
  2389. var columnB = mappingB.generatedColumn;
  2390. return lineB > lineA || lineB == lineA && columnB >= columnA || util.compareByGeneratedPositionsInflated(mappingA, mappingB) <= 0;
  2391. }
  2392. function MappingList() {
  2393. this._array = [];
  2394. this._sorted = true;
  2395. this._last = { generatedLine: -1, generatedColumn: 0 };
  2396. }
  2397. MappingList.prototype.unsortedForEach = function MappingList_forEach(aCallback, aThisArg) {
  2398. this._array.forEach(aCallback, aThisArg);
  2399. };
  2400. MappingList.prototype.add = function MappingList_add(aMapping) {
  2401. if (generatedPositionAfter(this._last, aMapping)) {
  2402. this._last = aMapping;
  2403. this._array.push(aMapping);
  2404. } else {
  2405. this._sorted = false;
  2406. this._array.push(aMapping);
  2407. }
  2408. };
  2409. MappingList.prototype.toArray = function MappingList_toArray() {
  2410. if (!this._sorted) {
  2411. this._array.sort(util.compareByGeneratedPositionsInflated);
  2412. this._sorted = true;
  2413. }
  2414. return this._array;
  2415. };
  2416. exports2.MappingList = MappingList;
  2417. }
  2418. });
  2419. // node_modules/.aspect_rules_js/source-map-js@1.2.1/node_modules/source-map-js/lib/source-map-generator.js
  2420. var require_source_map_generator = __commonJS({
  2421. "node_modules/.aspect_rules_js/source-map-js@1.2.1/node_modules/source-map-js/lib/source-map-generator.js"(exports2) {
  2422. var base64VLQ = require_base64_vlq();
  2423. var util = require_util();
  2424. var ArraySet = require_array_set().ArraySet;
  2425. var MappingList = require_mapping_list().MappingList;
  2426. function SourceMapGenerator(aArgs) {
  2427. if (!aArgs) {
  2428. aArgs = {};
  2429. }
  2430. this._file = util.getArg(aArgs, "file", null);
  2431. this._sourceRoot = util.getArg(aArgs, "sourceRoot", null);
  2432. this._skipValidation = util.getArg(aArgs, "skipValidation", false);
  2433. this._ignoreInvalidMapping = util.getArg(aArgs, "ignoreInvalidMapping", false);
  2434. this._sources = new ArraySet();
  2435. this._names = new ArraySet();
  2436. this._mappings = new MappingList();
  2437. this._sourcesContents = null;
  2438. }
  2439. SourceMapGenerator.prototype._version = 3;
  2440. SourceMapGenerator.fromSourceMap = function SourceMapGenerator_fromSourceMap(aSourceMapConsumer, generatorOps) {
  2441. var sourceRoot = aSourceMapConsumer.sourceRoot;
  2442. var generator = new SourceMapGenerator(Object.assign(generatorOps || {}, {
  2443. file: aSourceMapConsumer.file,
  2444. sourceRoot
  2445. }));
  2446. aSourceMapConsumer.eachMapping(function(mapping) {
  2447. var newMapping = {
  2448. generated: {
  2449. line: mapping.generatedLine,
  2450. column: mapping.generatedColumn
  2451. }
  2452. };
  2453. if (mapping.source != null) {
  2454. newMapping.source = mapping.source;
  2455. if (sourceRoot != null) {
  2456. newMapping.source = util.relative(sourceRoot, newMapping.source);
  2457. }
  2458. newMapping.original = {
  2459. line: mapping.originalLine,
  2460. column: mapping.originalColumn
  2461. };
  2462. if (mapping.name != null) {
  2463. newMapping.name = mapping.name;
  2464. }
  2465. }
  2466. generator.addMapping(newMapping);
  2467. });
  2468. aSourceMapConsumer.sources.forEach(function(sourceFile) {
  2469. var sourceRelative = sourceFile;
  2470. if (sourceRoot !== null) {
  2471. sourceRelative = util.relative(sourceRoot, sourceFile);
  2472. }
  2473. if (!generator._sources.has(sourceRelative)) {
  2474. generator._sources.add(sourceRelative);
  2475. }
  2476. var content = aSourceMapConsumer.sourceContentFor(sourceFile);
  2477. if (content != null) {
  2478. generator.setSourceContent(sourceFile, content);
  2479. }
  2480. });
  2481. return generator;
  2482. };
  2483. SourceMapGenerator.prototype.addMapping = function SourceMapGenerator_addMapping(aArgs) {
  2484. var generated = util.getArg(aArgs, "generated");
  2485. var original = util.getArg(aArgs, "original", null);
  2486. var source = util.getArg(aArgs, "source", null);
  2487. var name = util.getArg(aArgs, "name", null);
  2488. if (!this._skipValidation) {
  2489. if (this._validateMapping(generated, original, source, name) === false) {
  2490. return;
  2491. }
  2492. }
  2493. if (source != null) {
  2494. source = String(source);
  2495. if (!this._sources.has(source)) {
  2496. this._sources.add(source);
  2497. }
  2498. }
  2499. if (name != null) {
  2500. name = String(name);
  2501. if (!this._names.has(name)) {
  2502. this._names.add(name);
  2503. }
  2504. }
  2505. this._mappings.add({
  2506. generatedLine: generated.line,
  2507. generatedColumn: generated.column,
  2508. originalLine: original != null && original.line,
  2509. originalColumn: original != null && original.column,
  2510. source,
  2511. name
  2512. });
  2513. };
  2514. SourceMapGenerator.prototype.setSourceContent = function SourceMapGenerator_setSourceContent(aSourceFile, aSourceContent) {
  2515. var source = aSourceFile;
  2516. if (this._sourceRoot != null) {
  2517. source = util.relative(this._sourceRoot, source);
  2518. }
  2519. if (aSourceContent != null) {
  2520. if (!this._sourcesContents) {
  2521. this._sourcesContents = /* @__PURE__ */ Object.create(null);
  2522. }
  2523. this._sourcesContents[util.toSetString(source)] = aSourceContent;
  2524. } else if (this._sourcesContents) {
  2525. delete this._sourcesContents[util.toSetString(source)];
  2526. if (Object.keys(this._sourcesContents).length === 0) {
  2527. this._sourcesContents = null;
  2528. }
  2529. }
  2530. };
  2531. SourceMapGenerator.prototype.applySourceMap = function SourceMapGenerator_applySourceMap(aSourceMapConsumer, aSourceFile, aSourceMapPath) {
  2532. var sourceFile = aSourceFile;
  2533. if (aSourceFile == null) {
  2534. if (aSourceMapConsumer.file == null) {
  2535. throw new Error(
  2536. `SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`
  2537. );
  2538. }
  2539. sourceFile = aSourceMapConsumer.file;
  2540. }
  2541. var sourceRoot = this._sourceRoot;
  2542. if (sourceRoot != null) {
  2543. sourceFile = util.relative(sourceRoot, sourceFile);
  2544. }
  2545. var newSources = new ArraySet();
  2546. var newNames = new ArraySet();
  2547. this._mappings.unsortedForEach(function(mapping) {
  2548. if (mapping.source === sourceFile && mapping.originalLine != null) {
  2549. var original = aSourceMapConsumer.originalPositionFor({
  2550. line: mapping.originalLine,
  2551. column: mapping.originalColumn
  2552. });
  2553. if (original.source != null) {
  2554. mapping.source = original.source;
  2555. if (aSourceMapPath != null) {
  2556. mapping.source = util.join(aSourceMapPath, mapping.source);
  2557. }
  2558. if (sourceRoot != null) {
  2559. mapping.source = util.relative(sourceRoot, mapping.source);
  2560. }
  2561. mapping.originalLine = original.line;
  2562. mapping.originalColumn = original.column;
  2563. if (original.name != null) {
  2564. mapping.name = original.name;
  2565. }
  2566. }
  2567. }
  2568. var source = mapping.source;
  2569. if (source != null && !newSources.has(source)) {
  2570. newSources.add(source);
  2571. }
  2572. var name = mapping.name;
  2573. if (name != null && !newNames.has(name)) {
  2574. newNames.add(name);
  2575. }
  2576. }, this);
  2577. this._sources = newSources;
  2578. this._names = newNames;
  2579. aSourceMapConsumer.sources.forEach(function(sourceFile2) {
  2580. var content = aSourceMapConsumer.sourceContentFor(sourceFile2);
  2581. if (content != null) {
  2582. if (aSourceMapPath != null) {
  2583. sourceFile2 = util.join(aSourceMapPath, sourceFile2);
  2584. }
  2585. if (sourceRoot != null) {
  2586. sourceFile2 = util.relative(sourceRoot, sourceFile2);
  2587. }
  2588. this.setSourceContent(sourceFile2, content);
  2589. }
  2590. }, this);
  2591. };
  2592. SourceMapGenerator.prototype._validateMapping = function SourceMapGenerator_validateMapping(aGenerated, aOriginal, aSource, aName) {
  2593. if (aOriginal && typeof aOriginal.line !== "number" && typeof aOriginal.column !== "number") {
  2594. var message = "original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.";
  2595. if (this._ignoreInvalidMapping) {
  2596. if (typeof console !== "undefined" && console.warn) {
  2597. console.warn(message);
  2598. }
  2599. return false;
  2600. } else {
  2601. throw new Error(message);
  2602. }
  2603. }
  2604. if (aGenerated && "line" in aGenerated && "column" in aGenerated && aGenerated.line > 0 && aGenerated.column >= 0 && !aOriginal && !aSource && !aName) {
  2605. return;
  2606. } else if (aGenerated && "line" in aGenerated && "column" in aGenerated && aOriginal && "line" in aOriginal && "column" in aOriginal && aGenerated.line > 0 && aGenerated.column >= 0 && aOriginal.line > 0 && aOriginal.column >= 0 && aSource) {
  2607. return;
  2608. } else {
  2609. var message = "Invalid mapping: " + JSON.stringify({
  2610. generated: aGenerated,
  2611. source: aSource,
  2612. original: aOriginal,
  2613. name: aName
  2614. });
  2615. if (this._ignoreInvalidMapping) {
  2616. if (typeof console !== "undefined" && console.warn) {
  2617. console.warn(message);
  2618. }
  2619. return false;
  2620. } else {
  2621. throw new Error(message);
  2622. }
  2623. }
  2624. };
  2625. SourceMapGenerator.prototype._serializeMappings = function SourceMapGenerator_serializeMappings() {
  2626. var previousGeneratedColumn = 0;
  2627. var previousGeneratedLine = 1;
  2628. var previousOriginalColumn = 0;
  2629. var previousOriginalLine = 0;
  2630. var previousName = 0;
  2631. var previousSource = 0;
  2632. var result = "";
  2633. var next;
  2634. var mapping;
  2635. var nameIdx;
  2636. var sourceIdx;
  2637. var mappings = this._mappings.toArray();
  2638. for (var i = 0, len = mappings.length; i < len; i++) {
  2639. mapping = mappings[i];
  2640. next = "";
  2641. if (mapping.generatedLine !== previousGeneratedLine) {
  2642. previousGeneratedColumn = 0;
  2643. while (mapping.generatedLine !== previousGeneratedLine) {
  2644. next += ";";
  2645. previousGeneratedLine++;
  2646. }
  2647. } else {
  2648. if (i > 0) {
  2649. if (!util.compareByGeneratedPositionsInflated(mapping, mappings[i - 1])) {
  2650. continue;
  2651. }
  2652. next += ",";
  2653. }
  2654. }
  2655. next += base64VLQ.encode(mapping.generatedColumn - previousGeneratedColumn);
  2656. previousGeneratedColumn = mapping.generatedColumn;
  2657. if (mapping.source != null) {
  2658. sourceIdx = this._sources.indexOf(mapping.source);
  2659. next += base64VLQ.encode(sourceIdx - previousSource);
  2660. previousSource = sourceIdx;
  2661. next += base64VLQ.encode(mapping.originalLine - 1 - previousOriginalLine);
  2662. previousOriginalLine = mapping.originalLine - 1;
  2663. next += base64VLQ.encode(mapping.originalColumn - previousOriginalColumn);
  2664. previousOriginalColumn = mapping.originalColumn;
  2665. if (mapping.name != null) {
  2666. nameIdx = this._names.indexOf(mapping.name);
  2667. next += base64VLQ.encode(nameIdx - previousName);
  2668. previousName = nameIdx;
  2669. }
  2670. }
  2671. result += next;
  2672. }
  2673. return result;
  2674. };
  2675. SourceMapGenerator.prototype._generateSourcesContent = function SourceMapGenerator_generateSourcesContent(aSources, aSourceRoot) {
  2676. return aSources.map(function(source) {
  2677. if (!this._sourcesContents) {
  2678. return null;
  2679. }
  2680. if (aSourceRoot != null) {
  2681. source = util.relative(aSourceRoot, source);
  2682. }
  2683. var key = util.toSetString(source);
  2684. return Object.prototype.hasOwnProperty.call(this._sourcesContents, key) ? this._sourcesContents[key] : null;
  2685. }, this);
  2686. };
  2687. SourceMapGenerator.prototype.toJSON = function SourceMapGenerator_toJSON() {
  2688. var map = {
  2689. version: this._version,
  2690. sources: this._sources.toArray(),
  2691. names: this._names.toArray(),
  2692. mappings: this._serializeMappings()
  2693. };
  2694. if (this._file != null) {
  2695. map.file = this._file;
  2696. }
  2697. if (this._sourceRoot != null) {
  2698. map.sourceRoot = this._sourceRoot;
  2699. }
  2700. if (this._sourcesContents) {
  2701. map.sourcesContent = this._generateSourcesContent(map.sources, map.sourceRoot);
  2702. }
  2703. return map;
  2704. };
  2705. SourceMapGenerator.prototype.toString = function SourceMapGenerator_toString() {
  2706. return JSON.stringify(this.toJSON());
  2707. };
  2708. exports2.SourceMapGenerator = SourceMapGenerator;
  2709. }
  2710. });
  2711. // node_modules/.aspect_rules_js/source-map-js@1.2.1/node_modules/source-map-js/lib/binary-search.js
  2712. var require_binary_search = __commonJS({
  2713. "node_modules/.aspect_rules_js/source-map-js@1.2.1/node_modules/source-map-js/lib/binary-search.js"(exports2) {
  2714. exports2.GREATEST_LOWER_BOUND = 1;
  2715. exports2.LEAST_UPPER_BOUND = 2;
  2716. function recursiveSearch(aLow, aHigh, aNeedle, aHaystack, aCompare, aBias) {
  2717. var mid = Math.floor((aHigh - aLow) / 2) + aLow;
  2718. var cmp = aCompare(aNeedle, aHaystack[mid], true);
  2719. if (cmp === 0) {
  2720. return mid;
  2721. } else if (cmp > 0) {
  2722. if (aHigh - mid > 1) {
  2723. return recursiveSearch(mid, aHigh, aNeedle, aHaystack, aCompare, aBias);
  2724. }
  2725. if (aBias == exports2.LEAST_UPPER_BOUND) {
  2726. return aHigh < aHaystack.length ? aHigh : -1;
  2727. } else {
  2728. return mid;
  2729. }
  2730. } else {
  2731. if (mid - aLow > 1) {
  2732. return recursiveSearch(aLow, mid, aNeedle, aHaystack, aCompare, aBias);
  2733. }
  2734. if (aBias == exports2.LEAST_UPPER_BOUND) {
  2735. return mid;
  2736. } else {
  2737. return aLow < 0 ? -1 : aLow;
  2738. }
  2739. }
  2740. }
  2741. exports2.search = function search(aNeedle, aHaystack, aCompare, aBias) {
  2742. if (aHaystack.length === 0) {
  2743. return -1;
  2744. }
  2745. var index = recursiveSearch(
  2746. -1,
  2747. aHaystack.length,
  2748. aNeedle,
  2749. aHaystack,
  2750. aCompare,
  2751. aBias || exports2.GREATEST_LOWER_BOUND
  2752. );
  2753. if (index < 0) {
  2754. return -1;
  2755. }
  2756. while (index - 1 >= 0) {
  2757. if (aCompare(aHaystack[index], aHaystack[index - 1], true) !== 0) {
  2758. break;
  2759. }
  2760. --index;
  2761. }
  2762. return index;
  2763. };
  2764. }
  2765. });
  2766. // node_modules/.aspect_rules_js/source-map-js@1.2.1/node_modules/source-map-js/lib/quick-sort.js
  2767. var require_quick_sort = __commonJS({
  2768. "node_modules/.aspect_rules_js/source-map-js@1.2.1/node_modules/source-map-js/lib/quick-sort.js"(exports2) {
  2769. function SortTemplate(comparator) {
  2770. function swap(ary, x, y) {
  2771. var temp = ary[x];
  2772. ary[x] = ary[y];
  2773. ary[y] = temp;
  2774. }
  2775. function randomIntInRange(low, high) {
  2776. return Math.round(low + Math.random() * (high - low));
  2777. }
  2778. function doQuickSort(ary, comparator2, p, r) {
  2779. if (p < r) {
  2780. var pivotIndex = randomIntInRange(p, r);
  2781. var i = p - 1;
  2782. swap(ary, pivotIndex, r);
  2783. var pivot = ary[r];
  2784. for (var j = p; j < r; j++) {
  2785. if (comparator2(ary[j], pivot, false) <= 0) {
  2786. i += 1;
  2787. swap(ary, i, j);
  2788. }
  2789. }
  2790. swap(ary, i + 1, j);
  2791. var q = i + 1;
  2792. doQuickSort(ary, comparator2, p, q - 1);
  2793. doQuickSort(ary, comparator2, q + 1, r);
  2794. }
  2795. }
  2796. return doQuickSort;
  2797. }
  2798. function cloneSort(comparator) {
  2799. let template = SortTemplate.toString();
  2800. let templateFn = new Function(`return ${template}`)();
  2801. return templateFn(comparator);
  2802. }
  2803. var sortCache = /* @__PURE__ */ new WeakMap();
  2804. exports2.quickSort = function(ary, comparator, start = 0) {
  2805. let doQuickSort = sortCache.get(comparator);
  2806. if (doQuickSort === void 0) {
  2807. doQuickSort = cloneSort(comparator);
  2808. sortCache.set(comparator, doQuickSort);
  2809. }
  2810. doQuickSort(ary, comparator, start, ary.length - 1);
  2811. };
  2812. }
  2813. });
  2814. // node_modules/.aspect_rules_js/source-map-js@1.2.1/node_modules/source-map-js/lib/source-map-consumer.js
  2815. var require_source_map_consumer = __commonJS({
  2816. "node_modules/.aspect_rules_js/source-map-js@1.2.1/node_modules/source-map-js/lib/source-map-consumer.js"(exports2) {
  2817. var util = require_util();
  2818. var binarySearch = require_binary_search();
  2819. var ArraySet = require_array_set().ArraySet;
  2820. var base64VLQ = require_base64_vlq();
  2821. var quickSort = require_quick_sort().quickSort;
  2822. function SourceMapConsumer(aSourceMap, aSourceMapURL) {
  2823. var sourceMap = aSourceMap;
  2824. if (typeof aSourceMap === "string") {
  2825. sourceMap = util.parseSourceMapInput(aSourceMap);
  2826. }
  2827. return sourceMap.sections != null ? new IndexedSourceMapConsumer(sourceMap, aSourceMapURL) : new BasicSourceMapConsumer(sourceMap, aSourceMapURL);
  2828. }
  2829. SourceMapConsumer.fromSourceMap = function(aSourceMap, aSourceMapURL) {
  2830. return BasicSourceMapConsumer.fromSourceMap(aSourceMap, aSourceMapURL);
  2831. };
  2832. SourceMapConsumer.prototype._version = 3;
  2833. SourceMapConsumer.prototype.__generatedMappings = null;
  2834. Object.defineProperty(SourceMapConsumer.prototype, "_generatedMappings", {
  2835. configurable: true,
  2836. enumerable: true,
  2837. get: function() {
  2838. if (!this.__generatedMappings) {
  2839. this._parseMappings(this._mappings, this.sourceRoot);
  2840. }
  2841. return this.__generatedMappings;
  2842. }
  2843. });
  2844. SourceMapConsumer.prototype.__originalMappings = null;
  2845. Object.defineProperty(SourceMapConsumer.prototype, "_originalMappings", {
  2846. configurable: true,
  2847. enumerable: true,
  2848. get: function() {
  2849. if (!this.__originalMappings) {
  2850. this._parseMappings(this._mappings, this.sourceRoot);
  2851. }
  2852. return this.__originalMappings;
  2853. }
  2854. });
  2855. SourceMapConsumer.prototype._charIsMappingSeparator = function SourceMapConsumer_charIsMappingSeparator(aStr, index) {
  2856. var c = aStr.charAt(index);
  2857. return c === ";" || c === ",";
  2858. };
  2859. SourceMapConsumer.prototype._parseMappings = function SourceMapConsumer_parseMappings(aStr, aSourceRoot) {
  2860. throw new Error("Subclasses must implement _parseMappings");
  2861. };
  2862. SourceMapConsumer.GENERATED_ORDER = 1;
  2863. SourceMapConsumer.ORIGINAL_ORDER = 2;
  2864. SourceMapConsumer.GREATEST_LOWER_BOUND = 1;
  2865. SourceMapConsumer.LEAST_UPPER_BOUND = 2;
  2866. SourceMapConsumer.prototype.eachMapping = function SourceMapConsumer_eachMapping(aCallback, aContext, aOrder) {
  2867. var context = aContext || null;
  2868. var order = aOrder || SourceMapConsumer.GENERATED_ORDER;
  2869. var mappings;
  2870. switch (order) {
  2871. case SourceMapConsumer.GENERATED_ORDER:
  2872. mappings = this._generatedMappings;
  2873. break;
  2874. case SourceMapConsumer.ORIGINAL_ORDER:
  2875. mappings = this._originalMappings;
  2876. break;
  2877. default:
  2878. throw new Error("Unknown order of iteration.");
  2879. }
  2880. var sourceRoot = this.sourceRoot;
  2881. var boundCallback = aCallback.bind(context);
  2882. var names = this._names;
  2883. var sources = this._sources;
  2884. var sourceMapURL = this._sourceMapURL;
  2885. for (var i = 0, n = mappings.length; i < n; i++) {
  2886. var mapping = mappings[i];
  2887. var source = mapping.source === null ? null : sources.at(mapping.source);
  2888. if (source !== null) {
  2889. source = util.computeSourceURL(sourceRoot, source, sourceMapURL);
  2890. }
  2891. boundCallback({
  2892. source,
  2893. generatedLine: mapping.generatedLine,
  2894. generatedColumn: mapping.generatedColumn,
  2895. originalLine: mapping.originalLine,
  2896. originalColumn: mapping.originalColumn,
  2897. name: mapping.name === null ? null : names.at(mapping.name)
  2898. });
  2899. }
  2900. };
  2901. SourceMapConsumer.prototype.allGeneratedPositionsFor = function SourceMapConsumer_allGeneratedPositionsFor(aArgs) {
  2902. var line = util.getArg(aArgs, "line");
  2903. var needle = {
  2904. source: util.getArg(aArgs, "source"),
  2905. originalLine: line,
  2906. originalColumn: util.getArg(aArgs, "column", 0)
  2907. };
  2908. needle.source = this._findSourceIndex(needle.source);
  2909. if (needle.source < 0) {
  2910. return [];
  2911. }
  2912. var mappings = [];
  2913. var index = this._findMapping(
  2914. needle,
  2915. this._originalMappings,
  2916. "originalLine",
  2917. "originalColumn",
  2918. util.compareByOriginalPositions,
  2919. binarySearch.LEAST_UPPER_BOUND
  2920. );
  2921. if (index >= 0) {
  2922. var mapping = this._originalMappings[index];
  2923. if (aArgs.column === void 0) {
  2924. var originalLine = mapping.originalLine;
  2925. while (mapping && mapping.originalLine === originalLine) {
  2926. mappings.push({
  2927. line: util.getArg(mapping, "generatedLine", null),
  2928. column: util.getArg(mapping, "generatedColumn", null),
  2929. lastColumn: util.getArg(mapping, "lastGeneratedColumn", null)
  2930. });
  2931. mapping = this._originalMappings[++index];
  2932. }
  2933. } else {
  2934. var originalColumn = mapping.originalColumn;
  2935. while (mapping && mapping.originalLine === line && mapping.originalColumn == originalColumn) {
  2936. mappings.push({
  2937. line: util.getArg(mapping, "generatedLine", null),
  2938. column: util.getArg(mapping, "generatedColumn", null),
  2939. lastColumn: util.getArg(mapping, "lastGeneratedColumn", null)
  2940. });
  2941. mapping = this._originalMappings[++index];
  2942. }
  2943. }
  2944. }
  2945. return mappings;
  2946. };
  2947. exports2.SourceMapConsumer = SourceMapConsumer;
  2948. function BasicSourceMapConsumer(aSourceMap, aSourceMapURL) {
  2949. var sourceMap = aSourceMap;
  2950. if (typeof aSourceMap === "string") {
  2951. sourceMap = util.parseSourceMapInput(aSourceMap);
  2952. }
  2953. var version = util.getArg(sourceMap, "version");
  2954. var sources = util.getArg(sourceMap, "sources");
  2955. var names = util.getArg(sourceMap, "names", []);
  2956. var sourceRoot = util.getArg(sourceMap, "sourceRoot", null);
  2957. var sourcesContent = util.getArg(sourceMap, "sourcesContent", null);
  2958. var mappings = util.getArg(sourceMap, "mappings");
  2959. var file = util.getArg(sourceMap, "file", null);
  2960. if (version != this._version) {
  2961. throw new Error("Unsupported version: " + version);
  2962. }
  2963. if (sourceRoot) {
  2964. sourceRoot = util.normalize(sourceRoot);
  2965. }
  2966. sources = sources.map(String).map(util.normalize).map(function(source) {
  2967. return sourceRoot && util.isAbsolute(sourceRoot) && util.isAbsolute(source) ? util.relative(sourceRoot, source) : source;
  2968. });
  2969. this._names = ArraySet.fromArray(names.map(String), true);
  2970. this._sources = ArraySet.fromArray(sources, true);
  2971. this._absoluteSources = this._sources.toArray().map(function(s) {
  2972. return util.computeSourceURL(sourceRoot, s, aSourceMapURL);
  2973. });
  2974. this.sourceRoot = sourceRoot;
  2975. this.sourcesContent = sourcesContent;
  2976. this._mappings = mappings;
  2977. this._sourceMapURL = aSourceMapURL;
  2978. this.file = file;
  2979. }
  2980. BasicSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype);
  2981. BasicSourceMapConsumer.prototype.consumer = SourceMapConsumer;
  2982. BasicSourceMapConsumer.prototype._findSourceIndex = function(aSource) {
  2983. var relativeSource = aSource;
  2984. if (this.sourceRoot != null) {
  2985. relativeSource = util.relative(this.sourceRoot, relativeSource);
  2986. }
  2987. if (this._sources.has(relativeSource)) {
  2988. return this._sources.indexOf(relativeSource);
  2989. }
  2990. var i;
  2991. for (i = 0; i < this._absoluteSources.length; ++i) {
  2992. if (this._absoluteSources[i] == aSource) {
  2993. return i;
  2994. }
  2995. }
  2996. return -1;
  2997. };
  2998. BasicSourceMapConsumer.fromSourceMap = function SourceMapConsumer_fromSourceMap(aSourceMap, aSourceMapURL) {
  2999. var smc = Object.create(BasicSourceMapConsumer.prototype);
  3000. var names = smc._names = ArraySet.fromArray(aSourceMap._names.toArray(), true);
  3001. var sources = smc._sources = ArraySet.fromArray(aSourceMap._sources.toArray(), true);
  3002. smc.sourceRoot = aSourceMap._sourceRoot;
  3003. smc.sourcesContent = aSourceMap._generateSourcesContent(
  3004. smc._sources.toArray(),
  3005. smc.sourceRoot
  3006. );
  3007. smc.file = aSourceMap._file;
  3008. smc._sourceMapURL = aSourceMapURL;
  3009. smc._absoluteSources = smc._sources.toArray().map(function(s) {
  3010. return util.computeSourceURL(smc.sourceRoot, s, aSourceMapURL);
  3011. });
  3012. var generatedMappings = aSourceMap._mappings.toArray().slice();
  3013. var destGeneratedMappings = smc.__generatedMappings = [];
  3014. var destOriginalMappings = smc.__originalMappings = [];
  3015. for (var i = 0, length = generatedMappings.length; i < length; i++) {
  3016. var srcMapping = generatedMappings[i];
  3017. var destMapping = new Mapping();
  3018. destMapping.generatedLine = srcMapping.generatedLine;
  3019. destMapping.generatedColumn = srcMapping.generatedColumn;
  3020. if (srcMapping.source) {
  3021. destMapping.source = sources.indexOf(srcMapping.source);
  3022. destMapping.originalLine = srcMapping.originalLine;
  3023. destMapping.originalColumn = srcMapping.originalColumn;
  3024. if (srcMapping.name) {
  3025. destMapping.name = names.indexOf(srcMapping.name);
  3026. }
  3027. destOriginalMappings.push(destMapping);
  3028. }
  3029. destGeneratedMappings.push(destMapping);
  3030. }
  3031. quickSort(smc.__originalMappings, util.compareByOriginalPositions);
  3032. return smc;
  3033. };
  3034. BasicSourceMapConsumer.prototype._version = 3;
  3035. Object.defineProperty(BasicSourceMapConsumer.prototype, "sources", {
  3036. get: function() {
  3037. return this._absoluteSources.slice();
  3038. }
  3039. });
  3040. function Mapping() {
  3041. this.generatedLine = 0;
  3042. this.generatedColumn = 0;
  3043. this.source = null;
  3044. this.originalLine = null;
  3045. this.originalColumn = null;
  3046. this.name = null;
  3047. }
  3048. var compareGenerated = util.compareByGeneratedPositionsDeflatedNoLine;
  3049. function sortGenerated(array, start) {
  3050. let l = array.length;
  3051. let n = array.length - start;
  3052. if (n <= 1) {
  3053. return;
  3054. } else if (n == 2) {
  3055. let a = array[start];
  3056. let b = array[start + 1];
  3057. if (compareGenerated(a, b) > 0) {
  3058. array[start] = b;
  3059. array[start + 1] = a;
  3060. }
  3061. } else if (n < 20) {
  3062. for (let i = start; i < l; i++) {
  3063. for (let j = i; j > start; j--) {
  3064. let a = array[j - 1];
  3065. let b = array[j];
  3066. if (compareGenerated(a, b) <= 0) {
  3067. break;
  3068. }
  3069. array[j - 1] = b;
  3070. array[j] = a;
  3071. }
  3072. }
  3073. } else {
  3074. quickSort(array, compareGenerated, start);
  3075. }
  3076. }
  3077. BasicSourceMapConsumer.prototype._parseMappings = function SourceMapConsumer_parseMappings(aStr, aSourceRoot) {
  3078. var generatedLine = 1;
  3079. var previousGeneratedColumn = 0;
  3080. var previousOriginalLine = 0;
  3081. var previousOriginalColumn = 0;
  3082. var previousSource = 0;
  3083. var previousName = 0;
  3084. var length = aStr.length;
  3085. var index = 0;
  3086. var cachedSegments = {};
  3087. var temp = {};
  3088. var originalMappings = [];
  3089. var generatedMappings = [];
  3090. var mapping, str, segment, end, value;
  3091. let subarrayStart = 0;
  3092. while (index < length) {
  3093. if (aStr.charAt(index) === ";") {
  3094. generatedLine++;
  3095. index++;
  3096. previousGeneratedColumn = 0;
  3097. sortGenerated(generatedMappings, subarrayStart);
  3098. subarrayStart = generatedMappings.length;
  3099. } else if (aStr.charAt(index) === ",") {
  3100. index++;
  3101. } else {
  3102. mapping = new Mapping();
  3103. mapping.generatedLine = generatedLine;
  3104. for (end = index; end < length; end++) {
  3105. if (this._charIsMappingSeparator(aStr, end)) {
  3106. break;
  3107. }
  3108. }
  3109. str = aStr.slice(index, end);
  3110. segment = [];
  3111. while (index < end) {
  3112. base64VLQ.decode(aStr, index, temp);
  3113. value = temp.value;
  3114. index = temp.rest;
  3115. segment.push(value);
  3116. }
  3117. if (segment.length === 2) {
  3118. throw new Error("Found a source, but no line and column");
  3119. }
  3120. if (segment.length === 3) {
  3121. throw new Error("Found a source and line, but no column");
  3122. }
  3123. mapping.generatedColumn = previousGeneratedColumn + segment[0];
  3124. previousGeneratedColumn = mapping.generatedColumn;
  3125. if (segment.length > 1) {
  3126. mapping.source = previousSource + segment[1];
  3127. previousSource += segment[1];
  3128. mapping.originalLine = previousOriginalLine + segment[2];
  3129. previousOriginalLine = mapping.originalLine;
  3130. mapping.originalLine += 1;
  3131. mapping.originalColumn = previousOriginalColumn + segment[3];
  3132. previousOriginalColumn = mapping.originalColumn;
  3133. if (segment.length > 4) {
  3134. mapping.name = previousName + segment[4];
  3135. previousName += segment[4];
  3136. }
  3137. }
  3138. generatedMappings.push(mapping);
  3139. if (typeof mapping.originalLine === "number") {
  3140. let currentSource = mapping.source;
  3141. while (originalMappings.length <= currentSource) {
  3142. originalMappings.push(null);
  3143. }
  3144. if (originalMappings[currentSource] === null) {
  3145. originalMappings[currentSource] = [];
  3146. }
  3147. originalMappings[currentSource].push(mapping);
  3148. }
  3149. }
  3150. }
  3151. sortGenerated(generatedMappings, subarrayStart);
  3152. this.__generatedMappings = generatedMappings;
  3153. for (var i = 0; i < originalMappings.length; i++) {
  3154. if (originalMappings[i] != null) {
  3155. quickSort(originalMappings[i], util.compareByOriginalPositionsNoSource);
  3156. }
  3157. }
  3158. this.__originalMappings = [].concat(...originalMappings);
  3159. };
  3160. BasicSourceMapConsumer.prototype._findMapping = function SourceMapConsumer_findMapping(aNeedle, aMappings, aLineName, aColumnName, aComparator, aBias) {
  3161. if (aNeedle[aLineName] <= 0) {
  3162. throw new TypeError("Line must be greater than or equal to 1, got " + aNeedle[aLineName]);
  3163. }
  3164. if (aNeedle[aColumnName] < 0) {
  3165. throw new TypeError("Column must be greater than or equal to 0, got " + aNeedle[aColumnName]);
  3166. }
  3167. return binarySearch.search(aNeedle, aMappings, aComparator, aBias);
  3168. };
  3169. BasicSourceMapConsumer.prototype.computeColumnSpans = function SourceMapConsumer_computeColumnSpans() {
  3170. for (var index = 0; index < this._generatedMappings.length; ++index) {
  3171. var mapping = this._generatedMappings[index];
  3172. if (index + 1 < this._generatedMappings.length) {
  3173. var nextMapping = this._generatedMappings[index + 1];
  3174. if (mapping.generatedLine === nextMapping.generatedLine) {
  3175. mapping.lastGeneratedColumn = nextMapping.generatedColumn - 1;
  3176. continue;
  3177. }
  3178. }
  3179. mapping.lastGeneratedColumn = Infinity;
  3180. }
  3181. };
  3182. BasicSourceMapConsumer.prototype.originalPositionFor = function SourceMapConsumer_originalPositionFor(aArgs) {
  3183. var needle = {
  3184. generatedLine: util.getArg(aArgs, "line"),
  3185. generatedColumn: util.getArg(aArgs, "column")
  3186. };
  3187. var index = this._findMapping(
  3188. needle,
  3189. this._generatedMappings,
  3190. "generatedLine",
  3191. "generatedColumn",
  3192. util.compareByGeneratedPositionsDeflated,
  3193. util.getArg(aArgs, "bias", SourceMapConsumer.GREATEST_LOWER_BOUND)
  3194. );
  3195. if (index >= 0) {
  3196. var mapping = this._generatedMappings[index];
  3197. if (mapping.generatedLine === needle.generatedLine) {
  3198. var source = util.getArg(mapping, "source", null);
  3199. if (source !== null) {
  3200. source = this._sources.at(source);
  3201. source = util.computeSourceURL(this.sourceRoot, source, this._sourceMapURL);
  3202. }
  3203. var name = util.getArg(mapping, "name", null);
  3204. if (name !== null) {
  3205. name = this._names.at(name);
  3206. }
  3207. return {
  3208. source,
  3209. line: util.getArg(mapping, "originalLine", null),
  3210. column: util.getArg(mapping, "originalColumn", null),
  3211. name
  3212. };
  3213. }
  3214. }
  3215. return {
  3216. source: null,
  3217. line: null,
  3218. column: null,
  3219. name: null
  3220. };
  3221. };
  3222. BasicSourceMapConsumer.prototype.hasContentsOfAllSources = function BasicSourceMapConsumer_hasContentsOfAllSources() {
  3223. if (!this.sourcesContent) {
  3224. return false;
  3225. }
  3226. return this.sourcesContent.length >= this._sources.size() && !this.sourcesContent.some(function(sc) {
  3227. return sc == null;
  3228. });
  3229. };
  3230. BasicSourceMapConsumer.prototype.sourceContentFor = function SourceMapConsumer_sourceContentFor(aSource, nullOnMissing) {
  3231. if (!this.sourcesContent) {
  3232. return null;
  3233. }
  3234. var index = this._findSourceIndex(aSource);
  3235. if (index >= 0) {
  3236. return this.sourcesContent[index];
  3237. }
  3238. var relativeSource = aSource;
  3239. if (this.sourceRoot != null) {
  3240. relativeSource = util.relative(this.sourceRoot, relativeSource);
  3241. }
  3242. var url;
  3243. if (this.sourceRoot != null && (url = util.urlParse(this.sourceRoot))) {
  3244. var fileUriAbsPath = relativeSource.replace(/^file:\/\//, "");
  3245. if (url.scheme == "file" && this._sources.has(fileUriAbsPath)) {
  3246. return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)];
  3247. }
  3248. if ((!url.path || url.path == "/") && this._sources.has("/" + relativeSource)) {
  3249. return this.sourcesContent[this._sources.indexOf("/" + relativeSource)];
  3250. }
  3251. }
  3252. if (nullOnMissing) {
  3253. return null;
  3254. } else {
  3255. throw new Error('"' + relativeSource + '" is not in the SourceMap.');
  3256. }
  3257. };
  3258. BasicSourceMapConsumer.prototype.generatedPositionFor = function SourceMapConsumer_generatedPositionFor(aArgs) {
  3259. var source = util.getArg(aArgs, "source");
  3260. source = this._findSourceIndex(source);
  3261. if (source < 0) {
  3262. return {
  3263. line: null,
  3264. column: null,
  3265. lastColumn: null
  3266. };
  3267. }
  3268. var needle = {
  3269. source,
  3270. originalLine: util.getArg(aArgs, "line"),
  3271. originalColumn: util.getArg(aArgs, "column")
  3272. };
  3273. var index = this._findMapping(
  3274. needle,
  3275. this._originalMappings,
  3276. "originalLine",
  3277. "originalColumn",
  3278. util.compareByOriginalPositions,
  3279. util.getArg(aArgs, "bias", SourceMapConsumer.GREATEST_LOWER_BOUND)
  3280. );
  3281. if (index >= 0) {
  3282. var mapping = this._originalMappings[index];
  3283. if (mapping.source === needle.source) {
  3284. return {
  3285. line: util.getArg(mapping, "generatedLine", null),
  3286. column: util.getArg(mapping, "generatedColumn", null),
  3287. lastColumn: util.getArg(mapping, "lastGeneratedColumn", null)
  3288. };
  3289. }
  3290. }
  3291. return {
  3292. line: null,
  3293. column: null,
  3294. lastColumn: null
  3295. };
  3296. };
  3297. exports2.BasicSourceMapConsumer = BasicSourceMapConsumer;
  3298. function IndexedSourceMapConsumer(aSourceMap, aSourceMapURL) {
  3299. var sourceMap = aSourceMap;
  3300. if (typeof aSourceMap === "string") {
  3301. sourceMap = util.parseSourceMapInput(aSourceMap);
  3302. }
  3303. var version = util.getArg(sourceMap, "version");
  3304. var sections = util.getArg(sourceMap, "sections");
  3305. if (version != this._version) {
  3306. throw new Error("Unsupported version: " + version);
  3307. }
  3308. this._sources = new ArraySet();
  3309. this._names = new ArraySet();
  3310. var lastOffset = {
  3311. line: -1,
  3312. column: 0
  3313. };
  3314. this._sections = sections.map(function(s) {
  3315. if (s.url) {
  3316. throw new Error("Support for url field in sections not implemented.");
  3317. }
  3318. var offset = util.getArg(s, "offset");
  3319. var offsetLine = util.getArg(offset, "line");
  3320. var offsetColumn = util.getArg(offset, "column");
  3321. if (offsetLine < lastOffset.line || offsetLine === lastOffset.line && offsetColumn < lastOffset.column) {
  3322. throw new Error("Section offsets must be ordered and non-overlapping.");
  3323. }
  3324. lastOffset = offset;
  3325. return {
  3326. generatedOffset: {
  3327. // The offset fields are 0-based, but we use 1-based indices when
  3328. // encoding/decoding from VLQ.
  3329. generatedLine: offsetLine + 1,
  3330. generatedColumn: offsetColumn + 1
  3331. },
  3332. consumer: new SourceMapConsumer(util.getArg(s, "map"), aSourceMapURL)
  3333. };
  3334. });
  3335. }
  3336. IndexedSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype);
  3337. IndexedSourceMapConsumer.prototype.constructor = SourceMapConsumer;
  3338. IndexedSourceMapConsumer.prototype._version = 3;
  3339. Object.defineProperty(IndexedSourceMapConsumer.prototype, "sources", {
  3340. get: function() {
  3341. var sources = [];
  3342. for (var i = 0; i < this._sections.length; i++) {
  3343. for (var j = 0; j < this._sections[i].consumer.sources.length; j++) {
  3344. sources.push(this._sections[i].consumer.sources[j]);
  3345. }
  3346. }
  3347. return sources;
  3348. }
  3349. });
  3350. IndexedSourceMapConsumer.prototype.originalPositionFor = function IndexedSourceMapConsumer_originalPositionFor(aArgs) {
  3351. var needle = {
  3352. generatedLine: util.getArg(aArgs, "line"),
  3353. generatedColumn: util.getArg(aArgs, "column")
  3354. };
  3355. var sectionIndex = binarySearch.search(
  3356. needle,
  3357. this._sections,
  3358. function(needle2, section2) {
  3359. var cmp = needle2.generatedLine - section2.generatedOffset.generatedLine;
  3360. if (cmp) {
  3361. return cmp;
  3362. }
  3363. return needle2.generatedColumn - section2.generatedOffset.generatedColumn;
  3364. }
  3365. );
  3366. var section = this._sections[sectionIndex];
  3367. if (!section) {
  3368. return {
  3369. source: null,
  3370. line: null,
  3371. column: null,
  3372. name: null
  3373. };
  3374. }
  3375. return section.consumer.originalPositionFor({
  3376. line: needle.generatedLine - (section.generatedOffset.generatedLine - 1),
  3377. column: needle.generatedColumn - (section.generatedOffset.generatedLine === needle.generatedLine ? section.generatedOffset.generatedColumn - 1 : 0),
  3378. bias: aArgs.bias
  3379. });
  3380. };
  3381. IndexedSourceMapConsumer.prototype.hasContentsOfAllSources = function IndexedSourceMapConsumer_hasContentsOfAllSources() {
  3382. return this._sections.every(function(s) {
  3383. return s.consumer.hasContentsOfAllSources();
  3384. });
  3385. };
  3386. IndexedSourceMapConsumer.prototype.sourceContentFor = function IndexedSourceMapConsumer_sourceContentFor(aSource, nullOnMissing) {
  3387. for (var i = 0; i < this._sections.length; i++) {
  3388. var section = this._sections[i];
  3389. var content = section.consumer.sourceContentFor(aSource, true);
  3390. if (content || content === "") {
  3391. return content;
  3392. }
  3393. }
  3394. if (nullOnMissing) {
  3395. return null;
  3396. } else {
  3397. throw new Error('"' + aSource + '" is not in the SourceMap.');
  3398. }
  3399. };
  3400. IndexedSourceMapConsumer.prototype.generatedPositionFor = function IndexedSourceMapConsumer_generatedPositionFor(aArgs) {
  3401. for (var i = 0; i < this._sections.length; i++) {
  3402. var section = this._sections[i];
  3403. if (section.consumer._findSourceIndex(util.getArg(aArgs, "source")) === -1) {
  3404. continue;
  3405. }
  3406. var generatedPosition = section.consumer.generatedPositionFor(aArgs);
  3407. if (generatedPosition) {
  3408. var ret = {
  3409. line: generatedPosition.line + (section.generatedOffset.generatedLine - 1),
  3410. column: generatedPosition.column + (section.generatedOffset.generatedLine === generatedPosition.line ? section.generatedOffset.generatedColumn - 1 : 0)
  3411. };
  3412. return ret;
  3413. }
  3414. }
  3415. return {
  3416. line: null,
  3417. column: null
  3418. };
  3419. };
  3420. IndexedSourceMapConsumer.prototype._parseMappings = function IndexedSourceMapConsumer_parseMappings(aStr, aSourceRoot) {
  3421. this.__generatedMappings = [];
  3422. this.__originalMappings = [];
  3423. for (var i = 0; i < this._sections.length; i++) {
  3424. var section = this._sections[i];
  3425. var sectionMappings = section.consumer._generatedMappings;
  3426. for (var j = 0; j < sectionMappings.length; j++) {
  3427. var mapping = sectionMappings[j];
  3428. var source = section.consumer._sources.at(mapping.source);
  3429. if (source !== null) {
  3430. source = util.computeSourceURL(section.consumer.sourceRoot, source, this._sourceMapURL);
  3431. }
  3432. this._sources.add(source);
  3433. source = this._sources.indexOf(source);
  3434. var name = null;
  3435. if (mapping.name) {
  3436. name = section.consumer._names.at(mapping.name);
  3437. this._names.add(name);
  3438. name = this._names.indexOf(name);
  3439. }
  3440. var adjustedMapping = {
  3441. source,
  3442. generatedLine: mapping.generatedLine + (section.generatedOffset.generatedLine - 1),
  3443. generatedColumn: mapping.generatedColumn + (section.generatedOffset.generatedLine === mapping.generatedLine ? section.generatedOffset.generatedColumn - 1 : 0),
  3444. originalLine: mapping.originalLine,
  3445. originalColumn: mapping.originalColumn,
  3446. name
  3447. };
  3448. this.__generatedMappings.push(adjustedMapping);
  3449. if (typeof adjustedMapping.originalLine === "number") {
  3450. this.__originalMappings.push(adjustedMapping);
  3451. }
  3452. }
  3453. }
  3454. quickSort(this.__generatedMappings, util.compareByGeneratedPositionsDeflated);
  3455. quickSort(this.__originalMappings, util.compareByOriginalPositions);
  3456. };
  3457. exports2.IndexedSourceMapConsumer = IndexedSourceMapConsumer;
  3458. }
  3459. });
  3460. // node_modules/.aspect_rules_js/source-map-js@1.2.1/node_modules/source-map-js/lib/source-node.js
  3461. var require_source_node = __commonJS({
  3462. "node_modules/.aspect_rules_js/source-map-js@1.2.1/node_modules/source-map-js/lib/source-node.js"(exports2) {
  3463. var SourceMapGenerator = require_source_map_generator().SourceMapGenerator;
  3464. var util = require_util();
  3465. var REGEX_NEWLINE = /(\r?\n)/;
  3466. var NEWLINE_CODE = 10;
  3467. var isSourceNode = "$$$isSourceNode$$$";
  3468. function SourceNode(aLine, aColumn, aSource, aChunks, aName) {
  3469. this.children = [];
  3470. this.sourceContents = {};
  3471. this.line = aLine == null ? null : aLine;
  3472. this.column = aColumn == null ? null : aColumn;
  3473. this.source = aSource == null ? null : aSource;
  3474. this.name = aName == null ? null : aName;
  3475. this[isSourceNode] = true;
  3476. if (aChunks != null) this.add(aChunks);
  3477. }
  3478. SourceNode.fromStringWithSourceMap = function SourceNode_fromStringWithSourceMap(aGeneratedCode, aSourceMapConsumer, aRelativePath) {
  3479. var node = new SourceNode();
  3480. var remainingLines = aGeneratedCode.split(REGEX_NEWLINE);
  3481. var remainingLinesIndex = 0;
  3482. var shiftNextLine = function() {
  3483. var lineContents = getNextLine();
  3484. var newLine = getNextLine() || "";
  3485. return lineContents + newLine;
  3486. function getNextLine() {
  3487. return remainingLinesIndex < remainingLines.length ? remainingLines[remainingLinesIndex++] : void 0;
  3488. }
  3489. };
  3490. var lastGeneratedLine = 1, lastGeneratedColumn = 0;
  3491. var lastMapping = null;
  3492. aSourceMapConsumer.eachMapping(function(mapping) {
  3493. if (lastMapping !== null) {
  3494. if (lastGeneratedLine < mapping.generatedLine) {
  3495. addMappingWithCode(lastMapping, shiftNextLine());
  3496. lastGeneratedLine++;
  3497. lastGeneratedColumn = 0;
  3498. } else {
  3499. var nextLine = remainingLines[remainingLinesIndex] || "";
  3500. var code = nextLine.substr(0, mapping.generatedColumn - lastGeneratedColumn);
  3501. remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn - lastGeneratedColumn);
  3502. lastGeneratedColumn = mapping.generatedColumn;
  3503. addMappingWithCode(lastMapping, code);
  3504. lastMapping = mapping;
  3505. return;
  3506. }
  3507. }
  3508. while (lastGeneratedLine < mapping.generatedLine) {
  3509. node.add(shiftNextLine());
  3510. lastGeneratedLine++;
  3511. }
  3512. if (lastGeneratedColumn < mapping.generatedColumn) {
  3513. var nextLine = remainingLines[remainingLinesIndex] || "";
  3514. node.add(nextLine.substr(0, mapping.generatedColumn));
  3515. remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn);
  3516. lastGeneratedColumn = mapping.generatedColumn;
  3517. }
  3518. lastMapping = mapping;
  3519. }, this);
  3520. if (remainingLinesIndex < remainingLines.length) {
  3521. if (lastMapping) {
  3522. addMappingWithCode(lastMapping, shiftNextLine());
  3523. }
  3524. node.add(remainingLines.splice(remainingLinesIndex).join(""));
  3525. }
  3526. aSourceMapConsumer.sources.forEach(function(sourceFile) {
  3527. var content = aSourceMapConsumer.sourceContentFor(sourceFile);
  3528. if (content != null) {
  3529. if (aRelativePath != null) {
  3530. sourceFile = util.join(aRelativePath, sourceFile);
  3531. }
  3532. node.setSourceContent(sourceFile, content);
  3533. }
  3534. });
  3535. return node;
  3536. function addMappingWithCode(mapping, code) {
  3537. if (mapping === null || mapping.source === void 0) {
  3538. node.add(code);
  3539. } else {
  3540. var source = aRelativePath ? util.join(aRelativePath, mapping.source) : mapping.source;
  3541. node.add(new SourceNode(
  3542. mapping.originalLine,
  3543. mapping.originalColumn,
  3544. source,
  3545. code,
  3546. mapping.name
  3547. ));
  3548. }
  3549. }
  3550. };
  3551. SourceNode.prototype.add = function SourceNode_add(aChunk) {
  3552. if (Array.isArray(aChunk)) {
  3553. aChunk.forEach(function(chunk) {
  3554. this.add(chunk);
  3555. }, this);
  3556. } else if (aChunk[isSourceNode] || typeof aChunk === "string") {
  3557. if (aChunk) {
  3558. this.children.push(aChunk);
  3559. }
  3560. } else {
  3561. throw new TypeError(
  3562. "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk
  3563. );
  3564. }
  3565. return this;
  3566. };
  3567. SourceNode.prototype.prepend = function SourceNode_prepend(aChunk) {
  3568. if (Array.isArray(aChunk)) {
  3569. for (var i = aChunk.length - 1; i >= 0; i--) {
  3570. this.prepend(aChunk[i]);
  3571. }
  3572. } else if (aChunk[isSourceNode] || typeof aChunk === "string") {
  3573. this.children.unshift(aChunk);
  3574. } else {
  3575. throw new TypeError(
  3576. "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk
  3577. );
  3578. }
  3579. return this;
  3580. };
  3581. SourceNode.prototype.walk = function SourceNode_walk(aFn) {
  3582. var chunk;
  3583. for (var i = 0, len = this.children.length; i < len; i++) {
  3584. chunk = this.children[i];
  3585. if (chunk[isSourceNode]) {
  3586. chunk.walk(aFn);
  3587. } else {
  3588. if (chunk !== "") {
  3589. aFn(chunk, {
  3590. source: this.source,
  3591. line: this.line,
  3592. column: this.column,
  3593. name: this.name
  3594. });
  3595. }
  3596. }
  3597. }
  3598. };
  3599. SourceNode.prototype.join = function SourceNode_join(aSep) {
  3600. var newChildren;
  3601. var i;
  3602. var len = this.children.length;
  3603. if (len > 0) {
  3604. newChildren = [];
  3605. for (i = 0; i < len - 1; i++) {
  3606. newChildren.push(this.children[i]);
  3607. newChildren.push(aSep);
  3608. }
  3609. newChildren.push(this.children[i]);
  3610. this.children = newChildren;
  3611. }
  3612. return this;
  3613. };
  3614. SourceNode.prototype.replaceRight = function SourceNode_replaceRight(aPattern, aReplacement) {
  3615. var lastChild = this.children[this.children.length - 1];
  3616. if (lastChild[isSourceNode]) {
  3617. lastChild.replaceRight(aPattern, aReplacement);
  3618. } else if (typeof lastChild === "string") {
  3619. this.children[this.children.length - 1] = lastChild.replace(aPattern, aReplacement);
  3620. } else {
  3621. this.children.push("".replace(aPattern, aReplacement));
  3622. }
  3623. return this;
  3624. };
  3625. SourceNode.prototype.setSourceContent = function SourceNode_setSourceContent(aSourceFile, aSourceContent) {
  3626. this.sourceContents[util.toSetString(aSourceFile)] = aSourceContent;
  3627. };
  3628. SourceNode.prototype.walkSourceContents = function SourceNode_walkSourceContents(aFn) {
  3629. for (var i = 0, len = this.children.length; i < len; i++) {
  3630. if (this.children[i][isSourceNode]) {
  3631. this.children[i].walkSourceContents(aFn);
  3632. }
  3633. }
  3634. var sources = Object.keys(this.sourceContents);
  3635. for (var i = 0, len = sources.length; i < len; i++) {
  3636. aFn(util.fromSetString(sources[i]), this.sourceContents[sources[i]]);
  3637. }
  3638. };
  3639. SourceNode.prototype.toString = function SourceNode_toString() {
  3640. var str = "";
  3641. this.walk(function(chunk) {
  3642. str += chunk;
  3643. });
  3644. return str;
  3645. };
  3646. SourceNode.prototype.toStringWithSourceMap = function SourceNode_toStringWithSourceMap(aArgs) {
  3647. var generated = {
  3648. code: "",
  3649. line: 1,
  3650. column: 0
  3651. };
  3652. var map = new SourceMapGenerator(aArgs);
  3653. var sourceMappingActive = false;
  3654. var lastOriginalSource = null;
  3655. var lastOriginalLine = null;
  3656. var lastOriginalColumn = null;
  3657. var lastOriginalName = null;
  3658. this.walk(function(chunk, original) {
  3659. generated.code += chunk;
  3660. if (original.source !== null && original.line !== null && original.column !== null) {
  3661. if (lastOriginalSource !== original.source || lastOriginalLine !== original.line || lastOriginalColumn !== original.column || lastOriginalName !== original.name) {
  3662. map.addMapping({
  3663. source: original.source,
  3664. original: {
  3665. line: original.line,
  3666. column: original.column
  3667. },
  3668. generated: {
  3669. line: generated.line,
  3670. column: generated.column
  3671. },
  3672. name: original.name
  3673. });
  3674. }
  3675. lastOriginalSource = original.source;
  3676. lastOriginalLine = original.line;
  3677. lastOriginalColumn = original.column;
  3678. lastOriginalName = original.name;
  3679. sourceMappingActive = true;
  3680. } else if (sourceMappingActive) {
  3681. map.addMapping({
  3682. generated: {
  3683. line: generated.line,
  3684. column: generated.column
  3685. }
  3686. });
  3687. lastOriginalSource = null;
  3688. sourceMappingActive = false;
  3689. }
  3690. for (var idx = 0, length = chunk.length; idx < length; idx++) {
  3691. if (chunk.charCodeAt(idx) === NEWLINE_CODE) {
  3692. generated.line++;
  3693. generated.column = 0;
  3694. if (idx + 1 === length) {
  3695. lastOriginalSource = null;
  3696. sourceMappingActive = false;
  3697. } else if (sourceMappingActive) {
  3698. map.addMapping({
  3699. source: original.source,
  3700. original: {
  3701. line: original.line,
  3702. column: original.column
  3703. },
  3704. generated: {
  3705. line: generated.line,
  3706. column: generated.column
  3707. },
  3708. name: original.name
  3709. });
  3710. }
  3711. } else {
  3712. generated.column++;
  3713. }
  3714. }
  3715. });
  3716. this.walkSourceContents(function(sourceFile, sourceContent) {
  3717. map.setSourceContent(sourceFile, sourceContent);
  3718. });
  3719. return { code: generated.code, map };
  3720. };
  3721. exports2.SourceNode = SourceNode;
  3722. }
  3723. });
  3724. // node_modules/.aspect_rules_js/source-map-js@1.2.1/node_modules/source-map-js/source-map.js
  3725. var require_source_map = __commonJS({
  3726. "node_modules/.aspect_rules_js/source-map-js@1.2.1/node_modules/source-map-js/source-map.js"(exports2) {
  3727. exports2.SourceMapGenerator = require_source_map_generator().SourceMapGenerator;
  3728. exports2.SourceMapConsumer = require_source_map_consumer().SourceMapConsumer;
  3729. exports2.SourceNode = require_source_node().SourceNode;
  3730. }
  3731. });
  3732. // node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/previous-map.js
  3733. var require_previous_map = __commonJS({
  3734. "node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/previous-map.js"(exports2, module2) {
  3735. "use strict";
  3736. var { existsSync, readFileSync } = require("fs");
  3737. var { dirname, join } = require("path");
  3738. var { SourceMapConsumer, SourceMapGenerator } = require_source_map();
  3739. function fromBase64(str) {
  3740. if (Buffer) {
  3741. return Buffer.from(str, "base64").toString();
  3742. } else {
  3743. return window.atob(str);
  3744. }
  3745. }
  3746. var PreviousMap = class {
  3747. constructor(css, opts) {
  3748. if (opts.map === false) return;
  3749. this.loadAnnotation(css);
  3750. this.inline = this.startWith(this.annotation, "data:");
  3751. let prev = opts.map ? opts.map.prev : void 0;
  3752. let text = this.loadMap(opts.from, prev);
  3753. if (!this.mapFile && opts.from) {
  3754. this.mapFile = opts.from;
  3755. }
  3756. if (this.mapFile) this.root = dirname(this.mapFile);
  3757. if (text) this.text = text;
  3758. }
  3759. consumer() {
  3760. if (!this.consumerCache) {
  3761. this.consumerCache = new SourceMapConsumer(this.text);
  3762. }
  3763. return this.consumerCache;
  3764. }
  3765. decodeInline(text) {
  3766. let baseCharsetUri = /^data:application\/json;charset=utf-?8;base64,/;
  3767. let baseUri = /^data:application\/json;base64,/;
  3768. let charsetUri = /^data:application\/json;charset=utf-?8,/;
  3769. let uri = /^data:application\/json,/;
  3770. let uriMatch = text.match(charsetUri) || text.match(uri);
  3771. if (uriMatch) {
  3772. return decodeURIComponent(text.substr(uriMatch[0].length));
  3773. }
  3774. let baseUriMatch = text.match(baseCharsetUri) || text.match(baseUri);
  3775. if (baseUriMatch) {
  3776. return fromBase64(text.substr(baseUriMatch[0].length));
  3777. }
  3778. let encoding = text.match(/data:application\/json;([^,]+),/)[1];
  3779. throw new Error("Unsupported source map encoding " + encoding);
  3780. }
  3781. getAnnotationURL(sourceMapString) {
  3782. return sourceMapString.replace(/^\/\*\s*# sourceMappingURL=/, "").trim();
  3783. }
  3784. isMap(map) {
  3785. if (typeof map !== "object") return false;
  3786. return typeof map.mappings === "string" || typeof map._mappings === "string" || Array.isArray(map.sections);
  3787. }
  3788. loadAnnotation(css) {
  3789. let comments = css.match(/\/\*\s*# sourceMappingURL=/g);
  3790. if (!comments) return;
  3791. let start = css.lastIndexOf(comments.pop());
  3792. let end = css.indexOf("*/", start);
  3793. if (start > -1 && end > -1) {
  3794. this.annotation = this.getAnnotationURL(css.substring(start, end));
  3795. }
  3796. }
  3797. loadFile(path) {
  3798. this.root = dirname(path);
  3799. if (existsSync(path)) {
  3800. this.mapFile = path;
  3801. return readFileSync(path, "utf-8").toString().trim();
  3802. }
  3803. }
  3804. loadMap(file, prev) {
  3805. if (prev === false) return false;
  3806. if (prev) {
  3807. if (typeof prev === "string") {
  3808. return prev;
  3809. } else if (typeof prev === "function") {
  3810. let prevPath = prev(file);
  3811. if (prevPath) {
  3812. let map = this.loadFile(prevPath);
  3813. if (!map) {
  3814. throw new Error(
  3815. "Unable to load previous source map: " + prevPath.toString()
  3816. );
  3817. }
  3818. return map;
  3819. }
  3820. } else if (prev instanceof SourceMapConsumer) {
  3821. return SourceMapGenerator.fromSourceMap(prev).toString();
  3822. } else if (prev instanceof SourceMapGenerator) {
  3823. return prev.toString();
  3824. } else if (this.isMap(prev)) {
  3825. return JSON.stringify(prev);
  3826. } else {
  3827. throw new Error(
  3828. "Unsupported previous source map format: " + prev.toString()
  3829. );
  3830. }
  3831. } else if (this.inline) {
  3832. return this.decodeInline(this.annotation);
  3833. } else if (this.annotation) {
  3834. let map = this.annotation;
  3835. if (file) map = join(dirname(file), map);
  3836. return this.loadFile(map);
  3837. }
  3838. }
  3839. startWith(string, start) {
  3840. if (!string) return false;
  3841. return string.substr(0, start.length) === start;
  3842. }
  3843. withContent() {
  3844. return !!(this.consumer().sourcesContent && this.consumer().sourcesContent.length > 0);
  3845. }
  3846. };
  3847. module2.exports = PreviousMap;
  3848. PreviousMap.default = PreviousMap;
  3849. }
  3850. });
  3851. // node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/input.js
  3852. var require_input = __commonJS({
  3853. "node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/input.js"(exports2, module2) {
  3854. "use strict";
  3855. var { nanoid } = require_non_secure();
  3856. var { isAbsolute, resolve } = require("path");
  3857. var { SourceMapConsumer, SourceMapGenerator } = require_source_map();
  3858. var { fileURLToPath, pathToFileURL } = require("url");
  3859. var CssSyntaxError = require_css_syntax_error();
  3860. var PreviousMap = require_previous_map();
  3861. var terminalHighlight = require_terminal_highlight();
  3862. var fromOffsetCache = Symbol("fromOffsetCache");
  3863. var sourceMapAvailable = Boolean(SourceMapConsumer && SourceMapGenerator);
  3864. var pathAvailable = Boolean(resolve && isAbsolute);
  3865. var Input = class {
  3866. get from() {
  3867. return this.file || this.id;
  3868. }
  3869. constructor(css, opts = {}) {
  3870. if (css === null || typeof css === "undefined" || typeof css === "object" && !css.toString) {
  3871. throw new Error(`PostCSS received ${css} instead of CSS string`);
  3872. }
  3873. this.css = css.toString();
  3874. if (this.css[0] === "\uFEFF" || this.css[0] === "\uFFFE") {
  3875. this.hasBOM = true;
  3876. this.css = this.css.slice(1);
  3877. } else {
  3878. this.hasBOM = false;
  3879. }
  3880. this.document = this.css;
  3881. if (opts.document) this.document = opts.document.toString();
  3882. if (opts.from) {
  3883. if (!pathAvailable || /^\w+:\/\//.test(opts.from) || isAbsolute(opts.from)) {
  3884. this.file = opts.from;
  3885. } else {
  3886. this.file = resolve(opts.from);
  3887. }
  3888. }
  3889. if (pathAvailable && sourceMapAvailable) {
  3890. let map = new PreviousMap(this.css, opts);
  3891. if (map.text) {
  3892. this.map = map;
  3893. let file = map.consumer().file;
  3894. if (!this.file && file) this.file = this.mapResolve(file);
  3895. }
  3896. }
  3897. if (!this.file) {
  3898. this.id = "<input css " + nanoid(6) + ">";
  3899. }
  3900. if (this.map) this.map.file = this.from;
  3901. }
  3902. error(message, line, column, opts = {}) {
  3903. let endColumn, endLine, result;
  3904. if (line && typeof line === "object") {
  3905. let start = line;
  3906. let end = column;
  3907. if (typeof start.offset === "number") {
  3908. let pos = this.fromOffset(start.offset);
  3909. line = pos.line;
  3910. column = pos.col;
  3911. } else {
  3912. line = start.line;
  3913. column = start.column;
  3914. }
  3915. if (typeof end.offset === "number") {
  3916. let pos = this.fromOffset(end.offset);
  3917. endLine = pos.line;
  3918. endColumn = pos.col;
  3919. } else {
  3920. endLine = end.line;
  3921. endColumn = end.column;
  3922. }
  3923. } else if (!column) {
  3924. let pos = this.fromOffset(line);
  3925. line = pos.line;
  3926. column = pos.col;
  3927. }
  3928. let origin = this.origin(line, column, endLine, endColumn);
  3929. if (origin) {
  3930. result = new CssSyntaxError(
  3931. message,
  3932. origin.endLine === void 0 ? origin.line : { column: origin.column, line: origin.line },
  3933. origin.endLine === void 0 ? origin.column : { column: origin.endColumn, line: origin.endLine },
  3934. origin.source,
  3935. origin.file,
  3936. opts.plugin
  3937. );
  3938. } else {
  3939. result = new CssSyntaxError(
  3940. message,
  3941. endLine === void 0 ? line : { column, line },
  3942. endLine === void 0 ? column : { column: endColumn, line: endLine },
  3943. this.css,
  3944. this.file,
  3945. opts.plugin
  3946. );
  3947. }
  3948. result.input = { column, endColumn, endLine, line, source: this.css };
  3949. if (this.file) {
  3950. if (pathToFileURL) {
  3951. result.input.url = pathToFileURL(this.file).toString();
  3952. }
  3953. result.input.file = this.file;
  3954. }
  3955. return result;
  3956. }
  3957. fromOffset(offset) {
  3958. let lastLine, lineToIndex;
  3959. if (!this[fromOffsetCache]) {
  3960. let lines = this.css.split("\n");
  3961. lineToIndex = new Array(lines.length);
  3962. let prevIndex = 0;
  3963. for (let i = 0, l = lines.length; i < l; i++) {
  3964. lineToIndex[i] = prevIndex;
  3965. prevIndex += lines[i].length + 1;
  3966. }
  3967. this[fromOffsetCache] = lineToIndex;
  3968. } else {
  3969. lineToIndex = this[fromOffsetCache];
  3970. }
  3971. lastLine = lineToIndex[lineToIndex.length - 1];
  3972. let min = 0;
  3973. if (offset >= lastLine) {
  3974. min = lineToIndex.length - 1;
  3975. } else {
  3976. let max = lineToIndex.length - 2;
  3977. let mid;
  3978. while (min < max) {
  3979. mid = min + (max - min >> 1);
  3980. if (offset < lineToIndex[mid]) {
  3981. max = mid - 1;
  3982. } else if (offset >= lineToIndex[mid + 1]) {
  3983. min = mid + 1;
  3984. } else {
  3985. min = mid;
  3986. break;
  3987. }
  3988. }
  3989. }
  3990. return {
  3991. col: offset - lineToIndex[min] + 1,
  3992. line: min + 1
  3993. };
  3994. }
  3995. mapResolve(file) {
  3996. if (/^\w+:\/\//.test(file)) {
  3997. return file;
  3998. }
  3999. return resolve(this.map.consumer().sourceRoot || this.map.root || ".", file);
  4000. }
  4001. origin(line, column, endLine, endColumn) {
  4002. if (!this.map) return false;
  4003. let consumer = this.map.consumer();
  4004. let from = consumer.originalPositionFor({ column, line });
  4005. if (!from.source) return false;
  4006. let to;
  4007. if (typeof endLine === "number") {
  4008. to = consumer.originalPositionFor({ column: endColumn, line: endLine });
  4009. }
  4010. let fromUrl;
  4011. if (isAbsolute(from.source)) {
  4012. fromUrl = pathToFileURL(from.source);
  4013. } else {
  4014. fromUrl = new URL(
  4015. from.source,
  4016. this.map.consumer().sourceRoot || pathToFileURL(this.map.mapFile)
  4017. );
  4018. }
  4019. let result = {
  4020. column: from.column,
  4021. endColumn: to && to.column,
  4022. endLine: to && to.line,
  4023. line: from.line,
  4024. url: fromUrl.toString()
  4025. };
  4026. if (fromUrl.protocol === "file:") {
  4027. if (fileURLToPath) {
  4028. result.file = fileURLToPath(fromUrl);
  4029. } else {
  4030. throw new Error(`file: protocol is not available in this PostCSS build`);
  4031. }
  4032. }
  4033. let source = consumer.sourceContentFor(from.source);
  4034. if (source) result.source = source;
  4035. return result;
  4036. }
  4037. toJSON() {
  4038. let json = {};
  4039. for (let name of ["hasBOM", "css", "file", "id"]) {
  4040. if (this[name] != null) {
  4041. json[name] = this[name];
  4042. }
  4043. }
  4044. if (this.map) {
  4045. json.map = __spreadValues({}, this.map);
  4046. if (json.map.consumerCache) {
  4047. json.map.consumerCache = void 0;
  4048. }
  4049. }
  4050. return json;
  4051. }
  4052. };
  4053. module2.exports = Input;
  4054. Input.default = Input;
  4055. if (terminalHighlight && terminalHighlight.registerInput) {
  4056. terminalHighlight.registerInput(Input);
  4057. }
  4058. }
  4059. });
  4060. // node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/root.js
  4061. var require_root = __commonJS({
  4062. "node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/root.js"(exports2, module2) {
  4063. "use strict";
  4064. var Container = require_container();
  4065. var LazyResult;
  4066. var Processor;
  4067. var Root = class extends Container {
  4068. constructor(defaults) {
  4069. super(defaults);
  4070. this.type = "root";
  4071. if (!this.nodes) this.nodes = [];
  4072. }
  4073. normalize(child, sample, type) {
  4074. let nodes = super.normalize(child);
  4075. if (sample) {
  4076. if (type === "prepend") {
  4077. if (this.nodes.length > 1) {
  4078. sample.raws.before = this.nodes[1].raws.before;
  4079. } else {
  4080. delete sample.raws.before;
  4081. }
  4082. } else if (this.first !== sample) {
  4083. for (let node of nodes) {
  4084. node.raws.before = sample.raws.before;
  4085. }
  4086. }
  4087. }
  4088. return nodes;
  4089. }
  4090. removeChild(child, ignore) {
  4091. let index = this.index(child);
  4092. if (!ignore && index === 0 && this.nodes.length > 1) {
  4093. this.nodes[1].raws.before = this.nodes[index].raws.before;
  4094. }
  4095. return super.removeChild(child);
  4096. }
  4097. toResult(opts = {}) {
  4098. let lazy = new LazyResult(new Processor(), this, opts);
  4099. return lazy.stringify();
  4100. }
  4101. };
  4102. Root.registerLazyResult = (dependant) => {
  4103. LazyResult = dependant;
  4104. };
  4105. Root.registerProcessor = (dependant) => {
  4106. Processor = dependant;
  4107. };
  4108. module2.exports = Root;
  4109. Root.default = Root;
  4110. Container.registerRoot(Root);
  4111. }
  4112. });
  4113. // node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/list.js
  4114. var require_list = __commonJS({
  4115. "node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/list.js"(exports2, module2) {
  4116. "use strict";
  4117. var list = {
  4118. comma(string) {
  4119. return list.split(string, [","], true);
  4120. },
  4121. space(string) {
  4122. let spaces = [" ", "\n", " "];
  4123. return list.split(string, spaces);
  4124. },
  4125. split(string, separators, last) {
  4126. let array = [];
  4127. let current = "";
  4128. let split = false;
  4129. let func = 0;
  4130. let inQuote = false;
  4131. let prevQuote = "";
  4132. let escape = false;
  4133. for (let letter of string) {
  4134. if (escape) {
  4135. escape = false;
  4136. } else if (letter === "\\") {
  4137. escape = true;
  4138. } else if (inQuote) {
  4139. if (letter === prevQuote) {
  4140. inQuote = false;
  4141. }
  4142. } else if (letter === '"' || letter === "'") {
  4143. inQuote = true;
  4144. prevQuote = letter;
  4145. } else if (letter === "(") {
  4146. func += 1;
  4147. } else if (letter === ")") {
  4148. if (func > 0) func -= 1;
  4149. } else if (func === 0) {
  4150. if (separators.includes(letter)) split = true;
  4151. }
  4152. if (split) {
  4153. if (current !== "") array.push(current.trim());
  4154. current = "";
  4155. split = false;
  4156. } else {
  4157. current += letter;
  4158. }
  4159. }
  4160. if (last || current !== "") array.push(current.trim());
  4161. return array;
  4162. }
  4163. };
  4164. module2.exports = list;
  4165. list.default = list;
  4166. }
  4167. });
  4168. // node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/rule.js
  4169. var require_rule = __commonJS({
  4170. "node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/rule.js"(exports2, module2) {
  4171. "use strict";
  4172. var Container = require_container();
  4173. var list = require_list();
  4174. var Rule = class extends Container {
  4175. get selectors() {
  4176. return list.comma(this.selector);
  4177. }
  4178. set selectors(values) {
  4179. let match = this.selector ? this.selector.match(/,\s*/) : null;
  4180. let sep = match ? match[0] : "," + this.raw("between", "beforeOpen");
  4181. this.selector = values.join(sep);
  4182. }
  4183. constructor(defaults) {
  4184. super(defaults);
  4185. this.type = "rule";
  4186. if (!this.nodes) this.nodes = [];
  4187. }
  4188. };
  4189. module2.exports = Rule;
  4190. Rule.default = Rule;
  4191. Container.registerRule(Rule);
  4192. }
  4193. });
  4194. // node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/fromJSON.js
  4195. var require_fromJSON = __commonJS({
  4196. "node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/fromJSON.js"(exports2, module2) {
  4197. "use strict";
  4198. var AtRule = require_at_rule();
  4199. var Comment = require_comment();
  4200. var Declaration = require_declaration();
  4201. var Input = require_input();
  4202. var PreviousMap = require_previous_map();
  4203. var Root = require_root();
  4204. var Rule = require_rule();
  4205. function fromJSON(json, inputs) {
  4206. if (Array.isArray(json)) return json.map((n) => fromJSON(n));
  4207. let _a = json, { inputs: ownInputs } = _a, defaults = __objRest(_a, ["inputs"]);
  4208. if (ownInputs) {
  4209. inputs = [];
  4210. for (let input of ownInputs) {
  4211. let inputHydrated = __spreadProps(__spreadValues({}, input), { __proto__: Input.prototype });
  4212. if (inputHydrated.map) {
  4213. inputHydrated.map = __spreadProps(__spreadValues({}, inputHydrated.map), {
  4214. __proto__: PreviousMap.prototype
  4215. });
  4216. }
  4217. inputs.push(inputHydrated);
  4218. }
  4219. }
  4220. if (defaults.nodes) {
  4221. defaults.nodes = json.nodes.map((n) => fromJSON(n, inputs));
  4222. }
  4223. if (defaults.source) {
  4224. let _b = defaults.source, { inputId } = _b, source = __objRest(_b, ["inputId"]);
  4225. defaults.source = source;
  4226. if (inputId != null) {
  4227. defaults.source.input = inputs[inputId];
  4228. }
  4229. }
  4230. if (defaults.type === "root") {
  4231. return new Root(defaults);
  4232. } else if (defaults.type === "decl") {
  4233. return new Declaration(defaults);
  4234. } else if (defaults.type === "rule") {
  4235. return new Rule(defaults);
  4236. } else if (defaults.type === "comment") {
  4237. return new Comment(defaults);
  4238. } else if (defaults.type === "atrule") {
  4239. return new AtRule(defaults);
  4240. } else {
  4241. throw new Error("Unknown node type: " + json.type);
  4242. }
  4243. }
  4244. module2.exports = fromJSON;
  4245. fromJSON.default = fromJSON;
  4246. }
  4247. });
  4248. // node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/map-generator.js
  4249. var require_map_generator = __commonJS({
  4250. "node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/map-generator.js"(exports2, module2) {
  4251. "use strict";
  4252. var { dirname, relative, resolve, sep } = require("path");
  4253. var { SourceMapConsumer, SourceMapGenerator } = require_source_map();
  4254. var { pathToFileURL } = require("url");
  4255. var Input = require_input();
  4256. var sourceMapAvailable = Boolean(SourceMapConsumer && SourceMapGenerator);
  4257. var pathAvailable = Boolean(dirname && resolve && relative && sep);
  4258. var MapGenerator = class {
  4259. constructor(stringify, root, opts, cssString) {
  4260. this.stringify = stringify;
  4261. this.mapOpts = opts.map || {};
  4262. this.root = root;
  4263. this.opts = opts;
  4264. this.css = cssString;
  4265. this.originalCSS = cssString;
  4266. this.usesFileUrls = !this.mapOpts.from && this.mapOpts.absolute;
  4267. this.memoizedFileURLs = /* @__PURE__ */ new Map();
  4268. this.memoizedPaths = /* @__PURE__ */ new Map();
  4269. this.memoizedURLs = /* @__PURE__ */ new Map();
  4270. }
  4271. addAnnotation() {
  4272. let content;
  4273. if (this.isInline()) {
  4274. content = "data:application/json;base64," + this.toBase64(this.map.toString());
  4275. } else if (typeof this.mapOpts.annotation === "string") {
  4276. content = this.mapOpts.annotation;
  4277. } else if (typeof this.mapOpts.annotation === "function") {
  4278. content = this.mapOpts.annotation(this.opts.to, this.root);
  4279. } else {
  4280. content = this.outputFile() + ".map";
  4281. }
  4282. let eol = "\n";
  4283. if (this.css.includes("\r\n")) eol = "\r\n";
  4284. this.css += eol + "/*# sourceMappingURL=" + content + " */";
  4285. }
  4286. applyPrevMaps() {
  4287. for (let prev of this.previous()) {
  4288. let from = this.toUrl(this.path(prev.file));
  4289. let root = prev.root || dirname(prev.file);
  4290. let map;
  4291. if (this.mapOpts.sourcesContent === false) {
  4292. map = new SourceMapConsumer(prev.text);
  4293. if (map.sourcesContent) {
  4294. map.sourcesContent = null;
  4295. }
  4296. } else {
  4297. map = prev.consumer();
  4298. }
  4299. this.map.applySourceMap(map, from, this.toUrl(this.path(root)));
  4300. }
  4301. }
  4302. clearAnnotation() {
  4303. if (this.mapOpts.annotation === false) return;
  4304. if (this.root) {
  4305. let node;
  4306. for (let i = this.root.nodes.length - 1; i >= 0; i--) {
  4307. node = this.root.nodes[i];
  4308. if (node.type !== "comment") continue;
  4309. if (node.text.startsWith("# sourceMappingURL=")) {
  4310. this.root.removeChild(i);
  4311. }
  4312. }
  4313. } else if (this.css) {
  4314. this.css = this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm, "");
  4315. }
  4316. }
  4317. generate() {
  4318. this.clearAnnotation();
  4319. if (pathAvailable && sourceMapAvailable && this.isMap()) {
  4320. return this.generateMap();
  4321. } else {
  4322. let result = "";
  4323. this.stringify(this.root, (i) => {
  4324. result += i;
  4325. });
  4326. return [result];
  4327. }
  4328. }
  4329. generateMap() {
  4330. if (this.root) {
  4331. this.generateString();
  4332. } else if (this.previous().length === 1) {
  4333. let prev = this.previous()[0].consumer();
  4334. prev.file = this.outputFile();
  4335. this.map = SourceMapGenerator.fromSourceMap(prev, {
  4336. ignoreInvalidMapping: true
  4337. });
  4338. } else {
  4339. this.map = new SourceMapGenerator({
  4340. file: this.outputFile(),
  4341. ignoreInvalidMapping: true
  4342. });
  4343. this.map.addMapping({
  4344. generated: { column: 0, line: 1 },
  4345. original: { column: 0, line: 1 },
  4346. source: this.opts.from ? this.toUrl(this.path(this.opts.from)) : "<no source>"
  4347. });
  4348. }
  4349. if (this.isSourcesContent()) this.setSourcesContent();
  4350. if (this.root && this.previous().length > 0) this.applyPrevMaps();
  4351. if (this.isAnnotation()) this.addAnnotation();
  4352. if (this.isInline()) {
  4353. return [this.css];
  4354. } else {
  4355. return [this.css, this.map];
  4356. }
  4357. }
  4358. generateString() {
  4359. this.css = "";
  4360. this.map = new SourceMapGenerator({
  4361. file: this.outputFile(),
  4362. ignoreInvalidMapping: true
  4363. });
  4364. let line = 1;
  4365. let column = 1;
  4366. let noSource = "<no source>";
  4367. let mapping = {
  4368. generated: { column: 0, line: 0 },
  4369. original: { column: 0, line: 0 },
  4370. source: ""
  4371. };
  4372. let last, lines;
  4373. this.stringify(this.root, (str, node, type) => {
  4374. this.css += str;
  4375. if (node && type !== "end") {
  4376. mapping.generated.line = line;
  4377. mapping.generated.column = column - 1;
  4378. if (node.source && node.source.start) {
  4379. mapping.source = this.sourcePath(node);
  4380. mapping.original.line = node.source.start.line;
  4381. mapping.original.column = node.source.start.column - 1;
  4382. this.map.addMapping(mapping);
  4383. } else {
  4384. mapping.source = noSource;
  4385. mapping.original.line = 1;
  4386. mapping.original.column = 0;
  4387. this.map.addMapping(mapping);
  4388. }
  4389. }
  4390. lines = str.match(/\n/g);
  4391. if (lines) {
  4392. line += lines.length;
  4393. last = str.lastIndexOf("\n");
  4394. column = str.length - last;
  4395. } else {
  4396. column += str.length;
  4397. }
  4398. if (node && type !== "start") {
  4399. let p = node.parent || { raws: {} };
  4400. let childless = node.type === "decl" || node.type === "atrule" && !node.nodes;
  4401. if (!childless || node !== p.last || p.raws.semicolon) {
  4402. if (node.source && node.source.end) {
  4403. mapping.source = this.sourcePath(node);
  4404. mapping.original.line = node.source.end.line;
  4405. mapping.original.column = node.source.end.column - 1;
  4406. mapping.generated.line = line;
  4407. mapping.generated.column = column - 2;
  4408. this.map.addMapping(mapping);
  4409. } else {
  4410. mapping.source = noSource;
  4411. mapping.original.line = 1;
  4412. mapping.original.column = 0;
  4413. mapping.generated.line = line;
  4414. mapping.generated.column = column - 1;
  4415. this.map.addMapping(mapping);
  4416. }
  4417. }
  4418. }
  4419. });
  4420. }
  4421. isAnnotation() {
  4422. if (this.isInline()) {
  4423. return true;
  4424. }
  4425. if (typeof this.mapOpts.annotation !== "undefined") {
  4426. return this.mapOpts.annotation;
  4427. }
  4428. if (this.previous().length) {
  4429. return this.previous().some((i) => i.annotation);
  4430. }
  4431. return true;
  4432. }
  4433. isInline() {
  4434. if (typeof this.mapOpts.inline !== "undefined") {
  4435. return this.mapOpts.inline;
  4436. }
  4437. let annotation = this.mapOpts.annotation;
  4438. if (typeof annotation !== "undefined" && annotation !== true) {
  4439. return false;
  4440. }
  4441. if (this.previous().length) {
  4442. return this.previous().some((i) => i.inline);
  4443. }
  4444. return true;
  4445. }
  4446. isMap() {
  4447. if (typeof this.opts.map !== "undefined") {
  4448. return !!this.opts.map;
  4449. }
  4450. return this.previous().length > 0;
  4451. }
  4452. isSourcesContent() {
  4453. if (typeof this.mapOpts.sourcesContent !== "undefined") {
  4454. return this.mapOpts.sourcesContent;
  4455. }
  4456. if (this.previous().length) {
  4457. return this.previous().some((i) => i.withContent());
  4458. }
  4459. return true;
  4460. }
  4461. outputFile() {
  4462. if (this.opts.to) {
  4463. return this.path(this.opts.to);
  4464. } else if (this.opts.from) {
  4465. return this.path(this.opts.from);
  4466. } else {
  4467. return "to.css";
  4468. }
  4469. }
  4470. path(file) {
  4471. if (this.mapOpts.absolute) return file;
  4472. if (file.charCodeAt(0) === 60) return file;
  4473. if (/^\w+:\/\//.test(file)) return file;
  4474. let cached = this.memoizedPaths.get(file);
  4475. if (cached) return cached;
  4476. let from = this.opts.to ? dirname(this.opts.to) : ".";
  4477. if (typeof this.mapOpts.annotation === "string") {
  4478. from = dirname(resolve(from, this.mapOpts.annotation));
  4479. }
  4480. let path = relative(from, file);
  4481. this.memoizedPaths.set(file, path);
  4482. return path;
  4483. }
  4484. previous() {
  4485. if (!this.previousMaps) {
  4486. this.previousMaps = [];
  4487. if (this.root) {
  4488. this.root.walk((node) => {
  4489. if (node.source && node.source.input.map) {
  4490. let map = node.source.input.map;
  4491. if (!this.previousMaps.includes(map)) {
  4492. this.previousMaps.push(map);
  4493. }
  4494. }
  4495. });
  4496. } else {
  4497. let input = new Input(this.originalCSS, this.opts);
  4498. if (input.map) this.previousMaps.push(input.map);
  4499. }
  4500. }
  4501. return this.previousMaps;
  4502. }
  4503. setSourcesContent() {
  4504. let already = {};
  4505. if (this.root) {
  4506. this.root.walk((node) => {
  4507. if (node.source) {
  4508. let from = node.source.input.from;
  4509. if (from && !already[from]) {
  4510. already[from] = true;
  4511. let fromUrl = this.usesFileUrls ? this.toFileUrl(from) : this.toUrl(this.path(from));
  4512. this.map.setSourceContent(fromUrl, node.source.input.css);
  4513. }
  4514. }
  4515. });
  4516. } else if (this.css) {
  4517. let from = this.opts.from ? this.toUrl(this.path(this.opts.from)) : "<no source>";
  4518. this.map.setSourceContent(from, this.css);
  4519. }
  4520. }
  4521. sourcePath(node) {
  4522. if (this.mapOpts.from) {
  4523. return this.toUrl(this.mapOpts.from);
  4524. } else if (this.usesFileUrls) {
  4525. return this.toFileUrl(node.source.input.from);
  4526. } else {
  4527. return this.toUrl(this.path(node.source.input.from));
  4528. }
  4529. }
  4530. toBase64(str) {
  4531. if (Buffer) {
  4532. return Buffer.from(str).toString("base64");
  4533. } else {
  4534. return window.btoa(unescape(encodeURIComponent(str)));
  4535. }
  4536. }
  4537. toFileUrl(path) {
  4538. let cached = this.memoizedFileURLs.get(path);
  4539. if (cached) return cached;
  4540. if (pathToFileURL) {
  4541. let fileURL = pathToFileURL(path).toString();
  4542. this.memoizedFileURLs.set(path, fileURL);
  4543. return fileURL;
  4544. } else {
  4545. throw new Error(
  4546. "`map.absolute` option is not available in this PostCSS build"
  4547. );
  4548. }
  4549. }
  4550. toUrl(path) {
  4551. let cached = this.memoizedURLs.get(path);
  4552. if (cached) return cached;
  4553. if (sep === "\\") {
  4554. path = path.replace(/\\/g, "/");
  4555. }
  4556. let url = encodeURI(path).replace(/[#?]/g, encodeURIComponent);
  4557. this.memoizedURLs.set(path, url);
  4558. return url;
  4559. }
  4560. };
  4561. module2.exports = MapGenerator;
  4562. }
  4563. });
  4564. // node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/parser.js
  4565. var require_parser = __commonJS({
  4566. "node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/parser.js"(exports2, module2) {
  4567. "use strict";
  4568. var AtRule = require_at_rule();
  4569. var Comment = require_comment();
  4570. var Declaration = require_declaration();
  4571. var Root = require_root();
  4572. var Rule = require_rule();
  4573. var tokenizer = require_tokenize();
  4574. var SAFE_COMMENT_NEIGHBOR = {
  4575. empty: true,
  4576. space: true
  4577. };
  4578. function findLastWithPosition(tokens) {
  4579. for (let i = tokens.length - 1; i >= 0; i--) {
  4580. let token = tokens[i];
  4581. let pos = token[3] || token[2];
  4582. if (pos) return pos;
  4583. }
  4584. }
  4585. var Parser = class {
  4586. constructor(input) {
  4587. this.input = input;
  4588. this.root = new Root();
  4589. this.current = this.root;
  4590. this.spaces = "";
  4591. this.semicolon = false;
  4592. this.createTokenizer();
  4593. this.root.source = { input, start: { column: 1, line: 1, offset: 0 } };
  4594. }
  4595. atrule(token) {
  4596. let node = new AtRule();
  4597. node.name = token[1].slice(1);
  4598. if (node.name === "") {
  4599. this.unnamedAtrule(node, token);
  4600. }
  4601. this.init(node, token[2]);
  4602. let type;
  4603. let prev;
  4604. let shift;
  4605. let last = false;
  4606. let open = false;
  4607. let params = [];
  4608. let brackets = [];
  4609. while (!this.tokenizer.endOfFile()) {
  4610. token = this.tokenizer.nextToken();
  4611. type = token[0];
  4612. if (type === "(" || type === "[") {
  4613. brackets.push(type === "(" ? ")" : "]");
  4614. } else if (type === "{" && brackets.length > 0) {
  4615. brackets.push("}");
  4616. } else if (type === brackets[brackets.length - 1]) {
  4617. brackets.pop();
  4618. }
  4619. if (brackets.length === 0) {
  4620. if (type === ";") {
  4621. node.source.end = this.getPosition(token[2]);
  4622. node.source.end.offset++;
  4623. this.semicolon = true;
  4624. break;
  4625. } else if (type === "{") {
  4626. open = true;
  4627. break;
  4628. } else if (type === "}") {
  4629. if (params.length > 0) {
  4630. shift = params.length - 1;
  4631. prev = params[shift];
  4632. while (prev && prev[0] === "space") {
  4633. prev = params[--shift];
  4634. }
  4635. if (prev) {
  4636. node.source.end = this.getPosition(prev[3] || prev[2]);
  4637. node.source.end.offset++;
  4638. }
  4639. }
  4640. this.end(token);
  4641. break;
  4642. } else {
  4643. params.push(token);
  4644. }
  4645. } else {
  4646. params.push(token);
  4647. }
  4648. if (this.tokenizer.endOfFile()) {
  4649. last = true;
  4650. break;
  4651. }
  4652. }
  4653. node.raws.between = this.spacesAndCommentsFromEnd(params);
  4654. if (params.length) {
  4655. node.raws.afterName = this.spacesAndCommentsFromStart(params);
  4656. this.raw(node, "params", params);
  4657. if (last) {
  4658. token = params[params.length - 1];
  4659. node.source.end = this.getPosition(token[3] || token[2]);
  4660. node.source.end.offset++;
  4661. this.spaces = node.raws.between;
  4662. node.raws.between = "";
  4663. }
  4664. } else {
  4665. node.raws.afterName = "";
  4666. node.params = "";
  4667. }
  4668. if (open) {
  4669. node.nodes = [];
  4670. this.current = node;
  4671. }
  4672. }
  4673. checkMissedSemicolon(tokens) {
  4674. let colon = this.colon(tokens);
  4675. if (colon === false) return;
  4676. let founded = 0;
  4677. let token;
  4678. for (let j = colon - 1; j >= 0; j--) {
  4679. token = tokens[j];
  4680. if (token[0] !== "space") {
  4681. founded += 1;
  4682. if (founded === 2) break;
  4683. }
  4684. }
  4685. throw this.input.error(
  4686. "Missed semicolon",
  4687. token[0] === "word" ? token[3] + 1 : token[2]
  4688. );
  4689. }
  4690. colon(tokens) {
  4691. let brackets = 0;
  4692. let prev, token, type;
  4693. for (let [i, element] of tokens.entries()) {
  4694. token = element;
  4695. type = token[0];
  4696. if (type === "(") {
  4697. brackets += 1;
  4698. }
  4699. if (type === ")") {
  4700. brackets -= 1;
  4701. }
  4702. if (brackets === 0 && type === ":") {
  4703. if (!prev) {
  4704. this.doubleColon(token);
  4705. } else if (prev[0] === "word" && prev[1] === "progid") {
  4706. continue;
  4707. } else {
  4708. return i;
  4709. }
  4710. }
  4711. prev = token;
  4712. }
  4713. return false;
  4714. }
  4715. comment(token) {
  4716. let node = new Comment();
  4717. this.init(node, token[2]);
  4718. node.source.end = this.getPosition(token[3] || token[2]);
  4719. node.source.end.offset++;
  4720. let text = token[1].slice(2, -2);
  4721. if (/^\s*$/.test(text)) {
  4722. node.text = "";
  4723. node.raws.left = text;
  4724. node.raws.right = "";
  4725. } else {
  4726. let match = text.match(/^(\s*)([^]*\S)(\s*)$/);
  4727. node.text = match[2];
  4728. node.raws.left = match[1];
  4729. node.raws.right = match[3];
  4730. }
  4731. }
  4732. createTokenizer() {
  4733. this.tokenizer = tokenizer(this.input);
  4734. }
  4735. decl(tokens, customProperty) {
  4736. let node = new Declaration();
  4737. this.init(node, tokens[0][2]);
  4738. let last = tokens[tokens.length - 1];
  4739. if (last[0] === ";") {
  4740. this.semicolon = true;
  4741. tokens.pop();
  4742. }
  4743. node.source.end = this.getPosition(
  4744. last[3] || last[2] || findLastWithPosition(tokens)
  4745. );
  4746. node.source.end.offset++;
  4747. while (tokens[0][0] !== "word") {
  4748. if (tokens.length === 1) this.unknownWord(tokens);
  4749. node.raws.before += tokens.shift()[1];
  4750. }
  4751. node.source.start = this.getPosition(tokens[0][2]);
  4752. node.prop = "";
  4753. while (tokens.length) {
  4754. let type = tokens[0][0];
  4755. if (type === ":" || type === "space" || type === "comment") {
  4756. break;
  4757. }
  4758. node.prop += tokens.shift()[1];
  4759. }
  4760. node.raws.between = "";
  4761. let token;
  4762. while (tokens.length) {
  4763. token = tokens.shift();
  4764. if (token[0] === ":") {
  4765. node.raws.between += token[1];
  4766. break;
  4767. } else {
  4768. if (token[0] === "word" && /\w/.test(token[1])) {
  4769. this.unknownWord([token]);
  4770. }
  4771. node.raws.between += token[1];
  4772. }
  4773. }
  4774. if (node.prop[0] === "_" || node.prop[0] === "*") {
  4775. node.raws.before += node.prop[0];
  4776. node.prop = node.prop.slice(1);
  4777. }
  4778. let firstSpaces = [];
  4779. let next;
  4780. while (tokens.length) {
  4781. next = tokens[0][0];
  4782. if (next !== "space" && next !== "comment") break;
  4783. firstSpaces.push(tokens.shift());
  4784. }
  4785. this.precheckMissedSemicolon(tokens);
  4786. for (let i = tokens.length - 1; i >= 0; i--) {
  4787. token = tokens[i];
  4788. if (token[1].toLowerCase() === "!important") {
  4789. node.important = true;
  4790. let string = this.stringFrom(tokens, i);
  4791. string = this.spacesFromEnd(tokens) + string;
  4792. if (string !== " !important") node.raws.important = string;
  4793. break;
  4794. } else if (token[1].toLowerCase() === "important") {
  4795. let cache = tokens.slice(0);
  4796. let str = "";
  4797. for (let j = i; j > 0; j--) {
  4798. let type = cache[j][0];
  4799. if (str.trim().startsWith("!") && type !== "space") {
  4800. break;
  4801. }
  4802. str = cache.pop()[1] + str;
  4803. }
  4804. if (str.trim().startsWith("!")) {
  4805. node.important = true;
  4806. node.raws.important = str;
  4807. tokens = cache;
  4808. }
  4809. }
  4810. if (token[0] !== "space" && token[0] !== "comment") {
  4811. break;
  4812. }
  4813. }
  4814. let hasWord = tokens.some((i) => i[0] !== "space" && i[0] !== "comment");
  4815. if (hasWord) {
  4816. node.raws.between += firstSpaces.map((i) => i[1]).join("");
  4817. firstSpaces = [];
  4818. }
  4819. this.raw(node, "value", firstSpaces.concat(tokens), customProperty);
  4820. if (node.value.includes(":") && !customProperty) {
  4821. this.checkMissedSemicolon(tokens);
  4822. }
  4823. }
  4824. doubleColon(token) {
  4825. throw this.input.error(
  4826. "Double colon",
  4827. { offset: token[2] },
  4828. { offset: token[2] + token[1].length }
  4829. );
  4830. }
  4831. emptyRule(token) {
  4832. let node = new Rule();
  4833. this.init(node, token[2]);
  4834. node.selector = "";
  4835. node.raws.between = "";
  4836. this.current = node;
  4837. }
  4838. end(token) {
  4839. if (this.current.nodes && this.current.nodes.length) {
  4840. this.current.raws.semicolon = this.semicolon;
  4841. }
  4842. this.semicolon = false;
  4843. this.current.raws.after = (this.current.raws.after || "") + this.spaces;
  4844. this.spaces = "";
  4845. if (this.current.parent) {
  4846. this.current.source.end = this.getPosition(token[2]);
  4847. this.current.source.end.offset++;
  4848. this.current = this.current.parent;
  4849. } else {
  4850. this.unexpectedClose(token);
  4851. }
  4852. }
  4853. endFile() {
  4854. if (this.current.parent) this.unclosedBlock();
  4855. if (this.current.nodes && this.current.nodes.length) {
  4856. this.current.raws.semicolon = this.semicolon;
  4857. }
  4858. this.current.raws.after = (this.current.raws.after || "") + this.spaces;
  4859. this.root.source.end = this.getPosition(this.tokenizer.position());
  4860. }
  4861. freeSemicolon(token) {
  4862. this.spaces += token[1];
  4863. if (this.current.nodes) {
  4864. let prev = this.current.nodes[this.current.nodes.length - 1];
  4865. if (prev && prev.type === "rule" && !prev.raws.ownSemicolon) {
  4866. prev.raws.ownSemicolon = this.spaces;
  4867. this.spaces = "";
  4868. prev.source.end = this.getPosition(token[2]);
  4869. prev.source.end.offset += prev.raws.ownSemicolon.length;
  4870. }
  4871. }
  4872. }
  4873. // Helpers
  4874. getPosition(offset) {
  4875. let pos = this.input.fromOffset(offset);
  4876. return {
  4877. column: pos.col,
  4878. line: pos.line,
  4879. offset
  4880. };
  4881. }
  4882. init(node, offset) {
  4883. this.current.push(node);
  4884. node.source = {
  4885. input: this.input,
  4886. start: this.getPosition(offset)
  4887. };
  4888. node.raws.before = this.spaces;
  4889. this.spaces = "";
  4890. if (node.type !== "comment") this.semicolon = false;
  4891. }
  4892. other(start) {
  4893. let end = false;
  4894. let type = null;
  4895. let colon = false;
  4896. let bracket = null;
  4897. let brackets = [];
  4898. let customProperty = start[1].startsWith("--");
  4899. let tokens = [];
  4900. let token = start;
  4901. while (token) {
  4902. type = token[0];
  4903. tokens.push(token);
  4904. if (type === "(" || type === "[") {
  4905. if (!bracket) bracket = token;
  4906. brackets.push(type === "(" ? ")" : "]");
  4907. } else if (customProperty && colon && type === "{") {
  4908. if (!bracket) bracket = token;
  4909. brackets.push("}");
  4910. } else if (brackets.length === 0) {
  4911. if (type === ";") {
  4912. if (colon) {
  4913. this.decl(tokens, customProperty);
  4914. return;
  4915. } else {
  4916. break;
  4917. }
  4918. } else if (type === "{") {
  4919. this.rule(tokens);
  4920. return;
  4921. } else if (type === "}") {
  4922. this.tokenizer.back(tokens.pop());
  4923. end = true;
  4924. break;
  4925. } else if (type === ":") {
  4926. colon = true;
  4927. }
  4928. } else if (type === brackets[brackets.length - 1]) {
  4929. brackets.pop();
  4930. if (brackets.length === 0) bracket = null;
  4931. }
  4932. token = this.tokenizer.nextToken();
  4933. }
  4934. if (this.tokenizer.endOfFile()) end = true;
  4935. if (brackets.length > 0) this.unclosedBracket(bracket);
  4936. if (end && colon) {
  4937. if (!customProperty) {
  4938. while (tokens.length) {
  4939. token = tokens[tokens.length - 1][0];
  4940. if (token !== "space" && token !== "comment") break;
  4941. this.tokenizer.back(tokens.pop());
  4942. }
  4943. }
  4944. this.decl(tokens, customProperty);
  4945. } else {
  4946. this.unknownWord(tokens);
  4947. }
  4948. }
  4949. parse() {
  4950. let token;
  4951. while (!this.tokenizer.endOfFile()) {
  4952. token = this.tokenizer.nextToken();
  4953. switch (token[0]) {
  4954. case "space":
  4955. this.spaces += token[1];
  4956. break;
  4957. case ";":
  4958. this.freeSemicolon(token);
  4959. break;
  4960. case "}":
  4961. this.end(token);
  4962. break;
  4963. case "comment":
  4964. this.comment(token);
  4965. break;
  4966. case "at-word":
  4967. this.atrule(token);
  4968. break;
  4969. case "{":
  4970. this.emptyRule(token);
  4971. break;
  4972. default:
  4973. this.other(token);
  4974. break;
  4975. }
  4976. }
  4977. this.endFile();
  4978. }
  4979. precheckMissedSemicolon() {
  4980. }
  4981. raw(node, prop, tokens, customProperty) {
  4982. let token, type;
  4983. let length = tokens.length;
  4984. let value = "";
  4985. let clean = true;
  4986. let next, prev;
  4987. for (let i = 0; i < length; i += 1) {
  4988. token = tokens[i];
  4989. type = token[0];
  4990. if (type === "space" && i === length - 1 && !customProperty) {
  4991. clean = false;
  4992. } else if (type === "comment") {
  4993. prev = tokens[i - 1] ? tokens[i - 1][0] : "empty";
  4994. next = tokens[i + 1] ? tokens[i + 1][0] : "empty";
  4995. if (!SAFE_COMMENT_NEIGHBOR[prev] && !SAFE_COMMENT_NEIGHBOR[next]) {
  4996. if (value.slice(-1) === ",") {
  4997. clean = false;
  4998. } else {
  4999. value += token[1];
  5000. }
  5001. } else {
  5002. clean = false;
  5003. }
  5004. } else {
  5005. value += token[1];
  5006. }
  5007. }
  5008. if (!clean) {
  5009. let raw = tokens.reduce((all, i) => all + i[1], "");
  5010. node.raws[prop] = { raw, value };
  5011. }
  5012. node[prop] = value;
  5013. }
  5014. rule(tokens) {
  5015. tokens.pop();
  5016. let node = new Rule();
  5017. this.init(node, tokens[0][2]);
  5018. node.raws.between = this.spacesAndCommentsFromEnd(tokens);
  5019. this.raw(node, "selector", tokens);
  5020. this.current = node;
  5021. }
  5022. spacesAndCommentsFromEnd(tokens) {
  5023. let lastTokenType;
  5024. let spaces = "";
  5025. while (tokens.length) {
  5026. lastTokenType = tokens[tokens.length - 1][0];
  5027. if (lastTokenType !== "space" && lastTokenType !== "comment") break;
  5028. spaces = tokens.pop()[1] + spaces;
  5029. }
  5030. return spaces;
  5031. }
  5032. // Errors
  5033. spacesAndCommentsFromStart(tokens) {
  5034. let next;
  5035. let spaces = "";
  5036. while (tokens.length) {
  5037. next = tokens[0][0];
  5038. if (next !== "space" && next !== "comment") break;
  5039. spaces += tokens.shift()[1];
  5040. }
  5041. return spaces;
  5042. }
  5043. spacesFromEnd(tokens) {
  5044. let lastTokenType;
  5045. let spaces = "";
  5046. while (tokens.length) {
  5047. lastTokenType = tokens[tokens.length - 1][0];
  5048. if (lastTokenType !== "space") break;
  5049. spaces = tokens.pop()[1] + spaces;
  5050. }
  5051. return spaces;
  5052. }
  5053. stringFrom(tokens, from) {
  5054. let result = "";
  5055. for (let i = from; i < tokens.length; i++) {
  5056. result += tokens[i][1];
  5057. }
  5058. tokens.splice(from, tokens.length - from);
  5059. return result;
  5060. }
  5061. unclosedBlock() {
  5062. let pos = this.current.source.start;
  5063. throw this.input.error("Unclosed block", pos.line, pos.column);
  5064. }
  5065. unclosedBracket(bracket) {
  5066. throw this.input.error(
  5067. "Unclosed bracket",
  5068. { offset: bracket[2] },
  5069. { offset: bracket[2] + 1 }
  5070. );
  5071. }
  5072. unexpectedClose(token) {
  5073. throw this.input.error(
  5074. "Unexpected }",
  5075. { offset: token[2] },
  5076. { offset: token[2] + 1 }
  5077. );
  5078. }
  5079. unknownWord(tokens) {
  5080. throw this.input.error(
  5081. "Unknown word " + tokens[0][1],
  5082. { offset: tokens[0][2] },
  5083. { offset: tokens[0][2] + tokens[0][1].length }
  5084. );
  5085. }
  5086. unnamedAtrule(node, token) {
  5087. throw this.input.error(
  5088. "At-rule without name",
  5089. { offset: token[2] },
  5090. { offset: token[2] + token[1].length }
  5091. );
  5092. }
  5093. };
  5094. module2.exports = Parser;
  5095. }
  5096. });
  5097. // node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/parse.js
  5098. var require_parse = __commonJS({
  5099. "node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/parse.js"(exports2, module2) {
  5100. "use strict";
  5101. var Container = require_container();
  5102. var Input = require_input();
  5103. var Parser = require_parser();
  5104. function parse(css, opts) {
  5105. let input = new Input(css, opts);
  5106. let parser = new Parser(input);
  5107. try {
  5108. parser.parse();
  5109. } catch (e) {
  5110. if (process.env.NODE_ENV !== "production") {
  5111. if (e.name === "CssSyntaxError" && opts && opts.from) {
  5112. if (/\.scss$/i.test(opts.from)) {
  5113. e.message += "\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser";
  5114. } else if (/\.sass/i.test(opts.from)) {
  5115. e.message += "\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser";
  5116. } else if (/\.less$/i.test(opts.from)) {
  5117. e.message += "\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser";
  5118. }
  5119. }
  5120. }
  5121. throw e;
  5122. }
  5123. return parser.root;
  5124. }
  5125. module2.exports = parse;
  5126. parse.default = parse;
  5127. Container.registerParse(parse);
  5128. }
  5129. });
  5130. // node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/warning.js
  5131. var require_warning = __commonJS({
  5132. "node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/warning.js"(exports2, module2) {
  5133. "use strict";
  5134. var Warning = class {
  5135. constructor(text, opts = {}) {
  5136. this.type = "warning";
  5137. this.text = text;
  5138. if (opts.node && opts.node.source) {
  5139. let range = opts.node.rangeBy(opts);
  5140. this.line = range.start.line;
  5141. this.column = range.start.column;
  5142. this.endLine = range.end.line;
  5143. this.endColumn = range.end.column;
  5144. }
  5145. for (let opt in opts) this[opt] = opts[opt];
  5146. }
  5147. toString() {
  5148. if (this.node) {
  5149. return this.node.error(this.text, {
  5150. index: this.index,
  5151. plugin: this.plugin,
  5152. word: this.word
  5153. }).message;
  5154. }
  5155. if (this.plugin) {
  5156. return this.plugin + ": " + this.text;
  5157. }
  5158. return this.text;
  5159. }
  5160. };
  5161. module2.exports = Warning;
  5162. Warning.default = Warning;
  5163. }
  5164. });
  5165. // node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/result.js
  5166. var require_result = __commonJS({
  5167. "node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/result.js"(exports2, module2) {
  5168. "use strict";
  5169. var Warning = require_warning();
  5170. var Result = class {
  5171. get content() {
  5172. return this.css;
  5173. }
  5174. constructor(processor, root, opts) {
  5175. this.processor = processor;
  5176. this.messages = [];
  5177. this.root = root;
  5178. this.opts = opts;
  5179. this.css = void 0;
  5180. this.map = void 0;
  5181. }
  5182. toString() {
  5183. return this.css;
  5184. }
  5185. warn(text, opts = {}) {
  5186. if (!opts.plugin) {
  5187. if (this.lastPlugin && this.lastPlugin.postcssPlugin) {
  5188. opts.plugin = this.lastPlugin.postcssPlugin;
  5189. }
  5190. }
  5191. let warning = new Warning(text, opts);
  5192. this.messages.push(warning);
  5193. return warning;
  5194. }
  5195. warnings() {
  5196. return this.messages.filter((i) => i.type === "warning");
  5197. }
  5198. };
  5199. module2.exports = Result;
  5200. Result.default = Result;
  5201. }
  5202. });
  5203. // node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/warn-once.js
  5204. var require_warn_once = __commonJS({
  5205. "node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/warn-once.js"(exports2, module2) {
  5206. "use strict";
  5207. var printed = {};
  5208. module2.exports = function warnOnce(message) {
  5209. if (printed[message]) return;
  5210. printed[message] = true;
  5211. if (typeof console !== "undefined" && console.warn) {
  5212. console.warn(message);
  5213. }
  5214. };
  5215. }
  5216. });
  5217. // node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/lazy-result.js
  5218. var require_lazy_result = __commonJS({
  5219. "node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/lazy-result.js"(exports2, module2) {
  5220. "use strict";
  5221. var Container = require_container();
  5222. var Document = require_document();
  5223. var MapGenerator = require_map_generator();
  5224. var parse = require_parse();
  5225. var Result = require_result();
  5226. var Root = require_root();
  5227. var stringify = require_stringify();
  5228. var { isClean, my } = require_symbols();
  5229. var warnOnce = require_warn_once();
  5230. var TYPE_TO_CLASS_NAME = {
  5231. atrule: "AtRule",
  5232. comment: "Comment",
  5233. decl: "Declaration",
  5234. document: "Document",
  5235. root: "Root",
  5236. rule: "Rule"
  5237. };
  5238. var PLUGIN_PROPS = {
  5239. AtRule: true,
  5240. AtRuleExit: true,
  5241. Comment: true,
  5242. CommentExit: true,
  5243. Declaration: true,
  5244. DeclarationExit: true,
  5245. Document: true,
  5246. DocumentExit: true,
  5247. Once: true,
  5248. OnceExit: true,
  5249. postcssPlugin: true,
  5250. prepare: true,
  5251. Root: true,
  5252. RootExit: true,
  5253. Rule: true,
  5254. RuleExit: true
  5255. };
  5256. var NOT_VISITORS = {
  5257. Once: true,
  5258. postcssPlugin: true,
  5259. prepare: true
  5260. };
  5261. var CHILDREN = 0;
  5262. function isPromise(obj) {
  5263. return typeof obj === "object" && typeof obj.then === "function";
  5264. }
  5265. function getEvents(node) {
  5266. let key = false;
  5267. let type = TYPE_TO_CLASS_NAME[node.type];
  5268. if (node.type === "decl") {
  5269. key = node.prop.toLowerCase();
  5270. } else if (node.type === "atrule") {
  5271. key = node.name.toLowerCase();
  5272. }
  5273. if (key && node.append) {
  5274. return [
  5275. type,
  5276. type + "-" + key,
  5277. CHILDREN,
  5278. type + "Exit",
  5279. type + "Exit-" + key
  5280. ];
  5281. } else if (key) {
  5282. return [type, type + "-" + key, type + "Exit", type + "Exit-" + key];
  5283. } else if (node.append) {
  5284. return [type, CHILDREN, type + "Exit"];
  5285. } else {
  5286. return [type, type + "Exit"];
  5287. }
  5288. }
  5289. function toStack(node) {
  5290. let events;
  5291. if (node.type === "document") {
  5292. events = ["Document", CHILDREN, "DocumentExit"];
  5293. } else if (node.type === "root") {
  5294. events = ["Root", CHILDREN, "RootExit"];
  5295. } else {
  5296. events = getEvents(node);
  5297. }
  5298. return {
  5299. eventIndex: 0,
  5300. events,
  5301. iterator: 0,
  5302. node,
  5303. visitorIndex: 0,
  5304. visitors: []
  5305. };
  5306. }
  5307. function cleanMarks(node) {
  5308. node[isClean] = false;
  5309. if (node.nodes) node.nodes.forEach((i) => cleanMarks(i));
  5310. return node;
  5311. }
  5312. var postcss = {};
  5313. var LazyResult = class _LazyResult {
  5314. get content() {
  5315. return this.stringify().content;
  5316. }
  5317. get css() {
  5318. return this.stringify().css;
  5319. }
  5320. get map() {
  5321. return this.stringify().map;
  5322. }
  5323. get messages() {
  5324. return this.sync().messages;
  5325. }
  5326. get opts() {
  5327. return this.result.opts;
  5328. }
  5329. get processor() {
  5330. return this.result.processor;
  5331. }
  5332. get root() {
  5333. return this.sync().root;
  5334. }
  5335. get [Symbol.toStringTag]() {
  5336. return "LazyResult";
  5337. }
  5338. constructor(processor, css, opts) {
  5339. this.stringified = false;
  5340. this.processed = false;
  5341. let root;
  5342. if (typeof css === "object" && css !== null && (css.type === "root" || css.type === "document")) {
  5343. root = cleanMarks(css);
  5344. } else if (css instanceof _LazyResult || css instanceof Result) {
  5345. root = cleanMarks(css.root);
  5346. if (css.map) {
  5347. if (typeof opts.map === "undefined") opts.map = {};
  5348. if (!opts.map.inline) opts.map.inline = false;
  5349. opts.map.prev = css.map;
  5350. }
  5351. } else {
  5352. let parser = parse;
  5353. if (opts.syntax) parser = opts.syntax.parse;
  5354. if (opts.parser) parser = opts.parser;
  5355. if (parser.parse) parser = parser.parse;
  5356. try {
  5357. root = parser(css, opts);
  5358. } catch (error) {
  5359. this.processed = true;
  5360. this.error = error;
  5361. }
  5362. if (root && !root[my]) {
  5363. Container.rebuild(root);
  5364. }
  5365. }
  5366. this.result = new Result(processor, root, opts);
  5367. this.helpers = __spreadProps(__spreadValues({}, postcss), { postcss, result: this.result });
  5368. this.plugins = this.processor.plugins.map((plugin) => {
  5369. if (typeof plugin === "object" && plugin.prepare) {
  5370. return __spreadValues(__spreadValues({}, plugin), plugin.prepare(this.result));
  5371. } else {
  5372. return plugin;
  5373. }
  5374. });
  5375. }
  5376. async() {
  5377. if (this.error) return Promise.reject(this.error);
  5378. if (this.processed) return Promise.resolve(this.result);
  5379. if (!this.processing) {
  5380. this.processing = this.runAsync();
  5381. }
  5382. return this.processing;
  5383. }
  5384. catch(onRejected) {
  5385. return this.async().catch(onRejected);
  5386. }
  5387. finally(onFinally) {
  5388. return this.async().then(onFinally, onFinally);
  5389. }
  5390. getAsyncError() {
  5391. throw new Error("Use process(css).then(cb) to work with async plugins");
  5392. }
  5393. handleError(error, node) {
  5394. let plugin = this.result.lastPlugin;
  5395. try {
  5396. if (node) node.addToError(error);
  5397. this.error = error;
  5398. if (error.name === "CssSyntaxError" && !error.plugin) {
  5399. error.plugin = plugin.postcssPlugin;
  5400. error.setMessage();
  5401. } else if (plugin.postcssVersion) {
  5402. if (process.env.NODE_ENV !== "production") {
  5403. let pluginName = plugin.postcssPlugin;
  5404. let pluginVer = plugin.postcssVersion;
  5405. let runtimeVer = this.result.processor.version;
  5406. let a = pluginVer.split(".");
  5407. let b = runtimeVer.split(".");
  5408. if (a[0] !== b[0] || parseInt(a[1]) > parseInt(b[1])) {
  5409. console.error(
  5410. "Unknown error from PostCSS plugin. Your current PostCSS version is " + runtimeVer + ", but " + pluginName + " uses " + pluginVer + ". Perhaps this is the source of the error below."
  5411. );
  5412. }
  5413. }
  5414. }
  5415. } catch (err) {
  5416. if (console && console.error) console.error(err);
  5417. }
  5418. return error;
  5419. }
  5420. prepareVisitors() {
  5421. this.listeners = {};
  5422. let add = (plugin, type, cb) => {
  5423. if (!this.listeners[type]) this.listeners[type] = [];
  5424. this.listeners[type].push([plugin, cb]);
  5425. };
  5426. for (let plugin of this.plugins) {
  5427. if (typeof plugin === "object") {
  5428. for (let event in plugin) {
  5429. if (!PLUGIN_PROPS[event] && /^[A-Z]/.test(event)) {
  5430. throw new Error(
  5431. `Unknown event ${event} in ${plugin.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`
  5432. );
  5433. }
  5434. if (!NOT_VISITORS[event]) {
  5435. if (typeof plugin[event] === "object") {
  5436. for (let filter in plugin[event]) {
  5437. if (filter === "*") {
  5438. add(plugin, event, plugin[event][filter]);
  5439. } else {
  5440. add(
  5441. plugin,
  5442. event + "-" + filter.toLowerCase(),
  5443. plugin[event][filter]
  5444. );
  5445. }
  5446. }
  5447. } else if (typeof plugin[event] === "function") {
  5448. add(plugin, event, plugin[event]);
  5449. }
  5450. }
  5451. }
  5452. }
  5453. }
  5454. this.hasListener = Object.keys(this.listeners).length > 0;
  5455. }
  5456. runAsync() {
  5457. return __async(this, null, function* () {
  5458. this.plugin = 0;
  5459. for (let i = 0; i < this.plugins.length; i++) {
  5460. let plugin = this.plugins[i];
  5461. let promise = this.runOnRoot(plugin);
  5462. if (isPromise(promise)) {
  5463. try {
  5464. yield promise;
  5465. } catch (error) {
  5466. throw this.handleError(error);
  5467. }
  5468. }
  5469. }
  5470. this.prepareVisitors();
  5471. if (this.hasListener) {
  5472. let root = this.result.root;
  5473. while (!root[isClean]) {
  5474. root[isClean] = true;
  5475. let stack = [toStack(root)];
  5476. while (stack.length > 0) {
  5477. let promise = this.visitTick(stack);
  5478. if (isPromise(promise)) {
  5479. try {
  5480. yield promise;
  5481. } catch (e) {
  5482. let node = stack[stack.length - 1].node;
  5483. throw this.handleError(e, node);
  5484. }
  5485. }
  5486. }
  5487. }
  5488. if (this.listeners.OnceExit) {
  5489. for (let [plugin, visitor] of this.listeners.OnceExit) {
  5490. this.result.lastPlugin = plugin;
  5491. try {
  5492. if (root.type === "document") {
  5493. let roots = root.nodes.map(
  5494. (subRoot) => visitor(subRoot, this.helpers)
  5495. );
  5496. yield Promise.all(roots);
  5497. } else {
  5498. yield visitor(root, this.helpers);
  5499. }
  5500. } catch (e) {
  5501. throw this.handleError(e);
  5502. }
  5503. }
  5504. }
  5505. }
  5506. this.processed = true;
  5507. return this.stringify();
  5508. });
  5509. }
  5510. runOnRoot(plugin) {
  5511. this.result.lastPlugin = plugin;
  5512. try {
  5513. if (typeof plugin === "object" && plugin.Once) {
  5514. if (this.result.root.type === "document") {
  5515. let roots = this.result.root.nodes.map(
  5516. (root) => plugin.Once(root, this.helpers)
  5517. );
  5518. if (isPromise(roots[0])) {
  5519. return Promise.all(roots);
  5520. }
  5521. return roots;
  5522. }
  5523. return plugin.Once(this.result.root, this.helpers);
  5524. } else if (typeof plugin === "function") {
  5525. return plugin(this.result.root, this.result);
  5526. }
  5527. } catch (error) {
  5528. throw this.handleError(error);
  5529. }
  5530. }
  5531. stringify() {
  5532. if (this.error) throw this.error;
  5533. if (this.stringified) return this.result;
  5534. this.stringified = true;
  5535. this.sync();
  5536. let opts = this.result.opts;
  5537. let str = stringify;
  5538. if (opts.syntax) str = opts.syntax.stringify;
  5539. if (opts.stringifier) str = opts.stringifier;
  5540. if (str.stringify) str = str.stringify;
  5541. let map = new MapGenerator(str, this.result.root, this.result.opts);
  5542. let data = map.generate();
  5543. this.result.css = data[0];
  5544. this.result.map = data[1];
  5545. return this.result;
  5546. }
  5547. sync() {
  5548. if (this.error) throw this.error;
  5549. if (this.processed) return this.result;
  5550. this.processed = true;
  5551. if (this.processing) {
  5552. throw this.getAsyncError();
  5553. }
  5554. for (let plugin of this.plugins) {
  5555. let promise = this.runOnRoot(plugin);
  5556. if (isPromise(promise)) {
  5557. throw this.getAsyncError();
  5558. }
  5559. }
  5560. this.prepareVisitors();
  5561. if (this.hasListener) {
  5562. let root = this.result.root;
  5563. while (!root[isClean]) {
  5564. root[isClean] = true;
  5565. this.walkSync(root);
  5566. }
  5567. if (this.listeners.OnceExit) {
  5568. if (root.type === "document") {
  5569. for (let subRoot of root.nodes) {
  5570. this.visitSync(this.listeners.OnceExit, subRoot);
  5571. }
  5572. } else {
  5573. this.visitSync(this.listeners.OnceExit, root);
  5574. }
  5575. }
  5576. }
  5577. return this.result;
  5578. }
  5579. then(onFulfilled, onRejected) {
  5580. if (process.env.NODE_ENV !== "production") {
  5581. if (!("from" in this.opts)) {
  5582. warnOnce(
  5583. "Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."
  5584. );
  5585. }
  5586. }
  5587. return this.async().then(onFulfilled, onRejected);
  5588. }
  5589. toString() {
  5590. return this.css;
  5591. }
  5592. visitSync(visitors, node) {
  5593. for (let [plugin, visitor] of visitors) {
  5594. this.result.lastPlugin = plugin;
  5595. let promise;
  5596. try {
  5597. promise = visitor(node, this.helpers);
  5598. } catch (e) {
  5599. throw this.handleError(e, node.proxyOf);
  5600. }
  5601. if (node.type !== "root" && node.type !== "document" && !node.parent) {
  5602. return true;
  5603. }
  5604. if (isPromise(promise)) {
  5605. throw this.getAsyncError();
  5606. }
  5607. }
  5608. }
  5609. visitTick(stack) {
  5610. let visit = stack[stack.length - 1];
  5611. let { node, visitors } = visit;
  5612. if (node.type !== "root" && node.type !== "document" && !node.parent) {
  5613. stack.pop();
  5614. return;
  5615. }
  5616. if (visitors.length > 0 && visit.visitorIndex < visitors.length) {
  5617. let [plugin, visitor] = visitors[visit.visitorIndex];
  5618. visit.visitorIndex += 1;
  5619. if (visit.visitorIndex === visitors.length) {
  5620. visit.visitors = [];
  5621. visit.visitorIndex = 0;
  5622. }
  5623. this.result.lastPlugin = plugin;
  5624. try {
  5625. return visitor(node.toProxy(), this.helpers);
  5626. } catch (e) {
  5627. throw this.handleError(e, node);
  5628. }
  5629. }
  5630. if (visit.iterator !== 0) {
  5631. let iterator = visit.iterator;
  5632. let child;
  5633. while (child = node.nodes[node.indexes[iterator]]) {
  5634. node.indexes[iterator] += 1;
  5635. if (!child[isClean]) {
  5636. child[isClean] = true;
  5637. stack.push(toStack(child));
  5638. return;
  5639. }
  5640. }
  5641. visit.iterator = 0;
  5642. delete node.indexes[iterator];
  5643. }
  5644. let events = visit.events;
  5645. while (visit.eventIndex < events.length) {
  5646. let event = events[visit.eventIndex];
  5647. visit.eventIndex += 1;
  5648. if (event === CHILDREN) {
  5649. if (node.nodes && node.nodes.length) {
  5650. node[isClean] = true;
  5651. visit.iterator = node.getIterator();
  5652. }
  5653. return;
  5654. } else if (this.listeners[event]) {
  5655. visit.visitors = this.listeners[event];
  5656. return;
  5657. }
  5658. }
  5659. stack.pop();
  5660. }
  5661. walkSync(node) {
  5662. node[isClean] = true;
  5663. let events = getEvents(node);
  5664. for (let event of events) {
  5665. if (event === CHILDREN) {
  5666. if (node.nodes) {
  5667. node.each((child) => {
  5668. if (!child[isClean]) this.walkSync(child);
  5669. });
  5670. }
  5671. } else {
  5672. let visitors = this.listeners[event];
  5673. if (visitors) {
  5674. if (this.visitSync(visitors, node.toProxy())) return;
  5675. }
  5676. }
  5677. }
  5678. }
  5679. warnings() {
  5680. return this.sync().warnings();
  5681. }
  5682. };
  5683. LazyResult.registerPostcss = (dependant) => {
  5684. postcss = dependant;
  5685. };
  5686. module2.exports = LazyResult;
  5687. LazyResult.default = LazyResult;
  5688. Root.registerLazyResult(LazyResult);
  5689. Document.registerLazyResult(LazyResult);
  5690. }
  5691. });
  5692. // node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/no-work-result.js
  5693. var require_no_work_result = __commonJS({
  5694. "node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/no-work-result.js"(exports2, module2) {
  5695. "use strict";
  5696. var MapGenerator = require_map_generator();
  5697. var parse = require_parse();
  5698. var Result = require_result();
  5699. var stringify = require_stringify();
  5700. var warnOnce = require_warn_once();
  5701. var NoWorkResult = class {
  5702. get content() {
  5703. return this.result.css;
  5704. }
  5705. get css() {
  5706. return this.result.css;
  5707. }
  5708. get map() {
  5709. return this.result.map;
  5710. }
  5711. get messages() {
  5712. return [];
  5713. }
  5714. get opts() {
  5715. return this.result.opts;
  5716. }
  5717. get processor() {
  5718. return this.result.processor;
  5719. }
  5720. get root() {
  5721. if (this._root) {
  5722. return this._root;
  5723. }
  5724. let root;
  5725. let parser = parse;
  5726. try {
  5727. root = parser(this._css, this._opts);
  5728. } catch (error) {
  5729. this.error = error;
  5730. }
  5731. if (this.error) {
  5732. throw this.error;
  5733. } else {
  5734. this._root = root;
  5735. return root;
  5736. }
  5737. }
  5738. get [Symbol.toStringTag]() {
  5739. return "NoWorkResult";
  5740. }
  5741. constructor(processor, css, opts) {
  5742. css = css.toString();
  5743. this.stringified = false;
  5744. this._processor = processor;
  5745. this._css = css;
  5746. this._opts = opts;
  5747. this._map = void 0;
  5748. let root;
  5749. let str = stringify;
  5750. this.result = new Result(this._processor, root, this._opts);
  5751. this.result.css = css;
  5752. let self = this;
  5753. Object.defineProperty(this.result, "root", {
  5754. get() {
  5755. return self.root;
  5756. }
  5757. });
  5758. let map = new MapGenerator(str, root, this._opts, css);
  5759. if (map.isMap()) {
  5760. let [generatedCSS, generatedMap] = map.generate();
  5761. if (generatedCSS) {
  5762. this.result.css = generatedCSS;
  5763. }
  5764. if (generatedMap) {
  5765. this.result.map = generatedMap;
  5766. }
  5767. } else {
  5768. map.clearAnnotation();
  5769. this.result.css = map.css;
  5770. }
  5771. }
  5772. async() {
  5773. if (this.error) return Promise.reject(this.error);
  5774. return Promise.resolve(this.result);
  5775. }
  5776. catch(onRejected) {
  5777. return this.async().catch(onRejected);
  5778. }
  5779. finally(onFinally) {
  5780. return this.async().then(onFinally, onFinally);
  5781. }
  5782. sync() {
  5783. if (this.error) throw this.error;
  5784. return this.result;
  5785. }
  5786. then(onFulfilled, onRejected) {
  5787. if (process.env.NODE_ENV !== "production") {
  5788. if (!("from" in this._opts)) {
  5789. warnOnce(
  5790. "Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."
  5791. );
  5792. }
  5793. }
  5794. return this.async().then(onFulfilled, onRejected);
  5795. }
  5796. toString() {
  5797. return this._css;
  5798. }
  5799. warnings() {
  5800. return [];
  5801. }
  5802. };
  5803. module2.exports = NoWorkResult;
  5804. NoWorkResult.default = NoWorkResult;
  5805. }
  5806. });
  5807. // node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/processor.js
  5808. var require_processor = __commonJS({
  5809. "node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/processor.js"(exports2, module2) {
  5810. "use strict";
  5811. var Document = require_document();
  5812. var LazyResult = require_lazy_result();
  5813. var NoWorkResult = require_no_work_result();
  5814. var Root = require_root();
  5815. var Processor = class {
  5816. constructor(plugins = []) {
  5817. this.version = "8.5.3";
  5818. this.plugins = this.normalize(plugins);
  5819. }
  5820. normalize(plugins) {
  5821. let normalized = [];
  5822. for (let i of plugins) {
  5823. if (i.postcss === true) {
  5824. i = i();
  5825. } else if (i.postcss) {
  5826. i = i.postcss;
  5827. }
  5828. if (typeof i === "object" && Array.isArray(i.plugins)) {
  5829. normalized = normalized.concat(i.plugins);
  5830. } else if (typeof i === "object" && i.postcssPlugin) {
  5831. normalized.push(i);
  5832. } else if (typeof i === "function") {
  5833. normalized.push(i);
  5834. } else if (typeof i === "object" && (i.parse || i.stringify)) {
  5835. if (process.env.NODE_ENV !== "production") {
  5836. throw new Error(
  5837. "PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation."
  5838. );
  5839. }
  5840. } else {
  5841. throw new Error(i + " is not a PostCSS plugin");
  5842. }
  5843. }
  5844. return normalized;
  5845. }
  5846. process(css, opts = {}) {
  5847. if (!this.plugins.length && !opts.parser && !opts.stringifier && !opts.syntax) {
  5848. return new NoWorkResult(this, css, opts);
  5849. } else {
  5850. return new LazyResult(this, css, opts);
  5851. }
  5852. }
  5853. use(plugin) {
  5854. this.plugins = this.plugins.concat(this.normalize([plugin]));
  5855. return this;
  5856. }
  5857. };
  5858. module2.exports = Processor;
  5859. Processor.default = Processor;
  5860. Root.registerProcessor(Processor);
  5861. Document.registerProcessor(Processor);
  5862. }
  5863. });
  5864. // node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/postcss.js
  5865. var require_postcss = __commonJS({
  5866. "node_modules/.aspect_rules_js/postcss@8.5.3/node_modules/postcss/lib/postcss.js"(exports2, module2) {
  5867. "use strict";
  5868. var AtRule = require_at_rule();
  5869. var Comment = require_comment();
  5870. var Container = require_container();
  5871. var CssSyntaxError = require_css_syntax_error();
  5872. var Declaration = require_declaration();
  5873. var Document = require_document();
  5874. var fromJSON = require_fromJSON();
  5875. var Input = require_input();
  5876. var LazyResult = require_lazy_result();
  5877. var list = require_list();
  5878. var Node = require_node();
  5879. var parse = require_parse();
  5880. var Processor = require_processor();
  5881. var Result = require_result();
  5882. var Root = require_root();
  5883. var Rule = require_rule();
  5884. var stringify = require_stringify();
  5885. var Warning = require_warning();
  5886. function postcss(...plugins) {
  5887. if (plugins.length === 1 && Array.isArray(plugins[0])) {
  5888. plugins = plugins[0];
  5889. }
  5890. return new Processor(plugins);
  5891. }
  5892. postcss.plugin = function plugin(name, initializer) {
  5893. let warningPrinted = false;
  5894. function creator(...args) {
  5895. if (console && console.warn && !warningPrinted) {
  5896. warningPrinted = true;
  5897. console.warn(
  5898. name + ": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"
  5899. );
  5900. if (process.env.LANG && process.env.LANG.startsWith("cn")) {
  5901. console.warn(
  5902. name + ": \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:\nhttps://www.w3ctech.com/topic/2226"
  5903. );
  5904. }
  5905. }
  5906. let transformer = initializer(...args);
  5907. transformer.postcssPlugin = name;
  5908. transformer.postcssVersion = new Processor().version;
  5909. return transformer;
  5910. }
  5911. let cache;
  5912. Object.defineProperty(creator, "postcss", {
  5913. get() {
  5914. if (!cache) cache = creator();
  5915. return cache;
  5916. }
  5917. });
  5918. creator.process = function(css, processOpts, pluginOpts) {
  5919. return postcss([creator(pluginOpts)]).process(css, processOpts);
  5920. };
  5921. return creator;
  5922. };
  5923. postcss.stringify = stringify;
  5924. postcss.parse = parse;
  5925. postcss.fromJSON = fromJSON;
  5926. postcss.list = list;
  5927. postcss.comment = (defaults) => new Comment(defaults);
  5928. postcss.atRule = (defaults) => new AtRule(defaults);
  5929. postcss.decl = (defaults) => new Declaration(defaults);
  5930. postcss.rule = (defaults) => new Rule(defaults);
  5931. postcss.root = (defaults) => new Root(defaults);
  5932. postcss.document = (defaults) => new Document(defaults);
  5933. postcss.CssSyntaxError = CssSyntaxError;
  5934. postcss.Declaration = Declaration;
  5935. postcss.Container = Container;
  5936. postcss.Processor = Processor;
  5937. postcss.Document = Document;
  5938. postcss.Comment = Comment;
  5939. postcss.Warning = Warning;
  5940. postcss.AtRule = AtRule;
  5941. postcss.Result = Result;
  5942. postcss.Input = Input;
  5943. postcss.Rule = Rule;
  5944. postcss.Root = Root;
  5945. postcss.Node = Node;
  5946. LazyResult.registerPostcss(postcss);
  5947. module2.exports = postcss;
  5948. postcss.default = postcss;
  5949. }
  5950. });
  5951. // node_modules/.aspect_rules_js/postcss-scss@4.0.9_postcss_8.5.3/node_modules/postcss-scss/lib/scss-stringifier.js
  5952. var require_scss_stringifier = __commonJS({
  5953. "node_modules/.aspect_rules_js/postcss-scss@4.0.9_postcss_8.5.3/node_modules/postcss-scss/lib/scss-stringifier.js"(exports2, module2) {
  5954. var Stringifier = require_stringifier();
  5955. var ScssStringifier = class extends Stringifier {
  5956. comment(node) {
  5957. let left = this.raw(node, "left", "commentLeft");
  5958. let right = this.raw(node, "right", "commentRight");
  5959. if (node.raws.inline) {
  5960. let text = node.raws.text || node.text;
  5961. this.builder("//" + left + text + right, node);
  5962. } else {
  5963. this.builder("/*" + left + node.text + right + "*/", node);
  5964. }
  5965. }
  5966. decl(node, semicolon) {
  5967. if (!node.isNested) {
  5968. super.decl(node, semicolon);
  5969. } else {
  5970. let between = this.raw(node, "between", "colon");
  5971. let string = node.prop + between + this.rawValue(node, "value");
  5972. if (node.important) {
  5973. string += node.raws.important || " !important";
  5974. }
  5975. this.builder(string + "{", node, "start");
  5976. let after;
  5977. if (node.nodes && node.nodes.length) {
  5978. this.body(node);
  5979. after = this.raw(node, "after");
  5980. } else {
  5981. after = this.raw(node, "after", "emptyBody");
  5982. }
  5983. if (after) this.builder(after);
  5984. this.builder("}", node, "end");
  5985. }
  5986. }
  5987. rawValue(node, prop) {
  5988. let value = node[prop];
  5989. let raw = node.raws[prop];
  5990. if (raw && raw.value === value) {
  5991. return raw.scss ? raw.scss : raw.raw;
  5992. } else {
  5993. return value;
  5994. }
  5995. }
  5996. };
  5997. module2.exports = ScssStringifier;
  5998. }
  5999. });
  6000. // node_modules/.aspect_rules_js/postcss-scss@4.0.9_postcss_8.5.3/node_modules/postcss-scss/lib/scss-stringify.js
  6001. var require_scss_stringify = __commonJS({
  6002. "node_modules/.aspect_rules_js/postcss-scss@4.0.9_postcss_8.5.3/node_modules/postcss-scss/lib/scss-stringify.js"(exports2, module2) {
  6003. var ScssStringifier = require_scss_stringifier();
  6004. module2.exports = function scssStringify(node, builder) {
  6005. let str = new ScssStringifier(builder);
  6006. str.stringify(node);
  6007. };
  6008. }
  6009. });
  6010. // node_modules/.aspect_rules_js/postcss-scss@4.0.9_postcss_8.5.3/node_modules/postcss-scss/lib/nested-declaration.js
  6011. var require_nested_declaration = __commonJS({
  6012. "node_modules/.aspect_rules_js/postcss-scss@4.0.9_postcss_8.5.3/node_modules/postcss-scss/lib/nested-declaration.js"(exports2, module2) {
  6013. var { Container } = require_postcss();
  6014. var NestedDeclaration = class extends Container {
  6015. constructor(defaults) {
  6016. super(defaults);
  6017. this.type = "decl";
  6018. this.isNested = true;
  6019. if (!this.nodes) this.nodes = [];
  6020. }
  6021. };
  6022. module2.exports = NestedDeclaration;
  6023. }
  6024. });
  6025. // node_modules/.aspect_rules_js/postcss-scss@4.0.9_postcss_8.5.3/node_modules/postcss-scss/lib/scss-tokenize.js
  6026. var require_scss_tokenize = __commonJS({
  6027. "node_modules/.aspect_rules_js/postcss-scss@4.0.9_postcss_8.5.3/node_modules/postcss-scss/lib/scss-tokenize.js"(exports2, module2) {
  6028. "use strict";
  6029. var SINGLE_QUOTE = "'".charCodeAt(0);
  6030. var DOUBLE_QUOTE = '"'.charCodeAt(0);
  6031. var BACKSLASH = "\\".charCodeAt(0);
  6032. var SLASH = "/".charCodeAt(0);
  6033. var NEWLINE = "\n".charCodeAt(0);
  6034. var SPACE = " ".charCodeAt(0);
  6035. var FEED = "\f".charCodeAt(0);
  6036. var TAB = " ".charCodeAt(0);
  6037. var CR = "\r".charCodeAt(0);
  6038. var OPEN_SQUARE = "[".charCodeAt(0);
  6039. var CLOSE_SQUARE = "]".charCodeAt(0);
  6040. var OPEN_PARENTHESES = "(".charCodeAt(0);
  6041. var CLOSE_PARENTHESES = ")".charCodeAt(0);
  6042. var OPEN_CURLY = "{".charCodeAt(0);
  6043. var CLOSE_CURLY = "}".charCodeAt(0);
  6044. var SEMICOLON = ";".charCodeAt(0);
  6045. var ASTERISK = "*".charCodeAt(0);
  6046. var COLON = ":".charCodeAt(0);
  6047. var AT = "@".charCodeAt(0);
  6048. var COMMA = ",".charCodeAt(0);
  6049. var HASH = "#".charCodeAt(0);
  6050. var RE_AT_END = /[\t\n\f\r "#'()/;[\\\]{}]/g;
  6051. var RE_WORD_END = /[,\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g;
  6052. var RE_BAD_BRACKET = /.[\r\n"'(/\\]/;
  6053. var RE_HEX_ESCAPE = /[\da-f]/i;
  6054. var RE_NEW_LINE = /[\n\f\r]/g;
  6055. module2.exports = function scssTokenize(input, options = {}) {
  6056. let css = input.css.valueOf();
  6057. let ignore = options.ignoreErrors;
  6058. let code, next, quote, content, escape;
  6059. let escaped, prev, n, currentToken;
  6060. let length = css.length;
  6061. let pos = 0;
  6062. let buffer = [];
  6063. let returned = [];
  6064. let brackets;
  6065. function position() {
  6066. return pos;
  6067. }
  6068. function unclosed(what) {
  6069. throw input.error("Unclosed " + what, pos);
  6070. }
  6071. function endOfFile() {
  6072. return returned.length === 0 && pos >= length;
  6073. }
  6074. function interpolation() {
  6075. let deep = 1;
  6076. let stringQuote = false;
  6077. let stringEscaped = false;
  6078. while (deep > 0) {
  6079. next += 1;
  6080. if (css.length <= next) unclosed("interpolation");
  6081. code = css.charCodeAt(next);
  6082. n = css.charCodeAt(next + 1);
  6083. if (stringQuote) {
  6084. if (!stringEscaped && code === stringQuote) {
  6085. stringQuote = false;
  6086. stringEscaped = false;
  6087. } else if (code === BACKSLASH) {
  6088. stringEscaped = !stringEscaped;
  6089. } else if (stringEscaped) {
  6090. stringEscaped = false;
  6091. }
  6092. } else if (code === SINGLE_QUOTE || code === DOUBLE_QUOTE) {
  6093. stringQuote = code;
  6094. } else if (code === CLOSE_CURLY) {
  6095. deep -= 1;
  6096. } else if (code === HASH && n === OPEN_CURLY) {
  6097. deep += 1;
  6098. }
  6099. }
  6100. }
  6101. function nextToken(opts) {
  6102. if (returned.length) return returned.pop();
  6103. if (pos >= length) return void 0;
  6104. let ignoreUnclosed = opts ? opts.ignoreUnclosed : false;
  6105. code = css.charCodeAt(pos);
  6106. switch (code) {
  6107. case NEWLINE:
  6108. case SPACE:
  6109. case TAB:
  6110. case CR:
  6111. case FEED: {
  6112. next = pos;
  6113. do {
  6114. next += 1;
  6115. code = css.charCodeAt(next);
  6116. } while (code === SPACE || code === NEWLINE || code === TAB || code === CR || code === FEED);
  6117. currentToken = ["space", css.slice(pos, next)];
  6118. pos = next - 1;
  6119. break;
  6120. }
  6121. case OPEN_SQUARE:
  6122. case CLOSE_SQUARE:
  6123. case OPEN_CURLY:
  6124. case CLOSE_CURLY:
  6125. case COLON:
  6126. case SEMICOLON:
  6127. case CLOSE_PARENTHESES: {
  6128. let controlChar = String.fromCharCode(code);
  6129. currentToken = [controlChar, controlChar, pos];
  6130. break;
  6131. }
  6132. case COMMA: {
  6133. currentToken = ["word", ",", pos, pos + 1];
  6134. break;
  6135. }
  6136. case OPEN_PARENTHESES: {
  6137. prev = buffer.length ? buffer.pop()[1] : "";
  6138. n = css.charCodeAt(pos + 1);
  6139. if (prev === "url" && n !== SINGLE_QUOTE && n !== DOUBLE_QUOTE) {
  6140. brackets = 1;
  6141. escaped = false;
  6142. next = pos + 1;
  6143. while (next <= css.length - 1) {
  6144. n = css.charCodeAt(next);
  6145. if (n === BACKSLASH) {
  6146. escaped = !escaped;
  6147. } else if (n === OPEN_PARENTHESES) {
  6148. brackets += 1;
  6149. } else if (n === CLOSE_PARENTHESES) {
  6150. brackets -= 1;
  6151. if (brackets === 0) break;
  6152. }
  6153. next += 1;
  6154. }
  6155. content = css.slice(pos, next + 1);
  6156. currentToken = ["brackets", content, pos, next];
  6157. pos = next;
  6158. } else {
  6159. next = css.indexOf(")", pos + 1);
  6160. content = css.slice(pos, next + 1);
  6161. if (next === -1 || RE_BAD_BRACKET.test(content)) {
  6162. currentToken = ["(", "(", pos];
  6163. } else {
  6164. currentToken = ["brackets", content, pos, next];
  6165. pos = next;
  6166. }
  6167. }
  6168. break;
  6169. }
  6170. case SINGLE_QUOTE:
  6171. case DOUBLE_QUOTE: {
  6172. quote = code;
  6173. next = pos;
  6174. escaped = false;
  6175. while (next < length) {
  6176. next++;
  6177. if (next === length) unclosed("string");
  6178. code = css.charCodeAt(next);
  6179. n = css.charCodeAt(next + 1);
  6180. if (!escaped && code === quote) {
  6181. break;
  6182. } else if (code === BACKSLASH) {
  6183. escaped = !escaped;
  6184. } else if (escaped) {
  6185. escaped = false;
  6186. } else if (code === HASH && n === OPEN_CURLY) {
  6187. interpolation();
  6188. }
  6189. }
  6190. currentToken = ["string", css.slice(pos, next + 1), pos, next];
  6191. pos = next;
  6192. break;
  6193. }
  6194. case AT: {
  6195. RE_AT_END.lastIndex = pos + 1;
  6196. RE_AT_END.test(css);
  6197. if (RE_AT_END.lastIndex === 0) {
  6198. next = css.length - 1;
  6199. } else {
  6200. next = RE_AT_END.lastIndex - 2;
  6201. }
  6202. currentToken = ["at-word", css.slice(pos, next + 1), pos, next];
  6203. pos = next;
  6204. break;
  6205. }
  6206. case BACKSLASH: {
  6207. next = pos;
  6208. escape = true;
  6209. while (css.charCodeAt(next + 1) === BACKSLASH) {
  6210. next += 1;
  6211. escape = !escape;
  6212. }
  6213. code = css.charCodeAt(next + 1);
  6214. if (escape && code !== SLASH && code !== SPACE && code !== NEWLINE && code !== TAB && code !== CR && code !== FEED) {
  6215. next += 1;
  6216. if (RE_HEX_ESCAPE.test(css.charAt(next))) {
  6217. while (RE_HEX_ESCAPE.test(css.charAt(next + 1))) {
  6218. next += 1;
  6219. }
  6220. if (css.charCodeAt(next + 1) === SPACE) {
  6221. next += 1;
  6222. }
  6223. }
  6224. }
  6225. currentToken = ["word", css.slice(pos, next + 1), pos, next];
  6226. pos = next;
  6227. break;
  6228. }
  6229. default:
  6230. n = css.charCodeAt(pos + 1);
  6231. if (code === HASH && n === OPEN_CURLY) {
  6232. next = pos;
  6233. interpolation();
  6234. content = css.slice(pos, next + 1);
  6235. currentToken = ["word", content, pos, next];
  6236. pos = next;
  6237. } else if (code === SLASH && n === ASTERISK) {
  6238. next = css.indexOf("*/", pos + 2) + 1;
  6239. if (next === 0) {
  6240. if (ignore || ignoreUnclosed) {
  6241. next = css.length;
  6242. } else {
  6243. unclosed("comment");
  6244. }
  6245. }
  6246. currentToken = ["comment", css.slice(pos, next + 1), pos, next];
  6247. pos = next;
  6248. } else if (code === SLASH && n === SLASH) {
  6249. RE_NEW_LINE.lastIndex = pos + 1;
  6250. RE_NEW_LINE.test(css);
  6251. if (RE_NEW_LINE.lastIndex === 0) {
  6252. next = css.length - 1;
  6253. } else {
  6254. next = RE_NEW_LINE.lastIndex - 2;
  6255. }
  6256. content = css.slice(pos, next + 1);
  6257. currentToken = ["comment", content, pos, next, "inline"];
  6258. pos = next;
  6259. } else {
  6260. RE_WORD_END.lastIndex = pos + 1;
  6261. RE_WORD_END.test(css);
  6262. if (RE_WORD_END.lastIndex === 0) {
  6263. next = css.length - 1;
  6264. } else {
  6265. next = RE_WORD_END.lastIndex - 2;
  6266. }
  6267. currentToken = ["word", css.slice(pos, next + 1), pos, next];
  6268. buffer.push(currentToken);
  6269. pos = next;
  6270. }
  6271. break;
  6272. }
  6273. pos++;
  6274. return currentToken;
  6275. }
  6276. function back(token) {
  6277. returned.push(token);
  6278. }
  6279. return {
  6280. back,
  6281. endOfFile,
  6282. nextToken,
  6283. position
  6284. };
  6285. };
  6286. }
  6287. });
  6288. // node_modules/.aspect_rules_js/postcss-scss@4.0.9_postcss_8.5.3/node_modules/postcss-scss/lib/scss-parser.js
  6289. var require_scss_parser = __commonJS({
  6290. "node_modules/.aspect_rules_js/postcss-scss@4.0.9_postcss_8.5.3/node_modules/postcss-scss/lib/scss-parser.js"(exports2, module2) {
  6291. var { Comment } = require_postcss();
  6292. var Parser = require_parser();
  6293. var NestedDeclaration = require_nested_declaration();
  6294. var scssTokenizer = require_scss_tokenize();
  6295. var ScssParser = class extends Parser {
  6296. atrule(token) {
  6297. let name = token[1];
  6298. let prev = token;
  6299. while (!this.tokenizer.endOfFile()) {
  6300. let next = this.tokenizer.nextToken();
  6301. if (next[0] === "word" && next[2] === prev[3] + 1) {
  6302. name += next[1];
  6303. prev = next;
  6304. } else {
  6305. this.tokenizer.back(next);
  6306. break;
  6307. }
  6308. }
  6309. super.atrule(["at-word", name, token[2], prev[3]]);
  6310. }
  6311. comment(token) {
  6312. if (token[4] === "inline") {
  6313. let node = new Comment();
  6314. this.init(node, token[2]);
  6315. node.raws.inline = true;
  6316. let pos = this.input.fromOffset(token[3]);
  6317. node.source.end = {
  6318. column: pos.col,
  6319. line: pos.line,
  6320. offset: token[3] + 1
  6321. };
  6322. let text = token[1].slice(2);
  6323. if (/^\s*$/.test(text)) {
  6324. node.text = "";
  6325. node.raws.left = text;
  6326. node.raws.right = "";
  6327. } else {
  6328. let match = text.match(/^(\s*)([^]*\S)(\s*)$/);
  6329. let fixed = match[2].replace(/(\*\/|\/\*)/g, "*//*");
  6330. node.text = fixed;
  6331. node.raws.left = match[1];
  6332. node.raws.right = match[3];
  6333. node.raws.text = match[2];
  6334. }
  6335. } else {
  6336. super.comment(token);
  6337. }
  6338. }
  6339. createTokenizer() {
  6340. this.tokenizer = scssTokenizer(this.input);
  6341. }
  6342. raw(node, prop, tokens, customProperty) {
  6343. super.raw(node, prop, tokens, customProperty);
  6344. if (node.raws[prop]) {
  6345. let scss = node.raws[prop].raw;
  6346. node.raws[prop].raw = tokens.reduce((all, i) => {
  6347. if (i[0] === "comment" && i[4] === "inline") {
  6348. let text = i[1].slice(2).replace(/(\*\/|\/\*)/g, "*//*");
  6349. return all + "/*" + text + "*/";
  6350. } else {
  6351. return all + i[1];
  6352. }
  6353. }, "");
  6354. if (scss !== node.raws[prop].raw) {
  6355. node.raws[prop].scss = scss;
  6356. }
  6357. }
  6358. }
  6359. rule(tokens) {
  6360. let withColon = false;
  6361. let brackets = 0;
  6362. let value = "";
  6363. for (let i of tokens) {
  6364. if (withColon) {
  6365. if (i[0] !== "comment" && i[0] !== "{") {
  6366. value += i[1];
  6367. }
  6368. } else if (i[0] === "space" && i[1].includes("\n")) {
  6369. break;
  6370. } else if (i[0] === "(") {
  6371. brackets += 1;
  6372. } else if (i[0] === ")") {
  6373. brackets -= 1;
  6374. } else if (brackets === 0 && i[0] === ":") {
  6375. withColon = true;
  6376. }
  6377. }
  6378. if (!withColon || value.trim() === "" || /^[#:A-Za-z-]/.test(value)) {
  6379. super.rule(tokens);
  6380. } else {
  6381. tokens.pop();
  6382. let node = new NestedDeclaration();
  6383. this.init(node, tokens[0][2]);
  6384. let last;
  6385. for (let i = tokens.length - 1; i >= 0; i--) {
  6386. if (tokens[i][0] !== "space") {
  6387. last = tokens[i];
  6388. break;
  6389. }
  6390. }
  6391. if (last[3]) {
  6392. let pos = this.input.fromOffset(last[3]);
  6393. node.source.end = {
  6394. column: pos.col,
  6395. line: pos.line,
  6396. offset: last[3] + 1
  6397. };
  6398. } else {
  6399. let pos = this.input.fromOffset(last[2]);
  6400. node.source.end = {
  6401. column: pos.col,
  6402. line: pos.line,
  6403. offset: last[2] + 1
  6404. };
  6405. }
  6406. while (tokens[0][0] !== "word") {
  6407. node.raws.before += tokens.shift()[1];
  6408. }
  6409. if (tokens[0][2]) {
  6410. let pos = this.input.fromOffset(tokens[0][2]);
  6411. node.source.start = {
  6412. column: pos.col,
  6413. line: pos.line,
  6414. offset: tokens[0][2]
  6415. };
  6416. }
  6417. node.prop = "";
  6418. while (tokens.length) {
  6419. let type = tokens[0][0];
  6420. if (type === ":" || type === "space" || type === "comment") {
  6421. break;
  6422. }
  6423. node.prop += tokens.shift()[1];
  6424. }
  6425. node.raws.between = "";
  6426. let token;
  6427. while (tokens.length) {
  6428. token = tokens.shift();
  6429. if (token[0] === ":") {
  6430. node.raws.between += token[1];
  6431. break;
  6432. } else {
  6433. node.raws.between += token[1];
  6434. }
  6435. }
  6436. if (node.prop[0] === "_" || node.prop[0] === "*") {
  6437. node.raws.before += node.prop[0];
  6438. node.prop = node.prop.slice(1);
  6439. }
  6440. node.raws.between += this.spacesAndCommentsFromStart(tokens);
  6441. this.precheckMissedSemicolon(tokens);
  6442. for (let i = tokens.length - 1; i > 0; i--) {
  6443. token = tokens[i];
  6444. if (token[1] === "!important") {
  6445. node.important = true;
  6446. let string = this.stringFrom(tokens, i);
  6447. string = this.spacesFromEnd(tokens) + string;
  6448. if (string !== " !important") {
  6449. node.raws.important = string;
  6450. }
  6451. break;
  6452. } else if (token[1] === "important") {
  6453. let cache = tokens.slice(0);
  6454. let str = "";
  6455. for (let j = i; j > 0; j--) {
  6456. let type = cache[j][0];
  6457. if (str.trim().indexOf("!") === 0 && type !== "space") {
  6458. break;
  6459. }
  6460. str = cache.pop()[1] + str;
  6461. }
  6462. if (str.trim().indexOf("!") === 0) {
  6463. node.important = true;
  6464. node.raws.important = str;
  6465. tokens = cache;
  6466. }
  6467. }
  6468. if (token[0] !== "space" && token[0] !== "comment") {
  6469. break;
  6470. }
  6471. }
  6472. this.raw(node, "value", tokens);
  6473. if (node.value.includes(":")) {
  6474. this.checkMissedSemicolon(tokens);
  6475. }
  6476. this.current = node;
  6477. }
  6478. }
  6479. };
  6480. module2.exports = ScssParser;
  6481. }
  6482. });
  6483. // node_modules/.aspect_rules_js/postcss-scss@4.0.9_postcss_8.5.3/node_modules/postcss-scss/lib/scss-parse.js
  6484. var require_scss_parse = __commonJS({
  6485. "node_modules/.aspect_rules_js/postcss-scss@4.0.9_postcss_8.5.3/node_modules/postcss-scss/lib/scss-parse.js"(exports2, module2) {
  6486. var { Input } = require_postcss();
  6487. var ScssParser = require_scss_parser();
  6488. module2.exports = function scssParse(scss, opts) {
  6489. let input = new Input(scss, opts);
  6490. let parser = new ScssParser(input);
  6491. parser.parse();
  6492. return parser.root;
  6493. };
  6494. }
  6495. });
  6496. // node_modules/.aspect_rules_js/postcss-scss@4.0.9_postcss_8.5.3/node_modules/postcss-scss/lib/scss-syntax.js
  6497. var require_scss_syntax = __commonJS({
  6498. "node_modules/.aspect_rules_js/postcss-scss@4.0.9_postcss_8.5.3/node_modules/postcss-scss/lib/scss-syntax.js"(exports2, module2) {
  6499. var stringify = require_scss_stringify();
  6500. var parse = require_scss_parse();
  6501. module2.exports = { parse, stringify };
  6502. }
  6503. });
  6504. // src/material/schematics/ng-update/migrations/mat-core-removal.js
  6505. var require_mat_core_removal = __commonJS({
  6506. "src/material/schematics/ng-update/migrations/mat-core-removal.js"(exports2) {
  6507. "use strict";
  6508. Object.defineProperty(exports2, "__esModule", { value: true });
  6509. exports2.MatCoreMigration = void 0;
  6510. var postcss = require_postcss();
  6511. var scss = require_scss_syntax();
  6512. var schematics_12 = require("@angular/cdk/schematics");
  6513. var MATERIAL_IMPORT_PATH = "@angular/material";
  6514. var MatCoreMigration = class extends schematics_12.Migration {
  6515. constructor() {
  6516. super(...arguments);
  6517. __publicField(this, "enabled", true);
  6518. __publicField(this, "_namespace");
  6519. }
  6520. init() {
  6521. }
  6522. visitStylesheet(stylesheet) {
  6523. if (!stylesheet.content.includes(MATERIAL_IMPORT_PATH)) {
  6524. return;
  6525. }
  6526. try {
  6527. const processor = new postcss.Processor([
  6528. {
  6529. postcssPlugin: "mat-core-removal-v19-plugin",
  6530. AtRule: {
  6531. use: (node) => this._getNamespace(node),
  6532. include: (node) => this._handleAtInclude(node, stylesheet.filePath)
  6533. }
  6534. }
  6535. ]);
  6536. processor.process(stylesheet.content, { syntax: scss }).sync();
  6537. } catch (e) {
  6538. this.logger.warn(`Failed to migrate usages of mat.core in ${stylesheet.filePath} due to error:`);
  6539. this.logger.warn(e + "");
  6540. }
  6541. }
  6542. /** Handles updating the at-include rules of uses of the core mixin. */
  6543. _handleAtInclude(node, filePath) {
  6544. var _a, _b;
  6545. if (!this._namespace || !((_a = node.source) == null ? void 0 : _a.start) || !node.source.end) {
  6546. return;
  6547. }
  6548. if (this._isMatCoreMixin(node)) {
  6549. const end = node.source.end.offset;
  6550. const start = node.source.start.offset;
  6551. const prefix = "\n" + (((_b = node.raws.before) == null ? void 0 : _b.split("\n").pop()) || "");
  6552. const snippet = prefix + node.source.input.css.slice(start, end);
  6553. const elevation = prefix + `@include ${this._namespace}.elevation-classes();`;
  6554. const background = prefix + `@include ${this._namespace}.app-background();`;
  6555. this._replaceAt(filePath, node.source.start.offset - prefix.length, {
  6556. old: snippet,
  6557. new: elevation + background
  6558. });
  6559. }
  6560. }
  6561. /** Returns true if the given at-rule is a use of the core mixin. */
  6562. _isMatCoreMixin(node) {
  6563. if (node.params.startsWith(`${this._namespace}.core`)) {
  6564. return true;
  6565. }
  6566. return false;
  6567. }
  6568. /** Sets the namespace if the given at-rule if it is importing from @angular/material. */
  6569. _getNamespace(node) {
  6570. if (!this._namespace && node.params.startsWith(MATERIAL_IMPORT_PATH, 1)) {
  6571. this._namespace = node.params.split(/\s+/)[2] || "material";
  6572. }
  6573. }
  6574. /** Updates the source file with the given replacements. */
  6575. _replaceAt(filePath, offset, str) {
  6576. const index = this.fileSystem.read(filePath).indexOf(str.old, offset);
  6577. this.fileSystem.edit(filePath).remove(index, str.old.length).insertRight(index, str.new);
  6578. }
  6579. };
  6580. exports2.MatCoreMigration = MatCoreMigration;
  6581. }
  6582. });
  6583. // src/material/schematics/ng-update/migrations/explicit-system-variable-prefix.js
  6584. var require_explicit_system_variable_prefix = __commonJS({
  6585. "src/material/schematics/ng-update/migrations/explicit-system-variable-prefix.js"(exports2) {
  6586. "use strict";
  6587. Object.defineProperty(exports2, "__esModule", { value: true });
  6588. exports2.ExplicitSystemVariablePrefixMigration = void 0;
  6589. var schematics_12 = require("@angular/cdk/schematics");
  6590. var ExplicitSystemVariablePrefixMigration = class extends schematics_12.Migration {
  6591. constructor() {
  6592. super(...arguments);
  6593. __publicField(this, "enabled", true);
  6594. }
  6595. visitStylesheet(stylesheet) {
  6596. if (!stylesheet.filePath.endsWith(".scss")) {
  6597. return;
  6598. }
  6599. const content = this.fileSystem.read(stylesheet.filePath);
  6600. if (!content || !content.includes("@angular/material")) {
  6601. return;
  6602. }
  6603. const changes = this._getChanges(content);
  6604. if (changes.length > 0) {
  6605. const update = this.fileSystem.edit(stylesheet.filePath);
  6606. for (let i = changes.length - 1; i > -1; i--) {
  6607. update.insertRight(changes[i].start, changes[i].text);
  6608. }
  6609. this.fileSystem.commitEdits();
  6610. }
  6611. }
  6612. /** Gets the changes that should be applied to a file. */
  6613. _getChanges(content) {
  6614. const key = "use-system-variables";
  6615. const prefixKey = "system-variables-prefix";
  6616. const changes = [];
  6617. let index = content.indexOf(key);
  6618. while (index > -1) {
  6619. const colonIndex = content.indexOf(":", index);
  6620. const valueEnd = colonIndex === -1 ? -1 : this._getValueEnd(content, colonIndex);
  6621. if (valueEnd === -1) {
  6622. index = content.indexOf(key, index + key.length);
  6623. continue;
  6624. }
  6625. const value = content.slice(colonIndex + 1, valueEnd + 1).trim();
  6626. if (value.startsWith("true") && !this._hasSystemPrefix(content, index, prefixKey)) {
  6627. changes.push({
  6628. start: this._getInsertIndex(content, valueEnd),
  6629. text: `${value.endsWith(",") ? "" : ","}
  6630. ${prefixKey}: sys,`
  6631. });
  6632. }
  6633. index = content.indexOf(key, valueEnd);
  6634. }
  6635. return changes;
  6636. }
  6637. /**
  6638. * Gets the end index of a Sass map key.
  6639. * @param content Content of the file.
  6640. * @param startIndex Index at which to start the search.
  6641. */
  6642. _getValueEnd(content, startIndex) {
  6643. for (let i = startIndex + 1; i < content.length; i++) {
  6644. const char = content[i];
  6645. if (char === "," || char === "\n" || char === ")") {
  6646. return i;
  6647. }
  6648. }
  6649. return -1;
  6650. }
  6651. /**
  6652. * Gets the index at which to insert the migrated content.
  6653. * @param content Initial file content.
  6654. * @param valueEnd Index at which the value of the system variables opt-in ends.
  6655. */
  6656. _getInsertIndex(content, valueEnd) {
  6657. for (let i = valueEnd; i < content.length; i++) {
  6658. if (content[i] === "\n") {
  6659. return i;
  6660. } else if (content[i] === ")") {
  6661. return i;
  6662. }
  6663. }
  6664. return valueEnd;
  6665. }
  6666. /**
  6667. * Determines if a map that enables system variables is using system variables already.
  6668. * @param content Full file contents.
  6669. * @param keyIndex Index at which the systems variable key is defined.
  6670. * @param prefixKey Name of the key that defines the prefix.
  6671. */
  6672. _hasSystemPrefix(content, keyIndex, prefixKey) {
  6673. const mapEnd = content.indexOf(")", keyIndex);
  6674. if (mapEnd > -1) {
  6675. for (let i = keyIndex; i > -1; i--) {
  6676. if (content[i] === "(") {
  6677. return content.slice(i, mapEnd).includes(prefixKey);
  6678. }
  6679. }
  6680. }
  6681. return false;
  6682. }
  6683. };
  6684. exports2.ExplicitSystemVariablePrefixMigration = ExplicitSystemVariablePrefixMigration;
  6685. }
  6686. });
  6687. // src/material/schematics/ng-update/index.js
  6688. Object.defineProperty(exports, "__esModule", { value: true });
  6689. exports.updateToV19 = updateToV19;
  6690. var schematics_1 = require("@angular/cdk/schematics");
  6691. var upgrade_data_1 = require_upgrade_data();
  6692. var mat_core_removal_1 = require_mat_core_removal();
  6693. var explicit_system_variable_prefix_1 = require_explicit_system_variable_prefix();
  6694. var materialMigrations = [
  6695. mat_core_removal_1.MatCoreMigration,
  6696. explicit_system_variable_prefix_1.ExplicitSystemVariablePrefixMigration
  6697. ];
  6698. function updateToV19() {
  6699. return (0, schematics_1.createMigrationSchematicRule)(schematics_1.TargetVersion.V19, materialMigrations, upgrade_data_1.materialUpgradeData, onMigrationComplete);
  6700. }
  6701. function onMigrationComplete(context, targetVersion, hasFailures) {
  6702. context.logger.info("");
  6703. context.logger.info(` \u2713 Updated Angular Material to ${targetVersion}`);
  6704. context.logger.info("");
  6705. if (hasFailures) {
  6706. context.logger.warn(" \u26A0 Some issues were detected but could not be fixed automatically. Please check the output above and fix these issues manually.");
  6707. }
  6708. }
  6709. /**
  6710. * @license
  6711. * Copyright Google LLC All Rights Reserved.
  6712. *
  6713. * Use of this source code is governed by an MIT-style license that can be
  6714. * found in the LICENSE file at https://angular.dev/license
  6715. */
  6716. //# sourceMappingURL=index_bundled.js.map