dep-afe9ad01.js 312 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391
  1. 'use strict';
  2. var require$$0 = require('postcss');
  3. var build$2 = require('./dep-1be34a63.js');
  4. var path$4 = require('path');
  5. var require$$1 = require('crypto');
  6. var fs = require('fs');
  7. var require$$0$1 = require('util');
  8. var index$1 = require('./dep-e36486f6.js');
  9. function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e['default'] : e; }
  10. var require$$0__default = /*#__PURE__*/_interopDefaultLegacy(require$$0);
  11. var path__default = /*#__PURE__*/_interopDefaultLegacy(path$4);
  12. var require$$1__default = /*#__PURE__*/_interopDefaultLegacy(require$$1);
  13. var fs__default = /*#__PURE__*/_interopDefaultLegacy(fs);
  14. var require$$0__default$1 = /*#__PURE__*/_interopDefaultLegacy(require$$0$1);
  15. var build$1 = {exports: {}};
  16. /**
  17. * lodash (Custom Build) <https://lodash.com/>
  18. * Build: `lodash modularize exports="npm" -o ./`
  19. * Copyright jQuery Foundation and other contributors <https://jquery.org/>
  20. * Released under MIT license <https://lodash.com/license>
  21. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  22. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  23. */
  24. /** Used as references for various `Number` constants. */
  25. var INFINITY = 1 / 0;
  26. /** `Object#toString` result references. */
  27. var symbolTag = '[object Symbol]';
  28. /** Used to match words composed of alphanumeric characters. */
  29. var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
  30. /** Used to match Latin Unicode letters (excluding mathematical operators). */
  31. var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
  32. /** Used to compose unicode character classes. */
  33. var rsAstralRange = '\\ud800-\\udfff',
  34. rsComboMarksRange = '\\u0300-\\u036f\\ufe20-\\ufe23',
  35. rsComboSymbolsRange = '\\u20d0-\\u20f0',
  36. rsDingbatRange = '\\u2700-\\u27bf',
  37. rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff',
  38. rsMathOpRange = '\\xac\\xb1\\xd7\\xf7',
  39. rsNonCharRange = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf',
  40. rsPunctuationRange = '\\u2000-\\u206f',
  41. rsSpaceRange = ' \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000',
  42. rsUpperRange = 'A-Z\\xc0-\\xd6\\xd8-\\xde',
  43. rsVarRange = '\\ufe0e\\ufe0f',
  44. rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;
  45. /** Used to compose unicode capture groups. */
  46. var rsApos = "['\u2019]",
  47. rsAstral = '[' + rsAstralRange + ']',
  48. rsBreak = '[' + rsBreakRange + ']',
  49. rsCombo = '[' + rsComboMarksRange + rsComboSymbolsRange + ']',
  50. rsDigits = '\\d+',
  51. rsDingbat = '[' + rsDingbatRange + ']',
  52. rsLower = '[' + rsLowerRange + ']',
  53. rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',
  54. rsFitz = '\\ud83c[\\udffb-\\udfff]',
  55. rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
  56. rsNonAstral = '[^' + rsAstralRange + ']',
  57. rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
  58. rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
  59. rsUpper = '[' + rsUpperRange + ']',
  60. rsZWJ = '\\u200d';
  61. /** Used to compose unicode regexes. */
  62. var rsLowerMisc = '(?:' + rsLower + '|' + rsMisc + ')',
  63. rsUpperMisc = '(?:' + rsUpper + '|' + rsMisc + ')',
  64. rsOptLowerContr = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',
  65. rsOptUpperContr = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',
  66. reOptMod = rsModifier + '?',
  67. rsOptVar = '[' + rsVarRange + ']?',
  68. rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
  69. rsSeq = rsOptVar + reOptMod + rsOptJoin,
  70. rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq,
  71. rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
  72. /** Used to match apostrophes. */
  73. var reApos = RegExp(rsApos, 'g');
  74. /**
  75. * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and
  76. * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).
  77. */
  78. var reComboMark = RegExp(rsCombo, 'g');
  79. /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
  80. var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
  81. /** Used to match complex or compound words. */
  82. var reUnicodeWord = RegExp([
  83. rsUpper + '?' + rsLower + '+' + rsOptLowerContr + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',
  84. rsUpperMisc + '+' + rsOptUpperContr + '(?=' + [rsBreak, rsUpper + rsLowerMisc, '$'].join('|') + ')',
  85. rsUpper + '?' + rsLowerMisc + '+' + rsOptLowerContr,
  86. rsUpper + '+' + rsOptUpperContr,
  87. rsDigits,
  88. rsEmoji
  89. ].join('|'), 'g');
  90. /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */
  91. var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboMarksRange + rsComboSymbolsRange + rsVarRange + ']');
  92. /** Used to detect strings that need a more robust regexp to match words. */
  93. var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
  94. /** Used to map Latin Unicode letters to basic Latin letters. */
  95. var deburredLetters = {
  96. // Latin-1 Supplement block.
  97. '\xc0': 'A', '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A',
  98. '\xe0': 'a', '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a',
  99. '\xc7': 'C', '\xe7': 'c',
  100. '\xd0': 'D', '\xf0': 'd',
  101. '\xc8': 'E', '\xc9': 'E', '\xca': 'E', '\xcb': 'E',
  102. '\xe8': 'e', '\xe9': 'e', '\xea': 'e', '\xeb': 'e',
  103. '\xcc': 'I', '\xcd': 'I', '\xce': 'I', '\xcf': 'I',
  104. '\xec': 'i', '\xed': 'i', '\xee': 'i', '\xef': 'i',
  105. '\xd1': 'N', '\xf1': 'n',
  106. '\xd2': 'O', '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O',
  107. '\xf2': 'o', '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o',
  108. '\xd9': 'U', '\xda': 'U', '\xdb': 'U', '\xdc': 'U',
  109. '\xf9': 'u', '\xfa': 'u', '\xfb': 'u', '\xfc': 'u',
  110. '\xdd': 'Y', '\xfd': 'y', '\xff': 'y',
  111. '\xc6': 'Ae', '\xe6': 'ae',
  112. '\xde': 'Th', '\xfe': 'th',
  113. '\xdf': 'ss',
  114. // Latin Extended-A block.
  115. '\u0100': 'A', '\u0102': 'A', '\u0104': 'A',
  116. '\u0101': 'a', '\u0103': 'a', '\u0105': 'a',
  117. '\u0106': 'C', '\u0108': 'C', '\u010a': 'C', '\u010c': 'C',
  118. '\u0107': 'c', '\u0109': 'c', '\u010b': 'c', '\u010d': 'c',
  119. '\u010e': 'D', '\u0110': 'D', '\u010f': 'd', '\u0111': 'd',
  120. '\u0112': 'E', '\u0114': 'E', '\u0116': 'E', '\u0118': 'E', '\u011a': 'E',
  121. '\u0113': 'e', '\u0115': 'e', '\u0117': 'e', '\u0119': 'e', '\u011b': 'e',
  122. '\u011c': 'G', '\u011e': 'G', '\u0120': 'G', '\u0122': 'G',
  123. '\u011d': 'g', '\u011f': 'g', '\u0121': 'g', '\u0123': 'g',
  124. '\u0124': 'H', '\u0126': 'H', '\u0125': 'h', '\u0127': 'h',
  125. '\u0128': 'I', '\u012a': 'I', '\u012c': 'I', '\u012e': 'I', '\u0130': 'I',
  126. '\u0129': 'i', '\u012b': 'i', '\u012d': 'i', '\u012f': 'i', '\u0131': 'i',
  127. '\u0134': 'J', '\u0135': 'j',
  128. '\u0136': 'K', '\u0137': 'k', '\u0138': 'k',
  129. '\u0139': 'L', '\u013b': 'L', '\u013d': 'L', '\u013f': 'L', '\u0141': 'L',
  130. '\u013a': 'l', '\u013c': 'l', '\u013e': 'l', '\u0140': 'l', '\u0142': 'l',
  131. '\u0143': 'N', '\u0145': 'N', '\u0147': 'N', '\u014a': 'N',
  132. '\u0144': 'n', '\u0146': 'n', '\u0148': 'n', '\u014b': 'n',
  133. '\u014c': 'O', '\u014e': 'O', '\u0150': 'O',
  134. '\u014d': 'o', '\u014f': 'o', '\u0151': 'o',
  135. '\u0154': 'R', '\u0156': 'R', '\u0158': 'R',
  136. '\u0155': 'r', '\u0157': 'r', '\u0159': 'r',
  137. '\u015a': 'S', '\u015c': 'S', '\u015e': 'S', '\u0160': 'S',
  138. '\u015b': 's', '\u015d': 's', '\u015f': 's', '\u0161': 's',
  139. '\u0162': 'T', '\u0164': 'T', '\u0166': 'T',
  140. '\u0163': 't', '\u0165': 't', '\u0167': 't',
  141. '\u0168': 'U', '\u016a': 'U', '\u016c': 'U', '\u016e': 'U', '\u0170': 'U', '\u0172': 'U',
  142. '\u0169': 'u', '\u016b': 'u', '\u016d': 'u', '\u016f': 'u', '\u0171': 'u', '\u0173': 'u',
  143. '\u0174': 'W', '\u0175': 'w',
  144. '\u0176': 'Y', '\u0177': 'y', '\u0178': 'Y',
  145. '\u0179': 'Z', '\u017b': 'Z', '\u017d': 'Z',
  146. '\u017a': 'z', '\u017c': 'z', '\u017e': 'z',
  147. '\u0132': 'IJ', '\u0133': 'ij',
  148. '\u0152': 'Oe', '\u0153': 'oe',
  149. '\u0149': "'n", '\u017f': 'ss'
  150. };
  151. /** Detect free variable `global` from Node.js. */
  152. var freeGlobal = typeof build$2.commonjsGlobal == 'object' && build$2.commonjsGlobal && build$2.commonjsGlobal.Object === Object && build$2.commonjsGlobal;
  153. /** Detect free variable `self`. */
  154. var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
  155. /** Used as a reference to the global object. */
  156. var root$2 = freeGlobal || freeSelf || Function('return this')();
  157. /**
  158. * A specialized version of `_.reduce` for arrays without support for
  159. * iteratee shorthands.
  160. *
  161. * @private
  162. * @param {Array} [array] The array to iterate over.
  163. * @param {Function} iteratee The function invoked per iteration.
  164. * @param {*} [accumulator] The initial value.
  165. * @param {boolean} [initAccum] Specify using the first element of `array` as
  166. * the initial value.
  167. * @returns {*} Returns the accumulated value.
  168. */
  169. function arrayReduce(array, iteratee, accumulator, initAccum) {
  170. var index = -1,
  171. length = array ? array.length : 0;
  172. if (initAccum && length) {
  173. accumulator = array[++index];
  174. }
  175. while (++index < length) {
  176. accumulator = iteratee(accumulator, array[index], index, array);
  177. }
  178. return accumulator;
  179. }
  180. /**
  181. * Converts an ASCII `string` to an array.
  182. *
  183. * @private
  184. * @param {string} string The string to convert.
  185. * @returns {Array} Returns the converted array.
  186. */
  187. function asciiToArray(string) {
  188. return string.split('');
  189. }
  190. /**
  191. * Splits an ASCII `string` into an array of its words.
  192. *
  193. * @private
  194. * @param {string} The string to inspect.
  195. * @returns {Array} Returns the words of `string`.
  196. */
  197. function asciiWords(string) {
  198. return string.match(reAsciiWord) || [];
  199. }
  200. /**
  201. * The base implementation of `_.propertyOf` without support for deep paths.
  202. *
  203. * @private
  204. * @param {Object} object The object to query.
  205. * @returns {Function} Returns the new accessor function.
  206. */
  207. function basePropertyOf(object) {
  208. return function(key) {
  209. return object == null ? undefined : object[key];
  210. };
  211. }
  212. /**
  213. * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A
  214. * letters to basic Latin letters.
  215. *
  216. * @private
  217. * @param {string} letter The matched letter to deburr.
  218. * @returns {string} Returns the deburred letter.
  219. */
  220. var deburrLetter = basePropertyOf(deburredLetters);
  221. /**
  222. * Checks if `string` contains Unicode symbols.
  223. *
  224. * @private
  225. * @param {string} string The string to inspect.
  226. * @returns {boolean} Returns `true` if a symbol is found, else `false`.
  227. */
  228. function hasUnicode(string) {
  229. return reHasUnicode.test(string);
  230. }
  231. /**
  232. * Checks if `string` contains a word composed of Unicode symbols.
  233. *
  234. * @private
  235. * @param {string} string The string to inspect.
  236. * @returns {boolean} Returns `true` if a word is found, else `false`.
  237. */
  238. function hasUnicodeWord(string) {
  239. return reHasUnicodeWord.test(string);
  240. }
  241. /**
  242. * Converts `string` to an array.
  243. *
  244. * @private
  245. * @param {string} string The string to convert.
  246. * @returns {Array} Returns the converted array.
  247. */
  248. function stringToArray(string) {
  249. return hasUnicode(string)
  250. ? unicodeToArray(string)
  251. : asciiToArray(string);
  252. }
  253. /**
  254. * Converts a Unicode `string` to an array.
  255. *
  256. * @private
  257. * @param {string} string The string to convert.
  258. * @returns {Array} Returns the converted array.
  259. */
  260. function unicodeToArray(string) {
  261. return string.match(reUnicode) || [];
  262. }
  263. /**
  264. * Splits a Unicode `string` into an array of its words.
  265. *
  266. * @private
  267. * @param {string} The string to inspect.
  268. * @returns {Array} Returns the words of `string`.
  269. */
  270. function unicodeWords(string) {
  271. return string.match(reUnicodeWord) || [];
  272. }
  273. /** Used for built-in method references. */
  274. var objectProto = Object.prototype;
  275. /**
  276. * Used to resolve the
  277. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  278. * of values.
  279. */
  280. var objectToString = objectProto.toString;
  281. /** Built-in value references. */
  282. var Symbol$1 = root$2.Symbol;
  283. /** Used to convert symbols to primitives and strings. */
  284. var symbolProto = Symbol$1 ? Symbol$1.prototype : undefined,
  285. symbolToString = symbolProto ? symbolProto.toString : undefined;
  286. /**
  287. * The base implementation of `_.slice` without an iteratee call guard.
  288. *
  289. * @private
  290. * @param {Array} array The array to slice.
  291. * @param {number} [start=0] The start position.
  292. * @param {number} [end=array.length] The end position.
  293. * @returns {Array} Returns the slice of `array`.
  294. */
  295. function baseSlice(array, start, end) {
  296. var index = -1,
  297. length = array.length;
  298. if (start < 0) {
  299. start = -start > length ? 0 : (length + start);
  300. }
  301. end = end > length ? length : end;
  302. if (end < 0) {
  303. end += length;
  304. }
  305. length = start > end ? 0 : ((end - start) >>> 0);
  306. start >>>= 0;
  307. var result = Array(length);
  308. while (++index < length) {
  309. result[index] = array[index + start];
  310. }
  311. return result;
  312. }
  313. /**
  314. * The base implementation of `_.toString` which doesn't convert nullish
  315. * values to empty strings.
  316. *
  317. * @private
  318. * @param {*} value The value to process.
  319. * @returns {string} Returns the string.
  320. */
  321. function baseToString(value) {
  322. // Exit early for strings to avoid a performance hit in some environments.
  323. if (typeof value == 'string') {
  324. return value;
  325. }
  326. if (isSymbol(value)) {
  327. return symbolToString ? symbolToString.call(value) : '';
  328. }
  329. var result = (value + '');
  330. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  331. }
  332. /**
  333. * Casts `array` to a slice if it's needed.
  334. *
  335. * @private
  336. * @param {Array} array The array to inspect.
  337. * @param {number} start The start position.
  338. * @param {number} [end=array.length] The end position.
  339. * @returns {Array} Returns the cast slice.
  340. */
  341. function castSlice(array, start, end) {
  342. var length = array.length;
  343. end = end === undefined ? length : end;
  344. return (!start && end >= length) ? array : baseSlice(array, start, end);
  345. }
  346. /**
  347. * Creates a function like `_.lowerFirst`.
  348. *
  349. * @private
  350. * @param {string} methodName The name of the `String` case method to use.
  351. * @returns {Function} Returns the new case function.
  352. */
  353. function createCaseFirst(methodName) {
  354. return function(string) {
  355. string = toString(string);
  356. var strSymbols = hasUnicode(string)
  357. ? stringToArray(string)
  358. : undefined;
  359. var chr = strSymbols
  360. ? strSymbols[0]
  361. : string.charAt(0);
  362. var trailing = strSymbols
  363. ? castSlice(strSymbols, 1).join('')
  364. : string.slice(1);
  365. return chr[methodName]() + trailing;
  366. };
  367. }
  368. /**
  369. * Creates a function like `_.camelCase`.
  370. *
  371. * @private
  372. * @param {Function} callback The function to combine each word.
  373. * @returns {Function} Returns the new compounder function.
  374. */
  375. function createCompounder(callback) {
  376. return function(string) {
  377. return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');
  378. };
  379. }
  380. /**
  381. * Checks if `value` is object-like. A value is object-like if it's not `null`
  382. * and has a `typeof` result of "object".
  383. *
  384. * @static
  385. * @memberOf _
  386. * @since 4.0.0
  387. * @category Lang
  388. * @param {*} value The value to check.
  389. * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
  390. * @example
  391. *
  392. * _.isObjectLike({});
  393. * // => true
  394. *
  395. * _.isObjectLike([1, 2, 3]);
  396. * // => true
  397. *
  398. * _.isObjectLike(_.noop);
  399. * // => false
  400. *
  401. * _.isObjectLike(null);
  402. * // => false
  403. */
  404. function isObjectLike(value) {
  405. return !!value && typeof value == 'object';
  406. }
  407. /**
  408. * Checks if `value` is classified as a `Symbol` primitive or object.
  409. *
  410. * @static
  411. * @memberOf _
  412. * @since 4.0.0
  413. * @category Lang
  414. * @param {*} value The value to check.
  415. * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
  416. * @example
  417. *
  418. * _.isSymbol(Symbol.iterator);
  419. * // => true
  420. *
  421. * _.isSymbol('abc');
  422. * // => false
  423. */
  424. function isSymbol(value) {
  425. return typeof value == 'symbol' ||
  426. (isObjectLike(value) && objectToString.call(value) == symbolTag);
  427. }
  428. /**
  429. * Converts `value` to a string. An empty string is returned for `null`
  430. * and `undefined` values. The sign of `-0` is preserved.
  431. *
  432. * @static
  433. * @memberOf _
  434. * @since 4.0.0
  435. * @category Lang
  436. * @param {*} value The value to process.
  437. * @returns {string} Returns the string.
  438. * @example
  439. *
  440. * _.toString(null);
  441. * // => ''
  442. *
  443. * _.toString(-0);
  444. * // => '-0'
  445. *
  446. * _.toString([1, 2, 3]);
  447. * // => '1,2,3'
  448. */
  449. function toString(value) {
  450. return value == null ? '' : baseToString(value);
  451. }
  452. /**
  453. * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).
  454. *
  455. * @static
  456. * @memberOf _
  457. * @since 3.0.0
  458. * @category String
  459. * @param {string} [string=''] The string to convert.
  460. * @returns {string} Returns the camel cased string.
  461. * @example
  462. *
  463. * _.camelCase('Foo Bar');
  464. * // => 'fooBar'
  465. *
  466. * _.camelCase('--foo-bar--');
  467. * // => 'fooBar'
  468. *
  469. * _.camelCase('__FOO_BAR__');
  470. * // => 'fooBar'
  471. */
  472. var camelCase = createCompounder(function(result, word, index) {
  473. word = word.toLowerCase();
  474. return result + (index ? capitalize(word) : word);
  475. });
  476. /**
  477. * Converts the first character of `string` to upper case and the remaining
  478. * to lower case.
  479. *
  480. * @static
  481. * @memberOf _
  482. * @since 3.0.0
  483. * @category String
  484. * @param {string} [string=''] The string to capitalize.
  485. * @returns {string} Returns the capitalized string.
  486. * @example
  487. *
  488. * _.capitalize('FRED');
  489. * // => 'Fred'
  490. */
  491. function capitalize(string) {
  492. return upperFirst(toString(string).toLowerCase());
  493. }
  494. /**
  495. * Deburrs `string` by converting
  496. * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
  497. * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)
  498. * letters to basic Latin letters and removing
  499. * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
  500. *
  501. * @static
  502. * @memberOf _
  503. * @since 3.0.0
  504. * @category String
  505. * @param {string} [string=''] The string to deburr.
  506. * @returns {string} Returns the deburred string.
  507. * @example
  508. *
  509. * _.deburr('déjà vu');
  510. * // => 'deja vu'
  511. */
  512. function deburr(string) {
  513. string = toString(string);
  514. return string && string.replace(reLatin, deburrLetter).replace(reComboMark, '');
  515. }
  516. /**
  517. * Converts the first character of `string` to upper case.
  518. *
  519. * @static
  520. * @memberOf _
  521. * @since 4.0.0
  522. * @category String
  523. * @param {string} [string=''] The string to convert.
  524. * @returns {string} Returns the converted string.
  525. * @example
  526. *
  527. * _.upperFirst('fred');
  528. * // => 'Fred'
  529. *
  530. * _.upperFirst('FRED');
  531. * // => 'FRED'
  532. */
  533. var upperFirst = createCaseFirst('toUpperCase');
  534. /**
  535. * Splits `string` into an array of its words.
  536. *
  537. * @static
  538. * @memberOf _
  539. * @since 3.0.0
  540. * @category String
  541. * @param {string} [string=''] The string to inspect.
  542. * @param {RegExp|string} [pattern] The pattern to match words.
  543. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
  544. * @returns {Array} Returns the words of `string`.
  545. * @example
  546. *
  547. * _.words('fred, barney, & pebbles');
  548. * // => ['fred', 'barney', 'pebbles']
  549. *
  550. * _.words('fred, barney, & pebbles', /[^, ]+/g);
  551. * // => ['fred', 'barney', '&', 'pebbles']
  552. */
  553. function words(string, pattern, guard) {
  554. string = toString(string);
  555. pattern = guard ? undefined : pattern;
  556. if (pattern === undefined) {
  557. return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);
  558. }
  559. return string.match(pattern) || [];
  560. }
  561. var lodash_camelcase = camelCase;
  562. var lib$2 = {};
  563. var lib$1 = {exports: {}};
  564. var parse = {exports: {}};
  565. var util$1 = {};
  566. var unicode$1 = {};
  567. Object.defineProperty(unicode$1,"__esModule",{value:true});unicode$1.Space_Separator=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/;unicode$1.ID_Start=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/;unicode$1.ID_Continue=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/;
  568. Object.defineProperty(util$1,'__esModule',{value:true});util$1.isSpaceSeparator=isSpaceSeparator;util$1.isIdStartChar=isIdStartChar;util$1.isIdContinueChar=isIdContinueChar;util$1.isDigit=isDigit;util$1.isHexDigit=isHexDigit;var _unicode=unicode$1;var unicode=_interopRequireWildcard(_unicode);function _interopRequireWildcard(obj){if(obj&&obj.__esModule){return obj}else {var newObj={};if(obj!=null){for(var key in obj){if(Object.prototype.hasOwnProperty.call(obj,key))newObj[key]=obj[key];}}newObj.default=obj;return newObj}}function isSpaceSeparator(c){return unicode.Space_Separator.test(c)}function isIdStartChar(c){return c>='a'&&c<='z'||c>='A'&&c<='Z'||c==='$'||c==='_'||unicode.ID_Start.test(c)}function isIdContinueChar(c){return c>='a'&&c<='z'||c>='A'&&c<='Z'||c>='0'&&c<='9'||c==='$'||c==='_'||c==='\u200C'||c==='\u200D'||unicode.ID_Continue.test(c)}function isDigit(c){return /[0-9]/.test(c)}function isHexDigit(c){return /[0-9A-Fa-f]/.test(c)}
  569. (function (module, exports) {
  570. Object.defineProperty(exports,'__esModule',{value:true});var _typeof=typeof Symbol==='function'&&typeof Symbol.iterator==='symbol'?function(obj){return typeof obj}:function(obj){return obj&&typeof Symbol==='function'&&obj.constructor===Symbol&&obj!==Symbol.prototype?'symbol':typeof obj};exports.default=parse;var _util=util$1;var util=_interopRequireWildcard(_util);function _interopRequireWildcard(obj){if(obj&&obj.__esModule){return obj}else {var newObj={};if(obj!=null){for(var key in obj){if(Object.prototype.hasOwnProperty.call(obj,key))newObj[key]=obj[key];}}newObj.default=obj;return newObj}}var source=void 0;var parseState=void 0;var stack=void 0;var pos=void 0;var line=void 0;var column=void 0;var token=void 0;var key=void 0;var root=void 0;function parse(text,reviver){source=String(text);parseState='start';stack=[];pos=0;line=1;column=0;token=undefined;key=undefined;root=undefined;do{token=lex();parseStates[parseState]();}while(token.type!=='eof');if(typeof reviver==='function'){return internalize({'':root},'',reviver)}return root}function internalize(holder,name,reviver){var value=holder[name];if(value!=null&&(typeof value==='undefined'?'undefined':_typeof(value))==='object'){for(var _key in value){var replacement=internalize(value,_key,reviver);if(replacement===undefined){delete value[_key];}else {value[_key]=replacement;}}}return reviver.call(holder,name,value)}var lexState=void 0;var buffer=void 0;var doubleQuote=void 0;var _sign=void 0;var c=void 0;function lex(){lexState='default';buffer='';doubleQuote=false;_sign=1;for(;;){c=peek();var _token=lexStates[lexState]();if(_token){return _token}}}function peek(){if(source[pos]){return String.fromCodePoint(source.codePointAt(pos))}}function read(){var c=peek();if(c==='\n'){line++;column=0;}else if(c){column+=c.length;}else {column++;}if(c){pos+=c.length;}return c}var lexStates={default:function _default(){switch(c){case'\t':case'\x0B':case'\f':case' ':case'\xA0':case'\uFEFF':case'\n':case'\r':case'\u2028':case'\u2029':read();return;case'/':read();lexState='comment';return;case undefined:read();return newToken('eof');}if(util.isSpaceSeparator(c)){read();return}return lexStates[parseState]()},comment:function comment(){switch(c){case'*':read();lexState='multiLineComment';return;case'/':read();lexState='singleLineComment';return;}throw invalidChar(read())},multiLineComment:function multiLineComment(){switch(c){case'*':read();lexState='multiLineCommentAsterisk';return;case undefined:throw invalidChar(read());}read();},multiLineCommentAsterisk:function multiLineCommentAsterisk(){switch(c){case'*':read();return;case'/':read();lexState='default';return;case undefined:throw invalidChar(read());}read();lexState='multiLineComment';},singleLineComment:function singleLineComment(){switch(c){case'\n':case'\r':case'\u2028':case'\u2029':read();lexState='default';return;case undefined:read();return newToken('eof');}read();},value:function value(){switch(c){case'{':case'[':return newToken('punctuator',read());case'n':read();literal('ull');return newToken('null',null);case't':read();literal('rue');return newToken('boolean',true);case'f':read();literal('alse');return newToken('boolean',false);case'-':case'+':if(read()==='-'){_sign=-1;}lexState='sign';return;case'.':buffer=read();lexState='decimalPointLeading';return;case'0':buffer=read();lexState='zero';return;case'1':case'2':case'3':case'4':case'5':case'6':case'7':case'8':case'9':buffer=read();lexState='decimalInteger';return;case'I':read();literal('nfinity');return newToken('numeric',Infinity);case'N':read();literal('aN');return newToken('numeric',NaN);case'"':case'\'':doubleQuote=read()==='"';buffer='';lexState='string';return;}throw invalidChar(read())},identifierNameStartEscape:function identifierNameStartEscape(){if(c!=='u'){throw invalidChar(read())}read();var u=unicodeEscape();switch(u){case'$':case'_':break;default:if(!util.isIdStartChar(u)){throw invalidIdentifier()}break;}buffer+=u;lexState='identifierName';},identifierName:function identifierName(){switch(c){case'$':case'_':case'\u200C':case'\u200D':buffer+=read();return;case'\\':read();lexState='identifierNameEscape';return;}if(util.isIdContinueChar(c)){buffer+=read();return}return newToken('identifier',buffer)},identifierNameEscape:function identifierNameEscape(){if(c!=='u'){throw invalidChar(read())}read();var u=unicodeEscape();switch(u){case'$':case'_':case'\u200C':case'\u200D':break;default:if(!util.isIdContinueChar(u)){throw invalidIdentifier()}break;}buffer+=u;lexState='identifierName';},sign:function sign(){switch(c){case'.':buffer=read();lexState='decimalPointLeading';return;case'0':buffer=read();lexState='zero';return;case'1':case'2':case'3':case'4':case'5':case'6':case'7':case'8':case'9':buffer=read();lexState='decimalInteger';return;case'I':read();literal('nfinity');return newToken('numeric',_sign*Infinity);case'N':read();literal('aN');return newToken('numeric',NaN);}throw invalidChar(read())},zero:function zero(){switch(c){case'.':buffer+=read();lexState='decimalPoint';return;case'e':case'E':buffer+=read();lexState='decimalExponent';return;case'x':case'X':buffer+=read();lexState='hexadecimal';return;}return newToken('numeric',_sign*0)},decimalInteger:function decimalInteger(){switch(c){case'.':buffer+=read();lexState='decimalPoint';return;case'e':case'E':buffer+=read();lexState='decimalExponent';return;}if(util.isDigit(c)){buffer+=read();return}return newToken('numeric',_sign*Number(buffer))},decimalPointLeading:function decimalPointLeading(){if(util.isDigit(c)){buffer+=read();lexState='decimalFraction';return}throw invalidChar(read())},decimalPoint:function decimalPoint(){switch(c){case'e':case'E':buffer+=read();lexState='decimalExponent';return;}if(util.isDigit(c)){buffer+=read();lexState='decimalFraction';return}return newToken('numeric',_sign*Number(buffer))},decimalFraction:function decimalFraction(){switch(c){case'e':case'E':buffer+=read();lexState='decimalExponent';return;}if(util.isDigit(c)){buffer+=read();return}return newToken('numeric',_sign*Number(buffer))},decimalExponent:function decimalExponent(){switch(c){case'+':case'-':buffer+=read();lexState='decimalExponentSign';return;}if(util.isDigit(c)){buffer+=read();lexState='decimalExponentInteger';return}throw invalidChar(read())},decimalExponentSign:function decimalExponentSign(){if(util.isDigit(c)){buffer+=read();lexState='decimalExponentInteger';return}throw invalidChar(read())},decimalExponentInteger:function decimalExponentInteger(){if(util.isDigit(c)){buffer+=read();return}return newToken('numeric',_sign*Number(buffer))},hexadecimal:function hexadecimal(){if(util.isHexDigit(c)){buffer+=read();lexState='hexadecimalInteger';return}throw invalidChar(read())},hexadecimalInteger:function hexadecimalInteger(){if(util.isHexDigit(c)){buffer+=read();return}return newToken('numeric',_sign*Number(buffer))},string:function string(){switch(c){case'\\':read();buffer+=escape();return;case'"':if(doubleQuote){read();return newToken('string',buffer)}buffer+=read();return;case'\'':if(!doubleQuote){read();return newToken('string',buffer)}buffer+=read();return;case'\n':case'\r':throw invalidChar(read());case'\u2028':case'\u2029':separatorChar(c);break;case undefined:throw invalidChar(read());}buffer+=read();},start:function start(){switch(c){case'{':case'[':return newToken('punctuator',read());}lexState='value';},beforePropertyName:function beforePropertyName(){switch(c){case'$':case'_':buffer=read();lexState='identifierName';return;case'\\':read();lexState='identifierNameStartEscape';return;case'}':return newToken('punctuator',read());case'"':case'\'':doubleQuote=read()==='"';lexState='string';return;}if(util.isIdStartChar(c)){buffer+=read();lexState='identifierName';return}throw invalidChar(read())},afterPropertyName:function afterPropertyName(){if(c===':'){return newToken('punctuator',read())}throw invalidChar(read())},beforePropertyValue:function beforePropertyValue(){lexState='value';},afterPropertyValue:function afterPropertyValue(){switch(c){case',':case'}':return newToken('punctuator',read());}throw invalidChar(read())},beforeArrayValue:function beforeArrayValue(){if(c===']'){return newToken('punctuator',read())}lexState='value';},afterArrayValue:function afterArrayValue(){switch(c){case',':case']':return newToken('punctuator',read());}throw invalidChar(read())},end:function end(){throw invalidChar(read())}};function newToken(type,value){return {type:type,value:value,line:line,column:column}}function literal(s){var _iteratorNormalCompletion=true;var _didIteratorError=false;var _iteratorError=undefined;try{for(var _iterator=s[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var _c=_step.value;var p=peek();if(p!==_c){throw invalidChar(read())}read();}}catch(err){_didIteratorError=true;_iteratorError=err;}finally{try{if(!_iteratorNormalCompletion&&_iterator.return){_iterator.return();}}finally{if(_didIteratorError){throw _iteratorError}}}}function escape(){var c=peek();switch(c){case'b':read();return '\b';case'f':read();return '\f';case'n':read();return '\n';case'r':read();return '\r';case't':read();return '\t';case'v':read();return '\x0B';case'0':read();if(util.isDigit(peek())){throw invalidChar(read())}return '\0';case'x':read();return hexEscape();case'u':read();return unicodeEscape();case'\n':case'\u2028':case'\u2029':read();return '';case'\r':read();if(peek()==='\n'){read();}return '';case'1':case'2':case'3':case'4':case'5':case'6':case'7':case'8':case'9':throw invalidChar(read());case undefined:throw invalidChar(read());}return read()}function hexEscape(){var buffer='';var c=peek();if(!util.isHexDigit(c)){throw invalidChar(read())}buffer+=read();c=peek();if(!util.isHexDigit(c)){throw invalidChar(read())}buffer+=read();return String.fromCodePoint(parseInt(buffer,16))}function unicodeEscape(){var buffer='';var count=4;while(count-->0){var _c2=peek();if(!util.isHexDigit(_c2)){throw invalidChar(read())}buffer+=read();}return String.fromCodePoint(parseInt(buffer,16))}var parseStates={start:function start(){if(token.type==='eof'){throw invalidEOF()}push();},beforePropertyName:function beforePropertyName(){switch(token.type){case'identifier':case'string':key=token.value;parseState='afterPropertyName';return;case'punctuator':pop();return;case'eof':throw invalidEOF();}},afterPropertyName:function afterPropertyName(){if(token.type==='eof'){throw invalidEOF()}parseState='beforePropertyValue';},beforePropertyValue:function beforePropertyValue(){if(token.type==='eof'){throw invalidEOF()}push();},beforeArrayValue:function beforeArrayValue(){if(token.type==='eof'){throw invalidEOF()}if(token.type==='punctuator'&&token.value===']'){pop();return}push();},afterPropertyValue:function afterPropertyValue(){if(token.type==='eof'){throw invalidEOF()}switch(token.value){case',':parseState='beforePropertyName';return;case'}':pop();}},afterArrayValue:function afterArrayValue(){if(token.type==='eof'){throw invalidEOF()}switch(token.value){case',':parseState='beforeArrayValue';return;case']':pop();}},end:function end(){}};function push(){var value=void 0;switch(token.type){case'punctuator':switch(token.value){case'{':value={};break;case'[':value=[];break;}break;case'null':case'boolean':case'numeric':case'string':value=token.value;break;}if(root===undefined){root=value;}else {var parent=stack[stack.length-1];if(Array.isArray(parent)){parent.push(value);}else {parent[key]=value;}}if(value!==null&&(typeof value==='undefined'?'undefined':_typeof(value))==='object'){stack.push(value);if(Array.isArray(value)){parseState='beforeArrayValue';}else {parseState='beforePropertyName';}}else {var current=stack[stack.length-1];if(current==null){parseState='end';}else if(Array.isArray(current)){parseState='afterArrayValue';}else {parseState='afterPropertyValue';}}}function pop(){stack.pop();var current=stack[stack.length-1];if(current==null){parseState='end';}else if(Array.isArray(current)){parseState='afterArrayValue';}else {parseState='afterPropertyValue';}}function invalidChar(c){if(c===undefined){return syntaxError('JSON5: invalid end of input at '+line+':'+column)}return syntaxError('JSON5: invalid character \''+formatChar(c)+'\' at '+line+':'+column)}function invalidEOF(){return syntaxError('JSON5: invalid end of input at '+line+':'+column)}function invalidIdentifier(){column-=5;return syntaxError('JSON5: invalid identifier character at '+line+':'+column)}function separatorChar(c){console.warn('JSON5: \''+c+'\' is not valid ECMAScript; consider escaping');}function formatChar(c){var replacements={'\'':'\\\'','"':'\\"','\\':'\\\\','\b':'\\b','\f':'\\f','\n':'\\n','\r':'\\r','\t':'\\t','\x0B':'\\v','\0':'\\0','\u2028':'\\u2028','\u2029':'\\u2029'};if(replacements[c]){return replacements[c]}if(c<' '){var hexString=c.charCodeAt(0).toString(16);return '\\x'+('00'+hexString).substring(hexString.length)}return c}function syntaxError(message){var err=new SyntaxError(message);err.lineNumber=line;err.columnNumber=column;return err}module.exports=exports['default'];
  571. }(parse, parse.exports));
  572. var stringify = {exports: {}};
  573. (function (module, exports) {
  574. Object.defineProperty(exports,'__esModule',{value:true});var _typeof=typeof Symbol==='function'&&typeof Symbol.iterator==='symbol'?function(obj){return typeof obj}:function(obj){return obj&&typeof Symbol==='function'&&obj.constructor===Symbol&&obj!==Symbol.prototype?'symbol':typeof obj};exports.default=stringify;var _util=util$1;var util=_interopRequireWildcard(_util);function _interopRequireWildcard(obj){if(obj&&obj.__esModule){return obj}else {var newObj={};if(obj!=null){for(var key in obj){if(Object.prototype.hasOwnProperty.call(obj,key))newObj[key]=obj[key];}}newObj.default=obj;return newObj}}function stringify(value,replacer,space){var stack=[];var indent='';var propertyList=void 0;var replacerFunc=void 0;var gap='';var quote=void 0;if(replacer!=null&&(typeof replacer==='undefined'?'undefined':_typeof(replacer))==='object'&&!Array.isArray(replacer)){space=replacer.space;quote=replacer.quote;replacer=replacer.replacer;}if(typeof replacer==='function'){replacerFunc=replacer;}else if(Array.isArray(replacer)){propertyList=[];var _iteratorNormalCompletion=true;var _didIteratorError=false;var _iteratorError=undefined;try{for(var _iterator=replacer[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var v=_step.value;var item=void 0;if(typeof v==='string'){item=v;}else if(typeof v==='number'||v instanceof String||v instanceof Number){item=String(v);}if(item!==undefined&&propertyList.indexOf(item)<0){propertyList.push(item);}}}catch(err){_didIteratorError=true;_iteratorError=err;}finally{try{if(!_iteratorNormalCompletion&&_iterator.return){_iterator.return();}}finally{if(_didIteratorError){throw _iteratorError}}}}if(space instanceof Number){space=Number(space);}else if(space instanceof String){space=String(space);}if(typeof space==='number'){if(space>0){space=Math.min(10,Math.floor(space));gap=' '.substr(0,space);}}else if(typeof space==='string'){gap=space.substr(0,10);}return serializeProperty('',{'':value});function serializeProperty(key,holder){var value=holder[key];if(value!=null){if(typeof value.toJSON5==='function'){value=value.toJSON5(key);}else if(typeof value.toJSON==='function'){value=value.toJSON(key);}}if(replacerFunc){value=replacerFunc.call(holder,key,value);}if(value instanceof Number){value=Number(value);}else if(value instanceof String){value=String(value);}else if(value instanceof Boolean){value=value.valueOf();}switch(value){case null:return 'null';case true:return 'true';case false:return 'false';}if(typeof value==='string'){return quoteString(value)}if(typeof value==='number'){return String(value)}if((typeof value==='undefined'?'undefined':_typeof(value))==='object'){return Array.isArray(value)?serializeArray(value):serializeObject(value)}return undefined}function quoteString(value){var quotes={'\'':0.1,'"':0.2};var replacements={'\'':'\\\'','"':'\\"','\\':'\\\\','\b':'\\b','\f':'\\f','\n':'\\n','\r':'\\r','\t':'\\t','\x0B':'\\v','\0':'\\0','\u2028':'\\u2028','\u2029':'\\u2029'};var product='';var _iteratorNormalCompletion2=true;var _didIteratorError2=false;var _iteratorError2=undefined;try{for(var _iterator2=value[Symbol.iterator](),_step2;!(_iteratorNormalCompletion2=(_step2=_iterator2.next()).done);_iteratorNormalCompletion2=true){var c=_step2.value;switch(c){case'\'':case'"':quotes[c]++;product+=c;continue;}if(replacements[c]){product+=replacements[c];continue}if(c<' '){var hexString=c.charCodeAt(0).toString(16);product+='\\x'+('00'+hexString).substring(hexString.length);continue}product+=c;}}catch(err){_didIteratorError2=true;_iteratorError2=err;}finally{try{if(!_iteratorNormalCompletion2&&_iterator2.return){_iterator2.return();}}finally{if(_didIteratorError2){throw _iteratorError2}}}var quoteChar=quote||Object.keys(quotes).reduce(function(a,b){return quotes[a]<quotes[b]?a:b});product=product.replace(new RegExp(quoteChar,'g'),replacements[quoteChar]);return quoteChar+product+quoteChar}function serializeObject(value){if(stack.indexOf(value)>=0){throw TypeError('Converting circular structure to JSON5')}stack.push(value);var stepback=indent;indent=indent+gap;var keys=propertyList||Object.keys(value);var partial=[];var _iteratorNormalCompletion3=true;var _didIteratorError3=false;var _iteratorError3=undefined;try{for(var _iterator3=keys[Symbol.iterator](),_step3;!(_iteratorNormalCompletion3=(_step3=_iterator3.next()).done);_iteratorNormalCompletion3=true){var key=_step3.value;var propertyString=serializeProperty(key,value);if(propertyString!==undefined){var member=serializeKey(key)+':';if(gap!==''){member+=' ';}member+=propertyString;partial.push(member);}}}catch(err){_didIteratorError3=true;_iteratorError3=err;}finally{try{if(!_iteratorNormalCompletion3&&_iterator3.return){_iterator3.return();}}finally{if(_didIteratorError3){throw _iteratorError3}}}var final=void 0;if(partial.length===0){final='{}';}else {var properties=void 0;if(gap===''){properties=partial.join(',');final='{'+properties+'}';}else {var separator=',\n'+indent;properties=partial.join(separator);final='{\n'+indent+properties+',\n'+stepback+'}';}}stack.pop();indent=stepback;return final}function serializeKey(key){if(key.length===0){return quoteString(key)}var firstChar=String.fromCodePoint(key.codePointAt(0));if(!util.isIdStartChar(firstChar)){return quoteString(key)}for(var i=firstChar.length;i<key.length;i++){if(!util.isIdContinueChar(String.fromCodePoint(key.codePointAt(i)))){return quoteString(key)}}return key}function serializeArray(value){if(stack.indexOf(value)>=0){throw TypeError('Converting circular structure to JSON5')}stack.push(value);var stepback=indent;indent=indent+gap;var partial=[];for(var i=0;i<value.length;i++){var propertyString=serializeProperty(String(i),value);partial.push(propertyString!==undefined?propertyString:'null');}var final=void 0;if(partial.length===0){final='[]';}else {if(gap===''){var properties=partial.join(',');final='['+properties+']';}else {var separator=',\n'+indent;var _properties=partial.join(separator);final='[\n'+indent+_properties+',\n'+stepback+']';}}stack.pop();indent=stepback;return final}}module.exports=exports['default'];
  575. }(stringify, stringify.exports));
  576. (function (module, exports) {
  577. Object.defineProperty(exports,'__esModule',{value:true});var _parse=parse.exports;var _parse2=_interopRequireDefault(_parse);var _stringify=stringify.exports;var _stringify2=_interopRequireDefault(_stringify);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}exports.default={parse:_parse2.default,stringify:_stringify2.default};module.exports=exports['default'];
  578. }(lib$1, lib$1.exports));
  579. const JSON5 = lib$1.exports;
  580. const specialValues = {
  581. null: null,
  582. true: true,
  583. false: false,
  584. };
  585. function parseQuery$2(query) {
  586. if (query.substr(0, 1) !== '?') {
  587. throw new Error(
  588. "A valid query string passed to parseQuery should begin with '?'"
  589. );
  590. }
  591. query = query.substr(1);
  592. if (!query) {
  593. return {};
  594. }
  595. if (query.substr(0, 1) === '{' && query.substr(-1) === '}') {
  596. return JSON5.parse(query);
  597. }
  598. const queryArgs = query.split(/[,&]/g);
  599. const result = {};
  600. queryArgs.forEach((arg) => {
  601. const idx = arg.indexOf('=');
  602. if (idx >= 0) {
  603. let name = arg.substr(0, idx);
  604. let value = decodeURIComponent(arg.substr(idx + 1));
  605. if (specialValues.hasOwnProperty(value)) {
  606. value = specialValues[value];
  607. }
  608. if (name.substr(-2) === '[]') {
  609. name = decodeURIComponent(name.substr(0, name.length - 2));
  610. if (!Array.isArray(result[name])) {
  611. result[name] = [];
  612. }
  613. result[name].push(value);
  614. } else {
  615. name = decodeURIComponent(name);
  616. result[name] = value;
  617. }
  618. } else {
  619. if (arg.substr(0, 1) === '-') {
  620. result[decodeURIComponent(arg.substr(1))] = false;
  621. } else if (arg.substr(0, 1) === '+') {
  622. result[decodeURIComponent(arg.substr(1))] = true;
  623. } else {
  624. result[decodeURIComponent(arg)] = true;
  625. }
  626. }
  627. });
  628. return result;
  629. }
  630. var parseQuery_1 = parseQuery$2;
  631. const parseQuery$1 = parseQuery_1;
  632. function getOptions$1(loaderContext) {
  633. const query = loaderContext.query;
  634. if (typeof query === 'string' && query !== '') {
  635. return parseQuery$1(loaderContext.query);
  636. }
  637. if (!query || typeof query !== 'object') {
  638. // Not object-like queries are not supported.
  639. return null;
  640. }
  641. return query;
  642. }
  643. var getOptions_1 = getOptions$1;
  644. const path$3 = path__default;
  645. const matchRelativePath = /^\.\.?[/\\]/;
  646. function isAbsolutePath(str) {
  647. return path$3.posix.isAbsolute(str) || path$3.win32.isAbsolute(str);
  648. }
  649. function isRelativePath(str) {
  650. return matchRelativePath.test(str);
  651. }
  652. function stringifyRequest$1(loaderContext, request) {
  653. const splitted = request.split('!');
  654. const context =
  655. loaderContext.context ||
  656. (loaderContext.options && loaderContext.options.context);
  657. return JSON.stringify(
  658. splitted
  659. .map((part) => {
  660. // First, separate singlePath from query, because the query might contain paths again
  661. const splittedPart = part.match(/^(.*?)(\?.*)/);
  662. const query = splittedPart ? splittedPart[2] : '';
  663. let singlePath = splittedPart ? splittedPart[1] : part;
  664. if (isAbsolutePath(singlePath) && context) {
  665. singlePath = path$3.relative(context, singlePath);
  666. if (isAbsolutePath(singlePath)) {
  667. // If singlePath still matches an absolute path, singlePath was on a different drive than context.
  668. // In this case, we leave the path platform-specific without replacing any separators.
  669. // @see https://github.com/webpack/loader-utils/pull/14
  670. return singlePath + query;
  671. }
  672. if (isRelativePath(singlePath) === false) {
  673. // Ensure that the relative path starts at least with ./ otherwise it would be a request into the modules directory (like node_modules).
  674. singlePath = './' + singlePath;
  675. }
  676. }
  677. return singlePath.replace(/\\/g, '/') + query;
  678. })
  679. .join('!')
  680. );
  681. }
  682. var stringifyRequest_1 = stringifyRequest$1;
  683. function getRemainingRequest$1(loaderContext) {
  684. if (loaderContext.remainingRequest) {
  685. return loaderContext.remainingRequest;
  686. }
  687. const request = loaderContext.loaders
  688. .slice(loaderContext.loaderIndex + 1)
  689. .map((obj) => obj.request)
  690. .concat([loaderContext.resource]);
  691. return request.join('!');
  692. }
  693. var getRemainingRequest_1 = getRemainingRequest$1;
  694. function getCurrentRequest$1(loaderContext) {
  695. if (loaderContext.currentRequest) {
  696. return loaderContext.currentRequest;
  697. }
  698. const request = loaderContext.loaders
  699. .slice(loaderContext.loaderIndex)
  700. .map((obj) => obj.request)
  701. .concat([loaderContext.resource]);
  702. return request.join('!');
  703. }
  704. var getCurrentRequest_1 = getCurrentRequest$1;
  705. const path$2 = path__default;
  706. function isUrlRequest$1(url, root) {
  707. // An URL is not an request if
  708. // 1. It's an absolute url and it is not `windows` path like `C:\dir\file`
  709. if (/^[a-z][a-z0-9+.-]*:/i.test(url) && !path$2.win32.isAbsolute(url)) {
  710. return false;
  711. }
  712. // 2. It's a protocol-relative
  713. if (/^\/\//.test(url)) {
  714. return false;
  715. }
  716. // 3. It's some kind of url for a template
  717. if (/^[{}[\]#*;,'§$%&(=?`´^°<>]/.test(url)) {
  718. return false;
  719. }
  720. // 4. It's also not an request if root isn't set and it's a root-relative url
  721. if ((root === undefined || root === false) && /^\//.test(url)) {
  722. return false;
  723. }
  724. return true;
  725. }
  726. var isUrlRequest_1 = isUrlRequest$1;
  727. // we can't use path.win32.isAbsolute because it also matches paths starting with a forward slash
  728. const matchNativeWin32Path = /^[A-Z]:[/\\]|^\\\\/i;
  729. function urlToRequest$1(url, root) {
  730. // Do not rewrite an empty url
  731. if (url === '') {
  732. return '';
  733. }
  734. const moduleRequestRegex = /^[^?]*~/;
  735. let request;
  736. if (matchNativeWin32Path.test(url)) {
  737. // absolute windows path, keep it
  738. request = url;
  739. } else if (root !== undefined && root !== false && /^\//.test(url)) {
  740. // if root is set and the url is root-relative
  741. switch (typeof root) {
  742. // 1. root is a string: root is prefixed to the url
  743. case 'string':
  744. // special case: `~` roots convert to module request
  745. if (moduleRequestRegex.test(root)) {
  746. request = root.replace(/([^~/])$/, '$1/') + url.slice(1);
  747. } else {
  748. request = root + url;
  749. }
  750. break;
  751. // 2. root is `true`: absolute paths are allowed
  752. // *nix only, windows-style absolute paths are always allowed as they doesn't start with a `/`
  753. case 'boolean':
  754. request = url;
  755. break;
  756. default:
  757. throw new Error(
  758. "Unexpected parameters to loader-utils 'urlToRequest': url = " +
  759. url +
  760. ', root = ' +
  761. root +
  762. '.'
  763. );
  764. }
  765. } else if (/^\.\.?\//.test(url)) {
  766. // A relative url stays
  767. request = url;
  768. } else {
  769. // every other url is threaded like a relative url
  770. request = './' + url;
  771. }
  772. // A `~` makes the url an module
  773. if (moduleRequestRegex.test(request)) {
  774. request = request.replace(moduleRequestRegex, '');
  775. }
  776. return request;
  777. }
  778. var urlToRequest_1 = urlToRequest$1;
  779. function parseString$1(str) {
  780. try {
  781. if (str[0] === '"') {
  782. return JSON.parse(str);
  783. }
  784. if (str[0] === "'" && str.substr(str.length - 1) === "'") {
  785. return parseString$1(
  786. str
  787. .replace(/\\.|"/g, (x) => (x === '"' ? '\\"' : x))
  788. .replace(/^'|'$/g, '"')
  789. );
  790. }
  791. return JSON.parse('"' + str + '"');
  792. } catch (e) {
  793. return str;
  794. }
  795. }
  796. var parseString_1 = parseString$1;
  797. var big = {exports: {}};
  798. /*
  799. * big.js v5.2.2
  800. * A small, fast, easy-to-use library for arbitrary-precision decimal arithmetic.
  801. * Copyright (c) 2018 Michael Mclaughlin <M8ch88l@gmail.com>
  802. * https://github.com/MikeMcl/big.js/LICENCE
  803. */
  804. (function (module) {
  805. (function (GLOBAL) {
  806. var Big,
  807. /************************************** EDITABLE DEFAULTS *****************************************/
  808. // The default values below must be integers within the stated ranges.
  809. /*
  810. * The maximum number of decimal places (DP) of the results of operations involving division:
  811. * div and sqrt, and pow with negative exponents.
  812. */
  813. DP = 20, // 0 to MAX_DP
  814. /*
  815. * The rounding mode (RM) used when rounding to the above decimal places.
  816. *
  817. * 0 Towards zero (i.e. truncate, no rounding). (ROUND_DOWN)
  818. * 1 To nearest neighbour. If equidistant, round up. (ROUND_HALF_UP)
  819. * 2 To nearest neighbour. If equidistant, to even. (ROUND_HALF_EVEN)
  820. * 3 Away from zero. (ROUND_UP)
  821. */
  822. RM = 1, // 0, 1, 2 or 3
  823. // The maximum value of DP and Big.DP.
  824. MAX_DP = 1E6, // 0 to 1000000
  825. // The maximum magnitude of the exponent argument to the pow method.
  826. MAX_POWER = 1E6, // 1 to 1000000
  827. /*
  828. * The negative exponent (NE) at and beneath which toString returns exponential notation.
  829. * (JavaScript numbers: -7)
  830. * -1000000 is the minimum recommended exponent value of a Big.
  831. */
  832. NE = -7, // 0 to -1000000
  833. /*
  834. * The positive exponent (PE) at and above which toString returns exponential notation.
  835. * (JavaScript numbers: 21)
  836. * 1000000 is the maximum recommended exponent value of a Big.
  837. * (This limit is not enforced or checked.)
  838. */
  839. PE = 21, // 0 to 1000000
  840. /**************************************************************************************************/
  841. // Error messages.
  842. NAME = '[big.js] ',
  843. INVALID = NAME + 'Invalid ',
  844. INVALID_DP = INVALID + 'decimal places',
  845. INVALID_RM = INVALID + 'rounding mode',
  846. DIV_BY_ZERO = NAME + 'Division by zero',
  847. // The shared prototype object.
  848. P = {},
  849. UNDEFINED = void 0,
  850. NUMERIC = /^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;
  851. /*
  852. * Create and return a Big constructor.
  853. *
  854. */
  855. function _Big_() {
  856. /*
  857. * The Big constructor and exported function.
  858. * Create and return a new instance of a Big number object.
  859. *
  860. * n {number|string|Big} A numeric value.
  861. */
  862. function Big(n) {
  863. var x = this;
  864. // Enable constructor usage without new.
  865. if (!(x instanceof Big)) return n === UNDEFINED ? _Big_() : new Big(n);
  866. // Duplicate.
  867. if (n instanceof Big) {
  868. x.s = n.s;
  869. x.e = n.e;
  870. x.c = n.c.slice();
  871. } else {
  872. parse(x, n);
  873. }
  874. /*
  875. * Retain a reference to this Big constructor, and shadow Big.prototype.constructor which
  876. * points to Object.
  877. */
  878. x.constructor = Big;
  879. }
  880. Big.prototype = P;
  881. Big.DP = DP;
  882. Big.RM = RM;
  883. Big.NE = NE;
  884. Big.PE = PE;
  885. Big.version = '5.2.2';
  886. return Big;
  887. }
  888. /*
  889. * Parse the number or string value passed to a Big constructor.
  890. *
  891. * x {Big} A Big number instance.
  892. * n {number|string} A numeric value.
  893. */
  894. function parse(x, n) {
  895. var e, i, nl;
  896. // Minus zero?
  897. if (n === 0 && 1 / n < 0) n = '-0';
  898. else if (!NUMERIC.test(n += '')) throw Error(INVALID + 'number');
  899. // Determine sign.
  900. x.s = n.charAt(0) == '-' ? (n = n.slice(1), -1) : 1;
  901. // Decimal point?
  902. if ((e = n.indexOf('.')) > -1) n = n.replace('.', '');
  903. // Exponential form?
  904. if ((i = n.search(/e/i)) > 0) {
  905. // Determine exponent.
  906. if (e < 0) e = i;
  907. e += +n.slice(i + 1);
  908. n = n.substring(0, i);
  909. } else if (e < 0) {
  910. // Integer.
  911. e = n.length;
  912. }
  913. nl = n.length;
  914. // Determine leading zeros.
  915. for (i = 0; i < nl && n.charAt(i) == '0';) ++i;
  916. if (i == nl) {
  917. // Zero.
  918. x.c = [x.e = 0];
  919. } else {
  920. // Determine trailing zeros.
  921. for (; nl > 0 && n.charAt(--nl) == '0';);
  922. x.e = e - i - 1;
  923. x.c = [];
  924. // Convert string to array of digits without leading/trailing zeros.
  925. for (e = 0; i <= nl;) x.c[e++] = +n.charAt(i++);
  926. }
  927. return x;
  928. }
  929. /*
  930. * Round Big x to a maximum of dp decimal places using rounding mode rm.
  931. * Called by stringify, P.div, P.round and P.sqrt.
  932. *
  933. * x {Big} The Big to round.
  934. * dp {number} Integer, 0 to MAX_DP inclusive.
  935. * rm {number} 0, 1, 2 or 3 (DOWN, HALF_UP, HALF_EVEN, UP)
  936. * [more] {boolean} Whether the result of division was truncated.
  937. */
  938. function round(x, dp, rm, more) {
  939. var xc = x.c,
  940. i = x.e + dp + 1;
  941. if (i < xc.length) {
  942. if (rm === 1) {
  943. // xc[i] is the digit after the digit that may be rounded up.
  944. more = xc[i] >= 5;
  945. } else if (rm === 2) {
  946. more = xc[i] > 5 || xc[i] == 5 &&
  947. (more || i < 0 || xc[i + 1] !== UNDEFINED || xc[i - 1] & 1);
  948. } else if (rm === 3) {
  949. more = more || !!xc[0];
  950. } else {
  951. more = false;
  952. if (rm !== 0) throw Error(INVALID_RM);
  953. }
  954. if (i < 1) {
  955. xc.length = 1;
  956. if (more) {
  957. // 1, 0.1, 0.01, 0.001, 0.0001 etc.
  958. x.e = -dp;
  959. xc[0] = 1;
  960. } else {
  961. // Zero.
  962. xc[0] = x.e = 0;
  963. }
  964. } else {
  965. // Remove any digits after the required decimal places.
  966. xc.length = i--;
  967. // Round up?
  968. if (more) {
  969. // Rounding up may mean the previous digit has to be rounded up.
  970. for (; ++xc[i] > 9;) {
  971. xc[i] = 0;
  972. if (!i--) {
  973. ++x.e;
  974. xc.unshift(1);
  975. }
  976. }
  977. }
  978. // Remove trailing zeros.
  979. for (i = xc.length; !xc[--i];) xc.pop();
  980. }
  981. } else if (rm < 0 || rm > 3 || rm !== ~~rm) {
  982. throw Error(INVALID_RM);
  983. }
  984. return x;
  985. }
  986. /*
  987. * Return a string representing the value of Big x in normal or exponential notation.
  988. * Handles P.toExponential, P.toFixed, P.toJSON, P.toPrecision, P.toString and P.valueOf.
  989. *
  990. * x {Big}
  991. * id? {number} Caller id.
  992. * 1 toExponential
  993. * 2 toFixed
  994. * 3 toPrecision
  995. * 4 valueOf
  996. * n? {number|undefined} Caller's argument.
  997. * k? {number|undefined}
  998. */
  999. function stringify(x, id, n, k) {
  1000. var e, s,
  1001. Big = x.constructor,
  1002. z = !x.c[0];
  1003. if (n !== UNDEFINED) {
  1004. if (n !== ~~n || n < (id == 3) || n > MAX_DP) {
  1005. throw Error(id == 3 ? INVALID + 'precision' : INVALID_DP);
  1006. }
  1007. x = new Big(x);
  1008. // The index of the digit that may be rounded up.
  1009. n = k - x.e;
  1010. // Round?
  1011. if (x.c.length > ++k) round(x, n, Big.RM);
  1012. // toFixed: recalculate k as x.e may have changed if value rounded up.
  1013. if (id == 2) k = x.e + n + 1;
  1014. // Append zeros?
  1015. for (; x.c.length < k;) x.c.push(0);
  1016. }
  1017. e = x.e;
  1018. s = x.c.join('');
  1019. n = s.length;
  1020. // Exponential notation?
  1021. if (id != 2 && (id == 1 || id == 3 && k <= e || e <= Big.NE || e >= Big.PE)) {
  1022. s = s.charAt(0) + (n > 1 ? '.' + s.slice(1) : '') + (e < 0 ? 'e' : 'e+') + e;
  1023. // Normal notation.
  1024. } else if (e < 0) {
  1025. for (; ++e;) s = '0' + s;
  1026. s = '0.' + s;
  1027. } else if (e > 0) {
  1028. if (++e > n) for (e -= n; e--;) s += '0';
  1029. else if (e < n) s = s.slice(0, e) + '.' + s.slice(e);
  1030. } else if (n > 1) {
  1031. s = s.charAt(0) + '.' + s.slice(1);
  1032. }
  1033. return x.s < 0 && (!z || id == 4) ? '-' + s : s;
  1034. }
  1035. // Prototype/instance methods
  1036. /*
  1037. * Return a new Big whose value is the absolute value of this Big.
  1038. */
  1039. P.abs = function () {
  1040. var x = new this.constructor(this);
  1041. x.s = 1;
  1042. return x;
  1043. };
  1044. /*
  1045. * Return 1 if the value of this Big is greater than the value of Big y,
  1046. * -1 if the value of this Big is less than the value of Big y, or
  1047. * 0 if they have the same value.
  1048. */
  1049. P.cmp = function (y) {
  1050. var isneg,
  1051. x = this,
  1052. xc = x.c,
  1053. yc = (y = new x.constructor(y)).c,
  1054. i = x.s,
  1055. j = y.s,
  1056. k = x.e,
  1057. l = y.e;
  1058. // Either zero?
  1059. if (!xc[0] || !yc[0]) return !xc[0] ? !yc[0] ? 0 : -j : i;
  1060. // Signs differ?
  1061. if (i != j) return i;
  1062. isneg = i < 0;
  1063. // Compare exponents.
  1064. if (k != l) return k > l ^ isneg ? 1 : -1;
  1065. j = (k = xc.length) < (l = yc.length) ? k : l;
  1066. // Compare digit by digit.
  1067. for (i = -1; ++i < j;) {
  1068. if (xc[i] != yc[i]) return xc[i] > yc[i] ^ isneg ? 1 : -1;
  1069. }
  1070. // Compare lengths.
  1071. return k == l ? 0 : k > l ^ isneg ? 1 : -1;
  1072. };
  1073. /*
  1074. * Return a new Big whose value is the value of this Big divided by the value of Big y, rounded,
  1075. * if necessary, to a maximum of Big.DP decimal places using rounding mode Big.RM.
  1076. */
  1077. P.div = function (y) {
  1078. var x = this,
  1079. Big = x.constructor,
  1080. a = x.c, // dividend
  1081. b = (y = new Big(y)).c, // divisor
  1082. k = x.s == y.s ? 1 : -1,
  1083. dp = Big.DP;
  1084. if (dp !== ~~dp || dp < 0 || dp > MAX_DP) throw Error(INVALID_DP);
  1085. // Divisor is zero?
  1086. if (!b[0]) throw Error(DIV_BY_ZERO);
  1087. // Dividend is 0? Return +-0.
  1088. if (!a[0]) return new Big(k * 0);
  1089. var bl, bt, n, cmp, ri,
  1090. bz = b.slice(),
  1091. ai = bl = b.length,
  1092. al = a.length,
  1093. r = a.slice(0, bl), // remainder
  1094. rl = r.length,
  1095. q = y, // quotient
  1096. qc = q.c = [],
  1097. qi = 0,
  1098. d = dp + (q.e = x.e - y.e) + 1; // number of digits of the result
  1099. q.s = k;
  1100. k = d < 0 ? 0 : d;
  1101. // Create version of divisor with leading zero.
  1102. bz.unshift(0);
  1103. // Add zeros to make remainder as long as divisor.
  1104. for (; rl++ < bl;) r.push(0);
  1105. do {
  1106. // n is how many times the divisor goes into current remainder.
  1107. for (n = 0; n < 10; n++) {
  1108. // Compare divisor and remainder.
  1109. if (bl != (rl = r.length)) {
  1110. cmp = bl > rl ? 1 : -1;
  1111. } else {
  1112. for (ri = -1, cmp = 0; ++ri < bl;) {
  1113. if (b[ri] != r[ri]) {
  1114. cmp = b[ri] > r[ri] ? 1 : -1;
  1115. break;
  1116. }
  1117. }
  1118. }
  1119. // If divisor < remainder, subtract divisor from remainder.
  1120. if (cmp < 0) {
  1121. // Remainder can't be more than 1 digit longer than divisor.
  1122. // Equalise lengths using divisor with extra leading zero?
  1123. for (bt = rl == bl ? b : bz; rl;) {
  1124. if (r[--rl] < bt[rl]) {
  1125. ri = rl;
  1126. for (; ri && !r[--ri];) r[ri] = 9;
  1127. --r[ri];
  1128. r[rl] += 10;
  1129. }
  1130. r[rl] -= bt[rl];
  1131. }
  1132. for (; !r[0];) r.shift();
  1133. } else {
  1134. break;
  1135. }
  1136. }
  1137. // Add the digit n to the result array.
  1138. qc[qi++] = cmp ? n : ++n;
  1139. // Update the remainder.
  1140. if (r[0] && cmp) r[rl] = a[ai] || 0;
  1141. else r = [a[ai]];
  1142. } while ((ai++ < al || r[0] !== UNDEFINED) && k--);
  1143. // Leading zero? Do not remove if result is simply zero (qi == 1).
  1144. if (!qc[0] && qi != 1) {
  1145. // There can't be more than one zero.
  1146. qc.shift();
  1147. q.e--;
  1148. }
  1149. // Round?
  1150. if (qi > d) round(q, dp, Big.RM, r[0] !== UNDEFINED);
  1151. return q;
  1152. };
  1153. /*
  1154. * Return true if the value of this Big is equal to the value of Big y, otherwise return false.
  1155. */
  1156. P.eq = function (y) {
  1157. return !this.cmp(y);
  1158. };
  1159. /*
  1160. * Return true if the value of this Big is greater than the value of Big y, otherwise return
  1161. * false.
  1162. */
  1163. P.gt = function (y) {
  1164. return this.cmp(y) > 0;
  1165. };
  1166. /*
  1167. * Return true if the value of this Big is greater than or equal to the value of Big y, otherwise
  1168. * return false.
  1169. */
  1170. P.gte = function (y) {
  1171. return this.cmp(y) > -1;
  1172. };
  1173. /*
  1174. * Return true if the value of this Big is less than the value of Big y, otherwise return false.
  1175. */
  1176. P.lt = function (y) {
  1177. return this.cmp(y) < 0;
  1178. };
  1179. /*
  1180. * Return true if the value of this Big is less than or equal to the value of Big y, otherwise
  1181. * return false.
  1182. */
  1183. P.lte = function (y) {
  1184. return this.cmp(y) < 1;
  1185. };
  1186. /*
  1187. * Return a new Big whose value is the value of this Big minus the value of Big y.
  1188. */
  1189. P.minus = P.sub = function (y) {
  1190. var i, j, t, xlty,
  1191. x = this,
  1192. Big = x.constructor,
  1193. a = x.s,
  1194. b = (y = new Big(y)).s;
  1195. // Signs differ?
  1196. if (a != b) {
  1197. y.s = -b;
  1198. return x.plus(y);
  1199. }
  1200. var xc = x.c.slice(),
  1201. xe = x.e,
  1202. yc = y.c,
  1203. ye = y.e;
  1204. // Either zero?
  1205. if (!xc[0] || !yc[0]) {
  1206. // y is non-zero? x is non-zero? Or both are zero.
  1207. return yc[0] ? (y.s = -b, y) : new Big(xc[0] ? x : 0);
  1208. }
  1209. // Determine which is the bigger number. Prepend zeros to equalise exponents.
  1210. if (a = xe - ye) {
  1211. if (xlty = a < 0) {
  1212. a = -a;
  1213. t = xc;
  1214. } else {
  1215. ye = xe;
  1216. t = yc;
  1217. }
  1218. t.reverse();
  1219. for (b = a; b--;) t.push(0);
  1220. t.reverse();
  1221. } else {
  1222. // Exponents equal. Check digit by digit.
  1223. j = ((xlty = xc.length < yc.length) ? xc : yc).length;
  1224. for (a = b = 0; b < j; b++) {
  1225. if (xc[b] != yc[b]) {
  1226. xlty = xc[b] < yc[b];
  1227. break;
  1228. }
  1229. }
  1230. }
  1231. // x < y? Point xc to the array of the bigger number.
  1232. if (xlty) {
  1233. t = xc;
  1234. xc = yc;
  1235. yc = t;
  1236. y.s = -y.s;
  1237. }
  1238. /*
  1239. * Append zeros to xc if shorter. No need to add zeros to yc if shorter as subtraction only
  1240. * needs to start at yc.length.
  1241. */
  1242. if ((b = (j = yc.length) - (i = xc.length)) > 0) for (; b--;) xc[i++] = 0;
  1243. // Subtract yc from xc.
  1244. for (b = i; j > a;) {
  1245. if (xc[--j] < yc[j]) {
  1246. for (i = j; i && !xc[--i];) xc[i] = 9;
  1247. --xc[i];
  1248. xc[j] += 10;
  1249. }
  1250. xc[j] -= yc[j];
  1251. }
  1252. // Remove trailing zeros.
  1253. for (; xc[--b] === 0;) xc.pop();
  1254. // Remove leading zeros and adjust exponent accordingly.
  1255. for (; xc[0] === 0;) {
  1256. xc.shift();
  1257. --ye;
  1258. }
  1259. if (!xc[0]) {
  1260. // n - n = +0
  1261. y.s = 1;
  1262. // Result must be zero.
  1263. xc = [ye = 0];
  1264. }
  1265. y.c = xc;
  1266. y.e = ye;
  1267. return y;
  1268. };
  1269. /*
  1270. * Return a new Big whose value is the value of this Big modulo the value of Big y.
  1271. */
  1272. P.mod = function (y) {
  1273. var ygtx,
  1274. x = this,
  1275. Big = x.constructor,
  1276. a = x.s,
  1277. b = (y = new Big(y)).s;
  1278. if (!y.c[0]) throw Error(DIV_BY_ZERO);
  1279. x.s = y.s = 1;
  1280. ygtx = y.cmp(x) == 1;
  1281. x.s = a;
  1282. y.s = b;
  1283. if (ygtx) return new Big(x);
  1284. a = Big.DP;
  1285. b = Big.RM;
  1286. Big.DP = Big.RM = 0;
  1287. x = x.div(y);
  1288. Big.DP = a;
  1289. Big.RM = b;
  1290. return this.minus(x.times(y));
  1291. };
  1292. /*
  1293. * Return a new Big whose value is the value of this Big plus the value of Big y.
  1294. */
  1295. P.plus = P.add = function (y) {
  1296. var t,
  1297. x = this,
  1298. Big = x.constructor,
  1299. a = x.s,
  1300. b = (y = new Big(y)).s;
  1301. // Signs differ?
  1302. if (a != b) {
  1303. y.s = -b;
  1304. return x.minus(y);
  1305. }
  1306. var xe = x.e,
  1307. xc = x.c,
  1308. ye = y.e,
  1309. yc = y.c;
  1310. // Either zero? y is non-zero? x is non-zero? Or both are zero.
  1311. if (!xc[0] || !yc[0]) return yc[0] ? y : new Big(xc[0] ? x : a * 0);
  1312. xc = xc.slice();
  1313. // Prepend zeros to equalise exponents.
  1314. // Note: reverse faster than unshifts.
  1315. if (a = xe - ye) {
  1316. if (a > 0) {
  1317. ye = xe;
  1318. t = yc;
  1319. } else {
  1320. a = -a;
  1321. t = xc;
  1322. }
  1323. t.reverse();
  1324. for (; a--;) t.push(0);
  1325. t.reverse();
  1326. }
  1327. // Point xc to the longer array.
  1328. if (xc.length - yc.length < 0) {
  1329. t = yc;
  1330. yc = xc;
  1331. xc = t;
  1332. }
  1333. a = yc.length;
  1334. // Only start adding at yc.length - 1 as the further digits of xc can be left as they are.
  1335. for (b = 0; a; xc[a] %= 10) b = (xc[--a] = xc[a] + yc[a] + b) / 10 | 0;
  1336. // No need to check for zero, as +x + +y != 0 && -x + -y != 0
  1337. if (b) {
  1338. xc.unshift(b);
  1339. ++ye;
  1340. }
  1341. // Remove trailing zeros.
  1342. for (a = xc.length; xc[--a] === 0;) xc.pop();
  1343. y.c = xc;
  1344. y.e = ye;
  1345. return y;
  1346. };
  1347. /*
  1348. * Return a Big whose value is the value of this Big raised to the power n.
  1349. * If n is negative, round to a maximum of Big.DP decimal places using rounding
  1350. * mode Big.RM.
  1351. *
  1352. * n {number} Integer, -MAX_POWER to MAX_POWER inclusive.
  1353. */
  1354. P.pow = function (n) {
  1355. var x = this,
  1356. one = new x.constructor(1),
  1357. y = one,
  1358. isneg = n < 0;
  1359. if (n !== ~~n || n < -MAX_POWER || n > MAX_POWER) throw Error(INVALID + 'exponent');
  1360. if (isneg) n = -n;
  1361. for (;;) {
  1362. if (n & 1) y = y.times(x);
  1363. n >>= 1;
  1364. if (!n) break;
  1365. x = x.times(x);
  1366. }
  1367. return isneg ? one.div(y) : y;
  1368. };
  1369. /*
  1370. * Return a new Big whose value is the value of this Big rounded using rounding mode rm
  1371. * to a maximum of dp decimal places, or, if dp is negative, to an integer which is a
  1372. * multiple of 10**-dp.
  1373. * If dp is not specified, round to 0 decimal places.
  1374. * If rm is not specified, use Big.RM.
  1375. *
  1376. * dp? {number} Integer, -MAX_DP to MAX_DP inclusive.
  1377. * rm? 0, 1, 2 or 3 (ROUND_DOWN, ROUND_HALF_UP, ROUND_HALF_EVEN, ROUND_UP)
  1378. */
  1379. P.round = function (dp, rm) {
  1380. var Big = this.constructor;
  1381. if (dp === UNDEFINED) dp = 0;
  1382. else if (dp !== ~~dp || dp < -MAX_DP || dp > MAX_DP) throw Error(INVALID_DP);
  1383. return round(new Big(this), dp, rm === UNDEFINED ? Big.RM : rm);
  1384. };
  1385. /*
  1386. * Return a new Big whose value is the square root of the value of this Big, rounded, if
  1387. * necessary, to a maximum of Big.DP decimal places using rounding mode Big.RM.
  1388. */
  1389. P.sqrt = function () {
  1390. var r, c, t,
  1391. x = this,
  1392. Big = x.constructor,
  1393. s = x.s,
  1394. e = x.e,
  1395. half = new Big(0.5);
  1396. // Zero?
  1397. if (!x.c[0]) return new Big(x);
  1398. // Negative?
  1399. if (s < 0) throw Error(NAME + 'No square root');
  1400. // Estimate.
  1401. s = Math.sqrt(x + '');
  1402. // Math.sqrt underflow/overflow?
  1403. // Re-estimate: pass x coefficient to Math.sqrt as integer, then adjust the result exponent.
  1404. if (s === 0 || s === 1 / 0) {
  1405. c = x.c.join('');
  1406. if (!(c.length + e & 1)) c += '0';
  1407. s = Math.sqrt(c);
  1408. e = ((e + 1) / 2 | 0) - (e < 0 || e & 1);
  1409. r = new Big((s == 1 / 0 ? '1e' : (s = s.toExponential()).slice(0, s.indexOf('e') + 1)) + e);
  1410. } else {
  1411. r = new Big(s);
  1412. }
  1413. e = r.e + (Big.DP += 4);
  1414. // Newton-Raphson iteration.
  1415. do {
  1416. t = r;
  1417. r = half.times(t.plus(x.div(t)));
  1418. } while (t.c.slice(0, e).join('') !== r.c.slice(0, e).join(''));
  1419. return round(r, Big.DP -= 4, Big.RM);
  1420. };
  1421. /*
  1422. * Return a new Big whose value is the value of this Big times the value of Big y.
  1423. */
  1424. P.times = P.mul = function (y) {
  1425. var c,
  1426. x = this,
  1427. Big = x.constructor,
  1428. xc = x.c,
  1429. yc = (y = new Big(y)).c,
  1430. a = xc.length,
  1431. b = yc.length,
  1432. i = x.e,
  1433. j = y.e;
  1434. // Determine sign of result.
  1435. y.s = x.s == y.s ? 1 : -1;
  1436. // Return signed 0 if either 0.
  1437. if (!xc[0] || !yc[0]) return new Big(y.s * 0);
  1438. // Initialise exponent of result as x.e + y.e.
  1439. y.e = i + j;
  1440. // If array xc has fewer digits than yc, swap xc and yc, and lengths.
  1441. if (a < b) {
  1442. c = xc;
  1443. xc = yc;
  1444. yc = c;
  1445. j = a;
  1446. a = b;
  1447. b = j;
  1448. }
  1449. // Initialise coefficient array of result with zeros.
  1450. for (c = new Array(j = a + b); j--;) c[j] = 0;
  1451. // Multiply.
  1452. // i is initially xc.length.
  1453. for (i = b; i--;) {
  1454. b = 0;
  1455. // a is yc.length.
  1456. for (j = a + i; j > i;) {
  1457. // Current sum of products at this digit position, plus carry.
  1458. b = c[j] + yc[i] * xc[j - i - 1] + b;
  1459. c[j--] = b % 10;
  1460. // carry
  1461. b = b / 10 | 0;
  1462. }
  1463. c[j] = (c[j] + b) % 10;
  1464. }
  1465. // Increment result exponent if there is a final carry, otherwise remove leading zero.
  1466. if (b) ++y.e;
  1467. else c.shift();
  1468. // Remove trailing zeros.
  1469. for (i = c.length; !c[--i];) c.pop();
  1470. y.c = c;
  1471. return y;
  1472. };
  1473. /*
  1474. * Return a string representing the value of this Big in exponential notation to dp fixed decimal
  1475. * places and rounded using Big.RM.
  1476. *
  1477. * dp? {number} Integer, 0 to MAX_DP inclusive.
  1478. */
  1479. P.toExponential = function (dp) {
  1480. return stringify(this, 1, dp, dp);
  1481. };
  1482. /*
  1483. * Return a string representing the value of this Big in normal notation to dp fixed decimal
  1484. * places and rounded using Big.RM.
  1485. *
  1486. * dp? {number} Integer, 0 to MAX_DP inclusive.
  1487. *
  1488. * (-0).toFixed(0) is '0', but (-0.1).toFixed(0) is '-0'.
  1489. * (-0).toFixed(1) is '0.0', but (-0.01).toFixed(1) is '-0.0'.
  1490. */
  1491. P.toFixed = function (dp) {
  1492. return stringify(this, 2, dp, this.e + dp);
  1493. };
  1494. /*
  1495. * Return a string representing the value of this Big rounded to sd significant digits using
  1496. * Big.RM. Use exponential notation if sd is less than the number of digits necessary to represent
  1497. * the integer part of the value in normal notation.
  1498. *
  1499. * sd {number} Integer, 1 to MAX_DP inclusive.
  1500. */
  1501. P.toPrecision = function (sd) {
  1502. return stringify(this, 3, sd, sd - 1);
  1503. };
  1504. /*
  1505. * Return a string representing the value of this Big.
  1506. * Return exponential notation if this Big has a positive exponent equal to or greater than
  1507. * Big.PE, or a negative exponent equal to or less than Big.NE.
  1508. * Omit the sign for negative zero.
  1509. */
  1510. P.toString = function () {
  1511. return stringify(this);
  1512. };
  1513. /*
  1514. * Return a string representing the value of this Big.
  1515. * Return exponential notation if this Big has a positive exponent equal to or greater than
  1516. * Big.PE, or a negative exponent equal to or less than Big.NE.
  1517. * Include the sign for negative zero.
  1518. */
  1519. P.valueOf = P.toJSON = function () {
  1520. return stringify(this, 4);
  1521. };
  1522. // Export
  1523. Big = _Big_();
  1524. Big['default'] = Big.Big = Big;
  1525. //AMD.
  1526. if (module.exports) {
  1527. module.exports = Big;
  1528. //Browser.
  1529. } else {
  1530. GLOBAL.Big = Big;
  1531. }
  1532. })(build$2.commonjsGlobal);
  1533. }(big));
  1534. const baseEncodeTables = {
  1535. 26: 'abcdefghijklmnopqrstuvwxyz',
  1536. 32: '123456789abcdefghjkmnpqrstuvwxyz', // no 0lio
  1537. 36: '0123456789abcdefghijklmnopqrstuvwxyz',
  1538. 49: 'abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ', // no lIO
  1539. 52: 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ',
  1540. 58: '123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ', // no 0lIO
  1541. 62: '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ',
  1542. 64: '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_',
  1543. };
  1544. function encodeBufferToBase(buffer, base) {
  1545. const encodeTable = baseEncodeTables[base];
  1546. if (!encodeTable) {
  1547. throw new Error('Unknown encoding base' + base);
  1548. }
  1549. const readLength = buffer.length;
  1550. const Big = big.exports;
  1551. Big.RM = Big.DP = 0;
  1552. let b = new Big(0);
  1553. for (let i = readLength - 1; i >= 0; i--) {
  1554. b = b.times(256).plus(buffer[i]);
  1555. }
  1556. let output = '';
  1557. while (b.gt(0)) {
  1558. output = encodeTable[b.mod(base)] + output;
  1559. b = b.div(base);
  1560. }
  1561. Big.DP = 20;
  1562. Big.RM = 1;
  1563. return output;
  1564. }
  1565. function getHashDigest$2(buffer, hashType, digestType, maxLength) {
  1566. hashType = hashType || 'md5';
  1567. maxLength = maxLength || 9999;
  1568. const hash = require$$1__default.createHash(hashType);
  1569. hash.update(buffer);
  1570. if (
  1571. digestType === 'base26' ||
  1572. digestType === 'base32' ||
  1573. digestType === 'base36' ||
  1574. digestType === 'base49' ||
  1575. digestType === 'base52' ||
  1576. digestType === 'base58' ||
  1577. digestType === 'base62' ||
  1578. digestType === 'base64'
  1579. ) {
  1580. return encodeBufferToBase(hash.digest(), digestType.substr(4)).substr(
  1581. 0,
  1582. maxLength
  1583. );
  1584. } else {
  1585. return hash.digest(digestType || 'hex').substr(0, maxLength);
  1586. }
  1587. }
  1588. var getHashDigest_1 = getHashDigest$2;
  1589. var emojisList$1 = [
  1590. "🀄️",
  1591. "🃏",
  1592. "🅰️",
  1593. "🅱️",
  1594. "🅾️",
  1595. "🅿️",
  1596. "🆎",
  1597. "🆑",
  1598. "🆒",
  1599. "🆓",
  1600. "🆔",
  1601. "🆕",
  1602. "🆖",
  1603. "🆗",
  1604. "🆘",
  1605. "🆙",
  1606. "🆚",
  1607. "🇦🇨",
  1608. "🇦🇩",
  1609. "🇦🇪",
  1610. "🇦🇫",
  1611. "🇦🇬",
  1612. "🇦🇮",
  1613. "🇦🇱",
  1614. "🇦🇲",
  1615. "🇦🇴",
  1616. "🇦🇶",
  1617. "🇦🇷",
  1618. "🇦🇸",
  1619. "🇦🇹",
  1620. "🇦🇺",
  1621. "🇦🇼",
  1622. "🇦🇽",
  1623. "🇦🇿",
  1624. "🇦",
  1625. "🇧🇦",
  1626. "🇧🇧",
  1627. "🇧🇩",
  1628. "🇧🇪",
  1629. "🇧🇫",
  1630. "🇧🇬",
  1631. "🇧🇭",
  1632. "🇧🇮",
  1633. "🇧🇯",
  1634. "🇧🇱",
  1635. "🇧🇲",
  1636. "🇧🇳",
  1637. "🇧🇴",
  1638. "🇧🇶",
  1639. "🇧🇷",
  1640. "🇧🇸",
  1641. "🇧🇹",
  1642. "🇧🇻",
  1643. "🇧🇼",
  1644. "🇧🇾",
  1645. "🇧🇿",
  1646. "🇧",
  1647. "🇨🇦",
  1648. "🇨🇨",
  1649. "🇨🇩",
  1650. "🇨🇫",
  1651. "🇨🇬",
  1652. "🇨🇭",
  1653. "🇨🇮",
  1654. "🇨🇰",
  1655. "🇨🇱",
  1656. "🇨🇲",
  1657. "🇨🇳",
  1658. "🇨🇴",
  1659. "🇨🇵",
  1660. "🇨🇷",
  1661. "🇨🇺",
  1662. "🇨🇻",
  1663. "🇨🇼",
  1664. "🇨🇽",
  1665. "🇨🇾",
  1666. "🇨🇿",
  1667. "🇨",
  1668. "🇩🇪",
  1669. "🇩🇬",
  1670. "🇩🇯",
  1671. "🇩🇰",
  1672. "🇩🇲",
  1673. "🇩🇴",
  1674. "🇩🇿",
  1675. "🇩",
  1676. "🇪🇦",
  1677. "🇪🇨",
  1678. "🇪🇪",
  1679. "🇪🇬",
  1680. "🇪🇭",
  1681. "🇪🇷",
  1682. "🇪🇸",
  1683. "🇪🇹",
  1684. "🇪🇺",
  1685. "🇪",
  1686. "🇫🇮",
  1687. "🇫🇯",
  1688. "🇫🇰",
  1689. "🇫🇲",
  1690. "🇫🇴",
  1691. "🇫🇷",
  1692. "🇫",
  1693. "🇬🇦",
  1694. "🇬🇧",
  1695. "🇬🇩",
  1696. "🇬🇪",
  1697. "🇬🇫",
  1698. "🇬🇬",
  1699. "🇬🇭",
  1700. "🇬🇮",
  1701. "🇬🇱",
  1702. "🇬🇲",
  1703. "🇬🇳",
  1704. "🇬🇵",
  1705. "🇬🇶",
  1706. "🇬🇷",
  1707. "🇬🇸",
  1708. "🇬🇹",
  1709. "🇬🇺",
  1710. "🇬🇼",
  1711. "🇬🇾",
  1712. "🇬",
  1713. "🇭🇰",
  1714. "🇭🇲",
  1715. "🇭🇳",
  1716. "🇭🇷",
  1717. "🇭🇹",
  1718. "🇭🇺",
  1719. "🇭",
  1720. "🇮🇨",
  1721. "🇮🇩",
  1722. "🇮🇪",
  1723. "🇮🇱",
  1724. "🇮🇲",
  1725. "🇮🇳",
  1726. "🇮🇴",
  1727. "🇮🇶",
  1728. "🇮🇷",
  1729. "🇮🇸",
  1730. "🇮🇹",
  1731. "🇮",
  1732. "🇯🇪",
  1733. "🇯🇲",
  1734. "🇯🇴",
  1735. "🇯🇵",
  1736. "🇯",
  1737. "🇰🇪",
  1738. "🇰🇬",
  1739. "🇰🇭",
  1740. "🇰🇮",
  1741. "🇰🇲",
  1742. "🇰🇳",
  1743. "🇰🇵",
  1744. "🇰🇷",
  1745. "🇰🇼",
  1746. "🇰🇾",
  1747. "🇰🇿",
  1748. "🇰",
  1749. "🇱🇦",
  1750. "🇱🇧",
  1751. "🇱🇨",
  1752. "🇱🇮",
  1753. "🇱🇰",
  1754. "🇱🇷",
  1755. "🇱🇸",
  1756. "🇱🇹",
  1757. "🇱🇺",
  1758. "🇱🇻",
  1759. "🇱🇾",
  1760. "🇱",
  1761. "🇲🇦",
  1762. "🇲🇨",
  1763. "🇲🇩",
  1764. "🇲🇪",
  1765. "🇲🇫",
  1766. "🇲🇬",
  1767. "🇲🇭",
  1768. "🇲🇰",
  1769. "🇲🇱",
  1770. "🇲🇲",
  1771. "🇲🇳",
  1772. "🇲🇴",
  1773. "🇲🇵",
  1774. "🇲🇶",
  1775. "🇲🇷",
  1776. "🇲🇸",
  1777. "🇲🇹",
  1778. "🇲🇺",
  1779. "🇲🇻",
  1780. "🇲🇼",
  1781. "🇲🇽",
  1782. "🇲🇾",
  1783. "🇲🇿",
  1784. "🇲",
  1785. "🇳🇦",
  1786. "🇳🇨",
  1787. "🇳🇪",
  1788. "🇳🇫",
  1789. "🇳🇬",
  1790. "🇳🇮",
  1791. "🇳🇱",
  1792. "🇳🇴",
  1793. "🇳🇵",
  1794. "🇳🇷",
  1795. "🇳🇺",
  1796. "🇳🇿",
  1797. "🇳",
  1798. "🇴🇲",
  1799. "🇴",
  1800. "🇵🇦",
  1801. "🇵🇪",
  1802. "🇵🇫",
  1803. "🇵🇬",
  1804. "🇵🇭",
  1805. "🇵🇰",
  1806. "🇵🇱",
  1807. "🇵🇲",
  1808. "🇵🇳",
  1809. "🇵🇷",
  1810. "🇵🇸",
  1811. "🇵🇹",
  1812. "🇵🇼",
  1813. "🇵🇾",
  1814. "🇵",
  1815. "🇶🇦",
  1816. "🇶",
  1817. "🇷🇪",
  1818. "🇷🇴",
  1819. "🇷🇸",
  1820. "🇷🇺",
  1821. "🇷🇼",
  1822. "🇷",
  1823. "🇸🇦",
  1824. "🇸🇧",
  1825. "🇸🇨",
  1826. "🇸🇩",
  1827. "🇸🇪",
  1828. "🇸🇬",
  1829. "🇸🇭",
  1830. "🇸🇮",
  1831. "🇸🇯",
  1832. "🇸🇰",
  1833. "🇸🇱",
  1834. "🇸🇲",
  1835. "🇸🇳",
  1836. "🇸🇴",
  1837. "🇸🇷",
  1838. "🇸🇸",
  1839. "🇸🇹",
  1840. "🇸🇻",
  1841. "🇸🇽",
  1842. "🇸🇾",
  1843. "🇸🇿",
  1844. "🇸",
  1845. "🇹🇦",
  1846. "🇹🇨",
  1847. "🇹🇩",
  1848. "🇹🇫",
  1849. "🇹🇬",
  1850. "🇹🇭",
  1851. "🇹🇯",
  1852. "🇹🇰",
  1853. "🇹🇱",
  1854. "🇹🇲",
  1855. "🇹🇳",
  1856. "🇹🇴",
  1857. "🇹🇷",
  1858. "🇹🇹",
  1859. "🇹🇻",
  1860. "🇹🇼",
  1861. "🇹🇿",
  1862. "🇹",
  1863. "🇺🇦",
  1864. "🇺🇬",
  1865. "🇺🇲",
  1866. "🇺🇳",
  1867. "🇺🇸",
  1868. "🇺🇾",
  1869. "🇺🇿",
  1870. "🇺",
  1871. "🇻🇦",
  1872. "🇻🇨",
  1873. "🇻🇪",
  1874. "🇻🇬",
  1875. "🇻🇮",
  1876. "🇻🇳",
  1877. "🇻🇺",
  1878. "🇻",
  1879. "🇼🇫",
  1880. "🇼🇸",
  1881. "🇼",
  1882. "🇽🇰",
  1883. "🇽",
  1884. "🇾🇪",
  1885. "🇾🇹",
  1886. "🇾",
  1887. "🇿🇦",
  1888. "🇿🇲",
  1889. "🇿🇼",
  1890. "🇿",
  1891. "🈁",
  1892. "🈂️",
  1893. "🈚️",
  1894. "🈯️",
  1895. "🈲",
  1896. "🈳",
  1897. "🈴",
  1898. "🈵",
  1899. "🈶",
  1900. "🈷️",
  1901. "🈸",
  1902. "🈹",
  1903. "🈺",
  1904. "🉐",
  1905. "🉑",
  1906. "🌀",
  1907. "🌁",
  1908. "🌂",
  1909. "🌃",
  1910. "🌄",
  1911. "🌅",
  1912. "🌆",
  1913. "🌇",
  1914. "🌈",
  1915. "🌉",
  1916. "🌊",
  1917. "🌋",
  1918. "🌌",
  1919. "🌍",
  1920. "🌎",
  1921. "🌏",
  1922. "🌐",
  1923. "🌑",
  1924. "🌒",
  1925. "🌓",
  1926. "🌔",
  1927. "🌕",
  1928. "🌖",
  1929. "🌗",
  1930. "🌘",
  1931. "🌙",
  1932. "🌚",
  1933. "🌛",
  1934. "🌜",
  1935. "🌝",
  1936. "🌞",
  1937. "🌟",
  1938. "🌠",
  1939. "🌡️",
  1940. "🌤️",
  1941. "🌥️",
  1942. "🌦️",
  1943. "🌧️",
  1944. "🌨️",
  1945. "🌩️",
  1946. "🌪️",
  1947. "🌫️",
  1948. "🌬️",
  1949. "🌭",
  1950. "🌮",
  1951. "🌯",
  1952. "🌰",
  1953. "🌱",
  1954. "🌲",
  1955. "🌳",
  1956. "🌴",
  1957. "🌵",
  1958. "🌶️",
  1959. "🌷",
  1960. "🌸",
  1961. "🌹",
  1962. "🌺",
  1963. "🌻",
  1964. "🌼",
  1965. "🌽",
  1966. "🌾",
  1967. "🌿",
  1968. "🍀",
  1969. "🍁",
  1970. "🍂",
  1971. "🍃",
  1972. "🍄",
  1973. "🍅",
  1974. "🍆",
  1975. "🍇",
  1976. "🍈",
  1977. "🍉",
  1978. "🍊",
  1979. "🍋",
  1980. "🍌",
  1981. "🍍",
  1982. "🍎",
  1983. "🍏",
  1984. "🍐",
  1985. "🍑",
  1986. "🍒",
  1987. "🍓",
  1988. "🍔",
  1989. "🍕",
  1990. "🍖",
  1991. "🍗",
  1992. "🍘",
  1993. "🍙",
  1994. "🍚",
  1995. "🍛",
  1996. "🍜",
  1997. "🍝",
  1998. "🍞",
  1999. "🍟",
  2000. "🍠",
  2001. "🍡",
  2002. "🍢",
  2003. "🍣",
  2004. "🍤",
  2005. "🍥",
  2006. "🍦",
  2007. "🍧",
  2008. "🍨",
  2009. "🍩",
  2010. "🍪",
  2011. "🍫",
  2012. "🍬",
  2013. "🍭",
  2014. "🍮",
  2015. "🍯",
  2016. "🍰",
  2017. "🍱",
  2018. "🍲",
  2019. "🍳",
  2020. "🍴",
  2021. "🍵",
  2022. "🍶",
  2023. "🍷",
  2024. "🍸",
  2025. "🍹",
  2026. "🍺",
  2027. "🍻",
  2028. "🍼",
  2029. "🍽️",
  2030. "🍾",
  2031. "🍿",
  2032. "🎀",
  2033. "🎁",
  2034. "🎂",
  2035. "🎃",
  2036. "🎄",
  2037. "🎅🏻",
  2038. "🎅🏼",
  2039. "🎅🏽",
  2040. "🎅🏾",
  2041. "🎅🏿",
  2042. "🎅",
  2043. "🎆",
  2044. "🎇",
  2045. "🎈",
  2046. "🎉",
  2047. "🎊",
  2048. "🎋",
  2049. "🎌",
  2050. "🎍",
  2051. "🎎",
  2052. "🎏",
  2053. "🎐",
  2054. "🎑",
  2055. "🎒",
  2056. "🎓",
  2057. "🎖️",
  2058. "🎗️",
  2059. "🎙️",
  2060. "🎚️",
  2061. "🎛️",
  2062. "🎞️",
  2063. "🎟️",
  2064. "🎠",
  2065. "🎡",
  2066. "🎢",
  2067. "🎣",
  2068. "🎤",
  2069. "🎥",
  2070. "🎦",
  2071. "🎧",
  2072. "🎨",
  2073. "🎩",
  2074. "🎪",
  2075. "🎫",
  2076. "🎬",
  2077. "🎭",
  2078. "🎮",
  2079. "🎯",
  2080. "🎰",
  2081. "🎱",
  2082. "🎲",
  2083. "🎳",
  2084. "🎴",
  2085. "🎵",
  2086. "🎶",
  2087. "🎷",
  2088. "🎸",
  2089. "🎹",
  2090. "🎺",
  2091. "🎻",
  2092. "🎼",
  2093. "🎽",
  2094. "🎾",
  2095. "🎿",
  2096. "🏀",
  2097. "🏁",
  2098. "🏂🏻",
  2099. "🏂🏼",
  2100. "🏂🏽",
  2101. "🏂🏾",
  2102. "🏂🏿",
  2103. "🏂",
  2104. "🏃🏻‍♀️",
  2105. "🏃🏻‍♂️",
  2106. "🏃🏻",
  2107. "🏃🏼‍♀️",
  2108. "🏃🏼‍♂️",
  2109. "🏃🏼",
  2110. "🏃🏽‍♀️",
  2111. "🏃🏽‍♂️",
  2112. "🏃🏽",
  2113. "🏃🏾‍♀️",
  2114. "🏃🏾‍♂️",
  2115. "🏃🏾",
  2116. "🏃🏿‍♀️",
  2117. "🏃🏿‍♂️",
  2118. "🏃🏿",
  2119. "🏃‍♀️",
  2120. "🏃‍♂️",
  2121. "🏃",
  2122. "🏄🏻‍♀️",
  2123. "🏄🏻‍♂️",
  2124. "🏄🏻",
  2125. "🏄🏼‍♀️",
  2126. "🏄🏼‍♂️",
  2127. "🏄🏼",
  2128. "🏄🏽‍♀️",
  2129. "🏄🏽‍♂️",
  2130. "🏄🏽",
  2131. "🏄🏾‍♀️",
  2132. "🏄🏾‍♂️",
  2133. "🏄🏾",
  2134. "🏄🏿‍♀️",
  2135. "🏄🏿‍♂️",
  2136. "🏄🏿",
  2137. "🏄‍♀️",
  2138. "🏄‍♂️",
  2139. "🏄",
  2140. "🏅",
  2141. "🏆",
  2142. "🏇🏻",
  2143. "🏇🏼",
  2144. "🏇🏽",
  2145. "🏇🏾",
  2146. "🏇🏿",
  2147. "🏇",
  2148. "🏈",
  2149. "🏉",
  2150. "🏊🏻‍♀️",
  2151. "🏊🏻‍♂️",
  2152. "🏊🏻",
  2153. "🏊🏼‍♀️",
  2154. "🏊🏼‍♂️",
  2155. "🏊🏼",
  2156. "🏊🏽‍♀️",
  2157. "🏊🏽‍♂️",
  2158. "🏊🏽",
  2159. "🏊🏾‍♀️",
  2160. "🏊🏾‍♂️",
  2161. "🏊🏾",
  2162. "🏊🏿‍♀️",
  2163. "🏊🏿‍♂️",
  2164. "🏊🏿",
  2165. "🏊‍♀️",
  2166. "🏊‍♂️",
  2167. "🏊",
  2168. "🏋🏻‍♀️",
  2169. "🏋🏻‍♂️",
  2170. "🏋🏻",
  2171. "🏋🏼‍♀️",
  2172. "🏋🏼‍♂️",
  2173. "🏋🏼",
  2174. "🏋🏽‍♀️",
  2175. "🏋🏽‍♂️",
  2176. "🏋🏽",
  2177. "🏋🏾‍♀️",
  2178. "🏋🏾‍♂️",
  2179. "🏋🏾",
  2180. "🏋🏿‍♀️",
  2181. "🏋🏿‍♂️",
  2182. "🏋🏿",
  2183. "🏋️‍♀️",
  2184. "🏋️‍♂️",
  2185. "🏋️",
  2186. "🏌🏻‍♀️",
  2187. "🏌🏻‍♂️",
  2188. "🏌🏻",
  2189. "🏌🏼‍♀️",
  2190. "🏌🏼‍♂️",
  2191. "🏌🏼",
  2192. "🏌🏽‍♀️",
  2193. "🏌🏽‍♂️",
  2194. "🏌🏽",
  2195. "🏌🏾‍♀️",
  2196. "🏌🏾‍♂️",
  2197. "🏌🏾",
  2198. "🏌🏿‍♀️",
  2199. "🏌🏿‍♂️",
  2200. "🏌🏿",
  2201. "🏌️‍♀️",
  2202. "🏌️‍♂️",
  2203. "🏌️",
  2204. "🏍️",
  2205. "🏎️",
  2206. "🏏",
  2207. "🏐",
  2208. "🏑",
  2209. "🏒",
  2210. "🏓",
  2211. "🏔️",
  2212. "🏕️",
  2213. "🏖️",
  2214. "🏗️",
  2215. "🏘️",
  2216. "🏙️",
  2217. "🏚️",
  2218. "🏛️",
  2219. "🏜️",
  2220. "🏝️",
  2221. "🏞️",
  2222. "🏟️",
  2223. "🏠",
  2224. "🏡",
  2225. "🏢",
  2226. "🏣",
  2227. "🏤",
  2228. "🏥",
  2229. "🏦",
  2230. "🏧",
  2231. "🏨",
  2232. "🏩",
  2233. "🏪",
  2234. "🏫",
  2235. "🏬",
  2236. "🏭",
  2237. "🏮",
  2238. "🏯",
  2239. "🏰",
  2240. "🏳️‍🌈",
  2241. "🏳️",
  2242. "🏴‍☠️",
  2243. "🏴󠁧󠁢󠁥󠁮󠁧󠁿",
  2244. "🏴󠁧󠁢󠁳󠁣󠁴󠁿",
  2245. "🏴󠁧󠁢󠁷󠁬󠁳󠁿",
  2246. "🏴",
  2247. "🏵️",
  2248. "🏷️",
  2249. "🏸",
  2250. "🏹",
  2251. "🏺",
  2252. "🏻",
  2253. "🏼",
  2254. "🏽",
  2255. "🏾",
  2256. "🏿",
  2257. "🐀",
  2258. "🐁",
  2259. "🐂",
  2260. "🐃",
  2261. "🐄",
  2262. "🐅",
  2263. "🐆",
  2264. "🐇",
  2265. "🐈",
  2266. "🐉",
  2267. "🐊",
  2268. "🐋",
  2269. "🐌",
  2270. "🐍",
  2271. "🐎",
  2272. "🐏",
  2273. "🐐",
  2274. "🐑",
  2275. "🐒",
  2276. "🐓",
  2277. "🐔",
  2278. "🐕‍🦺",
  2279. "🐕",
  2280. "🐖",
  2281. "🐗",
  2282. "🐘",
  2283. "🐙",
  2284. "🐚",
  2285. "🐛",
  2286. "🐜",
  2287. "🐝",
  2288. "🐞",
  2289. "🐟",
  2290. "🐠",
  2291. "🐡",
  2292. "🐢",
  2293. "🐣",
  2294. "🐤",
  2295. "🐥",
  2296. "🐦",
  2297. "🐧",
  2298. "🐨",
  2299. "🐩",
  2300. "🐪",
  2301. "🐫",
  2302. "🐬",
  2303. "🐭",
  2304. "🐮",
  2305. "🐯",
  2306. "🐰",
  2307. "🐱",
  2308. "🐲",
  2309. "🐳",
  2310. "🐴",
  2311. "🐵",
  2312. "🐶",
  2313. "🐷",
  2314. "🐸",
  2315. "🐹",
  2316. "🐺",
  2317. "🐻",
  2318. "🐼",
  2319. "🐽",
  2320. "🐾",
  2321. "🐿️",
  2322. "👀",
  2323. "👁‍🗨",
  2324. "👁️",
  2325. "👂🏻",
  2326. "👂🏼",
  2327. "👂🏽",
  2328. "👂🏾",
  2329. "👂🏿",
  2330. "👂",
  2331. "👃🏻",
  2332. "👃🏼",
  2333. "👃🏽",
  2334. "👃🏾",
  2335. "👃🏿",
  2336. "👃",
  2337. "👄",
  2338. "👅",
  2339. "👆🏻",
  2340. "👆🏼",
  2341. "👆🏽",
  2342. "👆🏾",
  2343. "👆🏿",
  2344. "👆",
  2345. "👇🏻",
  2346. "👇🏼",
  2347. "👇🏽",
  2348. "👇🏾",
  2349. "👇🏿",
  2350. "👇",
  2351. "👈🏻",
  2352. "👈🏼",
  2353. "👈🏽",
  2354. "👈🏾",
  2355. "👈🏿",
  2356. "👈",
  2357. "👉🏻",
  2358. "👉🏼",
  2359. "👉🏽",
  2360. "👉🏾",
  2361. "👉🏿",
  2362. "👉",
  2363. "👊🏻",
  2364. "👊🏼",
  2365. "👊🏽",
  2366. "👊🏾",
  2367. "👊🏿",
  2368. "👊",
  2369. "👋🏻",
  2370. "👋🏼",
  2371. "👋🏽",
  2372. "👋🏾",
  2373. "👋🏿",
  2374. "👋",
  2375. "👌🏻",
  2376. "👌🏼",
  2377. "👌🏽",
  2378. "👌🏾",
  2379. "👌🏿",
  2380. "👌",
  2381. "👍🏻",
  2382. "👍🏼",
  2383. "👍🏽",
  2384. "👍🏾",
  2385. "👍🏿",
  2386. "👍",
  2387. "👎🏻",
  2388. "👎🏼",
  2389. "👎🏽",
  2390. "👎🏾",
  2391. "👎🏿",
  2392. "👎",
  2393. "👏🏻",
  2394. "👏🏼",
  2395. "👏🏽",
  2396. "👏🏾",
  2397. "👏🏿",
  2398. "👏",
  2399. "👐🏻",
  2400. "👐🏼",
  2401. "👐🏽",
  2402. "👐🏾",
  2403. "👐🏿",
  2404. "👐",
  2405. "👑",
  2406. "👒",
  2407. "👓",
  2408. "👔",
  2409. "👕",
  2410. "👖",
  2411. "👗",
  2412. "👘",
  2413. "👙",
  2414. "👚",
  2415. "👛",
  2416. "👜",
  2417. "👝",
  2418. "👞",
  2419. "👟",
  2420. "👠",
  2421. "👡",
  2422. "👢",
  2423. "👣",
  2424. "👤",
  2425. "👥",
  2426. "👦🏻",
  2427. "👦🏼",
  2428. "👦🏽",
  2429. "👦🏾",
  2430. "👦🏿",
  2431. "👦",
  2432. "👧🏻",
  2433. "👧🏼",
  2434. "👧🏽",
  2435. "👧🏾",
  2436. "👧🏿",
  2437. "👧",
  2438. "👨🏻‍🌾",
  2439. "👨🏻‍🍳",
  2440. "👨🏻‍🎓",
  2441. "👨🏻‍🎤",
  2442. "👨🏻‍🎨",
  2443. "👨🏻‍🏫",
  2444. "👨🏻‍🏭",
  2445. "👨🏻‍💻",
  2446. "👨🏻‍💼",
  2447. "👨🏻‍🔧",
  2448. "👨🏻‍🔬",
  2449. "👨🏻‍🚀",
  2450. "👨🏻‍🚒",
  2451. "👨🏻‍🦯",
  2452. "👨🏻‍🦰",
  2453. "👨🏻‍🦱",
  2454. "👨🏻‍🦲",
  2455. "👨🏻‍🦳",
  2456. "👨🏻‍🦼",
  2457. "👨🏻‍🦽",
  2458. "👨🏻‍⚕️",
  2459. "👨🏻‍⚖️",
  2460. "👨🏻‍✈️",
  2461. "👨🏻",
  2462. "👨🏼‍🌾",
  2463. "👨🏼‍🍳",
  2464. "👨🏼‍🎓",
  2465. "👨🏼‍🎤",
  2466. "👨🏼‍🎨",
  2467. "👨🏼‍🏫",
  2468. "👨🏼‍🏭",
  2469. "👨🏼‍💻",
  2470. "👨🏼‍💼",
  2471. "👨🏼‍🔧",
  2472. "👨🏼‍🔬",
  2473. "👨🏼‍🚀",
  2474. "👨🏼‍🚒",
  2475. "👨🏼‍🤝‍👨🏻",
  2476. "👨🏼‍🦯",
  2477. "👨🏼‍🦰",
  2478. "👨🏼‍🦱",
  2479. "👨🏼‍🦲",
  2480. "👨🏼‍🦳",
  2481. "👨🏼‍🦼",
  2482. "👨🏼‍🦽",
  2483. "👨🏼‍⚕️",
  2484. "👨🏼‍⚖️",
  2485. "👨🏼‍✈️",
  2486. "👨🏼",
  2487. "👨🏽‍🌾",
  2488. "👨🏽‍🍳",
  2489. "👨🏽‍🎓",
  2490. "👨🏽‍🎤",
  2491. "👨🏽‍🎨",
  2492. "👨🏽‍🏫",
  2493. "👨🏽‍🏭",
  2494. "👨🏽‍💻",
  2495. "👨🏽‍💼",
  2496. "👨🏽‍🔧",
  2497. "👨🏽‍🔬",
  2498. "👨🏽‍🚀",
  2499. "👨🏽‍🚒",
  2500. "👨🏽‍🤝‍👨🏻",
  2501. "👨🏽‍🤝‍👨🏼",
  2502. "👨🏽‍🦯",
  2503. "👨🏽‍🦰",
  2504. "👨🏽‍🦱",
  2505. "👨🏽‍🦲",
  2506. "👨🏽‍🦳",
  2507. "👨🏽‍🦼",
  2508. "👨🏽‍🦽",
  2509. "👨🏽‍⚕️",
  2510. "👨🏽‍⚖️",
  2511. "👨🏽‍✈️",
  2512. "👨🏽",
  2513. "👨🏾‍🌾",
  2514. "👨🏾‍🍳",
  2515. "👨🏾‍🎓",
  2516. "👨🏾‍🎤",
  2517. "👨🏾‍🎨",
  2518. "👨🏾‍🏫",
  2519. "👨🏾‍🏭",
  2520. "👨🏾‍💻",
  2521. "👨🏾‍💼",
  2522. "👨🏾‍🔧",
  2523. "👨🏾‍🔬",
  2524. "👨🏾‍🚀",
  2525. "👨🏾‍🚒",
  2526. "👨🏾‍🤝‍👨🏻",
  2527. "👨🏾‍🤝‍👨🏼",
  2528. "👨🏾‍🤝‍👨🏽",
  2529. "👨🏾‍🦯",
  2530. "👨🏾‍🦰",
  2531. "👨🏾‍🦱",
  2532. "👨🏾‍🦲",
  2533. "👨🏾‍🦳",
  2534. "👨🏾‍🦼",
  2535. "👨🏾‍🦽",
  2536. "👨🏾‍⚕️",
  2537. "👨🏾‍⚖️",
  2538. "👨🏾‍✈️",
  2539. "👨🏾",
  2540. "👨🏿‍🌾",
  2541. "👨🏿‍🍳",
  2542. "👨🏿‍🎓",
  2543. "👨🏿‍🎤",
  2544. "👨🏿‍🎨",
  2545. "👨🏿‍🏫",
  2546. "👨🏿‍🏭",
  2547. "👨🏿‍💻",
  2548. "👨🏿‍💼",
  2549. "👨🏿‍🔧",
  2550. "👨🏿‍🔬",
  2551. "👨🏿‍🚀",
  2552. "👨🏿‍🚒",
  2553. "👨🏿‍🤝‍👨🏻",
  2554. "👨🏿‍🤝‍👨🏼",
  2555. "👨🏿‍🤝‍👨🏽",
  2556. "👨🏿‍🤝‍👨🏾",
  2557. "👨🏿‍🦯",
  2558. "👨🏿‍🦰",
  2559. "👨🏿‍🦱",
  2560. "👨🏿‍🦲",
  2561. "👨🏿‍🦳",
  2562. "👨🏿‍🦼",
  2563. "👨🏿‍🦽",
  2564. "👨🏿‍⚕️",
  2565. "👨🏿‍⚖️",
  2566. "👨🏿‍✈️",
  2567. "👨🏿",
  2568. "👨‍🌾",
  2569. "👨‍🍳",
  2570. "👨‍🎓",
  2571. "👨‍🎤",
  2572. "👨‍🎨",
  2573. "👨‍🏫",
  2574. "👨‍🏭",
  2575. "👨‍👦‍👦",
  2576. "👨‍👦",
  2577. "👨‍👧‍👦",
  2578. "👨‍👧‍👧",
  2579. "👨‍👧",
  2580. "👨‍👨‍👦‍👦",
  2581. "👨‍👨‍👦",
  2582. "👨‍👨‍👧‍👦",
  2583. "👨‍👨‍👧‍👧",
  2584. "👨‍👨‍👧",
  2585. "👨‍👩‍👦‍👦",
  2586. "👨‍👩‍👦",
  2587. "👨‍👩‍👧‍👦",
  2588. "👨‍👩‍👧‍👧",
  2589. "👨‍👩‍👧",
  2590. "👨‍💻",
  2591. "👨‍💼",
  2592. "👨‍🔧",
  2593. "👨‍🔬",
  2594. "👨‍🚀",
  2595. "👨‍🚒",
  2596. "👨‍🦯",
  2597. "👨‍🦰",
  2598. "👨‍🦱",
  2599. "👨‍🦲",
  2600. "👨‍🦳",
  2601. "👨‍🦼",
  2602. "👨‍🦽",
  2603. "👨‍⚕️",
  2604. "👨‍⚖️",
  2605. "👨‍✈️",
  2606. "👨‍❤️‍👨",
  2607. "👨‍❤️‍💋‍👨",
  2608. "👨",
  2609. "👩🏻‍🌾",
  2610. "👩🏻‍🍳",
  2611. "👩🏻‍🎓",
  2612. "👩🏻‍🎤",
  2613. "👩🏻‍🎨",
  2614. "👩🏻‍🏫",
  2615. "👩🏻‍🏭",
  2616. "👩🏻‍💻",
  2617. "👩🏻‍💼",
  2618. "👩🏻‍🔧",
  2619. "👩🏻‍🔬",
  2620. "👩🏻‍🚀",
  2621. "👩🏻‍🚒",
  2622. "👩🏻‍🤝‍👨🏼",
  2623. "👩🏻‍🤝‍👨🏽",
  2624. "👩🏻‍🤝‍👨🏾",
  2625. "👩🏻‍🤝‍👨🏿",
  2626. "👩🏻‍🦯",
  2627. "👩🏻‍🦰",
  2628. "👩🏻‍🦱",
  2629. "👩🏻‍🦲",
  2630. "👩🏻‍🦳",
  2631. "👩🏻‍🦼",
  2632. "👩🏻‍🦽",
  2633. "👩🏻‍⚕️",
  2634. "👩🏻‍⚖️",
  2635. "👩🏻‍✈️",
  2636. "👩🏻",
  2637. "👩🏼‍🌾",
  2638. "👩🏼‍🍳",
  2639. "👩🏼‍🎓",
  2640. "👩🏼‍🎤",
  2641. "👩🏼‍🎨",
  2642. "👩🏼‍🏫",
  2643. "👩🏼‍🏭",
  2644. "👩🏼‍💻",
  2645. "👩🏼‍💼",
  2646. "👩🏼‍🔧",
  2647. "👩🏼‍🔬",
  2648. "👩🏼‍🚀",
  2649. "👩🏼‍🚒",
  2650. "👩🏼‍🤝‍👨🏻",
  2651. "👩🏼‍🤝‍👨🏽",
  2652. "👩🏼‍🤝‍👨🏾",
  2653. "👩🏼‍🤝‍👨🏿",
  2654. "👩🏼‍🤝‍👩🏻",
  2655. "👩🏼‍🦯",
  2656. "👩🏼‍🦰",
  2657. "👩🏼‍🦱",
  2658. "👩🏼‍🦲",
  2659. "👩🏼‍🦳",
  2660. "👩🏼‍🦼",
  2661. "👩🏼‍🦽",
  2662. "👩🏼‍⚕️",
  2663. "👩🏼‍⚖️",
  2664. "👩🏼‍✈️",
  2665. "👩🏼",
  2666. "👩🏽‍🌾",
  2667. "👩🏽‍🍳",
  2668. "👩🏽‍🎓",
  2669. "👩🏽‍🎤",
  2670. "👩🏽‍🎨",
  2671. "👩🏽‍🏫",
  2672. "👩🏽‍🏭",
  2673. "👩🏽‍💻",
  2674. "👩🏽‍💼",
  2675. "👩🏽‍🔧",
  2676. "👩🏽‍🔬",
  2677. "👩🏽‍🚀",
  2678. "👩🏽‍🚒",
  2679. "👩🏽‍🤝‍👨🏻",
  2680. "👩🏽‍🤝‍👨🏼",
  2681. "👩🏽‍🤝‍👨🏾",
  2682. "👩🏽‍🤝‍👨🏿",
  2683. "👩🏽‍🤝‍👩🏻",
  2684. "👩🏽‍🤝‍👩🏼",
  2685. "👩🏽‍🦯",
  2686. "👩🏽‍🦰",
  2687. "👩🏽‍🦱",
  2688. "👩🏽‍🦲",
  2689. "👩🏽‍🦳",
  2690. "👩🏽‍🦼",
  2691. "👩🏽‍🦽",
  2692. "👩🏽‍⚕️",
  2693. "👩🏽‍⚖️",
  2694. "👩🏽‍✈️",
  2695. "👩🏽",
  2696. "👩🏾‍🌾",
  2697. "👩🏾‍🍳",
  2698. "👩🏾‍🎓",
  2699. "👩🏾‍🎤",
  2700. "👩🏾‍🎨",
  2701. "👩🏾‍🏫",
  2702. "👩🏾‍🏭",
  2703. "👩🏾‍💻",
  2704. "👩🏾‍💼",
  2705. "👩🏾‍🔧",
  2706. "👩🏾‍🔬",
  2707. "👩🏾‍🚀",
  2708. "👩🏾‍🚒",
  2709. "👩🏾‍🤝‍👨🏻",
  2710. "👩🏾‍🤝‍👨🏼",
  2711. "👩🏾‍🤝‍👨🏽",
  2712. "👩🏾‍🤝‍👨🏿",
  2713. "👩🏾‍🤝‍👩🏻",
  2714. "👩🏾‍🤝‍👩🏼",
  2715. "👩🏾‍🤝‍👩🏽",
  2716. "👩🏾‍🦯",
  2717. "👩🏾‍🦰",
  2718. "👩🏾‍🦱",
  2719. "👩🏾‍🦲",
  2720. "👩🏾‍🦳",
  2721. "👩🏾‍🦼",
  2722. "👩🏾‍🦽",
  2723. "👩🏾‍⚕️",
  2724. "👩🏾‍⚖️",
  2725. "👩🏾‍✈️",
  2726. "👩🏾",
  2727. "👩🏿‍🌾",
  2728. "👩🏿‍🍳",
  2729. "👩🏿‍🎓",
  2730. "👩🏿‍🎤",
  2731. "👩🏿‍🎨",
  2732. "👩🏿‍🏫",
  2733. "👩🏿‍🏭",
  2734. "👩🏿‍💻",
  2735. "👩🏿‍💼",
  2736. "👩🏿‍🔧",
  2737. "👩🏿‍🔬",
  2738. "👩🏿‍🚀",
  2739. "👩🏿‍🚒",
  2740. "👩🏿‍🤝‍👨🏻",
  2741. "👩🏿‍🤝‍👨🏼",
  2742. "👩🏿‍🤝‍👨🏽",
  2743. "👩🏿‍🤝‍👨🏾",
  2744. "👩🏿‍🤝‍👩🏻",
  2745. "👩🏿‍🤝‍👩🏼",
  2746. "👩🏿‍🤝‍👩🏽",
  2747. "👩🏿‍🤝‍👩🏾",
  2748. "👩🏿‍🦯",
  2749. "👩🏿‍🦰",
  2750. "👩🏿‍🦱",
  2751. "👩🏿‍🦲",
  2752. "👩🏿‍🦳",
  2753. "👩🏿‍🦼",
  2754. "👩🏿‍🦽",
  2755. "👩🏿‍⚕️",
  2756. "👩🏿‍⚖️",
  2757. "👩🏿‍✈️",
  2758. "👩🏿",
  2759. "👩‍🌾",
  2760. "👩‍🍳",
  2761. "👩‍🎓",
  2762. "👩‍🎤",
  2763. "👩‍🎨",
  2764. "👩‍🏫",
  2765. "👩‍🏭",
  2766. "👩‍👦‍👦",
  2767. "👩‍👦",
  2768. "👩‍👧‍👦",
  2769. "👩‍👧‍👧",
  2770. "👩‍👧",
  2771. "👩‍👩‍👦‍👦",
  2772. "👩‍👩‍👦",
  2773. "👩‍👩‍👧‍👦",
  2774. "👩‍👩‍👧‍👧",
  2775. "👩‍👩‍👧",
  2776. "👩‍💻",
  2777. "👩‍💼",
  2778. "👩‍🔧",
  2779. "👩‍🔬",
  2780. "👩‍🚀",
  2781. "👩‍🚒",
  2782. "👩‍🦯",
  2783. "👩‍🦰",
  2784. "👩‍🦱",
  2785. "👩‍🦲",
  2786. "👩‍🦳",
  2787. "👩‍🦼",
  2788. "👩‍🦽",
  2789. "👩‍⚕️",
  2790. "👩‍⚖️",
  2791. "👩‍✈️",
  2792. "👩‍❤️‍👨",
  2793. "👩‍❤️‍👩",
  2794. "👩‍❤️‍💋‍👨",
  2795. "👩‍❤️‍💋‍👩",
  2796. "👩",
  2797. "👪",
  2798. "👫🏻",
  2799. "👫🏼",
  2800. "👫🏽",
  2801. "👫🏾",
  2802. "👫🏿",
  2803. "👫",
  2804. "👬🏻",
  2805. "👬🏼",
  2806. "👬🏽",
  2807. "👬🏾",
  2808. "👬🏿",
  2809. "👬",
  2810. "👭🏻",
  2811. "👭🏼",
  2812. "👭🏽",
  2813. "👭🏾",
  2814. "👭🏿",
  2815. "👭",
  2816. "👮🏻‍♀️",
  2817. "👮🏻‍♂️",
  2818. "👮🏻",
  2819. "👮🏼‍♀️",
  2820. "👮🏼‍♂️",
  2821. "👮🏼",
  2822. "👮🏽‍♀️",
  2823. "👮🏽‍♂️",
  2824. "👮🏽",
  2825. "👮🏾‍♀️",
  2826. "👮🏾‍♂️",
  2827. "👮🏾",
  2828. "👮🏿‍♀️",
  2829. "👮🏿‍♂️",
  2830. "👮🏿",
  2831. "👮‍♀️",
  2832. "👮‍♂️",
  2833. "👮",
  2834. "👯‍♀️",
  2835. "👯‍♂️",
  2836. "👯",
  2837. "👰🏻",
  2838. "👰🏼",
  2839. "👰🏽",
  2840. "👰🏾",
  2841. "👰🏿",
  2842. "👰",
  2843. "👱🏻‍♀️",
  2844. "👱🏻‍♂️",
  2845. "👱🏻",
  2846. "👱🏼‍♀️",
  2847. "👱🏼‍♂️",
  2848. "👱🏼",
  2849. "👱🏽‍♀️",
  2850. "👱🏽‍♂️",
  2851. "👱🏽",
  2852. "👱🏾‍♀️",
  2853. "👱🏾‍♂️",
  2854. "👱🏾",
  2855. "👱🏿‍♀️",
  2856. "👱🏿‍♂️",
  2857. "👱🏿",
  2858. "👱‍♀️",
  2859. "👱‍♂️",
  2860. "👱",
  2861. "👲🏻",
  2862. "👲🏼",
  2863. "👲🏽",
  2864. "👲🏾",
  2865. "👲🏿",
  2866. "👲",
  2867. "👳🏻‍♀️",
  2868. "👳🏻‍♂️",
  2869. "👳🏻",
  2870. "👳🏼‍♀️",
  2871. "👳🏼‍♂️",
  2872. "👳🏼",
  2873. "👳🏽‍♀️",
  2874. "👳🏽‍♂️",
  2875. "👳🏽",
  2876. "👳🏾‍♀️",
  2877. "👳🏾‍♂️",
  2878. "👳🏾",
  2879. "👳🏿‍♀️",
  2880. "👳🏿‍♂️",
  2881. "👳🏿",
  2882. "👳‍♀️",
  2883. "👳‍♂️",
  2884. "👳",
  2885. "👴🏻",
  2886. "👴🏼",
  2887. "👴🏽",
  2888. "👴🏾",
  2889. "👴🏿",
  2890. "👴",
  2891. "👵🏻",
  2892. "👵🏼",
  2893. "👵🏽",
  2894. "👵🏾",
  2895. "👵🏿",
  2896. "👵",
  2897. "👶🏻",
  2898. "👶🏼",
  2899. "👶🏽",
  2900. "👶🏾",
  2901. "👶🏿",
  2902. "👶",
  2903. "👷🏻‍♀️",
  2904. "👷🏻‍♂️",
  2905. "👷🏻",
  2906. "👷🏼‍♀️",
  2907. "👷🏼‍♂️",
  2908. "👷🏼",
  2909. "👷🏽‍♀️",
  2910. "👷🏽‍♂️",
  2911. "👷🏽",
  2912. "👷🏾‍♀️",
  2913. "👷🏾‍♂️",
  2914. "👷🏾",
  2915. "👷🏿‍♀️",
  2916. "👷🏿‍♂️",
  2917. "👷🏿",
  2918. "👷‍♀️",
  2919. "👷‍♂️",
  2920. "👷",
  2921. "👸🏻",
  2922. "👸🏼",
  2923. "👸🏽",
  2924. "👸🏾",
  2925. "👸🏿",
  2926. "👸",
  2927. "👹",
  2928. "👺",
  2929. "👻",
  2930. "👼🏻",
  2931. "👼🏼",
  2932. "👼🏽",
  2933. "👼🏾",
  2934. "👼🏿",
  2935. "👼",
  2936. "👽",
  2937. "👾",
  2938. "👿",
  2939. "💀",
  2940. "💁🏻‍♀️",
  2941. "💁🏻‍♂️",
  2942. "💁🏻",
  2943. "💁🏼‍♀️",
  2944. "💁🏼‍♂️",
  2945. "💁🏼",
  2946. "💁🏽‍♀️",
  2947. "💁🏽‍♂️",
  2948. "💁🏽",
  2949. "💁🏾‍♀️",
  2950. "💁🏾‍♂️",
  2951. "💁🏾",
  2952. "💁🏿‍♀️",
  2953. "💁🏿‍♂️",
  2954. "💁🏿",
  2955. "💁‍♀️",
  2956. "💁‍♂️",
  2957. "💁",
  2958. "💂🏻‍♀️",
  2959. "💂🏻‍♂️",
  2960. "💂🏻",
  2961. "💂🏼‍♀️",
  2962. "💂🏼‍♂️",
  2963. "💂🏼",
  2964. "💂🏽‍♀️",
  2965. "💂🏽‍♂️",
  2966. "💂🏽",
  2967. "💂🏾‍♀️",
  2968. "💂🏾‍♂️",
  2969. "💂🏾",
  2970. "💂🏿‍♀️",
  2971. "💂🏿‍♂️",
  2972. "💂🏿",
  2973. "💂‍♀️",
  2974. "💂‍♂️",
  2975. "💂",
  2976. "💃🏻",
  2977. "💃🏼",
  2978. "💃🏽",
  2979. "💃🏾",
  2980. "💃🏿",
  2981. "💃",
  2982. "💄",
  2983. "💅🏻",
  2984. "💅🏼",
  2985. "💅🏽",
  2986. "💅🏾",
  2987. "💅🏿",
  2988. "💅",
  2989. "💆🏻‍♀️",
  2990. "💆🏻‍♂️",
  2991. "💆🏻",
  2992. "💆🏼‍♀️",
  2993. "💆🏼‍♂️",
  2994. "💆🏼",
  2995. "💆🏽‍♀️",
  2996. "💆🏽‍♂️",
  2997. "💆🏽",
  2998. "💆🏾‍♀️",
  2999. "💆🏾‍♂️",
  3000. "💆🏾",
  3001. "💆🏿‍♀️",
  3002. "💆🏿‍♂️",
  3003. "💆🏿",
  3004. "💆‍♀️",
  3005. "💆‍♂️",
  3006. "💆",
  3007. "💇🏻‍♀️",
  3008. "💇🏻‍♂️",
  3009. "💇🏻",
  3010. "💇🏼‍♀️",
  3011. "💇🏼‍♂️",
  3012. "💇🏼",
  3013. "💇🏽‍♀️",
  3014. "💇🏽‍♂️",
  3015. "💇🏽",
  3016. "💇🏾‍♀️",
  3017. "💇🏾‍♂️",
  3018. "💇🏾",
  3019. "💇🏿‍♀️",
  3020. "💇🏿‍♂️",
  3021. "💇🏿",
  3022. "💇‍♀️",
  3023. "💇‍♂️",
  3024. "💇",
  3025. "💈",
  3026. "💉",
  3027. "💊",
  3028. "💋",
  3029. "💌",
  3030. "💍",
  3031. "💎",
  3032. "💏",
  3033. "💐",
  3034. "💑",
  3035. "💒",
  3036. "💓",
  3037. "💔",
  3038. "💕",
  3039. "💖",
  3040. "💗",
  3041. "💘",
  3042. "💙",
  3043. "💚",
  3044. "💛",
  3045. "💜",
  3046. "💝",
  3047. "💞",
  3048. "💟",
  3049. "💠",
  3050. "💡",
  3051. "💢",
  3052. "💣",
  3053. "💤",
  3054. "💥",
  3055. "💦",
  3056. "💧",
  3057. "💨",
  3058. "💩",
  3059. "💪🏻",
  3060. "💪🏼",
  3061. "💪🏽",
  3062. "💪🏾",
  3063. "💪🏿",
  3064. "💪",
  3065. "💫",
  3066. "💬",
  3067. "💭",
  3068. "💮",
  3069. "💯",
  3070. "💰",
  3071. "💱",
  3072. "💲",
  3073. "💳",
  3074. "💴",
  3075. "💵",
  3076. "💶",
  3077. "💷",
  3078. "💸",
  3079. "💹",
  3080. "💺",
  3081. "💻",
  3082. "💼",
  3083. "💽",
  3084. "💾",
  3085. "💿",
  3086. "📀",
  3087. "📁",
  3088. "📂",
  3089. "📃",
  3090. "📄",
  3091. "📅",
  3092. "📆",
  3093. "📇",
  3094. "📈",
  3095. "📉",
  3096. "📊",
  3097. "📋",
  3098. "📌",
  3099. "📍",
  3100. "📎",
  3101. "📏",
  3102. "📐",
  3103. "📑",
  3104. "📒",
  3105. "📓",
  3106. "📔",
  3107. "📕",
  3108. "📖",
  3109. "📗",
  3110. "📘",
  3111. "📙",
  3112. "📚",
  3113. "📛",
  3114. "📜",
  3115. "📝",
  3116. "📞",
  3117. "📟",
  3118. "📠",
  3119. "📡",
  3120. "📢",
  3121. "📣",
  3122. "📤",
  3123. "📥",
  3124. "📦",
  3125. "📧",
  3126. "📨",
  3127. "📩",
  3128. "📪",
  3129. "📫",
  3130. "📬",
  3131. "📭",
  3132. "📮",
  3133. "📯",
  3134. "📰",
  3135. "📱",
  3136. "📲",
  3137. "📳",
  3138. "📴",
  3139. "📵",
  3140. "📶",
  3141. "📷",
  3142. "📸",
  3143. "📹",
  3144. "📺",
  3145. "📻",
  3146. "📼",
  3147. "📽️",
  3148. "📿",
  3149. "🔀",
  3150. "🔁",
  3151. "🔂",
  3152. "🔃",
  3153. "🔄",
  3154. "🔅",
  3155. "🔆",
  3156. "🔇",
  3157. "🔈",
  3158. "🔉",
  3159. "🔊",
  3160. "🔋",
  3161. "🔌",
  3162. "🔍",
  3163. "🔎",
  3164. "🔏",
  3165. "🔐",
  3166. "🔑",
  3167. "🔒",
  3168. "🔓",
  3169. "🔔",
  3170. "🔕",
  3171. "🔖",
  3172. "🔗",
  3173. "🔘",
  3174. "🔙",
  3175. "🔚",
  3176. "🔛",
  3177. "🔜",
  3178. "🔝",
  3179. "🔞",
  3180. "🔟",
  3181. "🔠",
  3182. "🔡",
  3183. "🔢",
  3184. "🔣",
  3185. "🔤",
  3186. "🔥",
  3187. "🔦",
  3188. "🔧",
  3189. "🔨",
  3190. "🔩",
  3191. "🔪",
  3192. "🔫",
  3193. "🔬",
  3194. "🔭",
  3195. "🔮",
  3196. "🔯",
  3197. "🔰",
  3198. "🔱",
  3199. "🔲",
  3200. "🔳",
  3201. "🔴",
  3202. "🔵",
  3203. "🔶",
  3204. "🔷",
  3205. "🔸",
  3206. "🔹",
  3207. "🔺",
  3208. "🔻",
  3209. "🔼",
  3210. "🔽",
  3211. "🕉️",
  3212. "🕊️",
  3213. "🕋",
  3214. "🕌",
  3215. "🕍",
  3216. "🕎",
  3217. "🕐",
  3218. "🕑",
  3219. "🕒",
  3220. "🕓",
  3221. "🕔",
  3222. "🕕",
  3223. "🕖",
  3224. "🕗",
  3225. "🕘",
  3226. "🕙",
  3227. "🕚",
  3228. "🕛",
  3229. "🕜",
  3230. "🕝",
  3231. "🕞",
  3232. "🕟",
  3233. "🕠",
  3234. "🕡",
  3235. "🕢",
  3236. "🕣",
  3237. "🕤",
  3238. "🕥",
  3239. "🕦",
  3240. "🕧",
  3241. "🕯️",
  3242. "🕰️",
  3243. "🕳️",
  3244. "🕴🏻‍♀️",
  3245. "🕴🏻‍♂️",
  3246. "🕴🏻",
  3247. "🕴🏼‍♀️",
  3248. "🕴🏼‍♂️",
  3249. "🕴🏼",
  3250. "🕴🏽‍♀️",
  3251. "🕴🏽‍♂️",
  3252. "🕴🏽",
  3253. "🕴🏾‍♀️",
  3254. "🕴🏾‍♂️",
  3255. "🕴🏾",
  3256. "🕴🏿‍♀️",
  3257. "🕴🏿‍♂️",
  3258. "🕴🏿",
  3259. "🕴️‍♀️",
  3260. "🕴️‍♂️",
  3261. "🕴️",
  3262. "🕵🏻‍♀️",
  3263. "🕵🏻‍♂️",
  3264. "🕵🏻",
  3265. "🕵🏼‍♀️",
  3266. "🕵🏼‍♂️",
  3267. "🕵🏼",
  3268. "🕵🏽‍♀️",
  3269. "🕵🏽‍♂️",
  3270. "🕵🏽",
  3271. "🕵🏾‍♀️",
  3272. "🕵🏾‍♂️",
  3273. "🕵🏾",
  3274. "🕵🏿‍♀️",
  3275. "🕵🏿‍♂️",
  3276. "🕵🏿",
  3277. "🕵️‍♀️",
  3278. "🕵️‍♂️",
  3279. "🕵️",
  3280. "🕶️",
  3281. "🕷️",
  3282. "🕸️",
  3283. "🕹️",
  3284. "🕺🏻",
  3285. "🕺🏼",
  3286. "🕺🏽",
  3287. "🕺🏾",
  3288. "🕺🏿",
  3289. "🕺",
  3290. "🖇️",
  3291. "🖊️",
  3292. "🖋️",
  3293. "🖌️",
  3294. "🖍️",
  3295. "🖐🏻",
  3296. "🖐🏼",
  3297. "🖐🏽",
  3298. "🖐🏾",
  3299. "🖐🏿",
  3300. "🖐️",
  3301. "🖕🏻",
  3302. "🖕🏼",
  3303. "🖕🏽",
  3304. "🖕🏾",
  3305. "🖕🏿",
  3306. "🖕",
  3307. "🖖🏻",
  3308. "🖖🏼",
  3309. "🖖🏽",
  3310. "🖖🏾",
  3311. "🖖🏿",
  3312. "🖖",
  3313. "🖤",
  3314. "🖥️",
  3315. "🖨️",
  3316. "🖱️",
  3317. "🖲️",
  3318. "🖼️",
  3319. "🗂️",
  3320. "🗃️",
  3321. "🗄️",
  3322. "🗑️",
  3323. "🗒️",
  3324. "🗓️",
  3325. "🗜️",
  3326. "🗝️",
  3327. "🗞️",
  3328. "🗡️",
  3329. "🗣️",
  3330. "🗨️",
  3331. "🗯️",
  3332. "🗳️",
  3333. "🗺️",
  3334. "🗻",
  3335. "🗼",
  3336. "🗽",
  3337. "🗾",
  3338. "🗿",
  3339. "😀",
  3340. "😁",
  3341. "😂",
  3342. "😃",
  3343. "😄",
  3344. "😅",
  3345. "😆",
  3346. "😇",
  3347. "😈",
  3348. "😉",
  3349. "😊",
  3350. "😋",
  3351. "😌",
  3352. "😍",
  3353. "😎",
  3354. "😏",
  3355. "😐",
  3356. "😑",
  3357. "😒",
  3358. "😓",
  3359. "😔",
  3360. "😕",
  3361. "😖",
  3362. "😗",
  3363. "😘",
  3364. "😙",
  3365. "😚",
  3366. "😛",
  3367. "😜",
  3368. "😝",
  3369. "😞",
  3370. "😟",
  3371. "😠",
  3372. "😡",
  3373. "😢",
  3374. "😣",
  3375. "😤",
  3376. "😥",
  3377. "😦",
  3378. "😧",
  3379. "😨",
  3380. "😩",
  3381. "😪",
  3382. "😫",
  3383. "😬",
  3384. "😭",
  3385. "😮",
  3386. "😯",
  3387. "😰",
  3388. "😱",
  3389. "😲",
  3390. "😳",
  3391. "😴",
  3392. "😵",
  3393. "😶",
  3394. "😷",
  3395. "😸",
  3396. "😹",
  3397. "😺",
  3398. "😻",
  3399. "😼",
  3400. "😽",
  3401. "😾",
  3402. "😿",
  3403. "🙀",
  3404. "🙁",
  3405. "🙂",
  3406. "🙃",
  3407. "🙄",
  3408. "🙅🏻‍♀️",
  3409. "🙅🏻‍♂️",
  3410. "🙅🏻",
  3411. "🙅🏼‍♀️",
  3412. "🙅🏼‍♂️",
  3413. "🙅🏼",
  3414. "🙅🏽‍♀️",
  3415. "🙅🏽‍♂️",
  3416. "🙅🏽",
  3417. "🙅🏾‍♀️",
  3418. "🙅🏾‍♂️",
  3419. "🙅🏾",
  3420. "🙅🏿‍♀️",
  3421. "🙅🏿‍♂️",
  3422. "🙅🏿",
  3423. "🙅‍♀️",
  3424. "🙅‍♂️",
  3425. "🙅",
  3426. "🙆🏻‍♀️",
  3427. "🙆🏻‍♂️",
  3428. "🙆🏻",
  3429. "🙆🏼‍♀️",
  3430. "🙆🏼‍♂️",
  3431. "🙆🏼",
  3432. "🙆🏽‍♀️",
  3433. "🙆🏽‍♂️",
  3434. "🙆🏽",
  3435. "🙆🏾‍♀️",
  3436. "🙆🏾‍♂️",
  3437. "🙆🏾",
  3438. "🙆🏿‍♀️",
  3439. "🙆🏿‍♂️",
  3440. "🙆🏿",
  3441. "🙆‍♀️",
  3442. "🙆‍♂️",
  3443. "🙆",
  3444. "🙇🏻‍♀️",
  3445. "🙇🏻‍♂️",
  3446. "🙇🏻",
  3447. "🙇🏼‍♀️",
  3448. "🙇🏼‍♂️",
  3449. "🙇🏼",
  3450. "🙇🏽‍♀️",
  3451. "🙇🏽‍♂️",
  3452. "🙇🏽",
  3453. "🙇🏾‍♀️",
  3454. "🙇🏾‍♂️",
  3455. "🙇🏾",
  3456. "🙇🏿‍♀️",
  3457. "🙇🏿‍♂️",
  3458. "🙇🏿",
  3459. "🙇‍♀️",
  3460. "🙇‍♂️",
  3461. "🙇",
  3462. "🙈",
  3463. "🙉",
  3464. "🙊",
  3465. "🙋🏻‍♀️",
  3466. "🙋🏻‍♂️",
  3467. "🙋🏻",
  3468. "🙋🏼‍♀️",
  3469. "🙋🏼‍♂️",
  3470. "🙋🏼",
  3471. "🙋🏽‍♀️",
  3472. "🙋🏽‍♂️",
  3473. "🙋🏽",
  3474. "🙋🏾‍♀️",
  3475. "🙋🏾‍♂️",
  3476. "🙋🏾",
  3477. "🙋🏿‍♀️",
  3478. "🙋🏿‍♂️",
  3479. "🙋🏿",
  3480. "🙋‍♀️",
  3481. "🙋‍♂️",
  3482. "🙋",
  3483. "🙌🏻",
  3484. "🙌🏼",
  3485. "🙌🏽",
  3486. "🙌🏾",
  3487. "🙌🏿",
  3488. "🙌",
  3489. "🙍🏻‍♀️",
  3490. "🙍🏻‍♂️",
  3491. "🙍🏻",
  3492. "🙍🏼‍♀️",
  3493. "🙍🏼‍♂️",
  3494. "🙍🏼",
  3495. "🙍🏽‍♀️",
  3496. "🙍🏽‍♂️",
  3497. "🙍🏽",
  3498. "🙍🏾‍♀️",
  3499. "🙍🏾‍♂️",
  3500. "🙍🏾",
  3501. "🙍🏿‍♀️",
  3502. "🙍🏿‍♂️",
  3503. "🙍🏿",
  3504. "🙍‍♀️",
  3505. "🙍‍♂️",
  3506. "🙍",
  3507. "🙎🏻‍♀️",
  3508. "🙎🏻‍♂️",
  3509. "🙎🏻",
  3510. "🙎🏼‍♀️",
  3511. "🙎🏼‍♂️",
  3512. "🙎🏼",
  3513. "🙎🏽‍♀️",
  3514. "🙎🏽‍♂️",
  3515. "🙎🏽",
  3516. "🙎🏾‍♀️",
  3517. "🙎🏾‍♂️",
  3518. "🙎🏾",
  3519. "🙎🏿‍♀️",
  3520. "🙎🏿‍♂️",
  3521. "🙎🏿",
  3522. "🙎‍♀️",
  3523. "🙎‍♂️",
  3524. "🙎",
  3525. "🙏🏻",
  3526. "🙏🏼",
  3527. "🙏🏽",
  3528. "🙏🏾",
  3529. "🙏🏿",
  3530. "🙏",
  3531. "🚀",
  3532. "🚁",
  3533. "🚂",
  3534. "🚃",
  3535. "🚄",
  3536. "🚅",
  3537. "🚆",
  3538. "🚇",
  3539. "🚈",
  3540. "🚉",
  3541. "🚊",
  3542. "🚋",
  3543. "🚌",
  3544. "🚍",
  3545. "🚎",
  3546. "🚏",
  3547. "🚐",
  3548. "🚑",
  3549. "🚒",
  3550. "🚓",
  3551. "🚔",
  3552. "🚕",
  3553. "🚖",
  3554. "🚗",
  3555. "🚘",
  3556. "🚙",
  3557. "🚚",
  3558. "🚛",
  3559. "🚜",
  3560. "🚝",
  3561. "🚞",
  3562. "🚟",
  3563. "🚠",
  3564. "🚡",
  3565. "🚢",
  3566. "🚣🏻‍♀️",
  3567. "🚣🏻‍♂️",
  3568. "🚣🏻",
  3569. "🚣🏼‍♀️",
  3570. "🚣🏼‍♂️",
  3571. "🚣🏼",
  3572. "🚣🏽‍♀️",
  3573. "🚣🏽‍♂️",
  3574. "🚣🏽",
  3575. "🚣🏾‍♀️",
  3576. "🚣🏾‍♂️",
  3577. "🚣🏾",
  3578. "🚣🏿‍♀️",
  3579. "🚣🏿‍♂️",
  3580. "🚣🏿",
  3581. "🚣‍♀️",
  3582. "🚣‍♂️",
  3583. "🚣",
  3584. "🚤",
  3585. "🚥",
  3586. "🚦",
  3587. "🚧",
  3588. "🚨",
  3589. "🚩",
  3590. "🚪",
  3591. "🚫",
  3592. "🚬",
  3593. "🚭",
  3594. "🚮",
  3595. "🚯",
  3596. "🚰",
  3597. "🚱",
  3598. "🚲",
  3599. "🚳",
  3600. "🚴🏻‍♀️",
  3601. "🚴🏻‍♂️",
  3602. "🚴🏻",
  3603. "🚴🏼‍♀️",
  3604. "🚴🏼‍♂️",
  3605. "🚴🏼",
  3606. "🚴🏽‍♀️",
  3607. "🚴🏽‍♂️",
  3608. "🚴🏽",
  3609. "🚴🏾‍♀️",
  3610. "🚴🏾‍♂️",
  3611. "🚴🏾",
  3612. "🚴🏿‍♀️",
  3613. "🚴🏿‍♂️",
  3614. "🚴🏿",
  3615. "🚴‍♀️",
  3616. "🚴‍♂️",
  3617. "🚴",
  3618. "🚵🏻‍♀️",
  3619. "🚵🏻‍♂️",
  3620. "🚵🏻",
  3621. "🚵🏼‍♀️",
  3622. "🚵🏼‍♂️",
  3623. "🚵🏼",
  3624. "🚵🏽‍♀️",
  3625. "🚵🏽‍♂️",
  3626. "🚵🏽",
  3627. "🚵🏾‍♀️",
  3628. "🚵🏾‍♂️",
  3629. "🚵🏾",
  3630. "🚵🏿‍♀️",
  3631. "🚵🏿‍♂️",
  3632. "🚵🏿",
  3633. "🚵‍♀️",
  3634. "🚵‍♂️",
  3635. "🚵",
  3636. "🚶🏻‍♀️",
  3637. "🚶🏻‍♂️",
  3638. "🚶🏻",
  3639. "🚶🏼‍♀️",
  3640. "🚶🏼‍♂️",
  3641. "🚶🏼",
  3642. "🚶🏽‍♀️",
  3643. "🚶🏽‍♂️",
  3644. "🚶🏽",
  3645. "🚶🏾‍♀️",
  3646. "🚶🏾‍♂️",
  3647. "🚶🏾",
  3648. "🚶🏿‍♀️",
  3649. "🚶🏿‍♂️",
  3650. "🚶🏿",
  3651. "🚶‍♀️",
  3652. "🚶‍♂️",
  3653. "🚶",
  3654. "🚷",
  3655. "🚸",
  3656. "🚹",
  3657. "🚺",
  3658. "🚻",
  3659. "🚼",
  3660. "🚽",
  3661. "🚾",
  3662. "🚿",
  3663. "🛀🏻",
  3664. "🛀🏼",
  3665. "🛀🏽",
  3666. "🛀🏾",
  3667. "🛀🏿",
  3668. "🛀",
  3669. "🛁",
  3670. "🛂",
  3671. "🛃",
  3672. "🛄",
  3673. "🛅",
  3674. "🛋️",
  3675. "🛌🏻",
  3676. "🛌🏼",
  3677. "🛌🏽",
  3678. "🛌🏾",
  3679. "🛌🏿",
  3680. "🛌",
  3681. "🛍️",
  3682. "🛎️",
  3683. "🛏️",
  3684. "🛐",
  3685. "🛑",
  3686. "🛒",
  3687. "🛕",
  3688. "🛠️",
  3689. "🛡️",
  3690. "🛢️",
  3691. "🛣️",
  3692. "🛤️",
  3693. "🛥️",
  3694. "🛩️",
  3695. "🛫",
  3696. "🛬",
  3697. "🛰️",
  3698. "🛳️",
  3699. "🛴",
  3700. "🛵",
  3701. "🛶",
  3702. "🛷",
  3703. "🛸",
  3704. "🛹",
  3705. "🛺",
  3706. "🟠",
  3707. "🟡",
  3708. "🟢",
  3709. "🟣",
  3710. "🟤",
  3711. "🟥",
  3712. "🟦",
  3713. "🟧",
  3714. "🟨",
  3715. "🟩",
  3716. "🟪",
  3717. "🟫",
  3718. "🤍",
  3719. "🤎",
  3720. "🤏🏻",
  3721. "🤏🏼",
  3722. "🤏🏽",
  3723. "🤏🏾",
  3724. "🤏🏿",
  3725. "🤏",
  3726. "🤐",
  3727. "🤑",
  3728. "🤒",
  3729. "🤓",
  3730. "🤔",
  3731. "🤕",
  3732. "🤖",
  3733. "🤗",
  3734. "🤘🏻",
  3735. "🤘🏼",
  3736. "🤘🏽",
  3737. "🤘🏾",
  3738. "🤘🏿",
  3739. "🤘",
  3740. "🤙🏻",
  3741. "🤙🏼",
  3742. "🤙🏽",
  3743. "🤙🏾",
  3744. "🤙🏿",
  3745. "🤙",
  3746. "🤚🏻",
  3747. "🤚🏼",
  3748. "🤚🏽",
  3749. "🤚🏾",
  3750. "🤚🏿",
  3751. "🤚",
  3752. "🤛🏻",
  3753. "🤛🏼",
  3754. "🤛🏽",
  3755. "🤛🏾",
  3756. "🤛🏿",
  3757. "🤛",
  3758. "🤜🏻",
  3759. "🤜🏼",
  3760. "🤜🏽",
  3761. "🤜🏾",
  3762. "🤜🏿",
  3763. "🤜",
  3764. "🤝",
  3765. "🤞🏻",
  3766. "🤞🏼",
  3767. "🤞🏽",
  3768. "🤞🏾",
  3769. "🤞🏿",
  3770. "🤞",
  3771. "🤟🏻",
  3772. "🤟🏼",
  3773. "🤟🏽",
  3774. "🤟🏾",
  3775. "🤟🏿",
  3776. "🤟",
  3777. "🤠",
  3778. "🤡",
  3779. "🤢",
  3780. "🤣",
  3781. "🤤",
  3782. "🤥",
  3783. "🤦🏻‍♀️",
  3784. "🤦🏻‍♂️",
  3785. "🤦🏻",
  3786. "🤦🏼‍♀️",
  3787. "🤦🏼‍♂️",
  3788. "🤦🏼",
  3789. "🤦🏽‍♀️",
  3790. "🤦🏽‍♂️",
  3791. "🤦🏽",
  3792. "🤦🏾‍♀️",
  3793. "🤦🏾‍♂️",
  3794. "🤦🏾",
  3795. "🤦🏿‍♀️",
  3796. "🤦🏿‍♂️",
  3797. "🤦🏿",
  3798. "🤦‍♀️",
  3799. "🤦‍♂️",
  3800. "🤦",
  3801. "🤧",
  3802. "🤨",
  3803. "🤩",
  3804. "🤪",
  3805. "🤫",
  3806. "🤬",
  3807. "🤭",
  3808. "🤮",
  3809. "🤯",
  3810. "🤰🏻",
  3811. "🤰🏼",
  3812. "🤰🏽",
  3813. "🤰🏾",
  3814. "🤰🏿",
  3815. "🤰",
  3816. "🤱🏻",
  3817. "🤱🏼",
  3818. "🤱🏽",
  3819. "🤱🏾",
  3820. "🤱🏿",
  3821. "🤱",
  3822. "🤲🏻",
  3823. "🤲🏼",
  3824. "🤲🏽",
  3825. "🤲🏾",
  3826. "🤲🏿",
  3827. "🤲",
  3828. "🤳🏻",
  3829. "🤳🏼",
  3830. "🤳🏽",
  3831. "🤳🏾",
  3832. "🤳🏿",
  3833. "🤳",
  3834. "🤴🏻",
  3835. "🤴🏼",
  3836. "🤴🏽",
  3837. "🤴🏾",
  3838. "🤴🏿",
  3839. "🤴",
  3840. "🤵🏻‍♀️",
  3841. "🤵🏻‍♂️",
  3842. "🤵🏻",
  3843. "🤵🏼‍♀️",
  3844. "🤵🏼‍♂️",
  3845. "🤵🏼",
  3846. "🤵🏽‍♀️",
  3847. "🤵🏽‍♂️",
  3848. "🤵🏽",
  3849. "🤵🏾‍♀️",
  3850. "🤵🏾‍♂️",
  3851. "🤵🏾",
  3852. "🤵🏿‍♀️",
  3853. "🤵🏿‍♂️",
  3854. "🤵🏿",
  3855. "🤵‍♀️",
  3856. "🤵‍♂️",
  3857. "🤵",
  3858. "🤶🏻",
  3859. "🤶🏼",
  3860. "🤶🏽",
  3861. "🤶🏾",
  3862. "🤶🏿",
  3863. "🤶",
  3864. "🤷🏻‍♀️",
  3865. "🤷🏻‍♂️",
  3866. "🤷🏻",
  3867. "🤷🏼‍♀️",
  3868. "🤷🏼‍♂️",
  3869. "🤷🏼",
  3870. "🤷🏽‍♀️",
  3871. "🤷🏽‍♂️",
  3872. "🤷🏽",
  3873. "🤷🏾‍♀️",
  3874. "🤷🏾‍♂️",
  3875. "🤷🏾",
  3876. "🤷🏿‍♀️",
  3877. "🤷🏿‍♂️",
  3878. "🤷🏿",
  3879. "🤷‍♀️",
  3880. "🤷‍♂️",
  3881. "🤷",
  3882. "🤸🏻‍♀️",
  3883. "🤸🏻‍♂️",
  3884. "🤸🏻",
  3885. "🤸🏼‍♀️",
  3886. "🤸🏼‍♂️",
  3887. "🤸🏼",
  3888. "🤸🏽‍♀️",
  3889. "🤸🏽‍♂️",
  3890. "🤸🏽",
  3891. "🤸🏾‍♀️",
  3892. "🤸🏾‍♂️",
  3893. "🤸🏾",
  3894. "🤸🏿‍♀️",
  3895. "🤸🏿‍♂️",
  3896. "🤸🏿",
  3897. "🤸‍♀️",
  3898. "🤸‍♂️",
  3899. "🤸",
  3900. "🤹🏻‍♀️",
  3901. "🤹🏻‍♂️",
  3902. "🤹🏻",
  3903. "🤹🏼‍♀️",
  3904. "🤹🏼‍♂️",
  3905. "🤹🏼",
  3906. "🤹🏽‍♀️",
  3907. "🤹🏽‍♂️",
  3908. "🤹🏽",
  3909. "🤹🏾‍♀️",
  3910. "🤹🏾‍♂️",
  3911. "🤹🏾",
  3912. "🤹🏿‍♀️",
  3913. "🤹🏿‍♂️",
  3914. "🤹🏿",
  3915. "🤹‍♀️",
  3916. "🤹‍♂️",
  3917. "🤹",
  3918. "🤺",
  3919. "🤼‍♀️",
  3920. "🤼‍♂️",
  3921. "🤼",
  3922. "🤽🏻‍♀️",
  3923. "🤽🏻‍♂️",
  3924. "🤽🏻",
  3925. "🤽🏼‍♀️",
  3926. "🤽🏼‍♂️",
  3927. "🤽🏼",
  3928. "🤽🏽‍♀️",
  3929. "🤽🏽‍♂️",
  3930. "🤽🏽",
  3931. "🤽🏾‍♀️",
  3932. "🤽🏾‍♂️",
  3933. "🤽🏾",
  3934. "🤽🏿‍♀️",
  3935. "🤽🏿‍♂️",
  3936. "🤽🏿",
  3937. "🤽‍♀️",
  3938. "🤽‍♂️",
  3939. "🤽",
  3940. "🤾🏻‍♀️",
  3941. "🤾🏻‍♂️",
  3942. "🤾🏻",
  3943. "🤾🏼‍♀️",
  3944. "🤾🏼‍♂️",
  3945. "🤾🏼",
  3946. "🤾🏽‍♀️",
  3947. "🤾🏽‍♂️",
  3948. "🤾🏽",
  3949. "🤾🏾‍♀️",
  3950. "🤾🏾‍♂️",
  3951. "🤾🏾",
  3952. "🤾🏿‍♀️",
  3953. "🤾🏿‍♂️",
  3954. "🤾🏿",
  3955. "🤾‍♀️",
  3956. "🤾‍♂️",
  3957. "🤾",
  3958. "🤿",
  3959. "🥀",
  3960. "🥁",
  3961. "🥂",
  3962. "🥃",
  3963. "🥄",
  3964. "🥅",
  3965. "🥇",
  3966. "🥈",
  3967. "🥉",
  3968. "🥊",
  3969. "🥋",
  3970. "🥌",
  3971. "🥍",
  3972. "🥎",
  3973. "🥏",
  3974. "🥐",
  3975. "🥑",
  3976. "🥒",
  3977. "🥓",
  3978. "🥔",
  3979. "🥕",
  3980. "🥖",
  3981. "🥗",
  3982. "🥘",
  3983. "🥙",
  3984. "🥚",
  3985. "🥛",
  3986. "🥜",
  3987. "🥝",
  3988. "🥞",
  3989. "🥟",
  3990. "🥠",
  3991. "🥡",
  3992. "🥢",
  3993. "🥣",
  3994. "🥤",
  3995. "🥥",
  3996. "🥦",
  3997. "🥧",
  3998. "🥨",
  3999. "🥩",
  4000. "🥪",
  4001. "🥫",
  4002. "🥬",
  4003. "🥭",
  4004. "🥮",
  4005. "🥯",
  4006. "🥰",
  4007. "🥱",
  4008. "🥳",
  4009. "🥴",
  4010. "🥵",
  4011. "🥶",
  4012. "🥺",
  4013. "🥻",
  4014. "🥼",
  4015. "🥽",
  4016. "🥾",
  4017. "🥿",
  4018. "🦀",
  4019. "🦁",
  4020. "🦂",
  4021. "🦃",
  4022. "🦄",
  4023. "🦅",
  4024. "🦆",
  4025. "🦇",
  4026. "🦈",
  4027. "🦉",
  4028. "🦊",
  4029. "🦋",
  4030. "🦌",
  4031. "🦍",
  4032. "🦎",
  4033. "🦏",
  4034. "🦐",
  4035. "🦑",
  4036. "🦒",
  4037. "🦓",
  4038. "🦔",
  4039. "🦕",
  4040. "🦖",
  4041. "🦗",
  4042. "🦘",
  4043. "🦙",
  4044. "🦚",
  4045. "🦛",
  4046. "🦜",
  4047. "🦝",
  4048. "🦞",
  4049. "🦟",
  4050. "🦠",
  4051. "🦡",
  4052. "🦢",
  4053. "🦥",
  4054. "🦦",
  4055. "🦧",
  4056. "🦨",
  4057. "🦩",
  4058. "🦪",
  4059. "🦮",
  4060. "🦯",
  4061. "🦰",
  4062. "🦱",
  4063. "🦲",
  4064. "🦳",
  4065. "🦴",
  4066. "🦵🏻",
  4067. "🦵🏼",
  4068. "🦵🏽",
  4069. "🦵🏾",
  4070. "🦵🏿",
  4071. "🦵",
  4072. "🦶🏻",
  4073. "🦶🏼",
  4074. "🦶🏽",
  4075. "🦶🏾",
  4076. "🦶🏿",
  4077. "🦶",
  4078. "🦷",
  4079. "🦸🏻‍♀️",
  4080. "🦸🏻‍♂️",
  4081. "🦸🏻",
  4082. "🦸🏼‍♀️",
  4083. "🦸🏼‍♂️",
  4084. "🦸🏼",
  4085. "🦸🏽‍♀️",
  4086. "🦸🏽‍♂️",
  4087. "🦸🏽",
  4088. "🦸🏾‍♀️",
  4089. "🦸🏾‍♂️",
  4090. "🦸🏾",
  4091. "🦸🏿‍♀️",
  4092. "🦸🏿‍♂️",
  4093. "🦸🏿",
  4094. "🦸‍♀️",
  4095. "🦸‍♂️",
  4096. "🦸",
  4097. "🦹🏻‍♀️",
  4098. "🦹🏻‍♂️",
  4099. "🦹🏻",
  4100. "🦹🏼‍♀️",
  4101. "🦹🏼‍♂️",
  4102. "🦹🏼",
  4103. "🦹🏽‍♀️",
  4104. "🦹🏽‍♂️",
  4105. "🦹🏽",
  4106. "🦹🏾‍♀️",
  4107. "🦹🏾‍♂️",
  4108. "🦹🏾",
  4109. "🦹🏿‍♀️",
  4110. "🦹🏿‍♂️",
  4111. "🦹🏿",
  4112. "🦹‍♀️",
  4113. "🦹‍♂️",
  4114. "🦹",
  4115. "🦺",
  4116. "🦻🏻",
  4117. "🦻🏼",
  4118. "🦻🏽",
  4119. "🦻🏾",
  4120. "🦻🏿",
  4121. "🦻",
  4122. "🦼",
  4123. "🦽",
  4124. "🦾",
  4125. "🦿",
  4126. "🧀",
  4127. "🧁",
  4128. "🧂",
  4129. "🧃",
  4130. "🧄",
  4131. "🧅",
  4132. "🧆",
  4133. "🧇",
  4134. "🧈",
  4135. "🧉",
  4136. "🧊",
  4137. "🧍🏻‍♀️",
  4138. "🧍🏻‍♂️",
  4139. "🧍🏻",
  4140. "🧍🏼‍♀️",
  4141. "🧍🏼‍♂️",
  4142. "🧍🏼",
  4143. "🧍🏽‍♀️",
  4144. "🧍🏽‍♂️",
  4145. "🧍🏽",
  4146. "🧍🏾‍♀️",
  4147. "🧍🏾‍♂️",
  4148. "🧍🏾",
  4149. "🧍🏿‍♀️",
  4150. "🧍🏿‍♂️",
  4151. "🧍🏿",
  4152. "🧍‍♀️",
  4153. "🧍‍♂️",
  4154. "🧍",
  4155. "🧎🏻‍♀️",
  4156. "🧎🏻‍♂️",
  4157. "🧎🏻",
  4158. "🧎🏼‍♀️",
  4159. "🧎🏼‍♂️",
  4160. "🧎🏼",
  4161. "🧎🏽‍♀️",
  4162. "🧎🏽‍♂️",
  4163. "🧎🏽",
  4164. "🧎🏾‍♀️",
  4165. "🧎🏾‍♂️",
  4166. "🧎🏾",
  4167. "🧎🏿‍♀️",
  4168. "🧎🏿‍♂️",
  4169. "🧎🏿",
  4170. "🧎‍♀️",
  4171. "🧎‍♂️",
  4172. "🧎",
  4173. "🧏🏻‍♀️",
  4174. "🧏🏻‍♂️",
  4175. "🧏🏻",
  4176. "🧏🏼‍♀️",
  4177. "🧏🏼‍♂️",
  4178. "🧏🏼",
  4179. "🧏🏽‍♀️",
  4180. "🧏🏽‍♂️",
  4181. "🧏🏽",
  4182. "🧏🏾‍♀️",
  4183. "🧏🏾‍♂️",
  4184. "🧏🏾",
  4185. "🧏🏿‍♀️",
  4186. "🧏🏿‍♂️",
  4187. "🧏🏿",
  4188. "🧏‍♀️",
  4189. "🧏‍♂️",
  4190. "🧏",
  4191. "🧐",
  4192. "🧑🏻‍🤝‍🧑🏻",
  4193. "🧑🏻",
  4194. "🧑🏼‍🤝‍🧑🏻",
  4195. "🧑🏼‍🤝‍🧑🏼",
  4196. "🧑🏼",
  4197. "🧑🏽‍🤝‍🧑🏻",
  4198. "🧑🏽‍🤝‍🧑🏼",
  4199. "🧑🏽‍🤝‍🧑🏽",
  4200. "🧑🏽",
  4201. "🧑🏾‍🤝‍🧑🏻",
  4202. "🧑🏾‍🤝‍🧑🏼",
  4203. "🧑🏾‍🤝‍🧑🏽",
  4204. "🧑🏾‍🤝‍🧑🏾",
  4205. "🧑🏾",
  4206. "🧑🏿‍🤝‍🧑🏻",
  4207. "🧑🏿‍🤝‍🧑🏼",
  4208. "🧑🏿‍🤝‍🧑🏽",
  4209. "🧑🏿‍🤝‍🧑🏾",
  4210. "🧑🏿‍🤝‍🧑🏿",
  4211. "🧑🏿",
  4212. "🧑‍🤝‍🧑",
  4213. "🧑",
  4214. "🧒🏻",
  4215. "🧒🏼",
  4216. "🧒🏽",
  4217. "🧒🏾",
  4218. "🧒🏿",
  4219. "🧒",
  4220. "🧓🏻",
  4221. "🧓🏼",
  4222. "🧓🏽",
  4223. "🧓🏾",
  4224. "🧓🏿",
  4225. "🧓",
  4226. "🧔🏻",
  4227. "🧔🏼",
  4228. "🧔🏽",
  4229. "🧔🏾",
  4230. "🧔🏿",
  4231. "🧔",
  4232. "🧕🏻",
  4233. "🧕🏼",
  4234. "🧕🏽",
  4235. "🧕🏾",
  4236. "🧕🏿",
  4237. "🧕",
  4238. "🧖🏻‍♀️",
  4239. "🧖🏻‍♂️",
  4240. "🧖🏻",
  4241. "🧖🏼‍♀️",
  4242. "🧖🏼‍♂️",
  4243. "🧖🏼",
  4244. "🧖🏽‍♀️",
  4245. "🧖🏽‍♂️",
  4246. "🧖🏽",
  4247. "🧖🏾‍♀️",
  4248. "🧖🏾‍♂️",
  4249. "🧖🏾",
  4250. "🧖🏿‍♀️",
  4251. "🧖🏿‍♂️",
  4252. "🧖🏿",
  4253. "🧖‍♀️",
  4254. "🧖‍♂️",
  4255. "🧖",
  4256. "🧗🏻‍♀️",
  4257. "🧗🏻‍♂️",
  4258. "🧗🏻",
  4259. "🧗🏼‍♀️",
  4260. "🧗🏼‍♂️",
  4261. "🧗🏼",
  4262. "🧗🏽‍♀️",
  4263. "🧗🏽‍♂️",
  4264. "🧗🏽",
  4265. "🧗🏾‍♀️",
  4266. "🧗🏾‍♂️",
  4267. "🧗🏾",
  4268. "🧗🏿‍♀️",
  4269. "🧗🏿‍♂️",
  4270. "🧗🏿",
  4271. "🧗‍♀️",
  4272. "🧗‍♂️",
  4273. "🧗",
  4274. "🧘🏻‍♀️",
  4275. "🧘🏻‍♂️",
  4276. "🧘🏻",
  4277. "🧘🏼‍♀️",
  4278. "🧘🏼‍♂️",
  4279. "🧘🏼",
  4280. "🧘🏽‍♀️",
  4281. "🧘🏽‍♂️",
  4282. "🧘🏽",
  4283. "🧘🏾‍♀️",
  4284. "🧘🏾‍♂️",
  4285. "🧘🏾",
  4286. "🧘🏿‍♀️",
  4287. "🧘🏿‍♂️",
  4288. "🧘🏿",
  4289. "🧘‍♀️",
  4290. "🧘‍♂️",
  4291. "🧘",
  4292. "🧙🏻‍♀️",
  4293. "🧙🏻‍♂️",
  4294. "🧙🏻",
  4295. "🧙🏼‍♀️",
  4296. "🧙🏼‍♂️",
  4297. "🧙🏼",
  4298. "🧙🏽‍♀️",
  4299. "🧙🏽‍♂️",
  4300. "🧙🏽",
  4301. "🧙🏾‍♀️",
  4302. "🧙🏾‍♂️",
  4303. "🧙🏾",
  4304. "🧙🏿‍♀️",
  4305. "🧙🏿‍♂️",
  4306. "🧙🏿",
  4307. "🧙‍♀️",
  4308. "🧙‍♂️",
  4309. "🧙",
  4310. "🧚🏻‍♀️",
  4311. "🧚🏻‍♂️",
  4312. "🧚🏻",
  4313. "🧚🏼‍♀️",
  4314. "🧚🏼‍♂️",
  4315. "🧚🏼",
  4316. "🧚🏽‍♀️",
  4317. "🧚🏽‍♂️",
  4318. "🧚🏽",
  4319. "🧚🏾‍♀️",
  4320. "🧚🏾‍♂️",
  4321. "🧚🏾",
  4322. "🧚🏿‍♀️",
  4323. "🧚🏿‍♂️",
  4324. "🧚🏿",
  4325. "🧚‍♀️",
  4326. "🧚‍♂️",
  4327. "🧚",
  4328. "🧛🏻‍♀️",
  4329. "🧛🏻‍♂️",
  4330. "🧛🏻",
  4331. "🧛🏼‍♀️",
  4332. "🧛🏼‍♂️",
  4333. "🧛🏼",
  4334. "🧛🏽‍♀️",
  4335. "🧛🏽‍♂️",
  4336. "🧛🏽",
  4337. "🧛🏾‍♀️",
  4338. "🧛🏾‍♂️",
  4339. "🧛🏾",
  4340. "🧛🏿‍♀️",
  4341. "🧛🏿‍♂️",
  4342. "🧛🏿",
  4343. "🧛‍♀️",
  4344. "🧛‍♂️",
  4345. "🧛",
  4346. "🧜🏻‍♀️",
  4347. "🧜🏻‍♂️",
  4348. "🧜🏻",
  4349. "🧜🏼‍♀️",
  4350. "🧜🏼‍♂️",
  4351. "🧜🏼",
  4352. "🧜🏽‍♀️",
  4353. "🧜🏽‍♂️",
  4354. "🧜🏽",
  4355. "🧜🏾‍♀️",
  4356. "🧜🏾‍♂️",
  4357. "🧜🏾",
  4358. "🧜🏿‍♀️",
  4359. "🧜🏿‍♂️",
  4360. "🧜🏿",
  4361. "🧜‍♀️",
  4362. "🧜‍♂️",
  4363. "🧜",
  4364. "🧝🏻‍♀️",
  4365. "🧝🏻‍♂️",
  4366. "🧝🏻",
  4367. "🧝🏼‍♀️",
  4368. "🧝🏼‍♂️",
  4369. "🧝🏼",
  4370. "🧝🏽‍♀️",
  4371. "🧝🏽‍♂️",
  4372. "🧝🏽",
  4373. "🧝🏾‍♀️",
  4374. "🧝🏾‍♂️",
  4375. "🧝🏾",
  4376. "🧝🏿‍♀️",
  4377. "🧝🏿‍♂️",
  4378. "🧝🏿",
  4379. "🧝‍♀️",
  4380. "🧝‍♂️",
  4381. "🧝",
  4382. "🧞‍♀️",
  4383. "🧞‍♂️",
  4384. "🧞",
  4385. "🧟‍♀️",
  4386. "🧟‍♂️",
  4387. "🧟",
  4388. "🧠",
  4389. "🧡",
  4390. "🧢",
  4391. "🧣",
  4392. "🧤",
  4393. "🧥",
  4394. "🧦",
  4395. "🧧",
  4396. "🧨",
  4397. "🧩",
  4398. "🧪",
  4399. "🧫",
  4400. "🧬",
  4401. "🧭",
  4402. "🧮",
  4403. "🧯",
  4404. "🧰",
  4405. "🧱",
  4406. "🧲",
  4407. "🧳",
  4408. "🧴",
  4409. "🧵",
  4410. "🧶",
  4411. "🧷",
  4412. "🧸",
  4413. "🧹",
  4414. "🧺",
  4415. "🧻",
  4416. "🧼",
  4417. "🧽",
  4418. "🧾",
  4419. "🧿",
  4420. "🩰",
  4421. "🩱",
  4422. "🩲",
  4423. "🩳",
  4424. "🩸",
  4425. "🩹",
  4426. "🩺",
  4427. "🪀",
  4428. "🪁",
  4429. "🪂",
  4430. "🪐",
  4431. "🪑",
  4432. "🪒",
  4433. "🪓",
  4434. "🪔",
  4435. "🪕",
  4436. "‼️",
  4437. "⁉️",
  4438. "™️",
  4439. "ℹ️",
  4440. "↔️",
  4441. "↕️",
  4442. "↖️",
  4443. "↗️",
  4444. "↘️",
  4445. "↙️",
  4446. "↩️",
  4447. "↪️",
  4448. "#⃣",
  4449. "⌚️",
  4450. "⌛️",
  4451. "⌨️",
  4452. "⏏️",
  4453. "⏩",
  4454. "⏪",
  4455. "⏫",
  4456. "⏬",
  4457. "⏭️",
  4458. "⏮️",
  4459. "⏯️",
  4460. "⏰",
  4461. "⏱️",
  4462. "⏲️",
  4463. "⏳",
  4464. "⏸️",
  4465. "⏹️",
  4466. "⏺️",
  4467. "Ⓜ️",
  4468. "▪️",
  4469. "▫️",
  4470. "▶️",
  4471. "◀️",
  4472. "◻️",
  4473. "◼️",
  4474. "◽️",
  4475. "◾️",
  4476. "☀️",
  4477. "☁️",
  4478. "☂️",
  4479. "☃️",
  4480. "☄️",
  4481. "☎️",
  4482. "☑️",
  4483. "☔️",
  4484. "☕️",
  4485. "☘️",
  4486. "☝🏻",
  4487. "☝🏼",
  4488. "☝🏽",
  4489. "☝🏾",
  4490. "☝🏿",
  4491. "☝️",
  4492. "☠️",
  4493. "☢️",
  4494. "☣️",
  4495. "☦️",
  4496. "☪️",
  4497. "☮️",
  4498. "☯️",
  4499. "☸️",
  4500. "☹️",
  4501. "☺️",
  4502. "♀️",
  4503. "♂️",
  4504. "♈️",
  4505. "♉️",
  4506. "♊️",
  4507. "♋️",
  4508. "♌️",
  4509. "♍️",
  4510. "♎️",
  4511. "♏️",
  4512. "♐️",
  4513. "♑️",
  4514. "♒️",
  4515. "♓️",
  4516. "♟️",
  4517. "♠️",
  4518. "♣️",
  4519. "♥️",
  4520. "♦️",
  4521. "♨️",
  4522. "♻️",
  4523. "♾",
  4524. "♿️",
  4525. "⚒️",
  4526. "⚓️",
  4527. "⚔️",
  4528. "⚕️",
  4529. "⚖️",
  4530. "⚗️",
  4531. "⚙️",
  4532. "⚛️",
  4533. "⚜️",
  4534. "⚠️",
  4535. "⚡️",
  4536. "⚪️",
  4537. "⚫️",
  4538. "⚰️",
  4539. "⚱️",
  4540. "⚽️",
  4541. "⚾️",
  4542. "⛄️",
  4543. "⛅️",
  4544. "⛈️",
  4545. "⛎",
  4546. "⛏️",
  4547. "⛑️",
  4548. "⛓️",
  4549. "⛔️",
  4550. "⛩️",
  4551. "⛪️",
  4552. "⛰️",
  4553. "⛱️",
  4554. "⛲️",
  4555. "⛳️",
  4556. "⛴️",
  4557. "⛵️",
  4558. "⛷🏻",
  4559. "⛷🏼",
  4560. "⛷🏽",
  4561. "⛷🏾",
  4562. "⛷🏿",
  4563. "⛷️",
  4564. "⛸️",
  4565. "⛹🏻‍♀️",
  4566. "⛹🏻‍♂️",
  4567. "⛹🏻",
  4568. "⛹🏼‍♀️",
  4569. "⛹🏼‍♂️",
  4570. "⛹🏼",
  4571. "⛹🏽‍♀️",
  4572. "⛹🏽‍♂️",
  4573. "⛹🏽",
  4574. "⛹🏾‍♀️",
  4575. "⛹🏾‍♂️",
  4576. "⛹🏾",
  4577. "⛹🏿‍♀️",
  4578. "⛹🏿‍♂️",
  4579. "⛹🏿",
  4580. "⛹️‍♀️",
  4581. "⛹️‍♂️",
  4582. "⛹️",
  4583. "⛺️",
  4584. "⛽️",
  4585. "✂️",
  4586. "✅",
  4587. "✈️",
  4588. "✉️",
  4589. "✊🏻",
  4590. "✊🏼",
  4591. "✊🏽",
  4592. "✊🏾",
  4593. "✊🏿",
  4594. "✊",
  4595. "✋🏻",
  4596. "✋🏼",
  4597. "✋🏽",
  4598. "✋🏾",
  4599. "✋🏿",
  4600. "✋",
  4601. "✌🏻",
  4602. "✌🏼",
  4603. "✌🏽",
  4604. "✌🏾",
  4605. "✌🏿",
  4606. "✌️",
  4607. "✍🏻",
  4608. "✍🏼",
  4609. "✍🏽",
  4610. "✍🏾",
  4611. "✍🏿",
  4612. "✍️",
  4613. "✏️",
  4614. "✒️",
  4615. "✔️",
  4616. "✖️",
  4617. "✝️",
  4618. "✡️",
  4619. "✨",
  4620. "✳️",
  4621. "✴️",
  4622. "❄️",
  4623. "❇️",
  4624. "❌",
  4625. "❎",
  4626. "❓",
  4627. "❔",
  4628. "❕",
  4629. "❗️",
  4630. "❣️",
  4631. "❤️",
  4632. "➕",
  4633. "➖",
  4634. "➗",
  4635. "➡️",
  4636. "➰",
  4637. "➿",
  4638. "⤴️",
  4639. "⤵️",
  4640. "*⃣",
  4641. "⬅️",
  4642. "⬆️",
  4643. "⬇️",
  4644. "⬛️",
  4645. "⬜️",
  4646. "⭐️",
  4647. "⭕️",
  4648. "0⃣",
  4649. "〰️",
  4650. "〽️",
  4651. "1⃣",
  4652. "2⃣",
  4653. "㊗️",
  4654. "㊙️",
  4655. "3⃣",
  4656. "4⃣",
  4657. "5⃣",
  4658. "6⃣",
  4659. "7⃣",
  4660. "8⃣",
  4661. "9⃣",
  4662. "©️",
  4663. "®️",
  4664. ""
  4665. ];
  4666. const path$1 = path__default;
  4667. const emojisList = emojisList$1;
  4668. const getHashDigest$1 = getHashDigest_1;
  4669. const emojiRegex = /[\uD800-\uDFFF]./;
  4670. const emojiList = emojisList.filter((emoji) => emojiRegex.test(emoji));
  4671. const emojiCache = {};
  4672. function encodeStringToEmoji(content, length) {
  4673. if (emojiCache[content]) {
  4674. return emojiCache[content];
  4675. }
  4676. length = length || 1;
  4677. const emojis = [];
  4678. do {
  4679. if (!emojiList.length) {
  4680. throw new Error('Ran out of emoji');
  4681. }
  4682. const index = Math.floor(Math.random() * emojiList.length);
  4683. emojis.push(emojiList[index]);
  4684. emojiList.splice(index, 1);
  4685. } while (--length > 0);
  4686. const emojiEncoding = emojis.join('');
  4687. emojiCache[content] = emojiEncoding;
  4688. return emojiEncoding;
  4689. }
  4690. function interpolateName$2(loaderContext, name, options) {
  4691. let filename;
  4692. const hasQuery =
  4693. loaderContext.resourceQuery && loaderContext.resourceQuery.length > 1;
  4694. if (typeof name === 'function') {
  4695. filename = name(
  4696. loaderContext.resourcePath,
  4697. hasQuery ? loaderContext.resourceQuery : undefined
  4698. );
  4699. } else {
  4700. filename = name || '[hash].[ext]';
  4701. }
  4702. const context = options.context;
  4703. const content = options.content;
  4704. const regExp = options.regExp;
  4705. let ext = 'bin';
  4706. let basename = 'file';
  4707. let directory = '';
  4708. let folder = '';
  4709. let query = '';
  4710. if (loaderContext.resourcePath) {
  4711. const parsed = path$1.parse(loaderContext.resourcePath);
  4712. let resourcePath = loaderContext.resourcePath;
  4713. if (parsed.ext) {
  4714. ext = parsed.ext.substr(1);
  4715. }
  4716. if (parsed.dir) {
  4717. basename = parsed.name;
  4718. resourcePath = parsed.dir + path$1.sep;
  4719. }
  4720. if (typeof context !== 'undefined') {
  4721. directory = path$1
  4722. .relative(context, resourcePath + '_')
  4723. .replace(/\\/g, '/')
  4724. .replace(/\.\.(\/)?/g, '_$1');
  4725. directory = directory.substr(0, directory.length - 1);
  4726. } else {
  4727. directory = resourcePath.replace(/\\/g, '/').replace(/\.\.(\/)?/g, '_$1');
  4728. }
  4729. if (directory.length === 1) {
  4730. directory = '';
  4731. } else if (directory.length > 1) {
  4732. folder = path$1.basename(directory);
  4733. }
  4734. }
  4735. if (loaderContext.resourceQuery && loaderContext.resourceQuery.length > 1) {
  4736. query = loaderContext.resourceQuery;
  4737. const hashIdx = query.indexOf('#');
  4738. if (hashIdx >= 0) {
  4739. query = query.substr(0, hashIdx);
  4740. }
  4741. }
  4742. let url = filename;
  4743. if (content) {
  4744. // Match hash template
  4745. url = url
  4746. // `hash` and `contenthash` are same in `loader-utils` context
  4747. // let's keep `hash` for backward compatibility
  4748. .replace(
  4749. /\[(?:([^:\]]+):)?(?:hash|contenthash)(?::([a-z]+\d*))?(?::(\d+))?\]/gi,
  4750. (all, hashType, digestType, maxLength) =>
  4751. getHashDigest$1(content, hashType, digestType, parseInt(maxLength, 10))
  4752. )
  4753. .replace(/\[emoji(?::(\d+))?\]/gi, (all, length) =>
  4754. encodeStringToEmoji(content, parseInt(length, 10))
  4755. );
  4756. }
  4757. url = url
  4758. .replace(/\[ext\]/gi, () => ext)
  4759. .replace(/\[name\]/gi, () => basename)
  4760. .replace(/\[path\]/gi, () => directory)
  4761. .replace(/\[folder\]/gi, () => folder)
  4762. .replace(/\[query\]/gi, () => query);
  4763. if (regExp && loaderContext.resourcePath) {
  4764. const match = loaderContext.resourcePath.match(new RegExp(regExp));
  4765. match &&
  4766. match.forEach((matched, i) => {
  4767. url = url.replace(new RegExp('\\[' + i + '\\]', 'ig'), matched);
  4768. });
  4769. }
  4770. if (
  4771. typeof loaderContext.options === 'object' &&
  4772. typeof loaderContext.options.customInterpolateName === 'function'
  4773. ) {
  4774. url = loaderContext.options.customInterpolateName.call(
  4775. loaderContext,
  4776. url,
  4777. name,
  4778. options
  4779. );
  4780. }
  4781. return url;
  4782. }
  4783. var interpolateName_1 = interpolateName$2;
  4784. const getOptions = getOptions_1;
  4785. const parseQuery = parseQuery_1;
  4786. const stringifyRequest = stringifyRequest_1;
  4787. const getRemainingRequest = getRemainingRequest_1;
  4788. const getCurrentRequest = getCurrentRequest_1;
  4789. const isUrlRequest = isUrlRequest_1;
  4790. const urlToRequest = urlToRequest_1;
  4791. const parseString = parseString_1;
  4792. const getHashDigest = getHashDigest_1;
  4793. const interpolateName$1 = interpolateName_1;
  4794. lib$2.getOptions = getOptions;
  4795. lib$2.parseQuery = parseQuery;
  4796. lib$2.stringifyRequest = stringifyRequest;
  4797. lib$2.getRemainingRequest = getRemainingRequest;
  4798. lib$2.getCurrentRequest = getCurrentRequest;
  4799. lib$2.isUrlRequest = isUrlRequest;
  4800. lib$2.urlToRequest = urlToRequest;
  4801. lib$2.parseString = parseString;
  4802. lib$2.getHashDigest = getHashDigest;
  4803. lib$2.interpolateName = interpolateName$1;
  4804. var interpolateName = lib$2.interpolateName;
  4805. var path = path__default;
  4806. /**
  4807. * @param {string} pattern
  4808. * @param {object} options
  4809. * @param {string} options.context
  4810. * @param {string} options.hashPrefix
  4811. * @return {function}
  4812. */
  4813. var genericNames = function createGenerator(pattern, options) {
  4814. options = options || {};
  4815. var context =
  4816. options && typeof options.context === "string"
  4817. ? options.context
  4818. : process.cwd();
  4819. var hashPrefix =
  4820. options && typeof options.hashPrefix === "string" ? options.hashPrefix : "";
  4821. /**
  4822. * @param {string} localName Usually a class name
  4823. * @param {string} filepath Absolute path
  4824. * @return {string}
  4825. */
  4826. return function generate(localName, filepath) {
  4827. var name = pattern.replace(/\[local\]/gi, localName);
  4828. var loaderContext = {
  4829. resourcePath: filepath
  4830. };
  4831. var loaderOptions = {
  4832. content:
  4833. hashPrefix +
  4834. path.relative(context, filepath).replace(/\\/g, "/") +
  4835. "+" +
  4836. localName,
  4837. context: context
  4838. };
  4839. var genericName = interpolateName(loaderContext, name, loaderOptions);
  4840. return genericName
  4841. .replace(new RegExp("[^a-zA-Z0-9\\-_\u00A0-\uFFFF]", "g"), "-")
  4842. .replace(/^((-?[0-9])|--)/, "_$1");
  4843. };
  4844. };
  4845. var unquote$1 = {};
  4846. Object.defineProperty(unquote$1, "__esModule", {
  4847. value: true
  4848. });
  4849. unquote$1.default = unquote;
  4850. // copied from https://github.com/lakenen/node-unquote
  4851. var reg = /['"]/;
  4852. function unquote(str) {
  4853. if (!str) {
  4854. return "";
  4855. }
  4856. if (reg.test(str.charAt(0))) {
  4857. str = str.substr(1);
  4858. }
  4859. if (reg.test(str.charAt(str.length - 1))) {
  4860. str = str.substr(0, str.length - 1);
  4861. }
  4862. return str;
  4863. }
  4864. var parser$1 = {};
  4865. var lib = {};
  4866. Object.defineProperty(lib, "__esModule", {
  4867. value: true
  4868. });
  4869. lib.replaceAll = replaceAll;
  4870. var matchConstName = /[$#]?[\w-\.]+/g;
  4871. function replaceAll(replacements, text) {
  4872. var matches = void 0;
  4873. while (matches = matchConstName.exec(text)) {
  4874. var replacement = replacements[matches[0]];
  4875. if (replacement) {
  4876. text = text.slice(0, matches.index) + replacement + text.slice(matchConstName.lastIndex);
  4877. matchConstName.lastIndex -= matches[0].length - replacement.length;
  4878. }
  4879. }
  4880. return text;
  4881. }
  4882. lib.default = function (css, translations) {
  4883. css.walkDecls(function (decl) {
  4884. return decl.value = replaceAll(translations, decl.value);
  4885. });
  4886. css.walkAtRules('media', function (atRule) {
  4887. return atRule.params = replaceAll(translations, atRule.params);
  4888. });
  4889. };
  4890. Object.defineProperty(parser$1, "__esModule", {
  4891. value: true
  4892. });
  4893. var _icssReplaceSymbols = lib;
  4894. var _icssReplaceSymbols2 = _interopRequireDefault$6(_icssReplaceSymbols);
  4895. function _interopRequireDefault$6(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  4896. // Copied from https://github.com/css-modules/css-modules-loader-core
  4897. const importRegexp = /^:import\((.+)\)$/;
  4898. class Parser {
  4899. constructor(pathFetcher, trace) {
  4900. this.pathFetcher = pathFetcher;
  4901. this.plugin = this.plugin.bind(this);
  4902. this.exportTokens = {};
  4903. this.translations = {};
  4904. this.trace = trace;
  4905. }
  4906. plugin() {
  4907. const parser = this;
  4908. return {
  4909. postcssPlugin: "css-modules-parser",
  4910. OnceExit(css) {
  4911. return Promise.all(parser.fetchAllImports(css)).then(() => parser.linkImportedSymbols(css)).then(() => parser.extractExports(css));
  4912. }
  4913. };
  4914. }
  4915. fetchAllImports(css) {
  4916. let imports = [];
  4917. css.each(node => {
  4918. if (node.type == "rule" && node.selector.match(importRegexp)) {
  4919. imports.push(this.fetchImport(node, css.source.input.from, imports.length));
  4920. }
  4921. });
  4922. return imports;
  4923. }
  4924. linkImportedSymbols(css) {
  4925. (0, _icssReplaceSymbols2.default)(css, this.translations);
  4926. }
  4927. extractExports(css) {
  4928. css.each(node => {
  4929. if (node.type == "rule" && node.selector == ":export") this.handleExport(node);
  4930. });
  4931. }
  4932. handleExport(exportNode) {
  4933. exportNode.each(decl => {
  4934. if (decl.type == "decl") {
  4935. Object.keys(this.translations).forEach(translation => {
  4936. decl.value = decl.value.replace(translation, this.translations[translation]);
  4937. });
  4938. this.exportTokens[decl.prop] = decl.value;
  4939. }
  4940. });
  4941. exportNode.remove();
  4942. }
  4943. fetchImport(importNode, relativeTo, depNr) {
  4944. let file = importNode.selector.match(importRegexp)[1],
  4945. depTrace = this.trace + String.fromCharCode(depNr);
  4946. return this.pathFetcher(file, relativeTo, depTrace).then(exports => {
  4947. importNode.each(decl => {
  4948. if (decl.type == "decl") {
  4949. this.translations[decl.prop] = exports[decl.value];
  4950. }
  4951. });
  4952. importNode.remove();
  4953. }, err => console.log(err));
  4954. }
  4955. }
  4956. parser$1.default = Parser;
  4957. var loader = {};
  4958. Object.defineProperty(loader, "__esModule", {
  4959. value: true
  4960. });
  4961. var _postcss$1 = require$$0__default;
  4962. var _postcss2$1 = _interopRequireDefault$5(_postcss$1);
  4963. var _fs$1 = fs__default;
  4964. var _fs2 = _interopRequireDefault$5(_fs$1);
  4965. var _path = path__default;
  4966. var _path2 = _interopRequireDefault$5(_path);
  4967. var _parser$1 = parser$1;
  4968. var _parser2$1 = _interopRequireDefault$5(_parser$1);
  4969. function _interopRequireDefault$5(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  4970. // Copied from https://github.com/css-modules/css-modules-loader-core
  4971. class Core {
  4972. constructor(plugins) {
  4973. this.plugins = plugins || Core.defaultPlugins;
  4974. }
  4975. load(sourceString, sourcePath, trace, pathFetcher) {
  4976. let parser = new _parser2$1.default(pathFetcher, trace);
  4977. return (0, _postcss2$1.default)(this.plugins.concat([parser.plugin()])).process(sourceString, { from: "/" + sourcePath }).then(result => {
  4978. return {
  4979. injectableSource: result.css,
  4980. exportTokens: parser.exportTokens
  4981. };
  4982. });
  4983. }
  4984. }
  4985. // Sorts dependencies in the following way:
  4986. // AAA comes before AA and A
  4987. // AB comes after AA and before A
  4988. // All Bs come after all As
  4989. // This ensures that the files are always returned in the following order:
  4990. // - In the order they were required, except
  4991. // - After all their dependencies
  4992. const traceKeySorter = (a, b) => {
  4993. if (a.length < b.length) {
  4994. return a < b.substring(0, a.length) ? -1 : 1;
  4995. } else if (a.length > b.length) {
  4996. return a.substring(0, b.length) <= b ? -1 : 1;
  4997. } else {
  4998. return a < b ? -1 : 1;
  4999. }
  5000. };
  5001. class FileSystemLoader {
  5002. constructor(root, plugins) {
  5003. this.root = root;
  5004. this.sources = {};
  5005. this.traces = {};
  5006. this.importNr = 0;
  5007. this.core = new Core(plugins);
  5008. this.tokensByFile = {};
  5009. }
  5010. fetch(_newPath, relativeTo, _trace) {
  5011. let newPath = _newPath.replace(/^["']|["']$/g, ""),
  5012. trace = _trace || String.fromCharCode(this.importNr++);
  5013. return new Promise((resolve, reject) => {
  5014. let relativeDir = _path2.default.dirname(relativeTo),
  5015. rootRelativePath = _path2.default.resolve(relativeDir, newPath),
  5016. fileRelativePath = _path2.default.resolve(_path2.default.join(this.root, relativeDir), newPath);
  5017. // if the path is not relative or absolute, try to resolve it in node_modules
  5018. if (newPath[0] !== "." && newPath[0] !== "/") {
  5019. try {
  5020. fileRelativePath = require.resolve(newPath);
  5021. } catch (e) {
  5022. // noop
  5023. }
  5024. }
  5025. const tokens = this.tokensByFile[fileRelativePath];
  5026. if (tokens) {
  5027. return resolve(tokens);
  5028. }
  5029. _fs2.default.readFile(fileRelativePath, "utf-8", (err, source) => {
  5030. if (err) reject(err);
  5031. this.core.load(source, rootRelativePath, trace, this.fetch.bind(this)).then(({ injectableSource, exportTokens }) => {
  5032. this.sources[fileRelativePath] = injectableSource;
  5033. this.traces[trace] = fileRelativePath;
  5034. this.tokensByFile[fileRelativePath] = exportTokens;
  5035. resolve(exportTokens);
  5036. }, reject);
  5037. });
  5038. });
  5039. }
  5040. get finalSource() {
  5041. const traces = this.traces;
  5042. const sources = this.sources;
  5043. let written = new Set();
  5044. return Object.keys(traces).sort(traceKeySorter).map(key => {
  5045. const filename = traces[key];
  5046. if (written.has(filename)) {
  5047. return null;
  5048. }
  5049. written.add(filename);
  5050. return sources[filename];
  5051. }).join("");
  5052. }
  5053. }
  5054. loader.default = FileSystemLoader;
  5055. var generateScopedName$1 = {};
  5056. function hash(str) {
  5057. var hash = 5381,
  5058. i = str.length;
  5059. while(i) {
  5060. hash = (hash * 33) ^ str.charCodeAt(--i);
  5061. }
  5062. /* JavaScript does bitwise operations (like XOR, above) on 32-bit signed
  5063. * integers. Since we want the results to be always positive, convert the
  5064. * signed int to an unsigned by doing an unsigned bitshift. */
  5065. return hash >>> 0;
  5066. }
  5067. var stringHash = hash;
  5068. Object.defineProperty(generateScopedName$1, "__esModule", {
  5069. value: true
  5070. });
  5071. generateScopedName$1.default = generateScopedName;
  5072. var _stringHash = stringHash;
  5073. var _stringHash2 = _interopRequireDefault$4(_stringHash);
  5074. function _interopRequireDefault$4(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  5075. function generateScopedName(name, filename, css) {
  5076. const i = css.indexOf(`.${name}`);
  5077. const lineNumber = css.substr(0, i).split(/[\r\n]/).length;
  5078. const hash = (0, _stringHash2.default)(css).toString(36).substr(0, 5);
  5079. return `_${name}_${hash}_${lineNumber}`;
  5080. }
  5081. var saveJSON$1 = {};
  5082. Object.defineProperty(saveJSON$1, "__esModule", {
  5083. value: true
  5084. });
  5085. saveJSON$1.default = saveJSON;
  5086. var _fs = fs__default;
  5087. function saveJSON(cssFile, json) {
  5088. return new Promise((resolve, reject) => {
  5089. (0, _fs.writeFile)(`${cssFile}.json`, JSON.stringify(json), e => e ? reject(e) : resolve(json));
  5090. });
  5091. }
  5092. var behaviours$1 = {};
  5093. var src$4 = {exports: {}};
  5094. var dist = {exports: {}};
  5095. var processor = {exports: {}};
  5096. var parser = {exports: {}};
  5097. var root$1 = {exports: {}};
  5098. var container = {exports: {}};
  5099. var node$1 = {exports: {}};
  5100. var util = {};
  5101. var unesc = {exports: {}};
  5102. (function (module, exports) {
  5103. exports.__esModule = true;
  5104. exports["default"] = unesc;
  5105. // Many thanks for this post which made this migration much easier.
  5106. // https://mathiasbynens.be/notes/css-escapes
  5107. /**
  5108. *
  5109. * @param {string} str
  5110. * @returns {[string, number]|undefined}
  5111. */
  5112. function gobbleHex(str) {
  5113. var lower = str.toLowerCase();
  5114. var hex = '';
  5115. var spaceTerminated = false;
  5116. for (var i = 0; i < 6 && lower[i] !== undefined; i++) {
  5117. var code = lower.charCodeAt(i); // check to see if we are dealing with a valid hex char [a-f|0-9]
  5118. var valid = code >= 97 && code <= 102 || code >= 48 && code <= 57; // https://drafts.csswg.org/css-syntax/#consume-escaped-code-point
  5119. spaceTerminated = code === 32;
  5120. if (!valid) {
  5121. break;
  5122. }
  5123. hex += lower[i];
  5124. }
  5125. if (hex.length === 0) {
  5126. return undefined;
  5127. }
  5128. var codePoint = parseInt(hex, 16);
  5129. var isSurrogate = codePoint >= 0xD800 && codePoint <= 0xDFFF; // Add special case for
  5130. // "If this number is zero, or is for a surrogate, or is greater than the maximum allowed code point"
  5131. // https://drafts.csswg.org/css-syntax/#maximum-allowed-code-point
  5132. if (isSurrogate || codePoint === 0x0000 || codePoint > 0x10FFFF) {
  5133. return ["\uFFFD", hex.length + (spaceTerminated ? 1 : 0)];
  5134. }
  5135. return [String.fromCodePoint(codePoint), hex.length + (spaceTerminated ? 1 : 0)];
  5136. }
  5137. var CONTAINS_ESCAPE = /\\/;
  5138. function unesc(str) {
  5139. var needToProcess = CONTAINS_ESCAPE.test(str);
  5140. if (!needToProcess) {
  5141. return str;
  5142. }
  5143. var ret = "";
  5144. for (var i = 0; i < str.length; i++) {
  5145. if (str[i] === "\\") {
  5146. var gobbled = gobbleHex(str.slice(i + 1, i + 7));
  5147. if (gobbled !== undefined) {
  5148. ret += gobbled[0];
  5149. i += gobbled[1];
  5150. continue;
  5151. } // Retain a pair of \\ if double escaped `\\\\`
  5152. // https://github.com/postcss/postcss-selector-parser/commit/268c9a7656fb53f543dc620aa5b73a30ec3ff20e
  5153. if (str[i + 1] === "\\") {
  5154. ret += "\\";
  5155. i++;
  5156. continue;
  5157. } // if \\ is at the end of the string retain it
  5158. // https://github.com/postcss/postcss-selector-parser/commit/01a6b346e3612ce1ab20219acc26abdc259ccefb
  5159. if (str.length === i + 1) {
  5160. ret += str[i];
  5161. }
  5162. continue;
  5163. }
  5164. ret += str[i];
  5165. }
  5166. return ret;
  5167. }
  5168. module.exports = exports.default;
  5169. }(unesc, unesc.exports));
  5170. var getProp = {exports: {}};
  5171. (function (module, exports) {
  5172. exports.__esModule = true;
  5173. exports["default"] = getProp;
  5174. function getProp(obj) {
  5175. for (var _len = arguments.length, props = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  5176. props[_key - 1] = arguments[_key];
  5177. }
  5178. while (props.length > 0) {
  5179. var prop = props.shift();
  5180. if (!obj[prop]) {
  5181. return undefined;
  5182. }
  5183. obj = obj[prop];
  5184. }
  5185. return obj;
  5186. }
  5187. module.exports = exports.default;
  5188. }(getProp, getProp.exports));
  5189. var ensureObject = {exports: {}};
  5190. (function (module, exports) {
  5191. exports.__esModule = true;
  5192. exports["default"] = ensureObject;
  5193. function ensureObject(obj) {
  5194. for (var _len = arguments.length, props = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  5195. props[_key - 1] = arguments[_key];
  5196. }
  5197. while (props.length > 0) {
  5198. var prop = props.shift();
  5199. if (!obj[prop]) {
  5200. obj[prop] = {};
  5201. }
  5202. obj = obj[prop];
  5203. }
  5204. }
  5205. module.exports = exports.default;
  5206. }(ensureObject, ensureObject.exports));
  5207. var stripComments = {exports: {}};
  5208. (function (module, exports) {
  5209. exports.__esModule = true;
  5210. exports["default"] = stripComments;
  5211. function stripComments(str) {
  5212. var s = "";
  5213. var commentStart = str.indexOf("/*");
  5214. var lastEnd = 0;
  5215. while (commentStart >= 0) {
  5216. s = s + str.slice(lastEnd, commentStart);
  5217. var commentEnd = str.indexOf("*/", commentStart + 2);
  5218. if (commentEnd < 0) {
  5219. return s;
  5220. }
  5221. lastEnd = commentEnd + 2;
  5222. commentStart = str.indexOf("/*", lastEnd);
  5223. }
  5224. s = s + str.slice(lastEnd);
  5225. return s;
  5226. }
  5227. module.exports = exports.default;
  5228. }(stripComments, stripComments.exports));
  5229. util.__esModule = true;
  5230. util.stripComments = util.ensureObject = util.getProp = util.unesc = void 0;
  5231. var _unesc = _interopRequireDefault$3(unesc.exports);
  5232. util.unesc = _unesc["default"];
  5233. var _getProp = _interopRequireDefault$3(getProp.exports);
  5234. util.getProp = _getProp["default"];
  5235. var _ensureObject = _interopRequireDefault$3(ensureObject.exports);
  5236. util.ensureObject = _ensureObject["default"];
  5237. var _stripComments = _interopRequireDefault$3(stripComments.exports);
  5238. util.stripComments = _stripComments["default"];
  5239. function _interopRequireDefault$3(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
  5240. (function (module, exports) {
  5241. exports.__esModule = true;
  5242. exports["default"] = void 0;
  5243. var _util = util;
  5244. function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
  5245. function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
  5246. var cloneNode = function cloneNode(obj, parent) {
  5247. if (typeof obj !== 'object' || obj === null) {
  5248. return obj;
  5249. }
  5250. var cloned = new obj.constructor();
  5251. for (var i in obj) {
  5252. if (!obj.hasOwnProperty(i)) {
  5253. continue;
  5254. }
  5255. var value = obj[i];
  5256. var type = typeof value;
  5257. if (i === 'parent' && type === 'object') {
  5258. if (parent) {
  5259. cloned[i] = parent;
  5260. }
  5261. } else if (value instanceof Array) {
  5262. cloned[i] = value.map(function (j) {
  5263. return cloneNode(j, cloned);
  5264. });
  5265. } else {
  5266. cloned[i] = cloneNode(value, cloned);
  5267. }
  5268. }
  5269. return cloned;
  5270. };
  5271. var Node = /*#__PURE__*/function () {
  5272. function Node(opts) {
  5273. if (opts === void 0) {
  5274. opts = {};
  5275. }
  5276. Object.assign(this, opts);
  5277. this.spaces = this.spaces || {};
  5278. this.spaces.before = this.spaces.before || '';
  5279. this.spaces.after = this.spaces.after || '';
  5280. }
  5281. var _proto = Node.prototype;
  5282. _proto.remove = function remove() {
  5283. if (this.parent) {
  5284. this.parent.removeChild(this);
  5285. }
  5286. this.parent = undefined;
  5287. return this;
  5288. };
  5289. _proto.replaceWith = function replaceWith() {
  5290. if (this.parent) {
  5291. for (var index in arguments) {
  5292. this.parent.insertBefore(this, arguments[index]);
  5293. }
  5294. this.remove();
  5295. }
  5296. return this;
  5297. };
  5298. _proto.next = function next() {
  5299. return this.parent.at(this.parent.index(this) + 1);
  5300. };
  5301. _proto.prev = function prev() {
  5302. return this.parent.at(this.parent.index(this) - 1);
  5303. };
  5304. _proto.clone = function clone(overrides) {
  5305. if (overrides === void 0) {
  5306. overrides = {};
  5307. }
  5308. var cloned = cloneNode(this);
  5309. for (var name in overrides) {
  5310. cloned[name] = overrides[name];
  5311. }
  5312. return cloned;
  5313. }
  5314. /**
  5315. * Some non-standard syntax doesn't follow normal escaping rules for css.
  5316. * This allows non standard syntax to be appended to an existing property
  5317. * by specifying the escaped value. By specifying the escaped value,
  5318. * illegal characters are allowed to be directly inserted into css output.
  5319. * @param {string} name the property to set
  5320. * @param {any} value the unescaped value of the property
  5321. * @param {string} valueEscaped optional. the escaped value of the property.
  5322. */
  5323. ;
  5324. _proto.appendToPropertyAndEscape = function appendToPropertyAndEscape(name, value, valueEscaped) {
  5325. if (!this.raws) {
  5326. this.raws = {};
  5327. }
  5328. var originalValue = this[name];
  5329. var originalEscaped = this.raws[name];
  5330. this[name] = originalValue + value; // this may trigger a setter that updates raws, so it has to be set first.
  5331. if (originalEscaped || valueEscaped !== value) {
  5332. this.raws[name] = (originalEscaped || originalValue) + valueEscaped;
  5333. } else {
  5334. delete this.raws[name]; // delete any escaped value that was created by the setter.
  5335. }
  5336. }
  5337. /**
  5338. * Some non-standard syntax doesn't follow normal escaping rules for css.
  5339. * This allows the escaped value to be specified directly, allowing illegal
  5340. * characters to be directly inserted into css output.
  5341. * @param {string} name the property to set
  5342. * @param {any} value the unescaped value of the property
  5343. * @param {string} valueEscaped the escaped value of the property.
  5344. */
  5345. ;
  5346. _proto.setPropertyAndEscape = function setPropertyAndEscape(name, value, valueEscaped) {
  5347. if (!this.raws) {
  5348. this.raws = {};
  5349. }
  5350. this[name] = value; // this may trigger a setter that updates raws, so it has to be set first.
  5351. this.raws[name] = valueEscaped;
  5352. }
  5353. /**
  5354. * When you want a value to passed through to CSS directly. This method
  5355. * deletes the corresponding raw value causing the stringifier to fallback
  5356. * to the unescaped value.
  5357. * @param {string} name the property to set.
  5358. * @param {any} value The value that is both escaped and unescaped.
  5359. */
  5360. ;
  5361. _proto.setPropertyWithoutEscape = function setPropertyWithoutEscape(name, value) {
  5362. this[name] = value; // this may trigger a setter that updates raws, so it has to be set first.
  5363. if (this.raws) {
  5364. delete this.raws[name];
  5365. }
  5366. }
  5367. /**
  5368. *
  5369. * @param {number} line The number (starting with 1)
  5370. * @param {number} column The column number (starting with 1)
  5371. */
  5372. ;
  5373. _proto.isAtPosition = function isAtPosition(line, column) {
  5374. if (this.source && this.source.start && this.source.end) {
  5375. if (this.source.start.line > line) {
  5376. return false;
  5377. }
  5378. if (this.source.end.line < line) {
  5379. return false;
  5380. }
  5381. if (this.source.start.line === line && this.source.start.column > column) {
  5382. return false;
  5383. }
  5384. if (this.source.end.line === line && this.source.end.column < column) {
  5385. return false;
  5386. }
  5387. return true;
  5388. }
  5389. return undefined;
  5390. };
  5391. _proto.stringifyProperty = function stringifyProperty(name) {
  5392. return this.raws && this.raws[name] || this[name];
  5393. };
  5394. _proto.valueToString = function valueToString() {
  5395. return String(this.stringifyProperty("value"));
  5396. };
  5397. _proto.toString = function toString() {
  5398. return [this.rawSpaceBefore, this.valueToString(), this.rawSpaceAfter].join('');
  5399. };
  5400. _createClass(Node, [{
  5401. key: "rawSpaceBefore",
  5402. get: function get() {
  5403. var rawSpace = this.raws && this.raws.spaces && this.raws.spaces.before;
  5404. if (rawSpace === undefined) {
  5405. rawSpace = this.spaces && this.spaces.before;
  5406. }
  5407. return rawSpace || "";
  5408. },
  5409. set: function set(raw) {
  5410. (0, _util.ensureObject)(this, "raws", "spaces");
  5411. this.raws.spaces.before = raw;
  5412. }
  5413. }, {
  5414. key: "rawSpaceAfter",
  5415. get: function get() {
  5416. var rawSpace = this.raws && this.raws.spaces && this.raws.spaces.after;
  5417. if (rawSpace === undefined) {
  5418. rawSpace = this.spaces.after;
  5419. }
  5420. return rawSpace || "";
  5421. },
  5422. set: function set(raw) {
  5423. (0, _util.ensureObject)(this, "raws", "spaces");
  5424. this.raws.spaces.after = raw;
  5425. }
  5426. }]);
  5427. return Node;
  5428. }();
  5429. exports["default"] = Node;
  5430. module.exports = exports.default;
  5431. }(node$1, node$1.exports));
  5432. var types = {};
  5433. types.__esModule = true;
  5434. types.UNIVERSAL = types.ATTRIBUTE = types.CLASS = types.COMBINATOR = types.COMMENT = types.ID = types.NESTING = types.PSEUDO = types.ROOT = types.SELECTOR = types.STRING = types.TAG = void 0;
  5435. var TAG = 'tag';
  5436. types.TAG = TAG;
  5437. var STRING = 'string';
  5438. types.STRING = STRING;
  5439. var SELECTOR = 'selector';
  5440. types.SELECTOR = SELECTOR;
  5441. var ROOT = 'root';
  5442. types.ROOT = ROOT;
  5443. var PSEUDO = 'pseudo';
  5444. types.PSEUDO = PSEUDO;
  5445. var NESTING = 'nesting';
  5446. types.NESTING = NESTING;
  5447. var ID = 'id';
  5448. types.ID = ID;
  5449. var COMMENT = 'comment';
  5450. types.COMMENT = COMMENT;
  5451. var COMBINATOR = 'combinator';
  5452. types.COMBINATOR = COMBINATOR;
  5453. var CLASS = 'class';
  5454. types.CLASS = CLASS;
  5455. var ATTRIBUTE = 'attribute';
  5456. types.ATTRIBUTE = ATTRIBUTE;
  5457. var UNIVERSAL = 'universal';
  5458. types.UNIVERSAL = UNIVERSAL;
  5459. (function (module, exports) {
  5460. exports.__esModule = true;
  5461. exports["default"] = void 0;
  5462. var _node = _interopRequireDefault(node$1.exports);
  5463. var types$1 = _interopRequireWildcard(types);
  5464. function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
  5465. function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
  5466. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
  5467. function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } it = o[Symbol.iterator](); return it.next.bind(it); }
  5468. function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
  5469. function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
  5470. function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
  5471. function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
  5472. function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
  5473. function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
  5474. var Container = /*#__PURE__*/function (_Node) {
  5475. _inheritsLoose(Container, _Node);
  5476. function Container(opts) {
  5477. var _this;
  5478. _this = _Node.call(this, opts) || this;
  5479. if (!_this.nodes) {
  5480. _this.nodes = [];
  5481. }
  5482. return _this;
  5483. }
  5484. var _proto = Container.prototype;
  5485. _proto.append = function append(selector) {
  5486. selector.parent = this;
  5487. this.nodes.push(selector);
  5488. return this;
  5489. };
  5490. _proto.prepend = function prepend(selector) {
  5491. selector.parent = this;
  5492. this.nodes.unshift(selector);
  5493. return this;
  5494. };
  5495. _proto.at = function at(index) {
  5496. return this.nodes[index];
  5497. };
  5498. _proto.index = function index(child) {
  5499. if (typeof child === 'number') {
  5500. return child;
  5501. }
  5502. return this.nodes.indexOf(child);
  5503. };
  5504. _proto.removeChild = function removeChild(child) {
  5505. child = this.index(child);
  5506. this.at(child).parent = undefined;
  5507. this.nodes.splice(child, 1);
  5508. var index;
  5509. for (var id in this.indexes) {
  5510. index = this.indexes[id];
  5511. if (index >= child) {
  5512. this.indexes[id] = index - 1;
  5513. }
  5514. }
  5515. return this;
  5516. };
  5517. _proto.removeAll = function removeAll() {
  5518. for (var _iterator = _createForOfIteratorHelperLoose(this.nodes), _step; !(_step = _iterator()).done;) {
  5519. var node = _step.value;
  5520. node.parent = undefined;
  5521. }
  5522. this.nodes = [];
  5523. return this;
  5524. };
  5525. _proto.empty = function empty() {
  5526. return this.removeAll();
  5527. };
  5528. _proto.insertAfter = function insertAfter(oldNode, newNode) {
  5529. newNode.parent = this;
  5530. var oldIndex = this.index(oldNode);
  5531. this.nodes.splice(oldIndex + 1, 0, newNode);
  5532. newNode.parent = this;
  5533. var index;
  5534. for (var id in this.indexes) {
  5535. index = this.indexes[id];
  5536. if (oldIndex <= index) {
  5537. this.indexes[id] = index + 1;
  5538. }
  5539. }
  5540. return this;
  5541. };
  5542. _proto.insertBefore = function insertBefore(oldNode, newNode) {
  5543. newNode.parent = this;
  5544. var oldIndex = this.index(oldNode);
  5545. this.nodes.splice(oldIndex, 0, newNode);
  5546. newNode.parent = this;
  5547. var index;
  5548. for (var id in this.indexes) {
  5549. index = this.indexes[id];
  5550. if (index <= oldIndex) {
  5551. this.indexes[id] = index + 1;
  5552. }
  5553. }
  5554. return this;
  5555. };
  5556. _proto._findChildAtPosition = function _findChildAtPosition(line, col) {
  5557. var found = undefined;
  5558. this.each(function (node) {
  5559. if (node.atPosition) {
  5560. var foundChild = node.atPosition(line, col);
  5561. if (foundChild) {
  5562. found = foundChild;
  5563. return false;
  5564. }
  5565. } else if (node.isAtPosition(line, col)) {
  5566. found = node;
  5567. return false;
  5568. }
  5569. });
  5570. return found;
  5571. }
  5572. /**
  5573. * Return the most specific node at the line and column number given.
  5574. * The source location is based on the original parsed location, locations aren't
  5575. * updated as selector nodes are mutated.
  5576. *
  5577. * Note that this location is relative to the location of the first character
  5578. * of the selector, and not the location of the selector in the overall document
  5579. * when used in conjunction with postcss.
  5580. *
  5581. * If not found, returns undefined.
  5582. * @param {number} line The line number of the node to find. (1-based index)
  5583. * @param {number} col The column number of the node to find. (1-based index)
  5584. */
  5585. ;
  5586. _proto.atPosition = function atPosition(line, col) {
  5587. if (this.isAtPosition(line, col)) {
  5588. return this._findChildAtPosition(line, col) || this;
  5589. } else {
  5590. return undefined;
  5591. }
  5592. };
  5593. _proto._inferEndPosition = function _inferEndPosition() {
  5594. if (this.last && this.last.source && this.last.source.end) {
  5595. this.source = this.source || {};
  5596. this.source.end = this.source.end || {};
  5597. Object.assign(this.source.end, this.last.source.end);
  5598. }
  5599. };
  5600. _proto.each = function each(callback) {
  5601. if (!this.lastEach) {
  5602. this.lastEach = 0;
  5603. }
  5604. if (!this.indexes) {
  5605. this.indexes = {};
  5606. }
  5607. this.lastEach++;
  5608. var id = this.lastEach;
  5609. this.indexes[id] = 0;
  5610. if (!this.length) {
  5611. return undefined;
  5612. }
  5613. var index, result;
  5614. while (this.indexes[id] < this.length) {
  5615. index = this.indexes[id];
  5616. result = callback(this.at(index), index);
  5617. if (result === false) {
  5618. break;
  5619. }
  5620. this.indexes[id] += 1;
  5621. }
  5622. delete this.indexes[id];
  5623. if (result === false) {
  5624. return false;
  5625. }
  5626. };
  5627. _proto.walk = function walk(callback) {
  5628. return this.each(function (node, i) {
  5629. var result = callback(node, i);
  5630. if (result !== false && node.length) {
  5631. result = node.walk(callback);
  5632. }
  5633. if (result === false) {
  5634. return false;
  5635. }
  5636. });
  5637. };
  5638. _proto.walkAttributes = function walkAttributes(callback) {
  5639. var _this2 = this;
  5640. return this.walk(function (selector) {
  5641. if (selector.type === types$1.ATTRIBUTE) {
  5642. return callback.call(_this2, selector);
  5643. }
  5644. });
  5645. };
  5646. _proto.walkClasses = function walkClasses(callback) {
  5647. var _this3 = this;
  5648. return this.walk(function (selector) {
  5649. if (selector.type === types$1.CLASS) {
  5650. return callback.call(_this3, selector);
  5651. }
  5652. });
  5653. };
  5654. _proto.walkCombinators = function walkCombinators(callback) {
  5655. var _this4 = this;
  5656. return this.walk(function (selector) {
  5657. if (selector.type === types$1.COMBINATOR) {
  5658. return callback.call(_this4, selector);
  5659. }
  5660. });
  5661. };
  5662. _proto.walkComments = function walkComments(callback) {
  5663. var _this5 = this;
  5664. return this.walk(function (selector) {
  5665. if (selector.type === types$1.COMMENT) {
  5666. return callback.call(_this5, selector);
  5667. }
  5668. });
  5669. };
  5670. _proto.walkIds = function walkIds(callback) {
  5671. var _this6 = this;
  5672. return this.walk(function (selector) {
  5673. if (selector.type === types$1.ID) {
  5674. return callback.call(_this6, selector);
  5675. }
  5676. });
  5677. };
  5678. _proto.walkNesting = function walkNesting(callback) {
  5679. var _this7 = this;
  5680. return this.walk(function (selector) {
  5681. if (selector.type === types$1.NESTING) {
  5682. return callback.call(_this7, selector);
  5683. }
  5684. });
  5685. };
  5686. _proto.walkPseudos = function walkPseudos(callback) {
  5687. var _this8 = this;
  5688. return this.walk(function (selector) {
  5689. if (selector.type === types$1.PSEUDO) {
  5690. return callback.call(_this8, selector);
  5691. }
  5692. });
  5693. };
  5694. _proto.walkTags = function walkTags(callback) {
  5695. var _this9 = this;
  5696. return this.walk(function (selector) {
  5697. if (selector.type === types$1.TAG) {
  5698. return callback.call(_this9, selector);
  5699. }
  5700. });
  5701. };
  5702. _proto.walkUniversals = function walkUniversals(callback) {
  5703. var _this10 = this;
  5704. return this.walk(function (selector) {
  5705. if (selector.type === types$1.UNIVERSAL) {
  5706. return callback.call(_this10, selector);
  5707. }
  5708. });
  5709. };
  5710. _proto.split = function split(callback) {
  5711. var _this11 = this;
  5712. var current = [];
  5713. return this.reduce(function (memo, node, index) {
  5714. var split = callback.call(_this11, node);
  5715. current.push(node);
  5716. if (split) {
  5717. memo.push(current);
  5718. current = [];
  5719. } else if (index === _this11.length - 1) {
  5720. memo.push(current);
  5721. }
  5722. return memo;
  5723. }, []);
  5724. };
  5725. _proto.map = function map(callback) {
  5726. return this.nodes.map(callback);
  5727. };
  5728. _proto.reduce = function reduce(callback, memo) {
  5729. return this.nodes.reduce(callback, memo);
  5730. };
  5731. _proto.every = function every(callback) {
  5732. return this.nodes.every(callback);
  5733. };
  5734. _proto.some = function some(callback) {
  5735. return this.nodes.some(callback);
  5736. };
  5737. _proto.filter = function filter(callback) {
  5738. return this.nodes.filter(callback);
  5739. };
  5740. _proto.sort = function sort(callback) {
  5741. return this.nodes.sort(callback);
  5742. };
  5743. _proto.toString = function toString() {
  5744. return this.map(String).join('');
  5745. };
  5746. _createClass(Container, [{
  5747. key: "first",
  5748. get: function get() {
  5749. return this.at(0);
  5750. }
  5751. }, {
  5752. key: "last",
  5753. get: function get() {
  5754. return this.at(this.length - 1);
  5755. }
  5756. }, {
  5757. key: "length",
  5758. get: function get() {
  5759. return this.nodes.length;
  5760. }
  5761. }]);
  5762. return Container;
  5763. }(_node["default"]);
  5764. exports["default"] = Container;
  5765. module.exports = exports.default;
  5766. }(container, container.exports));
  5767. (function (module, exports) {
  5768. exports.__esModule = true;
  5769. exports["default"] = void 0;
  5770. var _container = _interopRequireDefault(container.exports);
  5771. var _types = types;
  5772. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
  5773. function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
  5774. function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
  5775. function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
  5776. function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
  5777. var Root = /*#__PURE__*/function (_Container) {
  5778. _inheritsLoose(Root, _Container);
  5779. function Root(opts) {
  5780. var _this;
  5781. _this = _Container.call(this, opts) || this;
  5782. _this.type = _types.ROOT;
  5783. return _this;
  5784. }
  5785. var _proto = Root.prototype;
  5786. _proto.toString = function toString() {
  5787. var str = this.reduce(function (memo, selector) {
  5788. memo.push(String(selector));
  5789. return memo;
  5790. }, []).join(',');
  5791. return this.trailingComma ? str + ',' : str;
  5792. };
  5793. _proto.error = function error(message, options) {
  5794. if (this._error) {
  5795. return this._error(message, options);
  5796. } else {
  5797. return new Error(message);
  5798. }
  5799. };
  5800. _createClass(Root, [{
  5801. key: "errorGenerator",
  5802. set: function set(handler) {
  5803. this._error = handler;
  5804. }
  5805. }]);
  5806. return Root;
  5807. }(_container["default"]);
  5808. exports["default"] = Root;
  5809. module.exports = exports.default;
  5810. }(root$1, root$1.exports));
  5811. var selector$1 = {exports: {}};
  5812. (function (module, exports) {
  5813. exports.__esModule = true;
  5814. exports["default"] = void 0;
  5815. var _container = _interopRequireDefault(container.exports);
  5816. var _types = types;
  5817. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
  5818. function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
  5819. function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
  5820. var Selector = /*#__PURE__*/function (_Container) {
  5821. _inheritsLoose(Selector, _Container);
  5822. function Selector(opts) {
  5823. var _this;
  5824. _this = _Container.call(this, opts) || this;
  5825. _this.type = _types.SELECTOR;
  5826. return _this;
  5827. }
  5828. return Selector;
  5829. }(_container["default"]);
  5830. exports["default"] = Selector;
  5831. module.exports = exports.default;
  5832. }(selector$1, selector$1.exports));
  5833. var className$1 = {exports: {}};
  5834. /*! https://mths.be/cssesc v3.0.0 by @mathias */
  5835. var object = {};
  5836. var hasOwnProperty$1 = object.hasOwnProperty;
  5837. var merge = function merge(options, defaults) {
  5838. if (!options) {
  5839. return defaults;
  5840. }
  5841. var result = {};
  5842. for (var key in defaults) {
  5843. // `if (defaults.hasOwnProperty(key) { … }` is not needed here, since
  5844. // only recognized option names are used.
  5845. result[key] = hasOwnProperty$1.call(options, key) ? options[key] : defaults[key];
  5846. }
  5847. return result;
  5848. };
  5849. var regexAnySingleEscape = /[ -,\.\/:-@\[-\^`\{-~]/;
  5850. var regexSingleEscape = /[ -,\.\/:-@\[\]\^`\{-~]/;
  5851. var regexExcessiveSpaces = /(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g;
  5852. // https://mathiasbynens.be/notes/css-escapes#css
  5853. var cssesc = function cssesc(string, options) {
  5854. options = merge(options, cssesc.options);
  5855. if (options.quotes != 'single' && options.quotes != 'double') {
  5856. options.quotes = 'single';
  5857. }
  5858. var quote = options.quotes == 'double' ? '"' : '\'';
  5859. var isIdentifier = options.isIdentifier;
  5860. var firstChar = string.charAt(0);
  5861. var output = '';
  5862. var counter = 0;
  5863. var length = string.length;
  5864. while (counter < length) {
  5865. var character = string.charAt(counter++);
  5866. var codePoint = character.charCodeAt();
  5867. var value = void 0;
  5868. // If it’s not a printable ASCII character…
  5869. if (codePoint < 0x20 || codePoint > 0x7E) {
  5870. if (codePoint >= 0xD800 && codePoint <= 0xDBFF && counter < length) {
  5871. // It’s a high surrogate, and there is a next character.
  5872. var extra = string.charCodeAt(counter++);
  5873. if ((extra & 0xFC00) == 0xDC00) {
  5874. // next character is low surrogate
  5875. codePoint = ((codePoint & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000;
  5876. } else {
  5877. // It’s an unmatched surrogate; only append this code unit, in case
  5878. // the next code unit is the high surrogate of a surrogate pair.
  5879. counter--;
  5880. }
  5881. }
  5882. value = '\\' + codePoint.toString(16).toUpperCase() + ' ';
  5883. } else {
  5884. if (options.escapeEverything) {
  5885. if (regexAnySingleEscape.test(character)) {
  5886. value = '\\' + character;
  5887. } else {
  5888. value = '\\' + codePoint.toString(16).toUpperCase() + ' ';
  5889. }
  5890. } else if (/[\t\n\f\r\x0B]/.test(character)) {
  5891. value = '\\' + codePoint.toString(16).toUpperCase() + ' ';
  5892. } else if (character == '\\' || !isIdentifier && (character == '"' && quote == character || character == '\'' && quote == character) || isIdentifier && regexSingleEscape.test(character)) {
  5893. value = '\\' + character;
  5894. } else {
  5895. value = character;
  5896. }
  5897. }
  5898. output += value;
  5899. }
  5900. if (isIdentifier) {
  5901. if (/^-[-\d]/.test(output)) {
  5902. output = '\\-' + output.slice(1);
  5903. } else if (/\d/.test(firstChar)) {
  5904. output = '\\3' + firstChar + ' ' + output.slice(1);
  5905. }
  5906. }
  5907. // Remove spaces after `\HEX` escapes that are not followed by a hex digit,
  5908. // since they’re redundant. Note that this is only possible if the escape
  5909. // sequence isn’t preceded by an odd number of backslashes.
  5910. output = output.replace(regexExcessiveSpaces, function ($0, $1, $2) {
  5911. if ($1 && $1.length % 2) {
  5912. // It’s not safe to remove the space, so don’t.
  5913. return $0;
  5914. }
  5915. // Strip the space.
  5916. return ($1 || '') + $2;
  5917. });
  5918. if (!isIdentifier && options.wrap) {
  5919. return quote + output + quote;
  5920. }
  5921. return output;
  5922. };
  5923. // Expose default options (so they can be overridden globally).
  5924. cssesc.options = {
  5925. 'escapeEverything': false,
  5926. 'isIdentifier': false,
  5927. 'quotes': 'single',
  5928. 'wrap': false
  5929. };
  5930. cssesc.version = '3.0.0';
  5931. var cssesc_1 = cssesc;
  5932. (function (module, exports) {
  5933. exports.__esModule = true;
  5934. exports["default"] = void 0;
  5935. var _cssesc = _interopRequireDefault(cssesc_1);
  5936. var _util = util;
  5937. var _node = _interopRequireDefault(node$1.exports);
  5938. var _types = types;
  5939. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
  5940. function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
  5941. function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
  5942. function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
  5943. function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
  5944. var ClassName = /*#__PURE__*/function (_Node) {
  5945. _inheritsLoose(ClassName, _Node);
  5946. function ClassName(opts) {
  5947. var _this;
  5948. _this = _Node.call(this, opts) || this;
  5949. _this.type = _types.CLASS;
  5950. _this._constructed = true;
  5951. return _this;
  5952. }
  5953. var _proto = ClassName.prototype;
  5954. _proto.valueToString = function valueToString() {
  5955. return '.' + _Node.prototype.valueToString.call(this);
  5956. };
  5957. _createClass(ClassName, [{
  5958. key: "value",
  5959. get: function get() {
  5960. return this._value;
  5961. },
  5962. set: function set(v) {
  5963. if (this._constructed) {
  5964. var escaped = (0, _cssesc["default"])(v, {
  5965. isIdentifier: true
  5966. });
  5967. if (escaped !== v) {
  5968. (0, _util.ensureObject)(this, "raws");
  5969. this.raws.value = escaped;
  5970. } else if (this.raws) {
  5971. delete this.raws.value;
  5972. }
  5973. }
  5974. this._value = v;
  5975. }
  5976. }]);
  5977. return ClassName;
  5978. }(_node["default"]);
  5979. exports["default"] = ClassName;
  5980. module.exports = exports.default;
  5981. }(className$1, className$1.exports));
  5982. var comment$2 = {exports: {}};
  5983. (function (module, exports) {
  5984. exports.__esModule = true;
  5985. exports["default"] = void 0;
  5986. var _node = _interopRequireDefault(node$1.exports);
  5987. var _types = types;
  5988. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
  5989. function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
  5990. function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
  5991. var Comment = /*#__PURE__*/function (_Node) {
  5992. _inheritsLoose(Comment, _Node);
  5993. function Comment(opts) {
  5994. var _this;
  5995. _this = _Node.call(this, opts) || this;
  5996. _this.type = _types.COMMENT;
  5997. return _this;
  5998. }
  5999. return Comment;
  6000. }(_node["default"]);
  6001. exports["default"] = Comment;
  6002. module.exports = exports.default;
  6003. }(comment$2, comment$2.exports));
  6004. var id$1 = {exports: {}};
  6005. (function (module, exports) {
  6006. exports.__esModule = true;
  6007. exports["default"] = void 0;
  6008. var _node = _interopRequireDefault(node$1.exports);
  6009. var _types = types;
  6010. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
  6011. function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
  6012. function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
  6013. var ID = /*#__PURE__*/function (_Node) {
  6014. _inheritsLoose(ID, _Node);
  6015. function ID(opts) {
  6016. var _this;
  6017. _this = _Node.call(this, opts) || this;
  6018. _this.type = _types.ID;
  6019. return _this;
  6020. }
  6021. var _proto = ID.prototype;
  6022. _proto.valueToString = function valueToString() {
  6023. return '#' + _Node.prototype.valueToString.call(this);
  6024. };
  6025. return ID;
  6026. }(_node["default"]);
  6027. exports["default"] = ID;
  6028. module.exports = exports.default;
  6029. }(id$1, id$1.exports));
  6030. var tag$1 = {exports: {}};
  6031. var namespace = {exports: {}};
  6032. (function (module, exports) {
  6033. exports.__esModule = true;
  6034. exports["default"] = void 0;
  6035. var _cssesc = _interopRequireDefault(cssesc_1);
  6036. var _util = util;
  6037. var _node = _interopRequireDefault(node$1.exports);
  6038. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
  6039. function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
  6040. function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
  6041. function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
  6042. function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
  6043. var Namespace = /*#__PURE__*/function (_Node) {
  6044. _inheritsLoose(Namespace, _Node);
  6045. function Namespace() {
  6046. return _Node.apply(this, arguments) || this;
  6047. }
  6048. var _proto = Namespace.prototype;
  6049. _proto.qualifiedName = function qualifiedName(value) {
  6050. if (this.namespace) {
  6051. return this.namespaceString + "|" + value;
  6052. } else {
  6053. return value;
  6054. }
  6055. };
  6056. _proto.valueToString = function valueToString() {
  6057. return this.qualifiedName(_Node.prototype.valueToString.call(this));
  6058. };
  6059. _createClass(Namespace, [{
  6060. key: "namespace",
  6061. get: function get() {
  6062. return this._namespace;
  6063. },
  6064. set: function set(namespace) {
  6065. if (namespace === true || namespace === "*" || namespace === "&") {
  6066. this._namespace = namespace;
  6067. if (this.raws) {
  6068. delete this.raws.namespace;
  6069. }
  6070. return;
  6071. }
  6072. var escaped = (0, _cssesc["default"])(namespace, {
  6073. isIdentifier: true
  6074. });
  6075. this._namespace = namespace;
  6076. if (escaped !== namespace) {
  6077. (0, _util.ensureObject)(this, "raws");
  6078. this.raws.namespace = escaped;
  6079. } else if (this.raws) {
  6080. delete this.raws.namespace;
  6081. }
  6082. }
  6083. }, {
  6084. key: "ns",
  6085. get: function get() {
  6086. return this._namespace;
  6087. },
  6088. set: function set(namespace) {
  6089. this.namespace = namespace;
  6090. }
  6091. }, {
  6092. key: "namespaceString",
  6093. get: function get() {
  6094. if (this.namespace) {
  6095. var ns = this.stringifyProperty("namespace");
  6096. if (ns === true) {
  6097. return '';
  6098. } else {
  6099. return ns;
  6100. }
  6101. } else {
  6102. return '';
  6103. }
  6104. }
  6105. }]);
  6106. return Namespace;
  6107. }(_node["default"]);
  6108. exports["default"] = Namespace;
  6109. module.exports = exports.default;
  6110. }(namespace, namespace.exports));
  6111. (function (module, exports) {
  6112. exports.__esModule = true;
  6113. exports["default"] = void 0;
  6114. var _namespace = _interopRequireDefault(namespace.exports);
  6115. var _types = types;
  6116. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
  6117. function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
  6118. function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
  6119. var Tag = /*#__PURE__*/function (_Namespace) {
  6120. _inheritsLoose(Tag, _Namespace);
  6121. function Tag(opts) {
  6122. var _this;
  6123. _this = _Namespace.call(this, opts) || this;
  6124. _this.type = _types.TAG;
  6125. return _this;
  6126. }
  6127. return Tag;
  6128. }(_namespace["default"]);
  6129. exports["default"] = Tag;
  6130. module.exports = exports.default;
  6131. }(tag$1, tag$1.exports));
  6132. var string$1 = {exports: {}};
  6133. (function (module, exports) {
  6134. exports.__esModule = true;
  6135. exports["default"] = void 0;
  6136. var _node = _interopRequireDefault(node$1.exports);
  6137. var _types = types;
  6138. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
  6139. function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
  6140. function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
  6141. var String = /*#__PURE__*/function (_Node) {
  6142. _inheritsLoose(String, _Node);
  6143. function String(opts) {
  6144. var _this;
  6145. _this = _Node.call(this, opts) || this;
  6146. _this.type = _types.STRING;
  6147. return _this;
  6148. }
  6149. return String;
  6150. }(_node["default"]);
  6151. exports["default"] = String;
  6152. module.exports = exports.default;
  6153. }(string$1, string$1.exports));
  6154. var pseudo$1 = {exports: {}};
  6155. (function (module, exports) {
  6156. exports.__esModule = true;
  6157. exports["default"] = void 0;
  6158. var _container = _interopRequireDefault(container.exports);
  6159. var _types = types;
  6160. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
  6161. function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
  6162. function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
  6163. var Pseudo = /*#__PURE__*/function (_Container) {
  6164. _inheritsLoose(Pseudo, _Container);
  6165. function Pseudo(opts) {
  6166. var _this;
  6167. _this = _Container.call(this, opts) || this;
  6168. _this.type = _types.PSEUDO;
  6169. return _this;
  6170. }
  6171. var _proto = Pseudo.prototype;
  6172. _proto.toString = function toString() {
  6173. var params = this.length ? '(' + this.map(String).join(',') + ')' : '';
  6174. return [this.rawSpaceBefore, this.stringifyProperty("value"), params, this.rawSpaceAfter].join('');
  6175. };
  6176. return Pseudo;
  6177. }(_container["default"]);
  6178. exports["default"] = Pseudo;
  6179. module.exports = exports.default;
  6180. }(pseudo$1, pseudo$1.exports));
  6181. var attribute$1 = {};
  6182. /**
  6183. * For Node.js, simply re-export the core `util.deprecate` function.
  6184. */
  6185. var node = require$$0__default$1.deprecate;
  6186. (function (exports) {
  6187. exports.__esModule = true;
  6188. exports.unescapeValue = unescapeValue;
  6189. exports["default"] = void 0;
  6190. var _cssesc = _interopRequireDefault(cssesc_1);
  6191. var _unesc = _interopRequireDefault(unesc.exports);
  6192. var _namespace = _interopRequireDefault(namespace.exports);
  6193. var _types = types;
  6194. var _CSSESC_QUOTE_OPTIONS;
  6195. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
  6196. function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
  6197. function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
  6198. function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
  6199. function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
  6200. var deprecate = node;
  6201. var WRAPPED_IN_QUOTES = /^('|")([^]*)\1$/;
  6202. var warnOfDeprecatedValueAssignment = deprecate(function () {}, "Assigning an attribute a value containing characters that might need to be escaped is deprecated. " + "Call attribute.setValue() instead.");
  6203. var warnOfDeprecatedQuotedAssignment = deprecate(function () {}, "Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead.");
  6204. var warnOfDeprecatedConstructor = deprecate(function () {}, "Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");
  6205. function unescapeValue(value) {
  6206. var deprecatedUsage = false;
  6207. var quoteMark = null;
  6208. var unescaped = value;
  6209. var m = unescaped.match(WRAPPED_IN_QUOTES);
  6210. if (m) {
  6211. quoteMark = m[1];
  6212. unescaped = m[2];
  6213. }
  6214. unescaped = (0, _unesc["default"])(unescaped);
  6215. if (unescaped !== value) {
  6216. deprecatedUsage = true;
  6217. }
  6218. return {
  6219. deprecatedUsage: deprecatedUsage,
  6220. unescaped: unescaped,
  6221. quoteMark: quoteMark
  6222. };
  6223. }
  6224. function handleDeprecatedContructorOpts(opts) {
  6225. if (opts.quoteMark !== undefined) {
  6226. return opts;
  6227. }
  6228. if (opts.value === undefined) {
  6229. return opts;
  6230. }
  6231. warnOfDeprecatedConstructor();
  6232. var _unescapeValue = unescapeValue(opts.value),
  6233. quoteMark = _unescapeValue.quoteMark,
  6234. unescaped = _unescapeValue.unescaped;
  6235. if (!opts.raws) {
  6236. opts.raws = {};
  6237. }
  6238. if (opts.raws.value === undefined) {
  6239. opts.raws.value = opts.value;
  6240. }
  6241. opts.value = unescaped;
  6242. opts.quoteMark = quoteMark;
  6243. return opts;
  6244. }
  6245. var Attribute = /*#__PURE__*/function (_Namespace) {
  6246. _inheritsLoose(Attribute, _Namespace);
  6247. function Attribute(opts) {
  6248. var _this;
  6249. if (opts === void 0) {
  6250. opts = {};
  6251. }
  6252. _this = _Namespace.call(this, handleDeprecatedContructorOpts(opts)) || this;
  6253. _this.type = _types.ATTRIBUTE;
  6254. _this.raws = _this.raws || {};
  6255. Object.defineProperty(_this.raws, 'unquoted', {
  6256. get: deprecate(function () {
  6257. return _this.value;
  6258. }, "attr.raws.unquoted is deprecated. Call attr.value instead."),
  6259. set: deprecate(function () {
  6260. return _this.value;
  6261. }, "Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")
  6262. });
  6263. _this._constructed = true;
  6264. return _this;
  6265. }
  6266. /**
  6267. * Returns the Attribute's value quoted such that it would be legal to use
  6268. * in the value of a css file. The original value's quotation setting
  6269. * used for stringification is left unchanged. See `setValue(value, options)`
  6270. * if you want to control the quote settings of a new value for the attribute.
  6271. *
  6272. * You can also change the quotation used for the current value by setting quoteMark.
  6273. *
  6274. * Options:
  6275. * * quoteMark {'"' | "'" | null} - Use this value to quote the value. If this
  6276. * option is not set, the original value for quoteMark will be used. If
  6277. * indeterminate, a double quote is used. The legal values are:
  6278. * * `null` - the value will be unquoted and characters will be escaped as necessary.
  6279. * * `'` - the value will be quoted with a single quote and single quotes are escaped.
  6280. * * `"` - the value will be quoted with a double quote and double quotes are escaped.
  6281. * * preferCurrentQuoteMark {boolean} - if true, prefer the source quote mark
  6282. * over the quoteMark option value.
  6283. * * smart {boolean} - if true, will select a quote mark based on the value
  6284. * and the other options specified here. See the `smartQuoteMark()`
  6285. * method.
  6286. **/
  6287. var _proto = Attribute.prototype;
  6288. _proto.getQuotedValue = function getQuotedValue(options) {
  6289. if (options === void 0) {
  6290. options = {};
  6291. }
  6292. var quoteMark = this._determineQuoteMark(options);
  6293. var cssescopts = CSSESC_QUOTE_OPTIONS[quoteMark];
  6294. var escaped = (0, _cssesc["default"])(this._value, cssescopts);
  6295. return escaped;
  6296. };
  6297. _proto._determineQuoteMark = function _determineQuoteMark(options) {
  6298. return options.smart ? this.smartQuoteMark(options) : this.preferredQuoteMark(options);
  6299. }
  6300. /**
  6301. * Set the unescaped value with the specified quotation options. The value
  6302. * provided must not include any wrapping quote marks -- those quotes will
  6303. * be interpreted as part of the value and escaped accordingly.
  6304. */
  6305. ;
  6306. _proto.setValue = function setValue(value, options) {
  6307. if (options === void 0) {
  6308. options = {};
  6309. }
  6310. this._value = value;
  6311. this._quoteMark = this._determineQuoteMark(options);
  6312. this._syncRawValue();
  6313. }
  6314. /**
  6315. * Intelligently select a quoteMark value based on the value's contents. If
  6316. * the value is a legal CSS ident, it will not be quoted. Otherwise a quote
  6317. * mark will be picked that minimizes the number of escapes.
  6318. *
  6319. * If there's no clear winner, the quote mark from these options is used,
  6320. * then the source quote mark (this is inverted if `preferCurrentQuoteMark` is
  6321. * true). If the quoteMark is unspecified, a double quote is used.
  6322. *
  6323. * @param options This takes the quoteMark and preferCurrentQuoteMark options
  6324. * from the quoteValue method.
  6325. */
  6326. ;
  6327. _proto.smartQuoteMark = function smartQuoteMark(options) {
  6328. var v = this.value;
  6329. var numSingleQuotes = v.replace(/[^']/g, '').length;
  6330. var numDoubleQuotes = v.replace(/[^"]/g, '').length;
  6331. if (numSingleQuotes + numDoubleQuotes === 0) {
  6332. var escaped = (0, _cssesc["default"])(v, {
  6333. isIdentifier: true
  6334. });
  6335. if (escaped === v) {
  6336. return Attribute.NO_QUOTE;
  6337. } else {
  6338. var pref = this.preferredQuoteMark(options);
  6339. if (pref === Attribute.NO_QUOTE) {
  6340. // pick a quote mark that isn't none and see if it's smaller
  6341. var quote = this.quoteMark || options.quoteMark || Attribute.DOUBLE_QUOTE;
  6342. var opts = CSSESC_QUOTE_OPTIONS[quote];
  6343. var quoteValue = (0, _cssesc["default"])(v, opts);
  6344. if (quoteValue.length < escaped.length) {
  6345. return quote;
  6346. }
  6347. }
  6348. return pref;
  6349. }
  6350. } else if (numDoubleQuotes === numSingleQuotes) {
  6351. return this.preferredQuoteMark(options);
  6352. } else if (numDoubleQuotes < numSingleQuotes) {
  6353. return Attribute.DOUBLE_QUOTE;
  6354. } else {
  6355. return Attribute.SINGLE_QUOTE;
  6356. }
  6357. }
  6358. /**
  6359. * Selects the preferred quote mark based on the options and the current quote mark value.
  6360. * If you want the quote mark to depend on the attribute value, call `smartQuoteMark(opts)`
  6361. * instead.
  6362. */
  6363. ;
  6364. _proto.preferredQuoteMark = function preferredQuoteMark(options) {
  6365. var quoteMark = options.preferCurrentQuoteMark ? this.quoteMark : options.quoteMark;
  6366. if (quoteMark === undefined) {
  6367. quoteMark = options.preferCurrentQuoteMark ? options.quoteMark : this.quoteMark;
  6368. }
  6369. if (quoteMark === undefined) {
  6370. quoteMark = Attribute.DOUBLE_QUOTE;
  6371. }
  6372. return quoteMark;
  6373. };
  6374. _proto._syncRawValue = function _syncRawValue() {
  6375. var rawValue = (0, _cssesc["default"])(this._value, CSSESC_QUOTE_OPTIONS[this.quoteMark]);
  6376. if (rawValue === this._value) {
  6377. if (this.raws) {
  6378. delete this.raws.value;
  6379. }
  6380. } else {
  6381. this.raws.value = rawValue;
  6382. }
  6383. };
  6384. _proto._handleEscapes = function _handleEscapes(prop, value) {
  6385. if (this._constructed) {
  6386. var escaped = (0, _cssesc["default"])(value, {
  6387. isIdentifier: true
  6388. });
  6389. if (escaped !== value) {
  6390. this.raws[prop] = escaped;
  6391. } else {
  6392. delete this.raws[prop];
  6393. }
  6394. }
  6395. };
  6396. _proto._spacesFor = function _spacesFor(name) {
  6397. var attrSpaces = {
  6398. before: '',
  6399. after: ''
  6400. };
  6401. var spaces = this.spaces[name] || {};
  6402. var rawSpaces = this.raws.spaces && this.raws.spaces[name] || {};
  6403. return Object.assign(attrSpaces, spaces, rawSpaces);
  6404. };
  6405. _proto._stringFor = function _stringFor(name, spaceName, concat) {
  6406. if (spaceName === void 0) {
  6407. spaceName = name;
  6408. }
  6409. if (concat === void 0) {
  6410. concat = defaultAttrConcat;
  6411. }
  6412. var attrSpaces = this._spacesFor(spaceName);
  6413. return concat(this.stringifyProperty(name), attrSpaces);
  6414. }
  6415. /**
  6416. * returns the offset of the attribute part specified relative to the
  6417. * start of the node of the output string.
  6418. *
  6419. * * "ns" - alias for "namespace"
  6420. * * "namespace" - the namespace if it exists.
  6421. * * "attribute" - the attribute name
  6422. * * "attributeNS" - the start of the attribute or its namespace
  6423. * * "operator" - the match operator of the attribute
  6424. * * "value" - The value (string or identifier)
  6425. * * "insensitive" - the case insensitivity flag;
  6426. * @param part One of the possible values inside an attribute.
  6427. * @returns -1 if the name is invalid or the value doesn't exist in this attribute.
  6428. */
  6429. ;
  6430. _proto.offsetOf = function offsetOf(name) {
  6431. var count = 1;
  6432. var attributeSpaces = this._spacesFor("attribute");
  6433. count += attributeSpaces.before.length;
  6434. if (name === "namespace" || name === "ns") {
  6435. return this.namespace ? count : -1;
  6436. }
  6437. if (name === "attributeNS") {
  6438. return count;
  6439. }
  6440. count += this.namespaceString.length;
  6441. if (this.namespace) {
  6442. count += 1;
  6443. }
  6444. if (name === "attribute") {
  6445. return count;
  6446. }
  6447. count += this.stringifyProperty("attribute").length;
  6448. count += attributeSpaces.after.length;
  6449. var operatorSpaces = this._spacesFor("operator");
  6450. count += operatorSpaces.before.length;
  6451. var operator = this.stringifyProperty("operator");
  6452. if (name === "operator") {
  6453. return operator ? count : -1;
  6454. }
  6455. count += operator.length;
  6456. count += operatorSpaces.after.length;
  6457. var valueSpaces = this._spacesFor("value");
  6458. count += valueSpaces.before.length;
  6459. var value = this.stringifyProperty("value");
  6460. if (name === "value") {
  6461. return value ? count : -1;
  6462. }
  6463. count += value.length;
  6464. count += valueSpaces.after.length;
  6465. var insensitiveSpaces = this._spacesFor("insensitive");
  6466. count += insensitiveSpaces.before.length;
  6467. if (name === "insensitive") {
  6468. return this.insensitive ? count : -1;
  6469. }
  6470. return -1;
  6471. };
  6472. _proto.toString = function toString() {
  6473. var _this2 = this;
  6474. var selector = [this.rawSpaceBefore, '['];
  6475. selector.push(this._stringFor('qualifiedAttribute', 'attribute'));
  6476. if (this.operator && (this.value || this.value === '')) {
  6477. selector.push(this._stringFor('operator'));
  6478. selector.push(this._stringFor('value'));
  6479. selector.push(this._stringFor('insensitiveFlag', 'insensitive', function (attrValue, attrSpaces) {
  6480. if (attrValue.length > 0 && !_this2.quoted && attrSpaces.before.length === 0 && !(_this2.spaces.value && _this2.spaces.value.after)) {
  6481. attrSpaces.before = " ";
  6482. }
  6483. return defaultAttrConcat(attrValue, attrSpaces);
  6484. }));
  6485. }
  6486. selector.push(']');
  6487. selector.push(this.rawSpaceAfter);
  6488. return selector.join('');
  6489. };
  6490. _createClass(Attribute, [{
  6491. key: "quoted",
  6492. get: function get() {
  6493. var qm = this.quoteMark;
  6494. return qm === "'" || qm === '"';
  6495. },
  6496. set: function set(value) {
  6497. warnOfDeprecatedQuotedAssignment();
  6498. }
  6499. /**
  6500. * returns a single (`'`) or double (`"`) quote character if the value is quoted.
  6501. * returns `null` if the value is not quoted.
  6502. * returns `undefined` if the quotation state is unknown (this can happen when
  6503. * the attribute is constructed without specifying a quote mark.)
  6504. */
  6505. }, {
  6506. key: "quoteMark",
  6507. get: function get() {
  6508. return this._quoteMark;
  6509. }
  6510. /**
  6511. * Set the quote mark to be used by this attribute's value.
  6512. * If the quote mark changes, the raw (escaped) value at `attr.raws.value` of the attribute
  6513. * value is updated accordingly.
  6514. *
  6515. * @param {"'" | '"' | null} quoteMark The quote mark or `null` if the value should be unquoted.
  6516. */
  6517. ,
  6518. set: function set(quoteMark) {
  6519. if (!this._constructed) {
  6520. this._quoteMark = quoteMark;
  6521. return;
  6522. }
  6523. if (this._quoteMark !== quoteMark) {
  6524. this._quoteMark = quoteMark;
  6525. this._syncRawValue();
  6526. }
  6527. }
  6528. }, {
  6529. key: "qualifiedAttribute",
  6530. get: function get() {
  6531. return this.qualifiedName(this.raws.attribute || this.attribute);
  6532. }
  6533. }, {
  6534. key: "insensitiveFlag",
  6535. get: function get() {
  6536. return this.insensitive ? 'i' : '';
  6537. }
  6538. }, {
  6539. key: "value",
  6540. get: function get() {
  6541. return this._value;
  6542. }
  6543. /**
  6544. * Before 3.0, the value had to be set to an escaped value including any wrapped
  6545. * quote marks. In 3.0, the semantics of `Attribute.value` changed so that the value
  6546. * is unescaped during parsing and any quote marks are removed.
  6547. *
  6548. * Because the ambiguity of this semantic change, if you set `attr.value = newValue`,
  6549. * a deprecation warning is raised when the new value contains any characters that would
  6550. * require escaping (including if it contains wrapped quotes).
  6551. *
  6552. * Instead, you should call `attr.setValue(newValue, opts)` and pass options that describe
  6553. * how the new value is quoted.
  6554. */
  6555. ,
  6556. set: function set(v) {
  6557. if (this._constructed) {
  6558. var _unescapeValue2 = unescapeValue(v),
  6559. deprecatedUsage = _unescapeValue2.deprecatedUsage,
  6560. unescaped = _unescapeValue2.unescaped,
  6561. quoteMark = _unescapeValue2.quoteMark;
  6562. if (deprecatedUsage) {
  6563. warnOfDeprecatedValueAssignment();
  6564. }
  6565. if (unescaped === this._value && quoteMark === this._quoteMark) {
  6566. return;
  6567. }
  6568. this._value = unescaped;
  6569. this._quoteMark = quoteMark;
  6570. this._syncRawValue();
  6571. } else {
  6572. this._value = v;
  6573. }
  6574. }
  6575. }, {
  6576. key: "attribute",
  6577. get: function get() {
  6578. return this._attribute;
  6579. },
  6580. set: function set(name) {
  6581. this._handleEscapes("attribute", name);
  6582. this._attribute = name;
  6583. }
  6584. }]);
  6585. return Attribute;
  6586. }(_namespace["default"]);
  6587. exports["default"] = Attribute;
  6588. Attribute.NO_QUOTE = null;
  6589. Attribute.SINGLE_QUOTE = "'";
  6590. Attribute.DOUBLE_QUOTE = '"';
  6591. var CSSESC_QUOTE_OPTIONS = (_CSSESC_QUOTE_OPTIONS = {
  6592. "'": {
  6593. quotes: 'single',
  6594. wrap: true
  6595. },
  6596. '"': {
  6597. quotes: 'double',
  6598. wrap: true
  6599. }
  6600. }, _CSSESC_QUOTE_OPTIONS[null] = {
  6601. isIdentifier: true
  6602. }, _CSSESC_QUOTE_OPTIONS);
  6603. function defaultAttrConcat(attrValue, attrSpaces) {
  6604. return "" + attrSpaces.before + attrValue + attrSpaces.after;
  6605. }
  6606. }(attribute$1));
  6607. var universal$1 = {exports: {}};
  6608. (function (module, exports) {
  6609. exports.__esModule = true;
  6610. exports["default"] = void 0;
  6611. var _namespace = _interopRequireDefault(namespace.exports);
  6612. var _types = types;
  6613. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
  6614. function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
  6615. function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
  6616. var Universal = /*#__PURE__*/function (_Namespace) {
  6617. _inheritsLoose(Universal, _Namespace);
  6618. function Universal(opts) {
  6619. var _this;
  6620. _this = _Namespace.call(this, opts) || this;
  6621. _this.type = _types.UNIVERSAL;
  6622. _this.value = '*';
  6623. return _this;
  6624. }
  6625. return Universal;
  6626. }(_namespace["default"]);
  6627. exports["default"] = Universal;
  6628. module.exports = exports.default;
  6629. }(universal$1, universal$1.exports));
  6630. var combinator$2 = {exports: {}};
  6631. (function (module, exports) {
  6632. exports.__esModule = true;
  6633. exports["default"] = void 0;
  6634. var _node = _interopRequireDefault(node$1.exports);
  6635. var _types = types;
  6636. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
  6637. function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
  6638. function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
  6639. var Combinator = /*#__PURE__*/function (_Node) {
  6640. _inheritsLoose(Combinator, _Node);
  6641. function Combinator(opts) {
  6642. var _this;
  6643. _this = _Node.call(this, opts) || this;
  6644. _this.type = _types.COMBINATOR;
  6645. return _this;
  6646. }
  6647. return Combinator;
  6648. }(_node["default"]);
  6649. exports["default"] = Combinator;
  6650. module.exports = exports.default;
  6651. }(combinator$2, combinator$2.exports));
  6652. var nesting$1 = {exports: {}};
  6653. (function (module, exports) {
  6654. exports.__esModule = true;
  6655. exports["default"] = void 0;
  6656. var _node = _interopRequireDefault(node$1.exports);
  6657. var _types = types;
  6658. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
  6659. function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
  6660. function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
  6661. var Nesting = /*#__PURE__*/function (_Node) {
  6662. _inheritsLoose(Nesting, _Node);
  6663. function Nesting(opts) {
  6664. var _this;
  6665. _this = _Node.call(this, opts) || this;
  6666. _this.type = _types.NESTING;
  6667. _this.value = '&';
  6668. return _this;
  6669. }
  6670. return Nesting;
  6671. }(_node["default"]);
  6672. exports["default"] = Nesting;
  6673. module.exports = exports.default;
  6674. }(nesting$1, nesting$1.exports));
  6675. var sortAscending = {exports: {}};
  6676. (function (module, exports) {
  6677. exports.__esModule = true;
  6678. exports["default"] = sortAscending;
  6679. function sortAscending(list) {
  6680. return list.sort(function (a, b) {
  6681. return a - b;
  6682. });
  6683. }
  6684. module.exports = exports.default;
  6685. }(sortAscending, sortAscending.exports));
  6686. var tokenize = {};
  6687. var tokenTypes = {};
  6688. tokenTypes.__esModule = true;
  6689. tokenTypes.combinator = tokenTypes.word = tokenTypes.comment = tokenTypes.str = tokenTypes.tab = tokenTypes.newline = tokenTypes.feed = tokenTypes.cr = tokenTypes.backslash = tokenTypes.bang = tokenTypes.slash = tokenTypes.doubleQuote = tokenTypes.singleQuote = tokenTypes.space = tokenTypes.greaterThan = tokenTypes.pipe = tokenTypes.equals = tokenTypes.plus = tokenTypes.caret = tokenTypes.tilde = tokenTypes.dollar = tokenTypes.closeSquare = tokenTypes.openSquare = tokenTypes.closeParenthesis = tokenTypes.openParenthesis = tokenTypes.semicolon = tokenTypes.colon = tokenTypes.comma = tokenTypes.at = tokenTypes.asterisk = tokenTypes.ampersand = void 0;
  6690. var ampersand = 38; // `&`.charCodeAt(0);
  6691. tokenTypes.ampersand = ampersand;
  6692. var asterisk = 42; // `*`.charCodeAt(0);
  6693. tokenTypes.asterisk = asterisk;
  6694. var at = 64; // `@`.charCodeAt(0);
  6695. tokenTypes.at = at;
  6696. var comma = 44; // `,`.charCodeAt(0);
  6697. tokenTypes.comma = comma;
  6698. var colon = 58; // `:`.charCodeAt(0);
  6699. tokenTypes.colon = colon;
  6700. var semicolon = 59; // `;`.charCodeAt(0);
  6701. tokenTypes.semicolon = semicolon;
  6702. var openParenthesis = 40; // `(`.charCodeAt(0);
  6703. tokenTypes.openParenthesis = openParenthesis;
  6704. var closeParenthesis = 41; // `)`.charCodeAt(0);
  6705. tokenTypes.closeParenthesis = closeParenthesis;
  6706. var openSquare = 91; // `[`.charCodeAt(0);
  6707. tokenTypes.openSquare = openSquare;
  6708. var closeSquare = 93; // `]`.charCodeAt(0);
  6709. tokenTypes.closeSquare = closeSquare;
  6710. var dollar = 36; // `$`.charCodeAt(0);
  6711. tokenTypes.dollar = dollar;
  6712. var tilde = 126; // `~`.charCodeAt(0);
  6713. tokenTypes.tilde = tilde;
  6714. var caret = 94; // `^`.charCodeAt(0);
  6715. tokenTypes.caret = caret;
  6716. var plus = 43; // `+`.charCodeAt(0);
  6717. tokenTypes.plus = plus;
  6718. var equals = 61; // `=`.charCodeAt(0);
  6719. tokenTypes.equals = equals;
  6720. var pipe = 124; // `|`.charCodeAt(0);
  6721. tokenTypes.pipe = pipe;
  6722. var greaterThan = 62; // `>`.charCodeAt(0);
  6723. tokenTypes.greaterThan = greaterThan;
  6724. var space = 32; // ` `.charCodeAt(0);
  6725. tokenTypes.space = space;
  6726. var singleQuote = 39; // `'`.charCodeAt(0);
  6727. tokenTypes.singleQuote = singleQuote;
  6728. var doubleQuote = 34; // `"`.charCodeAt(0);
  6729. tokenTypes.doubleQuote = doubleQuote;
  6730. var slash = 47; // `/`.charCodeAt(0);
  6731. tokenTypes.slash = slash;
  6732. var bang = 33; // `!`.charCodeAt(0);
  6733. tokenTypes.bang = bang;
  6734. var backslash = 92; // '\\'.charCodeAt(0);
  6735. tokenTypes.backslash = backslash;
  6736. var cr = 13; // '\r'.charCodeAt(0);
  6737. tokenTypes.cr = cr;
  6738. var feed = 12; // '\f'.charCodeAt(0);
  6739. tokenTypes.feed = feed;
  6740. var newline = 10; // '\n'.charCodeAt(0);
  6741. tokenTypes.newline = newline;
  6742. var tab = 9; // '\t'.charCodeAt(0);
  6743. // Expose aliases primarily for readability.
  6744. tokenTypes.tab = tab;
  6745. var str = singleQuote; // No good single character representation!
  6746. tokenTypes.str = str;
  6747. var comment$1 = -1;
  6748. tokenTypes.comment = comment$1;
  6749. var word = -2;
  6750. tokenTypes.word = word;
  6751. var combinator$1 = -3;
  6752. tokenTypes.combinator = combinator$1;
  6753. (function (exports) {
  6754. exports.__esModule = true;
  6755. exports["default"] = tokenize;
  6756. exports.FIELDS = void 0;
  6757. var t = _interopRequireWildcard(tokenTypes);
  6758. var _unescapable, _wordDelimiters;
  6759. function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
  6760. function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
  6761. var unescapable = (_unescapable = {}, _unescapable[t.tab] = true, _unescapable[t.newline] = true, _unescapable[t.cr] = true, _unescapable[t.feed] = true, _unescapable);
  6762. var wordDelimiters = (_wordDelimiters = {}, _wordDelimiters[t.space] = true, _wordDelimiters[t.tab] = true, _wordDelimiters[t.newline] = true, _wordDelimiters[t.cr] = true, _wordDelimiters[t.feed] = true, _wordDelimiters[t.ampersand] = true, _wordDelimiters[t.asterisk] = true, _wordDelimiters[t.bang] = true, _wordDelimiters[t.comma] = true, _wordDelimiters[t.colon] = true, _wordDelimiters[t.semicolon] = true, _wordDelimiters[t.openParenthesis] = true, _wordDelimiters[t.closeParenthesis] = true, _wordDelimiters[t.openSquare] = true, _wordDelimiters[t.closeSquare] = true, _wordDelimiters[t.singleQuote] = true, _wordDelimiters[t.doubleQuote] = true, _wordDelimiters[t.plus] = true, _wordDelimiters[t.pipe] = true, _wordDelimiters[t.tilde] = true, _wordDelimiters[t.greaterThan] = true, _wordDelimiters[t.equals] = true, _wordDelimiters[t.dollar] = true, _wordDelimiters[t.caret] = true, _wordDelimiters[t.slash] = true, _wordDelimiters);
  6763. var hex = {};
  6764. var hexChars = "0123456789abcdefABCDEF";
  6765. for (var i = 0; i < hexChars.length; i++) {
  6766. hex[hexChars.charCodeAt(i)] = true;
  6767. }
  6768. /**
  6769. * Returns the last index of the bar css word
  6770. * @param {string} css The string in which the word begins
  6771. * @param {number} start The index into the string where word's first letter occurs
  6772. */
  6773. function consumeWord(css, start) {
  6774. var next = start;
  6775. var code;
  6776. do {
  6777. code = css.charCodeAt(next);
  6778. if (wordDelimiters[code]) {
  6779. return next - 1;
  6780. } else if (code === t.backslash) {
  6781. next = consumeEscape(css, next) + 1;
  6782. } else {
  6783. // All other characters are part of the word
  6784. next++;
  6785. }
  6786. } while (next < css.length);
  6787. return next - 1;
  6788. }
  6789. /**
  6790. * Returns the last index of the escape sequence
  6791. * @param {string} css The string in which the sequence begins
  6792. * @param {number} start The index into the string where escape character (`\`) occurs.
  6793. */
  6794. function consumeEscape(css, start) {
  6795. var next = start;
  6796. var code = css.charCodeAt(next + 1);
  6797. if (unescapable[code]) ; else if (hex[code]) {
  6798. var hexDigits = 0; // consume up to 6 hex chars
  6799. do {
  6800. next++;
  6801. hexDigits++;
  6802. code = css.charCodeAt(next + 1);
  6803. } while (hex[code] && hexDigits < 6); // if fewer than 6 hex chars, a trailing space ends the escape
  6804. if (hexDigits < 6 && code === t.space) {
  6805. next++;
  6806. }
  6807. } else {
  6808. // the next char is part of the current word
  6809. next++;
  6810. }
  6811. return next;
  6812. }
  6813. var FIELDS = {
  6814. TYPE: 0,
  6815. START_LINE: 1,
  6816. START_COL: 2,
  6817. END_LINE: 3,
  6818. END_COL: 4,
  6819. START_POS: 5,
  6820. END_POS: 6
  6821. };
  6822. exports.FIELDS = FIELDS;
  6823. function tokenize(input) {
  6824. var tokens = [];
  6825. var css = input.css.valueOf();
  6826. var _css = css,
  6827. length = _css.length;
  6828. var offset = -1;
  6829. var line = 1;
  6830. var start = 0;
  6831. var end = 0;
  6832. var code, content, endColumn, endLine, escaped, escapePos, last, lines, next, nextLine, nextOffset, quote, tokenType;
  6833. function unclosed(what, fix) {
  6834. if (input.safe) {
  6835. // fyi: this is never set to true.
  6836. css += fix;
  6837. next = css.length - 1;
  6838. } else {
  6839. throw input.error('Unclosed ' + what, line, start - offset, start);
  6840. }
  6841. }
  6842. while (start < length) {
  6843. code = css.charCodeAt(start);
  6844. if (code === t.newline) {
  6845. offset = start;
  6846. line += 1;
  6847. }
  6848. switch (code) {
  6849. case t.space:
  6850. case t.tab:
  6851. case t.newline:
  6852. case t.cr:
  6853. case t.feed:
  6854. next = start;
  6855. do {
  6856. next += 1;
  6857. code = css.charCodeAt(next);
  6858. if (code === t.newline) {
  6859. offset = next;
  6860. line += 1;
  6861. }
  6862. } while (code === t.space || code === t.newline || code === t.tab || code === t.cr || code === t.feed);
  6863. tokenType = t.space;
  6864. endLine = line;
  6865. endColumn = next - offset - 1;
  6866. end = next;
  6867. break;
  6868. case t.plus:
  6869. case t.greaterThan:
  6870. case t.tilde:
  6871. case t.pipe:
  6872. next = start;
  6873. do {
  6874. next += 1;
  6875. code = css.charCodeAt(next);
  6876. } while (code === t.plus || code === t.greaterThan || code === t.tilde || code === t.pipe);
  6877. tokenType = t.combinator;
  6878. endLine = line;
  6879. endColumn = start - offset;
  6880. end = next;
  6881. break;
  6882. // Consume these characters as single tokens.
  6883. case t.asterisk:
  6884. case t.ampersand:
  6885. case t.bang:
  6886. case t.comma:
  6887. case t.equals:
  6888. case t.dollar:
  6889. case t.caret:
  6890. case t.openSquare:
  6891. case t.closeSquare:
  6892. case t.colon:
  6893. case t.semicolon:
  6894. case t.openParenthesis:
  6895. case t.closeParenthesis:
  6896. next = start;
  6897. tokenType = code;
  6898. endLine = line;
  6899. endColumn = start - offset;
  6900. end = next + 1;
  6901. break;
  6902. case t.singleQuote:
  6903. case t.doubleQuote:
  6904. quote = code === t.singleQuote ? "'" : '"';
  6905. next = start;
  6906. do {
  6907. escaped = false;
  6908. next = css.indexOf(quote, next + 1);
  6909. if (next === -1) {
  6910. unclosed('quote', quote);
  6911. }
  6912. escapePos = next;
  6913. while (css.charCodeAt(escapePos - 1) === t.backslash) {
  6914. escapePos -= 1;
  6915. escaped = !escaped;
  6916. }
  6917. } while (escaped);
  6918. tokenType = t.str;
  6919. endLine = line;
  6920. endColumn = start - offset;
  6921. end = next + 1;
  6922. break;
  6923. default:
  6924. if (code === t.slash && css.charCodeAt(start + 1) === t.asterisk) {
  6925. next = css.indexOf('*/', start + 2) + 1;
  6926. if (next === 0) {
  6927. unclosed('comment', '*/');
  6928. }
  6929. content = css.slice(start, next + 1);
  6930. lines = content.split('\n');
  6931. last = lines.length - 1;
  6932. if (last > 0) {
  6933. nextLine = line + last;
  6934. nextOffset = next - lines[last].length;
  6935. } else {
  6936. nextLine = line;
  6937. nextOffset = offset;
  6938. }
  6939. tokenType = t.comment;
  6940. line = nextLine;
  6941. endLine = nextLine;
  6942. endColumn = next - nextOffset;
  6943. } else if (code === t.slash) {
  6944. next = start;
  6945. tokenType = code;
  6946. endLine = line;
  6947. endColumn = start - offset;
  6948. end = next + 1;
  6949. } else {
  6950. next = consumeWord(css, start);
  6951. tokenType = t.word;
  6952. endLine = line;
  6953. endColumn = next - offset;
  6954. }
  6955. end = next + 1;
  6956. break;
  6957. } // Ensure that the token structure remains consistent
  6958. tokens.push([tokenType, // [0] Token type
  6959. line, // [1] Starting line
  6960. start - offset, // [2] Starting column
  6961. endLine, // [3] Ending line
  6962. endColumn, // [4] Ending column
  6963. start, // [5] Start position / Source index
  6964. end // [6] End position
  6965. ]); // Reset offset for the next token
  6966. if (nextOffset) {
  6967. offset = nextOffset;
  6968. nextOffset = null;
  6969. }
  6970. start = end;
  6971. }
  6972. return tokens;
  6973. }
  6974. }(tokenize));
  6975. (function (module, exports) {
  6976. exports.__esModule = true;
  6977. exports["default"] = void 0;
  6978. var _root = _interopRequireDefault(root$1.exports);
  6979. var _selector = _interopRequireDefault(selector$1.exports);
  6980. var _className = _interopRequireDefault(className$1.exports);
  6981. var _comment = _interopRequireDefault(comment$2.exports);
  6982. var _id = _interopRequireDefault(id$1.exports);
  6983. var _tag = _interopRequireDefault(tag$1.exports);
  6984. var _string = _interopRequireDefault(string$1.exports);
  6985. var _pseudo = _interopRequireDefault(pseudo$1.exports);
  6986. var _attribute = _interopRequireWildcard(attribute$1);
  6987. var _universal = _interopRequireDefault(universal$1.exports);
  6988. var _combinator = _interopRequireDefault(combinator$2.exports);
  6989. var _nesting = _interopRequireDefault(nesting$1.exports);
  6990. var _sortAscending = _interopRequireDefault(sortAscending.exports);
  6991. var _tokenize = _interopRequireWildcard(tokenize);
  6992. var tokens = _interopRequireWildcard(tokenTypes);
  6993. var types$1 = _interopRequireWildcard(types);
  6994. var _util = util;
  6995. var _WHITESPACE_TOKENS, _Object$assign;
  6996. function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
  6997. function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
  6998. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
  6999. function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
  7000. function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
  7001. var WHITESPACE_TOKENS = (_WHITESPACE_TOKENS = {}, _WHITESPACE_TOKENS[tokens.space] = true, _WHITESPACE_TOKENS[tokens.cr] = true, _WHITESPACE_TOKENS[tokens.feed] = true, _WHITESPACE_TOKENS[tokens.newline] = true, _WHITESPACE_TOKENS[tokens.tab] = true, _WHITESPACE_TOKENS);
  7002. var WHITESPACE_EQUIV_TOKENS = Object.assign({}, WHITESPACE_TOKENS, (_Object$assign = {}, _Object$assign[tokens.comment] = true, _Object$assign));
  7003. function tokenStart(token) {
  7004. return {
  7005. line: token[_tokenize.FIELDS.START_LINE],
  7006. column: token[_tokenize.FIELDS.START_COL]
  7007. };
  7008. }
  7009. function tokenEnd(token) {
  7010. return {
  7011. line: token[_tokenize.FIELDS.END_LINE],
  7012. column: token[_tokenize.FIELDS.END_COL]
  7013. };
  7014. }
  7015. function getSource(startLine, startColumn, endLine, endColumn) {
  7016. return {
  7017. start: {
  7018. line: startLine,
  7019. column: startColumn
  7020. },
  7021. end: {
  7022. line: endLine,
  7023. column: endColumn
  7024. }
  7025. };
  7026. }
  7027. function getTokenSource(token) {
  7028. return getSource(token[_tokenize.FIELDS.START_LINE], token[_tokenize.FIELDS.START_COL], token[_tokenize.FIELDS.END_LINE], token[_tokenize.FIELDS.END_COL]);
  7029. }
  7030. function getTokenSourceSpan(startToken, endToken) {
  7031. if (!startToken) {
  7032. return undefined;
  7033. }
  7034. return getSource(startToken[_tokenize.FIELDS.START_LINE], startToken[_tokenize.FIELDS.START_COL], endToken[_tokenize.FIELDS.END_LINE], endToken[_tokenize.FIELDS.END_COL]);
  7035. }
  7036. function unescapeProp(node, prop) {
  7037. var value = node[prop];
  7038. if (typeof value !== "string") {
  7039. return;
  7040. }
  7041. if (value.indexOf("\\") !== -1) {
  7042. (0, _util.ensureObject)(node, 'raws');
  7043. node[prop] = (0, _util.unesc)(value);
  7044. if (node.raws[prop] === undefined) {
  7045. node.raws[prop] = value;
  7046. }
  7047. }
  7048. return node;
  7049. }
  7050. function indexesOf(array, item) {
  7051. var i = -1;
  7052. var indexes = [];
  7053. while ((i = array.indexOf(item, i + 1)) !== -1) {
  7054. indexes.push(i);
  7055. }
  7056. return indexes;
  7057. }
  7058. function uniqs() {
  7059. var list = Array.prototype.concat.apply([], arguments);
  7060. return list.filter(function (item, i) {
  7061. return i === list.indexOf(item);
  7062. });
  7063. }
  7064. var Parser = /*#__PURE__*/function () {
  7065. function Parser(rule, options) {
  7066. if (options === void 0) {
  7067. options = {};
  7068. }
  7069. this.rule = rule;
  7070. this.options = Object.assign({
  7071. lossy: false,
  7072. safe: false
  7073. }, options);
  7074. this.position = 0;
  7075. this.css = typeof this.rule === 'string' ? this.rule : this.rule.selector;
  7076. this.tokens = (0, _tokenize["default"])({
  7077. css: this.css,
  7078. error: this._errorGenerator(),
  7079. safe: this.options.safe
  7080. });
  7081. var rootSource = getTokenSourceSpan(this.tokens[0], this.tokens[this.tokens.length - 1]);
  7082. this.root = new _root["default"]({
  7083. source: rootSource
  7084. });
  7085. this.root.errorGenerator = this._errorGenerator();
  7086. var selector = new _selector["default"]({
  7087. source: {
  7088. start: {
  7089. line: 1,
  7090. column: 1
  7091. }
  7092. }
  7093. });
  7094. this.root.append(selector);
  7095. this.current = selector;
  7096. this.loop();
  7097. }
  7098. var _proto = Parser.prototype;
  7099. _proto._errorGenerator = function _errorGenerator() {
  7100. var _this = this;
  7101. return function (message, errorOptions) {
  7102. if (typeof _this.rule === 'string') {
  7103. return new Error(message);
  7104. }
  7105. return _this.rule.error(message, errorOptions);
  7106. };
  7107. };
  7108. _proto.attribute = function attribute() {
  7109. var attr = [];
  7110. var startingToken = this.currToken;
  7111. this.position++;
  7112. while (this.position < this.tokens.length && this.currToken[_tokenize.FIELDS.TYPE] !== tokens.closeSquare) {
  7113. attr.push(this.currToken);
  7114. this.position++;
  7115. }
  7116. if (this.currToken[_tokenize.FIELDS.TYPE] !== tokens.closeSquare) {
  7117. return this.expected('closing square bracket', this.currToken[_tokenize.FIELDS.START_POS]);
  7118. }
  7119. var len = attr.length;
  7120. var node = {
  7121. source: getSource(startingToken[1], startingToken[2], this.currToken[3], this.currToken[4]),
  7122. sourceIndex: startingToken[_tokenize.FIELDS.START_POS]
  7123. };
  7124. if (len === 1 && !~[tokens.word].indexOf(attr[0][_tokenize.FIELDS.TYPE])) {
  7125. return this.expected('attribute', attr[0][_tokenize.FIELDS.START_POS]);
  7126. }
  7127. var pos = 0;
  7128. var spaceBefore = '';
  7129. var commentBefore = '';
  7130. var lastAdded = null;
  7131. var spaceAfterMeaningfulToken = false;
  7132. while (pos < len) {
  7133. var token = attr[pos];
  7134. var content = this.content(token);
  7135. var next = attr[pos + 1];
  7136. switch (token[_tokenize.FIELDS.TYPE]) {
  7137. case tokens.space:
  7138. // if (
  7139. // len === 1 ||
  7140. // pos === 0 && this.content(next) === '|'
  7141. // ) {
  7142. // return this.expected('attribute', token[TOKEN.START_POS], content);
  7143. // }
  7144. spaceAfterMeaningfulToken = true;
  7145. if (this.options.lossy) {
  7146. break;
  7147. }
  7148. if (lastAdded) {
  7149. (0, _util.ensureObject)(node, 'spaces', lastAdded);
  7150. var prevContent = node.spaces[lastAdded].after || '';
  7151. node.spaces[lastAdded].after = prevContent + content;
  7152. var existingComment = (0, _util.getProp)(node, 'raws', 'spaces', lastAdded, 'after') || null;
  7153. if (existingComment) {
  7154. node.raws.spaces[lastAdded].after = existingComment + content;
  7155. }
  7156. } else {
  7157. spaceBefore = spaceBefore + content;
  7158. commentBefore = commentBefore + content;
  7159. }
  7160. break;
  7161. case tokens.asterisk:
  7162. if (next[_tokenize.FIELDS.TYPE] === tokens.equals) {
  7163. node.operator = content;
  7164. lastAdded = 'operator';
  7165. } else if ((!node.namespace || lastAdded === "namespace" && !spaceAfterMeaningfulToken) && next) {
  7166. if (spaceBefore) {
  7167. (0, _util.ensureObject)(node, 'spaces', 'attribute');
  7168. node.spaces.attribute.before = spaceBefore;
  7169. spaceBefore = '';
  7170. }
  7171. if (commentBefore) {
  7172. (0, _util.ensureObject)(node, 'raws', 'spaces', 'attribute');
  7173. node.raws.spaces.attribute.before = spaceBefore;
  7174. commentBefore = '';
  7175. }
  7176. node.namespace = (node.namespace || "") + content;
  7177. var rawValue = (0, _util.getProp)(node, 'raws', 'namespace') || null;
  7178. if (rawValue) {
  7179. node.raws.namespace += content;
  7180. }
  7181. lastAdded = 'namespace';
  7182. }
  7183. spaceAfterMeaningfulToken = false;
  7184. break;
  7185. case tokens.dollar:
  7186. if (lastAdded === "value") {
  7187. var oldRawValue = (0, _util.getProp)(node, 'raws', 'value');
  7188. node.value += "$";
  7189. if (oldRawValue) {
  7190. node.raws.value = oldRawValue + "$";
  7191. }
  7192. break;
  7193. }
  7194. // Falls through
  7195. case tokens.caret:
  7196. if (next[_tokenize.FIELDS.TYPE] === tokens.equals) {
  7197. node.operator = content;
  7198. lastAdded = 'operator';
  7199. }
  7200. spaceAfterMeaningfulToken = false;
  7201. break;
  7202. case tokens.combinator:
  7203. if (content === '~' && next[_tokenize.FIELDS.TYPE] === tokens.equals) {
  7204. node.operator = content;
  7205. lastAdded = 'operator';
  7206. }
  7207. if (content !== '|') {
  7208. spaceAfterMeaningfulToken = false;
  7209. break;
  7210. }
  7211. if (next[_tokenize.FIELDS.TYPE] === tokens.equals) {
  7212. node.operator = content;
  7213. lastAdded = 'operator';
  7214. } else if (!node.namespace && !node.attribute) {
  7215. node.namespace = true;
  7216. }
  7217. spaceAfterMeaningfulToken = false;
  7218. break;
  7219. case tokens.word:
  7220. if (next && this.content(next) === '|' && attr[pos + 2] && attr[pos + 2][_tokenize.FIELDS.TYPE] !== tokens.equals && // this look-ahead probably fails with comment nodes involved.
  7221. !node.operator && !node.namespace) {
  7222. node.namespace = content;
  7223. lastAdded = 'namespace';
  7224. } else if (!node.attribute || lastAdded === "attribute" && !spaceAfterMeaningfulToken) {
  7225. if (spaceBefore) {
  7226. (0, _util.ensureObject)(node, 'spaces', 'attribute');
  7227. node.spaces.attribute.before = spaceBefore;
  7228. spaceBefore = '';
  7229. }
  7230. if (commentBefore) {
  7231. (0, _util.ensureObject)(node, 'raws', 'spaces', 'attribute');
  7232. node.raws.spaces.attribute.before = commentBefore;
  7233. commentBefore = '';
  7234. }
  7235. node.attribute = (node.attribute || "") + content;
  7236. var _rawValue = (0, _util.getProp)(node, 'raws', 'attribute') || null;
  7237. if (_rawValue) {
  7238. node.raws.attribute += content;
  7239. }
  7240. lastAdded = 'attribute';
  7241. } else if (!node.value && node.value !== "" || lastAdded === "value" && !spaceAfterMeaningfulToken) {
  7242. var _unescaped = (0, _util.unesc)(content);
  7243. var _oldRawValue = (0, _util.getProp)(node, 'raws', 'value') || '';
  7244. var oldValue = node.value || '';
  7245. node.value = oldValue + _unescaped;
  7246. node.quoteMark = null;
  7247. if (_unescaped !== content || _oldRawValue) {
  7248. (0, _util.ensureObject)(node, 'raws');
  7249. node.raws.value = (_oldRawValue || oldValue) + content;
  7250. }
  7251. lastAdded = 'value';
  7252. } else {
  7253. var insensitive = content === 'i' || content === "I";
  7254. if ((node.value || node.value === '') && (node.quoteMark || spaceAfterMeaningfulToken)) {
  7255. node.insensitive = insensitive;
  7256. if (!insensitive || content === "I") {
  7257. (0, _util.ensureObject)(node, 'raws');
  7258. node.raws.insensitiveFlag = content;
  7259. }
  7260. lastAdded = 'insensitive';
  7261. if (spaceBefore) {
  7262. (0, _util.ensureObject)(node, 'spaces', 'insensitive');
  7263. node.spaces.insensitive.before = spaceBefore;
  7264. spaceBefore = '';
  7265. }
  7266. if (commentBefore) {
  7267. (0, _util.ensureObject)(node, 'raws', 'spaces', 'insensitive');
  7268. node.raws.spaces.insensitive.before = commentBefore;
  7269. commentBefore = '';
  7270. }
  7271. } else if (node.value || node.value === '') {
  7272. lastAdded = 'value';
  7273. node.value += content;
  7274. if (node.raws.value) {
  7275. node.raws.value += content;
  7276. }
  7277. }
  7278. }
  7279. spaceAfterMeaningfulToken = false;
  7280. break;
  7281. case tokens.str:
  7282. if (!node.attribute || !node.operator) {
  7283. return this.error("Expected an attribute followed by an operator preceding the string.", {
  7284. index: token[_tokenize.FIELDS.START_POS]
  7285. });
  7286. }
  7287. var _unescapeValue = (0, _attribute.unescapeValue)(content),
  7288. unescaped = _unescapeValue.unescaped,
  7289. quoteMark = _unescapeValue.quoteMark;
  7290. node.value = unescaped;
  7291. node.quoteMark = quoteMark;
  7292. lastAdded = 'value';
  7293. (0, _util.ensureObject)(node, 'raws');
  7294. node.raws.value = content;
  7295. spaceAfterMeaningfulToken = false;
  7296. break;
  7297. case tokens.equals:
  7298. if (!node.attribute) {
  7299. return this.expected('attribute', token[_tokenize.FIELDS.START_POS], content);
  7300. }
  7301. if (node.value) {
  7302. return this.error('Unexpected "=" found; an operator was already defined.', {
  7303. index: token[_tokenize.FIELDS.START_POS]
  7304. });
  7305. }
  7306. node.operator = node.operator ? node.operator + content : content;
  7307. lastAdded = 'operator';
  7308. spaceAfterMeaningfulToken = false;
  7309. break;
  7310. case tokens.comment:
  7311. if (lastAdded) {
  7312. if (spaceAfterMeaningfulToken || next && next[_tokenize.FIELDS.TYPE] === tokens.space || lastAdded === 'insensitive') {
  7313. var lastComment = (0, _util.getProp)(node, 'spaces', lastAdded, 'after') || '';
  7314. var rawLastComment = (0, _util.getProp)(node, 'raws', 'spaces', lastAdded, 'after') || lastComment;
  7315. (0, _util.ensureObject)(node, 'raws', 'spaces', lastAdded);
  7316. node.raws.spaces[lastAdded].after = rawLastComment + content;
  7317. } else {
  7318. var lastValue = node[lastAdded] || '';
  7319. var rawLastValue = (0, _util.getProp)(node, 'raws', lastAdded) || lastValue;
  7320. (0, _util.ensureObject)(node, 'raws');
  7321. node.raws[lastAdded] = rawLastValue + content;
  7322. }
  7323. } else {
  7324. commentBefore = commentBefore + content;
  7325. }
  7326. break;
  7327. default:
  7328. return this.error("Unexpected \"" + content + "\" found.", {
  7329. index: token[_tokenize.FIELDS.START_POS]
  7330. });
  7331. }
  7332. pos++;
  7333. }
  7334. unescapeProp(node, "attribute");
  7335. unescapeProp(node, "namespace");
  7336. this.newNode(new _attribute["default"](node));
  7337. this.position++;
  7338. }
  7339. /**
  7340. * return a node containing meaningless garbage up to (but not including) the specified token position.
  7341. * if the token position is negative, all remaining tokens are consumed.
  7342. *
  7343. * This returns an array containing a single string node if all whitespace,
  7344. * otherwise an array of comment nodes with space before and after.
  7345. *
  7346. * These tokens are not added to the current selector, the caller can add them or use them to amend
  7347. * a previous node's space metadata.
  7348. *
  7349. * In lossy mode, this returns only comments.
  7350. */
  7351. ;
  7352. _proto.parseWhitespaceEquivalentTokens = function parseWhitespaceEquivalentTokens(stopPosition) {
  7353. if (stopPosition < 0) {
  7354. stopPosition = this.tokens.length;
  7355. }
  7356. var startPosition = this.position;
  7357. var nodes = [];
  7358. var space = "";
  7359. var lastComment = undefined;
  7360. do {
  7361. if (WHITESPACE_TOKENS[this.currToken[_tokenize.FIELDS.TYPE]]) {
  7362. if (!this.options.lossy) {
  7363. space += this.content();
  7364. }
  7365. } else if (this.currToken[_tokenize.FIELDS.TYPE] === tokens.comment) {
  7366. var spaces = {};
  7367. if (space) {
  7368. spaces.before = space;
  7369. space = "";
  7370. }
  7371. lastComment = new _comment["default"]({
  7372. value: this.content(),
  7373. source: getTokenSource(this.currToken),
  7374. sourceIndex: this.currToken[_tokenize.FIELDS.START_POS],
  7375. spaces: spaces
  7376. });
  7377. nodes.push(lastComment);
  7378. }
  7379. } while (++this.position < stopPosition);
  7380. if (space) {
  7381. if (lastComment) {
  7382. lastComment.spaces.after = space;
  7383. } else if (!this.options.lossy) {
  7384. var firstToken = this.tokens[startPosition];
  7385. var lastToken = this.tokens[this.position - 1];
  7386. nodes.push(new _string["default"]({
  7387. value: '',
  7388. source: getSource(firstToken[_tokenize.FIELDS.START_LINE], firstToken[_tokenize.FIELDS.START_COL], lastToken[_tokenize.FIELDS.END_LINE], lastToken[_tokenize.FIELDS.END_COL]),
  7389. sourceIndex: firstToken[_tokenize.FIELDS.START_POS],
  7390. spaces: {
  7391. before: space,
  7392. after: ''
  7393. }
  7394. }));
  7395. }
  7396. }
  7397. return nodes;
  7398. }
  7399. /**
  7400. *
  7401. * @param {*} nodes
  7402. */
  7403. ;
  7404. _proto.convertWhitespaceNodesToSpace = function convertWhitespaceNodesToSpace(nodes, requiredSpace) {
  7405. var _this2 = this;
  7406. if (requiredSpace === void 0) {
  7407. requiredSpace = false;
  7408. }
  7409. var space = "";
  7410. var rawSpace = "";
  7411. nodes.forEach(function (n) {
  7412. var spaceBefore = _this2.lossySpace(n.spaces.before, requiredSpace);
  7413. var rawSpaceBefore = _this2.lossySpace(n.rawSpaceBefore, requiredSpace);
  7414. space += spaceBefore + _this2.lossySpace(n.spaces.after, requiredSpace && spaceBefore.length === 0);
  7415. rawSpace += spaceBefore + n.value + _this2.lossySpace(n.rawSpaceAfter, requiredSpace && rawSpaceBefore.length === 0);
  7416. });
  7417. if (rawSpace === space) {
  7418. rawSpace = undefined;
  7419. }
  7420. var result = {
  7421. space: space,
  7422. rawSpace: rawSpace
  7423. };
  7424. return result;
  7425. };
  7426. _proto.isNamedCombinator = function isNamedCombinator(position) {
  7427. if (position === void 0) {
  7428. position = this.position;
  7429. }
  7430. return this.tokens[position + 0] && this.tokens[position + 0][_tokenize.FIELDS.TYPE] === tokens.slash && this.tokens[position + 1] && this.tokens[position + 1][_tokenize.FIELDS.TYPE] === tokens.word && this.tokens[position + 2] && this.tokens[position + 2][_tokenize.FIELDS.TYPE] === tokens.slash;
  7431. };
  7432. _proto.namedCombinator = function namedCombinator() {
  7433. if (this.isNamedCombinator()) {
  7434. var nameRaw = this.content(this.tokens[this.position + 1]);
  7435. var name = (0, _util.unesc)(nameRaw).toLowerCase();
  7436. var raws = {};
  7437. if (name !== nameRaw) {
  7438. raws.value = "/" + nameRaw + "/";
  7439. }
  7440. var node = new _combinator["default"]({
  7441. value: "/" + name + "/",
  7442. source: getSource(this.currToken[_tokenize.FIELDS.START_LINE], this.currToken[_tokenize.FIELDS.START_COL], this.tokens[this.position + 2][_tokenize.FIELDS.END_LINE], this.tokens[this.position + 2][_tokenize.FIELDS.END_COL]),
  7443. sourceIndex: this.currToken[_tokenize.FIELDS.START_POS],
  7444. raws: raws
  7445. });
  7446. this.position = this.position + 3;
  7447. return node;
  7448. } else {
  7449. this.unexpected();
  7450. }
  7451. };
  7452. _proto.combinator = function combinator() {
  7453. var _this3 = this;
  7454. if (this.content() === '|') {
  7455. return this.namespace();
  7456. } // We need to decide between a space that's a descendant combinator and meaningless whitespace at the end of a selector.
  7457. var nextSigTokenPos = this.locateNextMeaningfulToken(this.position);
  7458. if (nextSigTokenPos < 0 || this.tokens[nextSigTokenPos][_tokenize.FIELDS.TYPE] === tokens.comma) {
  7459. var nodes = this.parseWhitespaceEquivalentTokens(nextSigTokenPos);
  7460. if (nodes.length > 0) {
  7461. var last = this.current.last;
  7462. if (last) {
  7463. var _this$convertWhitespa = this.convertWhitespaceNodesToSpace(nodes),
  7464. space = _this$convertWhitespa.space,
  7465. rawSpace = _this$convertWhitespa.rawSpace;
  7466. if (rawSpace !== undefined) {
  7467. last.rawSpaceAfter += rawSpace;
  7468. }
  7469. last.spaces.after += space;
  7470. } else {
  7471. nodes.forEach(function (n) {
  7472. return _this3.newNode(n);
  7473. });
  7474. }
  7475. }
  7476. return;
  7477. }
  7478. var firstToken = this.currToken;
  7479. var spaceOrDescendantSelectorNodes = undefined;
  7480. if (nextSigTokenPos > this.position) {
  7481. spaceOrDescendantSelectorNodes = this.parseWhitespaceEquivalentTokens(nextSigTokenPos);
  7482. }
  7483. var node;
  7484. if (this.isNamedCombinator()) {
  7485. node = this.namedCombinator();
  7486. } else if (this.currToken[_tokenize.FIELDS.TYPE] === tokens.combinator) {
  7487. node = new _combinator["default"]({
  7488. value: this.content(),
  7489. source: getTokenSource(this.currToken),
  7490. sourceIndex: this.currToken[_tokenize.FIELDS.START_POS]
  7491. });
  7492. this.position++;
  7493. } else if (WHITESPACE_TOKENS[this.currToken[_tokenize.FIELDS.TYPE]]) ; else if (!spaceOrDescendantSelectorNodes) {
  7494. this.unexpected();
  7495. }
  7496. if (node) {
  7497. if (spaceOrDescendantSelectorNodes) {
  7498. var _this$convertWhitespa2 = this.convertWhitespaceNodesToSpace(spaceOrDescendantSelectorNodes),
  7499. _space = _this$convertWhitespa2.space,
  7500. _rawSpace = _this$convertWhitespa2.rawSpace;
  7501. node.spaces.before = _space;
  7502. node.rawSpaceBefore = _rawSpace;
  7503. }
  7504. } else {
  7505. // descendant combinator
  7506. var _this$convertWhitespa3 = this.convertWhitespaceNodesToSpace(spaceOrDescendantSelectorNodes, true),
  7507. _space2 = _this$convertWhitespa3.space,
  7508. _rawSpace2 = _this$convertWhitespa3.rawSpace;
  7509. if (!_rawSpace2) {
  7510. _rawSpace2 = _space2;
  7511. }
  7512. var spaces = {};
  7513. var raws = {
  7514. spaces: {}
  7515. };
  7516. if (_space2.endsWith(' ') && _rawSpace2.endsWith(' ')) {
  7517. spaces.before = _space2.slice(0, _space2.length - 1);
  7518. raws.spaces.before = _rawSpace2.slice(0, _rawSpace2.length - 1);
  7519. } else if (_space2.startsWith(' ') && _rawSpace2.startsWith(' ')) {
  7520. spaces.after = _space2.slice(1);
  7521. raws.spaces.after = _rawSpace2.slice(1);
  7522. } else {
  7523. raws.value = _rawSpace2;
  7524. }
  7525. node = new _combinator["default"]({
  7526. value: ' ',
  7527. source: getTokenSourceSpan(firstToken, this.tokens[this.position - 1]),
  7528. sourceIndex: firstToken[_tokenize.FIELDS.START_POS],
  7529. spaces: spaces,
  7530. raws: raws
  7531. });
  7532. }
  7533. if (this.currToken && this.currToken[_tokenize.FIELDS.TYPE] === tokens.space) {
  7534. node.spaces.after = this.optionalSpace(this.content());
  7535. this.position++;
  7536. }
  7537. return this.newNode(node);
  7538. };
  7539. _proto.comma = function comma() {
  7540. if (this.position === this.tokens.length - 1) {
  7541. this.root.trailingComma = true;
  7542. this.position++;
  7543. return;
  7544. }
  7545. this.current._inferEndPosition();
  7546. var selector = new _selector["default"]({
  7547. source: {
  7548. start: tokenStart(this.tokens[this.position + 1])
  7549. }
  7550. });
  7551. this.current.parent.append(selector);
  7552. this.current = selector;
  7553. this.position++;
  7554. };
  7555. _proto.comment = function comment() {
  7556. var current = this.currToken;
  7557. this.newNode(new _comment["default"]({
  7558. value: this.content(),
  7559. source: getTokenSource(current),
  7560. sourceIndex: current[_tokenize.FIELDS.START_POS]
  7561. }));
  7562. this.position++;
  7563. };
  7564. _proto.error = function error(message, opts) {
  7565. throw this.root.error(message, opts);
  7566. };
  7567. _proto.missingBackslash = function missingBackslash() {
  7568. return this.error('Expected a backslash preceding the semicolon.', {
  7569. index: this.currToken[_tokenize.FIELDS.START_POS]
  7570. });
  7571. };
  7572. _proto.missingParenthesis = function missingParenthesis() {
  7573. return this.expected('opening parenthesis', this.currToken[_tokenize.FIELDS.START_POS]);
  7574. };
  7575. _proto.missingSquareBracket = function missingSquareBracket() {
  7576. return this.expected('opening square bracket', this.currToken[_tokenize.FIELDS.START_POS]);
  7577. };
  7578. _proto.unexpected = function unexpected() {
  7579. return this.error("Unexpected '" + this.content() + "'. Escaping special characters with \\ may help.", this.currToken[_tokenize.FIELDS.START_POS]);
  7580. };
  7581. _proto.namespace = function namespace() {
  7582. var before = this.prevToken && this.content(this.prevToken) || true;
  7583. if (this.nextToken[_tokenize.FIELDS.TYPE] === tokens.word) {
  7584. this.position++;
  7585. return this.word(before);
  7586. } else if (this.nextToken[_tokenize.FIELDS.TYPE] === tokens.asterisk) {
  7587. this.position++;
  7588. return this.universal(before);
  7589. }
  7590. };
  7591. _proto.nesting = function nesting() {
  7592. if (this.nextToken) {
  7593. var nextContent = this.content(this.nextToken);
  7594. if (nextContent === "|") {
  7595. this.position++;
  7596. return;
  7597. }
  7598. }
  7599. var current = this.currToken;
  7600. this.newNode(new _nesting["default"]({
  7601. value: this.content(),
  7602. source: getTokenSource(current),
  7603. sourceIndex: current[_tokenize.FIELDS.START_POS]
  7604. }));
  7605. this.position++;
  7606. };
  7607. _proto.parentheses = function parentheses() {
  7608. var last = this.current.last;
  7609. var unbalanced = 1;
  7610. this.position++;
  7611. if (last && last.type === types$1.PSEUDO) {
  7612. var selector = new _selector["default"]({
  7613. source: {
  7614. start: tokenStart(this.tokens[this.position - 1])
  7615. }
  7616. });
  7617. var cache = this.current;
  7618. last.append(selector);
  7619. this.current = selector;
  7620. while (this.position < this.tokens.length && unbalanced) {
  7621. if (this.currToken[_tokenize.FIELDS.TYPE] === tokens.openParenthesis) {
  7622. unbalanced++;
  7623. }
  7624. if (this.currToken[_tokenize.FIELDS.TYPE] === tokens.closeParenthesis) {
  7625. unbalanced--;
  7626. }
  7627. if (unbalanced) {
  7628. this.parse();
  7629. } else {
  7630. this.current.source.end = tokenEnd(this.currToken);
  7631. this.current.parent.source.end = tokenEnd(this.currToken);
  7632. this.position++;
  7633. }
  7634. }
  7635. this.current = cache;
  7636. } else {
  7637. // I think this case should be an error. It's used to implement a basic parse of media queries
  7638. // but I don't think it's a good idea.
  7639. var parenStart = this.currToken;
  7640. var parenValue = "(";
  7641. var parenEnd;
  7642. while (this.position < this.tokens.length && unbalanced) {
  7643. if (this.currToken[_tokenize.FIELDS.TYPE] === tokens.openParenthesis) {
  7644. unbalanced++;
  7645. }
  7646. if (this.currToken[_tokenize.FIELDS.TYPE] === tokens.closeParenthesis) {
  7647. unbalanced--;
  7648. }
  7649. parenEnd = this.currToken;
  7650. parenValue += this.parseParenthesisToken(this.currToken);
  7651. this.position++;
  7652. }
  7653. if (last) {
  7654. last.appendToPropertyAndEscape("value", parenValue, parenValue);
  7655. } else {
  7656. this.newNode(new _string["default"]({
  7657. value: parenValue,
  7658. source: getSource(parenStart[_tokenize.FIELDS.START_LINE], parenStart[_tokenize.FIELDS.START_COL], parenEnd[_tokenize.FIELDS.END_LINE], parenEnd[_tokenize.FIELDS.END_COL]),
  7659. sourceIndex: parenStart[_tokenize.FIELDS.START_POS]
  7660. }));
  7661. }
  7662. }
  7663. if (unbalanced) {
  7664. return this.expected('closing parenthesis', this.currToken[_tokenize.FIELDS.START_POS]);
  7665. }
  7666. };
  7667. _proto.pseudo = function pseudo() {
  7668. var _this4 = this;
  7669. var pseudoStr = '';
  7670. var startingToken = this.currToken;
  7671. while (this.currToken && this.currToken[_tokenize.FIELDS.TYPE] === tokens.colon) {
  7672. pseudoStr += this.content();
  7673. this.position++;
  7674. }
  7675. if (!this.currToken) {
  7676. return this.expected(['pseudo-class', 'pseudo-element'], this.position - 1);
  7677. }
  7678. if (this.currToken[_tokenize.FIELDS.TYPE] === tokens.word) {
  7679. this.splitWord(false, function (first, length) {
  7680. pseudoStr += first;
  7681. _this4.newNode(new _pseudo["default"]({
  7682. value: pseudoStr,
  7683. source: getTokenSourceSpan(startingToken, _this4.currToken),
  7684. sourceIndex: startingToken[_tokenize.FIELDS.START_POS]
  7685. }));
  7686. if (length > 1 && _this4.nextToken && _this4.nextToken[_tokenize.FIELDS.TYPE] === tokens.openParenthesis) {
  7687. _this4.error('Misplaced parenthesis.', {
  7688. index: _this4.nextToken[_tokenize.FIELDS.START_POS]
  7689. });
  7690. }
  7691. });
  7692. } else {
  7693. return this.expected(['pseudo-class', 'pseudo-element'], this.currToken[_tokenize.FIELDS.START_POS]);
  7694. }
  7695. };
  7696. _proto.space = function space() {
  7697. var content = this.content(); // Handle space before and after the selector
  7698. if (this.position === 0 || this.prevToken[_tokenize.FIELDS.TYPE] === tokens.comma || this.prevToken[_tokenize.FIELDS.TYPE] === tokens.openParenthesis || this.current.nodes.every(function (node) {
  7699. return node.type === 'comment';
  7700. })) {
  7701. this.spaces = this.optionalSpace(content);
  7702. this.position++;
  7703. } else if (this.position === this.tokens.length - 1 || this.nextToken[_tokenize.FIELDS.TYPE] === tokens.comma || this.nextToken[_tokenize.FIELDS.TYPE] === tokens.closeParenthesis) {
  7704. this.current.last.spaces.after = this.optionalSpace(content);
  7705. this.position++;
  7706. } else {
  7707. this.combinator();
  7708. }
  7709. };
  7710. _proto.string = function string() {
  7711. var current = this.currToken;
  7712. this.newNode(new _string["default"]({
  7713. value: this.content(),
  7714. source: getTokenSource(current),
  7715. sourceIndex: current[_tokenize.FIELDS.START_POS]
  7716. }));
  7717. this.position++;
  7718. };
  7719. _proto.universal = function universal(namespace) {
  7720. var nextToken = this.nextToken;
  7721. if (nextToken && this.content(nextToken) === '|') {
  7722. this.position++;
  7723. return this.namespace();
  7724. }
  7725. var current = this.currToken;
  7726. this.newNode(new _universal["default"]({
  7727. value: this.content(),
  7728. source: getTokenSource(current),
  7729. sourceIndex: current[_tokenize.FIELDS.START_POS]
  7730. }), namespace);
  7731. this.position++;
  7732. };
  7733. _proto.splitWord = function splitWord(namespace, firstCallback) {
  7734. var _this5 = this;
  7735. var nextToken = this.nextToken;
  7736. var word = this.content();
  7737. while (nextToken && ~[tokens.dollar, tokens.caret, tokens.equals, tokens.word].indexOf(nextToken[_tokenize.FIELDS.TYPE])) {
  7738. this.position++;
  7739. var current = this.content();
  7740. word += current;
  7741. if (current.lastIndexOf('\\') === current.length - 1) {
  7742. var next = this.nextToken;
  7743. if (next && next[_tokenize.FIELDS.TYPE] === tokens.space) {
  7744. word += this.requiredSpace(this.content(next));
  7745. this.position++;
  7746. }
  7747. }
  7748. nextToken = this.nextToken;
  7749. }
  7750. var hasClass = indexesOf(word, '.').filter(function (i) {
  7751. return word[i - 1] !== '\\';
  7752. });
  7753. var hasId = indexesOf(word, '#').filter(function (i) {
  7754. return word[i - 1] !== '\\';
  7755. }); // Eliminate Sass interpolations from the list of id indexes
  7756. var interpolations = indexesOf(word, '#{');
  7757. if (interpolations.length) {
  7758. hasId = hasId.filter(function (hashIndex) {
  7759. return !~interpolations.indexOf(hashIndex);
  7760. });
  7761. }
  7762. var indices = (0, _sortAscending["default"])(uniqs([0].concat(hasClass, hasId)));
  7763. indices.forEach(function (ind, i) {
  7764. var index = indices[i + 1] || word.length;
  7765. var value = word.slice(ind, index);
  7766. if (i === 0 && firstCallback) {
  7767. return firstCallback.call(_this5, value, indices.length);
  7768. }
  7769. var node;
  7770. var current = _this5.currToken;
  7771. var sourceIndex = current[_tokenize.FIELDS.START_POS] + indices[i];
  7772. var source = getSource(current[1], current[2] + ind, current[3], current[2] + (index - 1));
  7773. if (~hasClass.indexOf(ind)) {
  7774. var classNameOpts = {
  7775. value: value.slice(1),
  7776. source: source,
  7777. sourceIndex: sourceIndex
  7778. };
  7779. node = new _className["default"](unescapeProp(classNameOpts, "value"));
  7780. } else if (~hasId.indexOf(ind)) {
  7781. var idOpts = {
  7782. value: value.slice(1),
  7783. source: source,
  7784. sourceIndex: sourceIndex
  7785. };
  7786. node = new _id["default"](unescapeProp(idOpts, "value"));
  7787. } else {
  7788. var tagOpts = {
  7789. value: value,
  7790. source: source,
  7791. sourceIndex: sourceIndex
  7792. };
  7793. unescapeProp(tagOpts, "value");
  7794. node = new _tag["default"](tagOpts);
  7795. }
  7796. _this5.newNode(node, namespace); // Ensure that the namespace is used only once
  7797. namespace = null;
  7798. });
  7799. this.position++;
  7800. };
  7801. _proto.word = function word(namespace) {
  7802. var nextToken = this.nextToken;
  7803. if (nextToken && this.content(nextToken) === '|') {
  7804. this.position++;
  7805. return this.namespace();
  7806. }
  7807. return this.splitWord(namespace);
  7808. };
  7809. _proto.loop = function loop() {
  7810. while (this.position < this.tokens.length) {
  7811. this.parse(true);
  7812. }
  7813. this.current._inferEndPosition();
  7814. return this.root;
  7815. };
  7816. _proto.parse = function parse(throwOnParenthesis) {
  7817. switch (this.currToken[_tokenize.FIELDS.TYPE]) {
  7818. case tokens.space:
  7819. this.space();
  7820. break;
  7821. case tokens.comment:
  7822. this.comment();
  7823. break;
  7824. case tokens.openParenthesis:
  7825. this.parentheses();
  7826. break;
  7827. case tokens.closeParenthesis:
  7828. if (throwOnParenthesis) {
  7829. this.missingParenthesis();
  7830. }
  7831. break;
  7832. case tokens.openSquare:
  7833. this.attribute();
  7834. break;
  7835. case tokens.dollar:
  7836. case tokens.caret:
  7837. case tokens.equals:
  7838. case tokens.word:
  7839. this.word();
  7840. break;
  7841. case tokens.colon:
  7842. this.pseudo();
  7843. break;
  7844. case tokens.comma:
  7845. this.comma();
  7846. break;
  7847. case tokens.asterisk:
  7848. this.universal();
  7849. break;
  7850. case tokens.ampersand:
  7851. this.nesting();
  7852. break;
  7853. case tokens.slash:
  7854. case tokens.combinator:
  7855. this.combinator();
  7856. break;
  7857. case tokens.str:
  7858. this.string();
  7859. break;
  7860. // These cases throw; no break needed.
  7861. case tokens.closeSquare:
  7862. this.missingSquareBracket();
  7863. case tokens.semicolon:
  7864. this.missingBackslash();
  7865. default:
  7866. this.unexpected();
  7867. }
  7868. }
  7869. /**
  7870. * Helpers
  7871. */
  7872. ;
  7873. _proto.expected = function expected(description, index, found) {
  7874. if (Array.isArray(description)) {
  7875. var last = description.pop();
  7876. description = description.join(', ') + " or " + last;
  7877. }
  7878. var an = /^[aeiou]/.test(description[0]) ? 'an' : 'a';
  7879. if (!found) {
  7880. return this.error("Expected " + an + " " + description + ".", {
  7881. index: index
  7882. });
  7883. }
  7884. return this.error("Expected " + an + " " + description + ", found \"" + found + "\" instead.", {
  7885. index: index
  7886. });
  7887. };
  7888. _proto.requiredSpace = function requiredSpace(space) {
  7889. return this.options.lossy ? ' ' : space;
  7890. };
  7891. _proto.optionalSpace = function optionalSpace(space) {
  7892. return this.options.lossy ? '' : space;
  7893. };
  7894. _proto.lossySpace = function lossySpace(space, required) {
  7895. if (this.options.lossy) {
  7896. return required ? ' ' : '';
  7897. } else {
  7898. return space;
  7899. }
  7900. };
  7901. _proto.parseParenthesisToken = function parseParenthesisToken(token) {
  7902. var content = this.content(token);
  7903. if (token[_tokenize.FIELDS.TYPE] === tokens.space) {
  7904. return this.requiredSpace(content);
  7905. } else {
  7906. return content;
  7907. }
  7908. };
  7909. _proto.newNode = function newNode(node, namespace) {
  7910. if (namespace) {
  7911. if (/^ +$/.test(namespace)) {
  7912. if (!this.options.lossy) {
  7913. this.spaces = (this.spaces || '') + namespace;
  7914. }
  7915. namespace = true;
  7916. }
  7917. node.namespace = namespace;
  7918. unescapeProp(node, "namespace");
  7919. }
  7920. if (this.spaces) {
  7921. node.spaces.before = this.spaces;
  7922. this.spaces = '';
  7923. }
  7924. return this.current.append(node);
  7925. };
  7926. _proto.content = function content(token) {
  7927. if (token === void 0) {
  7928. token = this.currToken;
  7929. }
  7930. return this.css.slice(token[_tokenize.FIELDS.START_POS], token[_tokenize.FIELDS.END_POS]);
  7931. };
  7932. /**
  7933. * returns the index of the next non-whitespace, non-comment token.
  7934. * returns -1 if no meaningful token is found.
  7935. */
  7936. _proto.locateNextMeaningfulToken = function locateNextMeaningfulToken(startPosition) {
  7937. if (startPosition === void 0) {
  7938. startPosition = this.position + 1;
  7939. }
  7940. var searchPosition = startPosition;
  7941. while (searchPosition < this.tokens.length) {
  7942. if (WHITESPACE_EQUIV_TOKENS[this.tokens[searchPosition][_tokenize.FIELDS.TYPE]]) {
  7943. searchPosition++;
  7944. continue;
  7945. } else {
  7946. return searchPosition;
  7947. }
  7948. }
  7949. return -1;
  7950. };
  7951. _createClass(Parser, [{
  7952. key: "currToken",
  7953. get: function get() {
  7954. return this.tokens[this.position];
  7955. }
  7956. }, {
  7957. key: "nextToken",
  7958. get: function get() {
  7959. return this.tokens[this.position + 1];
  7960. }
  7961. }, {
  7962. key: "prevToken",
  7963. get: function get() {
  7964. return this.tokens[this.position - 1];
  7965. }
  7966. }]);
  7967. return Parser;
  7968. }();
  7969. exports["default"] = Parser;
  7970. module.exports = exports.default;
  7971. }(parser, parser.exports));
  7972. (function (module, exports) {
  7973. exports.__esModule = true;
  7974. exports["default"] = void 0;
  7975. var _parser = _interopRequireDefault(parser.exports);
  7976. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
  7977. var Processor = /*#__PURE__*/function () {
  7978. function Processor(func, options) {
  7979. this.func = func || function noop() {};
  7980. this.funcRes = null;
  7981. this.options = options;
  7982. }
  7983. var _proto = Processor.prototype;
  7984. _proto._shouldUpdateSelector = function _shouldUpdateSelector(rule, options) {
  7985. if (options === void 0) {
  7986. options = {};
  7987. }
  7988. var merged = Object.assign({}, this.options, options);
  7989. if (merged.updateSelector === false) {
  7990. return false;
  7991. } else {
  7992. return typeof rule !== "string";
  7993. }
  7994. };
  7995. _proto._isLossy = function _isLossy(options) {
  7996. if (options === void 0) {
  7997. options = {};
  7998. }
  7999. var merged = Object.assign({}, this.options, options);
  8000. if (merged.lossless === false) {
  8001. return true;
  8002. } else {
  8003. return false;
  8004. }
  8005. };
  8006. _proto._root = function _root(rule, options) {
  8007. if (options === void 0) {
  8008. options = {};
  8009. }
  8010. var parser = new _parser["default"](rule, this._parseOptions(options));
  8011. return parser.root;
  8012. };
  8013. _proto._parseOptions = function _parseOptions(options) {
  8014. return {
  8015. lossy: this._isLossy(options)
  8016. };
  8017. };
  8018. _proto._run = function _run(rule, options) {
  8019. var _this = this;
  8020. if (options === void 0) {
  8021. options = {};
  8022. }
  8023. return new Promise(function (resolve, reject) {
  8024. try {
  8025. var root = _this._root(rule, options);
  8026. Promise.resolve(_this.func(root)).then(function (transform) {
  8027. var string = undefined;
  8028. if (_this._shouldUpdateSelector(rule, options)) {
  8029. string = root.toString();
  8030. rule.selector = string;
  8031. }
  8032. return {
  8033. transform: transform,
  8034. root: root,
  8035. string: string
  8036. };
  8037. }).then(resolve, reject);
  8038. } catch (e) {
  8039. reject(e);
  8040. return;
  8041. }
  8042. });
  8043. };
  8044. _proto._runSync = function _runSync(rule, options) {
  8045. if (options === void 0) {
  8046. options = {};
  8047. }
  8048. var root = this._root(rule, options);
  8049. var transform = this.func(root);
  8050. if (transform && typeof transform.then === "function") {
  8051. throw new Error("Selector processor returned a promise to a synchronous call.");
  8052. }
  8053. var string = undefined;
  8054. if (options.updateSelector && typeof rule !== "string") {
  8055. string = root.toString();
  8056. rule.selector = string;
  8057. }
  8058. return {
  8059. transform: transform,
  8060. root: root,
  8061. string: string
  8062. };
  8063. }
  8064. /**
  8065. * Process rule into a selector AST.
  8066. *
  8067. * @param rule {postcss.Rule | string} The css selector to be processed
  8068. * @param options The options for processing
  8069. * @returns {Promise<parser.Root>} The AST of the selector after processing it.
  8070. */
  8071. ;
  8072. _proto.ast = function ast(rule, options) {
  8073. return this._run(rule, options).then(function (result) {
  8074. return result.root;
  8075. });
  8076. }
  8077. /**
  8078. * Process rule into a selector AST synchronously.
  8079. *
  8080. * @param rule {postcss.Rule | string} The css selector to be processed
  8081. * @param options The options for processing
  8082. * @returns {parser.Root} The AST of the selector after processing it.
  8083. */
  8084. ;
  8085. _proto.astSync = function astSync(rule, options) {
  8086. return this._runSync(rule, options).root;
  8087. }
  8088. /**
  8089. * Process a selector into a transformed value asynchronously
  8090. *
  8091. * @param rule {postcss.Rule | string} The css selector to be processed
  8092. * @param options The options for processing
  8093. * @returns {Promise<any>} The value returned by the processor.
  8094. */
  8095. ;
  8096. _proto.transform = function transform(rule, options) {
  8097. return this._run(rule, options).then(function (result) {
  8098. return result.transform;
  8099. });
  8100. }
  8101. /**
  8102. * Process a selector into a transformed value synchronously.
  8103. *
  8104. * @param rule {postcss.Rule | string} The css selector to be processed
  8105. * @param options The options for processing
  8106. * @returns {any} The value returned by the processor.
  8107. */
  8108. ;
  8109. _proto.transformSync = function transformSync(rule, options) {
  8110. return this._runSync(rule, options).transform;
  8111. }
  8112. /**
  8113. * Process a selector into a new selector string asynchronously.
  8114. *
  8115. * @param rule {postcss.Rule | string} The css selector to be processed
  8116. * @param options The options for processing
  8117. * @returns {string} the selector after processing.
  8118. */
  8119. ;
  8120. _proto.process = function process(rule, options) {
  8121. return this._run(rule, options).then(function (result) {
  8122. return result.string || result.root.toString();
  8123. });
  8124. }
  8125. /**
  8126. * Process a selector into a new selector string synchronously.
  8127. *
  8128. * @param rule {postcss.Rule | string} The css selector to be processed
  8129. * @param options The options for processing
  8130. * @returns {string} the selector after processing.
  8131. */
  8132. ;
  8133. _proto.processSync = function processSync(rule, options) {
  8134. var result = this._runSync(rule, options);
  8135. return result.string || result.root.toString();
  8136. };
  8137. return Processor;
  8138. }();
  8139. exports["default"] = Processor;
  8140. module.exports = exports.default;
  8141. }(processor, processor.exports));
  8142. var selectors = {};
  8143. var constructors = {};
  8144. constructors.__esModule = true;
  8145. constructors.universal = constructors.tag = constructors.string = constructors.selector = constructors.root = constructors.pseudo = constructors.nesting = constructors.id = constructors.comment = constructors.combinator = constructors.className = constructors.attribute = void 0;
  8146. var _attribute = _interopRequireDefault$2(attribute$1);
  8147. var _className = _interopRequireDefault$2(className$1.exports);
  8148. var _combinator = _interopRequireDefault$2(combinator$2.exports);
  8149. var _comment = _interopRequireDefault$2(comment$2.exports);
  8150. var _id = _interopRequireDefault$2(id$1.exports);
  8151. var _nesting = _interopRequireDefault$2(nesting$1.exports);
  8152. var _pseudo = _interopRequireDefault$2(pseudo$1.exports);
  8153. var _root = _interopRequireDefault$2(root$1.exports);
  8154. var _selector = _interopRequireDefault$2(selector$1.exports);
  8155. var _string = _interopRequireDefault$2(string$1.exports);
  8156. var _tag = _interopRequireDefault$2(tag$1.exports);
  8157. var _universal = _interopRequireDefault$2(universal$1.exports);
  8158. function _interopRequireDefault$2(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
  8159. var attribute = function attribute(opts) {
  8160. return new _attribute["default"](opts);
  8161. };
  8162. constructors.attribute = attribute;
  8163. var className = function className(opts) {
  8164. return new _className["default"](opts);
  8165. };
  8166. constructors.className = className;
  8167. var combinator = function combinator(opts) {
  8168. return new _combinator["default"](opts);
  8169. };
  8170. constructors.combinator = combinator;
  8171. var comment = function comment(opts) {
  8172. return new _comment["default"](opts);
  8173. };
  8174. constructors.comment = comment;
  8175. var id = function id(opts) {
  8176. return new _id["default"](opts);
  8177. };
  8178. constructors.id = id;
  8179. var nesting = function nesting(opts) {
  8180. return new _nesting["default"](opts);
  8181. };
  8182. constructors.nesting = nesting;
  8183. var pseudo = function pseudo(opts) {
  8184. return new _pseudo["default"](opts);
  8185. };
  8186. constructors.pseudo = pseudo;
  8187. var root = function root(opts) {
  8188. return new _root["default"](opts);
  8189. };
  8190. constructors.root = root;
  8191. var selector = function selector(opts) {
  8192. return new _selector["default"](opts);
  8193. };
  8194. constructors.selector = selector;
  8195. var string = function string(opts) {
  8196. return new _string["default"](opts);
  8197. };
  8198. constructors.string = string;
  8199. var tag = function tag(opts) {
  8200. return new _tag["default"](opts);
  8201. };
  8202. constructors.tag = tag;
  8203. var universal = function universal(opts) {
  8204. return new _universal["default"](opts);
  8205. };
  8206. constructors.universal = universal;
  8207. var guards = {};
  8208. guards.__esModule = true;
  8209. guards.isNode = isNode;
  8210. guards.isPseudoElement = isPseudoElement;
  8211. guards.isPseudoClass = isPseudoClass;
  8212. guards.isContainer = isContainer;
  8213. guards.isNamespace = isNamespace;
  8214. guards.isUniversal = guards.isTag = guards.isString = guards.isSelector = guards.isRoot = guards.isPseudo = guards.isNesting = guards.isIdentifier = guards.isComment = guards.isCombinator = guards.isClassName = guards.isAttribute = void 0;
  8215. var _types = types;
  8216. var _IS_TYPE;
  8217. var IS_TYPE = (_IS_TYPE = {}, _IS_TYPE[_types.ATTRIBUTE] = true, _IS_TYPE[_types.CLASS] = true, _IS_TYPE[_types.COMBINATOR] = true, _IS_TYPE[_types.COMMENT] = true, _IS_TYPE[_types.ID] = true, _IS_TYPE[_types.NESTING] = true, _IS_TYPE[_types.PSEUDO] = true, _IS_TYPE[_types.ROOT] = true, _IS_TYPE[_types.SELECTOR] = true, _IS_TYPE[_types.STRING] = true, _IS_TYPE[_types.TAG] = true, _IS_TYPE[_types.UNIVERSAL] = true, _IS_TYPE);
  8218. function isNode(node) {
  8219. return typeof node === "object" && IS_TYPE[node.type];
  8220. }
  8221. function isNodeType(type, node) {
  8222. return isNode(node) && node.type === type;
  8223. }
  8224. var isAttribute = isNodeType.bind(null, _types.ATTRIBUTE);
  8225. guards.isAttribute = isAttribute;
  8226. var isClassName = isNodeType.bind(null, _types.CLASS);
  8227. guards.isClassName = isClassName;
  8228. var isCombinator = isNodeType.bind(null, _types.COMBINATOR);
  8229. guards.isCombinator = isCombinator;
  8230. var isComment = isNodeType.bind(null, _types.COMMENT);
  8231. guards.isComment = isComment;
  8232. var isIdentifier = isNodeType.bind(null, _types.ID);
  8233. guards.isIdentifier = isIdentifier;
  8234. var isNesting = isNodeType.bind(null, _types.NESTING);
  8235. guards.isNesting = isNesting;
  8236. var isPseudo = isNodeType.bind(null, _types.PSEUDO);
  8237. guards.isPseudo = isPseudo;
  8238. var isRoot = isNodeType.bind(null, _types.ROOT);
  8239. guards.isRoot = isRoot;
  8240. var isSelector = isNodeType.bind(null, _types.SELECTOR);
  8241. guards.isSelector = isSelector;
  8242. var isString = isNodeType.bind(null, _types.STRING);
  8243. guards.isString = isString;
  8244. var isTag = isNodeType.bind(null, _types.TAG);
  8245. guards.isTag = isTag;
  8246. var isUniversal = isNodeType.bind(null, _types.UNIVERSAL);
  8247. guards.isUniversal = isUniversal;
  8248. function isPseudoElement(node) {
  8249. return isPseudo(node) && node.value && (node.value.startsWith("::") || node.value.toLowerCase() === ":before" || node.value.toLowerCase() === ":after");
  8250. }
  8251. function isPseudoClass(node) {
  8252. return isPseudo(node) && !isPseudoElement(node);
  8253. }
  8254. function isContainer(node) {
  8255. return !!(isNode(node) && node.walk);
  8256. }
  8257. function isNamespace(node) {
  8258. return isAttribute(node) || isTag(node);
  8259. }
  8260. (function (exports) {
  8261. exports.__esModule = true;
  8262. var _types = types;
  8263. Object.keys(_types).forEach(function (key) {
  8264. if (key === "default" || key === "__esModule") return;
  8265. if (key in exports && exports[key] === _types[key]) return;
  8266. exports[key] = _types[key];
  8267. });
  8268. var _constructors = constructors;
  8269. Object.keys(_constructors).forEach(function (key) {
  8270. if (key === "default" || key === "__esModule") return;
  8271. if (key in exports && exports[key] === _constructors[key]) return;
  8272. exports[key] = _constructors[key];
  8273. });
  8274. var _guards = guards;
  8275. Object.keys(_guards).forEach(function (key) {
  8276. if (key === "default" || key === "__esModule") return;
  8277. if (key in exports && exports[key] === _guards[key]) return;
  8278. exports[key] = _guards[key];
  8279. });
  8280. }(selectors));
  8281. (function (module, exports) {
  8282. exports.__esModule = true;
  8283. exports["default"] = void 0;
  8284. var _processor = _interopRequireDefault(processor.exports);
  8285. var selectors$1 = _interopRequireWildcard(selectors);
  8286. function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
  8287. function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
  8288. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
  8289. var parser = function parser(processor) {
  8290. return new _processor["default"](processor);
  8291. };
  8292. Object.assign(parser, selectors$1);
  8293. delete parser.__esModule;
  8294. var _default = parser;
  8295. exports["default"] = _default;
  8296. module.exports = exports.default;
  8297. }(dist, dist.exports));
  8298. const matchValueName = /[$]?[\w-]+/g;
  8299. const replaceValueSymbols$2 = (value, replacements) => {
  8300. let matches;
  8301. while ((matches = matchValueName.exec(value))) {
  8302. const replacement = replacements[matches[0]];
  8303. if (replacement) {
  8304. value =
  8305. value.slice(0, matches.index) +
  8306. replacement +
  8307. value.slice(matchValueName.lastIndex);
  8308. matchValueName.lastIndex -= matches[0].length - replacement.length;
  8309. }
  8310. }
  8311. return value;
  8312. };
  8313. var replaceValueSymbols_1 = replaceValueSymbols$2;
  8314. const replaceValueSymbols$1 = replaceValueSymbols_1;
  8315. const replaceSymbols$1 = (css, replacements) => {
  8316. css.walk((node) => {
  8317. if (node.type === "decl" && node.value) {
  8318. node.value = replaceValueSymbols$1(node.value.toString(), replacements);
  8319. } else if (node.type === "rule" && node.selector) {
  8320. node.selector = replaceValueSymbols$1(
  8321. node.selector.toString(),
  8322. replacements
  8323. );
  8324. } else if (node.type === "atrule" && node.params) {
  8325. node.params = replaceValueSymbols$1(node.params.toString(), replacements);
  8326. }
  8327. });
  8328. };
  8329. var replaceSymbols_1 = replaceSymbols$1;
  8330. const importPattern = /^:import\(("[^"]*"|'[^']*'|[^"']+)\)$/;
  8331. const balancedQuotes = /^("[^"]*"|'[^']*'|[^"']+)$/;
  8332. const getDeclsObject = (rule) => {
  8333. const object = {};
  8334. rule.walkDecls((decl) => {
  8335. const before = decl.raws.before ? decl.raws.before.trim() : "";
  8336. object[before + decl.prop] = decl.value;
  8337. });
  8338. return object;
  8339. };
  8340. /**
  8341. *
  8342. * @param {string} css
  8343. * @param {boolean} removeRules
  8344. * @param {'auto' | 'rule' | 'at-rule'} mode
  8345. */
  8346. const extractICSS$2 = (css, removeRules = true, mode = "auto") => {
  8347. const icssImports = {};
  8348. const icssExports = {};
  8349. function addImports(node, path) {
  8350. const unquoted = path.replace(/'|"/g, "");
  8351. icssImports[unquoted] = Object.assign(
  8352. icssImports[unquoted] || {},
  8353. getDeclsObject(node)
  8354. );
  8355. if (removeRules) {
  8356. node.remove();
  8357. }
  8358. }
  8359. function addExports(node) {
  8360. Object.assign(icssExports, getDeclsObject(node));
  8361. if (removeRules) {
  8362. node.remove();
  8363. }
  8364. }
  8365. css.each((node) => {
  8366. if (node.type === "rule" && mode !== "at-rule") {
  8367. if (node.selector.slice(0, 7) === ":import") {
  8368. const matches = importPattern.exec(node.selector);
  8369. if (matches) {
  8370. addImports(node, matches[1]);
  8371. }
  8372. }
  8373. if (node.selector === ":export") {
  8374. addExports(node);
  8375. }
  8376. }
  8377. if (node.type === "atrule" && mode !== "rule") {
  8378. if (node.name === "icss-import") {
  8379. const matches = balancedQuotes.exec(node.params);
  8380. if (matches) {
  8381. addImports(node, matches[1]);
  8382. }
  8383. }
  8384. if (node.name === "icss-export") {
  8385. addExports(node);
  8386. }
  8387. }
  8388. });
  8389. return { icssImports, icssExports };
  8390. };
  8391. var extractICSS_1 = extractICSS$2;
  8392. const createImports = (imports, postcss, mode = "rule") => {
  8393. return Object.keys(imports).map((path) => {
  8394. const aliases = imports[path];
  8395. const declarations = Object.keys(aliases).map((key) =>
  8396. postcss.decl({
  8397. prop: key,
  8398. value: aliases[key],
  8399. raws: { before: "\n " },
  8400. })
  8401. );
  8402. const hasDeclarations = declarations.length > 0;
  8403. const rule =
  8404. mode === "rule"
  8405. ? postcss.rule({
  8406. selector: `:import('${path}')`,
  8407. raws: { after: hasDeclarations ? "\n" : "" },
  8408. })
  8409. : postcss.atRule({
  8410. name: "icss-import",
  8411. params: `'${path}'`,
  8412. raws: { after: hasDeclarations ? "\n" : "" },
  8413. });
  8414. if (hasDeclarations) {
  8415. rule.append(declarations);
  8416. }
  8417. return rule;
  8418. });
  8419. };
  8420. const createExports = (exports, postcss, mode = "rule") => {
  8421. const declarations = Object.keys(exports).map((key) =>
  8422. postcss.decl({
  8423. prop: key,
  8424. value: exports[key],
  8425. raws: { before: "\n " },
  8426. })
  8427. );
  8428. if (declarations.length === 0) {
  8429. return [];
  8430. }
  8431. const rule =
  8432. mode === "rule"
  8433. ? postcss.rule({
  8434. selector: `:export`,
  8435. raws: { after: "\n" },
  8436. })
  8437. : postcss.atRule({
  8438. name: "icss-export",
  8439. raws: { after: "\n" },
  8440. });
  8441. rule.append(declarations);
  8442. return [rule];
  8443. };
  8444. const createICSSRules$1 = (imports, exports, postcss, mode) => [
  8445. ...createImports(imports, postcss, mode),
  8446. ...createExports(exports, postcss, mode),
  8447. ];
  8448. var createICSSRules_1 = createICSSRules$1;
  8449. const replaceValueSymbols = replaceValueSymbols_1;
  8450. const replaceSymbols = replaceSymbols_1;
  8451. const extractICSS$1 = extractICSS_1;
  8452. const createICSSRules = createICSSRules_1;
  8453. var src$3 = {
  8454. replaceValueSymbols,
  8455. replaceSymbols,
  8456. extractICSS: extractICSS$1,
  8457. createICSSRules,
  8458. };
  8459. const selectorParser$1 = dist.exports;
  8460. const valueParser = index$1.lib;
  8461. const { extractICSS } = src$3;
  8462. const isSpacing = (node) => node.type === "combinator" && node.value === " ";
  8463. function normalizeNodeArray(nodes) {
  8464. const array = [];
  8465. nodes.forEach((x) => {
  8466. if (Array.isArray(x)) {
  8467. normalizeNodeArray(x).forEach((item) => {
  8468. array.push(item);
  8469. });
  8470. } else if (x) {
  8471. array.push(x);
  8472. }
  8473. });
  8474. if (array.length > 0 && isSpacing(array[array.length - 1])) {
  8475. array.pop();
  8476. }
  8477. return array;
  8478. }
  8479. function localizeNode(rule, mode, localAliasMap) {
  8480. const transform = (node, context) => {
  8481. if (context.ignoreNextSpacing && !isSpacing(node)) {
  8482. throw new Error("Missing whitespace after " + context.ignoreNextSpacing);
  8483. }
  8484. if (context.enforceNoSpacing && isSpacing(node)) {
  8485. throw new Error("Missing whitespace before " + context.enforceNoSpacing);
  8486. }
  8487. let newNodes;
  8488. switch (node.type) {
  8489. case "root": {
  8490. let resultingGlobal;
  8491. context.hasPureGlobals = false;
  8492. newNodes = node.nodes.map((n) => {
  8493. const nContext = {
  8494. global: context.global,
  8495. lastWasSpacing: true,
  8496. hasLocals: false,
  8497. explicit: false,
  8498. };
  8499. n = transform(n, nContext);
  8500. if (typeof resultingGlobal === "undefined") {
  8501. resultingGlobal = nContext.global;
  8502. } else if (resultingGlobal !== nContext.global) {
  8503. throw new Error(
  8504. 'Inconsistent rule global/local result in rule "' +
  8505. node +
  8506. '" (multiple selectors must result in the same mode for the rule)'
  8507. );
  8508. }
  8509. if (!nContext.hasLocals) {
  8510. context.hasPureGlobals = true;
  8511. }
  8512. return n;
  8513. });
  8514. context.global = resultingGlobal;
  8515. node.nodes = normalizeNodeArray(newNodes);
  8516. break;
  8517. }
  8518. case "selector": {
  8519. newNodes = node.map((childNode) => transform(childNode, context));
  8520. node = node.clone();
  8521. node.nodes = normalizeNodeArray(newNodes);
  8522. break;
  8523. }
  8524. case "combinator": {
  8525. if (isSpacing(node)) {
  8526. if (context.ignoreNextSpacing) {
  8527. context.ignoreNextSpacing = false;
  8528. context.lastWasSpacing = false;
  8529. context.enforceNoSpacing = false;
  8530. return null;
  8531. }
  8532. context.lastWasSpacing = true;
  8533. return node;
  8534. }
  8535. break;
  8536. }
  8537. case "pseudo": {
  8538. let childContext;
  8539. const isNested = !!node.length;
  8540. const isScoped = node.value === ":local" || node.value === ":global";
  8541. const isImportExport =
  8542. node.value === ":import" || node.value === ":export";
  8543. if (isImportExport) {
  8544. context.hasLocals = true;
  8545. // :local(.foo)
  8546. } else if (isNested) {
  8547. if (isScoped) {
  8548. if (node.nodes.length === 0) {
  8549. throw new Error(`${node.value}() can't be empty`);
  8550. }
  8551. if (context.inside) {
  8552. throw new Error(
  8553. `A ${node.value} is not allowed inside of a ${context.inside}(...)`
  8554. );
  8555. }
  8556. childContext = {
  8557. global: node.value === ":global",
  8558. inside: node.value,
  8559. hasLocals: false,
  8560. explicit: true,
  8561. };
  8562. newNodes = node
  8563. .map((childNode) => transform(childNode, childContext))
  8564. .reduce((acc, next) => acc.concat(next.nodes), []);
  8565. if (newNodes.length) {
  8566. const { before, after } = node.spaces;
  8567. const first = newNodes[0];
  8568. const last = newNodes[newNodes.length - 1];
  8569. first.spaces = { before, after: first.spaces.after };
  8570. last.spaces = { before: last.spaces.before, after };
  8571. }
  8572. node = newNodes;
  8573. break;
  8574. } else {
  8575. childContext = {
  8576. global: context.global,
  8577. inside: context.inside,
  8578. lastWasSpacing: true,
  8579. hasLocals: false,
  8580. explicit: context.explicit,
  8581. };
  8582. newNodes = node.map((childNode) =>
  8583. transform(childNode, childContext)
  8584. );
  8585. node = node.clone();
  8586. node.nodes = normalizeNodeArray(newNodes);
  8587. if (childContext.hasLocals) {
  8588. context.hasLocals = true;
  8589. }
  8590. }
  8591. break;
  8592. //:local .foo .bar
  8593. } else if (isScoped) {
  8594. if (context.inside) {
  8595. throw new Error(
  8596. `A ${node.value} is not allowed inside of a ${context.inside}(...)`
  8597. );
  8598. }
  8599. const addBackSpacing = !!node.spaces.before;
  8600. context.ignoreNextSpacing = context.lastWasSpacing
  8601. ? node.value
  8602. : false;
  8603. context.enforceNoSpacing = context.lastWasSpacing
  8604. ? false
  8605. : node.value;
  8606. context.global = node.value === ":global";
  8607. context.explicit = true;
  8608. // because this node has spacing that is lost when we remove it
  8609. // we make up for it by adding an extra combinator in since adding
  8610. // spacing on the parent selector doesn't work
  8611. return addBackSpacing
  8612. ? selectorParser$1.combinator({ value: " " })
  8613. : null;
  8614. }
  8615. break;
  8616. }
  8617. case "id":
  8618. case "class": {
  8619. if (!node.value) {
  8620. throw new Error("Invalid class or id selector syntax");
  8621. }
  8622. if (context.global) {
  8623. break;
  8624. }
  8625. const isImportedValue = localAliasMap.has(node.value);
  8626. const isImportedWithExplicitScope = isImportedValue && context.explicit;
  8627. if (!isImportedValue || isImportedWithExplicitScope) {
  8628. const innerNode = node.clone();
  8629. innerNode.spaces = { before: "", after: "" };
  8630. node = selectorParser$1.pseudo({
  8631. value: ":local",
  8632. nodes: [innerNode],
  8633. spaces: node.spaces,
  8634. });
  8635. context.hasLocals = true;
  8636. }
  8637. break;
  8638. }
  8639. }
  8640. context.lastWasSpacing = false;
  8641. context.ignoreNextSpacing = false;
  8642. context.enforceNoSpacing = false;
  8643. return node;
  8644. };
  8645. const rootContext = {
  8646. global: mode === "global",
  8647. hasPureGlobals: false,
  8648. };
  8649. rootContext.selector = selectorParser$1((root) => {
  8650. transform(root, rootContext);
  8651. }).processSync(rule, { updateSelector: false, lossless: true });
  8652. return rootContext;
  8653. }
  8654. function localizeDeclNode(node, context) {
  8655. switch (node.type) {
  8656. case "word":
  8657. if (context.localizeNextItem) {
  8658. if (!context.localAliasMap.has(node.value)) {
  8659. node.value = ":local(" + node.value + ")";
  8660. context.localizeNextItem = false;
  8661. }
  8662. }
  8663. break;
  8664. case "function":
  8665. if (
  8666. context.options &&
  8667. context.options.rewriteUrl &&
  8668. node.value.toLowerCase() === "url"
  8669. ) {
  8670. node.nodes.map((nestedNode) => {
  8671. if (nestedNode.type !== "string" && nestedNode.type !== "word") {
  8672. return;
  8673. }
  8674. let newUrl = context.options.rewriteUrl(
  8675. context.global,
  8676. nestedNode.value
  8677. );
  8678. switch (nestedNode.type) {
  8679. case "string":
  8680. if (nestedNode.quote === "'") {
  8681. newUrl = newUrl.replace(/(\\)/g, "\\$1").replace(/'/g, "\\'");
  8682. }
  8683. if (nestedNode.quote === '"') {
  8684. newUrl = newUrl.replace(/(\\)/g, "\\$1").replace(/"/g, '\\"');
  8685. }
  8686. break;
  8687. case "word":
  8688. newUrl = newUrl.replace(/("|'|\)|\\)/g, "\\$1");
  8689. break;
  8690. }
  8691. nestedNode.value = newUrl;
  8692. });
  8693. }
  8694. break;
  8695. }
  8696. return node;
  8697. }
  8698. function isWordAFunctionArgument(wordNode, functionNode) {
  8699. return functionNode
  8700. ? functionNode.nodes.some(
  8701. (functionNodeChild) =>
  8702. functionNodeChild.sourceIndex === wordNode.sourceIndex
  8703. )
  8704. : false;
  8705. }
  8706. function localizeDeclarationValues(localize, declaration, context) {
  8707. const valueNodes = valueParser(declaration.value);
  8708. valueNodes.walk((node, index, nodes) => {
  8709. const subContext = {
  8710. options: context.options,
  8711. global: context.global,
  8712. localizeNextItem: localize && !context.global,
  8713. localAliasMap: context.localAliasMap,
  8714. };
  8715. nodes[index] = localizeDeclNode(node, subContext);
  8716. });
  8717. declaration.value = valueNodes.toString();
  8718. }
  8719. function localizeDeclaration(declaration, context) {
  8720. const isAnimation = /animation$/i.test(declaration.prop);
  8721. if (isAnimation) {
  8722. const validIdent = /^-?[_a-z][_a-z0-9-]*$/i;
  8723. /*
  8724. The spec defines some keywords that you can use to describe properties such as the timing
  8725. function. These are still valid animation names, so as long as there is a property that accepts
  8726. a keyword, it is given priority. Only when all the properties that can take a keyword are
  8727. exhausted can the animation name be set to the keyword. I.e.
  8728. animation: infinite infinite;
  8729. The animation will repeat an infinite number of times from the first argument, and will have an
  8730. animation name of infinite from the second.
  8731. */
  8732. const animationKeywords = {
  8733. $alternate: 1,
  8734. "$alternate-reverse": 1,
  8735. $backwards: 1,
  8736. $both: 1,
  8737. $ease: 1,
  8738. "$ease-in": 1,
  8739. "$ease-in-out": 1,
  8740. "$ease-out": 1,
  8741. $forwards: 1,
  8742. $infinite: 1,
  8743. $linear: 1,
  8744. $none: Infinity, // No matter how many times you write none, it will never be an animation name
  8745. $normal: 1,
  8746. $paused: 1,
  8747. $reverse: 1,
  8748. $running: 1,
  8749. "$step-end": 1,
  8750. "$step-start": 1,
  8751. $initial: Infinity,
  8752. $inherit: Infinity,
  8753. $unset: Infinity,
  8754. };
  8755. let parsedAnimationKeywords = {};
  8756. let stepsFunctionNode = null;
  8757. const valueNodes = valueParser(declaration.value).walk((node) => {
  8758. /* If div-token appeared (represents as comma ','), a possibility of an animation-keywords should be reflesh. */
  8759. if (node.type === "div") {
  8760. parsedAnimationKeywords = {};
  8761. }
  8762. if (node.type === "function" && node.value.toLowerCase() === "steps") {
  8763. stepsFunctionNode = node;
  8764. }
  8765. const value =
  8766. node.type === "word" &&
  8767. !isWordAFunctionArgument(node, stepsFunctionNode)
  8768. ? node.value.toLowerCase()
  8769. : null;
  8770. let shouldParseAnimationName = false;
  8771. if (value && validIdent.test(value)) {
  8772. if ("$" + value in animationKeywords) {
  8773. parsedAnimationKeywords["$" + value] =
  8774. "$" + value in parsedAnimationKeywords
  8775. ? parsedAnimationKeywords["$" + value] + 1
  8776. : 0;
  8777. shouldParseAnimationName =
  8778. parsedAnimationKeywords["$" + value] >=
  8779. animationKeywords["$" + value];
  8780. } else {
  8781. shouldParseAnimationName = true;
  8782. }
  8783. }
  8784. const subContext = {
  8785. options: context.options,
  8786. global: context.global,
  8787. localizeNextItem: shouldParseAnimationName && !context.global,
  8788. localAliasMap: context.localAliasMap,
  8789. };
  8790. return localizeDeclNode(node, subContext);
  8791. });
  8792. declaration.value = valueNodes.toString();
  8793. return;
  8794. }
  8795. const isAnimationName = /animation(-name)?$/i.test(declaration.prop);
  8796. if (isAnimationName) {
  8797. return localizeDeclarationValues(true, declaration, context);
  8798. }
  8799. const hasUrl = /url\(/i.test(declaration.value);
  8800. if (hasUrl) {
  8801. return localizeDeclarationValues(false, declaration, context);
  8802. }
  8803. }
  8804. src$4.exports = (options = {}) => {
  8805. if (
  8806. options &&
  8807. options.mode &&
  8808. options.mode !== "global" &&
  8809. options.mode !== "local" &&
  8810. options.mode !== "pure"
  8811. ) {
  8812. throw new Error(
  8813. 'options.mode must be either "global", "local" or "pure" (default "local")'
  8814. );
  8815. }
  8816. const pureMode = options && options.mode === "pure";
  8817. const globalMode = options && options.mode === "global";
  8818. return {
  8819. postcssPlugin: "postcss-modules-local-by-default",
  8820. prepare() {
  8821. const localAliasMap = new Map();
  8822. return {
  8823. Once(root) {
  8824. const { icssImports } = extractICSS(root, false);
  8825. Object.keys(icssImports).forEach((key) => {
  8826. Object.keys(icssImports[key]).forEach((prop) => {
  8827. localAliasMap.set(prop, icssImports[key][prop]);
  8828. });
  8829. });
  8830. root.walkAtRules((atRule) => {
  8831. if (/keyframes$/i.test(atRule.name)) {
  8832. const globalMatch = /^\s*:global\s*\((.+)\)\s*$/.exec(
  8833. atRule.params
  8834. );
  8835. const localMatch = /^\s*:local\s*\((.+)\)\s*$/.exec(
  8836. atRule.params
  8837. );
  8838. let globalKeyframes = globalMode;
  8839. if (globalMatch) {
  8840. if (pureMode) {
  8841. throw atRule.error(
  8842. "@keyframes :global(...) is not allowed in pure mode"
  8843. );
  8844. }
  8845. atRule.params = globalMatch[1];
  8846. globalKeyframes = true;
  8847. } else if (localMatch) {
  8848. atRule.params = localMatch[0];
  8849. globalKeyframes = false;
  8850. } else if (!globalMode) {
  8851. if (atRule.params && !localAliasMap.has(atRule.params)) {
  8852. atRule.params = ":local(" + atRule.params + ")";
  8853. }
  8854. }
  8855. atRule.walkDecls((declaration) => {
  8856. localizeDeclaration(declaration, {
  8857. localAliasMap,
  8858. options: options,
  8859. global: globalKeyframes,
  8860. });
  8861. });
  8862. } else if (atRule.nodes) {
  8863. atRule.nodes.forEach((declaration) => {
  8864. if (declaration.type === "decl") {
  8865. localizeDeclaration(declaration, {
  8866. localAliasMap,
  8867. options: options,
  8868. global: globalMode,
  8869. });
  8870. }
  8871. });
  8872. }
  8873. });
  8874. root.walkRules((rule) => {
  8875. if (
  8876. rule.parent &&
  8877. rule.parent.type === "atrule" &&
  8878. /keyframes$/i.test(rule.parent.name)
  8879. ) {
  8880. // ignore keyframe rules
  8881. return;
  8882. }
  8883. const context = localizeNode(rule, options.mode, localAliasMap);
  8884. context.options = options;
  8885. context.localAliasMap = localAliasMap;
  8886. if (pureMode && context.hasPureGlobals) {
  8887. throw rule.error(
  8888. 'Selector "' +
  8889. rule.selector +
  8890. '" is not pure ' +
  8891. "(pure selectors must contain at least one local class or id)"
  8892. );
  8893. }
  8894. rule.selector = context.selector;
  8895. // Less-syntax mixins parse as rules with no nodes
  8896. if (rule.nodes) {
  8897. rule.nodes.forEach((declaration) =>
  8898. localizeDeclaration(declaration, context)
  8899. );
  8900. }
  8901. });
  8902. },
  8903. };
  8904. },
  8905. };
  8906. };
  8907. src$4.exports.postcss = true;
  8908. var src$2 = {exports: {}};
  8909. const PERMANENT_MARKER = 2;
  8910. const TEMPORARY_MARKER = 1;
  8911. function createError(node, graph) {
  8912. const er = new Error("Nondeterministic import's order");
  8913. const related = graph[node];
  8914. const relatedNode = related.find(
  8915. (relatedNode) => graph[relatedNode].indexOf(node) > -1
  8916. );
  8917. er.nodes = [node, relatedNode];
  8918. return er;
  8919. }
  8920. function walkGraph(node, graph, state, result, strict) {
  8921. if (state[node] === PERMANENT_MARKER) {
  8922. return;
  8923. }
  8924. if (state[node] === TEMPORARY_MARKER) {
  8925. if (strict) {
  8926. return createError(node, graph);
  8927. }
  8928. return;
  8929. }
  8930. state[node] = TEMPORARY_MARKER;
  8931. const children = graph[node];
  8932. const length = children.length;
  8933. for (let i = 0; i < length; ++i) {
  8934. const error = walkGraph(children[i], graph, state, result, strict);
  8935. if (error instanceof Error) {
  8936. return error;
  8937. }
  8938. }
  8939. state[node] = PERMANENT_MARKER;
  8940. result.push(node);
  8941. }
  8942. function topologicalSort$1(graph, strict) {
  8943. const result = [];
  8944. const state = {};
  8945. const nodes = Object.keys(graph);
  8946. const length = nodes.length;
  8947. for (let i = 0; i < length; ++i) {
  8948. const er = walkGraph(nodes[i], graph, state, result, strict);
  8949. if (er instanceof Error) {
  8950. return er;
  8951. }
  8952. }
  8953. return result;
  8954. }
  8955. var topologicalSort_1 = topologicalSort$1;
  8956. const topologicalSort = topologicalSort_1;
  8957. const matchImports$1 = /^(.+?)\s+from\s+(?:"([^"]+)"|'([^']+)'|(global))$/;
  8958. const icssImport = /^:import\((?:"([^"]+)"|'([^']+)')\)/;
  8959. const VISITED_MARKER = 1;
  8960. /**
  8961. * :import('G') {}
  8962. *
  8963. * Rule
  8964. * composes: ... from 'A'
  8965. * composes: ... from 'B'
  8966. * Rule
  8967. * composes: ... from 'A'
  8968. * composes: ... from 'A'
  8969. * composes: ... from 'C'
  8970. *
  8971. * Results in:
  8972. *
  8973. * graph: {
  8974. * G: [],
  8975. * A: [],
  8976. * B: ['A'],
  8977. * C: ['A'],
  8978. * }
  8979. */
  8980. function addImportToGraph(importId, parentId, graph, visited) {
  8981. const siblingsId = parentId + "_" + "siblings";
  8982. const visitedId = parentId + "_" + importId;
  8983. if (visited[visitedId] !== VISITED_MARKER) {
  8984. if (!Array.isArray(visited[siblingsId])) {
  8985. visited[siblingsId] = [];
  8986. }
  8987. const siblings = visited[siblingsId];
  8988. if (Array.isArray(graph[importId])) {
  8989. graph[importId] = graph[importId].concat(siblings);
  8990. } else {
  8991. graph[importId] = siblings.slice();
  8992. }
  8993. visited[visitedId] = VISITED_MARKER;
  8994. siblings.push(importId);
  8995. }
  8996. }
  8997. src$2.exports = (options = {}) => {
  8998. let importIndex = 0;
  8999. const createImportedName =
  9000. typeof options.createImportedName !== "function"
  9001. ? (importName /*, path*/) =>
  9002. `i__imported_${importName.replace(/\W/g, "_")}_${importIndex++}`
  9003. : options.createImportedName;
  9004. const failOnWrongOrder = options.failOnWrongOrder;
  9005. return {
  9006. postcssPlugin: "postcss-modules-extract-imports",
  9007. prepare() {
  9008. const graph = {};
  9009. const visited = {};
  9010. const existingImports = {};
  9011. const importDecls = {};
  9012. const imports = {};
  9013. return {
  9014. Once(root, postcss) {
  9015. // Check the existing imports order and save refs
  9016. root.walkRules((rule) => {
  9017. const matches = icssImport.exec(rule.selector);
  9018. if (matches) {
  9019. const [, /*match*/ doubleQuotePath, singleQuotePath] = matches;
  9020. const importPath = doubleQuotePath || singleQuotePath;
  9021. addImportToGraph(importPath, "root", graph, visited);
  9022. existingImports[importPath] = rule;
  9023. }
  9024. });
  9025. root.walkDecls(/^composes$/, (declaration) => {
  9026. const matches = declaration.value.match(matchImports$1);
  9027. if (!matches) {
  9028. return;
  9029. }
  9030. let tmpSymbols;
  9031. let [
  9032. ,
  9033. /*match*/ symbols,
  9034. doubleQuotePath,
  9035. singleQuotePath,
  9036. global,
  9037. ] = matches;
  9038. if (global) {
  9039. // Composing globals simply means changing these classes to wrap them in global(name)
  9040. tmpSymbols = symbols.split(/\s+/).map((s) => `global(${s})`);
  9041. } else {
  9042. const importPath = doubleQuotePath || singleQuotePath;
  9043. let parent = declaration.parent;
  9044. let parentIndexes = "";
  9045. while (parent.type !== "root") {
  9046. parentIndexes =
  9047. parent.parent.index(parent) + "_" + parentIndexes;
  9048. parent = parent.parent;
  9049. }
  9050. const { selector } = declaration.parent;
  9051. const parentRule = `_${parentIndexes}${selector}`;
  9052. addImportToGraph(importPath, parentRule, graph, visited);
  9053. importDecls[importPath] = declaration;
  9054. imports[importPath] = imports[importPath] || {};
  9055. tmpSymbols = symbols.split(/\s+/).map((s) => {
  9056. if (!imports[importPath][s]) {
  9057. imports[importPath][s] = createImportedName(s, importPath);
  9058. }
  9059. return imports[importPath][s];
  9060. });
  9061. }
  9062. declaration.value = tmpSymbols.join(" ");
  9063. });
  9064. const importsOrder = topologicalSort(graph, failOnWrongOrder);
  9065. if (importsOrder instanceof Error) {
  9066. const importPath = importsOrder.nodes.find((importPath) =>
  9067. // eslint-disable-next-line no-prototype-builtins
  9068. importDecls.hasOwnProperty(importPath)
  9069. );
  9070. const decl = importDecls[importPath];
  9071. throw decl.error(
  9072. "Failed to resolve order of composed modules " +
  9073. importsOrder.nodes
  9074. .map((importPath) => "`" + importPath + "`")
  9075. .join(", ") +
  9076. ".",
  9077. {
  9078. plugin: "postcss-modules-extract-imports",
  9079. word: "composes",
  9080. }
  9081. );
  9082. }
  9083. let lastImportRule;
  9084. importsOrder.forEach((path) => {
  9085. const importedSymbols = imports[path];
  9086. let rule = existingImports[path];
  9087. if (!rule && importedSymbols) {
  9088. rule = postcss.rule({
  9089. selector: `:import("${path}")`,
  9090. raws: { after: "\n" },
  9091. });
  9092. if (lastImportRule) {
  9093. root.insertAfter(lastImportRule, rule);
  9094. } else {
  9095. root.prepend(rule);
  9096. }
  9097. }
  9098. lastImportRule = rule;
  9099. if (!importedSymbols) {
  9100. return;
  9101. }
  9102. Object.keys(importedSymbols).forEach((importedSymbol) => {
  9103. rule.append(
  9104. postcss.decl({
  9105. value: importedSymbol,
  9106. prop: importedSymbols[importedSymbol],
  9107. raws: { before: "\n " },
  9108. })
  9109. );
  9110. });
  9111. });
  9112. },
  9113. };
  9114. },
  9115. };
  9116. };
  9117. src$2.exports.postcss = true;
  9118. const selectorParser = dist.exports;
  9119. const hasOwnProperty = Object.prototype.hasOwnProperty;
  9120. function getSingleLocalNamesForComposes(root) {
  9121. return root.nodes.map((node) => {
  9122. if (node.type !== "selector" || node.nodes.length !== 1) {
  9123. throw new Error(
  9124. `composition is only allowed when selector is single :local class name not in "${root}"`
  9125. );
  9126. }
  9127. node = node.nodes[0];
  9128. if (
  9129. node.type !== "pseudo" ||
  9130. node.value !== ":local" ||
  9131. node.nodes.length !== 1
  9132. ) {
  9133. throw new Error(
  9134. 'composition is only allowed when selector is single :local class name not in "' +
  9135. root +
  9136. '", "' +
  9137. node +
  9138. '" is weird'
  9139. );
  9140. }
  9141. node = node.first;
  9142. if (node.type !== "selector" || node.length !== 1) {
  9143. throw new Error(
  9144. 'composition is only allowed when selector is single :local class name not in "' +
  9145. root +
  9146. '", "' +
  9147. node +
  9148. '" is weird'
  9149. );
  9150. }
  9151. node = node.first;
  9152. if (node.type !== "class") {
  9153. // 'id' is not possible, because you can't compose ids
  9154. throw new Error(
  9155. 'composition is only allowed when selector is single :local class name not in "' +
  9156. root +
  9157. '", "' +
  9158. node +
  9159. '" is weird'
  9160. );
  9161. }
  9162. return node.value;
  9163. });
  9164. }
  9165. const whitespace = "[\\x20\\t\\r\\n\\f]";
  9166. const unescapeRegExp = new RegExp(
  9167. "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)",
  9168. "ig"
  9169. );
  9170. function unescape(str) {
  9171. return str.replace(unescapeRegExp, (_, escaped, escapedWhitespace) => {
  9172. const high = "0x" + escaped - 0x10000;
  9173. // NaN means non-codepoint
  9174. // Workaround erroneous numeric interpretation of +"0x"
  9175. return high !== high || escapedWhitespace
  9176. ? escaped
  9177. : high < 0
  9178. ? // BMP codepoint
  9179. String.fromCharCode(high + 0x10000)
  9180. : // Supplemental Plane codepoint (surrogate pair)
  9181. String.fromCharCode((high >> 10) | 0xd800, (high & 0x3ff) | 0xdc00);
  9182. });
  9183. }
  9184. const plugin = (options = {}) => {
  9185. const generateScopedName =
  9186. (options && options.generateScopedName) || plugin.generateScopedName;
  9187. const generateExportEntry =
  9188. (options && options.generateExportEntry) || plugin.generateExportEntry;
  9189. const exportGlobals = options && options.exportGlobals;
  9190. return {
  9191. postcssPlugin: "postcss-modules-scope",
  9192. Once(root, { rule }) {
  9193. const exports = Object.create(null);
  9194. function exportScopedName(name, rawName) {
  9195. const scopedName = generateScopedName(
  9196. rawName ? rawName : name,
  9197. root.source.input.from,
  9198. root.source.input.css
  9199. );
  9200. const exportEntry = generateExportEntry(
  9201. rawName ? rawName : name,
  9202. scopedName,
  9203. root.source.input.from,
  9204. root.source.input.css
  9205. );
  9206. const { key, value } = exportEntry;
  9207. exports[key] = exports[key] || [];
  9208. if (exports[key].indexOf(value) < 0) {
  9209. exports[key].push(value);
  9210. }
  9211. return scopedName;
  9212. }
  9213. function localizeNode(node) {
  9214. switch (node.type) {
  9215. case "selector":
  9216. node.nodes = node.map(localizeNode);
  9217. return node;
  9218. case "class":
  9219. return selectorParser.className({
  9220. value: exportScopedName(
  9221. node.value,
  9222. node.raws && node.raws.value ? node.raws.value : null
  9223. ),
  9224. });
  9225. case "id": {
  9226. return selectorParser.id({
  9227. value: exportScopedName(
  9228. node.value,
  9229. node.raws && node.raws.value ? node.raws.value : null
  9230. ),
  9231. });
  9232. }
  9233. }
  9234. throw new Error(
  9235. `${node.type} ("${node}") is not allowed in a :local block`
  9236. );
  9237. }
  9238. function traverseNode(node) {
  9239. switch (node.type) {
  9240. case "pseudo":
  9241. if (node.value === ":local") {
  9242. if (node.nodes.length !== 1) {
  9243. throw new Error('Unexpected comma (",") in :local block');
  9244. }
  9245. const selector = localizeNode(node.first);
  9246. // move the spaces that were around the psuedo selector to the first
  9247. // non-container node
  9248. selector.first.spaces = node.spaces;
  9249. const nextNode = node.next();
  9250. if (
  9251. nextNode &&
  9252. nextNode.type === "combinator" &&
  9253. nextNode.value === " " &&
  9254. /\\[A-F0-9]{1,6}$/.test(selector.last.value)
  9255. ) {
  9256. selector.last.spaces.after = " ";
  9257. }
  9258. node.replaceWith(selector);
  9259. return;
  9260. }
  9261. /* falls through */
  9262. case "root":
  9263. case "selector": {
  9264. node.each(traverseNode);
  9265. break;
  9266. }
  9267. case "id":
  9268. case "class":
  9269. if (exportGlobals) {
  9270. exports[node.value] = [node.value];
  9271. }
  9272. break;
  9273. }
  9274. return node;
  9275. }
  9276. // Find any :import and remember imported names
  9277. const importedNames = {};
  9278. root.walkRules(/^:import\(.+\)$/, (rule) => {
  9279. rule.walkDecls((decl) => {
  9280. importedNames[decl.prop] = true;
  9281. });
  9282. });
  9283. // Find any :local selectors
  9284. root.walkRules((rule) => {
  9285. let parsedSelector = selectorParser().astSync(rule);
  9286. rule.selector = traverseNode(parsedSelector.clone()).toString();
  9287. rule.walkDecls(/composes|compose-with/i, (decl) => {
  9288. const localNames = getSingleLocalNamesForComposes(parsedSelector);
  9289. const classes = decl.value.split(/\s+/);
  9290. classes.forEach((className) => {
  9291. const global = /^global\(([^)]+)\)$/.exec(className);
  9292. if (global) {
  9293. localNames.forEach((exportedName) => {
  9294. exports[exportedName].push(global[1]);
  9295. });
  9296. } else if (hasOwnProperty.call(importedNames, className)) {
  9297. localNames.forEach((exportedName) => {
  9298. exports[exportedName].push(className);
  9299. });
  9300. } else if (hasOwnProperty.call(exports, className)) {
  9301. localNames.forEach((exportedName) => {
  9302. exports[className].forEach((item) => {
  9303. exports[exportedName].push(item);
  9304. });
  9305. });
  9306. } else {
  9307. throw decl.error(
  9308. `referenced class name "${className}" in ${decl.prop} not found`
  9309. );
  9310. }
  9311. });
  9312. decl.remove();
  9313. });
  9314. // Find any :local values
  9315. rule.walkDecls((decl) => {
  9316. if (!/:local\s*\((.+?)\)/.test(decl.value)) {
  9317. return;
  9318. }
  9319. let tokens = decl.value.split(/(,|'[^']*'|"[^"]*")/);
  9320. tokens = tokens.map((token, idx) => {
  9321. if (idx === 0 || tokens[idx - 1] === ",") {
  9322. let result = token;
  9323. const localMatch = /:local\s*\((.+?)\)/.exec(token);
  9324. if (localMatch) {
  9325. const input = localMatch.input;
  9326. const matchPattern = localMatch[0];
  9327. const matchVal = localMatch[1];
  9328. const newVal = exportScopedName(matchVal);
  9329. result = input.replace(matchPattern, newVal);
  9330. } else {
  9331. return token;
  9332. }
  9333. return result;
  9334. } else {
  9335. return token;
  9336. }
  9337. });
  9338. decl.value = tokens.join("");
  9339. });
  9340. });
  9341. // Find any :local keyframes
  9342. root.walkAtRules(/keyframes$/i, (atRule) => {
  9343. const localMatch = /^\s*:local\s*\((.+?)\)\s*$/.exec(atRule.params);
  9344. if (!localMatch) {
  9345. return;
  9346. }
  9347. atRule.params = exportScopedName(localMatch[1]);
  9348. });
  9349. // If we found any :locals, insert an :export rule
  9350. const exportedNames = Object.keys(exports);
  9351. if (exportedNames.length > 0) {
  9352. const exportRule = rule({ selector: ":export" });
  9353. exportedNames.forEach((exportedName) =>
  9354. exportRule.append({
  9355. prop: exportedName,
  9356. value: exports[exportedName].join(" "),
  9357. raws: { before: "\n " },
  9358. })
  9359. );
  9360. root.append(exportRule);
  9361. }
  9362. },
  9363. };
  9364. };
  9365. plugin.postcss = true;
  9366. plugin.generateScopedName = function (name, path) {
  9367. const sanitisedPath = path
  9368. .replace(/\.[^./\\]+$/, "")
  9369. .replace(/[\W_]+/g, "_")
  9370. .replace(/^_|_$/g, "");
  9371. return `_${sanitisedPath}__${name}`.trim();
  9372. };
  9373. plugin.generateExportEntry = function (name, scopedName) {
  9374. return {
  9375. key: unescape(name),
  9376. value: unescape(scopedName),
  9377. };
  9378. };
  9379. var src$1 = plugin;
  9380. var src = {exports: {}};
  9381. const ICSSUtils = src$3;
  9382. const matchImports = /^(.+?|\([\s\S]+?\))\s+from\s+("[^"]*"|'[^']*'|[\w-]+)$/;
  9383. const matchValueDefinition = /(?:\s+|^)([\w-]+):?(.*?)$/;
  9384. const matchImport = /^([\w-]+)(?:\s+as\s+([\w-]+))?/;
  9385. src.exports = (options) => {
  9386. let importIndex = 0;
  9387. const createImportedName =
  9388. (options && options.createImportedName) ||
  9389. ((importName /*, path*/) =>
  9390. `i__const_${importName.replace(/\W/g, "_")}_${importIndex++}`);
  9391. return {
  9392. postcssPlugin: "postcss-modules-values",
  9393. prepare(result) {
  9394. const importAliases = [];
  9395. const definitions = {};
  9396. return {
  9397. Once(root, postcss) {
  9398. root.walkAtRules(/value/i, (atRule) => {
  9399. const matches = atRule.params.match(matchImports);
  9400. if (matches) {
  9401. let [, /*match*/ aliases, path] = matches;
  9402. // We can use constants for path names
  9403. if (definitions[path]) {
  9404. path = definitions[path];
  9405. }
  9406. const imports = aliases
  9407. .replace(/^\(\s*([\s\S]+)\s*\)$/, "$1")
  9408. .split(/\s*,\s*/)
  9409. .map((alias) => {
  9410. const tokens = matchImport.exec(alias);
  9411. if (tokens) {
  9412. const [, /*match*/ theirName, myName = theirName] = tokens;
  9413. const importedName = createImportedName(myName);
  9414. definitions[myName] = importedName;
  9415. return { theirName, importedName };
  9416. } else {
  9417. throw new Error(`@import statement "${alias}" is invalid!`);
  9418. }
  9419. });
  9420. importAliases.push({ path, imports });
  9421. atRule.remove();
  9422. return;
  9423. }
  9424. if (atRule.params.indexOf("@value") !== -1) {
  9425. result.warn("Invalid value definition: " + atRule.params);
  9426. }
  9427. let [, key, value] = `${atRule.params}${atRule.raws.between}`.match(
  9428. matchValueDefinition
  9429. );
  9430. const normalizedValue = value.replace(/\/\*((?!\*\/).*?)\*\//g, "");
  9431. if (normalizedValue.length === 0) {
  9432. result.warn("Invalid value definition: " + atRule.params);
  9433. atRule.remove();
  9434. return;
  9435. }
  9436. let isOnlySpace = /^\s+$/.test(normalizedValue);
  9437. if (!isOnlySpace) {
  9438. value = value.trim();
  9439. }
  9440. // Add to the definitions, knowing that values can refer to each other
  9441. definitions[key] = ICSSUtils.replaceValueSymbols(
  9442. value,
  9443. definitions
  9444. );
  9445. atRule.remove();
  9446. });
  9447. /* If we have no definitions, don't continue */
  9448. if (!Object.keys(definitions).length) {
  9449. return;
  9450. }
  9451. /* Perform replacements */
  9452. ICSSUtils.replaceSymbols(root, definitions);
  9453. /* We want to export anything defined by now, but don't add it to the CSS yet or it well get picked up by the replacement stuff */
  9454. const exportDeclarations = Object.keys(definitions).map((key) =>
  9455. postcss.decl({
  9456. value: definitions[key],
  9457. prop: key,
  9458. raws: { before: "\n " },
  9459. })
  9460. );
  9461. /* Add export rules if any */
  9462. if (exportDeclarations.length > 0) {
  9463. const exportRule = postcss.rule({
  9464. selector: ":export",
  9465. raws: { after: "\n" },
  9466. });
  9467. exportRule.append(exportDeclarations);
  9468. root.prepend(exportRule);
  9469. }
  9470. /* Add import rules */
  9471. importAliases.reverse().forEach(({ path, imports }) => {
  9472. const importRule = postcss.rule({
  9473. selector: `:import(${path})`,
  9474. raws: { after: "\n" },
  9475. });
  9476. imports.forEach(({ theirName, importedName }) => {
  9477. importRule.append({
  9478. value: theirName,
  9479. prop: importedName,
  9480. raws: { before: "\n " },
  9481. });
  9482. });
  9483. root.prepend(importRule);
  9484. });
  9485. },
  9486. };
  9487. },
  9488. };
  9489. };
  9490. src.exports.postcss = true;
  9491. Object.defineProperty(behaviours$1, "__esModule", {
  9492. value: true
  9493. });
  9494. behaviours$1.behaviours = undefined;
  9495. behaviours$1.getDefaultPlugins = getDefaultPlugins;
  9496. behaviours$1.isValidBehaviour = isValidBehaviour;
  9497. var _postcssModulesLocalByDefault = src$4.exports;
  9498. var _postcssModulesLocalByDefault2 = _interopRequireDefault$1(_postcssModulesLocalByDefault);
  9499. var _postcssModulesExtractImports = src$2.exports;
  9500. var _postcssModulesExtractImports2 = _interopRequireDefault$1(_postcssModulesExtractImports);
  9501. var _postcssModulesScope = src$1;
  9502. var _postcssModulesScope2 = _interopRequireDefault$1(_postcssModulesScope);
  9503. var _postcssModulesValues = src.exports;
  9504. var _postcssModulesValues2 = _interopRequireDefault$1(_postcssModulesValues);
  9505. function _interopRequireDefault$1(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  9506. const behaviours = behaviours$1.behaviours = {
  9507. LOCAL: "local",
  9508. GLOBAL: "global"
  9509. };
  9510. function getDefaultPlugins({
  9511. behaviour,
  9512. generateScopedName,
  9513. exportGlobals
  9514. }) {
  9515. const scope = (0, _postcssModulesScope2.default)({ generateScopedName, exportGlobals });
  9516. const plugins = {
  9517. [behaviours.LOCAL]: [_postcssModulesValues2.default, _postcssModulesLocalByDefault2.default, _postcssModulesExtractImports2.default, scope],
  9518. [behaviours.GLOBAL]: [_postcssModulesValues2.default, _postcssModulesExtractImports2.default, scope]
  9519. };
  9520. return plugins[behaviour];
  9521. }
  9522. function isValidBehaviour(behaviour) {
  9523. return Object.keys(behaviours).map(key => behaviours[key]).indexOf(behaviour) > -1;
  9524. }
  9525. var _postcss = require$$0__default;
  9526. var _postcss2 = _interopRequireDefault(_postcss);
  9527. var _lodash = lodash_camelcase;
  9528. var _lodash2 = _interopRequireDefault(_lodash);
  9529. var _genericNames = genericNames;
  9530. var _genericNames2 = _interopRequireDefault(_genericNames);
  9531. var _unquote = unquote$1;
  9532. var _unquote2 = _interopRequireDefault(_unquote);
  9533. var _parser = parser$1;
  9534. var _parser2 = _interopRequireDefault(_parser);
  9535. var _loader = loader;
  9536. var _loader2 = _interopRequireDefault(_loader);
  9537. var _generateScopedName = generateScopedName$1;
  9538. var _generateScopedName2 = _interopRequireDefault(_generateScopedName);
  9539. var _saveJSON = saveJSON$1;
  9540. var _saveJSON2 = _interopRequireDefault(_saveJSON);
  9541. var _behaviours = behaviours$1;
  9542. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  9543. function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
  9544. const PLUGIN_NAME = "postcss-modules";
  9545. function getDefaultScopeBehaviour(opts) {
  9546. if (opts.scopeBehaviour && (0, _behaviours.isValidBehaviour)(opts.scopeBehaviour)) {
  9547. return opts.scopeBehaviour;
  9548. }
  9549. return _behaviours.behaviours.LOCAL;
  9550. }
  9551. function getScopedNameGenerator(opts) {
  9552. const scopedNameGenerator = opts.generateScopedName || _generateScopedName2.default;
  9553. if (typeof scopedNameGenerator === "function") return scopedNameGenerator;
  9554. return (0, _genericNames2.default)(scopedNameGenerator, {
  9555. context: process.cwd(),
  9556. hashPrefix: opts.hashPrefix
  9557. });
  9558. }
  9559. function getLoader(opts, plugins) {
  9560. const root = typeof opts.root === "undefined" ? "/" : opts.root;
  9561. return typeof opts.Loader === "function" ? new opts.Loader(root, plugins) : new _loader2.default(root, plugins);
  9562. }
  9563. function isGlobalModule(globalModules, inputFile) {
  9564. return globalModules.some(regex => inputFile.match(regex));
  9565. }
  9566. function getDefaultPluginsList(opts, inputFile) {
  9567. const globalModulesList = opts.globalModulePaths || null;
  9568. const exportGlobals = opts.exportGlobals || false;
  9569. const defaultBehaviour = getDefaultScopeBehaviour(opts);
  9570. const generateScopedName = getScopedNameGenerator(opts);
  9571. if (globalModulesList && isGlobalModule(globalModulesList, inputFile)) {
  9572. return (0, _behaviours.getDefaultPlugins)({
  9573. behaviour: _behaviours.behaviours.GLOBAL,
  9574. generateScopedName,
  9575. exportGlobals
  9576. });
  9577. }
  9578. return (0, _behaviours.getDefaultPlugins)({
  9579. behaviour: defaultBehaviour,
  9580. generateScopedName,
  9581. exportGlobals
  9582. });
  9583. }
  9584. function isOurPlugin(plugin) {
  9585. return plugin.postcssPlugin === PLUGIN_NAME;
  9586. }
  9587. function dashesCamelCase(string) {
  9588. return string.replace(/-+(\w)/g, (_, firstLetter) => firstLetter.toUpperCase());
  9589. }
  9590. build$1.exports = (opts = {}) => {
  9591. return {
  9592. postcssPlugin: PLUGIN_NAME,
  9593. OnceExit(css, { result }) {
  9594. return _asyncToGenerator(function* () {
  9595. const getJSON = opts.getJSON || _saveJSON2.default;
  9596. const inputFile = css.source.input.file;
  9597. const pluginList = getDefaultPluginsList(opts, inputFile);
  9598. const resultPluginIndex = result.processor.plugins.findIndex(function (plugin) {
  9599. return isOurPlugin(plugin);
  9600. });
  9601. if (resultPluginIndex === -1) {
  9602. throw new Error('Plugin missing from options.');
  9603. }
  9604. const earlierPlugins = result.processor.plugins.slice(0, resultPluginIndex);
  9605. const loaderPlugins = [...earlierPlugins, ...pluginList];
  9606. const loader = getLoader(opts, loaderPlugins);
  9607. const fetcher = function fetcher(file, relativeTo, depTrace) {
  9608. const unquoteFile = (0, _unquote2.default)(file);
  9609. const resolvedResult = typeof opts.resolve === 'function' && opts.resolve(unquoteFile);
  9610. const resolvedFile = resolvedResult instanceof Promise ? resolvedResult : Promise.resolve(resolvedResult);
  9611. return resolvedFile.then(function (f) {
  9612. return loader.fetch.call(loader, `"${f || unquoteFile}"`, relativeTo, depTrace);
  9613. });
  9614. };
  9615. const parser = new _parser2.default(fetcher);
  9616. yield (0, _postcss2.default)([...pluginList, parser.plugin()]).process(css, {
  9617. from: inputFile
  9618. });
  9619. const out = loader.finalSource;
  9620. if (out) css.prepend(out);
  9621. if (opts.localsConvention) {
  9622. const isFunc = typeof opts.localsConvention === "function";
  9623. parser.exportTokens = Object.entries(parser.exportTokens).reduce(function (tokens, [className, value]) {
  9624. if (isFunc) {
  9625. tokens[opts.localsConvention(className, value, inputFile)] = value;
  9626. return tokens;
  9627. }
  9628. switch (opts.localsConvention) {
  9629. case "camelCase":
  9630. tokens[className] = value;
  9631. tokens[(0, _lodash2.default)(className)] = value;
  9632. break;
  9633. case "camelCaseOnly":
  9634. tokens[(0, _lodash2.default)(className)] = value;
  9635. break;
  9636. case "dashes":
  9637. tokens[className] = value;
  9638. tokens[dashesCamelCase(className)] = value;
  9639. break;
  9640. case "dashesOnly":
  9641. tokens[dashesCamelCase(className)] = value;
  9642. break;
  9643. }
  9644. return tokens;
  9645. }, {});
  9646. }
  9647. result.messages.push({
  9648. type: "export",
  9649. plugin: "postcss-modules",
  9650. exportTokens: parser.exportTokens
  9651. });
  9652. // getJSON may return a promise
  9653. return getJSON(css.source.input.file, parser.exportTokens, result.opts.to);
  9654. })();
  9655. }
  9656. };
  9657. };
  9658. var postcss = build$1.exports.postcss = true;
  9659. var build = build$1.exports;
  9660. var index = /*#__PURE__*/Object.assign(/*#__PURE__*/Object.create(null), build$1.exports, {
  9661. 'default': build,
  9662. postcss: postcss
  9663. });
  9664. exports.index = index;
  9665. //# sourceMappingURL=dep-afe9ad01.js.map