sass.dart.js 4.2 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472504735047450475504765047750478504795048050481504825048350484504855048650487504885048950490504915049250493504945049550496504975049850499505005050150502505035050450505505065050750508505095051050511505125051350514505155051650517505185051950520505215052250523505245052550526505275052850529505305053150532505335053450535505365053750538505395054050541505425054350544505455054650547505485054950550505515055250553505545055550556505575055850559505605056150562505635056450565505665056750568505695057050571505725057350574505755057650577505785057950580505815058250583505845058550586505875058850589505905059150592505935059450595505965059750598505995060050601506025060350604506055060650607506085060950610506115061250613506145061550616506175061850619506205062150622506235062450625506265062750628506295063050631506325063350634506355063650637506385063950640506415064250643506445064550646506475064850649506505065150652506535065450655506565065750658506595066050661506625066350664506655066650667506685066950670506715067250673506745067550676506775067850679506805068150682506835068450685506865068750688506895069050691506925069350694506955069650697506985069950700507015070250703507045070550706507075070850709507105071150712507135071450715507165071750718507195072050721507225072350724507255072650727507285072950730507315073250733507345073550736507375073850739507405074150742507435074450745507465074750748507495075050751507525075350754507555075650757507585075950760507615076250763507645076550766507675076850769507705077150772507735077450775507765077750778507795078050781507825078350784507855078650787507885078950790507915079250793507945079550796507975079850799508005080150802508035080450805508065080750808508095081050811508125081350814508155081650817508185081950820508215082250823508245082550826508275082850829508305083150832508335083450835508365083750838508395084050841508425084350844508455084650847508485084950850508515085250853508545085550856508575085850859508605086150862508635086450865508665086750868508695087050871508725087350874508755087650877508785087950880508815088250883508845088550886508875088850889508905089150892508935089450895508965089750898508995090050901509025090350904509055090650907509085090950910509115091250913509145091550916509175091850919509205092150922509235092450925509265092750928509295093050931509325093350934509355093650937509385093950940509415094250943509445094550946509475094850949509505095150952509535095450955509565095750958509595096050961509625096350964509655096650967509685096950970509715097250973509745097550976509775097850979509805098150982509835098450985509865098750988509895099050991509925099350994509955099650997509985099951000510015100251003510045100551006510075100851009510105101151012510135101451015510165101751018510195102051021510225102351024510255102651027510285102951030510315103251033510345103551036510375103851039510405104151042510435104451045510465104751048510495105051051510525105351054510555105651057510585105951060510615106251063510645106551066510675106851069510705107151072510735107451075510765107751078510795108051081510825108351084510855108651087510885108951090510915109251093510945109551096510975109851099511005110151102511035110451105511065110751108511095111051111511125111351114511155111651117511185111951120511215112251123511245112551126511275112851129511305113151132511335113451135511365113751138511395114051141511425114351144511455114651147511485114951150511515115251153511545115551156511575115851159511605116151162511635116451165511665116751168511695117051171511725117351174511755117651177511785117951180511815118251183511845118551186511875118851189511905119151192511935119451195511965119751198511995120051201512025120351204512055120651207512085120951210512115121251213512145121551216512175121851219512205122151222512235122451225512265122751228512295123051231512325123351234512355123651237512385123951240512415124251243512445124551246512475124851249512505125151252512535125451255512565125751258512595126051261512625126351264512655126651267512685126951270512715127251273512745127551276512775127851279512805128151282512835128451285512865128751288512895129051291512925129351294512955129651297512985129951300513015130251303513045130551306513075130851309513105131151312513135131451315513165131751318513195132051321513225132351324513255132651327513285132951330513315133251333513345133551336513375133851339513405134151342513435134451345513465134751348513495135051351513525135351354513555135651357513585135951360513615136251363513645136551366513675136851369513705137151372513735137451375513765137751378513795138051381513825138351384513855138651387513885138951390513915139251393513945139551396513975139851399514005140151402514035140451405514065140751408514095141051411514125141351414514155141651417514185141951420514215142251423514245142551426514275142851429514305143151432514335143451435514365143751438514395144051441514425144351444514455144651447514485144951450514515145251453514545145551456514575145851459514605146151462514635146451465514665146751468514695147051471514725147351474514755147651477514785147951480514815148251483514845148551486514875148851489514905149151492514935149451495514965149751498514995150051501515025150351504515055150651507515085150951510515115151251513515145151551516515175151851519515205152151522515235152451525515265152751528515295153051531515325153351534515355153651537515385153951540515415154251543515445154551546515475154851549515505155151552515535155451555515565155751558515595156051561515625156351564515655156651567515685156951570515715157251573515745157551576515775157851579515805158151582515835158451585515865158751588515895159051591515925159351594515955159651597515985159951600516015160251603516045160551606516075160851609516105161151612516135161451615516165161751618516195162051621516225162351624516255162651627516285162951630516315163251633516345163551636516375163851639516405164151642516435164451645516465164751648516495165051651516525165351654516555165651657516585165951660516615166251663516645166551666516675166851669516705167151672516735167451675516765167751678516795168051681516825168351684516855168651687516885168951690516915169251693516945169551696516975169851699517005170151702517035170451705517065170751708517095171051711517125171351714517155171651717517185171951720517215172251723517245172551726517275172851729517305173151732517335173451735517365173751738517395174051741517425174351744517455174651747517485174951750517515175251753517545175551756517575175851759517605176151762517635176451765517665176751768517695177051771517725177351774517755177651777517785177951780517815178251783517845178551786517875178851789517905179151792517935179451795517965179751798517995180051801518025180351804518055180651807518085180951810518115181251813518145181551816518175181851819518205182151822518235182451825518265182751828518295183051831518325183351834518355183651837518385183951840518415184251843518445184551846518475184851849518505185151852518535185451855518565185751858518595186051861518625186351864518655186651867518685186951870518715187251873518745187551876518775187851879518805188151882518835188451885518865188751888518895189051891518925189351894518955189651897518985189951900519015190251903519045190551906519075190851909519105191151912519135191451915519165191751918519195192051921519225192351924519255192651927519285192951930519315193251933519345193551936519375193851939519405194151942519435194451945519465194751948519495195051951519525195351954519555195651957519585195951960519615196251963519645196551966519675196851969519705197151972519735197451975519765197751978519795198051981519825198351984519855198651987519885198951990519915199251993519945199551996519975199851999520005200152002520035200452005520065200752008520095201052011520125201352014520155201652017520185201952020520215202252023520245202552026520275202852029520305203152032520335203452035520365203752038520395204052041520425204352044520455204652047520485204952050520515205252053520545205552056520575205852059520605206152062520635206452065520665206752068520695207052071520725207352074520755207652077520785207952080520815208252083520845208552086520875208852089520905209152092520935209452095520965209752098520995210052101521025210352104521055210652107521085210952110521115211252113521145211552116521175211852119521205212152122521235212452125521265212752128521295213052131521325213352134521355213652137521385213952140521415214252143521445214552146521475214852149521505215152152521535215452155521565215752158521595216052161521625216352164521655216652167521685216952170521715217252173521745217552176521775217852179521805218152182521835218452185521865218752188521895219052191521925219352194521955219652197521985219952200522015220252203522045220552206522075220852209522105221152212522135221452215522165221752218522195222052221522225222352224522255222652227522285222952230522315223252233522345223552236522375223852239522405224152242522435224452245522465224752248522495225052251522525225352254522555225652257522585225952260522615226252263522645226552266522675226852269522705227152272522735227452275522765227752278522795228052281522825228352284522855228652287522885228952290522915229252293522945229552296522975229852299523005230152302523035230452305523065230752308523095231052311523125231352314523155231652317523185231952320523215232252323523245232552326523275232852329523305233152332523335233452335523365233752338523395234052341523425234352344523455234652347523485234952350523515235252353523545235552356523575235852359523605236152362523635236452365523665236752368523695237052371523725237352374523755237652377523785237952380523815238252383523845238552386523875238852389523905239152392523935239452395523965239752398523995240052401524025240352404524055240652407524085240952410524115241252413524145241552416524175241852419524205242152422524235242452425524265242752428524295243052431524325243352434524355243652437524385243952440524415244252443524445244552446524475244852449524505245152452524535245452455524565245752458524595246052461524625246352464524655246652467524685246952470524715247252473524745247552476524775247852479524805248152482524835248452485524865248752488524895249052491524925249352494524955249652497524985249952500525015250252503525045250552506525075250852509525105251152512525135251452515525165251752518525195252052521525225252352524525255252652527525285252952530525315253252533525345253552536525375253852539525405254152542525435254452545525465254752548525495255052551525525255352554525555255652557525585255952560525615256252563525645256552566525675256852569525705257152572525735257452575525765257752578525795258052581525825258352584525855258652587525885258952590525915259252593525945259552596525975259852599526005260152602526035260452605526065260752608526095261052611526125261352614526155261652617526185261952620526215262252623526245262552626526275262852629526305263152632526335263452635526365263752638526395264052641526425264352644526455264652647526485264952650526515265252653526545265552656526575265852659526605266152662526635266452665526665266752668526695267052671526725267352674526755267652677526785267952680526815268252683526845268552686526875268852689526905269152692526935269452695526965269752698526995270052701527025270352704527055270652707527085270952710527115271252713527145271552716527175271852719527205272152722527235272452725527265272752728527295273052731527325273352734527355273652737527385273952740527415274252743527445274552746527475274852749527505275152752527535275452755527565275752758527595276052761527625276352764527655276652767527685276952770527715277252773527745277552776527775277852779527805278152782527835278452785527865278752788527895279052791527925279352794527955279652797527985279952800528015280252803528045280552806528075280852809528105281152812528135281452815528165281752818528195282052821528225282352824528255282652827528285282952830528315283252833528345283552836528375283852839528405284152842528435284452845528465284752848528495285052851528525285352854528555285652857528585285952860528615286252863528645286552866528675286852869528705287152872528735287452875528765287752878528795288052881528825288352884528855288652887528885288952890528915289252893528945289552896528975289852899529005290152902529035290452905529065290752908529095291052911529125291352914529155291652917529185291952920529215292252923529245292552926529275292852929529305293152932529335293452935529365293752938529395294052941529425294352944529455294652947529485294952950529515295252953529545295552956529575295852959529605296152962529635296452965529665296752968529695297052971529725297352974529755297652977529785297952980529815298252983529845298552986529875298852989529905299152992529935299452995529965299752998529995300053001530025300353004530055300653007530085300953010530115301253013530145301553016530175301853019530205302153022530235302453025530265302753028530295303053031530325303353034530355303653037530385303953040530415304253043530445304553046530475304853049530505305153052530535305453055530565305753058530595306053061530625306353064530655306653067530685306953070530715307253073530745307553076530775307853079530805308153082530835308453085530865308753088530895309053091530925309353094530955309653097530985309953100531015310253103531045310553106531075310853109531105311153112531135311453115531165311753118531195312053121531225312353124531255312653127531285312953130531315313253133531345313553136531375313853139531405314153142531435314453145531465314753148531495315053151531525315353154531555315653157531585315953160531615316253163531645316553166531675316853169531705317153172531735317453175531765317753178531795318053181531825318353184531855318653187531885318953190531915319253193531945319553196531975319853199532005320153202532035320453205532065320753208532095321053211532125321353214532155321653217532185321953220532215322253223532245322553226532275322853229532305323153232532335323453235532365323753238532395324053241532425324353244532455324653247532485324953250532515325253253532545325553256532575325853259532605326153262532635326453265532665326753268532695327053271532725327353274532755327653277532785327953280532815328253283532845328553286532875328853289532905329153292532935329453295532965329753298532995330053301533025330353304533055330653307533085330953310533115331253313533145331553316533175331853319533205332153322533235332453325533265332753328533295333053331533325333353334533355333653337533385333953340533415334253343533445334553346533475334853349533505335153352533535335453355533565335753358533595336053361533625336353364533655336653367533685336953370533715337253373533745337553376533775337853379533805338153382533835338453385533865338753388533895339053391533925339353394533955339653397533985339953400534015340253403534045340553406534075340853409534105341153412534135341453415534165341753418534195342053421534225342353424534255342653427534285342953430534315343253433534345343553436534375343853439534405344153442534435344453445534465344753448534495345053451534525345353454534555345653457534585345953460534615346253463534645346553466534675346853469534705347153472534735347453475534765347753478534795348053481534825348353484534855348653487534885348953490534915349253493534945349553496534975349853499535005350153502535035350453505535065350753508535095351053511535125351353514535155351653517535185351953520535215352253523535245352553526535275352853529535305353153532535335353453535535365353753538535395354053541535425354353544535455354653547535485354953550535515355253553535545355553556535575355853559535605356153562535635356453565535665356753568535695357053571535725357353574535755357653577535785357953580535815358253583535845358553586535875358853589535905359153592535935359453595535965359753598535995360053601536025360353604536055360653607536085360953610536115361253613536145361553616536175361853619536205362153622536235362453625536265362753628536295363053631536325363353634536355363653637536385363953640536415364253643536445364553646536475364853649536505365153652536535365453655536565365753658536595366053661536625366353664536655366653667536685366953670536715367253673536745367553676536775367853679536805368153682536835368453685536865368753688536895369053691536925369353694536955369653697536985369953700537015370253703537045370553706537075370853709537105371153712537135371453715537165371753718537195372053721537225372353724537255372653727537285372953730537315373253733537345373553736537375373853739537405374153742537435374453745537465374753748537495375053751537525375353754537555375653757537585375953760537615376253763537645376553766537675376853769537705377153772537735377453775537765377753778537795378053781537825378353784537855378653787537885378953790537915379253793537945379553796537975379853799538005380153802538035380453805538065380753808538095381053811538125381353814538155381653817538185381953820538215382253823538245382553826538275382853829538305383153832538335383453835538365383753838538395384053841538425384353844538455384653847538485384953850538515385253853538545385553856538575385853859538605386153862538635386453865538665386753868538695387053871538725387353874538755387653877538785387953880538815388253883538845388553886538875388853889538905389153892538935389453895538965389753898538995390053901539025390353904539055390653907539085390953910539115391253913539145391553916539175391853919539205392153922539235392453925539265392753928539295393053931539325393353934539355393653937539385393953940539415394253943539445394553946539475394853949539505395153952539535395453955539565395753958539595396053961539625396353964539655396653967539685396953970539715397253973539745397553976539775397853979539805398153982539835398453985539865398753988539895399053991539925399353994539955399653997539985399954000540015400254003540045400554006540075400854009540105401154012540135401454015540165401754018540195402054021540225402354024540255402654027540285402954030540315403254033540345403554036540375403854039540405404154042540435404454045540465404754048540495405054051540525405354054540555405654057540585405954060540615406254063540645406554066540675406854069540705407154072540735407454075540765407754078540795408054081540825408354084540855408654087540885408954090540915409254093540945409554096540975409854099541005410154102541035410454105541065410754108541095411054111541125411354114541155411654117541185411954120541215412254123541245412554126541275412854129541305413154132541335413454135541365413754138541395414054141541425414354144541455414654147541485414954150541515415254153541545415554156541575415854159541605416154162541635416454165541665416754168541695417054171541725417354174541755417654177541785417954180541815418254183541845418554186541875418854189541905419154192541935419454195541965419754198541995420054201542025420354204542055420654207542085420954210542115421254213542145421554216542175421854219542205422154222542235422454225542265422754228542295423054231542325423354234542355423654237542385423954240542415424254243542445424554246542475424854249542505425154252542535425454255542565425754258542595426054261542625426354264542655426654267542685426954270542715427254273542745427554276542775427854279542805428154282542835428454285542865428754288542895429054291542925429354294542955429654297542985429954300543015430254303543045430554306543075430854309543105431154312543135431454315543165431754318543195432054321543225432354324543255432654327543285432954330543315433254333543345433554336543375433854339543405434154342543435434454345543465434754348543495435054351543525435354354543555435654357543585435954360543615436254363543645436554366543675436854369543705437154372543735437454375543765437754378543795438054381543825438354384543855438654387543885438954390543915439254393543945439554396543975439854399544005440154402544035440454405544065440754408544095441054411544125441354414544155441654417544185441954420544215442254423544245442554426544275442854429544305443154432544335443454435544365443754438544395444054441544425444354444544455444654447544485444954450544515445254453544545445554456544575445854459544605446154462544635446454465544665446754468544695447054471544725447354474544755447654477544785447954480544815448254483544845448554486544875448854489544905449154492544935449454495544965449754498544995450054501545025450354504545055450654507545085450954510545115451254513545145451554516545175451854519545205452154522545235452454525545265452754528545295453054531545325453354534545355453654537545385453954540545415454254543545445454554546545475454854549545505455154552545535455454555545565455754558545595456054561545625456354564545655456654567545685456954570545715457254573545745457554576545775457854579545805458154582545835458454585545865458754588545895459054591545925459354594545955459654597545985459954600546015460254603546045460554606546075460854609546105461154612546135461454615546165461754618546195462054621546225462354624546255462654627546285462954630546315463254633546345463554636546375463854639546405464154642546435464454645546465464754648546495465054651546525465354654546555465654657546585465954660546615466254663546645466554666546675466854669546705467154672546735467454675546765467754678546795468054681546825468354684546855468654687546885468954690546915469254693546945469554696546975469854699547005470154702547035470454705547065470754708547095471054711547125471354714547155471654717547185471954720547215472254723547245472554726547275472854729547305473154732547335473454735547365473754738547395474054741547425474354744547455474654747547485474954750547515475254753547545475554756547575475854759547605476154762547635476454765547665476754768547695477054771547725477354774547755477654777547785477954780547815478254783547845478554786547875478854789547905479154792547935479454795547965479754798547995480054801548025480354804548055480654807548085480954810548115481254813548145481554816548175481854819548205482154822548235482454825548265482754828548295483054831548325483354834548355483654837548385483954840548415484254843548445484554846548475484854849548505485154852548535485454855548565485754858548595486054861548625486354864548655486654867548685486954870548715487254873548745487554876548775487854879548805488154882548835488454885548865488754888548895489054891548925489354894548955489654897548985489954900549015490254903549045490554906549075490854909549105491154912549135491454915549165491754918549195492054921549225492354924549255492654927549285492954930549315493254933549345493554936549375493854939549405494154942549435494454945549465494754948549495495054951549525495354954549555495654957549585495954960549615496254963549645496554966549675496854969549705497154972549735497454975549765497754978549795498054981549825498354984549855498654987549885498954990549915499254993549945499554996549975499854999550005500155002550035500455005550065500755008550095501055011550125501355014550155501655017550185501955020550215502255023550245502555026550275502855029550305503155032550335503455035550365503755038550395504055041550425504355044550455504655047550485504955050550515505255053550545505555056550575505855059550605506155062550635506455065550665506755068550695507055071550725507355074550755507655077550785507955080550815508255083550845508555086550875508855089550905509155092550935509455095550965509755098550995510055101551025510355104551055510655107551085510955110551115511255113551145511555116551175511855119551205512155122551235512455125551265512755128551295513055131551325513355134551355513655137551385513955140551415514255143551445514555146551475514855149551505515155152551535515455155551565515755158551595516055161551625516355164551655516655167551685516955170551715517255173551745517555176551775517855179551805518155182551835518455185551865518755188551895519055191551925519355194551955519655197551985519955200552015520255203552045520555206552075520855209552105521155212552135521455215552165521755218552195522055221552225522355224552255522655227552285522955230552315523255233552345523555236552375523855239552405524155242552435524455245552465524755248552495525055251552525525355254552555525655257552585525955260552615526255263552645526555266552675526855269552705527155272552735527455275552765527755278552795528055281552825528355284552855528655287552885528955290552915529255293552945529555296552975529855299553005530155302553035530455305553065530755308553095531055311553125531355314553155531655317553185531955320553215532255323553245532555326553275532855329553305533155332553335533455335553365533755338553395534055341553425534355344553455534655347553485534955350553515535255353553545535555356553575535855359553605536155362553635536455365553665536755368553695537055371553725537355374553755537655377553785537955380553815538255383553845538555386553875538855389553905539155392553935539455395553965539755398553995540055401554025540355404554055540655407554085540955410554115541255413554145541555416554175541855419554205542155422554235542455425554265542755428554295543055431554325543355434554355543655437554385543955440554415544255443554445544555446554475544855449554505545155452554535545455455554565545755458554595546055461554625546355464554655546655467554685546955470554715547255473554745547555476554775547855479554805548155482554835548455485554865548755488554895549055491554925549355494554955549655497554985549955500555015550255503555045550555506555075550855509555105551155512555135551455515555165551755518555195552055521555225552355524555255552655527555285552955530555315553255533555345553555536555375553855539555405554155542555435554455545555465554755548555495555055551555525555355554555555555655557555585555955560555615556255563555645556555566555675556855569555705557155572555735557455575555765557755578555795558055581555825558355584555855558655587555885558955590555915559255593555945559555596555975559855599556005560155602556035560455605556065560755608556095561055611556125561355614556155561655617556185561955620556215562255623556245562555626556275562855629556305563155632556335563455635556365563755638556395564055641556425564355644556455564655647556485564955650556515565255653556545565555656556575565855659556605566155662556635566455665556665566755668556695567055671556725567355674556755567655677556785567955680556815568255683556845568555686556875568855689556905569155692556935569455695556965569755698556995570055701557025570355704557055570655707557085570955710557115571255713557145571555716557175571855719557205572155722557235572455725557265572755728557295573055731557325573355734557355573655737557385573955740557415574255743557445574555746557475574855749557505575155752557535575455755557565575755758557595576055761557625576355764557655576655767557685576955770557715577255773557745577555776557775577855779557805578155782557835578455785557865578755788557895579055791557925579355794557955579655797557985579955800558015580255803558045580555806558075580855809558105581155812558135581455815558165581755818558195582055821558225582355824558255582655827558285582955830558315583255833558345583555836558375583855839558405584155842558435584455845558465584755848558495585055851558525585355854558555585655857558585585955860558615586255863558645586555866558675586855869558705587155872558735587455875558765587755878558795588055881558825588355884558855588655887558885588955890558915589255893558945589555896558975589855899559005590155902559035590455905559065590755908559095591055911559125591355914559155591655917559185591955920559215592255923559245592555926559275592855929559305593155932559335593455935559365593755938559395594055941559425594355944559455594655947559485594955950559515595255953559545595555956559575595855959559605596155962559635596455965559665596755968559695597055971559725597355974559755597655977559785597955980559815598255983559845598555986559875598855989559905599155992559935599455995559965599755998559995600056001560025600356004560055600656007560085600956010560115601256013560145601556016560175601856019560205602156022560235602456025560265602756028560295603056031560325603356034560355603656037560385603956040560415604256043560445604556046560475604856049560505605156052560535605456055560565605756058560595606056061560625606356064560655606656067560685606956070560715607256073560745607556076560775607856079560805608156082560835608456085560865608756088560895609056091560925609356094560955609656097560985609956100561015610256103561045610556106561075610856109561105611156112561135611456115561165611756118561195612056121561225612356124561255612656127561285612956130561315613256133561345613556136561375613856139561405614156142561435614456145561465614756148561495615056151561525615356154561555615656157561585615956160561615616256163561645616556166561675616856169561705617156172561735617456175561765617756178561795618056181561825618356184561855618656187561885618956190561915619256193561945619556196561975619856199562005620156202562035620456205562065620756208562095621056211562125621356214562155621656217562185621956220562215622256223562245622556226562275622856229562305623156232562335623456235562365623756238562395624056241562425624356244562455624656247562485624956250562515625256253562545625556256562575625856259562605626156262562635626456265562665626756268562695627056271562725627356274562755627656277562785627956280562815628256283562845628556286562875628856289562905629156292562935629456295562965629756298562995630056301563025630356304563055630656307563085630956310563115631256313563145631556316563175631856319563205632156322563235632456325563265632756328563295633056331563325633356334563355633656337563385633956340563415634256343563445634556346563475634856349563505635156352563535635456355563565635756358563595636056361563625636356364563655636656367563685636956370563715637256373563745637556376563775637856379563805638156382563835638456385563865638756388563895639056391563925639356394563955639656397563985639956400564015640256403564045640556406564075640856409564105641156412564135641456415564165641756418564195642056421564225642356424564255642656427564285642956430564315643256433564345643556436564375643856439564405644156442564435644456445564465644756448564495645056451564525645356454564555645656457564585645956460564615646256463564645646556466564675646856469564705647156472564735647456475564765647756478564795648056481564825648356484564855648656487564885648956490564915649256493564945649556496564975649856499565005650156502565035650456505565065650756508565095651056511565125651356514565155651656517565185651956520565215652256523565245652556526565275652856529565305653156532565335653456535565365653756538565395654056541565425654356544565455654656547565485654956550565515655256553565545655556556565575655856559565605656156562565635656456565565665656756568565695657056571565725657356574565755657656577565785657956580565815658256583565845658556586565875658856589565905659156592565935659456595565965659756598565995660056601566025660356604566055660656607566085660956610566115661256613566145661556616566175661856619566205662156622566235662456625566265662756628566295663056631566325663356634566355663656637566385663956640566415664256643566445664556646566475664856649566505665156652566535665456655566565665756658566595666056661566625666356664566655666656667566685666956670566715667256673566745667556676566775667856679566805668156682566835668456685566865668756688566895669056691566925669356694566955669656697566985669956700567015670256703567045670556706567075670856709567105671156712567135671456715567165671756718567195672056721567225672356724567255672656727567285672956730567315673256733567345673556736567375673856739567405674156742567435674456745567465674756748567495675056751567525675356754567555675656757567585675956760567615676256763567645676556766567675676856769567705677156772567735677456775567765677756778567795678056781567825678356784567855678656787567885678956790567915679256793567945679556796567975679856799568005680156802568035680456805568065680756808568095681056811568125681356814568155681656817568185681956820568215682256823568245682556826568275682856829568305683156832568335683456835568365683756838568395684056841568425684356844568455684656847568485684956850568515685256853568545685556856568575685856859568605686156862568635686456865568665686756868568695687056871568725687356874568755687656877568785687956880568815688256883568845688556886568875688856889568905689156892568935689456895568965689756898568995690056901569025690356904569055690656907569085690956910569115691256913569145691556916569175691856919569205692156922569235692456925569265692756928569295693056931569325693356934569355693656937569385693956940569415694256943569445694556946569475694856949569505695156952569535695456955569565695756958569595696056961569625696356964569655696656967569685696956970569715697256973569745697556976569775697856979569805698156982569835698456985569865698756988569895699056991569925699356994569955699656997569985699957000570015700257003570045700557006570075700857009570105701157012570135701457015570165701757018570195702057021570225702357024570255702657027570285702957030570315703257033570345703557036570375703857039570405704157042570435704457045570465704757048570495705057051570525705357054570555705657057570585705957060570615706257063570645706557066570675706857069570705707157072570735707457075570765707757078570795708057081570825708357084570855708657087570885708957090570915709257093570945709557096570975709857099571005710157102571035710457105571065710757108571095711057111571125711357114571155711657117571185711957120571215712257123571245712557126571275712857129571305713157132571335713457135571365713757138571395714057141571425714357144571455714657147571485714957150571515715257153571545715557156571575715857159571605716157162571635716457165571665716757168571695717057171571725717357174571755717657177571785717957180571815718257183571845718557186571875718857189571905719157192571935719457195571965719757198571995720057201572025720357204572055720657207572085720957210572115721257213572145721557216572175721857219572205722157222572235722457225572265722757228572295723057231572325723357234572355723657237572385723957240572415724257243572445724557246572475724857249572505725157252572535725457255572565725757258572595726057261572625726357264572655726657267572685726957270572715727257273572745727557276572775727857279572805728157282572835728457285572865728757288572895729057291572925729357294572955729657297572985729957300573015730257303573045730557306573075730857309573105731157312573135731457315573165731757318573195732057321573225732357324573255732657327573285732957330573315733257333573345733557336573375733857339573405734157342573435734457345573465734757348573495735057351573525735357354573555735657357573585735957360573615736257363573645736557366573675736857369573705737157372573735737457375573765737757378573795738057381573825738357384573855738657387573885738957390573915739257393573945739557396573975739857399574005740157402574035740457405574065740757408574095741057411574125741357414574155741657417574185741957420574215742257423574245742557426574275742857429574305743157432574335743457435574365743757438574395744057441574425744357444574455744657447574485744957450574515745257453574545745557456574575745857459574605746157462574635746457465574665746757468574695747057471574725747357474574755747657477574785747957480574815748257483574845748557486574875748857489574905749157492574935749457495574965749757498574995750057501575025750357504575055750657507575085750957510575115751257513575145751557516575175751857519575205752157522575235752457525575265752757528575295753057531575325753357534575355753657537575385753957540575415754257543575445754557546575475754857549575505755157552575535755457555575565755757558575595756057561575625756357564575655756657567575685756957570575715757257573575745757557576575775757857579575805758157582575835758457585575865758757588575895759057591575925759357594575955759657597575985759957600576015760257603576045760557606576075760857609576105761157612576135761457615576165761757618576195762057621576225762357624576255762657627576285762957630576315763257633576345763557636576375763857639576405764157642576435764457645576465764757648576495765057651576525765357654576555765657657576585765957660576615766257663576645766557666576675766857669576705767157672576735767457675576765767757678576795768057681576825768357684576855768657687576885768957690576915769257693576945769557696576975769857699577005770157702577035770457705577065770757708577095771057711577125771357714577155771657717577185771957720577215772257723577245772557726577275772857729577305773157732577335773457735577365773757738577395774057741577425774357744577455774657747577485774957750577515775257753577545775557756577575775857759577605776157762577635776457765577665776757768577695777057771577725777357774577755777657777577785777957780577815778257783577845778557786577875778857789577905779157792577935779457795577965779757798577995780057801578025780357804578055780657807578085780957810578115781257813578145781557816578175781857819578205782157822578235782457825578265782757828578295783057831578325783357834578355783657837578385783957840578415784257843578445784557846578475784857849578505785157852578535785457855578565785757858578595786057861578625786357864578655786657867578685786957870578715787257873578745787557876578775787857879578805788157882578835788457885578865788757888578895789057891578925789357894578955789657897578985789957900579015790257903579045790557906579075790857909579105791157912579135791457915579165791757918579195792057921579225792357924579255792657927579285792957930579315793257933579345793557936579375793857939579405794157942579435794457945579465794757948579495795057951579525795357954579555795657957579585795957960579615796257963579645796557966579675796857969579705797157972579735797457975579765797757978579795798057981579825798357984579855798657987579885798957990579915799257993579945799557996579975799857999580005800158002580035800458005580065800758008580095801058011580125801358014580155801658017580185801958020580215802258023580245802558026580275802858029580305803158032580335803458035580365803758038580395804058041580425804358044580455804658047580485804958050580515805258053580545805558056580575805858059580605806158062580635806458065580665806758068580695807058071580725807358074580755807658077580785807958080580815808258083580845808558086580875808858089580905809158092580935809458095580965809758098580995810058101581025810358104581055810658107581085810958110581115811258113581145811558116581175811858119581205812158122581235812458125581265812758128581295813058131581325813358134581355813658137581385813958140581415814258143581445814558146581475814858149581505815158152581535815458155581565815758158581595816058161581625816358164581655816658167581685816958170581715817258173581745817558176581775817858179581805818158182581835818458185581865818758188581895819058191581925819358194581955819658197581985819958200582015820258203582045820558206582075820858209582105821158212582135821458215582165821758218582195822058221582225822358224582255822658227582285822958230582315823258233582345823558236582375823858239582405824158242582435824458245582465824758248582495825058251582525825358254582555825658257582585825958260582615826258263582645826558266582675826858269582705827158272582735827458275582765827758278582795828058281582825828358284582855828658287582885828958290582915829258293582945829558296582975829858299583005830158302583035830458305583065830758308583095831058311583125831358314583155831658317583185831958320583215832258323583245832558326583275832858329583305833158332583335833458335583365833758338583395834058341583425834358344583455834658347583485834958350583515835258353583545835558356583575835858359583605836158362583635836458365583665836758368583695837058371583725837358374583755837658377583785837958380583815838258383583845838558386583875838858389583905839158392583935839458395583965839758398583995840058401584025840358404584055840658407584085840958410584115841258413584145841558416584175841858419584205842158422584235842458425584265842758428584295843058431584325843358434584355843658437584385843958440584415844258443584445844558446584475844858449584505845158452584535845458455584565845758458584595846058461584625846358464584655846658467584685846958470584715847258473584745847558476584775847858479584805848158482584835848458485584865848758488584895849058491584925849358494584955849658497584985849958500585015850258503585045850558506585075850858509585105851158512585135851458515585165851758518585195852058521585225852358524585255852658527585285852958530585315853258533585345853558536585375853858539585405854158542585435854458545585465854758548585495855058551585525855358554585555855658557585585855958560585615856258563585645856558566585675856858569585705857158572585735857458575585765857758578585795858058581585825858358584585855858658587585885858958590585915859258593585945859558596585975859858599586005860158602586035860458605586065860758608586095861058611586125861358614586155861658617586185861958620586215862258623586245862558626586275862858629586305863158632586335863458635586365863758638586395864058641586425864358644586455864658647586485864958650586515865258653586545865558656586575865858659586605866158662586635866458665586665866758668586695867058671586725867358674586755867658677586785867958680586815868258683586845868558686586875868858689586905869158692586935869458695586965869758698586995870058701587025870358704587055870658707587085870958710587115871258713587145871558716587175871858719587205872158722587235872458725587265872758728587295873058731587325873358734587355873658737587385873958740587415874258743587445874558746587475874858749587505875158752587535875458755587565875758758587595876058761587625876358764587655876658767587685876958770587715877258773587745877558776587775877858779587805878158782587835878458785587865878758788587895879058791587925879358794587955879658797587985879958800588015880258803588045880558806588075880858809588105881158812588135881458815588165881758818588195882058821588225882358824588255882658827588285882958830588315883258833588345883558836588375883858839588405884158842588435884458845588465884758848588495885058851588525885358854588555885658857588585885958860588615886258863588645886558866588675886858869588705887158872588735887458875588765887758878588795888058881588825888358884588855888658887588885888958890588915889258893588945889558896588975889858899589005890158902589035890458905589065890758908589095891058911589125891358914589155891658917589185891958920589215892258923589245892558926589275892858929589305893158932589335893458935589365893758938589395894058941589425894358944589455894658947589485894958950589515895258953589545895558956589575895858959589605896158962589635896458965589665896758968589695897058971589725897358974589755897658977589785897958980589815898258983589845898558986589875898858989589905899158992589935899458995589965899758998589995900059001590025900359004590055900659007590085900959010590115901259013590145901559016590175901859019590205902159022590235902459025590265902759028590295903059031590325903359034590355903659037590385903959040590415904259043590445904559046590475904859049590505905159052590535905459055590565905759058590595906059061590625906359064590655906659067590685906959070590715907259073590745907559076590775907859079590805908159082590835908459085590865908759088590895909059091590925909359094590955909659097590985909959100591015910259103591045910559106591075910859109591105911159112591135911459115591165911759118591195912059121591225912359124591255912659127591285912959130591315913259133591345913559136591375913859139591405914159142591435914459145591465914759148591495915059151591525915359154591555915659157591585915959160591615916259163591645916559166591675916859169591705917159172591735917459175591765917759178591795918059181591825918359184591855918659187591885918959190591915919259193591945919559196591975919859199592005920159202592035920459205592065920759208592095921059211592125921359214592155921659217592185921959220592215922259223592245922559226592275922859229592305923159232592335923459235592365923759238592395924059241592425924359244592455924659247592485924959250592515925259253592545925559256592575925859259592605926159262592635926459265592665926759268592695927059271592725927359274592755927659277592785927959280592815928259283592845928559286592875928859289592905929159292592935929459295592965929759298592995930059301593025930359304593055930659307593085930959310593115931259313593145931559316593175931859319593205932159322593235932459325593265932759328593295933059331593325933359334593355933659337593385933959340593415934259343593445934559346593475934859349593505935159352593535935459355593565935759358593595936059361593625936359364593655936659367593685936959370593715937259373593745937559376593775937859379593805938159382593835938459385593865938759388593895939059391593925939359394593955939659397593985939959400594015940259403594045940559406594075940859409594105941159412594135941459415594165941759418594195942059421594225942359424594255942659427594285942959430594315943259433594345943559436594375943859439594405944159442594435944459445594465944759448594495945059451594525945359454594555945659457594585945959460594615946259463594645946559466594675946859469594705947159472594735947459475594765947759478594795948059481594825948359484594855948659487594885948959490594915949259493594945949559496594975949859499595005950159502595035950459505595065950759508595095951059511595125951359514595155951659517595185951959520595215952259523595245952559526595275952859529595305953159532595335953459535595365953759538595395954059541595425954359544595455954659547595485954959550595515955259553595545955559556595575955859559595605956159562595635956459565595665956759568595695957059571595725957359574595755957659577595785957959580595815958259583595845958559586595875958859589595905959159592595935959459595595965959759598595995960059601596025960359604596055960659607596085960959610596115961259613596145961559616596175961859619596205962159622596235962459625596265962759628596295963059631596325963359634596355963659637596385963959640596415964259643596445964559646596475964859649596505965159652596535965459655596565965759658596595966059661596625966359664596655966659667596685966959670596715967259673596745967559676596775967859679596805968159682596835968459685596865968759688596895969059691596925969359694596955969659697596985969959700597015970259703597045970559706597075970859709597105971159712597135971459715597165971759718597195972059721597225972359724597255972659727597285972959730597315973259733597345973559736597375973859739597405974159742597435974459745597465974759748597495975059751597525975359754597555975659757597585975959760597615976259763597645976559766597675976859769597705977159772597735977459775597765977759778597795978059781597825978359784597855978659787597885978959790597915979259793597945979559796597975979859799598005980159802598035980459805598065980759808598095981059811598125981359814598155981659817598185981959820598215982259823598245982559826598275982859829598305983159832598335983459835598365983759838598395984059841598425984359844598455984659847598485984959850598515985259853598545985559856598575985859859598605986159862598635986459865598665986759868598695987059871598725987359874598755987659877598785987959880598815988259883598845988559886598875988859889598905989159892598935989459895598965989759898598995990059901599025990359904599055990659907599085990959910599115991259913599145991559916599175991859919599205992159922599235992459925599265992759928599295993059931599325993359934599355993659937599385993959940599415994259943599445994559946599475994859949599505995159952599535995459955599565995759958599595996059961599625996359964599655996659967599685996959970599715997259973599745997559976599775997859979599805998159982599835998459985599865998759988599895999059991599925999359994599955999659997599985999960000600016000260003600046000560006600076000860009600106001160012600136001460015600166001760018600196002060021600226002360024600256002660027600286002960030600316003260033600346003560036600376003860039600406004160042600436004460045600466004760048600496005060051600526005360054600556005660057600586005960060600616006260063600646006560066600676006860069600706007160072600736007460075600766007760078600796008060081600826008360084600856008660087600886008960090600916009260093600946009560096600976009860099601006010160102601036010460105601066010760108601096011060111601126011360114601156011660117601186011960120601216012260123601246012560126601276012860129601306013160132601336013460135601366013760138601396014060141601426014360144601456014660147601486014960150601516015260153601546015560156601576015860159601606016160162601636016460165601666016760168601696017060171601726017360174601756017660177601786017960180601816018260183601846018560186601876018860189601906019160192601936019460195601966019760198601996020060201602026020360204602056020660207602086020960210602116021260213602146021560216602176021860219602206022160222602236022460225602266022760228602296023060231602326023360234602356023660237602386023960240602416024260243602446024560246602476024860249602506025160252602536025460255602566025760258602596026060261602626026360264602656026660267602686026960270602716027260273602746027560276602776027860279602806028160282602836028460285602866028760288602896029060291602926029360294602956029660297602986029960300603016030260303603046030560306603076030860309603106031160312603136031460315603166031760318603196032060321603226032360324603256032660327603286032960330603316033260333603346033560336603376033860339603406034160342603436034460345603466034760348603496035060351603526035360354603556035660357603586035960360603616036260363603646036560366603676036860369603706037160372603736037460375603766037760378603796038060381603826038360384603856038660387603886038960390603916039260393603946039560396603976039860399604006040160402604036040460405604066040760408604096041060411604126041360414604156041660417604186041960420604216042260423604246042560426604276042860429604306043160432604336043460435604366043760438604396044060441604426044360444604456044660447604486044960450604516045260453604546045560456604576045860459604606046160462604636046460465604666046760468604696047060471604726047360474604756047660477604786047960480604816048260483604846048560486604876048860489604906049160492604936049460495604966049760498604996050060501605026050360504605056050660507605086050960510605116051260513605146051560516605176051860519605206052160522605236052460525605266052760528605296053060531605326053360534605356053660537605386053960540605416054260543605446054560546605476054860549605506055160552605536055460555605566055760558605596056060561605626056360564605656056660567605686056960570605716057260573605746057560576605776057860579605806058160582605836058460585605866058760588605896059060591605926059360594605956059660597605986059960600606016060260603606046060560606606076060860609606106061160612606136061460615606166061760618606196062060621606226062360624606256062660627606286062960630606316063260633606346063560636606376063860639606406064160642606436064460645606466064760648606496065060651606526065360654606556065660657606586065960660606616066260663606646066560666606676066860669606706067160672606736067460675606766067760678606796068060681606826068360684606856068660687606886068960690606916069260693606946069560696606976069860699607006070160702607036070460705607066070760708607096071060711607126071360714607156071660717607186071960720607216072260723607246072560726607276072860729607306073160732607336073460735607366073760738607396074060741607426074360744607456074660747607486074960750607516075260753607546075560756607576075860759607606076160762607636076460765607666076760768607696077060771607726077360774607756077660777607786077960780607816078260783607846078560786607876078860789607906079160792607936079460795607966079760798607996080060801608026080360804608056080660807608086080960810608116081260813608146081560816608176081860819608206082160822608236082460825608266082760828608296083060831608326083360834608356083660837608386083960840608416084260843608446084560846608476084860849608506085160852608536085460855608566085760858608596086060861608626086360864608656086660867608686086960870608716087260873608746087560876608776087860879608806088160882608836088460885608866088760888608896089060891608926089360894608956089660897608986089960900609016090260903609046090560906609076090860909609106091160912609136091460915609166091760918609196092060921609226092360924609256092660927609286092960930609316093260933609346093560936609376093860939609406094160942609436094460945609466094760948609496095060951609526095360954609556095660957609586095960960609616096260963609646096560966609676096860969609706097160972609736097460975609766097760978609796098060981609826098360984609856098660987609886098960990609916099260993609946099560996609976099860999610006100161002610036100461005610066100761008610096101061011610126101361014610156101661017610186101961020610216102261023610246102561026610276102861029610306103161032610336103461035610366103761038610396104061041610426104361044610456104661047610486104961050610516105261053610546105561056610576105861059610606106161062610636106461065610666106761068610696107061071610726107361074610756107661077610786107961080610816108261083610846108561086610876108861089610906109161092610936109461095610966109761098610996110061101611026110361104611056110661107611086110961110611116111261113611146111561116611176111861119611206112161122611236112461125611266112761128611296113061131611326113361134611356113661137611386113961140611416114261143611446114561146611476114861149611506115161152611536115461155611566115761158611596116061161611626116361164611656116661167611686116961170611716117261173611746117561176611776117861179611806118161182611836118461185611866118761188611896119061191611926119361194611956119661197611986119961200612016120261203612046120561206612076120861209612106121161212612136121461215612166121761218612196122061221612226122361224612256122661227612286122961230612316123261233612346123561236612376123861239612406124161242612436124461245612466124761248612496125061251612526125361254612556125661257612586125961260612616126261263612646126561266612676126861269612706127161272612736127461275612766127761278612796128061281612826128361284612856128661287612886128961290612916129261293612946129561296612976129861299613006130161302613036130461305613066130761308613096131061311613126131361314613156131661317613186131961320613216132261323613246132561326613276132861329613306133161332613336133461335613366133761338613396134061341613426134361344613456134661347613486134961350613516135261353613546135561356613576135861359613606136161362613636136461365613666136761368613696137061371613726137361374613756137661377613786137961380613816138261383613846138561386613876138861389613906139161392613936139461395613966139761398613996140061401614026140361404614056140661407614086140961410614116141261413614146141561416614176141861419614206142161422614236142461425614266142761428614296143061431614326143361434614356143661437614386143961440614416144261443614446144561446614476144861449614506145161452614536145461455614566145761458614596146061461614626146361464614656146661467614686146961470614716147261473614746147561476614776147861479614806148161482614836148461485614866148761488614896149061491614926149361494614956149661497614986149961500615016150261503615046150561506615076150861509615106151161512615136151461515615166151761518615196152061521615226152361524615256152661527615286152961530615316153261533615346153561536615376153861539615406154161542615436154461545615466154761548615496155061551615526155361554615556155661557615586155961560615616156261563615646156561566615676156861569615706157161572615736157461575615766157761578615796158061581615826158361584615856158661587615886158961590615916159261593615946159561596615976159861599616006160161602616036160461605616066160761608616096161061611616126161361614616156161661617616186161961620616216162261623616246162561626616276162861629616306163161632616336163461635616366163761638616396164061641616426164361644616456164661647616486164961650616516165261653616546165561656616576165861659616606166161662616636166461665616666166761668616696167061671616726167361674616756167661677616786167961680616816168261683616846168561686616876168861689616906169161692616936169461695616966169761698616996170061701617026170361704617056170661707617086170961710617116171261713617146171561716617176171861719617206172161722617236172461725617266172761728617296173061731617326173361734617356173661737617386173961740617416174261743617446174561746617476174861749617506175161752617536175461755617566175761758617596176061761617626176361764617656176661767617686176961770617716177261773617746177561776617776177861779617806178161782617836178461785617866178761788617896179061791617926179361794617956179661797617986179961800618016180261803618046180561806618076180861809618106181161812618136181461815618166181761818618196182061821618226182361824618256182661827618286182961830618316183261833618346183561836618376183861839618406184161842618436184461845618466184761848618496185061851618526185361854618556185661857618586185961860618616186261863618646186561866618676186861869618706187161872618736187461875618766187761878618796188061881618826188361884618856188661887618886188961890618916189261893618946189561896618976189861899619006190161902619036190461905619066190761908619096191061911619126191361914619156191661917619186191961920619216192261923619246192561926619276192861929619306193161932619336193461935619366193761938619396194061941619426194361944619456194661947619486194961950619516195261953619546195561956619576195861959619606196161962619636196461965619666196761968619696197061971619726197361974619756197661977619786197961980619816198261983619846198561986619876198861989619906199161992619936199461995619966199761998619996200062001620026200362004620056200662007620086200962010620116201262013620146201562016620176201862019620206202162022620236202462025620266202762028620296203062031620326203362034620356203662037620386203962040620416204262043620446204562046620476204862049620506205162052620536205462055620566205762058620596206062061620626206362064620656206662067620686206962070620716207262073620746207562076620776207862079620806208162082620836208462085620866208762088620896209062091620926209362094620956209662097620986209962100621016210262103621046210562106621076210862109621106211162112621136211462115621166211762118621196212062121621226212362124621256212662127621286212962130621316213262133621346213562136621376213862139621406214162142621436214462145621466214762148621496215062151621526215362154621556215662157621586215962160621616216262163621646216562166621676216862169621706217162172621736217462175621766217762178621796218062181621826218362184621856218662187621886218962190621916219262193621946219562196621976219862199622006220162202622036220462205622066220762208622096221062211622126221362214622156221662217622186221962220622216222262223622246222562226622276222862229622306223162232622336223462235622366223762238622396224062241622426224362244622456224662247622486224962250622516225262253622546225562256622576225862259622606226162262622636226462265622666226762268622696227062271622726227362274622756227662277622786227962280622816228262283622846228562286622876228862289622906229162292622936229462295622966229762298622996230062301623026230362304623056230662307623086230962310623116231262313623146231562316623176231862319623206232162322623236232462325623266232762328623296233062331623326233362334623356233662337623386233962340623416234262343623446234562346623476234862349623506235162352623536235462355623566235762358623596236062361623626236362364623656236662367623686236962370623716237262373623746237562376623776237862379623806238162382623836238462385623866238762388623896239062391623926239362394623956239662397623986239962400624016240262403624046240562406624076240862409624106241162412624136241462415624166241762418624196242062421624226242362424624256242662427624286242962430624316243262433624346243562436624376243862439624406244162442624436244462445624466244762448624496245062451624526245362454624556245662457624586245962460624616246262463624646246562466624676246862469624706247162472624736247462475624766247762478624796248062481624826248362484624856248662487624886248962490624916249262493624946249562496624976249862499625006250162502625036250462505625066250762508625096251062511625126251362514625156251662517625186251962520625216252262523625246252562526625276252862529625306253162532625336253462535625366253762538625396254062541625426254362544625456254662547625486254962550625516255262553625546255562556625576255862559625606256162562625636256462565625666256762568625696257062571625726257362574625756257662577625786257962580625816258262583625846258562586625876258862589625906259162592625936259462595625966259762598625996260062601626026260362604626056260662607626086260962610626116261262613626146261562616626176261862619626206262162622626236262462625626266262762628626296263062631626326263362634626356263662637626386263962640626416264262643626446264562646626476264862649626506265162652626536265462655626566265762658626596266062661626626266362664626656266662667626686266962670626716267262673626746267562676626776267862679626806268162682626836268462685626866268762688626896269062691626926269362694626956269662697626986269962700627016270262703627046270562706627076270862709627106271162712627136271462715627166271762718627196272062721627226272362724627256272662727627286272962730627316273262733627346273562736627376273862739627406274162742627436274462745627466274762748627496275062751627526275362754627556275662757627586275962760627616276262763627646276562766627676276862769627706277162772627736277462775627766277762778627796278062781627826278362784627856278662787627886278962790627916279262793627946279562796627976279862799628006280162802628036280462805628066280762808628096281062811628126281362814628156281662817628186281962820628216282262823628246282562826628276282862829628306283162832628336283462835628366283762838628396284062841628426284362844628456284662847628486284962850628516285262853628546285562856628576285862859628606286162862628636286462865628666286762868628696287062871628726287362874628756287662877628786287962880628816288262883628846288562886628876288862889628906289162892628936289462895628966289762898628996290062901629026290362904629056290662907629086290962910629116291262913629146291562916629176291862919629206292162922629236292462925629266292762928629296293062931629326293362934629356293662937629386293962940629416294262943629446294562946629476294862949629506295162952629536295462955629566295762958629596296062961629626296362964629656296662967629686296962970629716297262973629746297562976629776297862979629806298162982629836298462985629866298762988629896299062991629926299362994629956299662997629986299963000630016300263003630046300563006630076300863009630106301163012630136301463015630166301763018630196302063021630226302363024630256302663027630286302963030630316303263033630346303563036630376303863039630406304163042630436304463045630466304763048630496305063051630526305363054630556305663057630586305963060630616306263063630646306563066630676306863069630706307163072630736307463075630766307763078630796308063081630826308363084630856308663087630886308963090630916309263093630946309563096630976309863099631006310163102631036310463105631066310763108631096311063111631126311363114631156311663117631186311963120631216312263123631246312563126631276312863129631306313163132631336313463135631366313763138631396314063141631426314363144631456314663147631486314963150631516315263153631546315563156631576315863159631606316163162631636316463165631666316763168631696317063171631726317363174631756317663177631786317963180631816318263183631846318563186631876318863189631906319163192631936319463195631966319763198631996320063201632026320363204632056320663207632086320963210632116321263213632146321563216632176321863219632206322163222632236322463225632266322763228632296323063231632326323363234632356323663237632386323963240632416324263243632446324563246632476324863249632506325163252632536325463255632566325763258632596326063261632626326363264632656326663267632686326963270632716327263273632746327563276632776327863279632806328163282632836328463285632866328763288632896329063291632926329363294632956329663297632986329963300633016330263303633046330563306633076330863309633106331163312633136331463315633166331763318633196332063321633226332363324633256332663327633286332963330633316333263333633346333563336633376333863339633406334163342633436334463345633466334763348633496335063351633526335363354633556335663357633586335963360633616336263363633646336563366633676336863369633706337163372633736337463375633766337763378633796338063381633826338363384633856338663387633886338963390633916339263393633946339563396633976339863399634006340163402634036340463405634066340763408634096341063411634126341363414634156341663417634186341963420634216342263423634246342563426634276342863429634306343163432634336343463435634366343763438634396344063441634426344363444634456344663447634486344963450634516345263453634546345563456634576345863459634606346163462634636346463465634666346763468634696347063471634726347363474634756347663477634786347963480634816348263483634846348563486634876348863489634906349163492634936349463495634966349763498634996350063501635026350363504635056350663507635086350963510635116351263513635146351563516635176351863519635206352163522635236352463525635266352763528635296353063531635326353363534635356353663537635386353963540635416354263543635446354563546635476354863549635506355163552635536355463555635566355763558635596356063561635626356363564635656356663567635686356963570635716357263573635746357563576635776357863579635806358163582635836358463585635866358763588635896359063591635926359363594635956359663597635986359963600636016360263603636046360563606636076360863609636106361163612636136361463615636166361763618636196362063621636226362363624636256362663627636286362963630636316363263633636346363563636636376363863639636406364163642636436364463645636466364763648636496365063651636526365363654636556365663657636586365963660636616366263663636646366563666636676366863669636706367163672636736367463675636766367763678636796368063681636826368363684636856368663687636886368963690636916369263693636946369563696636976369863699637006370163702637036370463705637066370763708637096371063711637126371363714637156371663717637186371963720637216372263723637246372563726637276372863729637306373163732637336373463735637366373763738637396374063741637426374363744637456374663747637486374963750637516375263753637546375563756637576375863759637606376163762637636376463765637666376763768637696377063771637726377363774637756377663777637786377963780637816378263783637846378563786637876378863789637906379163792637936379463795637966379763798637996380063801638026380363804638056380663807638086380963810638116381263813638146381563816638176381863819638206382163822638236382463825638266382763828638296383063831638326383363834638356383663837638386383963840638416384263843638446384563846638476384863849638506385163852638536385463855638566385763858638596386063861638626386363864638656386663867638686386963870638716387263873638746387563876638776387863879638806388163882638836388463885638866388763888638896389063891638926389363894638956389663897638986389963900639016390263903639046390563906639076390863909639106391163912639136391463915639166391763918639196392063921639226392363924639256392663927639286392963930639316393263933639346393563936639376393863939639406394163942639436394463945639466394763948639496395063951639526395363954639556395663957639586395963960639616396263963639646396563966639676396863969639706397163972639736397463975639766397763978639796398063981639826398363984639856398663987639886398963990639916399263993639946399563996639976399863999640006400164002640036400464005640066400764008640096401064011640126401364014640156401664017640186401964020640216402264023640246402564026640276402864029640306403164032640336403464035640366403764038640396404064041640426404364044640456404664047640486404964050640516405264053640546405564056640576405864059640606406164062640636406464065640666406764068640696407064071640726407364074640756407664077640786407964080640816408264083640846408564086640876408864089640906409164092640936409464095640966409764098640996410064101641026410364104641056410664107641086410964110641116411264113641146411564116641176411864119641206412164122641236412464125641266412764128641296413064131641326413364134641356413664137641386413964140641416414264143641446414564146641476414864149641506415164152641536415464155641566415764158641596416064161641626416364164641656416664167641686416964170641716417264173641746417564176641776417864179641806418164182641836418464185641866418764188641896419064191641926419364194641956419664197641986419964200642016420264203642046420564206642076420864209642106421164212642136421464215642166421764218642196422064221642226422364224642256422664227642286422964230642316423264233642346423564236642376423864239642406424164242642436424464245642466424764248642496425064251642526425364254642556425664257642586425964260642616426264263642646426564266642676426864269642706427164272642736427464275642766427764278642796428064281642826428364284642856428664287642886428964290642916429264293642946429564296642976429864299643006430164302643036430464305643066430764308643096431064311643126431364314643156431664317643186431964320643216432264323643246432564326643276432864329643306433164332643336433464335643366433764338643396434064341643426434364344643456434664347643486434964350643516435264353643546435564356643576435864359643606436164362643636436464365643666436764368643696437064371643726437364374643756437664377643786437964380643816438264383643846438564386643876438864389643906439164392643936439464395643966439764398643996440064401644026440364404644056440664407644086440964410644116441264413644146441564416644176441864419644206442164422644236442464425644266442764428644296443064431644326443364434644356443664437644386443964440644416444264443644446444564446644476444864449644506445164452644536445464455644566445764458644596446064461644626446364464644656446664467644686446964470644716447264473644746447564476644776447864479644806448164482644836448464485644866448764488644896449064491644926449364494644956449664497644986449964500645016450264503645046450564506645076450864509645106451164512645136451464515645166451764518645196452064521645226452364524645256452664527645286452964530645316453264533645346453564536645376453864539645406454164542645436454464545645466454764548645496455064551645526455364554645556455664557645586455964560645616456264563645646456564566645676456864569645706457164572645736457464575645766457764578645796458064581645826458364584645856458664587645886458964590645916459264593645946459564596645976459864599646006460164602646036460464605646066460764608646096461064611646126461364614646156461664617646186461964620646216462264623646246462564626646276462864629646306463164632646336463464635646366463764638646396464064641646426464364644646456464664647646486464964650646516465264653646546465564656646576465864659646606466164662646636466464665646666466764668646696467064671646726467364674646756467664677646786467964680646816468264683646846468564686646876468864689646906469164692646936469464695646966469764698646996470064701647026470364704647056470664707647086470964710647116471264713647146471564716647176471864719647206472164722647236472464725647266472764728647296473064731647326473364734647356473664737647386473964740647416474264743647446474564746647476474864749647506475164752647536475464755647566475764758647596476064761647626476364764647656476664767647686476964770647716477264773647746477564776647776477864779647806478164782647836478464785647866478764788647896479064791647926479364794647956479664797647986479964800648016480264803648046480564806648076480864809648106481164812648136481464815648166481764818648196482064821648226482364824648256482664827648286482964830648316483264833648346483564836648376483864839648406484164842648436484464845648466484764848648496485064851648526485364854648556485664857648586485964860648616486264863648646486564866648676486864869648706487164872648736487464875648766487764878648796488064881648826488364884648856488664887648886488964890648916489264893648946489564896648976489864899649006490164902649036490464905649066490764908649096491064911649126491364914649156491664917649186491964920649216492264923649246492564926649276492864929649306493164932649336493464935649366493764938649396494064941649426494364944649456494664947649486494964950649516495264953649546495564956649576495864959649606496164962649636496464965649666496764968649696497064971649726497364974649756497664977649786497964980649816498264983649846498564986649876498864989649906499164992649936499464995649966499764998649996500065001650026500365004650056500665007650086500965010650116501265013650146501565016650176501865019650206502165022650236502465025650266502765028650296503065031650326503365034650356503665037650386503965040650416504265043650446504565046650476504865049650506505165052650536505465055650566505765058650596506065061650626506365064650656506665067650686506965070650716507265073650746507565076650776507865079650806508165082650836508465085650866508765088650896509065091650926509365094650956509665097650986509965100651016510265103651046510565106651076510865109651106511165112651136511465115651166511765118651196512065121651226512365124651256512665127651286512965130651316513265133651346513565136651376513865139651406514165142651436514465145651466514765148651496515065151651526515365154651556515665157651586515965160651616516265163651646516565166651676516865169651706517165172651736517465175651766517765178651796518065181651826518365184651856518665187651886518965190651916519265193651946519565196651976519865199652006520165202652036520465205652066520765208652096521065211652126521365214652156521665217652186521965220652216522265223652246522565226652276522865229652306523165232652336523465235652366523765238652396524065241652426524365244652456524665247652486524965250652516525265253652546525565256652576525865259652606526165262652636526465265652666526765268652696527065271652726527365274652756527665277652786527965280652816528265283652846528565286652876528865289652906529165292652936529465295652966529765298652996530065301653026530365304653056530665307653086530965310653116531265313653146531565316653176531865319653206532165322653236532465325653266532765328653296533065331653326533365334653356533665337653386533965340653416534265343653446534565346653476534865349653506535165352653536535465355653566535765358653596536065361653626536365364653656536665367653686536965370653716537265373653746537565376653776537865379653806538165382653836538465385653866538765388653896539065391653926539365394653956539665397653986539965400654016540265403654046540565406654076540865409654106541165412654136541465415654166541765418654196542065421654226542365424654256542665427654286542965430654316543265433654346543565436654376543865439654406544165442654436544465445654466544765448654496545065451654526545365454654556545665457654586545965460654616546265463654646546565466654676546865469654706547165472654736547465475654766547765478654796548065481654826548365484654856548665487654886548965490654916549265493654946549565496654976549865499655006550165502655036550465505655066550765508655096551065511655126551365514655156551665517655186551965520655216552265523655246552565526655276552865529655306553165532655336553465535655366553765538655396554065541655426554365544655456554665547655486554965550655516555265553655546555565556655576555865559655606556165562655636556465565655666556765568655696557065571655726557365574655756557665577655786557965580655816558265583655846558565586655876558865589655906559165592655936559465595655966559765598655996560065601656026560365604656056560665607656086560965610656116561265613656146561565616656176561865619656206562165622656236562465625656266562765628656296563065631656326563365634656356563665637656386563965640656416564265643656446564565646656476564865649656506565165652656536565465655656566565765658656596566065661656626566365664656656566665667656686566965670656716567265673656746567565676656776567865679656806568165682656836568465685656866568765688656896569065691656926569365694656956569665697656986569965700657016570265703657046570565706657076570865709657106571165712657136571465715657166571765718657196572065721657226572365724657256572665727657286572965730657316573265733657346573565736657376573865739657406574165742657436574465745657466574765748657496575065751657526575365754657556575665757657586575965760657616576265763657646576565766657676576865769657706577165772657736577465775657766577765778657796578065781657826578365784657856578665787657886578965790657916579265793657946579565796657976579865799658006580165802658036580465805658066580765808658096581065811658126581365814658156581665817658186581965820658216582265823658246582565826658276582865829658306583165832658336583465835658366583765838658396584065841658426584365844658456584665847658486584965850658516585265853658546585565856658576585865859658606586165862658636586465865658666586765868658696587065871658726587365874658756587665877658786587965880658816588265883658846588565886658876588865889658906589165892658936589465895658966589765898658996590065901659026590365904659056590665907659086590965910659116591265913659146591565916659176591865919659206592165922659236592465925659266592765928659296593065931659326593365934659356593665937659386593965940659416594265943659446594565946659476594865949659506595165952659536595465955659566595765958659596596065961659626596365964659656596665967659686596965970659716597265973659746597565976659776597865979659806598165982659836598465985659866598765988659896599065991659926599365994659956599665997659986599966000660016600266003660046600566006660076600866009660106601166012660136601466015660166601766018660196602066021660226602366024660256602666027660286602966030660316603266033660346603566036660376603866039660406604166042660436604466045660466604766048660496605066051660526605366054660556605666057660586605966060660616606266063660646606566066660676606866069660706607166072660736607466075660766607766078660796608066081660826608366084660856608666087660886608966090660916609266093660946609566096660976609866099661006610166102661036610466105661066610766108661096611066111661126611366114661156611666117661186611966120661216612266123661246612566126661276612866129661306613166132661336613466135661366613766138661396614066141661426614366144661456614666147661486614966150661516615266153661546615566156661576615866159661606616166162661636616466165661666616766168661696617066171661726617366174661756617666177661786617966180661816618266183661846618566186661876618866189661906619166192661936619466195661966619766198661996620066201662026620366204662056620666207662086620966210662116621266213662146621566216662176621866219662206622166222662236622466225662266622766228662296623066231662326623366234662356623666237662386623966240662416624266243662446624566246662476624866249662506625166252662536625466255662566625766258662596626066261662626626366264662656626666267662686626966270662716627266273662746627566276662776627866279662806628166282662836628466285662866628766288662896629066291662926629366294662956629666297662986629966300663016630266303663046630566306663076630866309663106631166312663136631466315663166631766318663196632066321663226632366324663256632666327663286632966330663316633266333663346633566336663376633866339663406634166342663436634466345663466634766348663496635066351663526635366354663556635666357663586635966360663616636266363663646636566366663676636866369663706637166372663736637466375663766637766378663796638066381663826638366384663856638666387663886638966390663916639266393663946639566396663976639866399664006640166402664036640466405664066640766408664096641066411664126641366414664156641666417664186641966420664216642266423664246642566426664276642866429664306643166432664336643466435664366643766438664396644066441664426644366444664456644666447664486644966450664516645266453664546645566456664576645866459664606646166462664636646466465664666646766468664696647066471664726647366474664756647666477664786647966480664816648266483664846648566486664876648866489664906649166492664936649466495664966649766498664996650066501665026650366504665056650666507665086650966510665116651266513665146651566516665176651866519665206652166522665236652466525665266652766528665296653066531665326653366534665356653666537665386653966540665416654266543665446654566546665476654866549665506655166552665536655466555665566655766558665596656066561665626656366564665656656666567665686656966570665716657266573665746657566576665776657866579665806658166582665836658466585665866658766588665896659066591665926659366594665956659666597665986659966600666016660266603666046660566606666076660866609666106661166612666136661466615666166661766618666196662066621666226662366624666256662666627666286662966630666316663266633666346663566636666376663866639666406664166642666436664466645666466664766648666496665066651666526665366654666556665666657666586665966660666616666266663666646666566666666676666866669666706667166672666736667466675666766667766678666796668066681666826668366684666856668666687666886668966690666916669266693666946669566696666976669866699667006670166702667036670466705667066670766708667096671066711667126671366714667156671666717667186671966720667216672266723667246672566726667276672866729667306673166732667336673466735667366673766738667396674066741667426674366744667456674666747667486674966750667516675266753667546675566756667576675866759667606676166762667636676466765667666676766768667696677066771667726677366774667756677666777667786677966780667816678266783667846678566786667876678866789667906679166792667936679466795667966679766798667996680066801668026680366804668056680666807668086680966810668116681266813668146681566816668176681866819668206682166822668236682466825668266682766828668296683066831668326683366834668356683666837668386683966840668416684266843668446684566846668476684866849668506685166852668536685466855668566685766858668596686066861668626686366864668656686666867668686686966870668716687266873668746687566876668776687866879668806688166882668836688466885668866688766888668896689066891668926689366894668956689666897668986689966900669016690266903669046690566906669076690866909669106691166912669136691466915669166691766918669196692066921669226692366924669256692666927669286692966930669316693266933669346693566936669376693866939669406694166942669436694466945669466694766948669496695066951669526695366954669556695666957669586695966960669616696266963669646696566966669676696866969669706697166972669736697466975669766697766978669796698066981669826698366984669856698666987669886698966990669916699266993669946699566996669976699866999670006700167002670036700467005670066700767008670096701067011670126701367014670156701667017670186701967020670216702267023670246702567026670276702867029670306703167032670336703467035670366703767038670396704067041670426704367044670456704667047670486704967050670516705267053670546705567056670576705867059670606706167062670636706467065670666706767068670696707067071670726707367074670756707667077670786707967080670816708267083670846708567086670876708867089670906709167092670936709467095670966709767098670996710067101671026710367104671056710667107671086710967110671116711267113671146711567116671176711867119671206712167122671236712467125671266712767128671296713067131671326713367134671356713667137671386713967140671416714267143671446714567146671476714867149671506715167152671536715467155671566715767158671596716067161671626716367164671656716667167671686716967170671716717267173671746717567176671776717867179671806718167182671836718467185671866718767188671896719067191671926719367194671956719667197671986719967200672016720267203672046720567206672076720867209672106721167212672136721467215672166721767218672196722067221672226722367224672256722667227672286722967230672316723267233672346723567236672376723867239672406724167242672436724467245672466724767248672496725067251672526725367254672556725667257672586725967260672616726267263672646726567266672676726867269672706727167272672736727467275672766727767278672796728067281672826728367284672856728667287672886728967290672916729267293672946729567296672976729867299673006730167302673036730467305673066730767308673096731067311673126731367314673156731667317673186731967320673216732267323673246732567326673276732867329673306733167332673336733467335673366733767338673396734067341673426734367344673456734667347673486734967350673516735267353673546735567356673576735867359673606736167362673636736467365673666736767368673696737067371673726737367374673756737667377673786737967380673816738267383673846738567386673876738867389673906739167392673936739467395673966739767398673996740067401674026740367404674056740667407674086740967410674116741267413674146741567416674176741867419674206742167422674236742467425674266742767428674296743067431674326743367434674356743667437674386743967440674416744267443674446744567446674476744867449674506745167452674536745467455674566745767458674596746067461674626746367464674656746667467674686746967470674716747267473674746747567476674776747867479674806748167482674836748467485674866748767488674896749067491674926749367494674956749667497674986749967500675016750267503675046750567506675076750867509675106751167512675136751467515675166751767518675196752067521675226752367524675256752667527675286752967530675316753267533675346753567536675376753867539675406754167542675436754467545675466754767548675496755067551675526755367554675556755667557675586755967560675616756267563675646756567566675676756867569675706757167572675736757467575675766757767578675796758067581675826758367584675856758667587675886758967590675916759267593675946759567596675976759867599676006760167602676036760467605676066760767608676096761067611676126761367614676156761667617676186761967620676216762267623676246762567626676276762867629676306763167632676336763467635676366763767638676396764067641676426764367644676456764667647676486764967650676516765267653676546765567656676576765867659676606766167662676636766467665676666766767668676696767067671676726767367674676756767667677676786767967680676816768267683676846768567686676876768867689676906769167692676936769467695676966769767698676996770067701677026770367704677056770667707677086770967710677116771267713677146771567716677176771867719677206772167722677236772467725677266772767728677296773067731677326773367734677356773667737677386773967740677416774267743677446774567746677476774867749677506775167752677536775467755677566775767758677596776067761677626776367764677656776667767677686776967770677716777267773677746777567776677776777867779677806778167782677836778467785677866778767788677896779067791677926779367794677956779667797677986779967800678016780267803678046780567806678076780867809678106781167812678136781467815678166781767818678196782067821678226782367824678256782667827678286782967830678316783267833678346783567836678376783867839678406784167842678436784467845678466784767848678496785067851678526785367854678556785667857678586785967860678616786267863678646786567866678676786867869678706787167872678736787467875678766787767878678796788067881678826788367884678856788667887678886788967890678916789267893678946789567896678976789867899679006790167902679036790467905679066790767908679096791067911679126791367914679156791667917679186791967920679216792267923679246792567926679276792867929679306793167932679336793467935679366793767938679396794067941679426794367944679456794667947679486794967950679516795267953679546795567956679576795867959679606796167962679636796467965679666796767968679696797067971679726797367974679756797667977679786797967980679816798267983679846798567986679876798867989679906799167992679936799467995679966799767998679996800068001680026800368004680056800668007680086800968010680116801268013680146801568016680176801868019680206802168022680236802468025680266802768028680296803068031680326803368034680356803668037680386803968040680416804268043680446804568046680476804868049680506805168052680536805468055680566805768058680596806068061680626806368064680656806668067680686806968070680716807268073680746807568076680776807868079680806808168082680836808468085680866808768088680896809068091680926809368094680956809668097680986809968100681016810268103681046810568106681076810868109681106811168112681136811468115681166811768118681196812068121681226812368124681256812668127681286812968130681316813268133681346813568136681376813868139681406814168142681436814468145681466814768148681496815068151681526815368154681556815668157681586815968160681616816268163681646816568166681676816868169681706817168172681736817468175681766817768178681796818068181681826818368184681856818668187681886818968190681916819268193681946819568196681976819868199682006820168202682036820468205682066820768208682096821068211682126821368214682156821668217682186821968220682216822268223682246822568226682276822868229682306823168232682336823468235682366823768238682396824068241682426824368244682456824668247682486824968250682516825268253682546825568256682576825868259682606826168262682636826468265682666826768268682696827068271682726827368274682756827668277682786827968280682816828268283682846828568286682876828868289682906829168292682936829468295682966829768298682996830068301683026830368304683056830668307683086830968310683116831268313683146831568316683176831868319683206832168322683236832468325683266832768328683296833068331683326833368334683356833668337683386833968340683416834268343683446834568346683476834868349683506835168352683536835468355683566835768358683596836068361683626836368364683656836668367683686836968370683716837268373683746837568376683776837868379683806838168382683836838468385683866838768388683896839068391683926839368394683956839668397683986839968400684016840268403684046840568406684076840868409684106841168412684136841468415684166841768418684196842068421684226842368424684256842668427684286842968430684316843268433684346843568436684376843868439684406844168442684436844468445684466844768448684496845068451684526845368454684556845668457684586845968460684616846268463684646846568466684676846868469684706847168472684736847468475684766847768478684796848068481684826848368484684856848668487684886848968490684916849268493684946849568496684976849868499685006850168502685036850468505685066850768508685096851068511685126851368514685156851668517685186851968520685216852268523685246852568526685276852868529685306853168532685336853468535685366853768538685396854068541685426854368544685456854668547685486854968550685516855268553685546855568556685576855868559685606856168562685636856468565685666856768568685696857068571685726857368574685756857668577685786857968580685816858268583685846858568586685876858868589685906859168592685936859468595685966859768598685996860068601686026860368604686056860668607686086860968610686116861268613686146861568616686176861868619686206862168622686236862468625686266862768628686296863068631686326863368634686356863668637686386863968640686416864268643686446864568646686476864868649686506865168652686536865468655686566865768658686596866068661686626866368664686656866668667686686866968670686716867268673686746867568676686776867868679686806868168682686836868468685686866868768688686896869068691686926869368694686956869668697686986869968700687016870268703687046870568706687076870868709687106871168712687136871468715687166871768718687196872068721687226872368724687256872668727687286872968730687316873268733687346873568736687376873868739687406874168742687436874468745687466874768748687496875068751687526875368754687556875668757687586875968760687616876268763687646876568766687676876868769687706877168772687736877468775687766877768778687796878068781687826878368784687856878668787687886878968790687916879268793687946879568796687976879868799688006880168802688036880468805688066880768808688096881068811688126881368814688156881668817688186881968820688216882268823688246882568826688276882868829688306883168832688336883468835688366883768838688396884068841688426884368844688456884668847688486884968850688516885268853688546885568856688576885868859688606886168862688636886468865688666886768868688696887068871688726887368874688756887668877688786887968880688816888268883688846888568886688876888868889688906889168892688936889468895688966889768898688996890068901689026890368904689056890668907689086890968910689116891268913689146891568916689176891868919689206892168922689236892468925689266892768928689296893068931689326893368934689356893668937689386893968940689416894268943689446894568946689476894868949689506895168952689536895468955689566895768958689596896068961689626896368964689656896668967689686896968970689716897268973689746897568976689776897868979689806898168982689836898468985689866898768988689896899068991689926899368994689956899668997689986899969000690016900269003690046900569006690076900869009690106901169012690136901469015690166901769018690196902069021690226902369024690256902669027690286902969030690316903269033690346903569036690376903869039690406904169042690436904469045690466904769048690496905069051690526905369054690556905669057690586905969060690616906269063690646906569066690676906869069690706907169072690736907469075690766907769078690796908069081690826908369084690856908669087690886908969090690916909269093690946909569096690976909869099691006910169102691036910469105691066910769108691096911069111691126911369114691156911669117691186911969120691216912269123691246912569126691276912869129691306913169132691336913469135691366913769138691396914069141691426914369144691456914669147691486914969150691516915269153691546915569156691576915869159691606916169162691636916469165691666916769168691696917069171691726917369174691756917669177691786917969180691816918269183691846918569186691876918869189691906919169192691936919469195691966919769198691996920069201692026920369204692056920669207692086920969210692116921269213692146921569216692176921869219692206922169222692236922469225692266922769228692296923069231692326923369234692356923669237692386923969240692416924269243692446924569246692476924869249692506925169252692536925469255692566925769258692596926069261692626926369264692656926669267692686926969270692716927269273692746927569276692776927869279692806928169282692836928469285692866928769288692896929069291692926929369294692956929669297692986929969300693016930269303693046930569306693076930869309693106931169312693136931469315693166931769318693196932069321693226932369324693256932669327693286932969330693316933269333693346933569336693376933869339693406934169342693436934469345693466934769348693496935069351693526935369354693556935669357693586935969360693616936269363693646936569366693676936869369693706937169372693736937469375693766937769378693796938069381693826938369384693856938669387693886938969390693916939269393693946939569396693976939869399694006940169402694036940469405694066940769408694096941069411694126941369414694156941669417694186941969420694216942269423694246942569426694276942869429694306943169432694336943469435694366943769438694396944069441694426944369444694456944669447694486944969450694516945269453694546945569456694576945869459694606946169462694636946469465694666946769468694696947069471694726947369474694756947669477694786947969480694816948269483694846948569486694876948869489694906949169492694936949469495694966949769498694996950069501695026950369504695056950669507695086950969510695116951269513695146951569516695176951869519695206952169522695236952469525695266952769528695296953069531695326953369534695356953669537695386953969540695416954269543695446954569546695476954869549695506955169552695536955469555695566955769558695596956069561695626956369564695656956669567695686956969570695716957269573695746957569576695776957869579695806958169582695836958469585695866958769588695896959069591695926959369594695956959669597695986959969600696016960269603696046960569606696076960869609696106961169612696136961469615696166961769618696196962069621696226962369624696256962669627696286962969630696316963269633696346963569636696376963869639696406964169642696436964469645696466964769648696496965069651696526965369654696556965669657696586965969660696616966269663696646966569666696676966869669696706967169672696736967469675696766967769678696796968069681696826968369684696856968669687696886968969690696916969269693696946969569696696976969869699697006970169702697036970469705697066970769708697096971069711697126971369714697156971669717697186971969720697216972269723697246972569726697276972869729697306973169732697336973469735697366973769738697396974069741697426974369744697456974669747697486974969750697516975269753697546975569756697576975869759697606976169762697636976469765697666976769768697696977069771697726977369774697756977669777697786977969780697816978269783697846978569786697876978869789697906979169792697936979469795697966979769798697996980069801698026980369804698056980669807698086980969810698116981269813698146981569816698176981869819698206982169822698236982469825698266982769828698296983069831698326983369834698356983669837698386983969840698416984269843698446984569846698476984869849698506985169852698536985469855698566985769858698596986069861698626986369864698656986669867698686986969870698716987269873698746987569876698776987869879698806988169882698836988469885698866988769888698896989069891698926989369894698956989669897698986989969900699016990269903699046990569906699076990869909699106991169912699136991469915699166991769918699196992069921699226992369924699256992669927699286992969930699316993269933699346993569936699376993869939699406994169942699436994469945699466994769948699496995069951699526995369954699556995669957699586995969960699616996269963699646996569966699676996869969699706997169972699736997469975699766997769978699796998069981699826998369984699856998669987699886998969990699916999269993699946999569996699976999869999700007000170002700037000470005700067000770008700097001070011700127001370014700157001670017700187001970020700217002270023700247002570026700277002870029700307003170032700337003470035700367003770038700397004070041700427004370044700457004670047700487004970050700517005270053700547005570056700577005870059700607006170062700637006470065700667006770068700697007070071700727007370074700757007670077700787007970080700817008270083700847008570086700877008870089700907009170092700937009470095700967009770098700997010070101701027010370104701057010670107701087010970110701117011270113701147011570116701177011870119701207012170122701237012470125701267012770128701297013070131701327013370134701357013670137701387013970140701417014270143701447014570146701477014870149701507015170152701537015470155701567015770158701597016070161701627016370164701657016670167701687016970170701717017270173701747017570176701777017870179701807018170182701837018470185701867018770188701897019070191701927019370194701957019670197701987019970200702017020270203702047020570206702077020870209702107021170212702137021470215702167021770218702197022070221702227022370224702257022670227702287022970230702317023270233702347023570236702377023870239702407024170242702437024470245702467024770248702497025070251702527025370254702557025670257702587025970260702617026270263702647026570266702677026870269702707027170272702737027470275702767027770278702797028070281702827028370284702857028670287702887028970290702917029270293702947029570296702977029870299703007030170302703037030470305703067030770308703097031070311703127031370314703157031670317703187031970320703217032270323703247032570326703277032870329703307033170332703337033470335703367033770338703397034070341703427034370344703457034670347703487034970350703517035270353703547035570356703577035870359703607036170362703637036470365703667036770368703697037070371703727037370374703757037670377703787037970380703817038270383703847038570386703877038870389703907039170392703937039470395703967039770398703997040070401704027040370404704057040670407704087040970410704117041270413704147041570416704177041870419704207042170422704237042470425704267042770428704297043070431704327043370434704357043670437704387043970440704417044270443704447044570446704477044870449704507045170452704537045470455704567045770458704597046070461704627046370464704657046670467704687046970470704717047270473704747047570476704777047870479704807048170482704837048470485704867048770488704897049070491704927049370494704957049670497704987049970500705017050270503705047050570506705077050870509705107051170512705137051470515705167051770518705197052070521705227052370524705257052670527705287052970530705317053270533705347053570536705377053870539705407054170542705437054470545705467054770548705497055070551705527055370554705557055670557705587055970560705617056270563705647056570566705677056870569705707057170572705737057470575705767057770578705797058070581705827058370584705857058670587705887058970590705917059270593705947059570596705977059870599706007060170602706037060470605706067060770608706097061070611706127061370614706157061670617706187061970620706217062270623706247062570626706277062870629706307063170632706337063470635706367063770638706397064070641706427064370644706457064670647706487064970650706517065270653706547065570656706577065870659706607066170662706637066470665706667066770668706697067070671706727067370674706757067670677706787067970680706817068270683706847068570686706877068870689706907069170692706937069470695706967069770698706997070070701707027070370704707057070670707707087070970710707117071270713707147071570716707177071870719707207072170722707237072470725707267072770728707297073070731707327073370734707357073670737707387073970740707417074270743707447074570746707477074870749707507075170752707537075470755707567075770758707597076070761707627076370764707657076670767707687076970770707717077270773707747077570776707777077870779707807078170782707837078470785707867078770788707897079070791707927079370794707957079670797707987079970800708017080270803708047080570806708077080870809708107081170812708137081470815708167081770818708197082070821708227082370824708257082670827708287082970830708317083270833708347083570836708377083870839708407084170842708437084470845708467084770848708497085070851708527085370854708557085670857708587085970860708617086270863708647086570866708677086870869708707087170872708737087470875708767087770878708797088070881708827088370884708857088670887708887088970890708917089270893708947089570896708977089870899709007090170902709037090470905709067090770908709097091070911709127091370914709157091670917709187091970920709217092270923709247092570926709277092870929709307093170932709337093470935709367093770938709397094070941709427094370944709457094670947709487094970950709517095270953709547095570956709577095870959709607096170962709637096470965709667096770968709697097070971709727097370974709757097670977709787097970980709817098270983709847098570986709877098870989709907099170992709937099470995709967099770998709997100071001710027100371004710057100671007710087100971010710117101271013710147101571016710177101871019710207102171022710237102471025710267102771028710297103071031710327103371034710357103671037710387103971040710417104271043710447104571046710477104871049710507105171052710537105471055710567105771058710597106071061710627106371064710657106671067710687106971070710717107271073710747107571076710777107871079710807108171082710837108471085710867108771088710897109071091710927109371094710957109671097710987109971100711017110271103711047110571106711077110871109711107111171112711137111471115711167111771118711197112071121711227112371124711257112671127711287112971130711317113271133711347113571136711377113871139711407114171142711437114471145711467114771148711497115071151711527115371154711557115671157711587115971160711617116271163711647116571166711677116871169711707117171172711737117471175711767117771178711797118071181711827118371184711857118671187711887118971190711917119271193711947119571196711977119871199712007120171202712037120471205712067120771208712097121071211712127121371214712157121671217712187121971220712217122271223712247122571226712277122871229712307123171232712337123471235712367123771238712397124071241712427124371244712457124671247712487124971250712517125271253712547125571256712577125871259712607126171262712637126471265712667126771268712697127071271712727127371274712757127671277712787127971280712817128271283712847128571286712877128871289712907129171292712937129471295712967129771298712997130071301713027130371304713057130671307713087130971310713117131271313713147131571316713177131871319713207132171322713237132471325713267132771328713297133071331713327133371334713357133671337713387133971340713417134271343713447134571346713477134871349713507135171352713537135471355713567135771358713597136071361713627136371364713657136671367713687136971370713717137271373713747137571376713777137871379713807138171382713837138471385713867138771388713897139071391713927139371394713957139671397713987139971400714017140271403714047140571406714077140871409714107141171412714137141471415714167141771418714197142071421714227142371424714257142671427714287142971430714317143271433714347143571436714377143871439714407144171442714437144471445714467144771448714497145071451714527145371454714557145671457714587145971460714617146271463714647146571466714677146871469714707147171472714737147471475714767147771478714797148071481714827148371484714857148671487714887148971490714917149271493714947149571496714977149871499715007150171502715037150471505715067150771508715097151071511715127151371514715157151671517715187151971520715217152271523715247152571526715277152871529715307153171532715337153471535715367153771538715397154071541715427154371544715457154671547715487154971550715517155271553715547155571556715577155871559715607156171562715637156471565715667156771568715697157071571715727157371574715757157671577715787157971580715817158271583715847158571586715877158871589715907159171592715937159471595715967159771598715997160071601716027160371604716057160671607716087160971610716117161271613716147161571616716177161871619716207162171622716237162471625716267162771628716297163071631716327163371634716357163671637716387163971640716417164271643716447164571646716477164871649716507165171652716537165471655716567165771658716597166071661716627166371664716657166671667716687166971670716717167271673716747167571676716777167871679716807168171682716837168471685716867168771688716897169071691716927169371694716957169671697716987169971700717017170271703717047170571706717077170871709717107171171712717137171471715717167171771718717197172071721717227172371724717257172671727717287172971730717317173271733717347173571736717377173871739717407174171742717437174471745717467174771748717497175071751717527175371754717557175671757717587175971760717617176271763717647176571766717677176871769717707177171772717737177471775717767177771778717797178071781717827178371784717857178671787717887178971790717917179271793717947179571796717977179871799718007180171802718037180471805718067180771808718097181071811718127181371814718157181671817718187181971820718217182271823718247182571826718277182871829718307183171832718337183471835718367183771838718397184071841718427184371844718457184671847718487184971850718517185271853718547185571856718577185871859718607186171862718637186471865718667186771868718697187071871718727187371874718757187671877718787187971880718817188271883718847188571886718877188871889718907189171892718937189471895718967189771898718997190071901719027190371904719057190671907719087190971910719117191271913719147191571916719177191871919719207192171922719237192471925719267192771928719297193071931719327193371934719357193671937719387193971940719417194271943719447194571946719477194871949719507195171952719537195471955719567195771958719597196071961719627196371964719657196671967719687196971970719717197271973719747197571976719777197871979719807198171982719837198471985719867198771988719897199071991719927199371994719957199671997719987199972000720017200272003720047200572006720077200872009720107201172012720137201472015720167201772018720197202072021720227202372024720257202672027720287202972030720317203272033720347203572036720377203872039720407204172042720437204472045720467204772048720497205072051720527205372054720557205672057720587205972060720617206272063720647206572066720677206872069720707207172072720737207472075720767207772078720797208072081720827208372084720857208672087720887208972090720917209272093720947209572096720977209872099721007210172102721037210472105721067210772108721097211072111721127211372114721157211672117721187211972120721217212272123721247212572126721277212872129721307213172132721337213472135721367213772138721397214072141721427214372144721457214672147721487214972150721517215272153721547215572156721577215872159721607216172162721637216472165721667216772168721697217072171721727217372174721757217672177721787217972180721817218272183721847218572186721877218872189721907219172192721937219472195721967219772198721997220072201722027220372204722057220672207722087220972210722117221272213722147221572216722177221872219722207222172222722237222472225722267222772228722297223072231722327223372234722357223672237722387223972240722417224272243722447224572246722477224872249722507225172252722537225472255722567225772258722597226072261722627226372264722657226672267722687226972270722717227272273722747227572276722777227872279722807228172282722837228472285722867228772288722897229072291722927229372294722957229672297722987229972300723017230272303723047230572306723077230872309723107231172312723137231472315723167231772318723197232072321723227232372324723257232672327723287232972330723317233272333723347233572336723377233872339723407234172342723437234472345723467234772348723497235072351723527235372354723557235672357723587235972360723617236272363723647236572366723677236872369723707237172372723737237472375723767237772378723797238072381723827238372384723857238672387723887238972390723917239272393723947239572396723977239872399724007240172402724037240472405724067240772408724097241072411724127241372414724157241672417724187241972420724217242272423724247242572426724277242872429724307243172432724337243472435724367243772438724397244072441724427244372444724457244672447724487244972450724517245272453724547245572456724577245872459724607246172462724637246472465724667246772468724697247072471724727247372474724757247672477724787247972480724817248272483724847248572486724877248872489724907249172492724937249472495724967249772498724997250072501725027250372504725057250672507725087250972510725117251272513725147251572516725177251872519725207252172522725237252472525725267252772528725297253072531725327253372534725357253672537725387253972540725417254272543725447254572546725477254872549725507255172552725537255472555725567255772558725597256072561725627256372564725657256672567725687256972570725717257272573725747257572576725777257872579725807258172582725837258472585725867258772588725897259072591725927259372594725957259672597725987259972600726017260272603726047260572606726077260872609726107261172612726137261472615726167261772618726197262072621726227262372624726257262672627726287262972630726317263272633726347263572636726377263872639726407264172642726437264472645726467264772648726497265072651726527265372654726557265672657726587265972660726617266272663726647266572666726677266872669726707267172672726737267472675726767267772678726797268072681726827268372684726857268672687726887268972690726917269272693726947269572696726977269872699727007270172702727037270472705727067270772708727097271072711727127271372714727157271672717727187271972720727217272272723727247272572726727277272872729727307273172732727337273472735727367273772738727397274072741727427274372744727457274672747727487274972750727517275272753727547275572756727577275872759727607276172762727637276472765727667276772768727697277072771727727277372774727757277672777727787277972780727817278272783727847278572786727877278872789727907279172792727937279472795727967279772798727997280072801728027280372804728057280672807728087280972810728117281272813728147281572816728177281872819728207282172822728237282472825728267282772828728297283072831728327283372834728357283672837728387283972840728417284272843728447284572846728477284872849728507285172852728537285472855728567285772858728597286072861728627286372864728657286672867728687286972870728717287272873728747287572876728777287872879728807288172882728837288472885728867288772888728897289072891728927289372894728957289672897728987289972900729017290272903729047290572906729077290872909729107291172912729137291472915729167291772918729197292072921729227292372924729257292672927729287292972930729317293272933729347293572936729377293872939729407294172942729437294472945729467294772948729497295072951729527295372954729557295672957729587295972960729617296272963729647296572966729677296872969729707297172972729737297472975729767297772978729797298072981729827298372984729857298672987729887298972990729917299272993729947299572996729977299872999730007300173002730037300473005730067300773008730097301073011730127301373014730157301673017730187301973020730217302273023730247302573026730277302873029730307303173032730337303473035730367303773038730397304073041730427304373044730457304673047730487304973050730517305273053730547305573056730577305873059730607306173062730637306473065730667306773068730697307073071730727307373074730757307673077730787307973080730817308273083730847308573086730877308873089730907309173092730937309473095730967309773098730997310073101731027310373104731057310673107731087310973110731117311273113731147311573116731177311873119731207312173122731237312473125731267312773128731297313073131731327313373134731357313673137731387313973140731417314273143731447314573146731477314873149731507315173152731537315473155731567315773158731597316073161731627316373164731657316673167731687316973170731717317273173731747317573176731777317873179731807318173182731837318473185731867318773188731897319073191731927319373194731957319673197731987319973200732017320273203732047320573206732077320873209732107321173212732137321473215732167321773218732197322073221732227322373224732257322673227732287322973230732317323273233732347323573236732377323873239732407324173242732437324473245732467324773248732497325073251732527325373254732557325673257732587325973260732617326273263732647326573266732677326873269732707327173272732737327473275732767327773278732797328073281732827328373284732857328673287732887328973290732917329273293732947329573296732977329873299733007330173302733037330473305733067330773308733097331073311733127331373314733157331673317733187331973320733217332273323733247332573326733277332873329733307333173332733337333473335733367333773338733397334073341733427334373344733457334673347733487334973350733517335273353733547335573356733577335873359733607336173362733637336473365733667336773368733697337073371733727337373374733757337673377733787337973380733817338273383733847338573386733877338873389733907339173392733937339473395733967339773398733997340073401734027340373404734057340673407734087340973410734117341273413734147341573416734177341873419734207342173422734237342473425734267342773428734297343073431734327343373434734357343673437734387343973440734417344273443734447344573446734477344873449734507345173452734537345473455734567345773458734597346073461734627346373464734657346673467734687346973470734717347273473734747347573476734777347873479734807348173482734837348473485734867348773488734897349073491734927349373494734957349673497734987349973500735017350273503735047350573506735077350873509735107351173512735137351473515735167351773518735197352073521735227352373524735257352673527735287352973530735317353273533735347353573536735377353873539735407354173542735437354473545735467354773548735497355073551735527355373554735557355673557735587355973560735617356273563735647356573566735677356873569735707357173572735737357473575735767357773578735797358073581735827358373584735857358673587735887358973590735917359273593735947359573596735977359873599736007360173602736037360473605736067360773608736097361073611736127361373614736157361673617736187361973620736217362273623736247362573626736277362873629736307363173632736337363473635736367363773638736397364073641736427364373644736457364673647736487364973650736517365273653736547365573656736577365873659736607366173662736637366473665736667366773668736697367073671736727367373674736757367673677736787367973680736817368273683736847368573686736877368873689736907369173692736937369473695736967369773698736997370073701737027370373704737057370673707737087370973710737117371273713737147371573716737177371873719737207372173722737237372473725737267372773728737297373073731737327373373734737357373673737737387373973740737417374273743737447374573746737477374873749737507375173752737537375473755737567375773758737597376073761737627376373764737657376673767737687376973770737717377273773737747377573776737777377873779737807378173782737837378473785737867378773788737897379073791737927379373794737957379673797737987379973800738017380273803738047380573806738077380873809738107381173812738137381473815738167381773818738197382073821738227382373824738257382673827738287382973830738317383273833738347383573836738377383873839738407384173842738437384473845738467384773848738497385073851738527385373854738557385673857738587385973860738617386273863738647386573866738677386873869738707387173872738737387473875738767387773878738797388073881738827388373884738857388673887738887388973890738917389273893738947389573896738977389873899739007390173902739037390473905739067390773908739097391073911739127391373914739157391673917739187391973920739217392273923739247392573926739277392873929739307393173932739337393473935739367393773938739397394073941739427394373944739457394673947739487394973950739517395273953739547395573956739577395873959739607396173962739637396473965739667396773968739697397073971739727397373974739757397673977739787397973980739817398273983739847398573986739877398873989739907399173992739937399473995739967399773998739997400074001740027400374004740057400674007740087400974010740117401274013740147401574016740177401874019740207402174022740237402474025740267402774028740297403074031740327403374034740357403674037740387403974040740417404274043740447404574046740477404874049740507405174052740537405474055740567405774058740597406074061740627406374064740657406674067740687406974070740717407274073740747407574076740777407874079740807408174082740837408474085740867408774088740897409074091740927409374094740957409674097740987409974100741017410274103741047410574106741077410874109741107411174112741137411474115741167411774118741197412074121741227412374124741257412674127741287412974130741317413274133741347413574136741377413874139741407414174142741437414474145741467414774148741497415074151741527415374154741557415674157741587415974160741617416274163741647416574166741677416874169741707417174172741737417474175741767417774178741797418074181741827418374184741857418674187741887418974190741917419274193741947419574196741977419874199742007420174202742037420474205742067420774208742097421074211742127421374214742157421674217742187421974220742217422274223742247422574226742277422874229742307423174232742337423474235742367423774238742397424074241742427424374244742457424674247742487424974250742517425274253742547425574256742577425874259742607426174262742637426474265742667426774268742697427074271742727427374274742757427674277742787427974280742817428274283742847428574286742877428874289742907429174292742937429474295742967429774298742997430074301743027430374304743057430674307743087430974310743117431274313743147431574316743177431874319743207432174322743237432474325743267432774328743297433074331743327433374334743357433674337743387433974340743417434274343743447434574346743477434874349743507435174352743537435474355743567435774358743597436074361743627436374364743657436674367743687436974370743717437274373743747437574376743777437874379743807438174382743837438474385743867438774388743897439074391743927439374394743957439674397743987439974400744017440274403744047440574406744077440874409744107441174412744137441474415744167441774418744197442074421744227442374424744257442674427744287442974430744317443274433744347443574436744377443874439744407444174442744437444474445744467444774448744497445074451744527445374454744557445674457744587445974460744617446274463744647446574466744677446874469744707447174472744737447474475744767447774478744797448074481744827448374484744857448674487744887448974490744917449274493744947449574496744977449874499745007450174502745037450474505745067450774508745097451074511745127451374514745157451674517745187451974520745217452274523745247452574526745277452874529745307453174532745337453474535745367453774538745397454074541745427454374544745457454674547745487454974550745517455274553745547455574556745577455874559745607456174562745637456474565745667456774568745697457074571745727457374574745757457674577745787457974580745817458274583745847458574586745877458874589745907459174592745937459474595745967459774598745997460074601746027460374604746057460674607746087460974610746117461274613746147461574616746177461874619746207462174622746237462474625746267462774628746297463074631746327463374634746357463674637746387463974640746417464274643746447464574646746477464874649746507465174652746537465474655746567465774658746597466074661746627466374664746657466674667746687466974670746717467274673746747467574676746777467874679746807468174682746837468474685746867468774688746897469074691746927469374694746957469674697746987469974700747017470274703747047470574706747077470874709747107471174712747137471474715747167471774718747197472074721747227472374724747257472674727747287472974730747317473274733747347473574736747377473874739747407474174742747437474474745747467474774748747497475074751747527475374754747557475674757747587475974760747617476274763747647476574766747677476874769747707477174772747737477474775747767477774778747797478074781747827478374784747857478674787747887478974790747917479274793747947479574796747977479874799748007480174802748037480474805748067480774808748097481074811748127481374814748157481674817748187481974820748217482274823748247482574826748277482874829748307483174832748337483474835748367483774838748397484074841748427484374844748457484674847748487484974850748517485274853748547485574856748577485874859748607486174862748637486474865748667486774868748697487074871748727487374874748757487674877748787487974880748817488274883748847488574886748877488874889748907489174892748937489474895748967489774898748997490074901749027490374904749057490674907749087490974910749117491274913749147491574916749177491874919749207492174922749237492474925749267492774928749297493074931749327493374934749357493674937749387493974940749417494274943749447494574946749477494874949749507495174952749537495474955749567495774958749597496074961749627496374964749657496674967749687496974970749717497274973749747497574976749777497874979749807498174982749837498474985749867498774988749897499074991749927499374994749957499674997749987499975000750017500275003750047500575006750077500875009750107501175012750137501475015750167501775018750197502075021750227502375024750257502675027750287502975030750317503275033750347503575036750377503875039750407504175042750437504475045750467504775048750497505075051750527505375054750557505675057750587505975060750617506275063750647506575066750677506875069750707507175072750737507475075750767507775078750797508075081750827508375084750857508675087750887508975090750917509275093750947509575096750977509875099751007510175102751037510475105751067510775108751097511075111751127511375114751157511675117751187511975120751217512275123751247512575126751277512875129751307513175132751337513475135751367513775138751397514075141751427514375144751457514675147751487514975150751517515275153751547515575156751577515875159751607516175162751637516475165751667516775168751697517075171751727517375174751757517675177751787517975180751817518275183751847518575186751877518875189751907519175192751937519475195751967519775198751997520075201752027520375204752057520675207752087520975210752117521275213752147521575216752177521875219752207522175222752237522475225752267522775228752297523075231752327523375234752357523675237752387523975240752417524275243752447524575246752477524875249752507525175252752537525475255752567525775258752597526075261752627526375264752657526675267752687526975270752717527275273752747527575276752777527875279752807528175282752837528475285752867528775288752897529075291752927529375294752957529675297752987529975300753017530275303753047530575306753077530875309753107531175312753137531475315753167531775318753197532075321753227532375324753257532675327753287532975330753317533275333753347533575336753377533875339753407534175342753437534475345753467534775348753497535075351753527535375354753557535675357753587535975360753617536275363753647536575366753677536875369753707537175372753737537475375753767537775378753797538075381753827538375384753857538675387753887538975390753917539275393753947539575396753977539875399754007540175402754037540475405754067540775408754097541075411754127541375414754157541675417754187541975420754217542275423754247542575426754277542875429754307543175432754337543475435754367543775438754397544075441754427544375444754457544675447754487544975450754517545275453754547545575456754577545875459754607546175462754637546475465754667546775468754697547075471754727547375474754757547675477754787547975480754817548275483754847548575486754877548875489754907549175492754937549475495754967549775498754997550075501755027550375504755057550675507755087550975510755117551275513755147551575516755177551875519755207552175522755237552475525755267552775528755297553075531755327553375534755357553675537755387553975540755417554275543755447554575546755477554875549755507555175552755537555475555755567555775558755597556075561755627556375564755657556675567755687556975570755717557275573755747557575576755777557875579755807558175582755837558475585755867558775588755897559075591755927559375594755957559675597755987559975600756017560275603756047560575606756077560875609756107561175612756137561475615756167561775618756197562075621756227562375624756257562675627756287562975630756317563275633756347563575636756377563875639756407564175642756437564475645756467564775648756497565075651756527565375654756557565675657756587565975660756617566275663756647566575666756677566875669756707567175672756737567475675756767567775678756797568075681756827568375684756857568675687756887568975690756917569275693756947569575696756977569875699757007570175702757037570475705757067570775708757097571075711757127571375714757157571675717757187571975720757217572275723757247572575726757277572875729757307573175732757337573475735757367573775738757397574075741757427574375744757457574675747757487574975750757517575275753757547575575756757577575875759757607576175762757637576475765757667576775768757697577075771757727577375774757757577675777757787577975780757817578275783757847578575786757877578875789757907579175792757937579475795757967579775798757997580075801758027580375804758057580675807758087580975810758117581275813758147581575816758177581875819758207582175822758237582475825758267582775828758297583075831758327583375834758357583675837758387583975840758417584275843758447584575846758477584875849758507585175852758537585475855758567585775858758597586075861758627586375864758657586675867758687586975870758717587275873758747587575876758777587875879758807588175882758837588475885758867588775888758897589075891758927589375894758957589675897758987589975900759017590275903759047590575906759077590875909759107591175912759137591475915759167591775918759197592075921759227592375924759257592675927759287592975930759317593275933759347593575936759377593875939759407594175942759437594475945759467594775948759497595075951759527595375954759557595675957759587595975960759617596275963759647596575966759677596875969759707597175972759737597475975759767597775978759797598075981759827598375984759857598675987759887598975990759917599275993759947599575996759977599875999760007600176002760037600476005760067600776008760097601076011760127601376014760157601676017760187601976020760217602276023760247602576026760277602876029760307603176032760337603476035760367603776038760397604076041760427604376044760457604676047760487604976050760517605276053760547605576056760577605876059760607606176062760637606476065760667606776068760697607076071760727607376074760757607676077760787607976080760817608276083760847608576086760877608876089760907609176092760937609476095760967609776098760997610076101761027610376104761057610676107761087610976110761117611276113761147611576116761177611876119761207612176122761237612476125761267612776128761297613076131761327613376134761357613676137761387613976140761417614276143761447614576146761477614876149761507615176152761537615476155761567615776158761597616076161761627616376164761657616676167761687616976170761717617276173761747617576176761777617876179761807618176182761837618476185761867618776188761897619076191761927619376194761957619676197761987619976200762017620276203762047620576206762077620876209762107621176212762137621476215762167621776218762197622076221762227622376224762257622676227762287622976230762317623276233762347623576236762377623876239762407624176242762437624476245762467624776248762497625076251762527625376254762557625676257762587625976260762617626276263762647626576266762677626876269762707627176272762737627476275762767627776278762797628076281762827628376284762857628676287762887628976290762917629276293762947629576296762977629876299763007630176302763037630476305763067630776308763097631076311763127631376314763157631676317763187631976320763217632276323763247632576326763277632876329763307633176332763337633476335763367633776338763397634076341763427634376344763457634676347763487634976350763517635276353763547635576356763577635876359763607636176362763637636476365763667636776368763697637076371763727637376374763757637676377763787637976380763817638276383763847638576386763877638876389763907639176392763937639476395763967639776398763997640076401764027640376404764057640676407764087640976410764117641276413764147641576416764177641876419764207642176422764237642476425764267642776428764297643076431764327643376434764357643676437764387643976440764417644276443764447644576446764477644876449764507645176452764537645476455764567645776458764597646076461764627646376464764657646676467764687646976470764717647276473764747647576476764777647876479764807648176482764837648476485764867648776488764897649076491764927649376494764957649676497764987649976500765017650276503765047650576506765077650876509765107651176512765137651476515765167651776518765197652076521765227652376524765257652676527765287652976530765317653276533765347653576536765377653876539765407654176542765437654476545765467654776548765497655076551765527655376554765557655676557765587655976560765617656276563765647656576566765677656876569765707657176572765737657476575765767657776578765797658076581765827658376584765857658676587765887658976590765917659276593765947659576596765977659876599766007660176602766037660476605766067660776608766097661076611766127661376614766157661676617766187661976620766217662276623766247662576626766277662876629766307663176632766337663476635766367663776638766397664076641766427664376644766457664676647766487664976650766517665276653766547665576656766577665876659766607666176662766637666476665766667666776668766697667076671766727667376674766757667676677766787667976680766817668276683766847668576686766877668876689766907669176692766937669476695766967669776698766997670076701767027670376704767057670676707767087670976710767117671276713767147671576716767177671876719767207672176722767237672476725767267672776728767297673076731767327673376734767357673676737767387673976740767417674276743767447674576746767477674876749767507675176752767537675476755767567675776758767597676076761767627676376764767657676676767767687676976770767717677276773767747677576776767777677876779767807678176782767837678476785767867678776788767897679076791767927679376794767957679676797767987679976800768017680276803768047680576806768077680876809768107681176812768137681476815768167681776818768197682076821768227682376824768257682676827768287682976830768317683276833768347683576836768377683876839768407684176842768437684476845768467684776848768497685076851768527685376854768557685676857768587685976860768617686276863768647686576866768677686876869768707687176872768737687476875768767687776878768797688076881768827688376884768857688676887768887688976890768917689276893768947689576896768977689876899769007690176902769037690476905769067690776908769097691076911769127691376914769157691676917769187691976920769217692276923769247692576926769277692876929769307693176932769337693476935769367693776938769397694076941769427694376944769457694676947769487694976950769517695276953769547695576956769577695876959769607696176962769637696476965769667696776968769697697076971769727697376974769757697676977769787697976980769817698276983769847698576986769877698876989769907699176992769937699476995769967699776998769997700077001770027700377004770057700677007770087700977010770117701277013770147701577016770177701877019770207702177022770237702477025770267702777028770297703077031770327703377034770357703677037770387703977040770417704277043770447704577046770477704877049770507705177052770537705477055770567705777058770597706077061770627706377064770657706677067770687706977070770717707277073770747707577076770777707877079770807708177082770837708477085770867708777088770897709077091770927709377094770957709677097770987709977100771017710277103771047710577106771077710877109771107711177112771137711477115771167711777118771197712077121771227712377124771257712677127771287712977130771317713277133771347713577136771377713877139771407714177142771437714477145771467714777148771497715077151771527715377154771557715677157771587715977160771617716277163771647716577166771677716877169771707717177172771737717477175771767717777178771797718077181771827718377184771857718677187771887718977190771917719277193771947719577196771977719877199772007720177202772037720477205772067720777208772097721077211772127721377214772157721677217772187721977220772217722277223772247722577226772277722877229772307723177232772337723477235772367723777238772397724077241772427724377244772457724677247772487724977250772517725277253772547725577256772577725877259772607726177262772637726477265772667726777268772697727077271772727727377274772757727677277772787727977280772817728277283772847728577286772877728877289772907729177292772937729477295772967729777298772997730077301773027730377304773057730677307773087730977310773117731277313773147731577316773177731877319773207732177322773237732477325773267732777328773297733077331773327733377334773357733677337773387733977340773417734277343773447734577346773477734877349773507735177352773537735477355773567735777358773597736077361773627736377364773657736677367773687736977370773717737277373773747737577376773777737877379773807738177382773837738477385773867738777388773897739077391773927739377394773957739677397773987739977400774017740277403774047740577406774077740877409774107741177412774137741477415774167741777418774197742077421774227742377424774257742677427774287742977430774317743277433774347743577436774377743877439774407744177442774437744477445774467744777448774497745077451774527745377454774557745677457774587745977460774617746277463774647746577466774677746877469774707747177472774737747477475774767747777478774797748077481774827748377484774857748677487774887748977490774917749277493774947749577496774977749877499775007750177502775037750477505775067750777508775097751077511775127751377514775157751677517775187751977520775217752277523775247752577526775277752877529775307753177532775337753477535775367753777538775397754077541775427754377544775457754677547775487754977550775517755277553775547755577556775577755877559775607756177562775637756477565775667756777568775697757077571775727757377574775757757677577775787757977580775817758277583775847758577586775877758877589775907759177592775937759477595775967759777598775997760077601776027760377604776057760677607776087760977610776117761277613776147761577616776177761877619776207762177622776237762477625776267762777628776297763077631776327763377634776357763677637776387763977640776417764277643776447764577646776477764877649776507765177652776537765477655776567765777658776597766077661776627766377664776657766677667776687766977670776717767277673776747767577676776777767877679776807768177682776837768477685776867768777688776897769077691776927769377694776957769677697776987769977700777017770277703777047770577706777077770877709777107771177712777137771477715777167771777718777197772077721777227772377724777257772677727777287772977730777317773277733777347773577736777377773877739777407774177742777437774477745777467774777748777497775077751777527775377754777557775677757777587775977760777617776277763777647776577766777677776877769777707777177772777737777477775777767777777778777797778077781777827778377784777857778677787777887778977790777917779277793777947779577796777977779877799778007780177802778037780477805778067780777808778097781077811778127781377814778157781677817778187781977820778217782277823778247782577826778277782877829778307783177832778337783477835778367783777838778397784077841778427784377844778457784677847778487784977850778517785277853778547785577856778577785877859778607786177862778637786477865778667786777868778697787077871778727787377874778757787677877778787787977880778817788277883778847788577886778877788877889778907789177892778937789477895778967789777898778997790077901779027790377904779057790677907779087790977910779117791277913779147791577916779177791877919779207792177922779237792477925779267792777928779297793077931779327793377934779357793677937779387793977940779417794277943779447794577946779477794877949779507795177952779537795477955779567795777958779597796077961779627796377964779657796677967779687796977970779717797277973779747797577976779777797877979779807798177982779837798477985779867798777988779897799077991779927799377994779957799677997779987799978000780017800278003780047800578006780077800878009780107801178012780137801478015780167801778018780197802078021780227802378024780257802678027780287802978030780317803278033780347803578036780377803878039780407804178042780437804478045780467804778048780497805078051780527805378054780557805678057780587805978060780617806278063780647806578066780677806878069780707807178072780737807478075780767807778078780797808078081780827808378084780857808678087780887808978090780917809278093780947809578096780977809878099781007810178102781037810478105781067810778108781097811078111781127811378114781157811678117781187811978120781217812278123781247812578126781277812878129781307813178132781337813478135781367813778138781397814078141781427814378144781457814678147781487814978150781517815278153781547815578156781577815878159781607816178162781637816478165781667816778168781697817078171781727817378174781757817678177781787817978180781817818278183781847818578186781877818878189781907819178192781937819478195781967819778198781997820078201782027820378204782057820678207782087820978210782117821278213782147821578216782177821878219782207822178222782237822478225782267822778228782297823078231782327823378234782357823678237782387823978240782417824278243782447824578246782477824878249782507825178252782537825478255782567825778258782597826078261782627826378264782657826678267782687826978270782717827278273782747827578276782777827878279782807828178282782837828478285782867828778288782897829078291782927829378294782957829678297782987829978300783017830278303783047830578306783077830878309783107831178312783137831478315783167831778318783197832078321783227832378324783257832678327783287832978330783317833278333783347833578336783377833878339783407834178342783437834478345783467834778348783497835078351783527835378354783557835678357783587835978360783617836278363783647836578366783677836878369783707837178372783737837478375783767837778378783797838078381783827838378384783857838678387783887838978390783917839278393783947839578396783977839878399784007840178402784037840478405784067840778408784097841078411784127841378414784157841678417784187841978420784217842278423784247842578426784277842878429784307843178432784337843478435784367843778438784397844078441784427844378444784457844678447784487844978450784517845278453784547845578456784577845878459784607846178462784637846478465784667846778468784697847078471784727847378474784757847678477784787847978480784817848278483784847848578486784877848878489784907849178492784937849478495784967849778498784997850078501785027850378504785057850678507785087850978510785117851278513785147851578516785177851878519785207852178522785237852478525785267852778528785297853078531785327853378534785357853678537785387853978540785417854278543785447854578546785477854878549785507855178552785537855478555785567855778558785597856078561785627856378564785657856678567785687856978570785717857278573785747857578576785777857878579785807858178582785837858478585785867858778588785897859078591785927859378594785957859678597785987859978600786017860278603786047860578606786077860878609786107861178612786137861478615786167861778618786197862078621786227862378624786257862678627786287862978630786317863278633786347863578636786377863878639786407864178642786437864478645786467864778648786497865078651786527865378654786557865678657786587865978660786617866278663786647866578666786677866878669786707867178672786737867478675786767867778678786797868078681786827868378684786857868678687786887868978690786917869278693786947869578696786977869878699787007870178702787037870478705787067870778708787097871078711787127871378714787157871678717787187871978720787217872278723787247872578726787277872878729787307873178732787337873478735787367873778738787397874078741787427874378744787457874678747787487874978750787517875278753787547875578756787577875878759787607876178762787637876478765787667876778768787697877078771787727877378774787757877678777787787877978780787817878278783787847878578786787877878878789787907879178792787937879478795787967879778798787997880078801788027880378804788057880678807788087880978810788117881278813788147881578816788177881878819788207882178822788237882478825788267882778828788297883078831788327883378834788357883678837788387883978840788417884278843788447884578846788477884878849788507885178852788537885478855788567885778858788597886078861788627886378864788657886678867788687886978870788717887278873788747887578876788777887878879788807888178882788837888478885788867888778888788897889078891788927889378894788957889678897788987889978900789017890278903789047890578906789077890878909789107891178912789137891478915789167891778918789197892078921789227892378924789257892678927789287892978930789317893278933789347893578936789377893878939789407894178942789437894478945789467894778948789497895078951789527895378954789557895678957789587895978960789617896278963789647896578966789677896878969789707897178972789737897478975789767897778978789797898078981789827898378984789857898678987789887898978990789917899278993789947899578996789977899878999790007900179002790037900479005790067900779008790097901079011790127901379014790157901679017790187901979020790217902279023790247902579026790277902879029790307903179032790337903479035790367903779038790397904079041790427904379044790457904679047790487904979050790517905279053790547905579056790577905879059790607906179062790637906479065790667906779068790697907079071790727907379074790757907679077790787907979080790817908279083790847908579086790877908879089790907909179092790937909479095790967909779098790997910079101791027910379104791057910679107791087910979110791117911279113791147911579116791177911879119791207912179122791237912479125791267912779128791297913079131791327913379134791357913679137791387913979140791417914279143791447914579146791477914879149791507915179152791537915479155791567915779158791597916079161791627916379164791657916679167791687916979170791717917279173791747917579176791777917879179791807918179182791837918479185791867918779188791897919079191791927919379194791957919679197791987919979200792017920279203792047920579206792077920879209792107921179212792137921479215792167921779218792197922079221792227922379224792257922679227792287922979230792317923279233792347923579236792377923879239792407924179242792437924479245792467924779248792497925079251792527925379254792557925679257792587925979260792617926279263792647926579266792677926879269792707927179272792737927479275792767927779278792797928079281792827928379284792857928679287792887928979290792917929279293792947929579296792977929879299793007930179302793037930479305793067930779308793097931079311793127931379314793157931679317793187931979320793217932279323793247932579326793277932879329793307933179332793337933479335793367933779338793397934079341793427934379344793457934679347793487934979350793517935279353793547935579356793577935879359793607936179362793637936479365793667936779368793697937079371793727937379374793757937679377793787937979380793817938279383793847938579386793877938879389793907939179392793937939479395793967939779398793997940079401794027940379404794057940679407794087940979410794117941279413794147941579416794177941879419794207942179422794237942479425794267942779428794297943079431794327943379434794357943679437794387943979440794417944279443794447944579446794477944879449794507945179452794537945479455794567945779458794597946079461794627946379464794657946679467794687946979470794717947279473794747947579476794777947879479794807948179482794837948479485794867948779488794897949079491794927949379494794957949679497794987949979500795017950279503795047950579506795077950879509795107951179512795137951479515795167951779518795197952079521795227952379524795257952679527795287952979530795317953279533795347953579536795377953879539795407954179542795437954479545795467954779548795497955079551795527955379554795557955679557795587955979560795617956279563795647956579566795677956879569795707957179572795737957479575795767957779578795797958079581795827958379584795857958679587795887958979590795917959279593795947959579596795977959879599796007960179602796037960479605796067960779608796097961079611796127961379614796157961679617796187961979620796217962279623796247962579626796277962879629796307963179632796337963479635796367963779638796397964079641796427964379644796457964679647796487964979650796517965279653796547965579656796577965879659796607966179662796637966479665796667966779668796697967079671796727967379674796757967679677796787967979680796817968279683796847968579686796877968879689796907969179692796937969479695796967969779698796997970079701797027970379704797057970679707797087970979710797117971279713797147971579716797177971879719797207972179722797237972479725797267972779728797297973079731797327973379734797357973679737797387973979740797417974279743797447974579746797477974879749797507975179752797537975479755797567975779758797597976079761797627976379764797657976679767797687976979770797717977279773797747977579776797777977879779797807978179782797837978479785797867978779788797897979079791797927979379794797957979679797797987979979800798017980279803798047980579806798077980879809798107981179812798137981479815798167981779818798197982079821798227982379824798257982679827798287982979830798317983279833798347983579836798377983879839798407984179842798437984479845798467984779848798497985079851798527985379854798557985679857798587985979860798617986279863798647986579866798677986879869798707987179872798737987479875798767987779878798797988079881798827988379884798857988679887798887988979890798917989279893798947989579896798977989879899799007990179902799037990479905799067990779908799097991079911799127991379914799157991679917799187991979920799217992279923799247992579926799277992879929799307993179932799337993479935799367993779938799397994079941799427994379944799457994679947799487994979950799517995279953799547995579956799577995879959799607996179962799637996479965799667996779968799697997079971799727997379974799757997679977799787997979980799817998279983799847998579986799877998879989799907999179992799937999479995799967999779998799998000080001800028000380004800058000680007800088000980010800118001280013800148001580016800178001880019800208002180022800238002480025800268002780028800298003080031800328003380034800358003680037800388003980040800418004280043800448004580046800478004880049800508005180052800538005480055800568005780058800598006080061800628006380064800658006680067800688006980070800718007280073800748007580076800778007880079800808008180082800838008480085800868008780088800898009080091800928009380094800958009680097800988009980100801018010280103801048010580106801078010880109801108011180112801138011480115801168011780118801198012080121801228012380124801258012680127801288012980130801318013280133801348013580136801378013880139801408014180142801438014480145801468014780148801498015080151801528015380154801558015680157801588015980160801618016280163801648016580166801678016880169801708017180172801738017480175801768017780178801798018080181801828018380184801858018680187801888018980190801918019280193801948019580196801978019880199802008020180202802038020480205802068020780208802098021080211802128021380214802158021680217802188021980220802218022280223802248022580226802278022880229802308023180232802338023480235802368023780238802398024080241802428024380244802458024680247802488024980250802518025280253802548025580256802578025880259802608026180262802638026480265802668026780268802698027080271802728027380274802758027680277802788027980280802818028280283802848028580286802878028880289802908029180292802938029480295802968029780298802998030080301803028030380304803058030680307803088030980310803118031280313803148031580316803178031880319803208032180322803238032480325803268032780328803298033080331803328033380334803358033680337803388033980340803418034280343803448034580346803478034880349803508035180352803538035480355803568035780358803598036080361803628036380364803658036680367803688036980370803718037280373803748037580376803778037880379803808038180382803838038480385803868038780388803898039080391803928039380394803958039680397803988039980400804018040280403804048040580406804078040880409804108041180412804138041480415804168041780418804198042080421804228042380424804258042680427804288042980430804318043280433804348043580436804378043880439804408044180442804438044480445804468044780448804498045080451804528045380454804558045680457804588045980460804618046280463804648046580466804678046880469804708047180472804738047480475804768047780478804798048080481804828048380484804858048680487804888048980490804918049280493804948049580496804978049880499805008050180502805038050480505805068050780508805098051080511805128051380514805158051680517805188051980520805218052280523805248052580526805278052880529805308053180532805338053480535805368053780538805398054080541805428054380544805458054680547805488054980550805518055280553805548055580556805578055880559805608056180562805638056480565805668056780568805698057080571805728057380574805758057680577805788057980580805818058280583805848058580586805878058880589805908059180592805938059480595805968059780598805998060080601806028060380604806058060680607806088060980610806118061280613806148061580616806178061880619806208062180622806238062480625806268062780628806298063080631806328063380634806358063680637806388063980640806418064280643806448064580646806478064880649806508065180652806538065480655806568065780658806598066080661806628066380664806658066680667806688066980670806718067280673806748067580676806778067880679806808068180682806838068480685806868068780688806898069080691806928069380694806958069680697806988069980700807018070280703807048070580706807078070880709807108071180712807138071480715807168071780718807198072080721807228072380724807258072680727807288072980730807318073280733807348073580736807378073880739807408074180742807438074480745807468074780748807498075080751807528075380754807558075680757807588075980760807618076280763807648076580766807678076880769807708077180772807738077480775807768077780778807798078080781807828078380784807858078680787807888078980790807918079280793807948079580796807978079880799808008080180802808038080480805808068080780808808098081080811808128081380814808158081680817808188081980820808218082280823808248082580826808278082880829808308083180832808338083480835808368083780838808398084080841808428084380844808458084680847808488084980850808518085280853808548085580856808578085880859808608086180862808638086480865808668086780868808698087080871808728087380874808758087680877808788087980880808818088280883808848088580886808878088880889808908089180892808938089480895808968089780898808998090080901809028090380904809058090680907809088090980910809118091280913809148091580916809178091880919809208092180922809238092480925809268092780928809298093080931809328093380934809358093680937809388093980940809418094280943809448094580946809478094880949809508095180952809538095480955809568095780958809598096080961809628096380964809658096680967809688096980970809718097280973809748097580976809778097880979809808098180982809838098480985809868098780988809898099080991809928099380994809958099680997809988099981000810018100281003810048100581006810078100881009810108101181012810138101481015810168101781018810198102081021810228102381024810258102681027810288102981030810318103281033810348103581036810378103881039810408104181042810438104481045810468104781048810498105081051810528105381054810558105681057810588105981060810618106281063810648106581066810678106881069810708107181072810738107481075810768107781078810798108081081810828108381084810858108681087810888108981090810918109281093810948109581096810978109881099811008110181102811038110481105811068110781108811098111081111811128111381114811158111681117811188111981120811218112281123811248112581126811278112881129811308113181132811338113481135811368113781138811398114081141811428114381144811458114681147811488114981150811518115281153811548115581156811578115881159811608116181162811638116481165811668116781168811698117081171811728117381174811758117681177811788117981180811818118281183811848118581186811878118881189811908119181192811938119481195811968119781198811998120081201812028120381204812058120681207812088120981210812118121281213812148121581216812178121881219812208122181222812238122481225812268122781228812298123081231812328123381234812358123681237812388123981240812418124281243812448124581246812478124881249812508125181252812538125481255812568125781258812598126081261812628126381264812658126681267812688126981270812718127281273812748127581276812778127881279812808128181282812838128481285812868128781288812898129081291812928129381294812958129681297812988129981300813018130281303813048130581306813078130881309813108131181312813138131481315813168131781318813198132081321813228132381324813258132681327813288132981330813318133281333813348133581336813378133881339813408134181342813438134481345813468134781348813498135081351813528135381354813558135681357813588135981360813618136281363813648136581366813678136881369813708137181372813738137481375813768137781378813798138081381813828138381384813858138681387813888138981390813918139281393813948139581396813978139881399814008140181402814038140481405814068140781408814098141081411814128141381414814158141681417814188141981420814218142281423814248142581426814278142881429814308143181432814338143481435814368143781438814398144081441814428144381444814458144681447814488144981450814518145281453814548145581456814578145881459814608146181462814638146481465814668146781468814698147081471814728147381474814758147681477814788147981480814818148281483814848148581486814878148881489814908149181492814938149481495814968149781498814998150081501815028150381504815058150681507815088150981510815118151281513815148151581516815178151881519815208152181522815238152481525815268152781528815298153081531815328153381534815358153681537815388153981540815418154281543815448154581546815478154881549815508155181552815538155481555815568155781558815598156081561815628156381564815658156681567815688156981570815718157281573815748157581576815778157881579815808158181582815838158481585815868158781588815898159081591815928159381594815958159681597815988159981600816018160281603816048160581606816078160881609816108161181612816138161481615816168161781618816198162081621816228162381624816258162681627816288162981630816318163281633816348163581636816378163881639816408164181642816438164481645816468164781648816498165081651816528165381654816558165681657816588165981660816618166281663816648166581666816678166881669816708167181672816738167481675816768167781678816798168081681816828168381684816858168681687816888168981690816918169281693816948169581696816978169881699817008170181702817038170481705817068170781708817098171081711817128171381714817158171681717817188171981720817218172281723817248172581726817278172881729817308173181732817338173481735817368173781738817398174081741817428174381744817458174681747817488174981750817518175281753817548175581756817578175881759817608176181762817638176481765817668176781768817698177081771817728177381774817758177681777817788177981780817818178281783817848178581786817878178881789817908179181792817938179481795817968179781798817998180081801818028180381804818058180681807818088180981810818118181281813818148181581816818178181881819818208182181822818238182481825818268182781828818298183081831818328183381834818358183681837818388183981840818418184281843818448184581846818478184881849818508185181852818538185481855818568185781858818598186081861818628186381864818658186681867818688186981870818718187281873818748187581876818778187881879818808188181882818838188481885818868188781888818898189081891818928189381894818958189681897818988189981900819018190281903819048190581906819078190881909819108191181912819138191481915819168191781918819198192081921819228192381924819258192681927819288192981930819318193281933819348193581936819378193881939819408194181942819438194481945819468194781948819498195081951819528195381954819558195681957819588195981960819618196281963819648196581966819678196881969819708197181972819738197481975819768197781978819798198081981819828198381984819858198681987819888198981990819918199281993819948199581996819978199881999820008200182002820038200482005820068200782008820098201082011820128201382014820158201682017820188201982020820218202282023820248202582026820278202882029820308203182032820338203482035820368203782038820398204082041820428204382044820458204682047820488204982050820518205282053820548205582056820578205882059820608206182062820638206482065820668206782068820698207082071820728207382074820758207682077820788207982080820818208282083820848208582086820878208882089820908209182092820938209482095820968209782098820998210082101821028210382104821058210682107821088210982110821118211282113821148211582116821178211882119821208212182122821238212482125821268212782128821298213082131821328213382134821358213682137821388213982140821418214282143821448214582146821478214882149821508215182152821538215482155821568215782158821598216082161821628216382164821658216682167821688216982170821718217282173821748217582176821778217882179821808218182182821838218482185821868218782188821898219082191821928219382194821958219682197821988219982200822018220282203822048220582206822078220882209822108221182212822138221482215822168221782218822198222082221822228222382224822258222682227822288222982230822318223282233822348223582236822378223882239822408224182242822438224482245822468224782248822498225082251822528225382254822558225682257822588225982260822618226282263822648226582266822678226882269822708227182272822738227482275822768227782278822798228082281822828228382284822858228682287822888228982290822918229282293822948229582296822978229882299823008230182302823038230482305823068230782308823098231082311823128231382314823158231682317823188231982320823218232282323823248232582326823278232882329823308233182332823338233482335823368233782338823398234082341823428234382344823458234682347823488234982350823518235282353823548235582356823578235882359823608236182362823638236482365823668236782368823698237082371823728237382374823758237682377823788237982380823818238282383823848238582386823878238882389823908239182392823938239482395823968239782398823998240082401824028240382404824058240682407824088240982410824118241282413824148241582416824178241882419824208242182422824238242482425824268242782428824298243082431824328243382434824358243682437824388243982440824418244282443824448244582446824478244882449824508245182452824538245482455824568245782458824598246082461824628246382464824658246682467824688246982470824718247282473824748247582476824778247882479824808248182482824838248482485824868248782488824898249082491824928249382494824958249682497824988249982500825018250282503825048250582506825078250882509825108251182512825138251482515825168251782518825198252082521825228252382524825258252682527825288252982530825318253282533825348253582536825378253882539825408254182542825438254482545825468254782548825498255082551825528255382554825558255682557825588255982560825618256282563825648256582566825678256882569825708257182572825738257482575825768257782578825798258082581825828258382584825858258682587825888258982590825918259282593825948259582596825978259882599826008260182602826038260482605826068260782608826098261082611826128261382614826158261682617826188261982620826218262282623826248262582626826278262882629826308263182632826338263482635826368263782638826398264082641826428264382644826458264682647826488264982650826518265282653826548265582656826578265882659826608266182662826638266482665826668266782668826698267082671826728267382674826758267682677826788267982680826818268282683826848268582686826878268882689826908269182692826938269482695826968269782698826998270082701827028270382704827058270682707827088270982710827118271282713827148271582716827178271882719827208272182722827238272482725827268272782728827298273082731827328273382734827358273682737827388273982740827418274282743827448274582746827478274882749827508275182752827538275482755827568275782758827598276082761827628276382764827658276682767827688276982770827718277282773827748277582776827778277882779827808278182782827838278482785827868278782788827898279082791827928279382794827958279682797827988279982800828018280282803828048280582806828078280882809828108281182812828138281482815828168281782818828198282082821828228282382824828258282682827828288282982830828318283282833828348283582836828378283882839828408284182842828438284482845828468284782848828498285082851828528285382854828558285682857828588285982860828618286282863828648286582866828678286882869828708287182872828738287482875828768287782878828798288082881828828288382884828858288682887828888288982890828918289282893828948289582896828978289882899829008290182902829038290482905829068290782908829098291082911829128291382914829158291682917829188291982920829218292282923829248292582926829278292882929829308293182932829338293482935829368293782938829398294082941829428294382944829458294682947829488294982950829518295282953829548295582956829578295882959829608296182962829638296482965829668296782968829698297082971829728297382974829758297682977829788297982980829818298282983829848298582986829878298882989829908299182992829938299482995829968299782998829998300083001830028300383004830058300683007830088300983010830118301283013830148301583016830178301883019830208302183022830238302483025830268302783028830298303083031830328303383034830358303683037830388303983040830418304283043830448304583046830478304883049830508305183052830538305483055830568305783058830598306083061830628306383064830658306683067830688306983070830718307283073830748307583076830778307883079830808308183082830838308483085830868308783088830898309083091830928309383094830958309683097830988309983100831018310283103831048310583106831078310883109831108311183112831138311483115831168311783118831198312083121831228312383124831258312683127831288312983130831318313283133831348313583136831378313883139831408314183142831438314483145831468314783148831498315083151831528315383154831558315683157831588315983160831618316283163831648316583166831678316883169831708317183172831738317483175831768317783178831798318083181831828318383184831858318683187831888318983190831918319283193831948319583196831978319883199832008320183202832038320483205832068320783208832098321083211832128321383214832158321683217832188321983220832218322283223832248322583226832278322883229832308323183232832338323483235832368323783238832398324083241832428324383244832458324683247832488324983250832518325283253832548325583256832578325883259832608326183262832638326483265832668326783268832698327083271832728327383274832758327683277832788327983280832818328283283832848328583286832878328883289832908329183292832938329483295832968329783298832998330083301833028330383304833058330683307833088330983310833118331283313833148331583316833178331883319833208332183322833238332483325833268332783328833298333083331833328333383334833358333683337833388333983340833418334283343833448334583346833478334883349833508335183352833538335483355833568335783358833598336083361833628336383364833658336683367833688336983370833718337283373833748337583376833778337883379833808338183382833838338483385833868338783388833898339083391833928339383394833958339683397833988339983400834018340283403834048340583406834078340883409834108341183412834138341483415834168341783418834198342083421834228342383424834258342683427834288342983430834318343283433834348343583436834378343883439834408344183442834438344483445834468344783448834498345083451834528345383454834558345683457834588345983460834618346283463834648346583466834678346883469834708347183472834738347483475834768347783478834798348083481834828348383484834858348683487834888348983490834918349283493834948349583496834978349883499835008350183502835038350483505835068350783508835098351083511835128351383514835158351683517835188351983520835218352283523835248352583526835278352883529835308353183532835338353483535835368353783538835398354083541835428354383544835458354683547835488354983550835518355283553835548355583556835578355883559835608356183562835638356483565835668356783568835698357083571835728357383574835758357683577835788357983580835818358283583835848358583586835878358883589835908359183592835938359483595835968359783598835998360083601836028360383604836058360683607836088360983610836118361283613836148361583616836178361883619836208362183622836238362483625836268362783628836298363083631836328363383634836358363683637836388363983640836418364283643836448364583646836478364883649836508365183652836538365483655836568365783658836598366083661836628366383664836658366683667836688366983670836718367283673836748367583676836778367883679836808368183682836838368483685836868368783688836898369083691836928369383694836958369683697836988369983700837018370283703837048370583706837078370883709837108371183712837138371483715837168371783718837198372083721837228372383724837258372683727837288372983730837318373283733837348373583736837378373883739837408374183742837438374483745837468374783748837498375083751837528375383754837558375683757837588375983760837618376283763837648376583766837678376883769837708377183772837738377483775837768377783778837798378083781837828378383784837858378683787837888378983790837918379283793837948379583796837978379883799838008380183802838038380483805838068380783808838098381083811838128381383814838158381683817838188381983820838218382283823838248382583826838278382883829838308383183832838338383483835838368383783838838398384083841838428384383844838458384683847838488384983850838518385283853838548385583856838578385883859838608386183862838638386483865838668386783868838698387083871838728387383874838758387683877838788387983880838818388283883838848388583886838878388883889838908389183892838938389483895838968389783898838998390083901839028390383904839058390683907839088390983910839118391283913839148391583916839178391883919839208392183922839238392483925839268392783928839298393083931839328393383934839358393683937839388393983940839418394283943839448394583946839478394883949839508395183952839538395483955839568395783958839598396083961839628396383964839658396683967839688396983970839718397283973839748397583976839778397883979839808398183982839838398483985839868398783988839898399083991839928399383994839958399683997839988399984000840018400284003840048400584006840078400884009840108401184012840138401484015840168401784018840198402084021840228402384024840258402684027840288402984030840318403284033840348403584036840378403884039840408404184042840438404484045840468404784048840498405084051840528405384054840558405684057840588405984060840618406284063840648406584066840678406884069840708407184072840738407484075840768407784078840798408084081840828408384084840858408684087840888408984090840918409284093840948409584096840978409884099841008410184102841038410484105841068410784108841098411084111841128411384114841158411684117841188411984120841218412284123841248412584126841278412884129841308413184132841338413484135841368413784138841398414084141841428414384144841458414684147841488414984150841518415284153841548415584156841578415884159841608416184162841638416484165841668416784168841698417084171841728417384174841758417684177841788417984180841818418284183841848418584186841878418884189841908419184192841938419484195841968419784198841998420084201842028420384204842058420684207842088420984210842118421284213842148421584216842178421884219842208422184222842238422484225842268422784228842298423084231842328423384234842358423684237842388423984240842418424284243842448424584246842478424884249842508425184252842538425484255842568425784258842598426084261842628426384264842658426684267842688426984270842718427284273842748427584276842778427884279842808428184282842838428484285842868428784288842898429084291842928429384294842958429684297842988429984300843018430284303843048430584306843078430884309843108431184312843138431484315843168431784318843198432084321843228432384324843258432684327843288432984330843318433284333843348433584336843378433884339843408434184342843438434484345843468434784348843498435084351843528435384354843558435684357843588435984360843618436284363843648436584366843678436884369843708437184372843738437484375843768437784378843798438084381843828438384384843858438684387843888438984390843918439284393843948439584396843978439884399844008440184402844038440484405844068440784408844098441084411844128441384414844158441684417844188441984420844218442284423844248442584426844278442884429844308443184432844338443484435844368443784438844398444084441844428444384444844458444684447844488444984450844518445284453844548445584456844578445884459844608446184462844638446484465844668446784468844698447084471844728447384474844758447684477844788447984480844818448284483844848448584486844878448884489844908449184492844938449484495844968449784498844998450084501845028450384504845058450684507845088450984510845118451284513845148451584516845178451884519845208452184522845238452484525845268452784528845298453084531845328453384534845358453684537845388453984540845418454284543845448454584546845478454884549845508455184552845538455484555845568455784558845598456084561845628456384564845658456684567845688456984570845718457284573845748457584576845778457884579845808458184582845838458484585845868458784588845898459084591845928459384594845958459684597845988459984600846018460284603846048460584606846078460884609846108461184612846138461484615846168461784618846198462084621846228462384624846258462684627846288462984630846318463284633846348463584636846378463884639846408464184642846438464484645846468464784648846498465084651846528465384654846558465684657846588465984660846618466284663846648466584666846678466884669846708467184672846738467484675846768467784678846798468084681846828468384684846858468684687846888468984690846918469284693846948469584696846978469884699847008470184702847038470484705847068470784708847098471084711847128471384714847158471684717847188471984720847218472284723847248472584726847278472884729847308473184732847338473484735847368473784738847398474084741847428474384744847458474684747847488474984750847518475284753847548475584756847578475884759847608476184762847638476484765847668476784768847698477084771847728477384774847758477684777847788477984780847818478284783847848478584786847878478884789847908479184792847938479484795847968479784798847998480084801848028480384804848058480684807848088480984810848118481284813848148481584816848178481884819848208482184822848238482484825848268482784828848298483084831848328483384834848358483684837848388483984840848418484284843848448484584846848478484884849848508485184852848538485484855848568485784858848598486084861848628486384864848658486684867848688486984870848718487284873848748487584876848778487884879848808488184882848838488484885848868488784888848898489084891848928489384894848958489684897848988489984900849018490284903849048490584906849078490884909849108491184912849138491484915849168491784918849198492084921849228492384924849258492684927849288492984930849318493284933849348493584936849378493884939849408494184942849438494484945849468494784948849498495084951849528495384954849558495684957849588495984960849618496284963849648496584966849678496884969849708497184972849738497484975849768497784978849798498084981849828498384984849858498684987849888498984990849918499284993849948499584996849978499884999850008500185002850038500485005850068500785008850098501085011850128501385014850158501685017850188501985020850218502285023850248502585026850278502885029850308503185032850338503485035850368503785038850398504085041850428504385044850458504685047850488504985050850518505285053850548505585056850578505885059850608506185062850638506485065850668506785068850698507085071850728507385074850758507685077850788507985080850818508285083850848508585086850878508885089850908509185092850938509485095850968509785098850998510085101851028510385104851058510685107851088510985110851118511285113851148511585116851178511885119851208512185122851238512485125851268512785128851298513085131851328513385134851358513685137851388513985140851418514285143851448514585146851478514885149851508515185152851538515485155851568515785158851598516085161851628516385164851658516685167851688516985170851718517285173851748517585176851778517885179851808518185182851838518485185851868518785188851898519085191851928519385194851958519685197851988519985200852018520285203852048520585206852078520885209852108521185212852138521485215852168521785218852198522085221852228522385224852258522685227852288522985230852318523285233852348523585236852378523885239852408524185242852438524485245852468524785248852498525085251852528525385254852558525685257852588525985260852618526285263852648526585266852678526885269852708527185272852738527485275852768527785278852798528085281852828528385284852858528685287852888528985290852918529285293852948529585296852978529885299853008530185302853038530485305853068530785308853098531085311853128531385314853158531685317853188531985320853218532285323853248532585326853278532885329853308533185332853338533485335853368533785338853398534085341853428534385344853458534685347853488534985350853518535285353853548535585356853578535885359853608536185362853638536485365853668536785368853698537085371853728537385374853758537685377853788537985380853818538285383853848538585386853878538885389853908539185392853938539485395853968539785398853998540085401854028540385404854058540685407854088540985410854118541285413854148541585416854178541885419854208542185422854238542485425854268542785428854298543085431854328543385434854358543685437854388543985440854418544285443854448544585446854478544885449854508545185452854538545485455854568545785458854598546085461854628546385464854658546685467854688546985470854718547285473854748547585476854778547885479854808548185482854838548485485854868548785488854898549085491854928549385494854958549685497854988549985500855018550285503855048550585506855078550885509855108551185512855138551485515855168551785518855198552085521855228552385524855258552685527855288552985530855318553285533855348553585536855378553885539855408554185542855438554485545855468554785548855498555085551855528555385554855558555685557855588555985560855618556285563855648556585566855678556885569855708557185572855738557485575855768557785578855798558085581855828558385584855858558685587855888558985590855918559285593855948559585596855978559885599856008560185602856038560485605856068560785608856098561085611856128561385614856158561685617856188561985620856218562285623856248562585626856278562885629856308563185632856338563485635856368563785638856398564085641856428564385644856458564685647856488564985650856518565285653856548565585656856578565885659856608566185662856638566485665856668566785668856698567085671856728567385674856758567685677856788567985680856818568285683856848568585686856878568885689856908569185692856938569485695856968569785698856998570085701857028570385704857058570685707857088570985710857118571285713857148571585716857178571885719857208572185722857238572485725857268572785728857298573085731857328573385734857358573685737857388573985740857418574285743857448574585746857478574885749857508575185752857538575485755857568575785758857598576085761857628576385764857658576685767857688576985770857718577285773857748577585776857778577885779857808578185782857838578485785857868578785788857898579085791857928579385794857958579685797857988579985800858018580285803858048580585806858078580885809858108581185812858138581485815858168581785818858198582085821858228582385824858258582685827858288582985830858318583285833858348583585836858378583885839858408584185842858438584485845858468584785848858498585085851858528585385854858558585685857858588585985860858618586285863858648586585866858678586885869858708587185872858738587485875858768587785878858798588085881858828588385884858858588685887858888588985890858918589285893858948589585896858978589885899859008590185902859038590485905859068590785908859098591085911859128591385914859158591685917859188591985920859218592285923859248592585926859278592885929859308593185932859338593485935859368593785938859398594085941859428594385944859458594685947859488594985950859518595285953859548595585956859578595885959859608596185962859638596485965859668596785968859698597085971859728597385974859758597685977859788597985980859818598285983859848598585986859878598885989859908599185992859938599485995859968599785998859998600086001860028600386004860058600686007860088600986010860118601286013860148601586016860178601886019860208602186022860238602486025860268602786028860298603086031860328603386034860358603686037860388603986040860418604286043860448604586046860478604886049860508605186052860538605486055860568605786058860598606086061860628606386064860658606686067860688606986070860718607286073860748607586076860778607886079860808608186082860838608486085860868608786088860898609086091860928609386094860958609686097860988609986100861018610286103861048610586106861078610886109861108611186112861138611486115861168611786118861198612086121861228612386124861258612686127861288612986130861318613286133861348613586136861378613886139861408614186142861438614486145861468614786148861498615086151861528615386154861558615686157861588615986160861618616286163861648616586166861678616886169861708617186172861738617486175861768617786178861798618086181861828618386184861858618686187861888618986190861918619286193861948619586196861978619886199862008620186202862038620486205862068620786208862098621086211862128621386214862158621686217862188621986220862218622286223862248622586226862278622886229862308623186232862338623486235862368623786238862398624086241862428624386244862458624686247862488624986250862518625286253862548625586256862578625886259862608626186262862638626486265862668626786268862698627086271862728627386274862758627686277862788627986280862818628286283862848628586286862878628886289862908629186292862938629486295862968629786298862998630086301863028630386304863058630686307863088630986310863118631286313863148631586316863178631886319863208632186322863238632486325863268632786328863298633086331863328633386334863358633686337863388633986340863418634286343863448634586346863478634886349863508635186352863538635486355863568635786358863598636086361863628636386364863658636686367863688636986370863718637286373863748637586376863778637886379863808638186382863838638486385863868638786388863898639086391863928639386394863958639686397863988639986400864018640286403864048640586406864078640886409864108641186412864138641486415864168641786418864198642086421864228642386424864258642686427864288642986430864318643286433864348643586436864378643886439864408644186442864438644486445864468644786448864498645086451864528645386454864558645686457864588645986460864618646286463864648646586466864678646886469864708647186472864738647486475864768647786478864798648086481864828648386484864858648686487864888648986490864918649286493864948649586496864978649886499865008650186502865038650486505865068650786508865098651086511865128651386514865158651686517865188651986520865218652286523865248652586526865278652886529865308653186532865338653486535865368653786538865398654086541865428654386544865458654686547865488654986550865518655286553865548655586556865578655886559865608656186562865638656486565865668656786568865698657086571865728657386574865758657686577865788657986580865818658286583865848658586586865878658886589865908659186592865938659486595865968659786598865998660086601866028660386604866058660686607866088660986610866118661286613866148661586616866178661886619866208662186622866238662486625866268662786628866298663086631866328663386634866358663686637866388663986640866418664286643866448664586646866478664886649866508665186652866538665486655866568665786658866598666086661866628666386664866658666686667866688666986670866718667286673866748667586676866778667886679866808668186682866838668486685866868668786688866898669086691866928669386694866958669686697866988669986700867018670286703867048670586706867078670886709867108671186712867138671486715867168671786718867198672086721867228672386724867258672686727867288672986730867318673286733867348673586736867378673886739867408674186742867438674486745867468674786748867498675086751867528675386754867558675686757867588675986760867618676286763867648676586766867678676886769867708677186772867738677486775867768677786778867798678086781867828678386784867858678686787867888678986790867918679286793867948679586796867978679886799868008680186802868038680486805868068680786808868098681086811868128681386814868158681686817868188681986820868218682286823868248682586826868278682886829868308683186832868338683486835868368683786838868398684086841868428684386844868458684686847868488684986850868518685286853868548685586856868578685886859868608686186862868638686486865868668686786868868698687086871868728687386874868758687686877868788687986880868818688286883868848688586886868878688886889868908689186892868938689486895868968689786898868998690086901869028690386904869058690686907869088690986910869118691286913869148691586916869178691886919869208692186922869238692486925869268692786928869298693086931869328693386934869358693686937869388693986940869418694286943869448694586946869478694886949869508695186952869538695486955869568695786958869598696086961869628696386964869658696686967869688696986970869718697286973869748697586976869778697886979869808698186982869838698486985869868698786988869898699086991869928699386994869958699686997869988699987000870018700287003870048700587006870078700887009870108701187012870138701487015870168701787018870198702087021870228702387024870258702687027870288702987030870318703287033870348703587036870378703887039870408704187042870438704487045870468704787048870498705087051870528705387054870558705687057870588705987060870618706287063870648706587066870678706887069870708707187072870738707487075870768707787078870798708087081870828708387084870858708687087870888708987090870918709287093870948709587096870978709887099871008710187102871038710487105871068710787108871098711087111871128711387114871158711687117871188711987120871218712287123871248712587126871278712887129871308713187132871338713487135871368713787138871398714087141871428714387144871458714687147871488714987150871518715287153871548715587156871578715887159871608716187162871638716487165871668716787168871698717087171871728717387174871758717687177871788717987180871818718287183871848718587186871878718887189871908719187192871938719487195871968719787198871998720087201872028720387204872058720687207872088720987210872118721287213872148721587216872178721887219872208722187222872238722487225872268722787228872298723087231872328723387234872358723687237872388723987240872418724287243872448724587246872478724887249872508725187252872538725487255872568725787258872598726087261872628726387264872658726687267872688726987270872718727287273872748727587276872778727887279872808728187282872838728487285872868728787288872898729087291872928729387294872958729687297872988729987300873018730287303873048730587306873078730887309873108731187312873138731487315873168731787318873198732087321873228732387324873258732687327873288732987330873318733287333873348733587336873378733887339873408734187342873438734487345873468734787348873498735087351873528735387354873558735687357873588735987360873618736287363873648736587366873678736887369873708737187372873738737487375873768737787378873798738087381873828738387384873858738687387873888738987390873918739287393873948739587396873978739887399874008740187402874038740487405874068740787408874098741087411874128741387414874158741687417874188741987420874218742287423874248742587426874278742887429874308743187432874338743487435874368743787438874398744087441874428744387444874458744687447874488744987450874518745287453874548745587456874578745887459874608746187462874638746487465874668746787468874698747087471874728747387474874758747687477874788747987480874818748287483874848748587486874878748887489874908749187492874938749487495874968749787498874998750087501875028750387504875058750687507875088750987510875118751287513875148751587516875178751887519875208752187522875238752487525875268752787528875298753087531875328753387534875358753687537875388753987540875418754287543875448754587546875478754887549875508755187552875538755487555875568755787558875598756087561875628756387564875658756687567875688756987570875718757287573875748757587576875778757887579875808758187582875838758487585875868758787588875898759087591875928759387594875958759687597875988759987600876018760287603876048760587606876078760887609876108761187612876138761487615876168761787618876198762087621876228762387624876258762687627876288762987630876318763287633876348763587636876378763887639876408764187642876438764487645876468764787648876498765087651876528765387654876558765687657876588765987660876618766287663876648766587666876678766887669876708767187672876738767487675876768767787678876798768087681876828768387684876858768687687876888768987690876918769287693876948769587696876978769887699877008770187702877038770487705877068770787708877098771087711877128771387714877158771687717877188771987720877218772287723877248772587726877278772887729877308773187732877338773487735877368773787738877398774087741877428774387744877458774687747877488774987750877518775287753877548775587756877578775887759877608776187762877638776487765877668776787768877698777087771877728777387774877758777687777877788777987780877818778287783877848778587786877878778887789877908779187792877938779487795877968779787798877998780087801878028780387804878058780687807878088780987810878118781287813878148781587816878178781887819878208782187822878238782487825878268782787828878298783087831878328783387834878358783687837878388783987840878418784287843878448784587846878478784887849878508785187852878538785487855878568785787858878598786087861878628786387864878658786687867878688786987870878718787287873878748787587876878778787887879878808788187882878838788487885878868788787888878898789087891878928789387894878958789687897878988789987900879018790287903879048790587906879078790887909879108791187912879138791487915879168791787918879198792087921879228792387924879258792687927879288792987930879318793287933879348793587936879378793887939879408794187942879438794487945879468794787948879498795087951879528795387954879558795687957879588795987960879618796287963879648796587966879678796887969879708797187972879738797487975879768797787978879798798087981879828798387984879858798687987879888798987990879918799287993879948799587996879978799887999880008800188002880038800488005880068800788008880098801088011880128801388014880158801688017880188801988020880218802288023880248802588026880278802888029880308803188032880338803488035880368803788038880398804088041880428804388044880458804688047880488804988050880518805288053880548805588056880578805888059880608806188062880638806488065880668806788068880698807088071880728807388074880758807688077880788807988080880818808288083880848808588086880878808888089880908809188092880938809488095880968809788098880998810088101881028810388104881058810688107881088810988110881118811288113881148811588116881178811888119881208812188122881238812488125881268812788128881298813088131881328813388134881358813688137881388813988140881418814288143881448814588146881478814888149881508815188152881538815488155881568815788158881598816088161881628816388164881658816688167881688816988170881718817288173881748817588176881778817888179881808818188182881838818488185881868818788188881898819088191881928819388194881958819688197881988819988200882018820288203882048820588206882078820888209882108821188212882138821488215882168821788218882198822088221882228822388224882258822688227882288822988230882318823288233882348823588236882378823888239882408824188242882438824488245882468824788248882498825088251882528825388254882558825688257882588825988260882618826288263882648826588266882678826888269882708827188272882738827488275882768827788278882798828088281882828828388284882858828688287882888828988290882918829288293882948829588296882978829888299883008830188302883038830488305883068830788308883098831088311883128831388314883158831688317883188831988320883218832288323883248832588326883278832888329883308833188332883338833488335883368833788338883398834088341883428834388344883458834688347883488834988350883518835288353883548835588356883578835888359883608836188362883638836488365883668836788368883698837088371883728837388374883758837688377883788837988380883818838288383883848838588386883878838888389883908839188392883938839488395883968839788398883998840088401884028840388404884058840688407884088840988410884118841288413884148841588416884178841888419884208842188422884238842488425884268842788428884298843088431884328843388434884358843688437884388843988440884418844288443884448844588446884478844888449884508845188452884538845488455884568845788458884598846088461884628846388464884658846688467884688846988470884718847288473884748847588476884778847888479884808848188482884838848488485884868848788488884898849088491884928849388494884958849688497884988849988500885018850288503885048850588506885078850888509885108851188512885138851488515885168851788518885198852088521885228852388524885258852688527885288852988530885318853288533885348853588536885378853888539885408854188542885438854488545885468854788548885498855088551885528855388554885558855688557885588855988560885618856288563885648856588566885678856888569885708857188572885738857488575885768857788578885798858088581885828858388584885858858688587885888858988590885918859288593885948859588596885978859888599886008860188602886038860488605886068860788608886098861088611886128861388614886158861688617886188861988620886218862288623886248862588626886278862888629886308863188632886338863488635886368863788638886398864088641886428864388644886458864688647886488864988650886518865288653886548865588656886578865888659886608866188662886638866488665886668866788668886698867088671886728867388674886758867688677886788867988680886818868288683886848868588686886878868888689886908869188692886938869488695886968869788698886998870088701887028870388704887058870688707887088870988710887118871288713887148871588716887178871888719887208872188722887238872488725887268872788728887298873088731887328873388734887358873688737887388873988740887418874288743887448874588746887478874888749887508875188752887538875488755887568875788758887598876088761887628876388764887658876688767887688876988770887718877288773887748877588776887778877888779887808878188782887838878488785887868878788788887898879088791887928879388794887958879688797887988879988800888018880288803888048880588806888078880888809888108881188812888138881488815888168881788818888198882088821888228882388824888258882688827888288882988830888318883288833888348883588836888378883888839888408884188842888438884488845888468884788848888498885088851888528885388854888558885688857888588885988860888618886288863888648886588866888678886888869888708887188872888738887488875888768887788878888798888088881888828888388884888858888688887888888888988890888918889288893888948889588896888978889888899889008890188902889038890488905889068890788908889098891088911889128891388914889158891688917889188891988920889218892288923889248892588926889278892888929889308893188932889338893488935889368893788938889398894088941889428894388944889458894688947889488894988950889518895288953889548895588956889578895888959889608896188962889638896488965889668896788968889698897088971889728897388974889758897688977889788897988980889818898288983889848898588986889878898888989889908899188992889938899488995889968899788998889998900089001890028900389004890058900689007890088900989010890118901289013890148901589016890178901889019890208902189022890238902489025890268902789028890298903089031890328903389034890358903689037890388903989040890418904289043890448904589046890478904889049890508905189052890538905489055890568905789058890598906089061890628906389064890658906689067890688906989070890718907289073890748907589076890778907889079890808908189082890838908489085890868908789088890898909089091890928909389094890958909689097890988909989100891018910289103891048910589106891078910889109891108911189112891138911489115891168911789118891198912089121891228912389124891258912689127891288912989130891318913289133891348913589136891378913889139891408914189142891438914489145891468914789148891498915089151891528915389154891558915689157891588915989160891618916289163891648916589166891678916889169891708917189172891738917489175891768917789178891798918089181891828918389184891858918689187891888918989190891918919289193891948919589196891978919889199892008920189202892038920489205892068920789208892098921089211892128921389214892158921689217892188921989220892218922289223892248922589226892278922889229892308923189232892338923489235892368923789238892398924089241892428924389244892458924689247892488924989250892518925289253892548925589256892578925889259892608926189262892638926489265892668926789268892698927089271892728927389274892758927689277892788927989280892818928289283892848928589286892878928889289892908929189292892938929489295892968929789298892998930089301893028930389304893058930689307893088930989310893118931289313893148931589316893178931889319893208932189322893238932489325893268932789328893298933089331893328933389334893358933689337893388933989340893418934289343893448934589346893478934889349893508935189352893538935489355893568935789358893598936089361893628936389364893658936689367893688936989370893718937289373893748937589376893778937889379893808938189382893838938489385893868938789388893898939089391893928939389394893958939689397893988939989400894018940289403894048940589406894078940889409894108941189412894138941489415894168941789418894198942089421894228942389424894258942689427894288942989430894318943289433894348943589436894378943889439894408944189442894438944489445894468944789448894498945089451894528945389454894558945689457894588945989460894618946289463894648946589466894678946889469894708947189472894738947489475894768947789478894798948089481894828948389484894858948689487894888948989490894918949289493894948949589496894978949889499895008950189502895038950489505895068950789508895098951089511895128951389514895158951689517895188951989520895218952289523895248952589526895278952889529895308953189532895338953489535895368953789538895398954089541895428954389544895458954689547895488954989550895518955289553895548955589556895578955889559895608956189562895638956489565895668956789568895698957089571895728957389574895758957689577895788957989580895818958289583895848958589586895878958889589895908959189592895938959489595895968959789598895998960089601896028960389604896058960689607896088960989610896118961289613896148961589616896178961889619896208962189622896238962489625896268962789628896298963089631896328963389634896358963689637896388963989640896418964289643896448964589646896478964889649896508965189652896538965489655896568965789658896598966089661896628966389664896658966689667896688966989670896718967289673896748967589676896778967889679896808968189682896838968489685896868968789688896898969089691896928969389694896958969689697896988969989700897018970289703897048970589706897078970889709897108971189712897138971489715897168971789718897198972089721897228972389724897258972689727897288972989730897318973289733897348973589736897378973889739897408974189742897438974489745897468974789748897498975089751897528975389754897558975689757897588975989760897618976289763897648976589766897678976889769897708977189772897738977489775897768977789778897798978089781897828978389784897858978689787897888978989790897918979289793897948979589796897978979889799898008980189802898038980489805898068980789808898098981089811898128981389814898158981689817898188981989820898218982289823898248982589826898278982889829898308983189832898338983489835898368983789838898398984089841898428984389844898458984689847898488984989850898518985289853898548985589856898578985889859898608986189862898638986489865898668986789868898698987089871898728987389874898758987689877898788987989880898818988289883898848988589886898878988889889898908989189892898938989489895898968989789898898998990089901899028990389904899058990689907899088990989910899118991289913899148991589916899178991889919899208992189922899238992489925899268992789928899298993089931899328993389934899358993689937899388993989940899418994289943899448994589946899478994889949899508995189952899538995489955899568995789958899598996089961899628996389964899658996689967899688996989970899718997289973899748997589976899778997889979899808998189982899838998489985899868998789988899898999089991899928999389994899958999689997899988999990000900019000290003900049000590006900079000890009900109001190012900139001490015900169001790018900199002090021900229002390024900259002690027900289002990030900319003290033900349003590036900379003890039900409004190042900439004490045900469004790048900499005090051900529005390054900559005690057900589005990060900619006290063900649006590066900679006890069900709007190072900739007490075900769007790078900799008090081900829008390084900859008690087900889008990090900919009290093900949009590096900979009890099901009010190102901039010490105901069010790108901099011090111901129011390114901159011690117901189011990120901219012290123901249012590126901279012890129901309013190132901339013490135901369013790138901399014090141901429014390144901459014690147901489014990150901519015290153901549015590156901579015890159901609016190162901639016490165901669016790168901699017090171901729017390174901759017690177901789017990180901819018290183901849018590186901879018890189901909019190192901939019490195901969019790198901999020090201902029020390204902059020690207902089020990210902119021290213902149021590216902179021890219902209022190222902239022490225902269022790228902299023090231902329023390234902359023690237902389023990240902419024290243902449024590246902479024890249902509025190252902539025490255902569025790258902599026090261902629026390264902659026690267902689026990270902719027290273902749027590276902779027890279902809028190282902839028490285902869028790288902899029090291902929029390294902959029690297902989029990300903019030290303903049030590306903079030890309903109031190312903139031490315903169031790318903199032090321903229032390324903259032690327903289032990330903319033290333903349033590336903379033890339903409034190342903439034490345903469034790348903499035090351903529035390354903559035690357903589035990360903619036290363903649036590366903679036890369903709037190372903739037490375903769037790378903799038090381903829038390384903859038690387903889038990390903919039290393903949039590396903979039890399904009040190402904039040490405904069040790408904099041090411904129041390414904159041690417904189041990420904219042290423904249042590426904279042890429904309043190432904339043490435904369043790438904399044090441904429044390444904459044690447904489044990450904519045290453904549045590456904579045890459904609046190462904639046490465904669046790468904699047090471904729047390474904759047690477904789047990480904819048290483904849048590486904879048890489904909049190492904939049490495904969049790498904999050090501905029050390504905059050690507905089050990510905119051290513905149051590516905179051890519905209052190522905239052490525905269052790528905299053090531905329053390534905359053690537905389053990540905419054290543905449054590546905479054890549905509055190552905539055490555905569055790558905599056090561905629056390564905659056690567905689056990570905719057290573905749057590576905779057890579905809058190582905839058490585905869058790588905899059090591905929059390594905959059690597905989059990600906019060290603906049060590606906079060890609906109061190612906139061490615906169061790618906199062090621906229062390624906259062690627906289062990630906319063290633906349063590636906379063890639906409064190642906439064490645906469064790648906499065090651906529065390654906559065690657906589065990660906619066290663906649066590666906679066890669906709067190672906739067490675906769067790678906799068090681906829068390684906859068690687906889068990690906919069290693906949069590696906979069890699907009070190702907039070490705907069070790708907099071090711907129071390714907159071690717907189071990720907219072290723907249072590726907279072890729907309073190732907339073490735907369073790738907399074090741907429074390744907459074690747907489074990750907519075290753907549075590756907579075890759907609076190762907639076490765907669076790768907699077090771907729077390774907759077690777907789077990780907819078290783907849078590786907879078890789907909079190792907939079490795907969079790798907999080090801908029080390804908059080690807908089080990810908119081290813908149081590816908179081890819908209082190822908239082490825908269082790828908299083090831908329083390834908359083690837908389083990840908419084290843908449084590846908479084890849908509085190852908539085490855908569085790858908599086090861908629086390864908659086690867908689086990870908719087290873908749087590876908779087890879908809088190882908839088490885908869088790888908899089090891908929089390894908959089690897908989089990900909019090290903909049090590906909079090890909909109091190912909139091490915909169091790918909199092090921909229092390924909259092690927909289092990930909319093290933909349093590936909379093890939909409094190942909439094490945909469094790948909499095090951909529095390954909559095690957909589095990960909619096290963909649096590966909679096890969909709097190972909739097490975909769097790978909799098090981909829098390984909859098690987909889098990990909919099290993909949099590996909979099890999910009100191002910039100491005910069100791008910099101091011910129101391014910159101691017910189101991020910219102291023910249102591026910279102891029910309103191032910339103491035910369103791038910399104091041910429104391044910459104691047910489104991050910519105291053910549105591056910579105891059910609106191062910639106491065910669106791068910699107091071910729107391074910759107691077910789107991080910819108291083910849108591086910879108891089910909109191092910939109491095910969109791098910999110091101911029110391104911059110691107911089110991110911119111291113911149111591116911179111891119911209112191122911239112491125911269112791128911299113091131911329113391134911359113691137911389113991140911419114291143911449114591146911479114891149911509115191152911539115491155911569115791158911599116091161911629116391164911659116691167911689116991170911719117291173911749117591176911779117891179911809118191182911839118491185911869118791188911899119091191911929119391194911959119691197911989119991200912019120291203912049120591206912079120891209912109121191212912139121491215912169121791218912199122091221912229122391224912259122691227912289122991230912319123291233912349123591236912379123891239912409124191242912439124491245912469124791248912499125091251912529125391254912559125691257912589125991260912619126291263912649126591266912679126891269912709127191272912739127491275912769127791278912799128091281912829128391284912859128691287912889128991290912919129291293912949129591296912979129891299913009130191302913039130491305913069130791308913099131091311913129131391314913159131691317913189131991320913219132291323913249132591326913279132891329913309133191332913339133491335913369133791338913399134091341913429134391344913459134691347913489134991350913519135291353913549135591356913579135891359913609136191362913639136491365913669136791368913699137091371913729137391374913759137691377913789137991380913819138291383913849138591386913879138891389913909139191392913939139491395913969139791398913999140091401914029140391404914059140691407914089140991410914119141291413914149141591416914179141891419914209142191422914239142491425914269142791428914299143091431914329143391434914359143691437914389143991440914419144291443914449144591446914479144891449914509145191452914539145491455914569145791458914599146091461914629146391464914659146691467914689146991470914719147291473914749147591476914779147891479914809148191482914839148491485914869148791488914899149091491914929149391494914959149691497914989149991500915019150291503915049150591506915079150891509915109151191512915139151491515915169151791518915199152091521915229152391524915259152691527915289152991530915319153291533915349153591536915379153891539915409154191542915439154491545915469154791548915499155091551915529155391554915559155691557915589155991560915619156291563915649156591566915679156891569915709157191572915739157491575915769157791578915799158091581915829158391584915859158691587915889158991590915919159291593915949159591596915979159891599916009160191602916039160491605916069160791608916099161091611916129161391614916159161691617916189161991620916219162291623916249162591626916279162891629916309163191632916339163491635916369163791638916399164091641916429164391644916459164691647916489164991650916519165291653916549165591656916579165891659916609166191662916639166491665916669166791668916699167091671916729167391674916759167691677916789167991680916819168291683916849168591686916879168891689916909169191692916939169491695916969169791698916999170091701917029170391704917059170691707917089170991710917119171291713917149171591716917179171891719917209172191722917239172491725917269172791728917299173091731917329173391734917359173691737917389173991740917419174291743917449174591746917479174891749917509175191752917539175491755917569175791758917599176091761917629176391764917659176691767917689176991770917719177291773917749177591776917779177891779917809178191782917839178491785917869178791788917899179091791917929179391794917959179691797917989179991800918019180291803918049180591806918079180891809918109181191812918139181491815918169181791818918199182091821918229182391824918259182691827918289182991830918319183291833918349183591836918379183891839918409184191842918439184491845918469184791848918499185091851918529185391854918559185691857918589185991860918619186291863918649186591866918679186891869918709187191872918739187491875918769187791878918799188091881918829188391884918859188691887918889188991890918919189291893918949189591896918979189891899919009190191902919039190491905919069190791908919099191091911919129191391914919159191691917919189191991920919219192291923919249192591926919279192891929919309193191932919339193491935919369193791938919399194091941919429194391944919459194691947919489194991950919519195291953919549195591956919579195891959919609196191962919639196491965919669196791968919699197091971919729197391974919759197691977919789197991980919819198291983919849198591986919879198891989919909199191992919939199491995919969199791998919999200092001920029200392004920059200692007920089200992010920119201292013920149201592016920179201892019920209202192022920239202492025920269202792028920299203092031920329203392034920359203692037920389203992040920419204292043920449204592046920479204892049920509205192052920539205492055920569205792058920599206092061920629206392064920659206692067920689206992070920719207292073920749207592076920779207892079920809208192082920839208492085920869208792088920899209092091920929209392094920959209692097920989209992100921019210292103921049210592106921079210892109921109211192112921139211492115921169211792118921199212092121921229212392124921259212692127921289212992130921319213292133921349213592136921379213892139921409214192142921439214492145921469214792148921499215092151921529215392154921559215692157921589215992160921619216292163921649216592166921679216892169921709217192172921739217492175921769217792178921799218092181921829218392184921859218692187921889218992190921919219292193921949219592196921979219892199922009220192202922039220492205922069220792208922099221092211922129221392214922159221692217922189221992220922219222292223922249222592226922279222892229922309223192232922339223492235922369223792238922399224092241922429224392244922459224692247922489224992250922519225292253922549225592256922579225892259922609226192262922639226492265922669226792268922699227092271922729227392274922759227692277922789227992280922819228292283922849228592286922879228892289922909229192292922939229492295922969229792298922999230092301923029230392304923059230692307923089230992310923119231292313923149231592316923179231892319923209232192322923239232492325923269232792328923299233092331923329233392334923359233692337923389233992340923419234292343923449234592346923479234892349923509235192352923539235492355923569235792358923599236092361923629236392364923659236692367923689236992370923719237292373923749237592376923779237892379923809238192382923839238492385923869238792388923899239092391923929239392394923959239692397923989239992400924019240292403924049240592406924079240892409924109241192412924139241492415924169241792418924199242092421924229242392424924259242692427924289242992430924319243292433924349243592436924379243892439924409244192442924439244492445924469244792448924499245092451924529245392454924559245692457924589245992460924619246292463924649246592466924679246892469924709247192472924739247492475924769247792478924799248092481924829248392484924859248692487924889248992490924919249292493924949249592496924979249892499925009250192502925039250492505925069250792508925099251092511925129251392514925159251692517925189251992520925219252292523925249252592526925279252892529925309253192532925339253492535925369253792538925399254092541925429254392544925459254692547925489254992550925519255292553925549255592556925579255892559925609256192562925639256492565925669256792568925699257092571925729257392574925759257692577925789257992580925819258292583925849258592586925879258892589925909259192592925939259492595925969259792598925999260092601926029260392604926059260692607926089260992610926119261292613926149261592616926179261892619926209262192622926239262492625926269262792628926299263092631926329263392634926359263692637926389263992640926419264292643926449264592646926479264892649926509265192652926539265492655926569265792658926599266092661926629266392664926659266692667926689266992670926719267292673926749267592676926779267892679926809268192682926839268492685926869268792688926899269092691926929269392694926959269692697926989269992700927019270292703927049270592706927079270892709927109271192712927139271492715927169271792718927199272092721927229272392724927259272692727927289272992730927319273292733927349273592736927379273892739927409274192742927439274492745927469274792748927499275092751927529275392754927559275692757927589275992760927619276292763927649276592766927679276892769927709277192772927739277492775927769277792778927799278092781927829278392784927859278692787927889278992790927919279292793927949279592796927979279892799928009280192802928039280492805928069280792808928099281092811928129281392814928159281692817928189281992820928219282292823928249282592826928279282892829928309283192832928339283492835928369283792838928399284092841928429284392844928459284692847928489284992850928519285292853928549285592856928579285892859928609286192862928639286492865928669286792868928699287092871928729287392874928759287692877928789287992880928819288292883928849288592886928879288892889928909289192892928939289492895928969289792898928999290092901929029290392904929059290692907929089290992910929119291292913929149291592916929179291892919929209292192922929239292492925929269292792928929299293092931929329293392934929359293692937929389293992940929419294292943929449294592946929479294892949929509295192952929539295492955929569295792958929599296092961929629296392964929659296692967929689296992970929719297292973929749297592976929779297892979929809298192982929839298492985929869298792988929899299092991929929299392994929959299692997929989299993000930019300293003930049300593006930079300893009930109301193012930139301493015930169301793018930199302093021930229302393024930259302693027930289302993030930319303293033930349303593036930379303893039930409304193042930439304493045930469304793048930499305093051930529305393054930559305693057930589305993060930619306293063930649306593066930679306893069930709307193072930739307493075930769307793078930799308093081930829308393084930859308693087930889308993090930919309293093930949309593096930979309893099931009310193102931039310493105931069310793108931099311093111931129311393114931159311693117931189311993120931219312293123931249312593126931279312893129931309313193132931339313493135931369313793138931399314093141931429314393144931459314693147931489314993150931519315293153931549315593156931579315893159931609316193162931639316493165931669316793168931699317093171931729317393174931759317693177931789317993180931819318293183931849318593186931879318893189931909319193192931939319493195931969319793198931999320093201932029320393204932059320693207932089320993210932119321293213932149321593216932179321893219932209322193222932239322493225932269322793228932299323093231932329323393234932359323693237932389323993240932419324293243932449324593246932479324893249932509325193252932539325493255932569325793258932599326093261932629326393264932659326693267932689326993270932719327293273932749327593276932779327893279932809328193282932839328493285932869328793288932899329093291932929329393294932959329693297932989329993300933019330293303933049330593306933079330893309933109331193312933139331493315933169331793318933199332093321933229332393324933259332693327933289332993330933319333293333933349333593336933379333893339933409334193342933439334493345933469334793348933499335093351933529335393354933559335693357933589335993360933619336293363933649336593366933679336893369933709337193372933739337493375933769337793378933799338093381933829338393384933859338693387933889338993390933919339293393933949339593396933979339893399934009340193402934039340493405934069340793408934099341093411934129341393414934159341693417934189341993420934219342293423934249342593426934279342893429934309343193432934339343493435934369343793438934399344093441934429344393444934459344693447934489344993450934519345293453934549345593456934579345893459934609346193462934639346493465934669346793468934699347093471934729347393474934759347693477934789347993480934819348293483934849348593486934879348893489934909349193492934939349493495934969349793498934999350093501935029350393504935059350693507935089350993510935119351293513935149351593516935179351893519935209352193522935239352493525935269352793528935299353093531935329353393534935359353693537935389353993540935419354293543935449354593546935479354893549935509355193552935539355493555935569355793558935599356093561935629356393564935659356693567935689356993570935719357293573935749357593576935779357893579935809358193582935839358493585935869358793588935899359093591935929359393594935959359693597935989359993600936019360293603936049360593606936079360893609936109361193612936139361493615936169361793618936199362093621936229362393624936259362693627936289362993630936319363293633936349363593636936379363893639936409364193642936439364493645936469364793648936499365093651936529365393654936559365693657936589365993660936619366293663936649366593666936679366893669936709367193672936739367493675936769367793678936799368093681936829368393684936859368693687936889368993690936919369293693936949369593696936979369893699937009370193702937039370493705937069370793708937099371093711937129371393714937159371693717937189371993720937219372293723937249372593726937279372893729937309373193732937339373493735937369373793738937399374093741937429374393744937459374693747937489374993750937519375293753937549375593756937579375893759937609376193762937639376493765937669376793768937699377093771937729377393774937759377693777937789377993780937819378293783937849378593786937879378893789937909379193792937939379493795937969379793798937999380093801938029380393804938059380693807938089380993810938119381293813938149381593816938179381893819938209382193822938239382493825938269382793828938299383093831938329383393834938359383693837938389383993840938419384293843938449384593846938479384893849938509385193852938539385493855938569385793858938599386093861938629386393864938659386693867938689386993870938719387293873938749387593876938779387893879938809388193882938839388493885938869388793888938899389093891938929389393894938959389693897938989389993900939019390293903939049390593906939079390893909939109391193912939139391493915939169391793918939199392093921939229392393924939259392693927939289392993930939319393293933939349393593936939379393893939939409394193942939439394493945939469394793948939499395093951939529395393954939559395693957939589395993960939619396293963939649396593966939679396893969939709397193972939739397493975939769397793978939799398093981939829398393984939859398693987939889398993990939919399293993939949399593996939979399893999940009400194002940039400494005940069400794008940099401094011940129401394014940159401694017940189401994020940219402294023940249402594026940279402894029940309403194032940339403494035940369403794038940399404094041940429404394044940459404694047940489404994050940519405294053940549405594056940579405894059940609406194062940639406494065940669406794068940699407094071940729407394074940759407694077940789407994080940819408294083940849408594086940879408894089940909409194092940939409494095940969409794098940999410094101941029410394104941059410694107941089410994110941119411294113941149411594116941179411894119941209412194122941239412494125941269412794128941299413094131941329413394134941359413694137941389413994140941419414294143941449414594146941479414894149941509415194152941539415494155941569415794158941599416094161941629416394164941659416694167941689416994170941719417294173941749417594176941779417894179941809418194182941839418494185941869418794188941899419094191941929419394194941959419694197941989419994200942019420294203942049420594206942079420894209942109421194212942139421494215942169421794218942199422094221942229422394224942259422694227942289422994230942319423294233942349423594236942379423894239942409424194242942439424494245942469424794248942499425094251942529425394254942559425694257942589425994260942619426294263942649426594266942679426894269942709427194272942739427494275942769427794278942799428094281942829428394284942859428694287942889428994290942919429294293942949429594296942979429894299943009430194302943039430494305943069430794308943099431094311943129431394314943159431694317943189431994320943219432294323943249432594326943279432894329943309433194332943339433494335943369433794338943399434094341943429434394344943459434694347943489434994350943519435294353943549435594356943579435894359943609436194362943639436494365943669436794368943699437094371943729437394374943759437694377943789437994380943819438294383943849438594386943879438894389943909439194392943939439494395943969439794398943999440094401944029440394404944059440694407944089440994410944119441294413944149441594416944179441894419944209442194422944239442494425944269442794428944299443094431944329443394434944359443694437944389443994440944419444294443944449444594446944479444894449944509445194452944539445494455944569445794458944599446094461944629446394464944659446694467944689446994470944719447294473944749447594476944779447894479944809448194482944839448494485944869448794488944899449094491944929449394494944959449694497944989449994500945019450294503945049450594506945079450894509945109451194512945139451494515945169451794518945199452094521945229452394524945259452694527945289452994530945319453294533945349453594536945379453894539945409454194542945439454494545945469454794548945499455094551945529455394554945559455694557945589455994560945619456294563945649456594566945679456894569945709457194572945739457494575945769457794578945799458094581945829458394584945859458694587945889458994590945919459294593945949459594596945979459894599946009460194602946039460494605946069460794608946099461094611946129461394614946159461694617946189461994620946219462294623946249462594626946279462894629946309463194632946339463494635946369463794638946399464094641946429464394644946459464694647946489464994650946519465294653946549465594656946579465894659946609466194662946639466494665946669466794668946699467094671946729467394674946759467694677946789467994680946819468294683946849468594686946879468894689946909469194692946939469494695946969469794698946999470094701947029470394704947059470694707947089470994710947119471294713947149471594716947179471894719947209472194722947239472494725947269472794728947299473094731947329473394734947359473694737947389473994740947419474294743947449474594746947479474894749947509475194752947539475494755947569475794758947599476094761947629476394764947659476694767947689476994770947719477294773947749477594776947779477894779947809478194782947839478494785947869478794788947899479094791947929479394794947959479694797947989479994800948019480294803948049480594806948079480894809948109481194812948139481494815948169481794818948199482094821948229482394824948259482694827948289482994830948319483294833948349483594836948379483894839948409484194842948439484494845948469484794848948499485094851948529485394854948559485694857948589485994860948619486294863948649486594866948679486894869948709487194872948739487494875948769487794878948799488094881948829488394884948859488694887948889488994890948919489294893948949489594896948979489894899949009490194902949039490494905949069490794908949099491094911949129491394914949159491694917949189491994920949219492294923949249492594926949279492894929949309493194932949339493494935949369493794938949399494094941949429494394944949459494694947949489494994950949519495294953949549495594956949579495894959949609496194962949639496494965949669496794968949699497094971949729497394974949759497694977949789497994980949819498294983949849498594986949879498894989949909499194992949939499494995949969499794998949999500095001950029500395004950059500695007950089500995010950119501295013950149501595016950179501895019950209502195022950239502495025950269502795028950299503095031950329503395034950359503695037950389503995040950419504295043950449504595046950479504895049950509505195052950539505495055950569505795058950599506095061950629506395064950659506695067950689506995070950719507295073950749507595076950779507895079950809508195082950839508495085950869508795088950899509095091950929509395094950959509695097950989509995100951019510295103951049510595106951079510895109951109511195112951139511495115951169511795118951199512095121951229512395124951259512695127951289512995130951319513295133951349513595136951379513895139951409514195142951439514495145951469514795148951499515095151951529515395154951559515695157951589515995160951619516295163951649516595166951679516895169951709517195172951739517495175951769517795178951799518095181951829518395184951859518695187951889518995190951919519295193951949519595196951979519895199952009520195202952039520495205952069520795208952099521095211952129521395214952159521695217952189521995220952219522295223952249522595226952279522895229952309523195232952339523495235952369523795238952399524095241952429524395244952459524695247952489524995250952519525295253952549525595256952579525895259952609526195262952639526495265952669526795268952699527095271952729527395274952759527695277952789527995280952819528295283952849528595286952879528895289952909529195292952939529495295952969529795298952999530095301953029530395304953059530695307953089530995310953119531295313953149531595316953179531895319953209532195322953239532495325953269532795328953299533095331953329533395334953359533695337953389533995340953419534295343953449534595346953479534895349953509535195352953539535495355953569535795358953599536095361953629536395364953659536695367953689536995370953719537295373953749537595376953779537895379953809538195382953839538495385953869538795388953899539095391953929539395394953959539695397953989539995400954019540295403954049540595406954079540895409954109541195412954139541495415954169541795418954199542095421954229542395424954259542695427954289542995430954319543295433954349543595436954379543895439954409544195442954439544495445954469544795448954499545095451954529545395454954559545695457954589545995460954619546295463954649546595466954679546895469954709547195472954739547495475954769547795478954799548095481954829548395484954859548695487954889548995490954919549295493954949549595496954979549895499955009550195502955039550495505955069550795508955099551095511955129551395514955159551695517955189551995520955219552295523955249552595526955279552895529955309553195532955339553495535955369553795538955399554095541955429554395544955459554695547955489554995550955519555295553955549555595556955579555895559955609556195562955639556495565955669556795568955699557095571955729557395574955759557695577955789557995580955819558295583955849558595586955879558895589955909559195592955939559495595955969559795598955999560095601956029560395604956059560695607956089560995610956119561295613956149561595616956179561895619956209562195622956239562495625956269562795628956299563095631956329563395634956359563695637956389563995640956419564295643956449564595646956479564895649956509565195652956539565495655956569565795658956599566095661956629566395664956659566695667956689566995670956719567295673956749567595676956779567895679956809568195682956839568495685956869568795688956899569095691956929569395694956959569695697956989569995700957019570295703957049570595706957079570895709957109571195712957139571495715957169571795718957199572095721957229572395724957259572695727957289572995730957319573295733957349573595736957379573895739957409574195742957439574495745957469574795748957499575095751957529575395754957559575695757957589575995760957619576295763957649576595766957679576895769957709577195772957739577495775957769577795778957799578095781957829578395784957859578695787957889578995790957919579295793957949579595796957979579895799958009580195802958039580495805958069580795808958099581095811958129581395814958159581695817958189581995820958219582295823958249582595826958279582895829958309583195832958339583495835958369583795838958399584095841958429584395844958459584695847958489584995850958519585295853958549585595856958579585895859958609586195862958639586495865958669586795868958699587095871958729587395874958759587695877958789587995880958819588295883958849588595886958879588895889958909589195892958939589495895958969589795898958999590095901959029590395904959059590695907959089590995910959119591295913959149591595916959179591895919959209592195922959239592495925959269592795928959299593095931959329593395934959359593695937959389593995940959419594295943959449594595946959479594895949959509595195952959539595495955959569595795958959599596095961959629596395964959659596695967959689596995970959719597295973959749597595976959779597895979959809598195982959839598495985959869598795988959899599095991959929599395994959959599695997959989599996000960019600296003960049600596006960079600896009960109601196012960139601496015960169601796018960199602096021960229602396024960259602696027960289602996030960319603296033960349603596036960379603896039960409604196042960439604496045960469604796048960499605096051960529605396054960559605696057960589605996060960619606296063960649606596066960679606896069960709607196072960739607496075960769607796078960799608096081960829608396084960859608696087960889608996090960919609296093960949609596096960979609896099961009610196102961039610496105961069610796108961099611096111961129611396114961159611696117961189611996120961219612296123961249612596126961279612896129961309613196132961339613496135961369613796138961399614096141961429614396144961459614696147961489614996150961519615296153961549615596156961579615896159961609616196162961639616496165961669616796168961699617096171961729617396174961759617696177961789617996180961819618296183961849618596186961879618896189961909619196192961939619496195961969619796198961999620096201962029620396204962059620696207962089620996210962119621296213962149621596216962179621896219962209622196222962239622496225962269622796228962299623096231962329623396234962359623696237962389623996240962419624296243962449624596246962479624896249962509625196252962539625496255962569625796258962599626096261962629626396264962659626696267962689626996270962719627296273962749627596276962779627896279962809628196282962839628496285962869628796288962899629096291962929629396294962959629696297962989629996300963019630296303963049630596306963079630896309963109631196312963139631496315963169631796318963199632096321963229632396324963259632696327963289632996330963319633296333963349633596336963379633896339963409634196342963439634496345963469634796348963499635096351963529635396354963559635696357963589635996360963619636296363963649636596366963679636896369963709637196372963739637496375963769637796378963799638096381963829638396384963859638696387963889638996390963919639296393963949639596396963979639896399964009640196402964039640496405964069640796408964099641096411964129641396414964159641696417964189641996420964219642296423964249642596426964279642896429964309643196432964339643496435964369643796438964399644096441964429644396444964459644696447964489644996450964519645296453964549645596456964579645896459964609646196462964639646496465964669646796468964699647096471964729647396474964759647696477964789647996480964819648296483964849648596486964879648896489964909649196492964939649496495964969649796498964999650096501965029650396504965059650696507965089650996510965119651296513965149651596516965179651896519965209652196522965239652496525965269652796528965299653096531965329653396534965359653696537965389653996540965419654296543965449654596546965479654896549965509655196552965539655496555965569655796558965599656096561965629656396564965659656696567965689656996570965719657296573965749657596576965779657896579965809658196582965839658496585965869658796588965899659096591965929659396594965959659696597965989659996600966019660296603966049660596606966079660896609966109661196612966139661496615966169661796618966199662096621966229662396624966259662696627966289662996630966319663296633966349663596636966379663896639966409664196642966439664496645966469664796648966499665096651966529665396654966559665696657966589665996660966619666296663966649666596666966679666896669966709667196672966739667496675966769667796678966799668096681966829668396684966859668696687966889668996690966919669296693966949669596696966979669896699967009670196702967039670496705967069670796708967099671096711967129671396714967159671696717967189671996720967219672296723967249672596726967279672896729967309673196732967339673496735967369673796738967399674096741967429674396744967459674696747967489674996750967519675296753967549675596756967579675896759967609676196762967639676496765967669676796768967699677096771967729677396774967759677696777967789677996780967819678296783967849678596786967879678896789967909679196792967939679496795967969679796798967999680096801968029680396804968059680696807968089680996810968119681296813968149681596816968179681896819968209682196822968239682496825968269682796828968299683096831968329683396834968359683696837968389683996840968419684296843968449684596846968479684896849968509685196852968539685496855968569685796858968599686096861968629686396864968659686696867968689686996870968719687296873968749687596876968779687896879968809688196882968839688496885968869688796888968899689096891968929689396894968959689696897968989689996900969019690296903969049690596906969079690896909969109691196912969139691496915969169691796918969199692096921969229692396924969259692696927969289692996930969319693296933969349693596936969379693896939969409694196942969439694496945969469694796948969499695096951969529695396954969559695696957969589695996960969619696296963969649696596966969679696896969969709697196972969739697496975969769697796978969799698096981969829698396984969859698696987969889698996990969919699296993969949699596996969979699896999970009700197002970039700497005970069700797008970099701097011970129701397014970159701697017970189701997020970219702297023970249702597026970279702897029970309703197032970339703497035970369703797038970399704097041970429704397044970459704697047970489704997050970519705297053970549705597056970579705897059970609706197062970639706497065970669706797068970699707097071970729707397074970759707697077970789707997080970819708297083970849708597086970879708897089970909709197092970939709497095970969709797098970999710097101971029710397104971059710697107971089710997110971119711297113971149711597116971179711897119971209712197122971239712497125971269712797128971299713097131971329713397134971359713697137971389713997140971419714297143971449714597146971479714897149971509715197152971539715497155971569715797158971599716097161971629716397164971659716697167971689716997170971719717297173971749717597176971779717897179971809718197182971839718497185971869718797188971899719097191971929719397194971959719697197971989719997200972019720297203972049720597206972079720897209972109721197212972139721497215972169721797218972199722097221972229722397224972259722697227972289722997230972319723297233972349723597236972379723897239972409724197242972439724497245972469724797248972499725097251972529725397254972559725697257972589725997260972619726297263972649726597266972679726897269972709727197272972739727497275972769727797278972799728097281972829728397284972859728697287972889728997290972919729297293972949729597296972979729897299973009730197302973039730497305973069730797308973099731097311973129731397314973159731697317973189731997320973219732297323973249732597326973279732897329973309733197332973339733497335973369733797338973399734097341973429734397344973459734697347973489734997350973519735297353973549735597356973579735897359973609736197362973639736497365973669736797368973699737097371973729737397374973759737697377973789737997380973819738297383973849738597386973879738897389973909739197392973939739497395973969739797398973999740097401974029740397404974059740697407974089740997410974119741297413974149741597416974179741897419974209742197422974239742497425974269742797428974299743097431974329743397434974359743697437974389743997440974419744297443974449744597446974479744897449974509745197452974539745497455974569745797458974599746097461974629746397464974659746697467974689746997470974719747297473974749747597476974779747897479974809748197482974839748497485974869748797488974899749097491974929749397494974959749697497974989749997500975019750297503975049750597506975079750897509975109751197512975139751497515975169751797518975199752097521975229752397524975259752697527975289752997530975319753297533975349753597536975379753897539975409754197542975439754497545975469754797548975499755097551975529755397554975559755697557975589755997560975619756297563975649756597566975679756897569975709757197572975739757497575975769757797578975799758097581975829758397584975859758697587975889758997590975919759297593975949759597596975979759897599976009760197602976039760497605976069760797608976099761097611976129761397614976159761697617976189761997620976219762297623976249762597626976279762897629976309763197632976339763497635976369763797638976399764097641976429764397644976459764697647976489764997650976519765297653976549765597656976579765897659976609766197662976639766497665976669766797668976699767097671976729767397674976759767697677976789767997680976819768297683976849768597686976879768897689976909769197692976939769497695976969769797698976999770097701977029770397704977059770697707977089770997710977119771297713977149771597716977179771897719977209772197722977239772497725977269772797728977299773097731977329773397734977359773697737977389773997740977419774297743977449774597746977479774897749977509775197752977539775497755977569775797758977599776097761977629776397764977659776697767977689776997770977719777297773977749777597776977779777897779977809778197782977839778497785977869778797788977899779097791977929779397794977959779697797977989779997800978019780297803978049780597806978079780897809978109781197812978139781497815978169781797818978199782097821978229782397824978259782697827978289782997830978319783297833978349783597836978379783897839978409784197842978439784497845978469784797848978499785097851978529785397854978559785697857978589785997860978619786297863978649786597866978679786897869978709787197872978739787497875978769787797878978799788097881978829788397884978859788697887978889788997890978919789297893978949789597896978979789897899979009790197902979039790497905979069790797908979099791097911979129791397914979159791697917979189791997920979219792297923979249792597926979279792897929979309793197932979339793497935979369793797938979399794097941979429794397944979459794697947979489794997950979519795297953979549795597956979579795897959979609796197962979639796497965979669796797968979699797097971979729797397974979759797697977979789797997980979819798297983979849798597986979879798897989979909799197992979939799497995979969799797998979999800098001980029800398004980059800698007980089800998010980119801298013980149801598016980179801898019980209802198022980239802498025980269802798028980299803098031980329803398034980359803698037980389803998040980419804298043980449804598046980479804898049980509805198052980539805498055980569805798058980599806098061980629806398064980659806698067980689806998070980719807298073980749807598076980779807898079980809808198082980839808498085980869808798088980899809098091980929809398094980959809698097980989809998100981019810298103981049810598106981079810898109981109811198112981139811498115981169811798118981199812098121981229812398124981259812698127981289812998130981319813298133981349813598136981379813898139981409814198142981439814498145981469814798148981499815098151981529815398154981559815698157981589815998160981619816298163981649816598166981679816898169981709817198172981739817498175981769817798178981799818098181981829818398184981859818698187981889818998190981919819298193981949819598196981979819898199982009820198202982039820498205982069820798208982099821098211982129821398214982159821698217982189821998220982219822298223982249822598226982279822898229982309823198232982339823498235982369823798238982399824098241982429824398244982459824698247982489824998250982519825298253982549825598256982579825898259982609826198262982639826498265982669826798268982699827098271982729827398274982759827698277982789827998280982819828298283982849828598286982879828898289982909829198292982939829498295982969829798298982999830098301983029830398304983059830698307983089830998310983119831298313983149831598316983179831898319983209832198322983239832498325983269832798328983299833098331983329833398334983359833698337983389833998340983419834298343983449834598346983479834898349983509835198352983539835498355983569835798358983599836098361983629836398364983659836698367983689836998370983719837298373983749837598376983779837898379983809838198382983839838498385983869838798388983899839098391983929839398394983959839698397983989839998400984019840298403984049840598406984079840898409984109841198412984139841498415984169841798418984199842098421984229842398424984259842698427984289842998430984319843298433984349843598436984379843898439984409844198442984439844498445984469844798448984499845098451984529845398454984559845698457984589845998460984619846298463984649846598466984679846898469984709847198472984739847498475984769847798478984799848098481984829848398484984859848698487984889848998490984919849298493984949849598496984979849898499985009850198502985039850498505985069850798508985099851098511985129851398514985159851698517985189851998520985219852298523985249852598526985279852898529985309853198532985339853498535985369853798538985399854098541985429854398544985459854698547985489854998550985519855298553985549855598556985579855898559985609856198562985639856498565985669856798568985699857098571985729857398574985759857698577985789857998580985819858298583985849858598586985879858898589985909859198592985939859498595985969859798598985999860098601986029860398604986059860698607986089860998610986119861298613986149861598616986179861898619986209862198622986239862498625986269862798628986299863098631986329863398634986359863698637986389863998640986419864298643986449864598646986479864898649986509865198652986539865498655986569865798658986599866098661986629866398664986659866698667986689866998670986719867298673986749867598676986779867898679986809868198682986839868498685986869868798688986899869098691986929869398694986959869698697986989869998700987019870298703987049870598706987079870898709987109871198712987139871498715987169871798718987199872098721987229872398724987259872698727987289872998730987319873298733987349873598736987379873898739987409874198742987439874498745987469874798748987499875098751987529875398754987559875698757987589875998760987619876298763987649876598766987679876898769987709877198772987739877498775987769877798778987799878098781987829878398784987859878698787987889878998790987919879298793987949879598796987979879898799988009880198802988039880498805988069880798808988099881098811988129881398814988159881698817988189881998820988219882298823988249882598826988279882898829988309883198832988339883498835988369883798838988399884098841988429884398844988459884698847988489884998850988519885298853988549885598856988579885898859988609886198862988639886498865988669886798868988699887098871988729887398874988759887698877988789887998880988819888298883988849888598886988879888898889988909889198892988939889498895988969889798898988999890098901989029890398904989059890698907989089890998910989119891298913989149891598916989179891898919989209892198922989239892498925989269892798928989299893098931989329893398934989359893698937989389893998940989419894298943989449894598946989479894898949989509895198952989539895498955989569895798958989599896098961989629896398964989659896698967989689896998970989719897298973989749897598976989779897898979989809898198982989839898498985989869898798988989899899098991989929899398994989959899698997989989899999000990019900299003990049900599006990079900899009990109901199012990139901499015990169901799018990199902099021990229902399024990259902699027990289902999030990319903299033990349903599036990379903899039990409904199042990439904499045990469904799048990499905099051990529905399054990559905699057990589905999060990619906299063990649906599066990679906899069990709907199072990739907499075990769907799078990799908099081990829908399084990859908699087990889908999090990919909299093990949909599096990979909899099991009910199102991039910499105991069910799108991099911099111991129911399114991159911699117991189911999120991219912299123991249912599126991279912899129991309913199132991339913499135991369913799138991399914099141991429914399144991459914699147991489914999150991519915299153991549915599156991579915899159991609916199162991639916499165991669916799168991699917099171991729917399174991759917699177991789917999180991819918299183991849918599186991879918899189991909919199192991939919499195991969919799198991999920099201992029920399204992059920699207992089920999210992119921299213992149921599216992179921899219992209922199222992239922499225992269922799228992299923099231992329923399234992359923699237992389923999240992419924299243992449924599246992479924899249992509925199252992539925499255992569925799258992599926099261992629926399264992659926699267992689926999270992719927299273992749927599276992779927899279992809928199282992839928499285992869928799288992899929099291992929929399294992959929699297992989929999300993019930299303993049930599306993079930899309993109931199312993139931499315993169931799318993199932099321993229932399324993259932699327993289932999330993319933299333993349933599336993379933899339993409934199342993439934499345993469934799348993499935099351993529935399354993559935699357993589935999360993619936299363993649936599366993679936899369993709937199372993739937499375993769937799378993799938099381993829938399384993859938699387993889938999390993919939299393993949939599396993979939899399994009940199402994039940499405994069940799408994099941099411994129941399414994159941699417994189941999420994219942299423994249942599426994279942899429994309943199432994339943499435994369943799438994399944099441994429944399444994459944699447994489944999450994519945299453994549945599456994579945899459994609946199462994639946499465994669946799468994699947099471994729947399474994759947699477994789947999480994819948299483994849948599486994879948899489994909949199492994939949499495994969949799498994999950099501995029950399504995059950699507995089950999510995119951299513995149951599516995179951899519995209952199522995239952499525995269952799528995299953099531995329953399534995359953699537995389953999540995419954299543995449954599546995479954899549995509955199552995539955499555995569955799558995599956099561995629956399564995659956699567995689956999570995719957299573995749957599576995779957899579995809958199582995839958499585995869958799588995899959099591995929959399594995959959699597995989959999600996019960299603996049960599606996079960899609996109961199612996139961499615996169961799618996199962099621996229962399624996259962699627996289962999630996319963299633996349963599636996379963899639996409964199642996439964499645996469964799648996499965099651996529965399654996559965699657996589965999660996619966299663996649966599666996679966899669996709967199672996739967499675996769967799678996799968099681996829968399684996859968699687996889968999690996919969299693996949969599696996979969899699997009970199702997039970499705997069970799708997099971099711997129971399714997159971699717997189971999720997219972299723997249972599726997279972899729997309973199732997339973499735997369973799738997399974099741997429974399744997459974699747997489974999750997519975299753997549975599756997579975899759997609976199762997639976499765997669976799768997699977099771997729977399774997759977699777997789977999780997819978299783997849978599786997879978899789997909979199792997939979499795997969979799798997999980099801998029980399804998059980699807998089980999810998119981299813998149981599816998179981899819998209982199822998239982499825998269982799828998299983099831998329983399834998359983699837998389983999840998419984299843998449984599846998479984899849998509985199852998539985499855998569985799858998599986099861998629986399864998659986699867998689986999870998719987299873998749987599876998779987899879998809988199882998839988499885998869988799888998899989099891998929989399894998959989699897998989989999900999019990299903999049990599906999079990899909999109991199912999139991499915999169991799918999199992099921999229992399924999259992699927999289992999930999319993299933999349993599936999379993899939999409994199942999439994499945999469994799948999499995099951999529995399954999559995699957999589995999960999619996299963999649996599966999679996899969999709997199972999739997499975999769997799978999799998099981999829998399984999859998699987999889998999990999919999299993999949999599996999979999899999100000100001100002100003100004100005100006100007100008100009100010100011100012100013100014100015100016100017100018100019100020100021100022100023100024100025100026100027100028100029100030100031100032100033100034100035100036100037100038100039100040100041100042100043100044100045100046100047100048100049100050100051100052100053100054100055100056100057100058100059100060100061100062100063100064100065100066100067100068100069100070100071100072100073100074100075100076100077100078100079100080100081100082100083100084100085100086100087100088100089100090100091100092100093100094100095100096100097100098100099100100100101100102100103100104100105100106100107100108100109100110100111100112100113100114100115100116100117100118100119100120100121100122100123100124100125100126100127100128100129100130100131100132100133100134100135100136100137100138100139100140100141100142100143100144100145100146100147100148100149100150100151100152100153100154100155100156100157100158100159100160100161100162100163100164100165100166100167100168100169100170100171100172100173100174100175100176100177100178100179100180100181100182100183100184100185100186100187100188100189100190100191100192100193100194100195100196100197100198100199100200100201100202100203100204100205100206100207100208100209100210100211100212100213100214100215100216100217100218100219100220100221100222100223100224100225100226100227100228100229100230100231100232100233100234100235100236100237100238100239100240100241100242100243100244100245100246100247100248100249100250100251100252100253100254100255100256100257100258100259100260100261100262100263100264100265100266100267100268100269100270100271100272100273100274100275100276100277100278100279100280100281100282100283100284100285100286100287100288100289100290100291100292100293100294100295100296100297100298100299100300100301100302100303100304100305100306100307100308100309100310100311100312100313100314100315100316100317100318100319100320100321100322100323100324100325100326100327100328100329100330100331100332100333100334100335100336100337100338100339100340100341100342100343100344100345100346100347100348100349100350100351100352100353100354100355100356100357100358100359100360100361100362100363100364100365100366100367100368100369100370100371100372100373100374100375100376100377100378100379100380100381100382100383100384100385100386100387100388100389100390100391100392100393100394100395100396100397100398100399100400100401100402100403100404100405100406100407100408100409100410100411100412100413100414100415100416100417100418100419100420100421100422100423100424100425100426100427100428100429100430100431100432100433100434100435100436100437100438100439100440100441100442100443100444100445100446100447100448100449100450100451100452100453100454100455100456100457100458100459100460100461100462100463100464100465100466100467100468100469100470100471100472100473100474100475100476100477100478100479100480100481100482100483100484100485100486100487100488100489100490100491100492100493100494100495100496100497100498100499100500100501100502100503100504100505100506100507100508100509100510100511100512100513100514100515100516100517100518100519100520100521100522100523100524100525100526100527100528100529100530100531100532100533100534100535100536100537100538100539100540100541100542100543100544100545100546100547100548100549100550100551100552100553100554100555100556100557100558100559100560100561100562100563100564100565100566100567100568100569100570100571100572100573100574100575100576100577100578100579100580100581100582100583100584100585100586100587100588100589100590100591100592100593100594100595100596100597100598100599100600100601100602100603100604100605100606100607100608100609100610100611100612100613100614100615100616100617100618100619100620100621100622100623100624100625100626100627100628100629100630100631100632100633100634100635100636100637100638100639100640100641100642100643100644100645100646100647100648100649100650100651100652100653100654100655100656100657100658100659100660100661100662100663100664100665100666100667100668100669100670100671100672100673100674100675100676100677100678100679100680100681100682100683100684100685100686100687100688100689100690100691100692100693100694100695100696100697100698100699100700100701100702100703100704100705100706100707100708100709100710100711100712100713100714100715100716100717100718100719100720100721100722100723100724100725100726100727100728100729100730100731100732100733100734100735100736100737100738100739100740100741100742100743100744100745100746100747100748100749100750100751100752100753100754100755100756100757100758100759100760100761100762100763100764100765100766100767100768100769100770100771100772100773100774100775100776100777100778100779100780100781100782100783100784100785100786100787100788100789100790100791100792100793100794100795100796100797100798100799100800100801100802100803100804100805100806100807100808100809100810100811100812100813100814100815100816100817100818100819100820100821100822100823100824100825100826100827100828100829100830100831100832100833100834100835100836100837100838100839100840100841100842100843100844100845100846100847100848100849100850100851100852100853100854100855100856100857100858100859100860100861100862100863100864100865100866100867100868100869100870100871100872100873100874100875100876100877100878100879100880100881100882100883100884100885100886100887100888100889100890100891100892100893100894100895100896100897100898100899100900100901100902100903100904100905100906100907100908100909100910100911100912100913100914100915100916100917100918100919100920100921100922100923100924100925100926100927100928100929100930100931100932100933100934100935100936100937100938100939100940100941100942100943100944100945100946100947100948100949100950100951100952100953100954100955100956100957100958100959100960100961100962100963100964100965100966100967100968100969100970100971100972100973100974100975100976100977100978100979100980100981100982100983100984100985100986100987100988100989100990100991100992100993100994100995100996100997100998100999101000101001101002101003101004101005101006101007101008101009101010101011101012101013101014101015101016101017101018101019101020101021101022101023101024101025101026101027101028101029101030101031101032101033101034101035101036101037101038101039101040101041101042101043101044101045101046101047101048101049101050101051101052101053101054101055101056101057101058101059101060101061101062101063101064101065101066101067101068101069101070101071101072101073101074101075101076101077101078101079101080101081101082101083101084101085101086101087101088101089101090101091101092101093101094101095101096101097101098101099101100101101101102101103101104101105101106101107101108101109101110101111101112101113101114101115101116101117101118101119101120101121101122101123101124101125101126101127101128101129101130101131101132101133101134101135101136101137101138101139101140101141101142101143101144101145101146101147101148101149101150101151101152101153101154101155101156101157101158101159101160101161101162101163101164101165101166101167101168101169101170101171101172101173101174101175101176101177101178101179101180101181101182101183101184101185101186101187101188101189101190101191101192101193101194101195101196101197101198101199101200101201101202101203101204101205101206101207101208101209101210101211101212101213101214101215101216101217101218101219101220101221101222101223101224101225101226101227101228101229101230101231101232101233101234101235101236101237101238101239101240101241101242101243101244101245101246101247101248101249101250101251101252101253101254101255101256101257101258101259101260101261101262101263101264101265101266101267101268101269101270101271101272101273101274101275101276101277101278101279101280101281101282101283101284101285101286101287101288101289101290101291101292101293101294101295101296101297101298101299101300101301101302101303101304101305101306101307101308101309101310101311101312101313101314101315101316101317101318101319101320101321101322101323101324101325101326101327101328101329101330101331101332101333101334101335101336101337101338101339101340101341101342101343101344101345101346101347101348101349101350101351101352101353101354101355101356101357101358101359101360101361101362101363101364101365101366101367101368101369101370101371101372101373101374101375101376101377101378101379101380101381101382101383101384101385101386101387101388101389101390101391101392101393101394101395101396101397101398101399101400101401101402101403101404101405101406101407101408101409101410101411101412101413101414101415101416101417101418101419101420101421101422101423101424101425101426101427101428101429101430101431101432101433101434101435101436101437101438101439101440101441101442101443101444101445101446101447101448101449101450101451101452101453101454101455101456101457101458101459101460101461101462101463101464101465101466101467101468101469101470101471101472101473101474101475101476101477101478101479101480101481101482101483101484101485101486101487101488101489101490101491101492101493101494101495101496101497101498101499101500101501101502101503101504101505101506101507101508101509101510101511101512101513101514101515101516101517101518101519101520101521101522101523101524101525101526101527101528101529101530101531101532101533101534101535101536101537101538101539101540101541101542101543101544101545101546101547101548101549101550101551101552101553101554101555101556101557101558101559101560101561101562101563101564101565101566101567101568101569101570101571101572101573101574101575101576101577101578101579101580
  1. exports.load = function(_cli_pkg_requires) {
  2. // make sure to keep this as 'var'
  3. // we don't want block scoping
  4. var dartNodePreambleSelf = typeof global !== "undefined" ? global : window;
  5. var self = Object.create(dartNodePreambleSelf);
  6. self.scheduleImmediate = typeof setImmediate !== "undefined"
  7. ? function (cb) {
  8. setImmediate(cb);
  9. }
  10. : function(cb) {
  11. setTimeout(cb, 0);
  12. };
  13. // CommonJS globals.
  14. self.exports = exports;
  15. // Node.js specific exports, check to see if they exist & or polyfilled
  16. if (typeof process !== "undefined") {
  17. self.process = process;
  18. }
  19. if (typeof __dirname !== "undefined") {
  20. self.__dirname = __dirname;
  21. }
  22. if (typeof __filename !== "undefined") {
  23. self.__filename = __filename;
  24. }
  25. if (typeof Buffer !== "undefined") {
  26. self.Buffer = Buffer;
  27. }
  28. // if we're running in a browser, Dart supports most of this out of box
  29. // make sure we only run these in Node.js environment
  30. var dartNodeIsActuallyNode = !dartNodePreambleSelf.window
  31. try {
  32. // Check if we're in a Web Worker instead.
  33. if ("undefined" !== typeof WorkerGlobalScope && dartNodePreambleSelf instanceof WorkerGlobalScope) {
  34. dartNodeIsActuallyNode = false;
  35. }
  36. // Check if we're in Electron, with Node.js integration, and override if true.
  37. if ("undefined" !== typeof process && process.versions && process.versions.hasOwnProperty('electron') && process.versions.hasOwnProperty('node')) {
  38. dartNodeIsActuallyNode = true;
  39. }
  40. } catch(e) {}
  41. if (dartNodeIsActuallyNode) {
  42. // This line is to:
  43. // 1) Prevent Webpack from bundling.
  44. // 2) In Webpack on Node.js, make sure we're using the native Node.js require, which is available via __non_webpack_require__
  45. // https://github.com/mbullington/node_preamble.dart/issues/18#issuecomment-527305561
  46. var url = ("undefined" !== typeof __webpack_require__ ? __non_webpack_require__ : require)("url");
  47. // Setting `self.location=` in Electron throws a `TypeError`, so we define it
  48. // as a property instead to be safe.
  49. Object.defineProperty(self, "location", {
  50. value: {
  51. get href() {
  52. if (url.pathToFileURL) {
  53. return url.pathToFileURL(process.cwd()).href + "/";
  54. } else {
  55. // This isn't really a correct transformation, but it's the best we have
  56. // for versions of Node <10.12.0 which introduced `url.pathToFileURL()`.
  57. // For example, it will fail for paths that contain characters that need
  58. // to be escaped in URLs.
  59. return "file://" + (function() {
  60. var cwd = process.cwd();
  61. if (process.platform != "win32") return cwd;
  62. return "/" + cwd.replace(/\\/g, "/");
  63. })() + "/"
  64. }
  65. }
  66. }
  67. });
  68. (function() {
  69. function computeCurrentScript() {
  70. try {
  71. throw new Error();
  72. } catch(e) {
  73. var stack = e.stack;
  74. var re = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg");
  75. var lastMatch = null;
  76. do {
  77. var match = re.exec(stack);
  78. if (match != null) lastMatch = match;
  79. } while (match != null);
  80. return lastMatch[1];
  81. }
  82. }
  83. // Setting `self.document=` isn't known to throw an error anywhere like
  84. // `self.location=` does on Electron, but it's better to be future-proof
  85. // just in case..
  86. var cachedCurrentScript = null;
  87. Object.defineProperty(self, "document", {
  88. value: {
  89. get currentScript() {
  90. if (cachedCurrentScript == null) {
  91. cachedCurrentScript = {src: computeCurrentScript()};
  92. }
  93. return cachedCurrentScript;
  94. }
  95. }
  96. });
  97. })();
  98. self.dartDeferredLibraryLoader = function(uri, successCallback, errorCallback) {
  99. try {
  100. load(uri);
  101. successCallback();
  102. } catch (error) {
  103. errorCallback(error);
  104. }
  105. };
  106. }
  107. self.util = require("util");
  108. self.immutable = require("immutable");
  109. self.fs = require("fs");
  110. self.chokidar = _cli_pkg_requires.chokidar;
  111. self.readline = _cli_pkg_requires.readline;
  112. // Generated by dart2js (NullSafetyMode.sound, trust primitives, omit checks, lax runtime type, deferred-serialization, csp), the Dart to JavaScript compiler version: 2.18.6.
  113. // The code supports the following hooks:
  114. // dartPrint(message):
  115. // if this function is defined it is called instead of the Dart [print]
  116. // method.
  117. //
  118. // dartMainRunner(main, args):
  119. // if this function is defined, the Dart [main] method will not be invoked
  120. // directly. Instead, a closure that will invoke [main], and its arguments
  121. // [args] is passed to [dartMainRunner].
  122. //
  123. // dartDeferredLibraryLoader(uri, successCallback, errorCallback, loadId):
  124. // if this function is defined, it will be called when a deferred library
  125. // is loaded. It should load and eval the javascript of `uri`, and call
  126. // successCallback. If it fails to do so, it should call errorCallback with
  127. // an error. The loadId argument is the deferred import that resulted in
  128. // this uri being loaded.
  129. //
  130. // dartCallInstrumentation(id, qualifiedName):
  131. // if this function is defined, it will be called at each entry of a
  132. // method or constructor. Used only when compiling programs with
  133. // --experiment-call-instrumentation.
  134. (function dartProgram() {
  135. function copyProperties(from, to) {
  136. var keys = Object.keys(from);
  137. for (var i = 0; i < keys.length; i++) {
  138. var key = keys[i];
  139. to[key] = from[key];
  140. }
  141. }
  142. function mixinPropertiesHard(from, to) {
  143. var keys = Object.keys(from);
  144. for (var i = 0; i < keys.length; i++) {
  145. var key = keys[i];
  146. if (!to.hasOwnProperty(key))
  147. to[key] = from[key];
  148. }
  149. }
  150. function mixinPropertiesEasy(from, to) {
  151. Object.assign(to, from);
  152. }
  153. var supportsDirectProtoAccess = function() {
  154. var cls = function() {
  155. };
  156. cls.prototype = {p: {}};
  157. var object = new cls();
  158. if (!(object.__proto__ && object.__proto__.p === cls.prototype.p))
  159. return false;
  160. try {
  161. if (typeof navigator != "undefined" && typeof navigator.userAgent == "string" && navigator.userAgent.indexOf("Chrome/") >= 0)
  162. return true;
  163. if (typeof version == "function" && version.length == 0) {
  164. var v = version();
  165. if (/^\d+\.\d+\.\d+\.\d+$/.test(v))
  166. return true;
  167. }
  168. } catch (_) {
  169. }
  170. return false;
  171. }();
  172. function inherit(cls, sup) {
  173. cls.prototype.constructor = cls;
  174. cls.prototype["$is" + cls.name] = cls;
  175. if (sup != null) {
  176. if (supportsDirectProtoAccess) {
  177. cls.prototype.__proto__ = sup.prototype;
  178. return;
  179. }
  180. var clsPrototype = Object.create(sup.prototype);
  181. copyProperties(cls.prototype, clsPrototype);
  182. cls.prototype = clsPrototype;
  183. }
  184. }
  185. function inheritMany(sup, classes) {
  186. for (var i = 0; i < classes.length; i++)
  187. inherit(classes[i], sup);
  188. }
  189. function mixinEasy(cls, mixin) {
  190. mixinPropertiesEasy(mixin.prototype, cls.prototype);
  191. cls.prototype.constructor = cls;
  192. }
  193. function mixinHard(cls, mixin) {
  194. mixinPropertiesHard(mixin.prototype, cls.prototype);
  195. cls.prototype.constructor = cls;
  196. }
  197. function lazyOld(holder, name, getterName, initializer) {
  198. var uninitializedSentinel = holder;
  199. holder[name] = uninitializedSentinel;
  200. holder[getterName] = function() {
  201. holder[getterName] = function() {
  202. A.throwCyclicInit(name);
  203. };
  204. var result;
  205. var sentinelInProgress = initializer;
  206. try {
  207. if (holder[name] === uninitializedSentinel) {
  208. result = holder[name] = sentinelInProgress;
  209. result = holder[name] = initializer();
  210. } else
  211. result = holder[name];
  212. } finally {
  213. if (result === sentinelInProgress)
  214. holder[name] = null;
  215. holder[getterName] = function() {
  216. return this[name];
  217. };
  218. }
  219. return result;
  220. };
  221. }
  222. function lazy(holder, name, getterName, initializer) {
  223. var uninitializedSentinel = holder;
  224. holder[name] = uninitializedSentinel;
  225. holder[getterName] = function() {
  226. if (holder[name] === uninitializedSentinel)
  227. holder[name] = initializer();
  228. holder[getterName] = function() {
  229. return this[name];
  230. };
  231. return holder[name];
  232. };
  233. }
  234. function lazyFinal(holder, name, getterName, initializer) {
  235. var uninitializedSentinel = holder;
  236. holder[name] = uninitializedSentinel;
  237. holder[getterName] = function() {
  238. if (holder[name] === uninitializedSentinel) {
  239. var value = initializer();
  240. if (holder[name] !== uninitializedSentinel)
  241. A.throwLateFieldADI(name);
  242. holder[name] = value;
  243. }
  244. var finalValue = holder[name];
  245. holder[getterName] = function() {
  246. return finalValue;
  247. };
  248. return finalValue;
  249. };
  250. }
  251. function makeConstList(list) {
  252. list.immutable$list = Array;
  253. list.fixed$length = Array;
  254. return list;
  255. }
  256. function convertToFastObject(properties) {
  257. function t() {
  258. }
  259. t.prototype = properties;
  260. new t();
  261. return properties;
  262. }
  263. function convertAllToFastObject(arrayOfObjects) {
  264. for (var i = 0; i < arrayOfObjects.length; ++i)
  265. convertToFastObject(arrayOfObjects[i]);
  266. }
  267. var functionCounter = 0;
  268. function instanceTearOffGetter(isIntercepted, parameters) {
  269. var cache = null;
  270. return isIntercepted ? function(receiver) {
  271. if (cache === null)
  272. cache = A.closureFromTearOff(parameters);
  273. return new cache(receiver, this);
  274. } : function() {
  275. if (cache === null)
  276. cache = A.closureFromTearOff(parameters);
  277. return new cache(this, null);
  278. };
  279. }
  280. function staticTearOffGetter(parameters) {
  281. var cache = null;
  282. return function() {
  283. if (cache === null)
  284. cache = A.closureFromTearOff(parameters).prototype;
  285. return cache;
  286. };
  287. }
  288. var typesOffset = 0;
  289. function tearOffParameters(container, isStatic, isIntercepted, requiredParameterCount, optionalParameterDefaultValues, callNames, funsOrNames, funType, applyIndex, needsDirectAccess) {
  290. if (typeof funType == "number")
  291. funType += typesOffset;
  292. return {co: container, iS: isStatic, iI: isIntercepted, rC: requiredParameterCount, dV: optionalParameterDefaultValues, cs: callNames, fs: funsOrNames, fT: funType, aI: applyIndex || 0, nDA: needsDirectAccess};
  293. }
  294. function installStaticTearOff(holder, getterName, requiredParameterCount, optionalParameterDefaultValues, callNames, funsOrNames, funType, applyIndex) {
  295. var parameters = tearOffParameters(holder, true, false, requiredParameterCount, optionalParameterDefaultValues, callNames, funsOrNames, funType, applyIndex, false);
  296. var getterFunction = staticTearOffGetter(parameters);
  297. holder[getterName] = getterFunction;
  298. }
  299. function installInstanceTearOff(prototype, getterName, isIntercepted, requiredParameterCount, optionalParameterDefaultValues, callNames, funsOrNames, funType, applyIndex, needsDirectAccess) {
  300. isIntercepted = !!isIntercepted;
  301. var parameters = tearOffParameters(prototype, false, isIntercepted, requiredParameterCount, optionalParameterDefaultValues, callNames, funsOrNames, funType, applyIndex, !!needsDirectAccess);
  302. var getterFunction = instanceTearOffGetter(isIntercepted, parameters);
  303. prototype[getterName] = getterFunction;
  304. }
  305. function setOrUpdateInterceptorsByTag(newTags) {
  306. var tags = init.interceptorsByTag;
  307. if (!tags) {
  308. init.interceptorsByTag = newTags;
  309. return;
  310. }
  311. copyProperties(newTags, tags);
  312. }
  313. function setOrUpdateLeafTags(newTags) {
  314. var tags = init.leafTags;
  315. if (!tags) {
  316. init.leafTags = newTags;
  317. return;
  318. }
  319. copyProperties(newTags, tags);
  320. }
  321. function updateTypes(newTypes) {
  322. var types = init.types;
  323. var length = types.length;
  324. types.push.apply(types, newTypes);
  325. return length;
  326. }
  327. function updateHolder(holder, newHolder) {
  328. copyProperties(newHolder, holder);
  329. return holder;
  330. }
  331. var hunkHelpers = function() {
  332. var mkInstance = function(isIntercepted, requiredParameterCount, optionalParameterDefaultValues, callNames, applyIndex) {
  333. return function(container, getterName, name, funType) {
  334. return installInstanceTearOff(container, getterName, isIntercepted, requiredParameterCount, optionalParameterDefaultValues, callNames, [name], funType, applyIndex, false);
  335. };
  336. },
  337. mkStatic = function(requiredParameterCount, optionalParameterDefaultValues, callNames, applyIndex) {
  338. return function(container, getterName, name, funType) {
  339. return installStaticTearOff(container, getterName, requiredParameterCount, optionalParameterDefaultValues, callNames, [name], funType, applyIndex);
  340. };
  341. };
  342. return {inherit: inherit, inheritMany: inheritMany, mixin: mixinEasy, mixinHard: mixinHard, installStaticTearOff: installStaticTearOff, installInstanceTearOff: installInstanceTearOff, _instance_0u: mkInstance(0, 0, null, ["call$0"], 0), _instance_1u: mkInstance(0, 1, null, ["call$1"], 0), _instance_2u: mkInstance(0, 2, null, ["call$2"], 0), _instance_0i: mkInstance(1, 0, null, ["call$0"], 0), _instance_1i: mkInstance(1, 1, null, ["call$1"], 0), _instance_2i: mkInstance(1, 2, null, ["call$2"], 0), _static_0: mkStatic(0, null, ["call$0"], 0), _static_1: mkStatic(1, null, ["call$1"], 0), _static_2: mkStatic(2, null, ["call$2"], 0), makeConstList: makeConstList, lazy: lazy, lazyFinal: lazyFinal, lazyOld: lazyOld, updateHolder: updateHolder, convertToFastObject: convertToFastObject, updateTypes: updateTypes, setOrUpdateInterceptorsByTag: setOrUpdateInterceptorsByTag, setOrUpdateLeafTags: setOrUpdateLeafTags};
  343. }();
  344. function initializeDeferredHunk(hunk) {
  345. typesOffset = init.types.length;
  346. hunk(hunkHelpers, init, holders, $);
  347. }
  348. var A = {JS_CONST: function JS_CONST() {
  349. },
  350. CastIterable_CastIterable(source, $S, $T) {
  351. if ($S._eval$1("EfficientLengthIterable<0>")._is(source))
  352. return new A._EfficientLengthCastIterable(source, $S._eval$1("@<0>")._bind$1($T)._eval$1("_EfficientLengthCastIterable<1,2>"));
  353. return new A.CastIterable(source, $S._eval$1("@<0>")._bind$1($T)._eval$1("CastIterable<1,2>"));
  354. },
  355. LateError$fieldADI(fieldName) {
  356. return new A.LateError("Field '" + fieldName + "' has been assigned during initialization.");
  357. },
  358. LateError$fieldNI(fieldName) {
  359. return new A.LateError("Field '" + fieldName + "' has not been initialized.");
  360. },
  361. LateError$localNI(localName) {
  362. return new A.LateError("Local '" + localName + "' has not been initialized.");
  363. },
  364. LateError$fieldAI(fieldName) {
  365. return new A.LateError("Field '" + fieldName + "' has already been initialized.");
  366. },
  367. hexDigitValue(char) {
  368. var letter,
  369. digit = char ^ 48;
  370. if (digit <= 9)
  371. return digit;
  372. letter = char | 32;
  373. if (97 <= letter && letter <= 102)
  374. return letter - 87;
  375. return -1;
  376. },
  377. SystemHash_combine(hash, value) {
  378. hash = hash + value & 536870911;
  379. hash = hash + ((hash & 524287) << 10) & 536870911;
  380. return hash ^ hash >>> 6;
  381. },
  382. SystemHash_finish(hash) {
  383. hash = hash + ((hash & 67108863) << 3) & 536870911;
  384. hash ^= hash >>> 11;
  385. return hash + ((hash & 16383) << 15) & 536870911;
  386. },
  387. checkNotNullable(value, $name, $T) {
  388. return value;
  389. },
  390. SubListIterable$(_iterable, _start, _endOrLength, $E) {
  391. A.RangeError_checkNotNegative(_start, "start");
  392. if (_endOrLength != null) {
  393. A.RangeError_checkNotNegative(_endOrLength, "end");
  394. if (_start > _endOrLength)
  395. A.throwExpression(A.RangeError$range(_start, 0, _endOrLength, "start", null));
  396. }
  397. return new A.SubListIterable(_iterable, _start, _endOrLength, $E._eval$1("SubListIterable<0>"));
  398. },
  399. MappedIterable_MappedIterable(iterable, $function, $S, $T) {
  400. if (type$.EfficientLengthIterable_dynamic._is(iterable))
  401. return new A.EfficientLengthMappedIterable(iterable, $function, $S._eval$1("@<0>")._bind$1($T)._eval$1("EfficientLengthMappedIterable<1,2>"));
  402. return new A.MappedIterable(iterable, $function, $S._eval$1("@<0>")._bind$1($T)._eval$1("MappedIterable<1,2>"));
  403. },
  404. TakeIterable_TakeIterable(iterable, takeCount, $E) {
  405. var _s9_ = "takeCount";
  406. A.ArgumentError_checkNotNull(takeCount, _s9_);
  407. A.RangeError_checkNotNegative(takeCount, _s9_);
  408. if (type$.EfficientLengthIterable_dynamic._is(iterable))
  409. return new A.EfficientLengthTakeIterable(iterable, takeCount, $E._eval$1("EfficientLengthTakeIterable<0>"));
  410. return new A.TakeIterable(iterable, takeCount, $E._eval$1("TakeIterable<0>"));
  411. },
  412. SkipIterable_SkipIterable(iterable, count, $E) {
  413. var _s5_ = "count";
  414. if (type$.EfficientLengthIterable_dynamic._is(iterable)) {
  415. A.ArgumentError_checkNotNull(count, _s5_);
  416. A.RangeError_checkNotNegative(count, _s5_);
  417. return new A.EfficientLengthSkipIterable(iterable, count, $E._eval$1("EfficientLengthSkipIterable<0>"));
  418. }
  419. A.ArgumentError_checkNotNull(count, _s5_);
  420. A.RangeError_checkNotNegative(count, _s5_);
  421. return new A.SkipIterable(iterable, count, $E._eval$1("SkipIterable<0>"));
  422. },
  423. FollowedByIterable_FollowedByIterable$firstEfficient(first, second, $E) {
  424. if ($E._eval$1("EfficientLengthIterable<0>")._is(second))
  425. return new A.EfficientLengthFollowedByIterable(first, second, $E._eval$1("EfficientLengthFollowedByIterable<0>"));
  426. return new A.FollowedByIterable(first, second, $E._eval$1("FollowedByIterable<0>"));
  427. },
  428. IterableElementError_noElement() {
  429. return new A.StateError("No element");
  430. },
  431. IterableElementError_tooMany() {
  432. return new A.StateError("Too many elements");
  433. },
  434. IterableElementError_tooFew() {
  435. return new A.StateError("Too few elements");
  436. },
  437. Sort_sort(a, compare) {
  438. A.Sort__doSort(a, 0, J.get$length$asx(a) - 1, compare);
  439. },
  440. Sort__doSort(a, left, right, compare) {
  441. if (right - left <= 32)
  442. A.Sort__insertionSort(a, left, right, compare);
  443. else
  444. A.Sort__dualPivotQuicksort(a, left, right, compare);
  445. },
  446. Sort__insertionSort(a, left, right, compare) {
  447. var i, t1, el, j, j0;
  448. for (i = left + 1, t1 = J.getInterceptor$asx(a); i <= right; ++i) {
  449. el = t1.$index(a, i);
  450. j = i;
  451. while (true) {
  452. if (!(j > left && compare.call$2(t1.$index(a, j - 1), el) > 0))
  453. break;
  454. j0 = j - 1;
  455. t1.$indexSet(a, j, t1.$index(a, j0));
  456. j = j0;
  457. }
  458. t1.$indexSet(a, j, el);
  459. }
  460. },
  461. Sort__dualPivotQuicksort(a, left, right, compare) {
  462. var t0, less, great, k, ak, comp, great0, less0, pivots_are_equal, t2,
  463. sixth = B.JSInt_methods._tdivFast$1(right - left + 1, 6),
  464. index1 = left + sixth,
  465. index5 = right - sixth,
  466. index3 = B.JSInt_methods._tdivFast$1(left + right, 2),
  467. index2 = index3 - sixth,
  468. index4 = index3 + sixth,
  469. t1 = J.getInterceptor$asx(a),
  470. el1 = t1.$index(a, index1),
  471. el2 = t1.$index(a, index2),
  472. el3 = t1.$index(a, index3),
  473. el4 = t1.$index(a, index4),
  474. el5 = t1.$index(a, index5);
  475. if (compare.call$2(el1, el2) > 0) {
  476. t0 = el2;
  477. el2 = el1;
  478. el1 = t0;
  479. }
  480. if (compare.call$2(el4, el5) > 0) {
  481. t0 = el5;
  482. el5 = el4;
  483. el4 = t0;
  484. }
  485. if (compare.call$2(el1, el3) > 0) {
  486. t0 = el3;
  487. el3 = el1;
  488. el1 = t0;
  489. }
  490. if (compare.call$2(el2, el3) > 0) {
  491. t0 = el3;
  492. el3 = el2;
  493. el2 = t0;
  494. }
  495. if (compare.call$2(el1, el4) > 0) {
  496. t0 = el4;
  497. el4 = el1;
  498. el1 = t0;
  499. }
  500. if (compare.call$2(el3, el4) > 0) {
  501. t0 = el4;
  502. el4 = el3;
  503. el3 = t0;
  504. }
  505. if (compare.call$2(el2, el5) > 0) {
  506. t0 = el5;
  507. el5 = el2;
  508. el2 = t0;
  509. }
  510. if (compare.call$2(el2, el3) > 0) {
  511. t0 = el3;
  512. el3 = el2;
  513. el2 = t0;
  514. }
  515. if (compare.call$2(el4, el5) > 0) {
  516. t0 = el5;
  517. el5 = el4;
  518. el4 = t0;
  519. }
  520. t1.$indexSet(a, index1, el1);
  521. t1.$indexSet(a, index3, el3);
  522. t1.$indexSet(a, index5, el5);
  523. t1.$indexSet(a, index2, t1.$index(a, left));
  524. t1.$indexSet(a, index4, t1.$index(a, right));
  525. less = left + 1;
  526. great = right - 1;
  527. if (J.$eq$(compare.call$2(el2, el4), 0)) {
  528. for (k = less; k <= great; ++k) {
  529. ak = t1.$index(a, k);
  530. comp = compare.call$2(ak, el2);
  531. if (comp === 0)
  532. continue;
  533. if (comp < 0) {
  534. if (k !== less) {
  535. t1.$indexSet(a, k, t1.$index(a, less));
  536. t1.$indexSet(a, less, ak);
  537. }
  538. ++less;
  539. } else
  540. for (; true;) {
  541. comp = compare.call$2(t1.$index(a, great), el2);
  542. if (comp > 0) {
  543. --great;
  544. continue;
  545. } else {
  546. great0 = great - 1;
  547. if (comp < 0) {
  548. t1.$indexSet(a, k, t1.$index(a, less));
  549. less0 = less + 1;
  550. t1.$indexSet(a, less, t1.$index(a, great));
  551. t1.$indexSet(a, great, ak);
  552. great = great0;
  553. less = less0;
  554. break;
  555. } else {
  556. t1.$indexSet(a, k, t1.$index(a, great));
  557. t1.$indexSet(a, great, ak);
  558. great = great0;
  559. break;
  560. }
  561. }
  562. }
  563. }
  564. pivots_are_equal = true;
  565. } else {
  566. for (k = less; k <= great; ++k) {
  567. ak = t1.$index(a, k);
  568. if (compare.call$2(ak, el2) < 0) {
  569. if (k !== less) {
  570. t1.$indexSet(a, k, t1.$index(a, less));
  571. t1.$indexSet(a, less, ak);
  572. }
  573. ++less;
  574. } else if (compare.call$2(ak, el4) > 0)
  575. for (; true;)
  576. if (compare.call$2(t1.$index(a, great), el4) > 0) {
  577. --great;
  578. if (great < k)
  579. break;
  580. continue;
  581. } else {
  582. great0 = great - 1;
  583. if (compare.call$2(t1.$index(a, great), el2) < 0) {
  584. t1.$indexSet(a, k, t1.$index(a, less));
  585. less0 = less + 1;
  586. t1.$indexSet(a, less, t1.$index(a, great));
  587. t1.$indexSet(a, great, ak);
  588. less = less0;
  589. } else {
  590. t1.$indexSet(a, k, t1.$index(a, great));
  591. t1.$indexSet(a, great, ak);
  592. }
  593. great = great0;
  594. break;
  595. }
  596. }
  597. pivots_are_equal = false;
  598. }
  599. t2 = less - 1;
  600. t1.$indexSet(a, left, t1.$index(a, t2));
  601. t1.$indexSet(a, t2, el2);
  602. t2 = great + 1;
  603. t1.$indexSet(a, right, t1.$index(a, t2));
  604. t1.$indexSet(a, t2, el4);
  605. A.Sort__doSort(a, left, less - 2, compare);
  606. A.Sort__doSort(a, great + 2, right, compare);
  607. if (pivots_are_equal)
  608. return;
  609. if (less < index1 && great > index5) {
  610. for (; J.$eq$(compare.call$2(t1.$index(a, less), el2), 0);)
  611. ++less;
  612. for (; J.$eq$(compare.call$2(t1.$index(a, great), el4), 0);)
  613. --great;
  614. for (k = less; k <= great; ++k) {
  615. ak = t1.$index(a, k);
  616. if (compare.call$2(ak, el2) === 0) {
  617. if (k !== less) {
  618. t1.$indexSet(a, k, t1.$index(a, less));
  619. t1.$indexSet(a, less, ak);
  620. }
  621. ++less;
  622. } else if (compare.call$2(ak, el4) === 0)
  623. for (; true;)
  624. if (compare.call$2(t1.$index(a, great), el4) === 0) {
  625. --great;
  626. if (great < k)
  627. break;
  628. continue;
  629. } else {
  630. great0 = great - 1;
  631. if (compare.call$2(t1.$index(a, great), el2) < 0) {
  632. t1.$indexSet(a, k, t1.$index(a, less));
  633. less0 = less + 1;
  634. t1.$indexSet(a, less, t1.$index(a, great));
  635. t1.$indexSet(a, great, ak);
  636. less = less0;
  637. } else {
  638. t1.$indexSet(a, k, t1.$index(a, great));
  639. t1.$indexSet(a, great, ak);
  640. }
  641. great = great0;
  642. break;
  643. }
  644. }
  645. A.Sort__doSort(a, less, great, compare);
  646. } else
  647. A.Sort__doSort(a, less, great, compare);
  648. },
  649. _CastIterableBase: function _CastIterableBase() {
  650. },
  651. CastIterator: function CastIterator(t0, t1) {
  652. this._source = t0;
  653. this.$ti = t1;
  654. },
  655. CastIterable: function CastIterable(t0, t1) {
  656. this._source = t0;
  657. this.$ti = t1;
  658. },
  659. _EfficientLengthCastIterable: function _EfficientLengthCastIterable(t0, t1) {
  660. this._source = t0;
  661. this.$ti = t1;
  662. },
  663. _CastListBase: function _CastListBase() {
  664. },
  665. _CastListBase_sort_closure: function _CastListBase_sort_closure(t0, t1) {
  666. this.$this = t0;
  667. this.compare = t1;
  668. },
  669. CastList: function CastList(t0, t1) {
  670. this._source = t0;
  671. this.$ti = t1;
  672. },
  673. CastSet: function CastSet(t0, t1, t2) {
  674. this._source = t0;
  675. this._emptySet = t1;
  676. this.$ti = t2;
  677. },
  678. CastMap: function CastMap(t0, t1) {
  679. this._source = t0;
  680. this.$ti = t1;
  681. },
  682. CastMap_forEach_closure: function CastMap_forEach_closure(t0, t1) {
  683. this.$this = t0;
  684. this.f = t1;
  685. },
  686. CastMap_entries_closure: function CastMap_entries_closure(t0) {
  687. this.$this = t0;
  688. },
  689. LateError: function LateError(t0) {
  690. this._message = t0;
  691. },
  692. CodeUnits: function CodeUnits(t0) {
  693. this.__internal$_string = t0;
  694. },
  695. nullFuture_closure: function nullFuture_closure() {
  696. },
  697. SentinelValue: function SentinelValue() {
  698. },
  699. EfficientLengthIterable: function EfficientLengthIterable() {
  700. },
  701. ListIterable: function ListIterable() {
  702. },
  703. SubListIterable: function SubListIterable(t0, t1, t2, t3) {
  704. var _ = this;
  705. _.__internal$_iterable = t0;
  706. _.__internal$_start = t1;
  707. _._endOrLength = t2;
  708. _.$ti = t3;
  709. },
  710. ListIterator: function ListIterator(t0, t1) {
  711. var _ = this;
  712. _.__internal$_iterable = t0;
  713. _.__internal$_length = t1;
  714. _.__internal$_index = 0;
  715. _.__internal$_current = null;
  716. },
  717. MappedIterable: function MappedIterable(t0, t1, t2) {
  718. this.__internal$_iterable = t0;
  719. this._f = t1;
  720. this.$ti = t2;
  721. },
  722. EfficientLengthMappedIterable: function EfficientLengthMappedIterable(t0, t1, t2) {
  723. this.__internal$_iterable = t0;
  724. this._f = t1;
  725. this.$ti = t2;
  726. },
  727. MappedIterator: function MappedIterator(t0, t1) {
  728. this.__internal$_current = null;
  729. this._iterator = t0;
  730. this._f = t1;
  731. },
  732. MappedListIterable: function MappedListIterable(t0, t1, t2) {
  733. this._source = t0;
  734. this._f = t1;
  735. this.$ti = t2;
  736. },
  737. WhereIterable: function WhereIterable(t0, t1, t2) {
  738. this.__internal$_iterable = t0;
  739. this._f = t1;
  740. this.$ti = t2;
  741. },
  742. WhereIterator: function WhereIterator(t0, t1) {
  743. this._iterator = t0;
  744. this._f = t1;
  745. },
  746. ExpandIterable: function ExpandIterable(t0, t1, t2) {
  747. this.__internal$_iterable = t0;
  748. this._f = t1;
  749. this.$ti = t2;
  750. },
  751. ExpandIterator: function ExpandIterator(t0, t1, t2) {
  752. var _ = this;
  753. _._iterator = t0;
  754. _._f = t1;
  755. _._currentExpansion = t2;
  756. _.__internal$_current = null;
  757. },
  758. TakeIterable: function TakeIterable(t0, t1, t2) {
  759. this.__internal$_iterable = t0;
  760. this._takeCount = t1;
  761. this.$ti = t2;
  762. },
  763. EfficientLengthTakeIterable: function EfficientLengthTakeIterable(t0, t1, t2) {
  764. this.__internal$_iterable = t0;
  765. this._takeCount = t1;
  766. this.$ti = t2;
  767. },
  768. TakeIterator: function TakeIterator(t0, t1) {
  769. this._iterator = t0;
  770. this._remaining = t1;
  771. },
  772. SkipIterable: function SkipIterable(t0, t1, t2) {
  773. this.__internal$_iterable = t0;
  774. this._skipCount = t1;
  775. this.$ti = t2;
  776. },
  777. EfficientLengthSkipIterable: function EfficientLengthSkipIterable(t0, t1, t2) {
  778. this.__internal$_iterable = t0;
  779. this._skipCount = t1;
  780. this.$ti = t2;
  781. },
  782. SkipIterator: function SkipIterator(t0, t1) {
  783. this._iterator = t0;
  784. this._skipCount = t1;
  785. },
  786. SkipWhileIterable: function SkipWhileIterable(t0, t1, t2) {
  787. this.__internal$_iterable = t0;
  788. this._f = t1;
  789. this.$ti = t2;
  790. },
  791. SkipWhileIterator: function SkipWhileIterator(t0, t1) {
  792. this._iterator = t0;
  793. this._f = t1;
  794. this._hasSkipped = false;
  795. },
  796. EmptyIterable: function EmptyIterable(t0) {
  797. this.$ti = t0;
  798. },
  799. EmptyIterator: function EmptyIterator() {
  800. },
  801. FollowedByIterable: function FollowedByIterable(t0, t1, t2) {
  802. this.__internal$_first = t0;
  803. this._second = t1;
  804. this.$ti = t2;
  805. },
  806. EfficientLengthFollowedByIterable: function EfficientLengthFollowedByIterable(t0, t1, t2) {
  807. this.__internal$_first = t0;
  808. this._second = t1;
  809. this.$ti = t2;
  810. },
  811. FollowedByIterator: function FollowedByIterator(t0, t1) {
  812. this._currentIterator = t0;
  813. this._nextIterable = t1;
  814. },
  815. WhereTypeIterable: function WhereTypeIterable(t0, t1) {
  816. this._source = t0;
  817. this.$ti = t1;
  818. },
  819. WhereTypeIterator: function WhereTypeIterator(t0, t1) {
  820. this._source = t0;
  821. this.$ti = t1;
  822. },
  823. FixedLengthListMixin: function FixedLengthListMixin() {
  824. },
  825. UnmodifiableListMixin: function UnmodifiableListMixin() {
  826. },
  827. UnmodifiableListBase: function UnmodifiableListBase() {
  828. },
  829. ReversedListIterable: function ReversedListIterable(t0, t1) {
  830. this._source = t0;
  831. this.$ti = t1;
  832. },
  833. Symbol: function Symbol(t0) {
  834. this.__internal$_name = t0;
  835. },
  836. __CastListBase__CastIterableBase_ListMixin: function __CastListBase__CastIterableBase_ListMixin() {
  837. },
  838. ConstantMap_ConstantMap$from(other, $K, $V) {
  839. var allStrings, k, object, t2,
  840. keys = A.List_List$from(other.get$keys(other), true, $K),
  841. t1 = keys.length,
  842. _i = 0;
  843. while (true) {
  844. if (!(_i < t1)) {
  845. allStrings = true;
  846. break;
  847. }
  848. k = keys[_i];
  849. if (typeof k != "string" || "__proto__" === k) {
  850. allStrings = false;
  851. break;
  852. }
  853. ++_i;
  854. }
  855. if (allStrings) {
  856. object = {};
  857. for (_i = 0; t2 = keys.length, _i < t2; keys.length === t1 || (0, A.throwConcurrentModificationError)(keys), ++_i) {
  858. k = keys[_i];
  859. object[k] = other.$index(0, k);
  860. }
  861. return new A.ConstantStringMap(t2, object, keys, $K._eval$1("@<0>")._bind$1($V)._eval$1("ConstantStringMap<1,2>"));
  862. }
  863. return new A.ConstantMapView(A.LinkedHashMap_LinkedHashMap$from(other, $K, $V), $K._eval$1("@<0>")._bind$1($V)._eval$1("ConstantMapView<1,2>"));
  864. },
  865. ConstantMap__throwUnmodifiable() {
  866. throw A.wrapException(A.UnsupportedError$("Cannot modify unmodifiable Map"));
  867. },
  868. GeneralConstantMap__constantMapHashCode(key) {
  869. if (typeof key == "number")
  870. return B.JSNumber_methods.get$hashCode(key);
  871. if (type$.Symbol._is(key))
  872. return key.get$hashCode(key);
  873. if (type$.Type._is(key))
  874. return A.Primitives_objectHashCode(key);
  875. return A.objectHashCode(key);
  876. },
  877. GeneralConstantMap__typeTest($T) {
  878. return new A.GeneralConstantMap__typeTest_closure($T);
  879. },
  880. instantiate1(f, T1) {
  881. var t1 = new A.Instantiation1(f, T1._eval$1("Instantiation1<0>"));
  882. t1.Instantiation$1(f);
  883. return t1;
  884. },
  885. unminifyOrTag(rawClassName) {
  886. var preserved = init.mangledGlobalNames[rawClassName];
  887. if (preserved != null)
  888. return preserved;
  889. return rawClassName;
  890. },
  891. isJsIndexable(object, record) {
  892. var result;
  893. if (record != null) {
  894. result = record.x;
  895. if (result != null)
  896. return result;
  897. }
  898. return type$.JavaScriptIndexingBehavior_dynamic._is(object);
  899. },
  900. S(value) {
  901. var result;
  902. if (typeof value == "string")
  903. return value;
  904. if (typeof value == "number") {
  905. if (value !== 0)
  906. return "" + value;
  907. } else if (true === value)
  908. return "true";
  909. else if (false === value)
  910. return "false";
  911. else if (value == null)
  912. return "null";
  913. result = J.toString$0$(value);
  914. return result;
  915. },
  916. Primitives_objectHashCode(object) {
  917. var hash,
  918. property = $.Primitives__identityHashCodeProperty;
  919. if (property == null)
  920. property = $.Primitives__identityHashCodeProperty = Symbol("identityHashCode");
  921. hash = object[property];
  922. if (hash == null) {
  923. hash = Math.random() * 0x3fffffff | 0;
  924. object[property] = hash;
  925. }
  926. return hash;
  927. },
  928. Primitives_parseInt(source, radix) {
  929. var decimalMatch, maxCharCode, digitsPart, t1, i, _null = null,
  930. match = /^\s*[+-]?((0x[a-f0-9]+)|(\d+)|([a-z0-9]+))\s*$/i.exec(source);
  931. if (match == null)
  932. return _null;
  933. decimalMatch = match[3];
  934. if (radix == null) {
  935. if (decimalMatch != null)
  936. return parseInt(source, 10);
  937. if (match[2] != null)
  938. return parseInt(source, 16);
  939. return _null;
  940. }
  941. if (radix < 2 || radix > 36)
  942. throw A.wrapException(A.RangeError$range(radix, 2, 36, "radix", _null));
  943. if (radix === 10 && decimalMatch != null)
  944. return parseInt(source, 10);
  945. if (radix < 10 || decimalMatch == null) {
  946. maxCharCode = radix <= 10 ? 47 + radix : 86 + radix;
  947. digitsPart = match[1];
  948. for (t1 = digitsPart.length, i = 0; i < t1; ++i)
  949. if ((B.JSString_methods._codeUnitAt$1(digitsPart, i) | 32) > maxCharCode)
  950. return _null;
  951. }
  952. return parseInt(source, radix);
  953. },
  954. Primitives_parseDouble(source) {
  955. var result, trimmed;
  956. if (!/^\s*[+-]?(?:Infinity|NaN|(?:\.\d+|\d+(?:\.\d*)?)(?:[eE][+-]?\d+)?)\s*$/.test(source))
  957. return null;
  958. result = parseFloat(source);
  959. if (isNaN(result)) {
  960. trimmed = B.JSString_methods.trim$0(source);
  961. if (trimmed === "NaN" || trimmed === "+NaN" || trimmed === "-NaN")
  962. return result;
  963. return null;
  964. }
  965. return result;
  966. },
  967. Primitives_objectTypeName(object) {
  968. return A.Primitives__objectTypeNameNewRti(object);
  969. },
  970. Primitives__objectTypeNameNewRti(object) {
  971. var interceptor, dispatchName, $constructor, constructorName;
  972. if (object instanceof A.Object)
  973. return A._rtiToString(A.instanceType(object), null);
  974. interceptor = J.getInterceptor$(object);
  975. if (interceptor === B.Interceptor_methods || interceptor === B.JavaScriptObject_methods || type$.UnknownJavaScriptObject._is(object)) {
  976. dispatchName = B.C_JS_CONST(object);
  977. if (dispatchName !== "Object" && dispatchName !== "")
  978. return dispatchName;
  979. $constructor = object.constructor;
  980. if (typeof $constructor == "function") {
  981. constructorName = $constructor.name;
  982. if (typeof constructorName == "string" && constructorName !== "Object" && constructorName !== "")
  983. return constructorName;
  984. }
  985. }
  986. return A._rtiToString(A.instanceType(object), null);
  987. },
  988. Primitives_currentUri() {
  989. if (!!self.location)
  990. return self.location.href;
  991. return null;
  992. },
  993. Primitives__fromCharCodeApply(array) {
  994. var result, i, i0, chunkEnd,
  995. end = array.length;
  996. if (end <= 500)
  997. return String.fromCharCode.apply(null, array);
  998. for (result = "", i = 0; i < end; i = i0) {
  999. i0 = i + 500;
  1000. chunkEnd = i0 < end ? i0 : end;
  1001. result += String.fromCharCode.apply(null, array.slice(i, chunkEnd));
  1002. }
  1003. return result;
  1004. },
  1005. Primitives_stringFromCodePoints(codePoints) {
  1006. var t1, _i, i,
  1007. a = A._setArrayType([], type$.JSArray_int);
  1008. for (t1 = codePoints.length, _i = 0; _i < codePoints.length; codePoints.length === t1 || (0, A.throwConcurrentModificationError)(codePoints), ++_i) {
  1009. i = codePoints[_i];
  1010. if (!A._isInt(i))
  1011. throw A.wrapException(A.argumentErrorValue(i));
  1012. if (i <= 65535)
  1013. a.push(i);
  1014. else if (i <= 1114111) {
  1015. a.push(55296 + (B.JSInt_methods._shrOtherPositive$1(i - 65536, 10) & 1023));
  1016. a.push(56320 + (i & 1023));
  1017. } else
  1018. throw A.wrapException(A.argumentErrorValue(i));
  1019. }
  1020. return A.Primitives__fromCharCodeApply(a);
  1021. },
  1022. Primitives_stringFromCharCodes(charCodes) {
  1023. var t1, _i, i;
  1024. for (t1 = charCodes.length, _i = 0; _i < t1; ++_i) {
  1025. i = charCodes[_i];
  1026. if (!A._isInt(i))
  1027. throw A.wrapException(A.argumentErrorValue(i));
  1028. if (i < 0)
  1029. throw A.wrapException(A.argumentErrorValue(i));
  1030. if (i > 65535)
  1031. return A.Primitives_stringFromCodePoints(charCodes);
  1032. }
  1033. return A.Primitives__fromCharCodeApply(charCodes);
  1034. },
  1035. Primitives_stringFromNativeUint8List(charCodes, start, end) {
  1036. var i, result, i0, chunkEnd;
  1037. if (end <= 500 && start === 0 && end === charCodes.length)
  1038. return String.fromCharCode.apply(null, charCodes);
  1039. for (i = start, result = ""; i < end; i = i0) {
  1040. i0 = i + 500;
  1041. chunkEnd = i0 < end ? i0 : end;
  1042. result += String.fromCharCode.apply(null, charCodes.subarray(i, chunkEnd));
  1043. }
  1044. return result;
  1045. },
  1046. Primitives_stringFromCharCode(charCode) {
  1047. var bits;
  1048. if (0 <= charCode) {
  1049. if (charCode <= 65535)
  1050. return String.fromCharCode(charCode);
  1051. if (charCode <= 1114111) {
  1052. bits = charCode - 65536;
  1053. return String.fromCharCode((B.JSInt_methods._shrOtherPositive$1(bits, 10) | 55296) >>> 0, bits & 1023 | 56320);
  1054. }
  1055. }
  1056. throw A.wrapException(A.RangeError$range(charCode, 0, 1114111, null, null));
  1057. },
  1058. Primitives_lazyAsJsDate(receiver) {
  1059. if (receiver.date === void 0)
  1060. receiver.date = new Date(receiver._core$_value);
  1061. return receiver.date;
  1062. },
  1063. Primitives_getYear(receiver) {
  1064. var t1 = A.Primitives_lazyAsJsDate(receiver).getFullYear() + 0;
  1065. return t1;
  1066. },
  1067. Primitives_getMonth(receiver) {
  1068. var t1 = A.Primitives_lazyAsJsDate(receiver).getMonth() + 1;
  1069. return t1;
  1070. },
  1071. Primitives_getDay(receiver) {
  1072. var t1 = A.Primitives_lazyAsJsDate(receiver).getDate() + 0;
  1073. return t1;
  1074. },
  1075. Primitives_getHours(receiver) {
  1076. var t1 = A.Primitives_lazyAsJsDate(receiver).getHours() + 0;
  1077. return t1;
  1078. },
  1079. Primitives_getMinutes(receiver) {
  1080. var t1 = A.Primitives_lazyAsJsDate(receiver).getMinutes() + 0;
  1081. return t1;
  1082. },
  1083. Primitives_getSeconds(receiver) {
  1084. var t1 = A.Primitives_lazyAsJsDate(receiver).getSeconds() + 0;
  1085. return t1;
  1086. },
  1087. Primitives_getMilliseconds(receiver) {
  1088. var t1 = A.Primitives_lazyAsJsDate(receiver).getMilliseconds() + 0;
  1089. return t1;
  1090. },
  1091. Primitives_functionNoSuchMethod($function, positionalArguments, namedArguments) {
  1092. var $arguments, namedArgumentList, t1 = {};
  1093. t1.argumentCount = 0;
  1094. $arguments = [];
  1095. namedArgumentList = [];
  1096. t1.argumentCount = positionalArguments.length;
  1097. B.JSArray_methods.addAll$1($arguments, positionalArguments);
  1098. t1.names = "";
  1099. if (namedArguments != null && namedArguments.__js_helper$_length !== 0)
  1100. namedArguments.forEach$1(0, new A.Primitives_functionNoSuchMethod_closure(t1, namedArgumentList, $arguments));
  1101. return J.noSuchMethod$1$($function, new A.JSInvocationMirror(B.Symbol_call, 0, $arguments, namedArgumentList, 0));
  1102. },
  1103. Primitives_applyFunction($function, positionalArguments, namedArguments) {
  1104. var t1, argumentCount, jsStub;
  1105. if (Array.isArray(positionalArguments))
  1106. t1 = namedArguments == null || namedArguments.__js_helper$_length === 0;
  1107. else
  1108. t1 = false;
  1109. if (t1) {
  1110. argumentCount = positionalArguments.length;
  1111. if (argumentCount === 0) {
  1112. if (!!$function.call$0)
  1113. return $function.call$0();
  1114. } else if (argumentCount === 1) {
  1115. if (!!$function.call$1)
  1116. return $function.call$1(positionalArguments[0]);
  1117. } else if (argumentCount === 2) {
  1118. if (!!$function.call$2)
  1119. return $function.call$2(positionalArguments[0], positionalArguments[1]);
  1120. } else if (argumentCount === 3) {
  1121. if (!!$function.call$3)
  1122. return $function.call$3(positionalArguments[0], positionalArguments[1], positionalArguments[2]);
  1123. } else if (argumentCount === 4) {
  1124. if (!!$function.call$4)
  1125. return $function.call$4(positionalArguments[0], positionalArguments[1], positionalArguments[2], positionalArguments[3]);
  1126. } else if (argumentCount === 5)
  1127. if (!!$function.call$5)
  1128. return $function.call$5(positionalArguments[0], positionalArguments[1], positionalArguments[2], positionalArguments[3], positionalArguments[4]);
  1129. jsStub = $function["call" + "$" + argumentCount];
  1130. if (jsStub != null)
  1131. return jsStub.apply($function, positionalArguments);
  1132. }
  1133. return A.Primitives__generalApplyFunction($function, positionalArguments, namedArguments);
  1134. },
  1135. Primitives__generalApplyFunction($function, positionalArguments, namedArguments) {
  1136. var defaultValuesClosure, t1, defaultValues, interceptor, jsFunction, maxArguments, missingDefaults, keys, _i, defaultValue, used, t2,
  1137. $arguments = Array.isArray(positionalArguments) ? positionalArguments : A.List_List$of(positionalArguments, true, type$.dynamic),
  1138. argumentCount = $arguments.length,
  1139. requiredParameterCount = $function.$requiredArgCount;
  1140. if (argumentCount < requiredParameterCount)
  1141. return A.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
  1142. defaultValuesClosure = $function.$defaultValues;
  1143. t1 = defaultValuesClosure == null;
  1144. defaultValues = !t1 ? defaultValuesClosure() : null;
  1145. interceptor = J.getInterceptor$($function);
  1146. jsFunction = interceptor["call*"];
  1147. if (typeof jsFunction == "string")
  1148. jsFunction = interceptor[jsFunction];
  1149. if (t1) {
  1150. if (namedArguments != null && namedArguments.__js_helper$_length !== 0)
  1151. return A.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
  1152. if (argumentCount === requiredParameterCount)
  1153. return jsFunction.apply($function, $arguments);
  1154. return A.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
  1155. }
  1156. if (Array.isArray(defaultValues)) {
  1157. if (namedArguments != null && namedArguments.__js_helper$_length !== 0)
  1158. return A.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
  1159. maxArguments = requiredParameterCount + defaultValues.length;
  1160. if (argumentCount > maxArguments)
  1161. return A.Primitives_functionNoSuchMethod($function, $arguments, null);
  1162. if (argumentCount < maxArguments) {
  1163. missingDefaults = defaultValues.slice(argumentCount - requiredParameterCount);
  1164. if ($arguments === positionalArguments)
  1165. $arguments = A.List_List$of($arguments, true, type$.dynamic);
  1166. B.JSArray_methods.addAll$1($arguments, missingDefaults);
  1167. }
  1168. return jsFunction.apply($function, $arguments);
  1169. } else {
  1170. if (argumentCount > requiredParameterCount)
  1171. return A.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
  1172. if ($arguments === positionalArguments)
  1173. $arguments = A.List_List$of($arguments, true, type$.dynamic);
  1174. keys = Object.keys(defaultValues);
  1175. if (namedArguments == null)
  1176. for (t1 = keys.length, _i = 0; _i < keys.length; keys.length === t1 || (0, A.throwConcurrentModificationError)(keys), ++_i) {
  1177. defaultValue = defaultValues[keys[_i]];
  1178. if (B.C__Required === defaultValue)
  1179. return A.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
  1180. B.JSArray_methods.add$1($arguments, defaultValue);
  1181. }
  1182. else {
  1183. for (t1 = keys.length, used = 0, _i = 0; _i < keys.length; keys.length === t1 || (0, A.throwConcurrentModificationError)(keys), ++_i) {
  1184. t2 = keys[_i];
  1185. if (namedArguments.containsKey$1(t2)) {
  1186. ++used;
  1187. B.JSArray_methods.add$1($arguments, namedArguments.$index(0, t2));
  1188. } else {
  1189. defaultValue = defaultValues[t2];
  1190. if (B.C__Required === defaultValue)
  1191. return A.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
  1192. B.JSArray_methods.add$1($arguments, defaultValue);
  1193. }
  1194. }
  1195. if (used !== namedArguments.__js_helper$_length)
  1196. return A.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
  1197. }
  1198. return jsFunction.apply($function, $arguments);
  1199. }
  1200. },
  1201. diagnoseIndexError(indexable, index) {
  1202. var $length, _s5_ = "index";
  1203. if (!A._isInt(index))
  1204. return new A.ArgumentError(true, index, _s5_, null);
  1205. $length = J.get$length$asx(indexable);
  1206. if (index < 0 || index >= $length)
  1207. return A.IndexError$(index, indexable, _s5_, null, $length);
  1208. return A.RangeError$value(index, _s5_, null);
  1209. },
  1210. diagnoseRangeError(start, end, $length) {
  1211. if (start < 0 || start > $length)
  1212. return A.RangeError$range(start, 0, $length, "start", null);
  1213. if (end != null)
  1214. if (end < start || end > $length)
  1215. return A.RangeError$range(end, start, $length, "end", null);
  1216. return new A.ArgumentError(true, end, "end", null);
  1217. },
  1218. argumentErrorValue(object) {
  1219. return new A.ArgumentError(true, object, null, null);
  1220. },
  1221. checkNum(value) {
  1222. return value;
  1223. },
  1224. wrapException(ex) {
  1225. var wrapper, t1;
  1226. if (ex == null)
  1227. ex = new A.NullThrownError();
  1228. wrapper = new Error();
  1229. wrapper.dartException = ex;
  1230. t1 = A.toStringWrapper;
  1231. if ("defineProperty" in Object) {
  1232. Object.defineProperty(wrapper, "message", {get: t1});
  1233. wrapper.name = "";
  1234. } else
  1235. wrapper.toString = t1;
  1236. return wrapper;
  1237. },
  1238. toStringWrapper() {
  1239. return J.toString$0$(this.dartException);
  1240. },
  1241. throwExpression(ex) {
  1242. throw A.wrapException(ex);
  1243. },
  1244. throwConcurrentModificationError(collection) {
  1245. throw A.wrapException(A.ConcurrentModificationError$(collection));
  1246. },
  1247. TypeErrorDecoder_extractPattern(message) {
  1248. var match, $arguments, argumentsExpr, expr, method, receiver;
  1249. message = A.quoteStringForRegExp(message.replace(String({}), "$receiver$"));
  1250. match = message.match(/\\\$[a-zA-Z]+\\\$/g);
  1251. if (match == null)
  1252. match = A._setArrayType([], type$.JSArray_String);
  1253. $arguments = match.indexOf("\\$arguments\\$");
  1254. argumentsExpr = match.indexOf("\\$argumentsExpr\\$");
  1255. expr = match.indexOf("\\$expr\\$");
  1256. method = match.indexOf("\\$method\\$");
  1257. receiver = match.indexOf("\\$receiver\\$");
  1258. return new A.TypeErrorDecoder(message.replace(new RegExp("\\\\\\$arguments\\\\\\$", "g"), "((?:x|[^x])*)").replace(new RegExp("\\\\\\$argumentsExpr\\\\\\$", "g"), "((?:x|[^x])*)").replace(new RegExp("\\\\\\$expr\\\\\\$", "g"), "((?:x|[^x])*)").replace(new RegExp("\\\\\\$method\\\\\\$", "g"), "((?:x|[^x])*)").replace(new RegExp("\\\\\\$receiver\\\\\\$", "g"), "((?:x|[^x])*)"), $arguments, argumentsExpr, expr, method, receiver);
  1259. },
  1260. TypeErrorDecoder_provokeCallErrorOn(expression) {
  1261. return function($expr$) {
  1262. var $argumentsExpr$ = "$arguments$";
  1263. try {
  1264. $expr$.$method$($argumentsExpr$);
  1265. } catch (e) {
  1266. return e.message;
  1267. }
  1268. }(expression);
  1269. },
  1270. TypeErrorDecoder_provokePropertyErrorOn(expression) {
  1271. return function($expr$) {
  1272. try {
  1273. $expr$.$method$;
  1274. } catch (e) {
  1275. return e.message;
  1276. }
  1277. }(expression);
  1278. },
  1279. JsNoSuchMethodError$(_message, match) {
  1280. var t1 = match == null,
  1281. t2 = t1 ? null : match.method;
  1282. return new A.JsNoSuchMethodError(_message, t2, t1 ? null : match.receiver);
  1283. },
  1284. unwrapException(ex) {
  1285. if (ex == null)
  1286. return new A.NullThrownFromJavaScriptException(ex);
  1287. if (ex instanceof A.ExceptionAndStackTrace)
  1288. return A.saveStackTrace(ex, ex.dartException);
  1289. if (typeof ex !== "object")
  1290. return ex;
  1291. if ("dartException" in ex)
  1292. return A.saveStackTrace(ex, ex.dartException);
  1293. return A._unwrapNonDartException(ex);
  1294. },
  1295. saveStackTrace(ex, error) {
  1296. if (type$.Error._is(error))
  1297. if (error.$thrownJsError == null)
  1298. error.$thrownJsError = ex;
  1299. return error;
  1300. },
  1301. _unwrapNonDartException(ex) {
  1302. var message, number, ieErrorCode, t1, nsme, notClosure, nullCall, nullLiteralCall, undefCall, undefLiteralCall, nullProperty, undefProperty, undefLiteralProperty, match, _null = null;
  1303. if (!("message" in ex))
  1304. return ex;
  1305. message = ex.message;
  1306. if ("number" in ex && typeof ex.number == "number") {
  1307. number = ex.number;
  1308. ieErrorCode = number & 65535;
  1309. if ((B.JSInt_methods._shrOtherPositive$1(number, 16) & 8191) === 10)
  1310. switch (ieErrorCode) {
  1311. case 438:
  1312. return A.saveStackTrace(ex, A.JsNoSuchMethodError$(A.S(message) + " (Error " + ieErrorCode + ")", _null));
  1313. case 445:
  1314. case 5007:
  1315. t1 = A.S(message);
  1316. return A.saveStackTrace(ex, new A.NullError(t1 + " (Error " + ieErrorCode + ")", _null));
  1317. }
  1318. }
  1319. if (ex instanceof TypeError) {
  1320. nsme = $.$get$TypeErrorDecoder_noSuchMethodPattern();
  1321. notClosure = $.$get$TypeErrorDecoder_notClosurePattern();
  1322. nullCall = $.$get$TypeErrorDecoder_nullCallPattern();
  1323. nullLiteralCall = $.$get$TypeErrorDecoder_nullLiteralCallPattern();
  1324. undefCall = $.$get$TypeErrorDecoder_undefinedCallPattern();
  1325. undefLiteralCall = $.$get$TypeErrorDecoder_undefinedLiteralCallPattern();
  1326. nullProperty = $.$get$TypeErrorDecoder_nullPropertyPattern();
  1327. $.$get$TypeErrorDecoder_nullLiteralPropertyPattern();
  1328. undefProperty = $.$get$TypeErrorDecoder_undefinedPropertyPattern();
  1329. undefLiteralProperty = $.$get$TypeErrorDecoder_undefinedLiteralPropertyPattern();
  1330. match = nsme.matchTypeError$1(message);
  1331. if (match != null)
  1332. return A.saveStackTrace(ex, A.JsNoSuchMethodError$(message, match));
  1333. else {
  1334. match = notClosure.matchTypeError$1(message);
  1335. if (match != null) {
  1336. match.method = "call";
  1337. return A.saveStackTrace(ex, A.JsNoSuchMethodError$(message, match));
  1338. } else {
  1339. match = nullCall.matchTypeError$1(message);
  1340. if (match == null) {
  1341. match = nullLiteralCall.matchTypeError$1(message);
  1342. if (match == null) {
  1343. match = undefCall.matchTypeError$1(message);
  1344. if (match == null) {
  1345. match = undefLiteralCall.matchTypeError$1(message);
  1346. if (match == null) {
  1347. match = nullProperty.matchTypeError$1(message);
  1348. if (match == null) {
  1349. match = nullLiteralCall.matchTypeError$1(message);
  1350. if (match == null) {
  1351. match = undefProperty.matchTypeError$1(message);
  1352. if (match == null) {
  1353. match = undefLiteralProperty.matchTypeError$1(message);
  1354. t1 = match != null;
  1355. } else
  1356. t1 = true;
  1357. } else
  1358. t1 = true;
  1359. } else
  1360. t1 = true;
  1361. } else
  1362. t1 = true;
  1363. } else
  1364. t1 = true;
  1365. } else
  1366. t1 = true;
  1367. } else
  1368. t1 = true;
  1369. if (t1)
  1370. return A.saveStackTrace(ex, new A.NullError(message, match == null ? _null : match.method));
  1371. }
  1372. }
  1373. return A.saveStackTrace(ex, new A.UnknownJsTypeError(typeof message == "string" ? message : ""));
  1374. }
  1375. if (ex instanceof RangeError) {
  1376. if (typeof message == "string" && message.indexOf("call stack") !== -1)
  1377. return new A.StackOverflowError();
  1378. message = function(ex) {
  1379. try {
  1380. return String(ex);
  1381. } catch (e) {
  1382. }
  1383. return null;
  1384. }(ex);
  1385. return A.saveStackTrace(ex, new A.ArgumentError(false, _null, _null, typeof message == "string" ? message.replace(/^RangeError:\s*/, "") : message));
  1386. }
  1387. if (typeof InternalError == "function" && ex instanceof InternalError)
  1388. if (typeof message == "string" && message === "too much recursion")
  1389. return new A.StackOverflowError();
  1390. return ex;
  1391. },
  1392. getTraceFromException(exception) {
  1393. var trace;
  1394. if (exception instanceof A.ExceptionAndStackTrace)
  1395. return exception.stackTrace;
  1396. if (exception == null)
  1397. return new A._StackTrace(exception);
  1398. trace = exception.$cachedTrace;
  1399. if (trace != null)
  1400. return trace;
  1401. return exception.$cachedTrace = new A._StackTrace(exception);
  1402. },
  1403. objectHashCode(object) {
  1404. if (object == null || typeof object != "object")
  1405. return J.get$hashCode$(object);
  1406. else
  1407. return A.Primitives_objectHashCode(object);
  1408. },
  1409. fillLiteralMap(keyValuePairs, result) {
  1410. var index, index0, index1,
  1411. $length = keyValuePairs.length;
  1412. for (index = 0; index < $length; index = index1) {
  1413. index0 = index + 1;
  1414. index1 = index0 + 1;
  1415. result.$indexSet(0, keyValuePairs[index], keyValuePairs[index0]);
  1416. }
  1417. return result;
  1418. },
  1419. fillLiteralSet(values, result) {
  1420. var index,
  1421. $length = values.length;
  1422. for (index = 0; index < $length; ++index)
  1423. result.add$1(0, values[index]);
  1424. return result;
  1425. },
  1426. invokeClosure(closure, numberOfArguments, arg1, arg2, arg3, arg4) {
  1427. switch (numberOfArguments) {
  1428. case 0:
  1429. return closure.call$0();
  1430. case 1:
  1431. return closure.call$1(arg1);
  1432. case 2:
  1433. return closure.call$2(arg1, arg2);
  1434. case 3:
  1435. return closure.call$3(arg1, arg2, arg3);
  1436. case 4:
  1437. return closure.call$4(arg1, arg2, arg3, arg4);
  1438. }
  1439. throw A.wrapException(new A._Exception("Unsupported number of arguments for wrapped closure"));
  1440. },
  1441. convertDartClosureToJS(closure, arity) {
  1442. var $function;
  1443. if (closure == null)
  1444. return null;
  1445. $function = closure.$identity;
  1446. if (!!$function)
  1447. return $function;
  1448. $function = function(closure, arity, invoke) {
  1449. return function(a1, a2, a3, a4) {
  1450. return invoke(closure, arity, a1, a2, a3, a4);
  1451. };
  1452. }(closure, arity, A.invokeClosure);
  1453. closure.$identity = $function;
  1454. return $function;
  1455. },
  1456. Closure_fromTearOff(parameters) {
  1457. var $prototype, $constructor, t2, trampoline, applyTrampoline, i, stub, stub0, stubName, stubCallName,
  1458. container = parameters.co,
  1459. isStatic = parameters.iS,
  1460. isIntercepted = parameters.iI,
  1461. needsDirectAccess = parameters.nDA,
  1462. applyTrampolineIndex = parameters.aI,
  1463. funsOrNames = parameters.fs,
  1464. callNames = parameters.cs,
  1465. $name = funsOrNames[0],
  1466. callName = callNames[0],
  1467. $function = container[$name],
  1468. t1 = parameters.fT;
  1469. t1.toString;
  1470. $prototype = isStatic ? Object.create(new A.StaticClosure().constructor.prototype) : Object.create(new A.BoundClosure(null, null).constructor.prototype);
  1471. $prototype.$initialize = $prototype.constructor;
  1472. if (isStatic)
  1473. $constructor = function static_tear_off() {
  1474. this.$initialize();
  1475. };
  1476. else
  1477. $constructor = function tear_off(a, b) {
  1478. this.$initialize(a, b);
  1479. };
  1480. $prototype.constructor = $constructor;
  1481. $constructor.prototype = $prototype;
  1482. $prototype.$_name = $name;
  1483. $prototype.$_target = $function;
  1484. t2 = !isStatic;
  1485. if (t2)
  1486. trampoline = A.Closure_forwardCallTo($name, $function, isIntercepted, needsDirectAccess);
  1487. else {
  1488. $prototype.$static_name = $name;
  1489. trampoline = $function;
  1490. }
  1491. $prototype.$signature = A.Closure__computeSignatureFunctionNewRti(t1, isStatic, isIntercepted);
  1492. $prototype[callName] = trampoline;
  1493. for (applyTrampoline = trampoline, i = 1; i < funsOrNames.length; ++i) {
  1494. stub = funsOrNames[i];
  1495. if (typeof stub == "string") {
  1496. stub0 = container[stub];
  1497. stubName = stub;
  1498. stub = stub0;
  1499. } else
  1500. stubName = "";
  1501. stubCallName = callNames[i];
  1502. if (stubCallName != null) {
  1503. if (t2)
  1504. stub = A.Closure_forwardCallTo(stubName, stub, isIntercepted, needsDirectAccess);
  1505. $prototype[stubCallName] = stub;
  1506. }
  1507. if (i === applyTrampolineIndex)
  1508. applyTrampoline = stub;
  1509. }
  1510. $prototype["call*"] = applyTrampoline;
  1511. $prototype.$requiredArgCount = parameters.rC;
  1512. $prototype.$defaultValues = parameters.dV;
  1513. return $constructor;
  1514. },
  1515. Closure__computeSignatureFunctionNewRti(functionType, isStatic, isIntercepted) {
  1516. if (typeof functionType == "number")
  1517. return functionType;
  1518. if (typeof functionType == "string") {
  1519. if (isStatic)
  1520. throw A.wrapException("Cannot compute signature for static tearoff.");
  1521. return function(recipe, evalOnReceiver) {
  1522. return function() {
  1523. return evalOnReceiver(this, recipe);
  1524. };
  1525. }(functionType, A.BoundClosure_evalRecipe);
  1526. }
  1527. throw A.wrapException("Error in functionType of tearoff");
  1528. },
  1529. Closure_cspForwardCall(arity, needsDirectAccess, stubName, $function) {
  1530. var getReceiver = A.BoundClosure_receiverOf;
  1531. switch (needsDirectAccess ? -1 : arity) {
  1532. case 0:
  1533. return function(entry, receiverOf) {
  1534. return function() {
  1535. return receiverOf(this)[entry]();
  1536. };
  1537. }(stubName, getReceiver);
  1538. case 1:
  1539. return function(entry, receiverOf) {
  1540. return function(a) {
  1541. return receiverOf(this)[entry](a);
  1542. };
  1543. }(stubName, getReceiver);
  1544. case 2:
  1545. return function(entry, receiverOf) {
  1546. return function(a, b) {
  1547. return receiverOf(this)[entry](a, b);
  1548. };
  1549. }(stubName, getReceiver);
  1550. case 3:
  1551. return function(entry, receiverOf) {
  1552. return function(a, b, c) {
  1553. return receiverOf(this)[entry](a, b, c);
  1554. };
  1555. }(stubName, getReceiver);
  1556. case 4:
  1557. return function(entry, receiverOf) {
  1558. return function(a, b, c, d) {
  1559. return receiverOf(this)[entry](a, b, c, d);
  1560. };
  1561. }(stubName, getReceiver);
  1562. case 5:
  1563. return function(entry, receiverOf) {
  1564. return function(a, b, c, d, e) {
  1565. return receiverOf(this)[entry](a, b, c, d, e);
  1566. };
  1567. }(stubName, getReceiver);
  1568. default:
  1569. return function(f, receiverOf) {
  1570. return function() {
  1571. return f.apply(receiverOf(this), arguments);
  1572. };
  1573. }($function, getReceiver);
  1574. }
  1575. },
  1576. Closure_forwardCallTo(stubName, $function, isIntercepted, needsDirectAccess) {
  1577. var arity, t1;
  1578. if (isIntercepted)
  1579. return A.Closure_forwardInterceptedCallTo(stubName, $function, needsDirectAccess);
  1580. arity = $function.length;
  1581. t1 = A.Closure_cspForwardCall(arity, needsDirectAccess, stubName, $function);
  1582. return t1;
  1583. },
  1584. Closure_cspForwardInterceptedCall(arity, needsDirectAccess, stubName, $function) {
  1585. var getReceiver = A.BoundClosure_receiverOf,
  1586. getInterceptor = A.BoundClosure_interceptorOf;
  1587. switch (needsDirectAccess ? -1 : arity) {
  1588. case 0:
  1589. throw A.wrapException(new A.RuntimeError("Intercepted function with no arguments."));
  1590. case 1:
  1591. return function(entry, interceptorOf, receiverOf) {
  1592. return function() {
  1593. return interceptorOf(this)[entry](receiverOf(this));
  1594. };
  1595. }(stubName, getInterceptor, getReceiver);
  1596. case 2:
  1597. return function(entry, interceptorOf, receiverOf) {
  1598. return function(a) {
  1599. return interceptorOf(this)[entry](receiverOf(this), a);
  1600. };
  1601. }(stubName, getInterceptor, getReceiver);
  1602. case 3:
  1603. return function(entry, interceptorOf, receiverOf) {
  1604. return function(a, b) {
  1605. return interceptorOf(this)[entry](receiverOf(this), a, b);
  1606. };
  1607. }(stubName, getInterceptor, getReceiver);
  1608. case 4:
  1609. return function(entry, interceptorOf, receiverOf) {
  1610. return function(a, b, c) {
  1611. return interceptorOf(this)[entry](receiverOf(this), a, b, c);
  1612. };
  1613. }(stubName, getInterceptor, getReceiver);
  1614. case 5:
  1615. return function(entry, interceptorOf, receiverOf) {
  1616. return function(a, b, c, d) {
  1617. return interceptorOf(this)[entry](receiverOf(this), a, b, c, d);
  1618. };
  1619. }(stubName, getInterceptor, getReceiver);
  1620. case 6:
  1621. return function(entry, interceptorOf, receiverOf) {
  1622. return function(a, b, c, d, e) {
  1623. return interceptorOf(this)[entry](receiverOf(this), a, b, c, d, e);
  1624. };
  1625. }(stubName, getInterceptor, getReceiver);
  1626. default:
  1627. return function(f, interceptorOf, receiverOf) {
  1628. return function() {
  1629. var a = [receiverOf(this)];
  1630. Array.prototype.push.apply(a, arguments);
  1631. return f.apply(interceptorOf(this), a);
  1632. };
  1633. }($function, getInterceptor, getReceiver);
  1634. }
  1635. },
  1636. Closure_forwardInterceptedCallTo(stubName, $function, needsDirectAccess) {
  1637. var arity, t1;
  1638. if ($.BoundClosure__interceptorFieldNameCache == null)
  1639. $.BoundClosure__interceptorFieldNameCache = A.BoundClosure__computeFieldNamed("interceptor");
  1640. if ($.BoundClosure__receiverFieldNameCache == null)
  1641. $.BoundClosure__receiverFieldNameCache = A.BoundClosure__computeFieldNamed("receiver");
  1642. arity = $function.length;
  1643. t1 = A.Closure_cspForwardInterceptedCall(arity, needsDirectAccess, stubName, $function);
  1644. return t1;
  1645. },
  1646. closureFromTearOff(parameters) {
  1647. return A.Closure_fromTearOff(parameters);
  1648. },
  1649. BoundClosure_evalRecipe(closure, recipe) {
  1650. return A._Universe_evalInEnvironment(init.typeUniverse, A.instanceType(closure._receiver), recipe);
  1651. },
  1652. BoundClosure_receiverOf(closure) {
  1653. return closure._receiver;
  1654. },
  1655. BoundClosure_interceptorOf(closure) {
  1656. return closure._interceptor;
  1657. },
  1658. BoundClosure__computeFieldNamed(fieldName) {
  1659. var t1, i, $name,
  1660. template = new A.BoundClosure("receiver", "interceptor"),
  1661. names = J.JSArray_markFixedList(Object.getOwnPropertyNames(template));
  1662. for (t1 = names.length, i = 0; i < t1; ++i) {
  1663. $name = names[i];
  1664. if (template[$name] === fieldName)
  1665. return $name;
  1666. }
  1667. throw A.wrapException(A.ArgumentError$("Field name " + fieldName + " not found.", null));
  1668. },
  1669. throwCyclicInit(staticName) {
  1670. throw A.wrapException(new A.CyclicInitializationError(staticName));
  1671. },
  1672. getIsolateAffinityTag($name) {
  1673. return init.getIsolateTag($name);
  1674. },
  1675. LinkedHashMapKeyIterator$(_map, _modifications) {
  1676. var t1 = new A.LinkedHashMapKeyIterator(_map, _modifications);
  1677. t1._cell = _map._first;
  1678. return t1;
  1679. },
  1680. defineProperty(obj, property, value) {
  1681. Object.defineProperty(obj, property, {value: value, enumerable: false, writable: true, configurable: true});
  1682. },
  1683. lookupAndCacheInterceptor(obj) {
  1684. var interceptor, interceptorClass, altTag, mark, t1,
  1685. tag = $.getTagFunction.call$1(obj),
  1686. record = $.dispatchRecordsForInstanceTags[tag];
  1687. if (record != null) {
  1688. Object.defineProperty(obj, init.dispatchPropertyName, {value: record, enumerable: false, writable: true, configurable: true});
  1689. return record.i;
  1690. }
  1691. interceptor = $.interceptorsForUncacheableTags[tag];
  1692. if (interceptor != null)
  1693. return interceptor;
  1694. interceptorClass = init.interceptorsByTag[tag];
  1695. if (interceptorClass == null) {
  1696. altTag = $.alternateTagFunction.call$2(obj, tag);
  1697. if (altTag != null) {
  1698. record = $.dispatchRecordsForInstanceTags[altTag];
  1699. if (record != null) {
  1700. Object.defineProperty(obj, init.dispatchPropertyName, {value: record, enumerable: false, writable: true, configurable: true});
  1701. return record.i;
  1702. }
  1703. interceptor = $.interceptorsForUncacheableTags[altTag];
  1704. if (interceptor != null)
  1705. return interceptor;
  1706. interceptorClass = init.interceptorsByTag[altTag];
  1707. tag = altTag;
  1708. }
  1709. }
  1710. if (interceptorClass == null)
  1711. return null;
  1712. interceptor = interceptorClass.prototype;
  1713. mark = tag[0];
  1714. if (mark === "!") {
  1715. record = A.makeLeafDispatchRecord(interceptor);
  1716. $.dispatchRecordsForInstanceTags[tag] = record;
  1717. Object.defineProperty(obj, init.dispatchPropertyName, {value: record, enumerable: false, writable: true, configurable: true});
  1718. return record.i;
  1719. }
  1720. if (mark === "~") {
  1721. $.interceptorsForUncacheableTags[tag] = interceptor;
  1722. return interceptor;
  1723. }
  1724. if (mark === "-") {
  1725. t1 = A.makeLeafDispatchRecord(interceptor);
  1726. Object.defineProperty(Object.getPrototypeOf(obj), init.dispatchPropertyName, {value: t1, enumerable: false, writable: true, configurable: true});
  1727. return t1.i;
  1728. }
  1729. if (mark === "+")
  1730. return A.patchInteriorProto(obj, interceptor);
  1731. if (mark === "*")
  1732. throw A.wrapException(A.UnimplementedError$(tag));
  1733. if (init.leafTags[tag] === true) {
  1734. t1 = A.makeLeafDispatchRecord(interceptor);
  1735. Object.defineProperty(Object.getPrototypeOf(obj), init.dispatchPropertyName, {value: t1, enumerable: false, writable: true, configurable: true});
  1736. return t1.i;
  1737. } else
  1738. return A.patchInteriorProto(obj, interceptor);
  1739. },
  1740. patchInteriorProto(obj, interceptor) {
  1741. var proto = Object.getPrototypeOf(obj);
  1742. Object.defineProperty(proto, init.dispatchPropertyName, {value: J.makeDispatchRecord(interceptor, proto, null, null), enumerable: false, writable: true, configurable: true});
  1743. return interceptor;
  1744. },
  1745. makeLeafDispatchRecord(interceptor) {
  1746. return J.makeDispatchRecord(interceptor, false, null, !!interceptor.$isJavaScriptIndexingBehavior);
  1747. },
  1748. makeDefaultDispatchRecord(tag, interceptorClass, proto) {
  1749. var interceptor = interceptorClass.prototype;
  1750. if (init.leafTags[tag] === true)
  1751. return A.makeLeafDispatchRecord(interceptor);
  1752. else
  1753. return J.makeDispatchRecord(interceptor, proto, null, null);
  1754. },
  1755. initNativeDispatch() {
  1756. if (true === $.initNativeDispatchFlag)
  1757. return;
  1758. $.initNativeDispatchFlag = true;
  1759. A.initNativeDispatchContinue();
  1760. },
  1761. initNativeDispatchContinue() {
  1762. var map, tags, fun, i, tag, proto, record, interceptorClass;
  1763. $.dispatchRecordsForInstanceTags = Object.create(null);
  1764. $.interceptorsForUncacheableTags = Object.create(null);
  1765. A.initHooks();
  1766. map = init.interceptorsByTag;
  1767. tags = Object.getOwnPropertyNames(map);
  1768. if (typeof window != "undefined") {
  1769. window;
  1770. fun = function() {
  1771. };
  1772. for (i = 0; i < tags.length; ++i) {
  1773. tag = tags[i];
  1774. proto = $.prototypeForTagFunction.call$1(tag);
  1775. if (proto != null) {
  1776. record = A.makeDefaultDispatchRecord(tag, map[tag], proto);
  1777. if (record != null) {
  1778. Object.defineProperty(proto, init.dispatchPropertyName, {value: record, enumerable: false, writable: true, configurable: true});
  1779. fun.prototype = proto;
  1780. }
  1781. }
  1782. }
  1783. }
  1784. for (i = 0; i < tags.length; ++i) {
  1785. tag = tags[i];
  1786. if (/^[A-Za-z_]/.test(tag)) {
  1787. interceptorClass = map[tag];
  1788. map["!" + tag] = interceptorClass;
  1789. map["~" + tag] = interceptorClass;
  1790. map["-" + tag] = interceptorClass;
  1791. map["+" + tag] = interceptorClass;
  1792. map["*" + tag] = interceptorClass;
  1793. }
  1794. }
  1795. },
  1796. initHooks() {
  1797. var transformers, i, transformer, getTag, getUnknownTag, prototypeForTag,
  1798. hooks = B.C_JS_CONST0();
  1799. hooks = A.applyHooksTransformer(B.C_JS_CONST1, A.applyHooksTransformer(B.C_JS_CONST2, A.applyHooksTransformer(B.C_JS_CONST3, A.applyHooksTransformer(B.C_JS_CONST3, A.applyHooksTransformer(B.C_JS_CONST4, A.applyHooksTransformer(B.C_JS_CONST5, A.applyHooksTransformer(B.C_JS_CONST6(B.C_JS_CONST), hooks)))))));
  1800. if (typeof dartNativeDispatchHooksTransformer != "undefined") {
  1801. transformers = dartNativeDispatchHooksTransformer;
  1802. if (typeof transformers == "function")
  1803. transformers = [transformers];
  1804. if (transformers.constructor == Array)
  1805. for (i = 0; i < transformers.length; ++i) {
  1806. transformer = transformers[i];
  1807. if (typeof transformer == "function")
  1808. hooks = transformer(hooks) || hooks;
  1809. }
  1810. }
  1811. getTag = hooks.getTag;
  1812. getUnknownTag = hooks.getUnknownTag;
  1813. prototypeForTag = hooks.prototypeForTag;
  1814. $.getTagFunction = new A.initHooks_closure(getTag);
  1815. $.alternateTagFunction = new A.initHooks_closure0(getUnknownTag);
  1816. $.prototypeForTagFunction = new A.initHooks_closure1(prototypeForTag);
  1817. },
  1818. applyHooksTransformer(transformer, hooks) {
  1819. return transformer(hooks) || hooks;
  1820. },
  1821. JSSyntaxRegExp_makeNative(source, multiLine, caseSensitive, unicode, dotAll, global) {
  1822. var m = multiLine ? "m" : "",
  1823. i = caseSensitive ? "" : "i",
  1824. u = unicode ? "u" : "",
  1825. s = dotAll ? "s" : "",
  1826. g = global ? "g" : "",
  1827. regexp = function(source, modifiers) {
  1828. try {
  1829. return new RegExp(source, modifiers);
  1830. } catch (e) {
  1831. return e;
  1832. }
  1833. }(source, m + i + u + s + g);
  1834. if (regexp instanceof RegExp)
  1835. return regexp;
  1836. throw A.wrapException(A.FormatException$("Illegal RegExp pattern (" + String(regexp) + ")", source, null));
  1837. },
  1838. stringContainsUnchecked(receiver, other, startIndex) {
  1839. var t1;
  1840. if (typeof other == "string")
  1841. return receiver.indexOf(other, startIndex) >= 0;
  1842. else if (other instanceof A.JSSyntaxRegExp) {
  1843. t1 = B.JSString_methods.substring$1(receiver, startIndex);
  1844. return other._nativeRegExp.test(t1);
  1845. } else {
  1846. t1 = J.allMatches$1$s(other, B.JSString_methods.substring$1(receiver, startIndex));
  1847. return !t1.get$isEmpty(t1);
  1848. }
  1849. },
  1850. escapeReplacement(replacement) {
  1851. if (replacement.indexOf("$", 0) >= 0)
  1852. return replacement.replace(/\$/g, "$$$$");
  1853. return replacement;
  1854. },
  1855. stringReplaceFirstRE(receiver, regexp, replacement, startIndex) {
  1856. var match = regexp._execGlobal$2(receiver, startIndex);
  1857. if (match == null)
  1858. return receiver;
  1859. return A.stringReplaceRangeUnchecked(receiver, match._match.index, match.get$end(match), replacement);
  1860. },
  1861. quoteStringForRegExp(string) {
  1862. if (/[[\]{}()*+?.\\^$|]/.test(string))
  1863. return string.replace(/[[\]{}()*+?.\\^$|]/g, "\\$&");
  1864. return string;
  1865. },
  1866. stringReplaceAllUnchecked(receiver, pattern, replacement) {
  1867. var nativeRegexp;
  1868. if (typeof pattern == "string")
  1869. return A.stringReplaceAllUncheckedString(receiver, pattern, replacement);
  1870. if (pattern instanceof A.JSSyntaxRegExp) {
  1871. nativeRegexp = pattern.get$_nativeGlobalVersion();
  1872. nativeRegexp.lastIndex = 0;
  1873. return receiver.replace(nativeRegexp, A.escapeReplacement(replacement));
  1874. }
  1875. return A.stringReplaceAllGeneral(receiver, pattern, replacement);
  1876. },
  1877. stringReplaceAllGeneral(receiver, pattern, replacement) {
  1878. var t1, startIndex, t2, match;
  1879. for (t1 = J.allMatches$1$s(pattern, receiver), t1 = t1.get$iterator(t1), startIndex = 0, t2 = ""; t1.moveNext$0();) {
  1880. match = t1.get$current(t1);
  1881. t2 = t2 + receiver.substring(startIndex, match.get$start(match)) + replacement;
  1882. startIndex = match.get$end(match);
  1883. }
  1884. t1 = t2 + receiver.substring(startIndex);
  1885. return t1.charCodeAt(0) == 0 ? t1 : t1;
  1886. },
  1887. stringReplaceAllUncheckedString(receiver, pattern, replacement) {
  1888. var $length, t1, i, index;
  1889. if (pattern === "") {
  1890. if (receiver === "")
  1891. return replacement;
  1892. $length = receiver.length;
  1893. t1 = "" + replacement;
  1894. for (i = 0; i < $length; ++i)
  1895. t1 = t1 + receiver[i] + replacement;
  1896. return t1.charCodeAt(0) == 0 ? t1 : t1;
  1897. }
  1898. index = receiver.indexOf(pattern, 0);
  1899. if (index < 0)
  1900. return receiver;
  1901. if (receiver.length < 500 || replacement.indexOf("$", 0) >= 0)
  1902. return receiver.split(pattern).join(replacement);
  1903. return receiver.replace(new RegExp(A.quoteStringForRegExp(pattern), "g"), A.escapeReplacement(replacement));
  1904. },
  1905. stringReplaceFirstUnchecked(receiver, pattern, replacement, startIndex) {
  1906. var index, t1, matches, match;
  1907. if (typeof pattern == "string") {
  1908. index = receiver.indexOf(pattern, startIndex);
  1909. if (index < 0)
  1910. return receiver;
  1911. return A.stringReplaceRangeUnchecked(receiver, index, index + pattern.length, replacement);
  1912. }
  1913. if (pattern instanceof A.JSSyntaxRegExp)
  1914. return startIndex === 0 ? receiver.replace(pattern._nativeRegExp, A.escapeReplacement(replacement)) : A.stringReplaceFirstRE(receiver, pattern, replacement, startIndex);
  1915. t1 = J.allMatches$2$s(pattern, receiver, startIndex);
  1916. matches = t1.get$iterator(t1);
  1917. if (!matches.moveNext$0())
  1918. return receiver;
  1919. match = matches.get$current(matches);
  1920. return B.JSString_methods.replaceRange$3(receiver, match.get$start(match), match.get$end(match), replacement);
  1921. },
  1922. stringReplaceRangeUnchecked(receiver, start, end, replacement) {
  1923. return receiver.substring(0, start) + replacement + receiver.substring(end);
  1924. },
  1925. ConstantMapView: function ConstantMapView(t0, t1) {
  1926. this._map = t0;
  1927. this.$ti = t1;
  1928. },
  1929. ConstantMap: function ConstantMap() {
  1930. },
  1931. ConstantStringMap: function ConstantStringMap(t0, t1, t2, t3) {
  1932. var _ = this;
  1933. _.__js_helper$_length = t0;
  1934. _._jsObject = t1;
  1935. _.__js_helper$_keys = t2;
  1936. _.$ti = t3;
  1937. },
  1938. ConstantStringMap_values_closure: function ConstantStringMap_values_closure(t0) {
  1939. this.$this = t0;
  1940. },
  1941. _ConstantMapKeyIterable: function _ConstantMapKeyIterable(t0, t1) {
  1942. this.__js_helper$_map = t0;
  1943. this.$ti = t1;
  1944. },
  1945. GeneralConstantMap: function GeneralConstantMap(t0, t1) {
  1946. this._jsData = t0;
  1947. this.$ti = t1;
  1948. },
  1949. GeneralConstantMap__typeTest_closure: function GeneralConstantMap__typeTest_closure(t0) {
  1950. this.T = t0;
  1951. },
  1952. Instantiation: function Instantiation() {
  1953. },
  1954. Instantiation1: function Instantiation1(t0, t1) {
  1955. this._genericClosure = t0;
  1956. this.$ti = t1;
  1957. },
  1958. JSInvocationMirror: function JSInvocationMirror(t0, t1, t2, t3, t4) {
  1959. var _ = this;
  1960. _.__js_helper$_memberName = t0;
  1961. _.__js_helper$_kind = t1;
  1962. _._arguments = t2;
  1963. _._namedArgumentNames = t3;
  1964. _._typeArgumentCount = t4;
  1965. },
  1966. Primitives_functionNoSuchMethod_closure: function Primitives_functionNoSuchMethod_closure(t0, t1, t2) {
  1967. this._box_0 = t0;
  1968. this.namedArgumentList = t1;
  1969. this.$arguments = t2;
  1970. },
  1971. TypeErrorDecoder: function TypeErrorDecoder(t0, t1, t2, t3, t4, t5) {
  1972. var _ = this;
  1973. _._pattern = t0;
  1974. _._arguments = t1;
  1975. _._argumentsExpr = t2;
  1976. _._expr = t3;
  1977. _._method = t4;
  1978. _._receiver = t5;
  1979. },
  1980. NullError: function NullError(t0, t1) {
  1981. this.__js_helper$_message = t0;
  1982. this._method = t1;
  1983. },
  1984. JsNoSuchMethodError: function JsNoSuchMethodError(t0, t1, t2) {
  1985. this.__js_helper$_message = t0;
  1986. this._method = t1;
  1987. this._receiver = t2;
  1988. },
  1989. UnknownJsTypeError: function UnknownJsTypeError(t0) {
  1990. this.__js_helper$_message = t0;
  1991. },
  1992. NullThrownFromJavaScriptException: function NullThrownFromJavaScriptException(t0) {
  1993. this._irritant = t0;
  1994. },
  1995. ExceptionAndStackTrace: function ExceptionAndStackTrace(t0, t1) {
  1996. this.dartException = t0;
  1997. this.stackTrace = t1;
  1998. },
  1999. _StackTrace: function _StackTrace(t0) {
  2000. this._exception = t0;
  2001. this._trace = null;
  2002. },
  2003. Closure: function Closure() {
  2004. },
  2005. Closure0Args: function Closure0Args() {
  2006. },
  2007. Closure2Args: function Closure2Args() {
  2008. },
  2009. TearOffClosure: function TearOffClosure() {
  2010. },
  2011. StaticClosure: function StaticClosure() {
  2012. },
  2013. BoundClosure: function BoundClosure(t0, t1) {
  2014. this._receiver = t0;
  2015. this._interceptor = t1;
  2016. },
  2017. RuntimeError: function RuntimeError(t0) {
  2018. this.message = t0;
  2019. },
  2020. _Required: function _Required() {
  2021. },
  2022. JsLinkedHashMap: function JsLinkedHashMap(t0) {
  2023. var _ = this;
  2024. _.__js_helper$_length = 0;
  2025. _._last = _._first = _.__js_helper$_rest = _._nums = _._strings = null;
  2026. _._modifications = 0;
  2027. _.$ti = t0;
  2028. },
  2029. JsLinkedHashMap_values_closure: function JsLinkedHashMap_values_closure(t0) {
  2030. this.$this = t0;
  2031. },
  2032. JsLinkedHashMap_addAll_closure: function JsLinkedHashMap_addAll_closure(t0) {
  2033. this.$this = t0;
  2034. },
  2035. LinkedHashMapCell: function LinkedHashMapCell(t0, t1) {
  2036. var _ = this;
  2037. _.hashMapCellKey = t0;
  2038. _.hashMapCellValue = t1;
  2039. _._previous = _._next = null;
  2040. },
  2041. LinkedHashMapKeyIterable: function LinkedHashMapKeyIterable(t0, t1) {
  2042. this.__js_helper$_map = t0;
  2043. this.$ti = t1;
  2044. },
  2045. LinkedHashMapKeyIterator: function LinkedHashMapKeyIterator(t0, t1) {
  2046. var _ = this;
  2047. _.__js_helper$_map = t0;
  2048. _._modifications = t1;
  2049. _.__js_helper$_current = _._cell = null;
  2050. },
  2051. initHooks_closure: function initHooks_closure(t0) {
  2052. this.getTag = t0;
  2053. },
  2054. initHooks_closure0: function initHooks_closure0(t0) {
  2055. this.getUnknownTag = t0;
  2056. },
  2057. initHooks_closure1: function initHooks_closure1(t0) {
  2058. this.prototypeForTag = t0;
  2059. },
  2060. JSSyntaxRegExp: function JSSyntaxRegExp(t0, t1) {
  2061. var _ = this;
  2062. _.pattern = t0;
  2063. _._nativeRegExp = t1;
  2064. _._nativeAnchoredRegExp = _._nativeGlobalRegExp = null;
  2065. },
  2066. _MatchImplementation: function _MatchImplementation(t0) {
  2067. this._match = t0;
  2068. },
  2069. _AllMatchesIterable: function _AllMatchesIterable(t0, t1, t2) {
  2070. this._re = t0;
  2071. this._string = t1;
  2072. this._start = t2;
  2073. },
  2074. _AllMatchesIterator: function _AllMatchesIterator(t0, t1, t2) {
  2075. var _ = this;
  2076. _._regExp = t0;
  2077. _._string = t1;
  2078. _._nextIndex = t2;
  2079. _.__js_helper$_current = null;
  2080. },
  2081. StringMatch: function StringMatch(t0, t1) {
  2082. this.start = t0;
  2083. this.pattern = t1;
  2084. },
  2085. _StringAllMatchesIterable: function _StringAllMatchesIterable(t0, t1, t2) {
  2086. this._input = t0;
  2087. this._pattern = t1;
  2088. this.__js_helper$_index = t2;
  2089. },
  2090. _StringAllMatchesIterator: function _StringAllMatchesIterator(t0, t1, t2) {
  2091. var _ = this;
  2092. _._input = t0;
  2093. _._pattern = t1;
  2094. _.__js_helper$_index = t2;
  2095. _.__js_helper$_current = null;
  2096. },
  2097. throwLateFieldADI(fieldName) {
  2098. return A.throwExpression(A.LateError$fieldADI(fieldName));
  2099. },
  2100. throwUnnamedLateFieldNI() {
  2101. return A.throwExpression(A.LateError$fieldNI(""));
  2102. },
  2103. throwUnnamedLateFieldAI() {
  2104. return A.throwExpression(A.LateError$fieldAI(""));
  2105. },
  2106. throwUnnamedLateFieldADI() {
  2107. return A.throwExpression(A.LateError$fieldADI(""));
  2108. },
  2109. _Cell$() {
  2110. var t1 = new A._Cell("");
  2111. return t1._value = t1;
  2112. },
  2113. _Cell$named(_name) {
  2114. var t1 = new A._Cell(_name);
  2115. return t1._value = t1;
  2116. },
  2117. _Cell: function _Cell(t0) {
  2118. this.__late_helper$_name = t0;
  2119. this._value = null;
  2120. },
  2121. _ensureNativeList(list) {
  2122. return list;
  2123. },
  2124. NativeInt8List__create1(arg) {
  2125. return new Int8Array(arg);
  2126. },
  2127. _checkValidIndex(index, list, $length) {
  2128. if (index >>> 0 !== index || index >= $length)
  2129. throw A.wrapException(A.diagnoseIndexError(list, index));
  2130. },
  2131. _checkValidRange(start, end, $length) {
  2132. var t1;
  2133. if (!(start >>> 0 !== start))
  2134. if (end == null)
  2135. t1 = start > $length;
  2136. else
  2137. t1 = end >>> 0 !== end || start > end || end > $length;
  2138. else
  2139. t1 = true;
  2140. if (t1)
  2141. throw A.wrapException(A.diagnoseRangeError(start, end, $length));
  2142. if (end == null)
  2143. return $length;
  2144. return end;
  2145. },
  2146. NativeTypedData: function NativeTypedData() {
  2147. },
  2148. NativeTypedArray: function NativeTypedArray() {
  2149. },
  2150. NativeTypedArrayOfDouble: function NativeTypedArrayOfDouble() {
  2151. },
  2152. NativeTypedArrayOfInt: function NativeTypedArrayOfInt() {
  2153. },
  2154. NativeInt16List: function NativeInt16List() {
  2155. },
  2156. NativeInt32List: function NativeInt32List() {
  2157. },
  2158. NativeInt8List: function NativeInt8List() {
  2159. },
  2160. NativeUint16List: function NativeUint16List() {
  2161. },
  2162. NativeUint32List: function NativeUint32List() {
  2163. },
  2164. NativeUint8ClampedList: function NativeUint8ClampedList() {
  2165. },
  2166. NativeUint8List: function NativeUint8List() {
  2167. },
  2168. _NativeTypedArrayOfDouble_NativeTypedArray_ListMixin: function _NativeTypedArrayOfDouble_NativeTypedArray_ListMixin() {
  2169. },
  2170. _NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin: function _NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin() {
  2171. },
  2172. _NativeTypedArrayOfInt_NativeTypedArray_ListMixin: function _NativeTypedArrayOfInt_NativeTypedArray_ListMixin() {
  2173. },
  2174. _NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin: function _NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin() {
  2175. },
  2176. Rti__getQuestionFromStar(universe, rti) {
  2177. var question = rti._precomputed1;
  2178. return question == null ? rti._precomputed1 = A._Universe__lookupQuestionRti(universe, rti._primary, true) : question;
  2179. },
  2180. Rti__getFutureFromFutureOr(universe, rti) {
  2181. var future = rti._precomputed1;
  2182. return future == null ? rti._precomputed1 = A._Universe__lookupInterfaceRti(universe, "Future", [rti._primary]) : future;
  2183. },
  2184. Rti__isUnionOfFunctionType(rti) {
  2185. var kind = rti._kind;
  2186. if (kind === 6 || kind === 7 || kind === 8)
  2187. return A.Rti__isUnionOfFunctionType(rti._primary);
  2188. return kind === 11 || kind === 12;
  2189. },
  2190. Rti__getCanonicalRecipe(rti) {
  2191. return rti._canonicalRecipe;
  2192. },
  2193. findType(recipe) {
  2194. return A._Universe_eval(init.typeUniverse, recipe, false);
  2195. },
  2196. instantiatedGenericFunctionType(genericFunctionRti, instantiationRti) {
  2197. var t1, cache, key, probe, rti;
  2198. if (genericFunctionRti == null)
  2199. return null;
  2200. t1 = instantiationRti._rest;
  2201. cache = genericFunctionRti._bindCache;
  2202. if (cache == null)
  2203. cache = genericFunctionRti._bindCache = new Map();
  2204. key = instantiationRti._canonicalRecipe;
  2205. probe = cache.get(key);
  2206. if (probe != null)
  2207. return probe;
  2208. rti = A._substitute(init.typeUniverse, genericFunctionRti._primary, t1, 0);
  2209. cache.set(key, rti);
  2210. return rti;
  2211. },
  2212. _substitute(universe, rti, typeArguments, depth) {
  2213. var baseType, substitutedBaseType, interfaceTypeArguments, substitutedInterfaceTypeArguments, base, substitutedBase, $arguments, substitutedArguments, returnType, substitutedReturnType, functionParameters, substitutedFunctionParameters, bounds, substitutedBounds, index, argument,
  2214. kind = rti._kind;
  2215. switch (kind) {
  2216. case 5:
  2217. case 1:
  2218. case 2:
  2219. case 3:
  2220. case 4:
  2221. return rti;
  2222. case 6:
  2223. baseType = rti._primary;
  2224. substitutedBaseType = A._substitute(universe, baseType, typeArguments, depth);
  2225. if (substitutedBaseType === baseType)
  2226. return rti;
  2227. return A._Universe__lookupStarRti(universe, substitutedBaseType, true);
  2228. case 7:
  2229. baseType = rti._primary;
  2230. substitutedBaseType = A._substitute(universe, baseType, typeArguments, depth);
  2231. if (substitutedBaseType === baseType)
  2232. return rti;
  2233. return A._Universe__lookupQuestionRti(universe, substitutedBaseType, true);
  2234. case 8:
  2235. baseType = rti._primary;
  2236. substitutedBaseType = A._substitute(universe, baseType, typeArguments, depth);
  2237. if (substitutedBaseType === baseType)
  2238. return rti;
  2239. return A._Universe__lookupFutureOrRti(universe, substitutedBaseType, true);
  2240. case 9:
  2241. interfaceTypeArguments = rti._rest;
  2242. substitutedInterfaceTypeArguments = A._substituteArray(universe, interfaceTypeArguments, typeArguments, depth);
  2243. if (substitutedInterfaceTypeArguments === interfaceTypeArguments)
  2244. return rti;
  2245. return A._Universe__lookupInterfaceRti(universe, rti._primary, substitutedInterfaceTypeArguments);
  2246. case 10:
  2247. base = rti._primary;
  2248. substitutedBase = A._substitute(universe, base, typeArguments, depth);
  2249. $arguments = rti._rest;
  2250. substitutedArguments = A._substituteArray(universe, $arguments, typeArguments, depth);
  2251. if (substitutedBase === base && substitutedArguments === $arguments)
  2252. return rti;
  2253. return A._Universe__lookupBindingRti(universe, substitutedBase, substitutedArguments);
  2254. case 11:
  2255. returnType = rti._primary;
  2256. substitutedReturnType = A._substitute(universe, returnType, typeArguments, depth);
  2257. functionParameters = rti._rest;
  2258. substitutedFunctionParameters = A._substituteFunctionParameters(universe, functionParameters, typeArguments, depth);
  2259. if (substitutedReturnType === returnType && substitutedFunctionParameters === functionParameters)
  2260. return rti;
  2261. return A._Universe__lookupFunctionRti(universe, substitutedReturnType, substitutedFunctionParameters);
  2262. case 12:
  2263. bounds = rti._rest;
  2264. depth += bounds.length;
  2265. substitutedBounds = A._substituteArray(universe, bounds, typeArguments, depth);
  2266. base = rti._primary;
  2267. substitutedBase = A._substitute(universe, base, typeArguments, depth);
  2268. if (substitutedBounds === bounds && substitutedBase === base)
  2269. return rti;
  2270. return A._Universe__lookupGenericFunctionRti(universe, substitutedBase, substitutedBounds, true);
  2271. case 13:
  2272. index = rti._primary;
  2273. if (index < depth)
  2274. return rti;
  2275. argument = typeArguments[index - depth];
  2276. if (argument == null)
  2277. return rti;
  2278. return argument;
  2279. default:
  2280. throw A.wrapException(A.AssertionError$("Attempted to substitute unexpected RTI kind " + kind));
  2281. }
  2282. },
  2283. _substituteArray(universe, rtiArray, typeArguments, depth) {
  2284. var changed, i, rti, substitutedRti,
  2285. $length = rtiArray.length,
  2286. result = A._Utils_newArrayOrEmpty($length);
  2287. for (changed = false, i = 0; i < $length; ++i) {
  2288. rti = rtiArray[i];
  2289. substitutedRti = A._substitute(universe, rti, typeArguments, depth);
  2290. if (substitutedRti !== rti)
  2291. changed = true;
  2292. result[i] = substitutedRti;
  2293. }
  2294. return changed ? result : rtiArray;
  2295. },
  2296. _substituteNamed(universe, namedArray, typeArguments, depth) {
  2297. var changed, i, t1, t2, rti, substitutedRti,
  2298. $length = namedArray.length,
  2299. result = A._Utils_newArrayOrEmpty($length);
  2300. for (changed = false, i = 0; i < $length; i += 3) {
  2301. t1 = namedArray[i];
  2302. t2 = namedArray[i + 1];
  2303. rti = namedArray[i + 2];
  2304. substitutedRti = A._substitute(universe, rti, typeArguments, depth);
  2305. if (substitutedRti !== rti)
  2306. changed = true;
  2307. result.splice(i, 3, t1, t2, substitutedRti);
  2308. }
  2309. return changed ? result : namedArray;
  2310. },
  2311. _substituteFunctionParameters(universe, functionParameters, typeArguments, depth) {
  2312. var result,
  2313. requiredPositional = functionParameters._requiredPositional,
  2314. substitutedRequiredPositional = A._substituteArray(universe, requiredPositional, typeArguments, depth),
  2315. optionalPositional = functionParameters._optionalPositional,
  2316. substitutedOptionalPositional = A._substituteArray(universe, optionalPositional, typeArguments, depth),
  2317. named = functionParameters._named,
  2318. substitutedNamed = A._substituteNamed(universe, named, typeArguments, depth);
  2319. if (substitutedRequiredPositional === requiredPositional && substitutedOptionalPositional === optionalPositional && substitutedNamed === named)
  2320. return functionParameters;
  2321. result = new A._FunctionParameters();
  2322. result._requiredPositional = substitutedRequiredPositional;
  2323. result._optionalPositional = substitutedOptionalPositional;
  2324. result._named = substitutedNamed;
  2325. return result;
  2326. },
  2327. _setArrayType(target, rti) {
  2328. target[init.arrayRti] = rti;
  2329. return target;
  2330. },
  2331. closureFunctionType(closure) {
  2332. var signature = closure.$signature;
  2333. if (signature != null) {
  2334. if (typeof signature == "number")
  2335. return A.getTypeFromTypesTable(signature);
  2336. return closure.$signature();
  2337. }
  2338. return null;
  2339. },
  2340. instanceOrFunctionType(object, testRti) {
  2341. var rti;
  2342. if (A.Rti__isUnionOfFunctionType(testRti))
  2343. if (object instanceof A.Closure) {
  2344. rti = A.closureFunctionType(object);
  2345. if (rti != null)
  2346. return rti;
  2347. }
  2348. return A.instanceType(object);
  2349. },
  2350. instanceType(object) {
  2351. var rti;
  2352. if (object instanceof A.Object) {
  2353. rti = object.$ti;
  2354. return rti != null ? rti : A._instanceTypeFromConstructor(object);
  2355. }
  2356. if (Array.isArray(object))
  2357. return A._arrayInstanceType(object);
  2358. return A._instanceTypeFromConstructor(J.getInterceptor$(object));
  2359. },
  2360. _arrayInstanceType(object) {
  2361. var rti = object[init.arrayRti],
  2362. defaultRti = type$.JSArray_dynamic;
  2363. if (rti == null)
  2364. return defaultRti;
  2365. if (rti.constructor !== defaultRti.constructor)
  2366. return defaultRti;
  2367. return rti;
  2368. },
  2369. _instanceType(object) {
  2370. var rti = object.$ti;
  2371. return rti != null ? rti : A._instanceTypeFromConstructor(object);
  2372. },
  2373. _instanceTypeFromConstructor(instance) {
  2374. var $constructor = instance.constructor,
  2375. probe = $constructor.$ccache;
  2376. if (probe != null)
  2377. return probe;
  2378. return A._instanceTypeFromConstructorMiss(instance, $constructor);
  2379. },
  2380. _instanceTypeFromConstructorMiss(instance, $constructor) {
  2381. var effectiveConstructor = instance instanceof A.Closure ? instance.__proto__.__proto__.constructor : $constructor,
  2382. rti = A._Universe_findErasedType(init.typeUniverse, effectiveConstructor.name);
  2383. $constructor.$ccache = rti;
  2384. return rti;
  2385. },
  2386. getTypeFromTypesTable(index) {
  2387. var rti,
  2388. table = init.types,
  2389. type = table[index];
  2390. if (typeof type == "string") {
  2391. rti = A._Universe_eval(init.typeUniverse, type, false);
  2392. table[index] = rti;
  2393. return rti;
  2394. }
  2395. return type;
  2396. },
  2397. getRuntimeType(object) {
  2398. var rti = object instanceof A.Closure ? A.closureFunctionType(object) : null;
  2399. return A.createRuntimeType(rti == null ? A.instanceType(object) : rti);
  2400. },
  2401. createRuntimeType(rti) {
  2402. var recipe, starErasedRecipe, starErasedRti,
  2403. type = rti._cachedRuntimeType;
  2404. if (type != null)
  2405. return type;
  2406. recipe = rti._canonicalRecipe;
  2407. starErasedRecipe = recipe.replace(/\*/g, "");
  2408. if (starErasedRecipe === recipe)
  2409. return rti._cachedRuntimeType = new A._Type(rti);
  2410. starErasedRti = A._Universe_eval(init.typeUniverse, starErasedRecipe, true);
  2411. type = starErasedRti._cachedRuntimeType;
  2412. return rti._cachedRuntimeType = type == null ? starErasedRti._cachedRuntimeType = new A._Type(starErasedRti) : type;
  2413. },
  2414. typeLiteral(recipe) {
  2415. return A.createRuntimeType(A._Universe_eval(init.typeUniverse, recipe, false));
  2416. },
  2417. _installSpecializedIsTest(object) {
  2418. var t1, unstarred, isFn, $name, testRti = this;
  2419. if (testRti === type$.Object)
  2420. return A._finishIsFn(testRti, object, A._isObject);
  2421. if (!A.isStrongTopType(testRti))
  2422. if (!(testRti === type$.legacy_Object))
  2423. t1 = false;
  2424. else
  2425. t1 = true;
  2426. else
  2427. t1 = true;
  2428. if (t1)
  2429. return A._finishIsFn(testRti, object, A._isTop);
  2430. t1 = testRti._kind;
  2431. unstarred = t1 === 6 ? testRti._primary : testRti;
  2432. if (unstarred === type$.int)
  2433. isFn = A._isInt;
  2434. else if (unstarred === type$.double || unstarred === type$.num)
  2435. isFn = A._isNum;
  2436. else if (unstarred === type$.String)
  2437. isFn = A._isString;
  2438. else
  2439. isFn = unstarred === type$.bool ? A._isBool : null;
  2440. if (isFn != null)
  2441. return A._finishIsFn(testRti, object, isFn);
  2442. if (unstarred._kind === 9) {
  2443. $name = unstarred._primary;
  2444. if (unstarred._rest.every(A.isTopType)) {
  2445. testRti._specializedTestResource = "$is" + $name;
  2446. if ($name === "List")
  2447. return A._finishIsFn(testRti, object, A._isListTestViaProperty);
  2448. return A._finishIsFn(testRti, object, A._isTestViaProperty);
  2449. }
  2450. } else if (t1 === 7)
  2451. return A._finishIsFn(testRti, object, A._generalNullableIsTestImplementation);
  2452. return A._finishIsFn(testRti, object, A._generalIsTestImplementation);
  2453. },
  2454. _finishIsFn(testRti, object, isFn) {
  2455. testRti._is = isFn;
  2456. return testRti._is(object);
  2457. },
  2458. _installSpecializedAsCheck(object) {
  2459. var t1, testRti = this,
  2460. asFn = A._generalAsCheckImplementation;
  2461. if (!A.isStrongTopType(testRti))
  2462. if (!(testRti === type$.legacy_Object))
  2463. t1 = false;
  2464. else
  2465. t1 = true;
  2466. else
  2467. t1 = true;
  2468. if (t1)
  2469. asFn = A._asTop;
  2470. else if (testRti === type$.Object)
  2471. asFn = A._asObject;
  2472. else {
  2473. t1 = A.isNullable(testRti);
  2474. if (t1)
  2475. asFn = A._generalNullableAsCheckImplementation;
  2476. }
  2477. testRti._as = asFn;
  2478. return testRti._as(object);
  2479. },
  2480. _nullIs(testRti) {
  2481. var t1,
  2482. kind = testRti._kind;
  2483. if (!A.isStrongTopType(testRti))
  2484. if (!(testRti === type$.legacy_Object))
  2485. if (!(testRti === type$.legacy_Never))
  2486. if (kind !== 7)
  2487. t1 = kind === 8 && A._nullIs(testRti._primary) || testRti === type$.Null || testRti === type$.JSNull;
  2488. else
  2489. t1 = true;
  2490. else
  2491. t1 = true;
  2492. else
  2493. t1 = true;
  2494. else
  2495. t1 = true;
  2496. return t1;
  2497. },
  2498. _generalIsTestImplementation(object) {
  2499. var testRti = this;
  2500. if (object == null)
  2501. return A._nullIs(testRti);
  2502. return A._isSubtype(init.typeUniverse, A.instanceOrFunctionType(object, testRti), null, testRti, null);
  2503. },
  2504. _generalNullableIsTestImplementation(object) {
  2505. if (object == null)
  2506. return true;
  2507. return this._primary._is(object);
  2508. },
  2509. _isTestViaProperty(object) {
  2510. var tag, testRti = this;
  2511. if (object == null)
  2512. return A._nullIs(testRti);
  2513. tag = testRti._specializedTestResource;
  2514. if (object instanceof A.Object)
  2515. return !!object[tag];
  2516. return !!J.getInterceptor$(object)[tag];
  2517. },
  2518. _isListTestViaProperty(object) {
  2519. var tag, testRti = this;
  2520. if (object == null)
  2521. return A._nullIs(testRti);
  2522. if (typeof object != "object")
  2523. return false;
  2524. if (Array.isArray(object))
  2525. return true;
  2526. tag = testRti._specializedTestResource;
  2527. if (object instanceof A.Object)
  2528. return !!object[tag];
  2529. return !!J.getInterceptor$(object)[tag];
  2530. },
  2531. _generalAsCheckImplementation(object) {
  2532. var t1, testRti = this;
  2533. if (object == null) {
  2534. t1 = A.isNullable(testRti);
  2535. if (t1)
  2536. return object;
  2537. } else if (testRti._is(object))
  2538. return object;
  2539. A._failedAsCheck(object, testRti);
  2540. },
  2541. _generalNullableAsCheckImplementation(object) {
  2542. var testRti = this;
  2543. if (object == null)
  2544. return object;
  2545. else if (testRti._is(object))
  2546. return object;
  2547. A._failedAsCheck(object, testRti);
  2548. },
  2549. _failedAsCheck(object, testRti) {
  2550. throw A.wrapException(A._TypeError$fromMessage(A._Error_compose(object, A.instanceOrFunctionType(object, testRti), A._rtiToString(testRti, null))));
  2551. },
  2552. _Error_compose(object, objectRti, checkedTypeDescription) {
  2553. var objectDescription = A.Error_safeToString(object);
  2554. return objectDescription + ": type '" + A._rtiToString(objectRti == null ? A.instanceType(object) : objectRti, null) + "' is not a subtype of type '" + checkedTypeDescription + "'";
  2555. },
  2556. _TypeError$fromMessage(message) {
  2557. return new A._TypeError("TypeError: " + message);
  2558. },
  2559. _TypeError__TypeError$forType(object, type) {
  2560. return new A._TypeError("TypeError: " + A._Error_compose(object, null, type));
  2561. },
  2562. _isObject(object) {
  2563. return object != null;
  2564. },
  2565. _asObject(object) {
  2566. if (object != null)
  2567. return object;
  2568. throw A.wrapException(A._TypeError__TypeError$forType(object, "Object"));
  2569. },
  2570. _isTop(object) {
  2571. return true;
  2572. },
  2573. _asTop(object) {
  2574. return object;
  2575. },
  2576. _isBool(object) {
  2577. return true === object || false === object;
  2578. },
  2579. _asBool(object) {
  2580. if (true === object)
  2581. return true;
  2582. if (false === object)
  2583. return false;
  2584. throw A.wrapException(A._TypeError__TypeError$forType(object, "bool"));
  2585. },
  2586. _asBoolS(object) {
  2587. if (true === object)
  2588. return true;
  2589. if (false === object)
  2590. return false;
  2591. if (object == null)
  2592. return object;
  2593. throw A.wrapException(A._TypeError__TypeError$forType(object, "bool"));
  2594. },
  2595. _asBoolQ(object) {
  2596. if (true === object)
  2597. return true;
  2598. if (false === object)
  2599. return false;
  2600. if (object == null)
  2601. return object;
  2602. throw A.wrapException(A._TypeError__TypeError$forType(object, "bool?"));
  2603. },
  2604. _asDouble(object) {
  2605. if (typeof object == "number")
  2606. return object;
  2607. throw A.wrapException(A._TypeError__TypeError$forType(object, "double"));
  2608. },
  2609. _asDoubleS(object) {
  2610. if (typeof object == "number")
  2611. return object;
  2612. if (object == null)
  2613. return object;
  2614. throw A.wrapException(A._TypeError__TypeError$forType(object, "double"));
  2615. },
  2616. _asDoubleQ(object) {
  2617. if (typeof object == "number")
  2618. return object;
  2619. if (object == null)
  2620. return object;
  2621. throw A.wrapException(A._TypeError__TypeError$forType(object, "double?"));
  2622. },
  2623. _isInt(object) {
  2624. return typeof object == "number" && Math.floor(object) === object;
  2625. },
  2626. _asInt(object) {
  2627. if (typeof object == "number" && Math.floor(object) === object)
  2628. return object;
  2629. throw A.wrapException(A._TypeError__TypeError$forType(object, "int"));
  2630. },
  2631. _asIntS(object) {
  2632. if (typeof object == "number" && Math.floor(object) === object)
  2633. return object;
  2634. if (object == null)
  2635. return object;
  2636. throw A.wrapException(A._TypeError__TypeError$forType(object, "int"));
  2637. },
  2638. _asIntQ(object) {
  2639. if (typeof object == "number" && Math.floor(object) === object)
  2640. return object;
  2641. if (object == null)
  2642. return object;
  2643. throw A.wrapException(A._TypeError__TypeError$forType(object, "int?"));
  2644. },
  2645. _isNum(object) {
  2646. return typeof object == "number";
  2647. },
  2648. _asNum(object) {
  2649. if (typeof object == "number")
  2650. return object;
  2651. throw A.wrapException(A._TypeError__TypeError$forType(object, "num"));
  2652. },
  2653. _asNumS(object) {
  2654. if (typeof object == "number")
  2655. return object;
  2656. if (object == null)
  2657. return object;
  2658. throw A.wrapException(A._TypeError__TypeError$forType(object, "num"));
  2659. },
  2660. _asNumQ(object) {
  2661. if (typeof object == "number")
  2662. return object;
  2663. if (object == null)
  2664. return object;
  2665. throw A.wrapException(A._TypeError__TypeError$forType(object, "num?"));
  2666. },
  2667. _isString(object) {
  2668. return typeof object == "string";
  2669. },
  2670. _asString(object) {
  2671. if (typeof object == "string")
  2672. return object;
  2673. throw A.wrapException(A._TypeError__TypeError$forType(object, "String"));
  2674. },
  2675. _asStringS(object) {
  2676. if (typeof object == "string")
  2677. return object;
  2678. if (object == null)
  2679. return object;
  2680. throw A.wrapException(A._TypeError__TypeError$forType(object, "String"));
  2681. },
  2682. _asStringQ(object) {
  2683. if (typeof object == "string")
  2684. return object;
  2685. if (object == null)
  2686. return object;
  2687. throw A.wrapException(A._TypeError__TypeError$forType(object, "String?"));
  2688. },
  2689. _rtiArrayToString(array, genericContext) {
  2690. var s, sep, i;
  2691. for (s = "", sep = "", i = 0; i < array.length; ++i, sep = ", ")
  2692. s += sep + A._rtiToString(array[i], genericContext);
  2693. return s;
  2694. },
  2695. _functionRtiToString(functionType, genericContext, bounds) {
  2696. var boundsLength, outerContextLength, offset, i, t1, t2, typeParametersText, typeSep, boundRti, kind, t3, parameters, requiredPositional, requiredPositionalLength, optionalPositional, optionalPositionalLength, named, namedLength, returnTypeText, argumentsText, sep, _s2_ = ", ";
  2697. if (bounds != null) {
  2698. boundsLength = bounds.length;
  2699. if (genericContext == null) {
  2700. genericContext = A._setArrayType([], type$.JSArray_String);
  2701. outerContextLength = null;
  2702. } else
  2703. outerContextLength = genericContext.length;
  2704. offset = genericContext.length;
  2705. for (i = boundsLength; i > 0; --i)
  2706. genericContext.push("T" + (offset + i));
  2707. for (t1 = type$.nullable_Object, t2 = type$.legacy_Object, typeParametersText = "<", typeSep = "", i = 0; i < boundsLength; ++i, typeSep = _s2_) {
  2708. typeParametersText = B.JSString_methods.$add(typeParametersText + typeSep, genericContext[genericContext.length - 1 - i]);
  2709. boundRti = bounds[i];
  2710. kind = boundRti._kind;
  2711. if (!(kind === 2 || kind === 3 || kind === 4 || kind === 5 || boundRti === t1))
  2712. if (!(boundRti === t2))
  2713. t3 = false;
  2714. else
  2715. t3 = true;
  2716. else
  2717. t3 = true;
  2718. if (!t3)
  2719. typeParametersText += " extends " + A._rtiToString(boundRti, genericContext);
  2720. }
  2721. typeParametersText += ">";
  2722. } else {
  2723. typeParametersText = "";
  2724. outerContextLength = null;
  2725. }
  2726. t1 = functionType._primary;
  2727. parameters = functionType._rest;
  2728. requiredPositional = parameters._requiredPositional;
  2729. requiredPositionalLength = requiredPositional.length;
  2730. optionalPositional = parameters._optionalPositional;
  2731. optionalPositionalLength = optionalPositional.length;
  2732. named = parameters._named;
  2733. namedLength = named.length;
  2734. returnTypeText = A._rtiToString(t1, genericContext);
  2735. for (argumentsText = "", sep = "", i = 0; i < requiredPositionalLength; ++i, sep = _s2_)
  2736. argumentsText += sep + A._rtiToString(requiredPositional[i], genericContext);
  2737. if (optionalPositionalLength > 0) {
  2738. argumentsText += sep + "[";
  2739. for (sep = "", i = 0; i < optionalPositionalLength; ++i, sep = _s2_)
  2740. argumentsText += sep + A._rtiToString(optionalPositional[i], genericContext);
  2741. argumentsText += "]";
  2742. }
  2743. if (namedLength > 0) {
  2744. argumentsText += sep + "{";
  2745. for (sep = "", i = 0; i < namedLength; i += 3, sep = _s2_) {
  2746. argumentsText += sep;
  2747. if (named[i + 1])
  2748. argumentsText += "required ";
  2749. argumentsText += A._rtiToString(named[i + 2], genericContext) + " " + named[i];
  2750. }
  2751. argumentsText += "}";
  2752. }
  2753. if (outerContextLength != null) {
  2754. genericContext.toString;
  2755. genericContext.length = outerContextLength;
  2756. }
  2757. return typeParametersText + "(" + argumentsText + ") => " + returnTypeText;
  2758. },
  2759. _rtiToString(rti, genericContext) {
  2760. var s, questionArgument, argumentKind, $name, $arguments, t1,
  2761. kind = rti._kind;
  2762. if (kind === 5)
  2763. return "erased";
  2764. if (kind === 2)
  2765. return "dynamic";
  2766. if (kind === 3)
  2767. return "void";
  2768. if (kind === 1)
  2769. return "Never";
  2770. if (kind === 4)
  2771. return "any";
  2772. if (kind === 6) {
  2773. s = A._rtiToString(rti._primary, genericContext);
  2774. return s;
  2775. }
  2776. if (kind === 7) {
  2777. questionArgument = rti._primary;
  2778. s = A._rtiToString(questionArgument, genericContext);
  2779. argumentKind = questionArgument._kind;
  2780. return (argumentKind === 11 || argumentKind === 12 ? "(" + s + ")" : s) + "?";
  2781. }
  2782. if (kind === 8)
  2783. return "FutureOr<" + A._rtiToString(rti._primary, genericContext) + ">";
  2784. if (kind === 9) {
  2785. $name = A._unminifyOrTag(rti._primary);
  2786. $arguments = rti._rest;
  2787. return $arguments.length > 0 ? $name + ("<" + A._rtiArrayToString($arguments, genericContext) + ">") : $name;
  2788. }
  2789. if (kind === 11)
  2790. return A._functionRtiToString(rti, genericContext, null);
  2791. if (kind === 12)
  2792. return A._functionRtiToString(rti._primary, genericContext, rti._rest);
  2793. if (kind === 13) {
  2794. t1 = rti._primary;
  2795. return genericContext[genericContext.length - 1 - t1];
  2796. }
  2797. return "?";
  2798. },
  2799. _unminifyOrTag(rawClassName) {
  2800. var preserved = init.mangledGlobalNames[rawClassName];
  2801. if (preserved != null)
  2802. return preserved;
  2803. return rawClassName;
  2804. },
  2805. _Universe_findRule(universe, targetType) {
  2806. var rule = universe.tR[targetType];
  2807. for (; typeof rule == "string";)
  2808. rule = universe.tR[rule];
  2809. return rule;
  2810. },
  2811. _Universe_findErasedType(universe, cls) {
  2812. var $length, erased, $arguments, i, $interface,
  2813. t1 = universe.eT,
  2814. probe = t1[cls];
  2815. if (probe == null)
  2816. return A._Universe_eval(universe, cls, false);
  2817. else if (typeof probe == "number") {
  2818. $length = probe;
  2819. erased = A._Universe__lookupTerminalRti(universe, 5, "#");
  2820. $arguments = A._Utils_newArrayOrEmpty($length);
  2821. for (i = 0; i < $length; ++i)
  2822. $arguments[i] = erased;
  2823. $interface = A._Universe__lookupInterfaceRti(universe, cls, $arguments);
  2824. t1[cls] = $interface;
  2825. return $interface;
  2826. } else
  2827. return probe;
  2828. },
  2829. _Universe_addRules(universe, rules) {
  2830. return A._Utils_objectAssign(universe.tR, rules);
  2831. },
  2832. _Universe_addErasedTypes(universe, types) {
  2833. return A._Utils_objectAssign(universe.eT, types);
  2834. },
  2835. _Universe_eval(universe, recipe, normalize) {
  2836. var rti,
  2837. t1 = universe.eC,
  2838. probe = t1.get(recipe);
  2839. if (probe != null)
  2840. return probe;
  2841. rti = A._Parser_parse(A._Parser_create(universe, null, recipe, normalize));
  2842. t1.set(recipe, rti);
  2843. return rti;
  2844. },
  2845. _Universe_evalInEnvironment(universe, environment, recipe) {
  2846. var probe, rti,
  2847. cache = environment._evalCache;
  2848. if (cache == null)
  2849. cache = environment._evalCache = new Map();
  2850. probe = cache.get(recipe);
  2851. if (probe != null)
  2852. return probe;
  2853. rti = A._Parser_parse(A._Parser_create(universe, environment, recipe, true));
  2854. cache.set(recipe, rti);
  2855. return rti;
  2856. },
  2857. _Universe_bind(universe, environment, argumentsRti) {
  2858. var argumentsRecipe, probe, rti,
  2859. cache = environment._bindCache;
  2860. if (cache == null)
  2861. cache = environment._bindCache = new Map();
  2862. argumentsRecipe = argumentsRti._canonicalRecipe;
  2863. probe = cache.get(argumentsRecipe);
  2864. if (probe != null)
  2865. return probe;
  2866. rti = A._Universe__lookupBindingRti(universe, environment, argumentsRti._kind === 10 ? argumentsRti._rest : [argumentsRti]);
  2867. cache.set(argumentsRecipe, rti);
  2868. return rti;
  2869. },
  2870. _Universe__installTypeTests(universe, rti) {
  2871. rti._as = A._installSpecializedAsCheck;
  2872. rti._is = A._installSpecializedIsTest;
  2873. return rti;
  2874. },
  2875. _Universe__lookupTerminalRti(universe, kind, key) {
  2876. var rti, t1,
  2877. probe = universe.eC.get(key);
  2878. if (probe != null)
  2879. return probe;
  2880. rti = new A.Rti(null, null);
  2881. rti._kind = kind;
  2882. rti._canonicalRecipe = key;
  2883. t1 = A._Universe__installTypeTests(universe, rti);
  2884. universe.eC.set(key, t1);
  2885. return t1;
  2886. },
  2887. _Universe__lookupStarRti(universe, baseType, normalize) {
  2888. var t1,
  2889. key = baseType._canonicalRecipe + "*",
  2890. probe = universe.eC.get(key);
  2891. if (probe != null)
  2892. return probe;
  2893. t1 = A._Universe__createStarRti(universe, baseType, key, normalize);
  2894. universe.eC.set(key, t1);
  2895. return t1;
  2896. },
  2897. _Universe__createStarRti(universe, baseType, key, normalize) {
  2898. var baseKind, t1, rti;
  2899. if (normalize) {
  2900. baseKind = baseType._kind;
  2901. if (!A.isStrongTopType(baseType))
  2902. t1 = baseType === type$.Null || baseType === type$.JSNull || baseKind === 7 || baseKind === 6;
  2903. else
  2904. t1 = true;
  2905. if (t1)
  2906. return baseType;
  2907. }
  2908. rti = new A.Rti(null, null);
  2909. rti._kind = 6;
  2910. rti._primary = baseType;
  2911. rti._canonicalRecipe = key;
  2912. return A._Universe__installTypeTests(universe, rti);
  2913. },
  2914. _Universe__lookupQuestionRti(universe, baseType, normalize) {
  2915. var t1,
  2916. key = baseType._canonicalRecipe + "?",
  2917. probe = universe.eC.get(key);
  2918. if (probe != null)
  2919. return probe;
  2920. t1 = A._Universe__createQuestionRti(universe, baseType, key, normalize);
  2921. universe.eC.set(key, t1);
  2922. return t1;
  2923. },
  2924. _Universe__createQuestionRti(universe, baseType, key, normalize) {
  2925. var baseKind, t1, starArgument, rti;
  2926. if (normalize) {
  2927. baseKind = baseType._kind;
  2928. if (!A.isStrongTopType(baseType))
  2929. if (!(baseType === type$.Null || baseType === type$.JSNull))
  2930. if (baseKind !== 7)
  2931. t1 = baseKind === 8 && A.isNullable(baseType._primary);
  2932. else
  2933. t1 = true;
  2934. else
  2935. t1 = true;
  2936. else
  2937. t1 = true;
  2938. if (t1)
  2939. return baseType;
  2940. else if (baseKind === 1 || baseType === type$.legacy_Never)
  2941. return type$.Null;
  2942. else if (baseKind === 6) {
  2943. starArgument = baseType._primary;
  2944. if (starArgument._kind === 8 && A.isNullable(starArgument._primary))
  2945. return starArgument;
  2946. else
  2947. return A.Rti__getQuestionFromStar(universe, baseType);
  2948. }
  2949. }
  2950. rti = new A.Rti(null, null);
  2951. rti._kind = 7;
  2952. rti._primary = baseType;
  2953. rti._canonicalRecipe = key;
  2954. return A._Universe__installTypeTests(universe, rti);
  2955. },
  2956. _Universe__lookupFutureOrRti(universe, baseType, normalize) {
  2957. var t1,
  2958. key = baseType._canonicalRecipe + "/",
  2959. probe = universe.eC.get(key);
  2960. if (probe != null)
  2961. return probe;
  2962. t1 = A._Universe__createFutureOrRti(universe, baseType, key, normalize);
  2963. universe.eC.set(key, t1);
  2964. return t1;
  2965. },
  2966. _Universe__createFutureOrRti(universe, baseType, key, normalize) {
  2967. var t1, t2, rti;
  2968. if (normalize) {
  2969. t1 = baseType._kind;
  2970. if (!A.isStrongTopType(baseType))
  2971. if (!(baseType === type$.legacy_Object))
  2972. t2 = false;
  2973. else
  2974. t2 = true;
  2975. else
  2976. t2 = true;
  2977. if (t2 || baseType === type$.Object)
  2978. return baseType;
  2979. else if (t1 === 1)
  2980. return A._Universe__lookupInterfaceRti(universe, "Future", [baseType]);
  2981. else if (baseType === type$.Null || baseType === type$.JSNull)
  2982. return type$.nullable_Future_Null;
  2983. }
  2984. rti = new A.Rti(null, null);
  2985. rti._kind = 8;
  2986. rti._primary = baseType;
  2987. rti._canonicalRecipe = key;
  2988. return A._Universe__installTypeTests(universe, rti);
  2989. },
  2990. _Universe__lookupGenericFunctionParameterRti(universe, index) {
  2991. var rti, t1,
  2992. key = "" + index + "^",
  2993. probe = universe.eC.get(key);
  2994. if (probe != null)
  2995. return probe;
  2996. rti = new A.Rti(null, null);
  2997. rti._kind = 13;
  2998. rti._primary = index;
  2999. rti._canonicalRecipe = key;
  3000. t1 = A._Universe__installTypeTests(universe, rti);
  3001. universe.eC.set(key, t1);
  3002. return t1;
  3003. },
  3004. _Universe__canonicalRecipeJoin($arguments) {
  3005. var s, sep, i,
  3006. $length = $arguments.length;
  3007. for (s = "", sep = "", i = 0; i < $length; ++i, sep = ",")
  3008. s += sep + $arguments[i]._canonicalRecipe;
  3009. return s;
  3010. },
  3011. _Universe__canonicalRecipeJoinNamed($arguments) {
  3012. var s, sep, i, t1, nameSep,
  3013. $length = $arguments.length;
  3014. for (s = "", sep = "", i = 0; i < $length; i += 3, sep = ",") {
  3015. t1 = $arguments[i];
  3016. nameSep = $arguments[i + 1] ? "!" : ":";
  3017. s += sep + t1 + nameSep + $arguments[i + 2]._canonicalRecipe;
  3018. }
  3019. return s;
  3020. },
  3021. _Universe__lookupInterfaceRti(universe, $name, $arguments) {
  3022. var probe, rti, t1,
  3023. s = $name;
  3024. if ($arguments.length > 0)
  3025. s += "<" + A._Universe__canonicalRecipeJoin($arguments) + ">";
  3026. probe = universe.eC.get(s);
  3027. if (probe != null)
  3028. return probe;
  3029. rti = new A.Rti(null, null);
  3030. rti._kind = 9;
  3031. rti._primary = $name;
  3032. rti._rest = $arguments;
  3033. if ($arguments.length > 0)
  3034. rti._precomputed1 = $arguments[0];
  3035. rti._canonicalRecipe = s;
  3036. t1 = A._Universe__installTypeTests(universe, rti);
  3037. universe.eC.set(s, t1);
  3038. return t1;
  3039. },
  3040. _Universe__lookupBindingRti(universe, base, $arguments) {
  3041. var newBase, newArguments, key, probe, rti, t1;
  3042. if (base._kind === 10) {
  3043. newBase = base._primary;
  3044. newArguments = base._rest.concat($arguments);
  3045. } else {
  3046. newArguments = $arguments;
  3047. newBase = base;
  3048. }
  3049. key = newBase._canonicalRecipe + (";<" + A._Universe__canonicalRecipeJoin(newArguments) + ">");
  3050. probe = universe.eC.get(key);
  3051. if (probe != null)
  3052. return probe;
  3053. rti = new A.Rti(null, null);
  3054. rti._kind = 10;
  3055. rti._primary = newBase;
  3056. rti._rest = newArguments;
  3057. rti._canonicalRecipe = key;
  3058. t1 = A._Universe__installTypeTests(universe, rti);
  3059. universe.eC.set(key, t1);
  3060. return t1;
  3061. },
  3062. _Universe__lookupFunctionRti(universe, returnType, parameters) {
  3063. var sep, key, probe, rti, t1,
  3064. s = returnType._canonicalRecipe,
  3065. requiredPositional = parameters._requiredPositional,
  3066. requiredPositionalLength = requiredPositional.length,
  3067. optionalPositional = parameters._optionalPositional,
  3068. optionalPositionalLength = optionalPositional.length,
  3069. named = parameters._named,
  3070. namedLength = named.length,
  3071. recipe = "(" + A._Universe__canonicalRecipeJoin(requiredPositional);
  3072. if (optionalPositionalLength > 0) {
  3073. sep = requiredPositionalLength > 0 ? "," : "";
  3074. recipe += sep + "[" + A._Universe__canonicalRecipeJoin(optionalPositional) + "]";
  3075. }
  3076. if (namedLength > 0) {
  3077. sep = requiredPositionalLength > 0 ? "," : "";
  3078. recipe += sep + "{" + A._Universe__canonicalRecipeJoinNamed(named) + "}";
  3079. }
  3080. key = s + (recipe + ")");
  3081. probe = universe.eC.get(key);
  3082. if (probe != null)
  3083. return probe;
  3084. rti = new A.Rti(null, null);
  3085. rti._kind = 11;
  3086. rti._primary = returnType;
  3087. rti._rest = parameters;
  3088. rti._canonicalRecipe = key;
  3089. t1 = A._Universe__installTypeTests(universe, rti);
  3090. universe.eC.set(key, t1);
  3091. return t1;
  3092. },
  3093. _Universe__lookupGenericFunctionRti(universe, baseFunctionType, bounds, normalize) {
  3094. var t1,
  3095. key = baseFunctionType._canonicalRecipe + ("<" + A._Universe__canonicalRecipeJoin(bounds) + ">"),
  3096. probe = universe.eC.get(key);
  3097. if (probe != null)
  3098. return probe;
  3099. t1 = A._Universe__createGenericFunctionRti(universe, baseFunctionType, bounds, key, normalize);
  3100. universe.eC.set(key, t1);
  3101. return t1;
  3102. },
  3103. _Universe__createGenericFunctionRti(universe, baseFunctionType, bounds, key, normalize) {
  3104. var $length, typeArguments, count, i, bound, substitutedBase, substitutedBounds, rti;
  3105. if (normalize) {
  3106. $length = bounds.length;
  3107. typeArguments = A._Utils_newArrayOrEmpty($length);
  3108. for (count = 0, i = 0; i < $length; ++i) {
  3109. bound = bounds[i];
  3110. if (bound._kind === 1) {
  3111. typeArguments[i] = bound;
  3112. ++count;
  3113. }
  3114. }
  3115. if (count > 0) {
  3116. substitutedBase = A._substitute(universe, baseFunctionType, typeArguments, 0);
  3117. substitutedBounds = A._substituteArray(universe, bounds, typeArguments, 0);
  3118. return A._Universe__lookupGenericFunctionRti(universe, substitutedBase, substitutedBounds, bounds !== substitutedBounds);
  3119. }
  3120. }
  3121. rti = new A.Rti(null, null);
  3122. rti._kind = 12;
  3123. rti._primary = baseFunctionType;
  3124. rti._rest = bounds;
  3125. rti._canonicalRecipe = key;
  3126. return A._Universe__installTypeTests(universe, rti);
  3127. },
  3128. _Parser_create(universe, environment, recipe, normalize) {
  3129. return {u: universe, e: environment, r: recipe, s: [], p: 0, n: normalize};
  3130. },
  3131. _Parser_parse(parser) {
  3132. var t2, i, ch, t3, array, head, base, parameters, optionalPositional, named, item,
  3133. source = parser.r,
  3134. t1 = parser.s;
  3135. for (t2 = source.length, i = 0; i < t2;) {
  3136. ch = source.charCodeAt(i);
  3137. if (ch >= 48 && ch <= 57)
  3138. i = A._Parser_handleDigit(i + 1, ch, source, t1);
  3139. else if ((((ch | 32) >>> 0) - 97 & 65535) < 26 || ch === 95 || ch === 36)
  3140. i = A._Parser_handleIdentifier(parser, i, source, t1, false);
  3141. else if (ch === 46)
  3142. i = A._Parser_handleIdentifier(parser, i, source, t1, true);
  3143. else {
  3144. ++i;
  3145. switch (ch) {
  3146. case 44:
  3147. break;
  3148. case 58:
  3149. t1.push(false);
  3150. break;
  3151. case 33:
  3152. t1.push(true);
  3153. break;
  3154. case 59:
  3155. t1.push(A._Parser_toType(parser.u, parser.e, t1.pop()));
  3156. break;
  3157. case 94:
  3158. t1.push(A._Universe__lookupGenericFunctionParameterRti(parser.u, t1.pop()));
  3159. break;
  3160. case 35:
  3161. t1.push(A._Universe__lookupTerminalRti(parser.u, 5, "#"));
  3162. break;
  3163. case 64:
  3164. t1.push(A._Universe__lookupTerminalRti(parser.u, 2, "@"));
  3165. break;
  3166. case 126:
  3167. t1.push(A._Universe__lookupTerminalRti(parser.u, 3, "~"));
  3168. break;
  3169. case 60:
  3170. t1.push(parser.p);
  3171. parser.p = t1.length;
  3172. break;
  3173. case 62:
  3174. t3 = parser.u;
  3175. array = t1.splice(parser.p);
  3176. A._Parser_toTypes(parser.u, parser.e, array);
  3177. parser.p = t1.pop();
  3178. head = t1.pop();
  3179. if (typeof head == "string")
  3180. t1.push(A._Universe__lookupInterfaceRti(t3, head, array));
  3181. else {
  3182. base = A._Parser_toType(t3, parser.e, head);
  3183. switch (base._kind) {
  3184. case 11:
  3185. t1.push(A._Universe__lookupGenericFunctionRti(t3, base, array, parser.n));
  3186. break;
  3187. default:
  3188. t1.push(A._Universe__lookupBindingRti(t3, base, array));
  3189. break;
  3190. }
  3191. }
  3192. break;
  3193. case 38:
  3194. A._Parser_handleExtendedOperations(parser, t1);
  3195. break;
  3196. case 42:
  3197. t3 = parser.u;
  3198. t1.push(A._Universe__lookupStarRti(t3, A._Parser_toType(t3, parser.e, t1.pop()), parser.n));
  3199. break;
  3200. case 63:
  3201. t3 = parser.u;
  3202. t1.push(A._Universe__lookupQuestionRti(t3, A._Parser_toType(t3, parser.e, t1.pop()), parser.n));
  3203. break;
  3204. case 47:
  3205. t3 = parser.u;
  3206. t1.push(A._Universe__lookupFutureOrRti(t3, A._Parser_toType(t3, parser.e, t1.pop()), parser.n));
  3207. break;
  3208. case 40:
  3209. t1.push(parser.p);
  3210. parser.p = t1.length;
  3211. break;
  3212. case 41:
  3213. t3 = parser.u;
  3214. parameters = new A._FunctionParameters();
  3215. optionalPositional = t3.sEA;
  3216. named = t3.sEA;
  3217. head = t1.pop();
  3218. if (typeof head == "number")
  3219. switch (head) {
  3220. case -1:
  3221. optionalPositional = t1.pop();
  3222. break;
  3223. case -2:
  3224. named = t1.pop();
  3225. break;
  3226. default:
  3227. t1.push(head);
  3228. break;
  3229. }
  3230. else
  3231. t1.push(head);
  3232. array = t1.splice(parser.p);
  3233. A._Parser_toTypes(parser.u, parser.e, array);
  3234. parser.p = t1.pop();
  3235. parameters._requiredPositional = array;
  3236. parameters._optionalPositional = optionalPositional;
  3237. parameters._named = named;
  3238. t1.push(A._Universe__lookupFunctionRti(t3, A._Parser_toType(t3, parser.e, t1.pop()), parameters));
  3239. break;
  3240. case 91:
  3241. t1.push(parser.p);
  3242. parser.p = t1.length;
  3243. break;
  3244. case 93:
  3245. array = t1.splice(parser.p);
  3246. A._Parser_toTypes(parser.u, parser.e, array);
  3247. parser.p = t1.pop();
  3248. t1.push(array);
  3249. t1.push(-1);
  3250. break;
  3251. case 123:
  3252. t1.push(parser.p);
  3253. parser.p = t1.length;
  3254. break;
  3255. case 125:
  3256. array = t1.splice(parser.p);
  3257. A._Parser_toTypesNamed(parser.u, parser.e, array);
  3258. parser.p = t1.pop();
  3259. t1.push(array);
  3260. t1.push(-2);
  3261. break;
  3262. default:
  3263. throw "Bad character " + ch;
  3264. }
  3265. }
  3266. }
  3267. item = t1.pop();
  3268. return A._Parser_toType(parser.u, parser.e, item);
  3269. },
  3270. _Parser_handleDigit(i, digit, source, stack) {
  3271. var t1, ch,
  3272. value = digit - 48;
  3273. for (t1 = source.length; i < t1; ++i) {
  3274. ch = source.charCodeAt(i);
  3275. if (!(ch >= 48 && ch <= 57))
  3276. break;
  3277. value = value * 10 + (ch - 48);
  3278. }
  3279. stack.push(value);
  3280. return i;
  3281. },
  3282. _Parser_handleIdentifier(parser, start, source, stack, hasPeriod) {
  3283. var t1, ch, t2, string, environment, recipe,
  3284. i = start + 1;
  3285. for (t1 = source.length; i < t1; ++i) {
  3286. ch = source.charCodeAt(i);
  3287. if (ch === 46) {
  3288. if (hasPeriod)
  3289. break;
  3290. hasPeriod = true;
  3291. } else {
  3292. if (!((((ch | 32) >>> 0) - 97 & 65535) < 26 || ch === 95 || ch === 36))
  3293. t2 = ch >= 48 && ch <= 57;
  3294. else
  3295. t2 = true;
  3296. if (!t2)
  3297. break;
  3298. }
  3299. }
  3300. string = source.substring(start, i);
  3301. if (hasPeriod) {
  3302. t1 = parser.u;
  3303. environment = parser.e;
  3304. if (environment._kind === 10)
  3305. environment = environment._primary;
  3306. recipe = A._Universe_findRule(t1, environment._primary)[string];
  3307. if (recipe == null)
  3308. A.throwExpression('No "' + string + '" in "' + A.Rti__getCanonicalRecipe(environment) + '"');
  3309. stack.push(A._Universe_evalInEnvironment(t1, environment, recipe));
  3310. } else
  3311. stack.push(string);
  3312. return i;
  3313. },
  3314. _Parser_handleExtendedOperations(parser, stack) {
  3315. var $top = stack.pop();
  3316. if (0 === $top) {
  3317. stack.push(A._Universe__lookupTerminalRti(parser.u, 1, "0&"));
  3318. return;
  3319. }
  3320. if (1 === $top) {
  3321. stack.push(A._Universe__lookupTerminalRti(parser.u, 4, "1&"));
  3322. return;
  3323. }
  3324. throw A.wrapException(A.AssertionError$("Unexpected extended operation " + A.S($top)));
  3325. },
  3326. _Parser_toType(universe, environment, item) {
  3327. if (typeof item == "string")
  3328. return A._Universe__lookupInterfaceRti(universe, item, universe.sEA);
  3329. else if (typeof item == "number")
  3330. return A._Parser_indexToType(universe, environment, item);
  3331. else
  3332. return item;
  3333. },
  3334. _Parser_toTypes(universe, environment, items) {
  3335. var i,
  3336. $length = items.length;
  3337. for (i = 0; i < $length; ++i)
  3338. items[i] = A._Parser_toType(universe, environment, items[i]);
  3339. },
  3340. _Parser_toTypesNamed(universe, environment, items) {
  3341. var i,
  3342. $length = items.length;
  3343. for (i = 2; i < $length; i += 3)
  3344. items[i] = A._Parser_toType(universe, environment, items[i]);
  3345. },
  3346. _Parser_indexToType(universe, environment, index) {
  3347. var typeArguments, len,
  3348. kind = environment._kind;
  3349. if (kind === 10) {
  3350. if (index === 0)
  3351. return environment._primary;
  3352. typeArguments = environment._rest;
  3353. len = typeArguments.length;
  3354. if (index <= len)
  3355. return typeArguments[index - 1];
  3356. index -= len;
  3357. environment = environment._primary;
  3358. kind = environment._kind;
  3359. } else if (index === 0)
  3360. return environment;
  3361. if (kind !== 9)
  3362. throw A.wrapException(A.AssertionError$("Indexed base must be an interface type"));
  3363. typeArguments = environment._rest;
  3364. if (index <= typeArguments.length)
  3365. return typeArguments[index - 1];
  3366. throw A.wrapException(A.AssertionError$("Bad index " + index + " for " + environment.toString$0(0)));
  3367. },
  3368. _isSubtype(universe, s, sEnv, t, tEnv) {
  3369. var t1, sKind, leftTypeVariable, tKind, sBounds, tBounds, sLength, i, sBound, tBound;
  3370. if (s === t)
  3371. return true;
  3372. if (!A.isStrongTopType(t))
  3373. if (!(t === type$.legacy_Object))
  3374. t1 = false;
  3375. else
  3376. t1 = true;
  3377. else
  3378. t1 = true;
  3379. if (t1)
  3380. return true;
  3381. sKind = s._kind;
  3382. if (sKind === 4)
  3383. return true;
  3384. if (A.isStrongTopType(s))
  3385. return false;
  3386. if (s._kind !== 1)
  3387. t1 = false;
  3388. else
  3389. t1 = true;
  3390. if (t1)
  3391. return true;
  3392. leftTypeVariable = sKind === 13;
  3393. if (leftTypeVariable)
  3394. if (A._isSubtype(universe, sEnv[s._primary], sEnv, t, tEnv))
  3395. return true;
  3396. tKind = t._kind;
  3397. t1 = s === type$.Null || s === type$.JSNull;
  3398. if (t1) {
  3399. if (tKind === 8)
  3400. return A._isSubtype(universe, s, sEnv, t._primary, tEnv);
  3401. return t === type$.Null || t === type$.JSNull || tKind === 7 || tKind === 6;
  3402. }
  3403. if (t === type$.Object) {
  3404. if (sKind === 8)
  3405. return A._isSubtype(universe, s._primary, sEnv, t, tEnv);
  3406. if (sKind === 6)
  3407. return A._isSubtype(universe, s._primary, sEnv, t, tEnv);
  3408. return sKind !== 7;
  3409. }
  3410. if (sKind === 6)
  3411. return A._isSubtype(universe, s._primary, sEnv, t, tEnv);
  3412. if (tKind === 6) {
  3413. t1 = A.Rti__getQuestionFromStar(universe, t);
  3414. return A._isSubtype(universe, s, sEnv, t1, tEnv);
  3415. }
  3416. if (sKind === 8) {
  3417. if (!A._isSubtype(universe, s._primary, sEnv, t, tEnv))
  3418. return false;
  3419. return A._isSubtype(universe, A.Rti__getFutureFromFutureOr(universe, s), sEnv, t, tEnv);
  3420. }
  3421. if (sKind === 7) {
  3422. t1 = A._isSubtype(universe, type$.Null, sEnv, t, tEnv);
  3423. return t1 && A._isSubtype(universe, s._primary, sEnv, t, tEnv);
  3424. }
  3425. if (tKind === 8) {
  3426. if (A._isSubtype(universe, s, sEnv, t._primary, tEnv))
  3427. return true;
  3428. return A._isSubtype(universe, s, sEnv, A.Rti__getFutureFromFutureOr(universe, t), tEnv);
  3429. }
  3430. if (tKind === 7) {
  3431. t1 = A._isSubtype(universe, s, sEnv, type$.Null, tEnv);
  3432. return t1 || A._isSubtype(universe, s, sEnv, t._primary, tEnv);
  3433. }
  3434. if (leftTypeVariable)
  3435. return false;
  3436. t1 = sKind !== 11;
  3437. if ((!t1 || sKind === 12) && t === type$.Function)
  3438. return true;
  3439. if (tKind === 12) {
  3440. if (s === type$.JavaScriptFunction)
  3441. return true;
  3442. if (sKind !== 12)
  3443. return false;
  3444. sBounds = s._rest;
  3445. tBounds = t._rest;
  3446. sLength = sBounds.length;
  3447. if (sLength !== tBounds.length)
  3448. return false;
  3449. sEnv = sEnv == null ? sBounds : sBounds.concat(sEnv);
  3450. tEnv = tEnv == null ? tBounds : tBounds.concat(tEnv);
  3451. for (i = 0; i < sLength; ++i) {
  3452. sBound = sBounds[i];
  3453. tBound = tBounds[i];
  3454. if (!A._isSubtype(universe, sBound, sEnv, tBound, tEnv) || !A._isSubtype(universe, tBound, tEnv, sBound, sEnv))
  3455. return false;
  3456. }
  3457. return A._isFunctionSubtype(universe, s._primary, sEnv, t._primary, tEnv);
  3458. }
  3459. if (tKind === 11) {
  3460. if (s === type$.JavaScriptFunction)
  3461. return true;
  3462. if (t1)
  3463. return false;
  3464. return A._isFunctionSubtype(universe, s, sEnv, t, tEnv);
  3465. }
  3466. if (sKind === 9) {
  3467. if (tKind !== 9)
  3468. return false;
  3469. return A._isInterfaceSubtype(universe, s, sEnv, t, tEnv);
  3470. }
  3471. return false;
  3472. },
  3473. _isFunctionSubtype(universe, s, sEnv, t, tEnv) {
  3474. var sParameters, tParameters, sRequiredPositional, tRequiredPositional, sRequiredPositionalLength, tRequiredPositionalLength, requiredPositionalDelta, sOptionalPositional, tOptionalPositional, sOptionalPositionalLength, tOptionalPositionalLength, i, t1, sNamed, tNamed, sNamedLength, tNamedLength, sIndex, tIndex, tName, sName, sIsRequired;
  3475. if (!A._isSubtype(universe, s._primary, sEnv, t._primary, tEnv))
  3476. return false;
  3477. sParameters = s._rest;
  3478. tParameters = t._rest;
  3479. sRequiredPositional = sParameters._requiredPositional;
  3480. tRequiredPositional = tParameters._requiredPositional;
  3481. sRequiredPositionalLength = sRequiredPositional.length;
  3482. tRequiredPositionalLength = tRequiredPositional.length;
  3483. if (sRequiredPositionalLength > tRequiredPositionalLength)
  3484. return false;
  3485. requiredPositionalDelta = tRequiredPositionalLength - sRequiredPositionalLength;
  3486. sOptionalPositional = sParameters._optionalPositional;
  3487. tOptionalPositional = tParameters._optionalPositional;
  3488. sOptionalPositionalLength = sOptionalPositional.length;
  3489. tOptionalPositionalLength = tOptionalPositional.length;
  3490. if (sRequiredPositionalLength + sOptionalPositionalLength < tRequiredPositionalLength + tOptionalPositionalLength)
  3491. return false;
  3492. for (i = 0; i < sRequiredPositionalLength; ++i) {
  3493. t1 = sRequiredPositional[i];
  3494. if (!A._isSubtype(universe, tRequiredPositional[i], tEnv, t1, sEnv))
  3495. return false;
  3496. }
  3497. for (i = 0; i < requiredPositionalDelta; ++i) {
  3498. t1 = sOptionalPositional[i];
  3499. if (!A._isSubtype(universe, tRequiredPositional[sRequiredPositionalLength + i], tEnv, t1, sEnv))
  3500. return false;
  3501. }
  3502. for (i = 0; i < tOptionalPositionalLength; ++i) {
  3503. t1 = sOptionalPositional[requiredPositionalDelta + i];
  3504. if (!A._isSubtype(universe, tOptionalPositional[i], tEnv, t1, sEnv))
  3505. return false;
  3506. }
  3507. sNamed = sParameters._named;
  3508. tNamed = tParameters._named;
  3509. sNamedLength = sNamed.length;
  3510. tNamedLength = tNamed.length;
  3511. for (sIndex = 0, tIndex = 0; tIndex < tNamedLength; tIndex += 3) {
  3512. tName = tNamed[tIndex];
  3513. for (; true;) {
  3514. if (sIndex >= sNamedLength)
  3515. return false;
  3516. sName = sNamed[sIndex];
  3517. sIndex += 3;
  3518. if (tName < sName)
  3519. return false;
  3520. sIsRequired = sNamed[sIndex - 2];
  3521. if (sName < tName) {
  3522. if (sIsRequired)
  3523. return false;
  3524. continue;
  3525. }
  3526. t1 = tNamed[tIndex + 1];
  3527. if (sIsRequired && !t1)
  3528. return false;
  3529. t1 = sNamed[sIndex - 1];
  3530. if (!A._isSubtype(universe, tNamed[tIndex + 2], tEnv, t1, sEnv))
  3531. return false;
  3532. break;
  3533. }
  3534. }
  3535. for (; sIndex < sNamedLength;) {
  3536. if (sNamed[sIndex + 1])
  3537. return false;
  3538. sIndex += 3;
  3539. }
  3540. return true;
  3541. },
  3542. _isInterfaceSubtype(universe, s, sEnv, t, tEnv) {
  3543. var rule, recipes, $length, supertypeArgs, i, t1, t2,
  3544. sName = s._primary,
  3545. tName = t._primary;
  3546. for (; sName !== tName;) {
  3547. rule = universe.tR[sName];
  3548. if (rule == null)
  3549. return false;
  3550. if (typeof rule == "string") {
  3551. sName = rule;
  3552. continue;
  3553. }
  3554. recipes = rule[tName];
  3555. if (recipes == null)
  3556. return false;
  3557. $length = recipes.length;
  3558. supertypeArgs = $length > 0 ? new Array($length) : init.typeUniverse.sEA;
  3559. for (i = 0; i < $length; ++i)
  3560. supertypeArgs[i] = A._Universe_evalInEnvironment(universe, s, recipes[i]);
  3561. return A._areArgumentsSubtypes(universe, supertypeArgs, null, sEnv, t._rest, tEnv);
  3562. }
  3563. t1 = s._rest;
  3564. t2 = t._rest;
  3565. return A._areArgumentsSubtypes(universe, t1, null, sEnv, t2, tEnv);
  3566. },
  3567. _areArgumentsSubtypes(universe, sArgs, sVariances, sEnv, tArgs, tEnv) {
  3568. var i, t1, t2,
  3569. $length = sArgs.length;
  3570. for (i = 0; i < $length; ++i) {
  3571. t1 = sArgs[i];
  3572. t2 = tArgs[i];
  3573. if (!A._isSubtype(universe, t1, sEnv, t2, tEnv))
  3574. return false;
  3575. }
  3576. return true;
  3577. },
  3578. isNullable(t) {
  3579. var t1,
  3580. kind = t._kind;
  3581. if (!(t === type$.Null || t === type$.JSNull))
  3582. if (!A.isStrongTopType(t))
  3583. if (kind !== 7)
  3584. if (!(kind === 6 && A.isNullable(t._primary)))
  3585. t1 = kind === 8 && A.isNullable(t._primary);
  3586. else
  3587. t1 = true;
  3588. else
  3589. t1 = true;
  3590. else
  3591. t1 = true;
  3592. else
  3593. t1 = true;
  3594. return t1;
  3595. },
  3596. isTopType(t) {
  3597. var t1;
  3598. if (!A.isStrongTopType(t))
  3599. if (!(t === type$.legacy_Object))
  3600. t1 = false;
  3601. else
  3602. t1 = true;
  3603. else
  3604. t1 = true;
  3605. return t1;
  3606. },
  3607. isStrongTopType(t) {
  3608. var kind = t._kind;
  3609. return kind === 2 || kind === 3 || kind === 4 || kind === 5 || t === type$.nullable_Object;
  3610. },
  3611. _Utils_objectAssign(o, other) {
  3612. var i, key,
  3613. keys = Object.keys(other),
  3614. $length = keys.length;
  3615. for (i = 0; i < $length; ++i) {
  3616. key = keys[i];
  3617. o[key] = other[key];
  3618. }
  3619. },
  3620. _Utils_newArrayOrEmpty($length) {
  3621. return $length > 0 ? new Array($length) : init.typeUniverse.sEA;
  3622. },
  3623. Rti: function Rti(t0, t1) {
  3624. var _ = this;
  3625. _._as = t0;
  3626. _._is = t1;
  3627. _._cachedRuntimeType = _._specializedTestResource = _._precomputed1 = null;
  3628. _._kind = 0;
  3629. _._canonicalRecipe = _._bindCache = _._evalCache = _._rest = _._primary = null;
  3630. },
  3631. _FunctionParameters: function _FunctionParameters() {
  3632. this._named = this._optionalPositional = this._requiredPositional = null;
  3633. },
  3634. _Type: function _Type(t0) {
  3635. this._rti = t0;
  3636. },
  3637. _Error: function _Error() {
  3638. },
  3639. _TypeError: function _TypeError(t0) {
  3640. this.__rti$_message = t0;
  3641. },
  3642. _AsyncRun__initializeScheduleImmediate() {
  3643. var div, span, t1 = {};
  3644. if (self.scheduleImmediate != null)
  3645. return A.async__AsyncRun__scheduleImmediateJsOverride$closure();
  3646. if (self.MutationObserver != null && self.document != null) {
  3647. div = self.document.createElement("div");
  3648. span = self.document.createElement("span");
  3649. t1.storedCallback = null;
  3650. new self.MutationObserver(A.convertDartClosureToJS(new A._AsyncRun__initializeScheduleImmediate_internalCallback(t1), 1)).observe(div, {childList: true});
  3651. return new A._AsyncRun__initializeScheduleImmediate_closure(t1, div, span);
  3652. } else if (self.setImmediate != null)
  3653. return A.async__AsyncRun__scheduleImmediateWithSetImmediate$closure();
  3654. return A.async__AsyncRun__scheduleImmediateWithTimer$closure();
  3655. },
  3656. _AsyncRun__scheduleImmediateJsOverride(callback) {
  3657. self.scheduleImmediate(A.convertDartClosureToJS(new A._AsyncRun__scheduleImmediateJsOverride_internalCallback(callback), 0));
  3658. },
  3659. _AsyncRun__scheduleImmediateWithSetImmediate(callback) {
  3660. self.setImmediate(A.convertDartClosureToJS(new A._AsyncRun__scheduleImmediateWithSetImmediate_internalCallback(callback), 0));
  3661. },
  3662. _AsyncRun__scheduleImmediateWithTimer(callback) {
  3663. A.Timer__createTimer(B.Duration_0, callback);
  3664. },
  3665. Timer__createTimer(duration, callback) {
  3666. var milliseconds = B.JSInt_methods._tdivFast$1(duration._duration, 1000);
  3667. return A._TimerImpl$(milliseconds < 0 ? 0 : milliseconds, callback);
  3668. },
  3669. _TimerImpl$(milliseconds, callback) {
  3670. var t1 = new A._TimerImpl(true);
  3671. t1._TimerImpl$2(milliseconds, callback);
  3672. return t1;
  3673. },
  3674. _TimerImpl$periodic(milliseconds, callback) {
  3675. var t1 = new A._TimerImpl(false);
  3676. t1._TimerImpl$periodic$2(milliseconds, callback);
  3677. return t1;
  3678. },
  3679. _makeAsyncAwaitCompleter($T) {
  3680. return new A._AsyncAwaitCompleter(new A._Future($.Zone__current, $T._eval$1("_Future<0>")), $T._eval$1("_AsyncAwaitCompleter<0>"));
  3681. },
  3682. _asyncStartSync(bodyFunction, completer) {
  3683. bodyFunction.call$2(0, null);
  3684. completer.isSync = true;
  3685. return completer._future;
  3686. },
  3687. _asyncAwait(object, bodyFunction) {
  3688. A._awaitOnObject(object, bodyFunction);
  3689. },
  3690. _asyncReturn(object, completer) {
  3691. completer.complete$1(object);
  3692. },
  3693. _asyncRethrow(object, completer) {
  3694. completer.completeError$2(A.unwrapException(object), A.getTraceFromException(object));
  3695. },
  3696. _awaitOnObject(object, bodyFunction) {
  3697. var t1, future,
  3698. thenCallback = new A._awaitOnObject_closure(bodyFunction),
  3699. errorCallback = new A._awaitOnObject_closure0(bodyFunction);
  3700. if (object instanceof A._Future)
  3701. object._thenAwait$1$2(thenCallback, errorCallback, type$.dynamic);
  3702. else {
  3703. t1 = type$.dynamic;
  3704. if (type$.Future_dynamic._is(object))
  3705. object.then$1$2$onError(0, thenCallback, errorCallback, t1);
  3706. else {
  3707. future = new A._Future($.Zone__current, type$._Future_dynamic);
  3708. future._state = 8;
  3709. future._resultOrListeners = object;
  3710. future._thenAwait$1$2(thenCallback, errorCallback, t1);
  3711. }
  3712. }
  3713. },
  3714. _wrapJsFunctionForAsync($function) {
  3715. var $protected = function(fn, ERROR) {
  3716. return function(errorCode, result) {
  3717. while (true)
  3718. try {
  3719. fn(errorCode, result);
  3720. break;
  3721. } catch (error) {
  3722. result = error;
  3723. errorCode = ERROR;
  3724. }
  3725. };
  3726. }($function, 1);
  3727. return $.Zone__current.registerBinaryCallback$3$1(new A._wrapJsFunctionForAsync_closure($protected), type$.void, type$.int, type$.dynamic);
  3728. },
  3729. _IterationMarker_yieldStar(values) {
  3730. return new A._IterationMarker(values, 1);
  3731. },
  3732. _IterationMarker_endOfIteration() {
  3733. return B._IterationMarker_null_2;
  3734. },
  3735. _IterationMarker_uncaughtError(error) {
  3736. return new A._IterationMarker(error, 3);
  3737. },
  3738. _makeSyncStarIterable(body, $T) {
  3739. return new A._SyncStarIterable(body, $T._eval$1("_SyncStarIterable<0>"));
  3740. },
  3741. AsyncError$(error, stackTrace) {
  3742. var t1 = A.checkNotNullable(error, "error", type$.Object);
  3743. return new A.AsyncError(t1, stackTrace == null ? A.AsyncError_defaultStackTrace(error) : stackTrace);
  3744. },
  3745. AsyncError_defaultStackTrace(error) {
  3746. var stackTrace;
  3747. if (type$.Error._is(error)) {
  3748. stackTrace = error.get$stackTrace();
  3749. if (stackTrace != null)
  3750. return stackTrace;
  3751. }
  3752. return B._StringStackTrace_3uE;
  3753. },
  3754. Future_Future$value(value, $T) {
  3755. var t1, t2;
  3756. $T._as(value);
  3757. t1 = value;
  3758. t2 = new A._Future($.Zone__current, $T._eval$1("_Future<0>"));
  3759. t2._asyncComplete$1(t1);
  3760. return t2;
  3761. },
  3762. Future_Future$error(error, stackTrace, $T) {
  3763. var t1, replacement;
  3764. A.checkNotNullable(error, "error", type$.Object);
  3765. t1 = $.Zone__current;
  3766. if (t1 !== B.C__RootZone) {
  3767. replacement = t1.errorCallback$2(error, stackTrace);
  3768. if (replacement != null) {
  3769. error = replacement.error;
  3770. stackTrace = replacement.stackTrace;
  3771. }
  3772. }
  3773. if (stackTrace == null)
  3774. stackTrace = A.AsyncError_defaultStackTrace(error);
  3775. t1 = new A._Future($.Zone__current, $T._eval$1("_Future<0>"));
  3776. t1._asyncCompleteError$2(error, stackTrace);
  3777. return t1;
  3778. },
  3779. Future_wait(futures, $T) {
  3780. var error, stackTrace, handleError, future, pos, e, st, t1, t2, exception, _box_0 = {}, cleanUp = null,
  3781. eagerError = false,
  3782. _future = new A._Future($.Zone__current, $T._eval$1("_Future<List<0>>"));
  3783. _box_0.values = null;
  3784. _box_0.remaining = 0;
  3785. error = A._Cell$named("error");
  3786. stackTrace = A._Cell$named("stackTrace");
  3787. handleError = new A.Future_wait_handleError(_box_0, cleanUp, eagerError, _future, error, stackTrace);
  3788. try {
  3789. for (t1 = J.get$iterator$ax(futures), t2 = type$.Null; t1.moveNext$0();) {
  3790. future = t1.get$current(t1);
  3791. pos = _box_0.remaining;
  3792. J.then$1$2$onError$x(future, new A.Future_wait_closure(_box_0, pos, _future, cleanUp, eagerError, error, stackTrace, $T), handleError, t2);
  3793. ++_box_0.remaining;
  3794. }
  3795. t1 = _box_0.remaining;
  3796. if (t1 === 0) {
  3797. t1 = _future;
  3798. t1._completeWithValue$1(A._setArrayType([], $T._eval$1("JSArray<0>")));
  3799. return t1;
  3800. }
  3801. _box_0.values = A.List_List$filled(t1, null, false, $T._eval$1("0?"));
  3802. } catch (exception) {
  3803. e = A.unwrapException(exception);
  3804. st = A.getTraceFromException(exception);
  3805. if (_box_0.remaining === 0 || eagerError)
  3806. return A.Future_Future$error(e, st, $T._eval$1("List<0>"));
  3807. else {
  3808. error._value = e;
  3809. stackTrace._value = st;
  3810. }
  3811. }
  3812. return _future;
  3813. },
  3814. _Future$zoneValue(value, _zone, $T) {
  3815. var t1 = new A._Future(_zone, $T._eval$1("_Future<0>"));
  3816. t1._state = 8;
  3817. t1._resultOrListeners = value;
  3818. return t1;
  3819. },
  3820. _Future__chainCoreFuture(source, target) {
  3821. var t1, listeners;
  3822. for (; t1 = source._state, (t1 & 4) !== 0;)
  3823. source = source._resultOrListeners;
  3824. if ((t1 & 24) !== 0) {
  3825. listeners = target._removeListeners$0();
  3826. target._cloneResult$1(source);
  3827. A._Future__propagateToListeners(target, listeners);
  3828. } else {
  3829. listeners = target._resultOrListeners;
  3830. target._state = target._state & 1 | 4;
  3831. target._resultOrListeners = source;
  3832. source._prependListeners$1(listeners);
  3833. }
  3834. },
  3835. _Future__propagateToListeners(source, listeners) {
  3836. var t2, _box_0, t3, t4, hasError, nextListener, nextListener0, sourceResult, t5, zone, oldZone, result, current, _box_1 = {},
  3837. t1 = _box_1.source = source;
  3838. for (t2 = type$.Future_dynamic; true;) {
  3839. _box_0 = {};
  3840. t3 = t1._state;
  3841. t4 = (t3 & 16) === 0;
  3842. hasError = !t4;
  3843. if (listeners == null) {
  3844. if (hasError && (t3 & 1) === 0) {
  3845. t2 = t1._resultOrListeners;
  3846. t1._zone.handleUncaughtError$2(t2.error, t2.stackTrace);
  3847. }
  3848. return;
  3849. }
  3850. _box_0.listener = listeners;
  3851. nextListener = listeners._nextListener;
  3852. for (t1 = listeners; nextListener != null; t1 = nextListener, nextListener = nextListener0) {
  3853. t1._nextListener = null;
  3854. A._Future__propagateToListeners(_box_1.source, t1);
  3855. _box_0.listener = nextListener;
  3856. nextListener0 = nextListener._nextListener;
  3857. }
  3858. t3 = _box_1.source;
  3859. sourceResult = t3._resultOrListeners;
  3860. _box_0.listenerHasError = hasError;
  3861. _box_0.listenerValueOrError = sourceResult;
  3862. if (t4) {
  3863. t5 = t1.state;
  3864. t5 = (t5 & 1) !== 0 || (t5 & 15) === 8;
  3865. } else
  3866. t5 = true;
  3867. if (t5) {
  3868. zone = t1.result._zone;
  3869. if (hasError) {
  3870. t1 = t3._zone;
  3871. t1 = !(t1 === zone || t1.get$errorZone() === zone.get$errorZone());
  3872. } else
  3873. t1 = false;
  3874. if (t1) {
  3875. t1 = _box_1.source;
  3876. t2 = t1._resultOrListeners;
  3877. t1._zone.handleUncaughtError$2(t2.error, t2.stackTrace);
  3878. return;
  3879. }
  3880. oldZone = $.Zone__current;
  3881. if (oldZone !== zone)
  3882. $.Zone__current = zone;
  3883. else
  3884. oldZone = null;
  3885. t1 = _box_0.listener.state;
  3886. if ((t1 & 15) === 8)
  3887. new A._Future__propagateToListeners_handleWhenCompleteCallback(_box_0, _box_1, hasError).call$0();
  3888. else if (t4) {
  3889. if ((t1 & 1) !== 0)
  3890. new A._Future__propagateToListeners_handleValueCallback(_box_0, sourceResult).call$0();
  3891. } else if ((t1 & 2) !== 0)
  3892. new A._Future__propagateToListeners_handleError(_box_1, _box_0).call$0();
  3893. if (oldZone != null)
  3894. $.Zone__current = oldZone;
  3895. t1 = _box_0.listenerValueOrError;
  3896. if (t2._is(t1)) {
  3897. t3 = _box_0.listener.$ti;
  3898. t3 = t3._eval$1("Future<2>")._is(t1) || !t3._rest[1]._is(t1);
  3899. } else
  3900. t3 = false;
  3901. if (t3) {
  3902. result = _box_0.listener.result;
  3903. if ((t1._state & 24) !== 0) {
  3904. current = result._resultOrListeners;
  3905. result._resultOrListeners = null;
  3906. listeners = result._reverseListeners$1(current);
  3907. result._state = t1._state & 30 | result._state & 1;
  3908. result._resultOrListeners = t1._resultOrListeners;
  3909. _box_1.source = t1;
  3910. continue;
  3911. } else
  3912. A._Future__chainCoreFuture(t1, result);
  3913. return;
  3914. }
  3915. }
  3916. result = _box_0.listener.result;
  3917. current = result._resultOrListeners;
  3918. result._resultOrListeners = null;
  3919. listeners = result._reverseListeners$1(current);
  3920. t1 = _box_0.listenerHasError;
  3921. t3 = _box_0.listenerValueOrError;
  3922. if (!t1) {
  3923. result._state = 8;
  3924. result._resultOrListeners = t3;
  3925. } else {
  3926. result._state = result._state & 1 | 16;
  3927. result._resultOrListeners = t3;
  3928. }
  3929. _box_1.source = result;
  3930. t1 = result;
  3931. }
  3932. },
  3933. _registerErrorHandler(errorHandler, zone) {
  3934. if (type$.dynamic_Function_Object_StackTrace._is(errorHandler))
  3935. return zone.registerBinaryCallback$3$1(errorHandler, type$.dynamic, type$.Object, type$.StackTrace);
  3936. if (type$.dynamic_Function_Object._is(errorHandler))
  3937. return zone.registerUnaryCallback$2$1(errorHandler, type$.dynamic, type$.Object);
  3938. throw A.wrapException(A.ArgumentError$value(errorHandler, "onError", string$.Error_));
  3939. },
  3940. _microtaskLoop() {
  3941. var entry, next;
  3942. for (entry = $._nextCallback; entry != null; entry = $._nextCallback) {
  3943. $._lastPriorityCallback = null;
  3944. next = entry.next;
  3945. $._nextCallback = next;
  3946. if (next == null)
  3947. $._lastCallback = null;
  3948. entry.callback.call$0();
  3949. }
  3950. },
  3951. _startMicrotaskLoop() {
  3952. $._isInCallbackLoop = true;
  3953. try {
  3954. A._microtaskLoop();
  3955. } finally {
  3956. $._lastPriorityCallback = null;
  3957. $._isInCallbackLoop = false;
  3958. if ($._nextCallback != null)
  3959. $.$get$_AsyncRun__scheduleImmediateClosure().call$1(A.async___startMicrotaskLoop$closure());
  3960. }
  3961. },
  3962. _scheduleAsyncCallback(callback) {
  3963. var newEntry = new A._AsyncCallbackEntry(callback),
  3964. lastCallback = $._lastCallback;
  3965. if (lastCallback == null) {
  3966. $._nextCallback = $._lastCallback = newEntry;
  3967. if (!$._isInCallbackLoop)
  3968. $.$get$_AsyncRun__scheduleImmediateClosure().call$1(A.async___startMicrotaskLoop$closure());
  3969. } else
  3970. $._lastCallback = lastCallback.next = newEntry;
  3971. },
  3972. _schedulePriorityAsyncCallback(callback) {
  3973. var entry, lastPriorityCallback, next,
  3974. t1 = $._nextCallback;
  3975. if (t1 == null) {
  3976. A._scheduleAsyncCallback(callback);
  3977. $._lastPriorityCallback = $._lastCallback;
  3978. return;
  3979. }
  3980. entry = new A._AsyncCallbackEntry(callback);
  3981. lastPriorityCallback = $._lastPriorityCallback;
  3982. if (lastPriorityCallback == null) {
  3983. entry.next = t1;
  3984. $._nextCallback = $._lastPriorityCallback = entry;
  3985. } else {
  3986. next = lastPriorityCallback.next;
  3987. entry.next = next;
  3988. $._lastPriorityCallback = lastPriorityCallback.next = entry;
  3989. if (next == null)
  3990. $._lastCallback = entry;
  3991. }
  3992. },
  3993. scheduleMicrotask(callback) {
  3994. var t1, _null = null,
  3995. currentZone = $.Zone__current;
  3996. if (B.C__RootZone === currentZone) {
  3997. A._rootScheduleMicrotask(_null, _null, B.C__RootZone, callback);
  3998. return;
  3999. }
  4000. if (B.C__RootZone === currentZone.get$_scheduleMicrotask().zone)
  4001. t1 = B.C__RootZone.get$errorZone() === currentZone.get$errorZone();
  4002. else
  4003. t1 = false;
  4004. if (t1) {
  4005. A._rootScheduleMicrotask(_null, _null, currentZone, currentZone.registerCallback$1$1(callback, type$.void));
  4006. return;
  4007. }
  4008. t1 = $.Zone__current;
  4009. t1.scheduleMicrotask$1(t1.bindCallbackGuarded$1(callback));
  4010. },
  4011. Stream_Stream$fromFuture(future, $T) {
  4012. var _null = null,
  4013. t1 = $T._eval$1("_SyncStreamController<0>"),
  4014. controller = new A._SyncStreamController(_null, _null, _null, _null, t1);
  4015. future.then$1$2$onError(0, new A.Stream_Stream$fromFuture_closure(controller, $T), new A.Stream_Stream$fromFuture_closure0(controller), type$.Null);
  4016. return new A._ControllerStream(controller, t1._eval$1("_ControllerStream<1>"));
  4017. },
  4018. StreamIterator_StreamIterator(stream) {
  4019. return new A._StreamIterator(A.checkNotNullable(stream, "stream", type$.Object));
  4020. },
  4021. StreamController_StreamController(onCancel, onListen, onPause, onResume, sync, $T) {
  4022. return sync ? new A._SyncStreamController(onListen, onPause, onResume, onCancel, $T._eval$1("_SyncStreamController<0>")) : new A._AsyncStreamController(onListen, onPause, onResume, onCancel, $T._eval$1("_AsyncStreamController<0>"));
  4023. },
  4024. _runGuarded(notificationHandler) {
  4025. var e, s, exception;
  4026. if (notificationHandler == null)
  4027. return;
  4028. try {
  4029. notificationHandler.call$0();
  4030. } catch (exception) {
  4031. e = A.unwrapException(exception);
  4032. s = A.getTraceFromException(exception);
  4033. $.Zone__current.handleUncaughtError$2(e, s);
  4034. }
  4035. },
  4036. _ControllerSubscription$(_controller, onData, onError, onDone, cancelOnError, $T) {
  4037. var t1 = $.Zone__current,
  4038. t2 = cancelOnError ? 1 : 0,
  4039. t3 = A._BufferingStreamSubscription__registerDataHandler(t1, onData, $T),
  4040. t4 = A._BufferingStreamSubscription__registerErrorHandler(t1, onError),
  4041. t5 = onDone == null ? A.async___nullDoneHandler$closure() : onDone;
  4042. return new A._ControllerSubscription(_controller, t3, t4, t1.registerCallback$1$1(t5, type$.void), t1, t2, $T._eval$1("_ControllerSubscription<0>"));
  4043. },
  4044. _BufferingStreamSubscription__registerDataHandler(zone, handleData, $T) {
  4045. var t1 = handleData == null ? A.async___nullDataHandler$closure() : handleData;
  4046. return zone.registerUnaryCallback$2$1(t1, type$.void, $T);
  4047. },
  4048. _BufferingStreamSubscription__registerErrorHandler(zone, handleError) {
  4049. if (handleError == null)
  4050. handleError = A.async___nullErrorHandler$closure();
  4051. if (type$.void_Function_Object_StackTrace._is(handleError))
  4052. return zone.registerBinaryCallback$3$1(handleError, type$.dynamic, type$.Object, type$.StackTrace);
  4053. if (type$.void_Function_Object._is(handleError))
  4054. return zone.registerUnaryCallback$2$1(handleError, type$.dynamic, type$.Object);
  4055. throw A.wrapException(A.ArgumentError$("handleError callback must take either an Object (the error), or both an Object (the error) and a StackTrace.", null));
  4056. },
  4057. _nullDataHandler(value) {
  4058. },
  4059. _nullErrorHandler(error, stackTrace) {
  4060. $.Zone__current.handleUncaughtError$2(error, stackTrace);
  4061. },
  4062. _nullDoneHandler() {
  4063. },
  4064. Timer_Timer(duration, callback) {
  4065. var t1 = $.Zone__current;
  4066. if (t1 === B.C__RootZone)
  4067. return t1.createTimer$2(duration, callback);
  4068. return t1.createTimer$2(duration, t1.bindCallbackGuarded$1(callback));
  4069. },
  4070. _rootHandleUncaughtError($self, $parent, zone, error, stackTrace) {
  4071. A._rootHandleError(error, stackTrace);
  4072. },
  4073. _rootHandleError(error, stackTrace) {
  4074. A._schedulePriorityAsyncCallback(new A._rootHandleError_closure(error, stackTrace));
  4075. },
  4076. _rootRun($self, $parent, zone, f) {
  4077. var old,
  4078. t1 = $.Zone__current;
  4079. if (t1 === zone)
  4080. return f.call$0();
  4081. $.Zone__current = zone;
  4082. old = t1;
  4083. try {
  4084. t1 = f.call$0();
  4085. return t1;
  4086. } finally {
  4087. $.Zone__current = old;
  4088. }
  4089. },
  4090. _rootRunUnary($self, $parent, zone, f, arg) {
  4091. var old,
  4092. t1 = $.Zone__current;
  4093. if (t1 === zone)
  4094. return f.call$1(arg);
  4095. $.Zone__current = zone;
  4096. old = t1;
  4097. try {
  4098. t1 = f.call$1(arg);
  4099. return t1;
  4100. } finally {
  4101. $.Zone__current = old;
  4102. }
  4103. },
  4104. _rootRunBinary($self, $parent, zone, f, arg1, arg2) {
  4105. var old,
  4106. t1 = $.Zone__current;
  4107. if (t1 === zone)
  4108. return f.call$2(arg1, arg2);
  4109. $.Zone__current = zone;
  4110. old = t1;
  4111. try {
  4112. t1 = f.call$2(arg1, arg2);
  4113. return t1;
  4114. } finally {
  4115. $.Zone__current = old;
  4116. }
  4117. },
  4118. _rootRegisterCallback($self, $parent, zone, f) {
  4119. return f;
  4120. },
  4121. _rootRegisterUnaryCallback($self, $parent, zone, f) {
  4122. return f;
  4123. },
  4124. _rootRegisterBinaryCallback($self, $parent, zone, f) {
  4125. return f;
  4126. },
  4127. _rootErrorCallback($self, $parent, zone, error, stackTrace) {
  4128. return null;
  4129. },
  4130. _rootScheduleMicrotask($self, $parent, zone, f) {
  4131. var t1, t2;
  4132. if (B.C__RootZone !== zone) {
  4133. t1 = B.C__RootZone.get$errorZone();
  4134. t2 = zone.get$errorZone();
  4135. f = t1 !== t2 ? zone.bindCallbackGuarded$1(f) : zone.bindCallback$1$1(f, type$.void);
  4136. }
  4137. A._scheduleAsyncCallback(f);
  4138. },
  4139. _rootCreateTimer($self, $parent, zone, duration, callback) {
  4140. return A.Timer__createTimer(duration, B.C__RootZone !== zone ? zone.bindCallback$1$1(callback, type$.void) : callback);
  4141. },
  4142. _rootCreatePeriodicTimer($self, $parent, zone, duration, callback) {
  4143. var milliseconds;
  4144. if (B.C__RootZone !== zone)
  4145. callback = zone.bindUnaryCallback$2$1(callback, type$.void, type$.Timer);
  4146. milliseconds = B.JSInt_methods._tdivFast$1(duration._duration, 1000);
  4147. return A._TimerImpl$periodic(milliseconds < 0 ? 0 : milliseconds, callback);
  4148. },
  4149. _rootPrint($self, $parent, zone, line) {
  4150. A.printString(line);
  4151. },
  4152. _printToZone(line) {
  4153. $.Zone__current.print$1(line);
  4154. },
  4155. _rootFork($self, $parent, zone, specification, zoneValues) {
  4156. var valueMap, t1, handleUncaughtError;
  4157. $.printToZone = A.async___printToZone$closure();
  4158. if (specification == null)
  4159. specification = B._ZoneSpecification_ALf;
  4160. if (zoneValues == null)
  4161. valueMap = zone.get$_async$_map();
  4162. else {
  4163. t1 = type$.nullable_Object;
  4164. valueMap = A.HashMap_HashMap$from(zoneValues, t1, t1);
  4165. }
  4166. t1 = new A._CustomZone(zone.get$_run(), zone.get$_runUnary(), zone.get$_runBinary(), zone.get$_registerCallback(), zone.get$_registerUnaryCallback(), zone.get$_registerBinaryCallback(), zone.get$_errorCallback(), zone.get$_scheduleMicrotask(), zone.get$_createTimer(), zone.get$_createPeriodicTimer(), zone.get$_print(), zone.get$_fork(), zone.get$_handleUncaughtError(), zone, valueMap);
  4167. handleUncaughtError = specification.handleUncaughtError;
  4168. if (handleUncaughtError != null)
  4169. t1._handleUncaughtError = new A._ZoneFunction(t1, handleUncaughtError);
  4170. return t1;
  4171. },
  4172. runZoned(body, zoneValues, $R) {
  4173. A.checkNotNullable(body, "body", $R._eval$1("0()"));
  4174. return A._runZoned(body, zoneValues, null, $R);
  4175. },
  4176. _runZoned(body, zoneValues, specification, $R) {
  4177. return $.Zone__current.fork$2$specification$zoneValues(specification, zoneValues).run$1$1(0, body, $R);
  4178. },
  4179. _AsyncRun__initializeScheduleImmediate_internalCallback: function _AsyncRun__initializeScheduleImmediate_internalCallback(t0) {
  4180. this._box_0 = t0;
  4181. },
  4182. _AsyncRun__initializeScheduleImmediate_closure: function _AsyncRun__initializeScheduleImmediate_closure(t0, t1, t2) {
  4183. this._box_0 = t0;
  4184. this.div = t1;
  4185. this.span = t2;
  4186. },
  4187. _AsyncRun__scheduleImmediateJsOverride_internalCallback: function _AsyncRun__scheduleImmediateJsOverride_internalCallback(t0) {
  4188. this.callback = t0;
  4189. },
  4190. _AsyncRun__scheduleImmediateWithSetImmediate_internalCallback: function _AsyncRun__scheduleImmediateWithSetImmediate_internalCallback(t0) {
  4191. this.callback = t0;
  4192. },
  4193. _TimerImpl: function _TimerImpl(t0) {
  4194. this._once = t0;
  4195. this._handle = null;
  4196. this._tick = 0;
  4197. },
  4198. _TimerImpl_internalCallback: function _TimerImpl_internalCallback(t0, t1) {
  4199. this.$this = t0;
  4200. this.callback = t1;
  4201. },
  4202. _TimerImpl$periodic_closure: function _TimerImpl$periodic_closure(t0, t1, t2, t3) {
  4203. var _ = this;
  4204. _.$this = t0;
  4205. _.milliseconds = t1;
  4206. _.start = t2;
  4207. _.callback = t3;
  4208. },
  4209. _AsyncAwaitCompleter: function _AsyncAwaitCompleter(t0, t1) {
  4210. this._future = t0;
  4211. this.isSync = false;
  4212. this.$ti = t1;
  4213. },
  4214. _awaitOnObject_closure: function _awaitOnObject_closure(t0) {
  4215. this.bodyFunction = t0;
  4216. },
  4217. _awaitOnObject_closure0: function _awaitOnObject_closure0(t0) {
  4218. this.bodyFunction = t0;
  4219. },
  4220. _wrapJsFunctionForAsync_closure: function _wrapJsFunctionForAsync_closure(t0) {
  4221. this.$protected = t0;
  4222. },
  4223. _IterationMarker: function _IterationMarker(t0, t1) {
  4224. this.value = t0;
  4225. this.state = t1;
  4226. },
  4227. _SyncStarIterator: function _SyncStarIterator(t0) {
  4228. var _ = this;
  4229. _._body = t0;
  4230. _._suspendedBodies = _._nestedIterator = _._async$_current = null;
  4231. },
  4232. _SyncStarIterable: function _SyncStarIterable(t0, t1) {
  4233. this._outerHelper = t0;
  4234. this.$ti = t1;
  4235. },
  4236. AsyncError: function AsyncError(t0, t1) {
  4237. this.error = t0;
  4238. this.stackTrace = t1;
  4239. },
  4240. Future_wait_handleError: function Future_wait_handleError(t0, t1, t2, t3, t4, t5) {
  4241. var _ = this;
  4242. _._box_0 = t0;
  4243. _.cleanUp = t1;
  4244. _.eagerError = t2;
  4245. _._future = t3;
  4246. _.error = t4;
  4247. _.stackTrace = t5;
  4248. },
  4249. Future_wait_closure: function Future_wait_closure(t0, t1, t2, t3, t4, t5, t6, t7) {
  4250. var _ = this;
  4251. _._box_0 = t0;
  4252. _.pos = t1;
  4253. _._future = t2;
  4254. _.cleanUp = t3;
  4255. _.eagerError = t4;
  4256. _.error = t5;
  4257. _.stackTrace = t6;
  4258. _.T = t7;
  4259. },
  4260. _Completer: function _Completer() {
  4261. },
  4262. _AsyncCompleter: function _AsyncCompleter(t0, t1) {
  4263. this.future = t0;
  4264. this.$ti = t1;
  4265. },
  4266. _SyncCompleter: function _SyncCompleter(t0, t1) {
  4267. this.future = t0;
  4268. this.$ti = t1;
  4269. },
  4270. _FutureListener: function _FutureListener(t0, t1, t2, t3, t4) {
  4271. var _ = this;
  4272. _._nextListener = null;
  4273. _.result = t0;
  4274. _.state = t1;
  4275. _.callback = t2;
  4276. _.errorCallback = t3;
  4277. _.$ti = t4;
  4278. },
  4279. _Future: function _Future(t0, t1) {
  4280. var _ = this;
  4281. _._state = 0;
  4282. _._zone = t0;
  4283. _._resultOrListeners = null;
  4284. _.$ti = t1;
  4285. },
  4286. _Future__addListener_closure: function _Future__addListener_closure(t0, t1) {
  4287. this.$this = t0;
  4288. this.listener = t1;
  4289. },
  4290. _Future__prependListeners_closure: function _Future__prependListeners_closure(t0, t1) {
  4291. this._box_0 = t0;
  4292. this.$this = t1;
  4293. },
  4294. _Future__chainForeignFuture_closure: function _Future__chainForeignFuture_closure(t0) {
  4295. this.$this = t0;
  4296. },
  4297. _Future__chainForeignFuture_closure0: function _Future__chainForeignFuture_closure0(t0) {
  4298. this.$this = t0;
  4299. },
  4300. _Future__chainForeignFuture_closure1: function _Future__chainForeignFuture_closure1(t0, t1, t2) {
  4301. this.$this = t0;
  4302. this.e = t1;
  4303. this.s = t2;
  4304. },
  4305. _Future__asyncCompleteWithValue_closure: function _Future__asyncCompleteWithValue_closure(t0, t1) {
  4306. this.$this = t0;
  4307. this.value = t1;
  4308. },
  4309. _Future__chainFuture_closure: function _Future__chainFuture_closure(t0, t1) {
  4310. this.$this = t0;
  4311. this.value = t1;
  4312. },
  4313. _Future__asyncCompleteError_closure: function _Future__asyncCompleteError_closure(t0, t1, t2) {
  4314. this.$this = t0;
  4315. this.error = t1;
  4316. this.stackTrace = t2;
  4317. },
  4318. _Future__propagateToListeners_handleWhenCompleteCallback: function _Future__propagateToListeners_handleWhenCompleteCallback(t0, t1, t2) {
  4319. this._box_0 = t0;
  4320. this._box_1 = t1;
  4321. this.hasError = t2;
  4322. },
  4323. _Future__propagateToListeners_handleWhenCompleteCallback_closure: function _Future__propagateToListeners_handleWhenCompleteCallback_closure(t0) {
  4324. this.originalSource = t0;
  4325. },
  4326. _Future__propagateToListeners_handleValueCallback: function _Future__propagateToListeners_handleValueCallback(t0, t1) {
  4327. this._box_0 = t0;
  4328. this.sourceResult = t1;
  4329. },
  4330. _Future__propagateToListeners_handleError: function _Future__propagateToListeners_handleError(t0, t1) {
  4331. this._box_1 = t0;
  4332. this._box_0 = t1;
  4333. },
  4334. _AsyncCallbackEntry: function _AsyncCallbackEntry(t0) {
  4335. this.callback = t0;
  4336. this.next = null;
  4337. },
  4338. Stream: function Stream() {
  4339. },
  4340. Stream_Stream$fromFuture_closure: function Stream_Stream$fromFuture_closure(t0, t1) {
  4341. this.controller = t0;
  4342. this.T = t1;
  4343. },
  4344. Stream_Stream$fromFuture_closure0: function Stream_Stream$fromFuture_closure0(t0) {
  4345. this.controller = t0;
  4346. },
  4347. Stream_length_closure: function Stream_length_closure(t0, t1) {
  4348. this._box_0 = t0;
  4349. this.$this = t1;
  4350. },
  4351. Stream_length_closure0: function Stream_length_closure0(t0, t1) {
  4352. this._box_0 = t0;
  4353. this.future = t1;
  4354. },
  4355. StreamTransformerBase: function StreamTransformerBase() {
  4356. },
  4357. _StreamController: function _StreamController() {
  4358. },
  4359. _StreamController__subscribe_closure: function _StreamController__subscribe_closure(t0) {
  4360. this.$this = t0;
  4361. },
  4362. _StreamController__recordCancel_complete: function _StreamController__recordCancel_complete(t0) {
  4363. this.$this = t0;
  4364. },
  4365. _SyncStreamControllerDispatch: function _SyncStreamControllerDispatch() {
  4366. },
  4367. _AsyncStreamControllerDispatch: function _AsyncStreamControllerDispatch() {
  4368. },
  4369. _AsyncStreamController: function _AsyncStreamController(t0, t1, t2, t3, t4) {
  4370. var _ = this;
  4371. _._varData = null;
  4372. _._state = 0;
  4373. _._doneFuture = null;
  4374. _.onListen = t0;
  4375. _.onPause = t1;
  4376. _.onResume = t2;
  4377. _.onCancel = t3;
  4378. _.$ti = t4;
  4379. },
  4380. _SyncStreamController: function _SyncStreamController(t0, t1, t2, t3, t4) {
  4381. var _ = this;
  4382. _._varData = null;
  4383. _._state = 0;
  4384. _._doneFuture = null;
  4385. _.onListen = t0;
  4386. _.onPause = t1;
  4387. _.onResume = t2;
  4388. _.onCancel = t3;
  4389. _.$ti = t4;
  4390. },
  4391. _ControllerStream: function _ControllerStream(t0, t1) {
  4392. this._controller = t0;
  4393. this.$ti = t1;
  4394. },
  4395. _ControllerSubscription: function _ControllerSubscription(t0, t1, t2, t3, t4, t5, t6) {
  4396. var _ = this;
  4397. _._controller = t0;
  4398. _._onData = t1;
  4399. _._onError = t2;
  4400. _._onDone = t3;
  4401. _._zone = t4;
  4402. _._state = t5;
  4403. _._pending = _._cancelFuture = null;
  4404. _.$ti = t6;
  4405. },
  4406. _AddStreamState: function _AddStreamState() {
  4407. },
  4408. _AddStreamState_cancel_closure: function _AddStreamState_cancel_closure(t0) {
  4409. this.$this = t0;
  4410. },
  4411. _StreamControllerAddStreamState: function _StreamControllerAddStreamState(t0, t1, t2) {
  4412. this.varData = t0;
  4413. this.addStreamFuture = t1;
  4414. this.addSubscription = t2;
  4415. },
  4416. _BufferingStreamSubscription: function _BufferingStreamSubscription() {
  4417. },
  4418. _BufferingStreamSubscription__sendError_sendError: function _BufferingStreamSubscription__sendError_sendError(t0, t1, t2) {
  4419. this.$this = t0;
  4420. this.error = t1;
  4421. this.stackTrace = t2;
  4422. },
  4423. _BufferingStreamSubscription__sendDone_sendDone: function _BufferingStreamSubscription__sendDone_sendDone(t0) {
  4424. this.$this = t0;
  4425. },
  4426. _StreamImpl: function _StreamImpl() {
  4427. },
  4428. _DelayedEvent: function _DelayedEvent() {
  4429. },
  4430. _DelayedData: function _DelayedData(t0) {
  4431. this.value = t0;
  4432. this.next = null;
  4433. },
  4434. _DelayedError: function _DelayedError(t0, t1) {
  4435. this.error = t0;
  4436. this.stackTrace = t1;
  4437. this.next = null;
  4438. },
  4439. _DelayedDone: function _DelayedDone() {
  4440. },
  4441. _PendingEvents: function _PendingEvents() {
  4442. this._state = 0;
  4443. this.lastPendingEvent = this.firstPendingEvent = null;
  4444. },
  4445. _PendingEvents_schedule_closure: function _PendingEvents_schedule_closure(t0, t1) {
  4446. this.$this = t0;
  4447. this.dispatch = t1;
  4448. },
  4449. _StreamIterator: function _StreamIterator(t0) {
  4450. this._subscription = null;
  4451. this._stateData = t0;
  4452. this._async$_hasValue = false;
  4453. },
  4454. _ForwardingStream: function _ForwardingStream() {
  4455. },
  4456. _ForwardingStreamSubscription: function _ForwardingStreamSubscription(t0, t1, t2, t3, t4, t5, t6) {
  4457. var _ = this;
  4458. _._stream = t0;
  4459. _._subscription = null;
  4460. _._onData = t1;
  4461. _._onError = t2;
  4462. _._onDone = t3;
  4463. _._zone = t4;
  4464. _._state = t5;
  4465. _._pending = _._cancelFuture = null;
  4466. _.$ti = t6;
  4467. },
  4468. _ExpandStream: function _ExpandStream(t0, t1, t2) {
  4469. this._expand = t0;
  4470. this._async$_source = t1;
  4471. this.$ti = t2;
  4472. },
  4473. _ZoneFunction: function _ZoneFunction(t0, t1) {
  4474. this.zone = t0;
  4475. this.$function = t1;
  4476. },
  4477. _ZoneSpecification: function _ZoneSpecification(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12) {
  4478. var _ = this;
  4479. _.handleUncaughtError = t0;
  4480. _.run = t1;
  4481. _.runUnary = t2;
  4482. _.runBinary = t3;
  4483. _.registerCallback = t4;
  4484. _.registerUnaryCallback = t5;
  4485. _.registerBinaryCallback = t6;
  4486. _.errorCallback = t7;
  4487. _.scheduleMicrotask = t8;
  4488. _.createTimer = t9;
  4489. _.createPeriodicTimer = t10;
  4490. _.print = t11;
  4491. _.fork = t12;
  4492. },
  4493. _ZoneDelegate: function _ZoneDelegate(t0) {
  4494. this._delegationTarget = t0;
  4495. },
  4496. _Zone: function _Zone() {
  4497. },
  4498. _CustomZone: function _CustomZone(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14) {
  4499. var _ = this;
  4500. _._run = t0;
  4501. _._runUnary = t1;
  4502. _._runBinary = t2;
  4503. _._registerCallback = t3;
  4504. _._registerUnaryCallback = t4;
  4505. _._registerBinaryCallback = t5;
  4506. _._errorCallback = t6;
  4507. _._scheduleMicrotask = t7;
  4508. _._createTimer = t8;
  4509. _._createPeriodicTimer = t9;
  4510. _._print = t10;
  4511. _._fork = t11;
  4512. _._handleUncaughtError = t12;
  4513. _._delegateCache = null;
  4514. _.parent = t13;
  4515. _._async$_map = t14;
  4516. },
  4517. _CustomZone_bindCallback_closure: function _CustomZone_bindCallback_closure(t0, t1, t2) {
  4518. this.$this = t0;
  4519. this.registered = t1;
  4520. this.R = t2;
  4521. },
  4522. _CustomZone_bindUnaryCallback_closure: function _CustomZone_bindUnaryCallback_closure(t0, t1, t2, t3) {
  4523. var _ = this;
  4524. _.$this = t0;
  4525. _.registered = t1;
  4526. _.T = t2;
  4527. _.R = t3;
  4528. },
  4529. _CustomZone_bindCallbackGuarded_closure: function _CustomZone_bindCallbackGuarded_closure(t0, t1) {
  4530. this.$this = t0;
  4531. this.registered = t1;
  4532. },
  4533. _rootHandleError_closure: function _rootHandleError_closure(t0, t1) {
  4534. this.error = t0;
  4535. this.stackTrace = t1;
  4536. },
  4537. _RootZone: function _RootZone() {
  4538. },
  4539. _RootZone_bindCallback_closure: function _RootZone_bindCallback_closure(t0, t1, t2) {
  4540. this.$this = t0;
  4541. this.f = t1;
  4542. this.R = t2;
  4543. },
  4544. _RootZone_bindUnaryCallback_closure: function _RootZone_bindUnaryCallback_closure(t0, t1, t2, t3) {
  4545. var _ = this;
  4546. _.$this = t0;
  4547. _.f = t1;
  4548. _.T = t2;
  4549. _.R = t3;
  4550. },
  4551. _RootZone_bindCallbackGuarded_closure: function _RootZone_bindCallbackGuarded_closure(t0, t1) {
  4552. this.$this = t0;
  4553. this.f = t1;
  4554. },
  4555. HashMap_HashMap($K, $V) {
  4556. return new A._HashMap($K._eval$1("@<0>")._bind$1($V)._eval$1("_HashMap<1,2>"));
  4557. },
  4558. _HashMap__getTableEntry(table, key) {
  4559. var entry = table[key];
  4560. return entry === table ? null : entry;
  4561. },
  4562. _HashMap__setTableEntry(table, key, value) {
  4563. if (value == null)
  4564. table[key] = table;
  4565. else
  4566. table[key] = value;
  4567. },
  4568. _HashMap__newHashTable() {
  4569. var table = Object.create(null);
  4570. A._HashMap__setTableEntry(table, "<non-identifier-key>", table);
  4571. delete table["<non-identifier-key>"];
  4572. return table;
  4573. },
  4574. LinkedHashMap_LinkedHashMap(equals, hashCode, isValidKey, $K, $V) {
  4575. if (isValidKey == null)
  4576. if (hashCode == null) {
  4577. if (equals == null)
  4578. return new A.JsLinkedHashMap($K._eval$1("@<0>")._bind$1($V)._eval$1("JsLinkedHashMap<1,2>"));
  4579. hashCode = A.collection___defaultHashCode$closure();
  4580. } else {
  4581. if (A.core__identityHashCode$closure() === hashCode && A.core__identical$closure() === equals)
  4582. return new A._LinkedIdentityHashMap($K._eval$1("@<0>")._bind$1($V)._eval$1("_LinkedIdentityHashMap<1,2>"));
  4583. if (equals == null)
  4584. equals = A.collection___defaultEquals$closure();
  4585. }
  4586. else {
  4587. if (hashCode == null)
  4588. hashCode = A.collection___defaultHashCode$closure();
  4589. if (equals == null)
  4590. equals = A.collection___defaultEquals$closure();
  4591. }
  4592. return A._LinkedCustomHashMap$(equals, hashCode, isValidKey, $K, $V);
  4593. },
  4594. LinkedHashMap_LinkedHashMap$_literal(keyValuePairs, $K, $V) {
  4595. return A.fillLiteralMap(keyValuePairs, new A.JsLinkedHashMap($K._eval$1("@<0>")._bind$1($V)._eval$1("JsLinkedHashMap<1,2>")));
  4596. },
  4597. LinkedHashMap_LinkedHashMap$_empty($K, $V) {
  4598. return new A.JsLinkedHashMap($K._eval$1("@<0>")._bind$1($V)._eval$1("JsLinkedHashMap<1,2>"));
  4599. },
  4600. _LinkedCustomHashMap$(_equals, _hashCode, validKey, $K, $V) {
  4601. var t1 = validKey != null ? validKey : new A._LinkedCustomHashMap_closure($K);
  4602. return new A._LinkedCustomHashMap(_equals, _hashCode, t1, $K._eval$1("@<0>")._bind$1($V)._eval$1("_LinkedCustomHashMap<1,2>"));
  4603. },
  4604. LinkedHashSet_LinkedHashSet($E) {
  4605. return new A._LinkedHashSet($E._eval$1("_LinkedHashSet<0>"));
  4606. },
  4607. LinkedHashSet_LinkedHashSet$_empty($E) {
  4608. return new A._LinkedHashSet($E._eval$1("_LinkedHashSet<0>"));
  4609. },
  4610. LinkedHashSet_LinkedHashSet$_literal(values, $E) {
  4611. return A.fillLiteralSet(values, new A._LinkedHashSet($E._eval$1("_LinkedHashSet<0>")));
  4612. },
  4613. _LinkedHashSet__newHashTable() {
  4614. var table = Object.create(null);
  4615. table["<non-identifier-key>"] = table;
  4616. delete table["<non-identifier-key>"];
  4617. return table;
  4618. },
  4619. _LinkedHashSetIterator$(_set, _modifications) {
  4620. var t1 = new A._LinkedHashSetIterator(_set, _modifications);
  4621. t1._collection$_cell = _set._collection$_first;
  4622. return t1;
  4623. },
  4624. UnmodifiableListView$(source, $E) {
  4625. return new A.UnmodifiableListView(source, $E._eval$1("UnmodifiableListView<0>"));
  4626. },
  4627. _defaultEquals(a, b) {
  4628. return J.$eq$(a, b);
  4629. },
  4630. _defaultHashCode(a) {
  4631. return J.get$hashCode$(a);
  4632. },
  4633. HashMap_HashMap$from(other, $K, $V) {
  4634. var result = A.HashMap_HashMap($K, $V);
  4635. other.forEach$1(0, new A.HashMap_HashMap$from_closure(result, $K, $V));
  4636. return result;
  4637. },
  4638. IterableBase_iterableToShortString(iterable, leftDelimiter, rightDelimiter) {
  4639. var parts, t1;
  4640. if (A._isToStringVisiting(iterable)) {
  4641. if (leftDelimiter === "(" && rightDelimiter === ")")
  4642. return "(...)";
  4643. return leftDelimiter + "..." + rightDelimiter;
  4644. }
  4645. parts = A._setArrayType([], type$.JSArray_String);
  4646. $._toStringVisiting.push(iterable);
  4647. try {
  4648. A._iterablePartsToStrings(iterable, parts);
  4649. } finally {
  4650. $._toStringVisiting.pop();
  4651. }
  4652. t1 = A.StringBuffer__writeAll(leftDelimiter, parts, ", ") + rightDelimiter;
  4653. return t1.charCodeAt(0) == 0 ? t1 : t1;
  4654. },
  4655. IterableBase_iterableToFullString(iterable, leftDelimiter, rightDelimiter) {
  4656. var buffer, t1;
  4657. if (A._isToStringVisiting(iterable))
  4658. return leftDelimiter + "..." + rightDelimiter;
  4659. buffer = new A.StringBuffer(leftDelimiter);
  4660. $._toStringVisiting.push(iterable);
  4661. try {
  4662. t1 = buffer;
  4663. t1._contents = A.StringBuffer__writeAll(t1._contents, iterable, ", ");
  4664. } finally {
  4665. $._toStringVisiting.pop();
  4666. }
  4667. buffer._contents += rightDelimiter;
  4668. t1 = buffer._contents;
  4669. return t1.charCodeAt(0) == 0 ? t1 : t1;
  4670. },
  4671. _isToStringVisiting(o) {
  4672. var t1, i;
  4673. for (t1 = $._toStringVisiting.length, i = 0; i < t1; ++i)
  4674. if (o === $._toStringVisiting[i])
  4675. return true;
  4676. return false;
  4677. },
  4678. _iterablePartsToStrings(iterable, parts) {
  4679. var next, ultimateString, penultimateString, penultimate, ultimate, ultimate0, elision,
  4680. it = iterable.get$iterator(iterable),
  4681. $length = 0, count = 0;
  4682. while (true) {
  4683. if (!($length < 80 || count < 3))
  4684. break;
  4685. if (!it.moveNext$0())
  4686. return;
  4687. next = A.S(it.get$current(it));
  4688. parts.push(next);
  4689. $length += next.length + 2;
  4690. ++count;
  4691. }
  4692. if (!it.moveNext$0()) {
  4693. if (count <= 5)
  4694. return;
  4695. ultimateString = parts.pop();
  4696. penultimateString = parts.pop();
  4697. } else {
  4698. penultimate = it.get$current(it);
  4699. ++count;
  4700. if (!it.moveNext$0()) {
  4701. if (count <= 4) {
  4702. parts.push(A.S(penultimate));
  4703. return;
  4704. }
  4705. ultimateString = A.S(penultimate);
  4706. penultimateString = parts.pop();
  4707. $length += ultimateString.length + 2;
  4708. } else {
  4709. ultimate = it.get$current(it);
  4710. ++count;
  4711. for (; it.moveNext$0(); penultimate = ultimate, ultimate = ultimate0) {
  4712. ultimate0 = it.get$current(it);
  4713. ++count;
  4714. if (count > 100) {
  4715. while (true) {
  4716. if (!($length > 75 && count > 3))
  4717. break;
  4718. $length -= parts.pop().length + 2;
  4719. --count;
  4720. }
  4721. parts.push("...");
  4722. return;
  4723. }
  4724. }
  4725. penultimateString = A.S(penultimate);
  4726. ultimateString = A.S(ultimate);
  4727. $length += ultimateString.length + penultimateString.length + 4;
  4728. }
  4729. }
  4730. if (count > parts.length + 2) {
  4731. $length += 5;
  4732. elision = "...";
  4733. } else
  4734. elision = null;
  4735. while (true) {
  4736. if (!($length > 80 && parts.length > 3))
  4737. break;
  4738. $length -= parts.pop().length + 2;
  4739. if (elision == null) {
  4740. $length += 5;
  4741. elision = "...";
  4742. }
  4743. }
  4744. if (elision != null)
  4745. parts.push(elision);
  4746. parts.push(penultimateString);
  4747. parts.push(ultimateString);
  4748. },
  4749. LinkedHashMap_LinkedHashMap$from(other, $K, $V) {
  4750. var result = A.LinkedHashMap_LinkedHashMap(null, null, null, $K, $V);
  4751. other.forEach$1(0, new A.LinkedHashMap_LinkedHashMap$from_closure(result, $K, $V));
  4752. return result;
  4753. },
  4754. LinkedHashMap_LinkedHashMap$of(other, $K, $V) {
  4755. var t1 = A.LinkedHashMap_LinkedHashMap(null, null, null, $K, $V);
  4756. t1.addAll$1(0, other);
  4757. return t1;
  4758. },
  4759. LinkedHashSet_LinkedHashSet$from(elements, $E) {
  4760. var t1, _i,
  4761. result = A.LinkedHashSet_LinkedHashSet($E);
  4762. for (t1 = elements.length, _i = 0; _i < elements.length; elements.length === t1 || (0, A.throwConcurrentModificationError)(elements), ++_i)
  4763. result.add$1(0, $E._as(elements[_i]));
  4764. return result;
  4765. },
  4766. LinkedHashSet_LinkedHashSet$of(elements, $E) {
  4767. var t1 = A.LinkedHashSet_LinkedHashSet($E);
  4768. t1.addAll$1(0, elements);
  4769. return t1;
  4770. },
  4771. ListMixin__compareAny(a, b) {
  4772. var t1 = type$.Comparable_dynamic;
  4773. return J.compareTo$1$ns(t1._as(a), t1._as(b));
  4774. },
  4775. MapBase_mapToString(m) {
  4776. var result, t1 = {};
  4777. if (A._isToStringVisiting(m))
  4778. return "{...}";
  4779. result = new A.StringBuffer("");
  4780. try {
  4781. $._toStringVisiting.push(m);
  4782. result._contents += "{";
  4783. t1.first = true;
  4784. m.forEach$1(0, new A.MapBase_mapToString_closure(t1, result));
  4785. result._contents += "}";
  4786. } finally {
  4787. $._toStringVisiting.pop();
  4788. }
  4789. t1 = result._contents;
  4790. return t1.charCodeAt(0) == 0 ? t1 : t1;
  4791. },
  4792. MapBase__fillMapWithIterables(map, keys, values) {
  4793. var keyIterator = keys.get$iterator(keys),
  4794. valueIterator = values.get$iterator(values),
  4795. hasNextKey = keyIterator.moveNext$0(),
  4796. hasNextValue = valueIterator.moveNext$0();
  4797. while (true) {
  4798. if (!(hasNextKey && hasNextValue))
  4799. break;
  4800. map.$indexSet(0, keyIterator.get$current(keyIterator), valueIterator.get$current(valueIterator));
  4801. hasNextKey = keyIterator.moveNext$0();
  4802. hasNextValue = valueIterator.moveNext$0();
  4803. }
  4804. if (hasNextKey || hasNextValue)
  4805. throw A.wrapException(A.ArgumentError$("Iterables do not have same length.", null));
  4806. },
  4807. ListQueue$($E) {
  4808. return new A.ListQueue(A.List_List$filled(A.ListQueue__calculateCapacity(null), null, false, $E._eval$1("0?")), $E._eval$1("ListQueue<0>"));
  4809. },
  4810. ListQueue__calculateCapacity(initialCapacity) {
  4811. return 8;
  4812. },
  4813. ListQueue_ListQueue$of(elements, $E) {
  4814. var t1 = A.ListQueue$($E);
  4815. t1.addAll$1(0, elements);
  4816. return t1;
  4817. },
  4818. ListQueue__nextPowerOf2(number) {
  4819. var nextNumber;
  4820. number = (number << 1 >>> 0) - 1;
  4821. for (; true; number = nextNumber) {
  4822. nextNumber = (number & number - 1) >>> 0;
  4823. if (nextNumber === 0)
  4824. return number;
  4825. }
  4826. },
  4827. _ListQueueIterator$(queue) {
  4828. return new A._ListQueueIterator(queue, queue._collection$_tail, queue._modificationCount, queue._collection$_head);
  4829. },
  4830. _UnmodifiableSetMixin__throwUnmodifiable() {
  4831. throw A.wrapException(A.UnsupportedError$("Cannot change an unmodifiable set"));
  4832. },
  4833. _HashMap: function _HashMap(t0) {
  4834. var _ = this;
  4835. _._collection$_length = 0;
  4836. _._keys = _._collection$_rest = _._collection$_nums = _._collection$_strings = null;
  4837. _.$ti = t0;
  4838. },
  4839. _HashMap_values_closure: function _HashMap_values_closure(t0) {
  4840. this.$this = t0;
  4841. },
  4842. _HashMap_addAll_closure: function _HashMap_addAll_closure(t0) {
  4843. this.$this = t0;
  4844. },
  4845. _IdentityHashMap: function _IdentityHashMap(t0) {
  4846. var _ = this;
  4847. _._collection$_length = 0;
  4848. _._keys = _._collection$_rest = _._collection$_nums = _._collection$_strings = null;
  4849. _.$ti = t0;
  4850. },
  4851. _HashMapKeyIterable: function _HashMapKeyIterable(t0, t1) {
  4852. this._map = t0;
  4853. this.$ti = t1;
  4854. },
  4855. _HashMapKeyIterator: function _HashMapKeyIterator(t0, t1) {
  4856. var _ = this;
  4857. _._map = t0;
  4858. _._keys = t1;
  4859. _._offset = 0;
  4860. _._collection$_current = null;
  4861. },
  4862. _LinkedIdentityHashMap: function _LinkedIdentityHashMap(t0) {
  4863. var _ = this;
  4864. _.__js_helper$_length = 0;
  4865. _._last = _._first = _.__js_helper$_rest = _._nums = _._strings = null;
  4866. _._modifications = 0;
  4867. _.$ti = t0;
  4868. },
  4869. _LinkedCustomHashMap: function _LinkedCustomHashMap(t0, t1, t2, t3) {
  4870. var _ = this;
  4871. _._equals = t0;
  4872. _._hashCode = t1;
  4873. _._validKey = t2;
  4874. _.__js_helper$_length = 0;
  4875. _._last = _._first = _.__js_helper$_rest = _._nums = _._strings = null;
  4876. _._modifications = 0;
  4877. _.$ti = t3;
  4878. },
  4879. _LinkedCustomHashMap_closure: function _LinkedCustomHashMap_closure(t0) {
  4880. this.K = t0;
  4881. },
  4882. _LinkedHashSet: function _LinkedHashSet(t0) {
  4883. var _ = this;
  4884. _._collection$_length = 0;
  4885. _._collection$_last = _._collection$_first = _._collection$_rest = _._collection$_nums = _._collection$_strings = null;
  4886. _._collection$_modifications = 0;
  4887. _.$ti = t0;
  4888. },
  4889. _LinkedIdentityHashSet: function _LinkedIdentityHashSet(t0) {
  4890. var _ = this;
  4891. _._collection$_length = 0;
  4892. _._collection$_last = _._collection$_first = _._collection$_rest = _._collection$_nums = _._collection$_strings = null;
  4893. _._collection$_modifications = 0;
  4894. _.$ti = t0;
  4895. },
  4896. _LinkedHashSetCell: function _LinkedHashSetCell(t0) {
  4897. this._element = t0;
  4898. this._collection$_previous = this._collection$_next = null;
  4899. },
  4900. _LinkedHashSetIterator: function _LinkedHashSetIterator(t0, t1) {
  4901. var _ = this;
  4902. _._set = t0;
  4903. _._collection$_modifications = t1;
  4904. _._collection$_current = _._collection$_cell = null;
  4905. },
  4906. UnmodifiableListView: function UnmodifiableListView(t0, t1) {
  4907. this._collection$_source = t0;
  4908. this.$ti = t1;
  4909. },
  4910. HashMap_HashMap$from_closure: function HashMap_HashMap$from_closure(t0, t1, t2) {
  4911. this.result = t0;
  4912. this.K = t1;
  4913. this.V = t2;
  4914. },
  4915. IterableBase: function IterableBase() {
  4916. },
  4917. LinkedHashMap_LinkedHashMap$from_closure: function LinkedHashMap_LinkedHashMap$from_closure(t0, t1, t2) {
  4918. this.result = t0;
  4919. this.K = t1;
  4920. this.V = t2;
  4921. },
  4922. ListBase: function ListBase() {
  4923. },
  4924. ListMixin: function ListMixin() {
  4925. },
  4926. MapBase: function MapBase() {
  4927. },
  4928. MapBase_mapToString_closure: function MapBase_mapToString_closure(t0, t1) {
  4929. this._box_0 = t0;
  4930. this.result = t1;
  4931. },
  4932. MapMixin: function MapMixin() {
  4933. },
  4934. MapMixin_addAll_closure: function MapMixin_addAll_closure(t0) {
  4935. this.$this = t0;
  4936. },
  4937. MapMixin_entries_closure: function MapMixin_entries_closure(t0) {
  4938. this.$this = t0;
  4939. },
  4940. UnmodifiableMapBase: function UnmodifiableMapBase() {
  4941. },
  4942. _MapBaseValueIterable: function _MapBaseValueIterable(t0, t1) {
  4943. this._map = t0;
  4944. this.$ti = t1;
  4945. },
  4946. _MapBaseValueIterator: function _MapBaseValueIterator(t0, t1) {
  4947. this._keys = t0;
  4948. this._map = t1;
  4949. this._collection$_current = null;
  4950. },
  4951. _UnmodifiableMapMixin: function _UnmodifiableMapMixin() {
  4952. },
  4953. MapView: function MapView() {
  4954. },
  4955. UnmodifiableMapView: function UnmodifiableMapView(t0, t1) {
  4956. this._map = t0;
  4957. this.$ti = t1;
  4958. },
  4959. ListQueue: function ListQueue(t0, t1) {
  4960. var _ = this;
  4961. _._collection$_table = t0;
  4962. _._modificationCount = _._collection$_tail = _._collection$_head = 0;
  4963. _.$ti = t1;
  4964. },
  4965. _ListQueueIterator: function _ListQueueIterator(t0, t1, t2, t3) {
  4966. var _ = this;
  4967. _._queue = t0;
  4968. _._collection$_end = t1;
  4969. _._modificationCount = t2;
  4970. _._collection$_position = t3;
  4971. _._collection$_current = null;
  4972. },
  4973. SetMixin: function SetMixin() {
  4974. },
  4975. _SetBase: function _SetBase() {
  4976. },
  4977. _UnmodifiableSetMixin: function _UnmodifiableSetMixin() {
  4978. },
  4979. _UnmodifiableSet: function _UnmodifiableSet(t0, t1) {
  4980. this._map = t0;
  4981. this.$ti = t1;
  4982. },
  4983. _ListBase_Object_ListMixin: function _ListBase_Object_ListMixin() {
  4984. },
  4985. _UnmodifiableMapView_MapView__UnmodifiableMapMixin: function _UnmodifiableMapView_MapView__UnmodifiableMapMixin() {
  4986. },
  4987. __SetBase_Object_SetMixin: function __SetBase_Object_SetMixin() {
  4988. },
  4989. __UnmodifiableSet__SetBase__UnmodifiableSetMixin: function __UnmodifiableSet__SetBase__UnmodifiableSetMixin() {
  4990. },
  4991. Utf8Decoder__convertIntercepted(allowMalformed, codeUnits, start, end) {
  4992. var casted, result;
  4993. if (codeUnits instanceof Uint8Array) {
  4994. casted = codeUnits;
  4995. end = casted.length;
  4996. if (end - start < 15)
  4997. return null;
  4998. result = A.Utf8Decoder__convertInterceptedUint8List(allowMalformed, casted, start, end);
  4999. if (result != null && allowMalformed)
  5000. if (result.indexOf("\ufffd") >= 0)
  5001. return null;
  5002. return result;
  5003. }
  5004. return null;
  5005. },
  5006. Utf8Decoder__convertInterceptedUint8List(allowMalformed, codeUnits, start, end) {
  5007. var decoder = allowMalformed ? $.$get$Utf8Decoder__decoderNonfatal() : $.$get$Utf8Decoder__decoder();
  5008. if (decoder == null)
  5009. return null;
  5010. if (0 === start && end === codeUnits.length)
  5011. return A.Utf8Decoder__useTextDecoder(decoder, codeUnits);
  5012. return A.Utf8Decoder__useTextDecoder(decoder, codeUnits.subarray(start, A.RangeError_checkValidRange(start, end, codeUnits.length)));
  5013. },
  5014. Utf8Decoder__useTextDecoder(decoder, codeUnits) {
  5015. var t1, exception;
  5016. try {
  5017. t1 = decoder.decode(codeUnits);
  5018. return t1;
  5019. } catch (exception) {
  5020. }
  5021. return null;
  5022. },
  5023. Base64Codec__checkPadding(source, sourceIndex, sourceEnd, firstPadding, paddingCount, $length) {
  5024. if (B.JSInt_methods.$mod($length, 4) !== 0)
  5025. throw A.wrapException(A.FormatException$("Invalid base64 padding, padded length must be multiple of four, is " + $length, source, sourceEnd));
  5026. if (firstPadding + paddingCount !== $length)
  5027. throw A.wrapException(A.FormatException$("Invalid base64 padding, '=' not at the end", source, sourceIndex));
  5028. if (paddingCount > 2)
  5029. throw A.wrapException(A.FormatException$("Invalid base64 padding, more than two '=' characters", source, sourceIndex));
  5030. },
  5031. _Base64Encoder_encodeChunk(alphabet, bytes, start, end, isLast, output, outputIndex, state) {
  5032. var t1, i, byteOr, byte, outputIndex0, outputIndex1,
  5033. bits = state >>> 2,
  5034. expectedChars = 3 - (state & 3);
  5035. for (t1 = J.getInterceptor$asx(bytes), i = start, byteOr = 0; i < end; ++i) {
  5036. byte = t1.$index(bytes, i);
  5037. byteOr = (byteOr | byte) >>> 0;
  5038. bits = (bits << 8 | byte) & 16777215;
  5039. --expectedChars;
  5040. if (expectedChars === 0) {
  5041. outputIndex0 = outputIndex + 1;
  5042. output[outputIndex] = B.JSString_methods._codeUnitAt$1(alphabet, bits >>> 18 & 63);
  5043. outputIndex = outputIndex0 + 1;
  5044. output[outputIndex0] = B.JSString_methods._codeUnitAt$1(alphabet, bits >>> 12 & 63);
  5045. outputIndex0 = outputIndex + 1;
  5046. output[outputIndex] = B.JSString_methods._codeUnitAt$1(alphabet, bits >>> 6 & 63);
  5047. outputIndex = outputIndex0 + 1;
  5048. output[outputIndex0] = B.JSString_methods._codeUnitAt$1(alphabet, bits & 63);
  5049. bits = 0;
  5050. expectedChars = 3;
  5051. }
  5052. }
  5053. if (byteOr >= 0 && byteOr <= 255) {
  5054. if (isLast && expectedChars < 3) {
  5055. outputIndex0 = outputIndex + 1;
  5056. outputIndex1 = outputIndex0 + 1;
  5057. if (3 - expectedChars === 1) {
  5058. output[outputIndex] = B.JSString_methods._codeUnitAt$1(alphabet, bits >>> 2 & 63);
  5059. output[outputIndex0] = B.JSString_methods._codeUnitAt$1(alphabet, bits << 4 & 63);
  5060. output[outputIndex1] = 61;
  5061. output[outputIndex1 + 1] = 61;
  5062. } else {
  5063. output[outputIndex] = B.JSString_methods._codeUnitAt$1(alphabet, bits >>> 10 & 63);
  5064. output[outputIndex0] = B.JSString_methods._codeUnitAt$1(alphabet, bits >>> 4 & 63);
  5065. output[outputIndex1] = B.JSString_methods._codeUnitAt$1(alphabet, bits << 2 & 63);
  5066. output[outputIndex1 + 1] = 61;
  5067. }
  5068. return 0;
  5069. }
  5070. return (bits << 2 | 3 - expectedChars) >>> 0;
  5071. }
  5072. for (i = start; i < end;) {
  5073. byte = t1.$index(bytes, i);
  5074. if (byte < 0 || byte > 255)
  5075. break;
  5076. ++i;
  5077. }
  5078. throw A.wrapException(A.ArgumentError$value(bytes, "Not a byte value at index " + i + ": 0x" + J.toRadixString$1$n(t1.$index(bytes, i), 16), null));
  5079. },
  5080. JsonUnsupportedObjectError$(unsupportedObject, cause, partialResult) {
  5081. return new A.JsonUnsupportedObjectError(unsupportedObject, cause);
  5082. },
  5083. _defaultToEncodable(object) {
  5084. return object.toJson$0();
  5085. },
  5086. _JsonStringStringifier$(_sink, _toEncodable) {
  5087. return new A._JsonStringStringifier(_sink, [], A.convert___defaultToEncodable$closure());
  5088. },
  5089. _JsonStringStringifier_stringify(object, toEncodable, indent) {
  5090. var t1,
  5091. output = new A.StringBuffer(""),
  5092. stringifier = A._JsonStringStringifier$(output, toEncodable);
  5093. stringifier.writeObject$1(object);
  5094. t1 = output._contents;
  5095. return t1.charCodeAt(0) == 0 ? t1 : t1;
  5096. },
  5097. _Utf8Decoder_errorDescription(state) {
  5098. switch (state) {
  5099. case 65:
  5100. return "Missing extension byte";
  5101. case 67:
  5102. return "Unexpected extension byte";
  5103. case 69:
  5104. return "Invalid UTF-8 byte";
  5105. case 71:
  5106. return "Overlong encoding";
  5107. case 73:
  5108. return "Out of unicode range";
  5109. case 75:
  5110. return "Encoded surrogate";
  5111. case 77:
  5112. return "Unfinished UTF-8 octet sequence";
  5113. default:
  5114. return "";
  5115. }
  5116. },
  5117. _Utf8Decoder__makeUint8List(codeUnits, start, end) {
  5118. var t1, i, b,
  5119. $length = end - start,
  5120. bytes = new Uint8Array($length);
  5121. for (t1 = J.getInterceptor$asx(codeUnits), i = 0; i < $length; ++i) {
  5122. b = t1.$index(codeUnits, start + i);
  5123. bytes[i] = (b & 4294967040) >>> 0 !== 0 ? 255 : b;
  5124. }
  5125. return bytes;
  5126. },
  5127. Utf8Decoder__decoder_closure: function Utf8Decoder__decoder_closure() {
  5128. },
  5129. Utf8Decoder__decoderNonfatal_closure: function Utf8Decoder__decoderNonfatal_closure() {
  5130. },
  5131. AsciiCodec: function AsciiCodec() {
  5132. },
  5133. _UnicodeSubsetEncoder: function _UnicodeSubsetEncoder() {
  5134. },
  5135. AsciiEncoder: function AsciiEncoder(t0) {
  5136. this._subsetMask = t0;
  5137. },
  5138. Base64Codec: function Base64Codec() {
  5139. },
  5140. Base64Encoder: function Base64Encoder() {
  5141. },
  5142. _Base64Encoder: function _Base64Encoder(t0) {
  5143. this._convert$_state = 0;
  5144. this._alphabet = t0;
  5145. },
  5146. _Base64EncoderSink: function _Base64EncoderSink() {
  5147. },
  5148. _Utf8Base64EncoderSink: function _Utf8Base64EncoderSink(t0, t1) {
  5149. this._sink = t0;
  5150. this._encoder = t1;
  5151. },
  5152. ByteConversionSink: function ByteConversionSink() {
  5153. },
  5154. ByteConversionSinkBase: function ByteConversionSinkBase() {
  5155. },
  5156. ChunkedConversionSink: function ChunkedConversionSink() {
  5157. },
  5158. Codec: function Codec() {
  5159. },
  5160. Converter: function Converter() {
  5161. },
  5162. Encoding: function Encoding() {
  5163. },
  5164. JsonUnsupportedObjectError: function JsonUnsupportedObjectError(t0, t1) {
  5165. this.unsupportedObject = t0;
  5166. this.cause = t1;
  5167. },
  5168. JsonCyclicError: function JsonCyclicError(t0, t1) {
  5169. this.unsupportedObject = t0;
  5170. this.cause = t1;
  5171. },
  5172. JsonCodec: function JsonCodec() {
  5173. },
  5174. JsonEncoder: function JsonEncoder(t0) {
  5175. this._toEncodable = t0;
  5176. },
  5177. _JsonStringifier: function _JsonStringifier() {
  5178. },
  5179. _JsonStringifier_writeMap_closure: function _JsonStringifier_writeMap_closure(t0, t1) {
  5180. this._box_0 = t0;
  5181. this.keyValueList = t1;
  5182. },
  5183. _JsonStringStringifier: function _JsonStringStringifier(t0, t1, t2) {
  5184. this._sink = t0;
  5185. this._seen = t1;
  5186. this._toEncodable = t2;
  5187. },
  5188. StringConversionSinkBase: function StringConversionSinkBase() {
  5189. },
  5190. StringConversionSinkMixin: function StringConversionSinkMixin() {
  5191. },
  5192. _StringSinkConversionSink: function _StringSinkConversionSink(t0) {
  5193. this._stringSink = t0;
  5194. },
  5195. _StringCallbackSink: function _StringCallbackSink(t0, t1) {
  5196. this._convert$_callback = t0;
  5197. this._stringSink = t1;
  5198. },
  5199. _Utf8StringSinkAdapter: function _Utf8StringSinkAdapter(t0, t1, t2) {
  5200. this._decoder = t0;
  5201. this._sink = t1;
  5202. this._stringSink = t2;
  5203. },
  5204. Utf8Codec: function Utf8Codec() {
  5205. },
  5206. Utf8Encoder: function Utf8Encoder() {
  5207. },
  5208. _Utf8Encoder: function _Utf8Encoder(t0) {
  5209. this._bufferIndex = 0;
  5210. this._convert$_buffer = t0;
  5211. },
  5212. Utf8Decoder: function Utf8Decoder(t0) {
  5213. this._allowMalformed = t0;
  5214. },
  5215. _Utf8Decoder: function _Utf8Decoder(t0) {
  5216. this.allowMalformed = t0;
  5217. this._convert$_state = 16;
  5218. this._charOrIndex = 0;
  5219. },
  5220. identityHashCode(object) {
  5221. return A.objectHashCode(object);
  5222. },
  5223. Function_apply($function, positionalArguments) {
  5224. return A.Primitives_applyFunction($function, positionalArguments, null);
  5225. },
  5226. Expando$() {
  5227. return new A.Expando(new WeakMap());
  5228. },
  5229. Expando__checkType(object) {
  5230. if (A._isBool(object) || typeof object == "number" || typeof object == "string")
  5231. throw A.wrapException(A.ArgumentError$value(object, string$.Expand, null));
  5232. },
  5233. int_parse(source, radix) {
  5234. var value = A.Primitives_parseInt(source, radix);
  5235. if (value != null)
  5236. return value;
  5237. throw A.wrapException(A.FormatException$(source, null, null));
  5238. },
  5239. double_parse(source) {
  5240. var value = A.Primitives_parseDouble(source);
  5241. if (value != null)
  5242. return value;
  5243. throw A.wrapException(A.FormatException$("Invalid double", source, null));
  5244. },
  5245. Error__objectToString(object) {
  5246. if (object instanceof A.Closure)
  5247. return object.toString$0(0);
  5248. return "Instance of '" + A.Primitives_objectTypeName(object) + "'";
  5249. },
  5250. Error__throw(error, stackTrace) {
  5251. error = A.wrapException(error);
  5252. error.stack = stackTrace.toString$0(0);
  5253. throw error;
  5254. throw A.wrapException("unreachable");
  5255. },
  5256. List_List$filled($length, fill, growable, $E) {
  5257. var i,
  5258. result = growable ? J.JSArray_JSArray$growable($length, $E) : J.JSArray_JSArray$fixed($length, $E);
  5259. if ($length !== 0 && fill != null)
  5260. for (i = 0; i < result.length; ++i)
  5261. result[i] = fill;
  5262. return result;
  5263. },
  5264. List_List$from(elements, growable, $E) {
  5265. var t1,
  5266. list = A._setArrayType([], $E._eval$1("JSArray<0>"));
  5267. for (t1 = J.get$iterator$ax(elements); t1.moveNext$0();)
  5268. list.push(t1.get$current(t1));
  5269. if (growable)
  5270. return list;
  5271. return J.JSArray_markFixedList(list);
  5272. },
  5273. List_List$of(elements, growable, $E) {
  5274. var t1;
  5275. if (growable)
  5276. return A.List_List$_of(elements, $E);
  5277. t1 = J.JSArray_markFixedList(A.List_List$_of(elements, $E));
  5278. return t1;
  5279. },
  5280. List_List$_of(elements, $E) {
  5281. var list, t1;
  5282. if (Array.isArray(elements))
  5283. return A._setArrayType(elements.slice(0), $E._eval$1("JSArray<0>"));
  5284. list = A._setArrayType([], $E._eval$1("JSArray<0>"));
  5285. for (t1 = J.get$iterator$ax(elements); t1.moveNext$0();)
  5286. list.push(t1.get$current(t1));
  5287. return list;
  5288. },
  5289. List_List$unmodifiable(elements, $E) {
  5290. return J.JSArray_markUnmodifiableList(A.List_List$from(elements, false, $E));
  5291. },
  5292. String_String$fromCharCodes(charCodes, start, end) {
  5293. var array, len;
  5294. if (Array.isArray(charCodes)) {
  5295. array = charCodes;
  5296. len = array.length;
  5297. end = A.RangeError_checkValidRange(start, end, len);
  5298. return A.Primitives_stringFromCharCodes(start > 0 || end < len ? array.slice(start, end) : array);
  5299. }
  5300. if (type$.NativeUint8List._is(charCodes))
  5301. return A.Primitives_stringFromNativeUint8List(charCodes, start, A.RangeError_checkValidRange(start, end, charCodes.length));
  5302. return A.String__stringFromIterable(charCodes, start, end);
  5303. },
  5304. String_String$fromCharCode(charCode) {
  5305. return A.Primitives_stringFromCharCode(charCode);
  5306. },
  5307. String__stringFromIterable(charCodes, start, end) {
  5308. var t1, it, i, list, _null = null;
  5309. if (start < 0)
  5310. throw A.wrapException(A.RangeError$range(start, 0, J.get$length$asx(charCodes), _null, _null));
  5311. t1 = end == null;
  5312. if (!t1 && end < start)
  5313. throw A.wrapException(A.RangeError$range(end, start, J.get$length$asx(charCodes), _null, _null));
  5314. it = J.get$iterator$ax(charCodes);
  5315. for (i = 0; i < start; ++i)
  5316. if (!it.moveNext$0())
  5317. throw A.wrapException(A.RangeError$range(start, 0, i, _null, _null));
  5318. list = [];
  5319. if (t1)
  5320. for (; it.moveNext$0();)
  5321. list.push(it.get$current(it));
  5322. else
  5323. for (i = start; i < end; ++i) {
  5324. if (!it.moveNext$0())
  5325. throw A.wrapException(A.RangeError$range(end, start, i, _null, _null));
  5326. list.push(it.get$current(it));
  5327. }
  5328. return A.Primitives_stringFromCharCodes(list);
  5329. },
  5330. RegExp_RegExp(source, multiLine) {
  5331. return new A.JSSyntaxRegExp(source, A.JSSyntaxRegExp_makeNative(source, multiLine, true, false, false, false));
  5332. },
  5333. identical(a, b) {
  5334. return a == null ? b == null : a === b;
  5335. },
  5336. StringBuffer__writeAll(string, objects, separator) {
  5337. var iterator = J.get$iterator$ax(objects);
  5338. if (!iterator.moveNext$0())
  5339. return string;
  5340. if (separator.length === 0) {
  5341. do
  5342. string += A.S(iterator.get$current(iterator));
  5343. while (iterator.moveNext$0());
  5344. } else {
  5345. string += A.S(iterator.get$current(iterator));
  5346. for (; iterator.moveNext$0();)
  5347. string = string + separator + A.S(iterator.get$current(iterator));
  5348. }
  5349. return string;
  5350. },
  5351. NoSuchMethodError$(receiver, memberName, positionalArguments, namedArguments) {
  5352. return new A.NoSuchMethodError(receiver, memberName, positionalArguments, namedArguments);
  5353. },
  5354. Uri_base() {
  5355. var uri = A.Primitives_currentUri();
  5356. if (uri != null)
  5357. return A.Uri_parse(uri);
  5358. throw A.wrapException(A.UnsupportedError$("'Uri.base' is not supported"));
  5359. },
  5360. _Uri__uriEncode(canonicalTable, text, encoding, spaceToPlus) {
  5361. var t1, bytes, i, t2, byte,
  5362. _s16_ = "0123456789ABCDEF";
  5363. if (encoding === B.C_Utf8Codec) {
  5364. t1 = $.$get$_Uri__needsNoEncoding()._nativeRegExp;
  5365. t1 = t1.test(text);
  5366. } else
  5367. t1 = false;
  5368. if (t1)
  5369. return text;
  5370. bytes = encoding.get$encoder().convert$1(text);
  5371. for (t1 = bytes.length, i = 0, t2 = ""; i < t1; ++i) {
  5372. byte = bytes[i];
  5373. if (byte < 128 && (canonicalTable[byte >>> 4] & 1 << (byte & 15)) !== 0)
  5374. t2 += A.Primitives_stringFromCharCode(byte);
  5375. else
  5376. t2 = spaceToPlus && byte === 32 ? t2 + "+" : t2 + "%" + _s16_[byte >>> 4 & 15] + _s16_[byte & 15];
  5377. }
  5378. return t2.charCodeAt(0) == 0 ? t2 : t2;
  5379. },
  5380. StackTrace_current() {
  5381. var stackTrace, exception;
  5382. if ($.$get$_hasErrorStackProperty())
  5383. return A.getTraceFromException(new Error());
  5384. try {
  5385. throw A.wrapException("");
  5386. } catch (exception) {
  5387. stackTrace = A.getTraceFromException(exception);
  5388. return stackTrace;
  5389. }
  5390. },
  5391. DateTime$_withValue(_value, isUtc) {
  5392. var t1;
  5393. if (Math.abs(_value) <= 864e13)
  5394. t1 = false;
  5395. else
  5396. t1 = true;
  5397. if (t1)
  5398. A.throwExpression(A.ArgumentError$("DateTime is outside valid range: " + _value, null));
  5399. A.checkNotNullable(false, "isUtc", type$.bool);
  5400. return new A.DateTime(_value, false);
  5401. },
  5402. DateTime__fourDigits(n) {
  5403. var absN = Math.abs(n),
  5404. sign = n < 0 ? "-" : "";
  5405. if (absN >= 1000)
  5406. return "" + n;
  5407. if (absN >= 100)
  5408. return sign + "0" + absN;
  5409. if (absN >= 10)
  5410. return sign + "00" + absN;
  5411. return sign + "000" + absN;
  5412. },
  5413. DateTime__threeDigits(n) {
  5414. if (n >= 100)
  5415. return "" + n;
  5416. if (n >= 10)
  5417. return "0" + n;
  5418. return "00" + n;
  5419. },
  5420. DateTime__twoDigits(n) {
  5421. if (n >= 10)
  5422. return "" + n;
  5423. return "0" + n;
  5424. },
  5425. Duration$(milliseconds) {
  5426. return new A.Duration(1000 * milliseconds);
  5427. },
  5428. Error_safeToString(object) {
  5429. if (typeof object == "number" || A._isBool(object) || object == null)
  5430. return J.toString$0$(object);
  5431. if (typeof object == "string")
  5432. return JSON.stringify(object);
  5433. return A.Error__objectToString(object);
  5434. },
  5435. AssertionError$(message) {
  5436. return new A.AssertionError(message);
  5437. },
  5438. ArgumentError$(message, $name) {
  5439. return new A.ArgumentError(false, null, $name, message);
  5440. },
  5441. ArgumentError$value(value, $name, message) {
  5442. return new A.ArgumentError(true, value, $name, message);
  5443. },
  5444. ArgumentError_checkNotNull(argument, $name) {
  5445. return argument;
  5446. },
  5447. RangeError$(message) {
  5448. var _null = null;
  5449. return new A.RangeError(_null, _null, false, _null, _null, message);
  5450. },
  5451. RangeError$value(value, $name, message) {
  5452. return new A.RangeError(null, null, true, value, $name, message == null ? "Value not in range" : message);
  5453. },
  5454. RangeError$range(invalidValue, minValue, maxValue, $name, message) {
  5455. return new A.RangeError(minValue, maxValue, true, invalidValue, $name, message == null ? "Invalid value" : message);
  5456. },
  5457. RangeError_checkValueInInterval(value, minValue, maxValue, $name) {
  5458. if (value < minValue || value > maxValue)
  5459. throw A.wrapException(A.RangeError$range(value, minValue, maxValue, $name, null));
  5460. return value;
  5461. },
  5462. RangeError_checkValidIndex(index, indexable, $name) {
  5463. var $length = indexable.get$length(indexable);
  5464. if (0 > index || index >= $length)
  5465. throw A.wrapException(A.IndexError$(index, indexable, $name == null ? "index" : $name, null, $length));
  5466. return index;
  5467. },
  5468. RangeError_checkValidRange(start, end, $length) {
  5469. if (0 > start || start > $length)
  5470. throw A.wrapException(A.RangeError$range(start, 0, $length, "start", null));
  5471. if (end != null) {
  5472. if (start > end || end > $length)
  5473. throw A.wrapException(A.RangeError$range(end, start, $length, "end", null));
  5474. return end;
  5475. }
  5476. return $length;
  5477. },
  5478. RangeError_checkNotNegative(value, $name) {
  5479. if (value < 0)
  5480. throw A.wrapException(A.RangeError$range(value, 0, null, $name, null));
  5481. return value;
  5482. },
  5483. IndexError$(invalidValue, indexable, $name, message, $length) {
  5484. var t1 = $length == null ? J.get$length$asx(indexable) : $length;
  5485. return new A.IndexError(t1, true, invalidValue, $name, "Index out of range");
  5486. },
  5487. UnsupportedError$(message) {
  5488. return new A.UnsupportedError(message);
  5489. },
  5490. UnimplementedError$(message) {
  5491. return new A.UnimplementedError(message);
  5492. },
  5493. StateError$(message) {
  5494. return new A.StateError(message);
  5495. },
  5496. ConcurrentModificationError$(modifiedObject) {
  5497. return new A.ConcurrentModificationError(modifiedObject);
  5498. },
  5499. FormatException$(message, source, offset) {
  5500. return new A.FormatException(message, source, offset);
  5501. },
  5502. Iterable_Iterable$generate(count, generator, $E) {
  5503. if (count <= 0)
  5504. return new A.EmptyIterable($E._eval$1("EmptyIterable<0>"));
  5505. return new A._GeneratorIterable(count, generator, $E._eval$1("_GeneratorIterable<0>"));
  5506. },
  5507. Map_castFrom(source, $K, $V, K2, V2) {
  5508. return new A.CastMap(source, $K._eval$1("@<0>")._bind$1($V)._bind$1(K2)._bind$1(V2)._eval$1("CastMap<1,2,3,4>"));
  5509. },
  5510. Object_hash(object1, object2, object3, object4) {
  5511. var t1, t2;
  5512. if (B.C_SentinelValue === object3) {
  5513. t1 = J.get$hashCode$(object1);
  5514. object2 = J.get$hashCode$(object2);
  5515. return A.SystemHash_finish(A.SystemHash_combine(A.SystemHash_combine($.$get$_hashSeed(), t1), object2));
  5516. }
  5517. if (B.C_SentinelValue === object4) {
  5518. t1 = J.get$hashCode$(object1);
  5519. object2 = J.get$hashCode$(object2);
  5520. object3 = J.get$hashCode$(object3);
  5521. return A.SystemHash_finish(A.SystemHash_combine(A.SystemHash_combine(A.SystemHash_combine($.$get$_hashSeed(), t1), object2), object3));
  5522. }
  5523. t1 = J.get$hashCode$(object1);
  5524. object2 = J.get$hashCode$(object2);
  5525. object3 = J.get$hashCode$(object3);
  5526. object4 = J.get$hashCode$(object4);
  5527. t2 = $.$get$_hashSeed();
  5528. return A.SystemHash_finish(A.SystemHash_combine(A.SystemHash_combine(A.SystemHash_combine(A.SystemHash_combine(t2, t1), object2), object3), object4));
  5529. },
  5530. print(object) {
  5531. var line = A.S(object),
  5532. toZone = $.printToZone;
  5533. if (toZone == null)
  5534. A.printString(line);
  5535. else
  5536. toZone.call$1(line);
  5537. },
  5538. Set_castFrom(source, newSet, $S, $T) {
  5539. return new A.CastSet(source, newSet, $S._eval$1("@<0>")._bind$1($T)._eval$1("CastSet<1,2>"));
  5540. },
  5541. _combineSurrogatePair(start, end) {
  5542. return 65536 + ((start & 1023) << 10) + (end & 1023);
  5543. },
  5544. Uri_Uri$dataFromString($content, encoding, mimeType) {
  5545. var encodingName, t1,
  5546. buffer = new A.StringBuffer(""),
  5547. indices = A._setArrayType([-1], type$.JSArray_int);
  5548. if (encoding == null)
  5549. encodingName = null;
  5550. else
  5551. encodingName = "utf-8";
  5552. if (encoding == null)
  5553. encoding = B.C_AsciiCodec;
  5554. A.UriData__writeUri(mimeType, encodingName, null, buffer, indices);
  5555. indices.push(buffer._contents.length);
  5556. buffer._contents += ",";
  5557. A.UriData__uriEncodeBytes(B.List_CVk, encoding.encode$1($content), buffer);
  5558. t1 = buffer._contents;
  5559. return new A.UriData(t1.charCodeAt(0) == 0 ? t1 : t1, indices, null).get$uri();
  5560. },
  5561. Uri_parse(uri) {
  5562. var delta, indices, schemeEnd, hostStart, portStart, pathStart, queryStart, fragmentStart, isSimple, scheme, t1, t2, schemeAuth, queryStart0, pathStart0, userInfoStart, userInfo, host, portNumber, port, path, query, _null = null,
  5563. end = uri.length;
  5564. if (end >= 5) {
  5565. delta = ((B.JSString_methods._codeUnitAt$1(uri, 4) ^ 58) * 3 | B.JSString_methods._codeUnitAt$1(uri, 0) ^ 100 | B.JSString_methods._codeUnitAt$1(uri, 1) ^ 97 | B.JSString_methods._codeUnitAt$1(uri, 2) ^ 116 | B.JSString_methods._codeUnitAt$1(uri, 3) ^ 97) >>> 0;
  5566. if (delta === 0)
  5567. return A.UriData__parse(end < end ? B.JSString_methods.substring$2(uri, 0, end) : uri, 5, _null).get$uri();
  5568. else if (delta === 32)
  5569. return A.UriData__parse(B.JSString_methods.substring$2(uri, 5, end), 0, _null).get$uri();
  5570. }
  5571. indices = A.List_List$filled(8, 0, false, type$.int);
  5572. indices[0] = 0;
  5573. indices[1] = -1;
  5574. indices[2] = -1;
  5575. indices[7] = -1;
  5576. indices[3] = 0;
  5577. indices[4] = 0;
  5578. indices[5] = end;
  5579. indices[6] = end;
  5580. if (A._scan(uri, 0, end, 0, indices) >= 14)
  5581. indices[7] = end;
  5582. schemeEnd = indices[1];
  5583. if (schemeEnd >= 0)
  5584. if (A._scan(uri, 0, schemeEnd, 20, indices) === 20)
  5585. indices[7] = schemeEnd;
  5586. hostStart = indices[2] + 1;
  5587. portStart = indices[3];
  5588. pathStart = indices[4];
  5589. queryStart = indices[5];
  5590. fragmentStart = indices[6];
  5591. if (fragmentStart < queryStart)
  5592. queryStart = fragmentStart;
  5593. if (pathStart < hostStart)
  5594. pathStart = queryStart;
  5595. else if (pathStart <= schemeEnd)
  5596. pathStart = schemeEnd + 1;
  5597. if (portStart < hostStart)
  5598. portStart = pathStart;
  5599. isSimple = indices[7] < 0;
  5600. if (isSimple)
  5601. if (hostStart > schemeEnd + 3) {
  5602. scheme = _null;
  5603. isSimple = false;
  5604. } else {
  5605. t1 = portStart > 0;
  5606. if (t1 && portStart + 1 === pathStart) {
  5607. scheme = _null;
  5608. isSimple = false;
  5609. } else {
  5610. if (!B.JSString_methods.startsWith$2(uri, "\\", pathStart))
  5611. if (hostStart > 0)
  5612. t2 = B.JSString_methods.startsWith$2(uri, "\\", hostStart - 1) || B.JSString_methods.startsWith$2(uri, "\\", hostStart - 2);
  5613. else
  5614. t2 = false;
  5615. else
  5616. t2 = true;
  5617. if (t2) {
  5618. scheme = _null;
  5619. isSimple = false;
  5620. } else {
  5621. if (!(queryStart < end && queryStart === pathStart + 2 && B.JSString_methods.startsWith$2(uri, "..", pathStart)))
  5622. t2 = queryStart > pathStart + 2 && B.JSString_methods.startsWith$2(uri, "/..", queryStart - 3);
  5623. else
  5624. t2 = true;
  5625. if (t2) {
  5626. scheme = _null;
  5627. isSimple = false;
  5628. } else {
  5629. if (schemeEnd === 4)
  5630. if (B.JSString_methods.startsWith$2(uri, "file", 0)) {
  5631. if (hostStart <= 0) {
  5632. if (!B.JSString_methods.startsWith$2(uri, "/", pathStart)) {
  5633. schemeAuth = "file:///";
  5634. delta = 3;
  5635. } else {
  5636. schemeAuth = "file://";
  5637. delta = 2;
  5638. }
  5639. uri = schemeAuth + B.JSString_methods.substring$2(uri, pathStart, end);
  5640. schemeEnd -= 0;
  5641. t1 = delta - 0;
  5642. queryStart += t1;
  5643. fragmentStart += t1;
  5644. end = uri.length;
  5645. hostStart = 7;
  5646. portStart = 7;
  5647. pathStart = 7;
  5648. } else if (pathStart === queryStart) {
  5649. ++fragmentStart;
  5650. queryStart0 = queryStart + 1;
  5651. uri = B.JSString_methods.replaceRange$3(uri, pathStart, queryStart, "/");
  5652. ++end;
  5653. queryStart = queryStart0;
  5654. }
  5655. scheme = "file";
  5656. } else if (B.JSString_methods.startsWith$2(uri, "http", 0)) {
  5657. if (t1 && portStart + 3 === pathStart && B.JSString_methods.startsWith$2(uri, "80", portStart + 1)) {
  5658. fragmentStart -= 3;
  5659. pathStart0 = pathStart - 3;
  5660. queryStart -= 3;
  5661. uri = B.JSString_methods.replaceRange$3(uri, portStart, pathStart, "");
  5662. end -= 3;
  5663. pathStart = pathStart0;
  5664. }
  5665. scheme = "http";
  5666. } else
  5667. scheme = _null;
  5668. else if (schemeEnd === 5 && B.JSString_methods.startsWith$2(uri, "https", 0)) {
  5669. if (t1 && portStart + 4 === pathStart && B.JSString_methods.startsWith$2(uri, "443", portStart + 1)) {
  5670. fragmentStart -= 4;
  5671. pathStart0 = pathStart - 4;
  5672. queryStart -= 4;
  5673. uri = B.JSString_methods.replaceRange$3(uri, portStart, pathStart, "");
  5674. end -= 3;
  5675. pathStart = pathStart0;
  5676. }
  5677. scheme = "https";
  5678. } else
  5679. scheme = _null;
  5680. isSimple = true;
  5681. }
  5682. }
  5683. }
  5684. }
  5685. else
  5686. scheme = _null;
  5687. if (isSimple) {
  5688. if (end < uri.length) {
  5689. uri = B.JSString_methods.substring$2(uri, 0, end);
  5690. schemeEnd -= 0;
  5691. hostStart -= 0;
  5692. portStart -= 0;
  5693. pathStart -= 0;
  5694. queryStart -= 0;
  5695. fragmentStart -= 0;
  5696. }
  5697. return new A._SimpleUri(uri, schemeEnd, hostStart, portStart, pathStart, queryStart, fragmentStart, scheme);
  5698. }
  5699. if (scheme == null)
  5700. if (schemeEnd > 0)
  5701. scheme = A._Uri__makeScheme(uri, 0, schemeEnd);
  5702. else {
  5703. if (schemeEnd === 0)
  5704. A._Uri__fail(uri, 0, "Invalid empty scheme");
  5705. scheme = "";
  5706. }
  5707. if (hostStart > 0) {
  5708. userInfoStart = schemeEnd + 3;
  5709. userInfo = userInfoStart < hostStart ? A._Uri__makeUserInfo(uri, userInfoStart, hostStart - 1) : "";
  5710. host = A._Uri__makeHost(uri, hostStart, portStart, false);
  5711. t1 = portStart + 1;
  5712. if (t1 < pathStart) {
  5713. portNumber = A.Primitives_parseInt(B.JSString_methods.substring$2(uri, t1, pathStart), _null);
  5714. port = A._Uri__makePort(portNumber == null ? A.throwExpression(A.FormatException$("Invalid port", uri, t1)) : portNumber, scheme);
  5715. } else
  5716. port = _null;
  5717. } else {
  5718. port = _null;
  5719. host = port;
  5720. userInfo = "";
  5721. }
  5722. path = A._Uri__makePath(uri, pathStart, queryStart, _null, scheme, host != null);
  5723. query = queryStart < fragmentStart ? A._Uri__makeQuery(uri, queryStart + 1, fragmentStart, _null) : _null;
  5724. return A._Uri$_internal(scheme, userInfo, host, port, path, query, fragmentStart < end ? A._Uri__makeFragment(uri, fragmentStart + 1, end) : _null);
  5725. },
  5726. Uri_decodeComponent(encodedComponent) {
  5727. return A._Uri__uriDecode(encodedComponent, 0, encodedComponent.length, B.C_Utf8Codec, false);
  5728. },
  5729. Uri__parseIPv4Address(host, start, end) {
  5730. var i, partStart, partIndex, char, part, partIndex0,
  5731. _s43_ = "IPv4 address should contain exactly 4 parts",
  5732. _s37_ = "each part must be in the range 0..255",
  5733. error = new A.Uri__parseIPv4Address_error(host),
  5734. result = new Uint8Array(4);
  5735. for (i = start, partStart = i, partIndex = 0; i < end; ++i) {
  5736. char = B.JSString_methods.codeUnitAt$1(host, i);
  5737. if (char !== 46) {
  5738. if ((char ^ 48) > 9)
  5739. error.call$2("invalid character", i);
  5740. } else {
  5741. if (partIndex === 3)
  5742. error.call$2(_s43_, i);
  5743. part = A.int_parse(B.JSString_methods.substring$2(host, partStart, i), null);
  5744. if (part > 255)
  5745. error.call$2(_s37_, partStart);
  5746. partIndex0 = partIndex + 1;
  5747. result[partIndex] = part;
  5748. partStart = i + 1;
  5749. partIndex = partIndex0;
  5750. }
  5751. }
  5752. if (partIndex !== 3)
  5753. error.call$2(_s43_, end);
  5754. part = A.int_parse(B.JSString_methods.substring$2(host, partStart, end), null);
  5755. if (part > 255)
  5756. error.call$2(_s37_, partStart);
  5757. result[partIndex] = part;
  5758. return result;
  5759. },
  5760. Uri_parseIPv6Address(host, start, end) {
  5761. var parts, i, partStart, wildcardSeen, seenDot, char, atEnd, t1, last, bytes, wildCardLength, index, value, j, _null = null,
  5762. error = new A.Uri_parseIPv6Address_error(host),
  5763. parseHex = new A.Uri_parseIPv6Address_parseHex(error, host);
  5764. if (host.length < 2)
  5765. error.call$2("address is too short", _null);
  5766. parts = A._setArrayType([], type$.JSArray_int);
  5767. for (i = start, partStart = i, wildcardSeen = false, seenDot = false; i < end; ++i) {
  5768. char = B.JSString_methods.codeUnitAt$1(host, i);
  5769. if (char === 58) {
  5770. if (i === start) {
  5771. ++i;
  5772. if (B.JSString_methods.codeUnitAt$1(host, i) !== 58)
  5773. error.call$2("invalid start colon.", i);
  5774. partStart = i;
  5775. }
  5776. if (i === partStart) {
  5777. if (wildcardSeen)
  5778. error.call$2("only one wildcard `::` is allowed", i);
  5779. parts.push(-1);
  5780. wildcardSeen = true;
  5781. } else
  5782. parts.push(parseHex.call$2(partStart, i));
  5783. partStart = i + 1;
  5784. } else if (char === 46)
  5785. seenDot = true;
  5786. }
  5787. if (parts.length === 0)
  5788. error.call$2("too few parts", _null);
  5789. atEnd = partStart === end;
  5790. t1 = B.JSArray_methods.get$last(parts);
  5791. if (atEnd && t1 !== -1)
  5792. error.call$2("expected a part after last `:`", end);
  5793. if (!atEnd)
  5794. if (!seenDot)
  5795. parts.push(parseHex.call$2(partStart, end));
  5796. else {
  5797. last = A.Uri__parseIPv4Address(host, partStart, end);
  5798. parts.push((last[0] << 8 | last[1]) >>> 0);
  5799. parts.push((last[2] << 8 | last[3]) >>> 0);
  5800. }
  5801. if (wildcardSeen) {
  5802. if (parts.length > 7)
  5803. error.call$2("an address with a wildcard must have less than 7 parts", _null);
  5804. } else if (parts.length !== 8)
  5805. error.call$2("an address without a wildcard must contain exactly 8 parts", _null);
  5806. bytes = new Uint8Array(16);
  5807. for (t1 = parts.length, wildCardLength = 9 - t1, i = 0, index = 0; i < t1; ++i) {
  5808. value = parts[i];
  5809. if (value === -1)
  5810. for (j = 0; j < wildCardLength; ++j) {
  5811. bytes[index] = 0;
  5812. bytes[index + 1] = 0;
  5813. index += 2;
  5814. }
  5815. else {
  5816. bytes[index] = B.JSInt_methods._shrOtherPositive$1(value, 8);
  5817. bytes[index + 1] = value & 255;
  5818. index += 2;
  5819. }
  5820. }
  5821. return bytes;
  5822. },
  5823. _Uri$_internal(scheme, _userInfo, _host, _port, path, _query, _fragment) {
  5824. return new A._Uri(scheme, _userInfo, _host, _port, path, _query, _fragment);
  5825. },
  5826. _Uri__Uri(host, path, pathSegments, scheme) {
  5827. var userInfo, query, fragment, port, isFile, t1, hasAuthority, t2, _null = null;
  5828. scheme = scheme == null ? "" : A._Uri__makeScheme(scheme, 0, scheme.length);
  5829. userInfo = A._Uri__makeUserInfo(_null, 0, 0);
  5830. host = A._Uri__makeHost(host, 0, host == null ? 0 : host.length, false);
  5831. query = A._Uri__makeQuery(_null, 0, 0, _null);
  5832. fragment = A._Uri__makeFragment(_null, 0, 0);
  5833. port = A._Uri__makePort(_null, scheme);
  5834. isFile = scheme === "file";
  5835. if (host == null)
  5836. t1 = userInfo.length !== 0 || port != null || isFile;
  5837. else
  5838. t1 = false;
  5839. if (t1)
  5840. host = "";
  5841. t1 = host == null;
  5842. hasAuthority = !t1;
  5843. path = A._Uri__makePath(path, 0, path == null ? 0 : path.length, pathSegments, scheme, hasAuthority);
  5844. t2 = scheme.length === 0;
  5845. if (t2 && t1 && !B.JSString_methods.startsWith$1(path, "/"))
  5846. path = A._Uri__normalizeRelativePath(path, !t2 || hasAuthority);
  5847. else
  5848. path = A._Uri__removeDotSegments(path);
  5849. return A._Uri$_internal(scheme, userInfo, t1 && B.JSString_methods.startsWith$1(path, "//") ? "" : host, port, path, query, fragment);
  5850. },
  5851. _Uri__defaultPort(scheme) {
  5852. if (scheme === "http")
  5853. return 80;
  5854. if (scheme === "https")
  5855. return 443;
  5856. return 0;
  5857. },
  5858. _Uri__fail(uri, index, message) {
  5859. throw A.wrapException(A.FormatException$(message, uri, index));
  5860. },
  5861. _Uri__Uri$file(path, windows) {
  5862. return windows ? A._Uri__makeWindowsFileUrl(path, false) : A._Uri__makeFileUri(path, false);
  5863. },
  5864. _Uri__checkNonWindowsPathReservedCharacters(segments, argumentError) {
  5865. var t1, _i, segment, t2, t3;
  5866. for (t1 = segments.length, _i = 0; _i < t1; ++_i) {
  5867. segment = segments[_i];
  5868. t2 = J.getInterceptor$asx(segment);
  5869. t3 = t2.get$length(segment);
  5870. if (0 > t3)
  5871. A.throwExpression(A.RangeError$range(0, 0, t2.get$length(segment), null, null));
  5872. if (A.stringContainsUnchecked(segment, "/", 0)) {
  5873. t1 = A.UnsupportedError$("Illegal path character " + A.S(segment));
  5874. throw A.wrapException(t1);
  5875. }
  5876. }
  5877. },
  5878. _Uri__checkWindowsPathReservedCharacters(segments, argumentError, firstSegment) {
  5879. var t1, t2, t3, t4, t5, _null = null;
  5880. for (t1 = A.SubListIterable$(segments, firstSegment, _null, A._arrayInstanceType(segments)._precomputed1), t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) {
  5881. t3 = t1.__internal$_current;
  5882. if (t3 == null)
  5883. t3 = t2._as(t3);
  5884. t4 = A.RegExp_RegExp('["*/:<>?\\\\|]', false);
  5885. t5 = t3.length;
  5886. if (A.stringContainsUnchecked(t3, t4, 0))
  5887. if (argumentError)
  5888. throw A.wrapException(A.ArgumentError$("Illegal character in path", _null));
  5889. else
  5890. throw A.wrapException(A.UnsupportedError$("Illegal character in path: " + t3));
  5891. }
  5892. },
  5893. _Uri__checkWindowsDriveLetter(charCode, argumentError) {
  5894. var t1,
  5895. _s21_ = "Illegal drive letter ";
  5896. if (!(65 <= charCode && charCode <= 90))
  5897. t1 = 97 <= charCode && charCode <= 122;
  5898. else
  5899. t1 = true;
  5900. if (t1)
  5901. return;
  5902. if (argumentError)
  5903. throw A.wrapException(A.ArgumentError$(_s21_ + A.String_String$fromCharCode(charCode), null));
  5904. else
  5905. throw A.wrapException(A.UnsupportedError$(_s21_ + A.String_String$fromCharCode(charCode)));
  5906. },
  5907. _Uri__makeFileUri(path, slashTerminated) {
  5908. var _null = null,
  5909. segments = A._setArrayType(path.split("/"), type$.JSArray_String);
  5910. if (B.JSString_methods.startsWith$1(path, "/"))
  5911. return A._Uri__Uri(_null, _null, segments, "file");
  5912. else
  5913. return A._Uri__Uri(_null, _null, segments, _null);
  5914. },
  5915. _Uri__makeWindowsFileUrl(path, slashTerminated) {
  5916. var t1, pathSegments, pathStart, hostPart, _s1_ = "\\", _null = null, _s4_ = "file";
  5917. if (B.JSString_methods.startsWith$1(path, "\\\\?\\"))
  5918. if (B.JSString_methods.startsWith$2(path, "UNC\\", 4))
  5919. path = B.JSString_methods.replaceRange$3(path, 0, 7, _s1_);
  5920. else {
  5921. path = B.JSString_methods.substring$1(path, 4);
  5922. if (path.length < 3 || B.JSString_methods._codeUnitAt$1(path, 1) !== 58 || B.JSString_methods._codeUnitAt$1(path, 2) !== 92)
  5923. throw A.wrapException(A.ArgumentError$("Windows paths with \\\\?\\ prefix must be absolute", _null));
  5924. }
  5925. else
  5926. path = A.stringReplaceAllUnchecked(path, "/", _s1_);
  5927. t1 = path.length;
  5928. if (t1 > 1 && B.JSString_methods._codeUnitAt$1(path, 1) === 58) {
  5929. A._Uri__checkWindowsDriveLetter(B.JSString_methods._codeUnitAt$1(path, 0), true);
  5930. if (t1 === 2 || B.JSString_methods._codeUnitAt$1(path, 2) !== 92)
  5931. throw A.wrapException(A.ArgumentError$("Windows paths with drive letter must be absolute", _null));
  5932. pathSegments = A._setArrayType(path.split(_s1_), type$.JSArray_String);
  5933. A._Uri__checkWindowsPathReservedCharacters(pathSegments, true, 1);
  5934. return A._Uri__Uri(_null, _null, pathSegments, _s4_);
  5935. }
  5936. if (B.JSString_methods.startsWith$1(path, _s1_))
  5937. if (B.JSString_methods.startsWith$2(path, _s1_, 1)) {
  5938. pathStart = B.JSString_methods.indexOf$2(path, _s1_, 2);
  5939. t1 = pathStart < 0;
  5940. hostPart = t1 ? B.JSString_methods.substring$1(path, 2) : B.JSString_methods.substring$2(path, 2, pathStart);
  5941. pathSegments = A._setArrayType((t1 ? "" : B.JSString_methods.substring$1(path, pathStart + 1)).split(_s1_), type$.JSArray_String);
  5942. A._Uri__checkWindowsPathReservedCharacters(pathSegments, true, 0);
  5943. return A._Uri__Uri(hostPart, _null, pathSegments, _s4_);
  5944. } else {
  5945. pathSegments = A._setArrayType(path.split(_s1_), type$.JSArray_String);
  5946. A._Uri__checkWindowsPathReservedCharacters(pathSegments, true, 0);
  5947. return A._Uri__Uri(_null, _null, pathSegments, _s4_);
  5948. }
  5949. else {
  5950. pathSegments = A._setArrayType(path.split(_s1_), type$.JSArray_String);
  5951. A._Uri__checkWindowsPathReservedCharacters(pathSegments, true, 0);
  5952. return A._Uri__Uri(_null, _null, pathSegments, _null);
  5953. }
  5954. },
  5955. _Uri__makePort(port, scheme) {
  5956. if (port != null && port === A._Uri__defaultPort(scheme))
  5957. return null;
  5958. return port;
  5959. },
  5960. _Uri__makeHost(host, start, end, strictIPv6) {
  5961. var t1, t2, index, zoneIDstart, zoneID, i;
  5962. if (host == null)
  5963. return null;
  5964. if (start === end)
  5965. return "";
  5966. if (B.JSString_methods.codeUnitAt$1(host, start) === 91) {
  5967. t1 = end - 1;
  5968. if (B.JSString_methods.codeUnitAt$1(host, t1) !== 93)
  5969. A._Uri__fail(host, start, "Missing end `]` to match `[` in host");
  5970. t2 = start + 1;
  5971. index = A._Uri__checkZoneID(host, t2, t1);
  5972. if (index < t1) {
  5973. zoneIDstart = index + 1;
  5974. zoneID = A._Uri__normalizeZoneID(host, B.JSString_methods.startsWith$2(host, "25", zoneIDstart) ? index + 3 : zoneIDstart, t1, "%25");
  5975. } else
  5976. zoneID = "";
  5977. A.Uri_parseIPv6Address(host, t2, index);
  5978. return B.JSString_methods.substring$2(host, start, index).toLowerCase() + zoneID + "]";
  5979. }
  5980. for (i = start; i < end; ++i)
  5981. if (B.JSString_methods.codeUnitAt$1(host, i) === 58) {
  5982. index = B.JSString_methods.indexOf$2(host, "%", start);
  5983. index = index >= start && index < end ? index : end;
  5984. if (index < end) {
  5985. zoneIDstart = index + 1;
  5986. zoneID = A._Uri__normalizeZoneID(host, B.JSString_methods.startsWith$2(host, "25", zoneIDstart) ? index + 3 : zoneIDstart, end, "%25");
  5987. } else
  5988. zoneID = "";
  5989. A.Uri_parseIPv6Address(host, start, index);
  5990. return "[" + B.JSString_methods.substring$2(host, start, index) + zoneID + "]";
  5991. }
  5992. return A._Uri__normalizeRegName(host, start, end);
  5993. },
  5994. _Uri__checkZoneID(host, start, end) {
  5995. var index = B.JSString_methods.indexOf$2(host, "%", start);
  5996. return index >= start && index < end ? index : end;
  5997. },
  5998. _Uri__normalizeZoneID(host, start, end, prefix) {
  5999. var index, sectionStart, isNormalized, char, replacement, t1, t2, tail, sourceLength, slice,
  6000. buffer = prefix !== "" ? new A.StringBuffer(prefix) : null;
  6001. for (index = start, sectionStart = index, isNormalized = true; index < end;) {
  6002. char = B.JSString_methods.codeUnitAt$1(host, index);
  6003. if (char === 37) {
  6004. replacement = A._Uri__normalizeEscape(host, index, true);
  6005. t1 = replacement == null;
  6006. if (t1 && isNormalized) {
  6007. index += 3;
  6008. continue;
  6009. }
  6010. if (buffer == null)
  6011. buffer = new A.StringBuffer("");
  6012. t2 = buffer._contents += B.JSString_methods.substring$2(host, sectionStart, index);
  6013. if (t1)
  6014. replacement = B.JSString_methods.substring$2(host, index, index + 3);
  6015. else if (replacement === "%")
  6016. A._Uri__fail(host, index, "ZoneID should not contain % anymore");
  6017. buffer._contents = t2 + replacement;
  6018. index += 3;
  6019. sectionStart = index;
  6020. isNormalized = true;
  6021. } else if (char < 127 && (B.List_nxB[char >>> 4] & 1 << (char & 15)) !== 0) {
  6022. if (isNormalized && 65 <= char && 90 >= char) {
  6023. if (buffer == null)
  6024. buffer = new A.StringBuffer("");
  6025. if (sectionStart < index) {
  6026. buffer._contents += B.JSString_methods.substring$2(host, sectionStart, index);
  6027. sectionStart = index;
  6028. }
  6029. isNormalized = false;
  6030. }
  6031. ++index;
  6032. } else {
  6033. if ((char & 64512) === 55296 && index + 1 < end) {
  6034. tail = B.JSString_methods.codeUnitAt$1(host, index + 1);
  6035. if ((tail & 64512) === 56320) {
  6036. char = (char & 1023) << 10 | tail & 1023 | 65536;
  6037. sourceLength = 2;
  6038. } else
  6039. sourceLength = 1;
  6040. } else
  6041. sourceLength = 1;
  6042. slice = B.JSString_methods.substring$2(host, sectionStart, index);
  6043. if (buffer == null) {
  6044. buffer = new A.StringBuffer("");
  6045. t1 = buffer;
  6046. } else
  6047. t1 = buffer;
  6048. t1._contents += slice;
  6049. t1._contents += A._Uri__escapeChar(char);
  6050. index += sourceLength;
  6051. sectionStart = index;
  6052. }
  6053. }
  6054. if (buffer == null)
  6055. return B.JSString_methods.substring$2(host, start, end);
  6056. if (sectionStart < end)
  6057. buffer._contents += B.JSString_methods.substring$2(host, sectionStart, end);
  6058. t1 = buffer._contents;
  6059. return t1.charCodeAt(0) == 0 ? t1 : t1;
  6060. },
  6061. _Uri__normalizeRegName(host, start, end) {
  6062. var index, sectionStart, buffer, isNormalized, char, replacement, t1, slice, t2, sourceLength, tail;
  6063. for (index = start, sectionStart = index, buffer = null, isNormalized = true; index < end;) {
  6064. char = B.JSString_methods.codeUnitAt$1(host, index);
  6065. if (char === 37) {
  6066. replacement = A._Uri__normalizeEscape(host, index, true);
  6067. t1 = replacement == null;
  6068. if (t1 && isNormalized) {
  6069. index += 3;
  6070. continue;
  6071. }
  6072. if (buffer == null)
  6073. buffer = new A.StringBuffer("");
  6074. slice = B.JSString_methods.substring$2(host, sectionStart, index);
  6075. t2 = buffer._contents += !isNormalized ? slice.toLowerCase() : slice;
  6076. if (t1) {
  6077. replacement = B.JSString_methods.substring$2(host, index, index + 3);
  6078. sourceLength = 3;
  6079. } else if (replacement === "%") {
  6080. replacement = "%25";
  6081. sourceLength = 1;
  6082. } else
  6083. sourceLength = 3;
  6084. buffer._contents = t2 + replacement;
  6085. index += sourceLength;
  6086. sectionStart = index;
  6087. isNormalized = true;
  6088. } else if (char < 127 && (B.List_qNA[char >>> 4] & 1 << (char & 15)) !== 0) {
  6089. if (isNormalized && 65 <= char && 90 >= char) {
  6090. if (buffer == null)
  6091. buffer = new A.StringBuffer("");
  6092. if (sectionStart < index) {
  6093. buffer._contents += B.JSString_methods.substring$2(host, sectionStart, index);
  6094. sectionStart = index;
  6095. }
  6096. isNormalized = false;
  6097. }
  6098. ++index;
  6099. } else if (char <= 93 && (B.List_2Vk[char >>> 4] & 1 << (char & 15)) !== 0)
  6100. A._Uri__fail(host, index, "Invalid character");
  6101. else {
  6102. if ((char & 64512) === 55296 && index + 1 < end) {
  6103. tail = B.JSString_methods.codeUnitAt$1(host, index + 1);
  6104. if ((tail & 64512) === 56320) {
  6105. char = (char & 1023) << 10 | tail & 1023 | 65536;
  6106. sourceLength = 2;
  6107. } else
  6108. sourceLength = 1;
  6109. } else
  6110. sourceLength = 1;
  6111. slice = B.JSString_methods.substring$2(host, sectionStart, index);
  6112. if (!isNormalized)
  6113. slice = slice.toLowerCase();
  6114. if (buffer == null) {
  6115. buffer = new A.StringBuffer("");
  6116. t1 = buffer;
  6117. } else
  6118. t1 = buffer;
  6119. t1._contents += slice;
  6120. t1._contents += A._Uri__escapeChar(char);
  6121. index += sourceLength;
  6122. sectionStart = index;
  6123. }
  6124. }
  6125. if (buffer == null)
  6126. return B.JSString_methods.substring$2(host, start, end);
  6127. if (sectionStart < end) {
  6128. slice = B.JSString_methods.substring$2(host, sectionStart, end);
  6129. buffer._contents += !isNormalized ? slice.toLowerCase() : slice;
  6130. }
  6131. t1 = buffer._contents;
  6132. return t1.charCodeAt(0) == 0 ? t1 : t1;
  6133. },
  6134. _Uri__makeScheme(scheme, start, end) {
  6135. var i, containsUpperCase, codeUnit;
  6136. if (start === end)
  6137. return "";
  6138. if (!A._Uri__isAlphabeticCharacter(B.JSString_methods._codeUnitAt$1(scheme, start)))
  6139. A._Uri__fail(scheme, start, "Scheme not starting with alphabetic character");
  6140. for (i = start, containsUpperCase = false; i < end; ++i) {
  6141. codeUnit = B.JSString_methods._codeUnitAt$1(scheme, i);
  6142. if (!(codeUnit < 128 && (B.List_JYB[codeUnit >>> 4] & 1 << (codeUnit & 15)) !== 0))
  6143. A._Uri__fail(scheme, i, "Illegal scheme character");
  6144. if (65 <= codeUnit && codeUnit <= 90)
  6145. containsUpperCase = true;
  6146. }
  6147. scheme = B.JSString_methods.substring$2(scheme, start, end);
  6148. return A._Uri__canonicalizeScheme(containsUpperCase ? scheme.toLowerCase() : scheme);
  6149. },
  6150. _Uri__canonicalizeScheme(scheme) {
  6151. if (scheme === "http")
  6152. return "http";
  6153. if (scheme === "file")
  6154. return "file";
  6155. if (scheme === "https")
  6156. return "https";
  6157. if (scheme === "package")
  6158. return "package";
  6159. return scheme;
  6160. },
  6161. _Uri__makeUserInfo(userInfo, start, end) {
  6162. if (userInfo == null)
  6163. return "";
  6164. return A._Uri__normalizeOrSubstring(userInfo, start, end, B.List_gRj, false, false);
  6165. },
  6166. _Uri__makePath(path, start, end, pathSegments, scheme, hasAuthority) {
  6167. var result,
  6168. isFile = scheme === "file",
  6169. ensureLeadingSlash = isFile || hasAuthority;
  6170. if (path == null) {
  6171. if (pathSegments == null)
  6172. return isFile ? "/" : "";
  6173. result = new A.MappedListIterable(pathSegments, new A._Uri__makePath_closure(), A._arrayInstanceType(pathSegments)._eval$1("MappedListIterable<1,String>")).join$1(0, "/");
  6174. } else if (pathSegments != null)
  6175. throw A.wrapException(A.ArgumentError$("Both path and pathSegments specified", null));
  6176. else
  6177. result = A._Uri__normalizeOrSubstring(path, start, end, B.List_qg4, true, true);
  6178. if (result.length === 0) {
  6179. if (isFile)
  6180. return "/";
  6181. } else if (ensureLeadingSlash && !B.JSString_methods.startsWith$1(result, "/"))
  6182. result = "/" + result;
  6183. return A._Uri__normalizePath(result, scheme, hasAuthority);
  6184. },
  6185. _Uri__normalizePath(path, scheme, hasAuthority) {
  6186. var t1 = scheme.length === 0;
  6187. if (t1 && !hasAuthority && !B.JSString_methods.startsWith$1(path, "/") && !B.JSString_methods.startsWith$1(path, "\\"))
  6188. return A._Uri__normalizeRelativePath(path, !t1 || hasAuthority);
  6189. return A._Uri__removeDotSegments(path);
  6190. },
  6191. _Uri__makeQuery(query, start, end, queryParameters) {
  6192. if (query != null)
  6193. return A._Uri__normalizeOrSubstring(query, start, end, B.List_CVk, true, false);
  6194. return null;
  6195. },
  6196. _Uri__makeFragment(fragment, start, end) {
  6197. if (fragment == null)
  6198. return null;
  6199. return A._Uri__normalizeOrSubstring(fragment, start, end, B.List_CVk, true, false);
  6200. },
  6201. _Uri__normalizeEscape(source, index, lowerCase) {
  6202. var firstDigit, secondDigit, firstDigitValue, secondDigitValue, value,
  6203. t1 = index + 2;
  6204. if (t1 >= source.length)
  6205. return "%";
  6206. firstDigit = B.JSString_methods.codeUnitAt$1(source, index + 1);
  6207. secondDigit = B.JSString_methods.codeUnitAt$1(source, t1);
  6208. firstDigitValue = A.hexDigitValue(firstDigit);
  6209. secondDigitValue = A.hexDigitValue(secondDigit);
  6210. if (firstDigitValue < 0 || secondDigitValue < 0)
  6211. return "%";
  6212. value = firstDigitValue * 16 + secondDigitValue;
  6213. if (value < 127 && (B.List_nxB[B.JSInt_methods._shrOtherPositive$1(value, 4)] & 1 << (value & 15)) !== 0)
  6214. return A.Primitives_stringFromCharCode(lowerCase && 65 <= value && 90 >= value ? (value | 32) >>> 0 : value);
  6215. if (firstDigit >= 97 || secondDigit >= 97)
  6216. return B.JSString_methods.substring$2(source, index, index + 3).toUpperCase();
  6217. return null;
  6218. },
  6219. _Uri__escapeChar(char) {
  6220. var codeUnits, flag, encodedBytes, index, byte,
  6221. _s16_ = "0123456789ABCDEF";
  6222. if (char < 128) {
  6223. codeUnits = new Uint8Array(3);
  6224. codeUnits[0] = 37;
  6225. codeUnits[1] = B.JSString_methods._codeUnitAt$1(_s16_, char >>> 4);
  6226. codeUnits[2] = B.JSString_methods._codeUnitAt$1(_s16_, char & 15);
  6227. } else {
  6228. if (char > 2047)
  6229. if (char > 65535) {
  6230. flag = 240;
  6231. encodedBytes = 4;
  6232. } else {
  6233. flag = 224;
  6234. encodedBytes = 3;
  6235. }
  6236. else {
  6237. flag = 192;
  6238. encodedBytes = 2;
  6239. }
  6240. codeUnits = new Uint8Array(3 * encodedBytes);
  6241. for (index = 0; --encodedBytes, encodedBytes >= 0; flag = 128) {
  6242. byte = B.JSInt_methods._shrReceiverPositive$1(char, 6 * encodedBytes) & 63 | flag;
  6243. codeUnits[index] = 37;
  6244. codeUnits[index + 1] = B.JSString_methods._codeUnitAt$1(_s16_, byte >>> 4);
  6245. codeUnits[index + 2] = B.JSString_methods._codeUnitAt$1(_s16_, byte & 15);
  6246. index += 3;
  6247. }
  6248. }
  6249. return A.String_String$fromCharCodes(codeUnits, 0, null);
  6250. },
  6251. _Uri__normalizeOrSubstring(component, start, end, charTable, escapeDelimiters, replaceBackslash) {
  6252. var t1 = A._Uri__normalize(component, start, end, charTable, escapeDelimiters, replaceBackslash);
  6253. return t1 == null ? B.JSString_methods.substring$2(component, start, end) : t1;
  6254. },
  6255. _Uri__normalize(component, start, end, charTable, escapeDelimiters, replaceBackslash) {
  6256. var t1, index, sectionStart, buffer, char, replacement, sourceLength, t2, tail, t3, _null = null;
  6257. for (t1 = !escapeDelimiters, index = start, sectionStart = index, buffer = _null; index < end;) {
  6258. char = B.JSString_methods.codeUnitAt$1(component, index);
  6259. if (char < 127 && (charTable[char >>> 4] & 1 << (char & 15)) !== 0)
  6260. ++index;
  6261. else {
  6262. if (char === 37) {
  6263. replacement = A._Uri__normalizeEscape(component, index, false);
  6264. if (replacement == null) {
  6265. index += 3;
  6266. continue;
  6267. }
  6268. if ("%" === replacement) {
  6269. replacement = "%25";
  6270. sourceLength = 1;
  6271. } else
  6272. sourceLength = 3;
  6273. } else if (char === 92 && replaceBackslash) {
  6274. replacement = "/";
  6275. sourceLength = 1;
  6276. } else if (t1 && char <= 93 && (B.List_2Vk[char >>> 4] & 1 << (char & 15)) !== 0) {
  6277. A._Uri__fail(component, index, "Invalid character");
  6278. sourceLength = _null;
  6279. replacement = sourceLength;
  6280. } else {
  6281. if ((char & 64512) === 55296) {
  6282. t2 = index + 1;
  6283. if (t2 < end) {
  6284. tail = B.JSString_methods.codeUnitAt$1(component, t2);
  6285. if ((tail & 64512) === 56320) {
  6286. char = (char & 1023) << 10 | tail & 1023 | 65536;
  6287. sourceLength = 2;
  6288. } else
  6289. sourceLength = 1;
  6290. } else
  6291. sourceLength = 1;
  6292. } else
  6293. sourceLength = 1;
  6294. replacement = A._Uri__escapeChar(char);
  6295. }
  6296. if (buffer == null) {
  6297. buffer = new A.StringBuffer("");
  6298. t2 = buffer;
  6299. } else
  6300. t2 = buffer;
  6301. t3 = t2._contents += B.JSString_methods.substring$2(component, sectionStart, index);
  6302. t2._contents = t3 + A.S(replacement);
  6303. index += sourceLength;
  6304. sectionStart = index;
  6305. }
  6306. }
  6307. if (buffer == null)
  6308. return _null;
  6309. if (sectionStart < end)
  6310. buffer._contents += B.JSString_methods.substring$2(component, sectionStart, end);
  6311. t1 = buffer._contents;
  6312. return t1.charCodeAt(0) == 0 ? t1 : t1;
  6313. },
  6314. _Uri__mayContainDotSegments(path) {
  6315. if (B.JSString_methods.startsWith$1(path, "."))
  6316. return true;
  6317. return B.JSString_methods.indexOf$1(path, "/.") !== -1;
  6318. },
  6319. _Uri__removeDotSegments(path) {
  6320. var output, t1, t2, appendSlash, _i, segment;
  6321. if (!A._Uri__mayContainDotSegments(path))
  6322. return path;
  6323. output = A._setArrayType([], type$.JSArray_String);
  6324. for (t1 = path.split("/"), t2 = t1.length, appendSlash = false, _i = 0; _i < t2; ++_i) {
  6325. segment = t1[_i];
  6326. if (J.$eq$(segment, "..")) {
  6327. if (output.length !== 0) {
  6328. output.pop();
  6329. if (output.length === 0)
  6330. output.push("");
  6331. }
  6332. appendSlash = true;
  6333. } else if ("." === segment)
  6334. appendSlash = true;
  6335. else {
  6336. output.push(segment);
  6337. appendSlash = false;
  6338. }
  6339. }
  6340. if (appendSlash)
  6341. output.push("");
  6342. return B.JSArray_methods.join$1(output, "/");
  6343. },
  6344. _Uri__normalizeRelativePath(path, allowScheme) {
  6345. var output, t1, t2, appendSlash, _i, segment;
  6346. if (!A._Uri__mayContainDotSegments(path))
  6347. return !allowScheme ? A._Uri__escapeScheme(path) : path;
  6348. output = A._setArrayType([], type$.JSArray_String);
  6349. for (t1 = path.split("/"), t2 = t1.length, appendSlash = false, _i = 0; _i < t2; ++_i) {
  6350. segment = t1[_i];
  6351. if (".." === segment)
  6352. if (output.length !== 0 && B.JSArray_methods.get$last(output) !== "..") {
  6353. output.pop();
  6354. appendSlash = true;
  6355. } else {
  6356. output.push("..");
  6357. appendSlash = false;
  6358. }
  6359. else if ("." === segment)
  6360. appendSlash = true;
  6361. else {
  6362. output.push(segment);
  6363. appendSlash = false;
  6364. }
  6365. }
  6366. t1 = output.length;
  6367. if (t1 !== 0)
  6368. t1 = t1 === 1 && output[0].length === 0;
  6369. else
  6370. t1 = true;
  6371. if (t1)
  6372. return "./";
  6373. if (appendSlash || B.JSArray_methods.get$last(output) === "..")
  6374. output.push("");
  6375. if (!allowScheme)
  6376. output[0] = A._Uri__escapeScheme(output[0]);
  6377. return B.JSArray_methods.join$1(output, "/");
  6378. },
  6379. _Uri__escapeScheme(path) {
  6380. var i, char,
  6381. t1 = path.length;
  6382. if (t1 >= 2 && A._Uri__isAlphabeticCharacter(B.JSString_methods._codeUnitAt$1(path, 0)))
  6383. for (i = 1; i < t1; ++i) {
  6384. char = B.JSString_methods._codeUnitAt$1(path, i);
  6385. if (char === 58)
  6386. return B.JSString_methods.substring$2(path, 0, i) + "%3A" + B.JSString_methods.substring$1(path, i + 1);
  6387. if (char > 127 || (B.List_JYB[char >>> 4] & 1 << (char & 15)) === 0)
  6388. break;
  6389. }
  6390. return path;
  6391. },
  6392. _Uri__packageNameEnd(uri, path) {
  6393. if (uri.isScheme$1("package") && uri._host == null)
  6394. return A._skipPackageNameChars(path, 0, path.length);
  6395. return -1;
  6396. },
  6397. _Uri__toWindowsFilePath(uri) {
  6398. var hasDriveLetter, t2, host,
  6399. segments = uri.get$pathSegments(),
  6400. t1 = segments.length;
  6401. if (t1 > 0 && J.get$length$asx(segments[0]) === 2 && J.codeUnitAt$1$s(segments[0], 1) === 58) {
  6402. A._Uri__checkWindowsDriveLetter(J.codeUnitAt$1$s(segments[0], 0), false);
  6403. A._Uri__checkWindowsPathReservedCharacters(segments, false, 1);
  6404. hasDriveLetter = true;
  6405. } else {
  6406. A._Uri__checkWindowsPathReservedCharacters(segments, false, 0);
  6407. hasDriveLetter = false;
  6408. }
  6409. t2 = uri.get$hasAbsolutePath() && !hasDriveLetter ? "" + "\\" : "";
  6410. if (uri.get$hasAuthority()) {
  6411. host = uri.get$host();
  6412. if (host.length !== 0)
  6413. t2 = t2 + "\\" + host + "\\";
  6414. }
  6415. t2 = A.StringBuffer__writeAll(t2, segments, "\\");
  6416. t1 = hasDriveLetter && t1 === 1 ? t2 + "\\" : t2;
  6417. return t1.charCodeAt(0) == 0 ? t1 : t1;
  6418. },
  6419. _Uri__hexCharPairToByte(s, pos) {
  6420. var byte, i, charCode;
  6421. for (byte = 0, i = 0; i < 2; ++i) {
  6422. charCode = B.JSString_methods._codeUnitAt$1(s, pos + i);
  6423. if (48 <= charCode && charCode <= 57)
  6424. byte = byte * 16 + charCode - 48;
  6425. else {
  6426. charCode |= 32;
  6427. if (97 <= charCode && charCode <= 102)
  6428. byte = byte * 16 + charCode - 87;
  6429. else
  6430. throw A.wrapException(A.ArgumentError$("Invalid URL encoding", null));
  6431. }
  6432. }
  6433. return byte;
  6434. },
  6435. _Uri__uriDecode(text, start, end, encoding, plusToSpace) {
  6436. var simple, codeUnit, t1, bytes,
  6437. i = start;
  6438. while (true) {
  6439. if (!(i < end)) {
  6440. simple = true;
  6441. break;
  6442. }
  6443. codeUnit = B.JSString_methods._codeUnitAt$1(text, i);
  6444. if (codeUnit <= 127)
  6445. if (codeUnit !== 37)
  6446. t1 = false;
  6447. else
  6448. t1 = true;
  6449. else
  6450. t1 = true;
  6451. if (t1) {
  6452. simple = false;
  6453. break;
  6454. }
  6455. ++i;
  6456. }
  6457. if (simple) {
  6458. if (B.C_Utf8Codec !== encoding)
  6459. t1 = false;
  6460. else
  6461. t1 = true;
  6462. if (t1)
  6463. return B.JSString_methods.substring$2(text, start, end);
  6464. else
  6465. bytes = new A.CodeUnits(B.JSString_methods.substring$2(text, start, end));
  6466. } else {
  6467. bytes = A._setArrayType([], type$.JSArray_int);
  6468. for (t1 = text.length, i = start; i < end; ++i) {
  6469. codeUnit = B.JSString_methods._codeUnitAt$1(text, i);
  6470. if (codeUnit > 127)
  6471. throw A.wrapException(A.ArgumentError$("Illegal percent encoding in URI", null));
  6472. if (codeUnit === 37) {
  6473. if (i + 3 > t1)
  6474. throw A.wrapException(A.ArgumentError$("Truncated URI", null));
  6475. bytes.push(A._Uri__hexCharPairToByte(text, i + 1));
  6476. i += 2;
  6477. } else
  6478. bytes.push(codeUnit);
  6479. }
  6480. }
  6481. return B.Utf8Decoder_false.convert$1(bytes);
  6482. },
  6483. _Uri__isAlphabeticCharacter(codeUnit) {
  6484. var lowerCase = codeUnit | 32;
  6485. return 97 <= lowerCase && lowerCase <= 122;
  6486. },
  6487. UriData__writeUri(mimeType, charsetName, parameters, buffer, indices) {
  6488. var t1, slashIndex;
  6489. if (mimeType != null)
  6490. t1 = 10 === mimeType.length && A._caseInsensitiveCompareStart("text/plain", mimeType, 0) >= 0;
  6491. else
  6492. t1 = true;
  6493. if (t1)
  6494. mimeType = "";
  6495. if (mimeType.length === 0 || mimeType === "application/octet-stream")
  6496. t1 = buffer._contents += mimeType;
  6497. else {
  6498. slashIndex = A.UriData__validateMimeType(mimeType);
  6499. if (slashIndex < 0)
  6500. throw A.wrapException(A.ArgumentError$value(mimeType, "mimeType", "Invalid MIME type"));
  6501. t1 = buffer._contents += A._Uri__uriEncode(B.List_qFt, B.JSString_methods.substring$2(mimeType, 0, slashIndex), B.C_Utf8Codec, false);
  6502. buffer._contents = t1 + "/";
  6503. t1 = buffer._contents += A._Uri__uriEncode(B.List_qFt, B.JSString_methods.substring$1(mimeType, slashIndex + 1), B.C_Utf8Codec, false);
  6504. }
  6505. if (charsetName != null) {
  6506. indices.push(t1.length);
  6507. indices.push(buffer._contents.length + 8);
  6508. buffer._contents += ";charset=";
  6509. buffer._contents += A._Uri__uriEncode(B.List_qFt, charsetName, B.C_Utf8Codec, false);
  6510. }
  6511. },
  6512. UriData__validateMimeType(mimeType) {
  6513. var t1, slashIndex, i;
  6514. for (t1 = mimeType.length, slashIndex = -1, i = 0; i < t1; ++i) {
  6515. if (B.JSString_methods._codeUnitAt$1(mimeType, i) !== 47)
  6516. continue;
  6517. if (slashIndex < 0) {
  6518. slashIndex = i;
  6519. continue;
  6520. }
  6521. return -1;
  6522. }
  6523. return slashIndex;
  6524. },
  6525. UriData__parse(text, start, sourceUri) {
  6526. var t1, i, slashIndex, char, equalsIndex, lastSeparator, t2, data,
  6527. _s17_ = "Invalid MIME type",
  6528. indices = A._setArrayType([start - 1], type$.JSArray_int);
  6529. for (t1 = text.length, i = start, slashIndex = -1, char = null; i < t1; ++i) {
  6530. char = B.JSString_methods._codeUnitAt$1(text, i);
  6531. if (char === 44 || char === 59)
  6532. break;
  6533. if (char === 47) {
  6534. if (slashIndex < 0) {
  6535. slashIndex = i;
  6536. continue;
  6537. }
  6538. throw A.wrapException(A.FormatException$(_s17_, text, i));
  6539. }
  6540. }
  6541. if (slashIndex < 0 && i > start)
  6542. throw A.wrapException(A.FormatException$(_s17_, text, i));
  6543. for (; char !== 44;) {
  6544. indices.push(i);
  6545. ++i;
  6546. for (equalsIndex = -1; i < t1; ++i) {
  6547. char = B.JSString_methods._codeUnitAt$1(text, i);
  6548. if (char === 61) {
  6549. if (equalsIndex < 0)
  6550. equalsIndex = i;
  6551. } else if (char === 59 || char === 44)
  6552. break;
  6553. }
  6554. if (equalsIndex >= 0)
  6555. indices.push(equalsIndex);
  6556. else {
  6557. lastSeparator = B.JSArray_methods.get$last(indices);
  6558. if (char !== 44 || i !== lastSeparator + 7 || !B.JSString_methods.startsWith$2(text, "base64", lastSeparator + 1))
  6559. throw A.wrapException(A.FormatException$("Expecting '='", text, i));
  6560. break;
  6561. }
  6562. }
  6563. indices.push(i);
  6564. t2 = i + 1;
  6565. if ((indices.length & 1) === 1)
  6566. text = B.C_Base64Codec.normalize$3(text, t2, t1);
  6567. else {
  6568. data = A._Uri__normalize(text, t2, t1, B.List_CVk, true, false);
  6569. if (data != null)
  6570. text = B.JSString_methods.replaceRange$3(text, t2, t1, data);
  6571. }
  6572. return new A.UriData(text, indices, sourceUri);
  6573. },
  6574. UriData__uriEncodeBytes(canonicalTable, bytes, buffer) {
  6575. var t1, byteOr, i, byte, t2, t3,
  6576. _s16_ = "0123456789ABCDEF";
  6577. for (t1 = J.getInterceptor$asx(bytes), byteOr = 0, i = 0; i < t1.get$length(bytes); ++i) {
  6578. byte = t1.$index(bytes, i);
  6579. byteOr |= byte;
  6580. t2 = byte < 128 && (canonicalTable[B.JSInt_methods._shrOtherPositive$1(byte, 4)] & 1 << (byte & 15)) !== 0;
  6581. t3 = buffer._contents;
  6582. if (t2)
  6583. buffer._contents = t3 + A.Primitives_stringFromCharCode(byte);
  6584. else {
  6585. t2 = t3 + A.Primitives_stringFromCharCode(37);
  6586. buffer._contents = t2;
  6587. t2 += A.Primitives_stringFromCharCode(B.JSString_methods._codeUnitAt$1(_s16_, B.JSInt_methods._shrOtherPositive$1(byte, 4)));
  6588. buffer._contents = t2;
  6589. buffer._contents = t2 + A.Primitives_stringFromCharCode(B.JSString_methods._codeUnitAt$1(_s16_, byte & 15));
  6590. }
  6591. }
  6592. if ((byteOr & 4294967040) >>> 0 !== 0)
  6593. for (i = 0; i < t1.get$length(bytes); ++i) {
  6594. byte = t1.$index(bytes, i);
  6595. if (byte < 0 || byte > 255)
  6596. throw A.wrapException(A.ArgumentError$value(byte, "non-byte value", null));
  6597. }
  6598. },
  6599. _createTables() {
  6600. var _i, t1, t2, t3, b,
  6601. _s77_ = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-._~!$&'()*+,;=",
  6602. _s1_ = ".", _s1_0 = ":", _s1_1 = "/", _s1_2 = "\\", _s1_3 = "?", _s1_4 = "#", _s2_ = "/\\",
  6603. tables = J.JSArray_JSArray$allocateGrowable(22, type$.Uint8List);
  6604. for (_i = 0; _i < 22; ++_i)
  6605. tables[_i] = new Uint8Array(96);
  6606. t1 = new A._createTables_build(tables);
  6607. t2 = new A._createTables_setChars();
  6608. t3 = new A._createTables_setRange();
  6609. b = t1.call$2(0, 225);
  6610. t2.call$3(b, _s77_, 1);
  6611. t2.call$3(b, _s1_, 14);
  6612. t2.call$3(b, _s1_0, 34);
  6613. t2.call$3(b, _s1_1, 3);
  6614. t2.call$3(b, _s1_2, 227);
  6615. t2.call$3(b, _s1_3, 172);
  6616. t2.call$3(b, _s1_4, 205);
  6617. b = t1.call$2(14, 225);
  6618. t2.call$3(b, _s77_, 1);
  6619. t2.call$3(b, _s1_, 15);
  6620. t2.call$3(b, _s1_0, 34);
  6621. t2.call$3(b, _s2_, 234);
  6622. t2.call$3(b, _s1_3, 172);
  6623. t2.call$3(b, _s1_4, 205);
  6624. b = t1.call$2(15, 225);
  6625. t2.call$3(b, _s77_, 1);
  6626. t2.call$3(b, "%", 225);
  6627. t2.call$3(b, _s1_0, 34);
  6628. t2.call$3(b, _s1_1, 9);
  6629. t2.call$3(b, _s1_2, 233);
  6630. t2.call$3(b, _s1_3, 172);
  6631. t2.call$3(b, _s1_4, 205);
  6632. b = t1.call$2(1, 225);
  6633. t2.call$3(b, _s77_, 1);
  6634. t2.call$3(b, _s1_0, 34);
  6635. t2.call$3(b, _s1_1, 10);
  6636. t2.call$3(b, _s1_2, 234);
  6637. t2.call$3(b, _s1_3, 172);
  6638. t2.call$3(b, _s1_4, 205);
  6639. b = t1.call$2(2, 235);
  6640. t2.call$3(b, _s77_, 139);
  6641. t2.call$3(b, _s1_1, 131);
  6642. t2.call$3(b, _s1_2, 131);
  6643. t2.call$3(b, _s1_, 146);
  6644. t2.call$3(b, _s1_3, 172);
  6645. t2.call$3(b, _s1_4, 205);
  6646. b = t1.call$2(3, 235);
  6647. t2.call$3(b, _s77_, 11);
  6648. t2.call$3(b, _s1_1, 68);
  6649. t2.call$3(b, _s1_2, 68);
  6650. t2.call$3(b, _s1_, 18);
  6651. t2.call$3(b, _s1_3, 172);
  6652. t2.call$3(b, _s1_4, 205);
  6653. b = t1.call$2(4, 229);
  6654. t2.call$3(b, _s77_, 5);
  6655. t3.call$3(b, "AZ", 229);
  6656. t2.call$3(b, _s1_0, 102);
  6657. t2.call$3(b, "@", 68);
  6658. t2.call$3(b, "[", 232);
  6659. t2.call$3(b, _s1_1, 138);
  6660. t2.call$3(b, _s1_2, 138);
  6661. t2.call$3(b, _s1_3, 172);
  6662. t2.call$3(b, _s1_4, 205);
  6663. b = t1.call$2(5, 229);
  6664. t2.call$3(b, _s77_, 5);
  6665. t3.call$3(b, "AZ", 229);
  6666. t2.call$3(b, _s1_0, 102);
  6667. t2.call$3(b, "@", 68);
  6668. t2.call$3(b, _s1_1, 138);
  6669. t2.call$3(b, _s1_2, 138);
  6670. t2.call$3(b, _s1_3, 172);
  6671. t2.call$3(b, _s1_4, 205);
  6672. b = t1.call$2(6, 231);
  6673. t3.call$3(b, "19", 7);
  6674. t2.call$3(b, "@", 68);
  6675. t2.call$3(b, _s1_1, 138);
  6676. t2.call$3(b, _s1_2, 138);
  6677. t2.call$3(b, _s1_3, 172);
  6678. t2.call$3(b, _s1_4, 205);
  6679. b = t1.call$2(7, 231);
  6680. t3.call$3(b, "09", 7);
  6681. t2.call$3(b, "@", 68);
  6682. t2.call$3(b, _s1_1, 138);
  6683. t2.call$3(b, _s1_2, 138);
  6684. t2.call$3(b, _s1_3, 172);
  6685. t2.call$3(b, _s1_4, 205);
  6686. t2.call$3(t1.call$2(8, 8), "]", 5);
  6687. b = t1.call$2(9, 235);
  6688. t2.call$3(b, _s77_, 11);
  6689. t2.call$3(b, _s1_, 16);
  6690. t2.call$3(b, _s2_, 234);
  6691. t2.call$3(b, _s1_3, 172);
  6692. t2.call$3(b, _s1_4, 205);
  6693. b = t1.call$2(16, 235);
  6694. t2.call$3(b, _s77_, 11);
  6695. t2.call$3(b, _s1_, 17);
  6696. t2.call$3(b, _s2_, 234);
  6697. t2.call$3(b, _s1_3, 172);
  6698. t2.call$3(b, _s1_4, 205);
  6699. b = t1.call$2(17, 235);
  6700. t2.call$3(b, _s77_, 11);
  6701. t2.call$3(b, _s1_1, 9);
  6702. t2.call$3(b, _s1_2, 233);
  6703. t2.call$3(b, _s1_3, 172);
  6704. t2.call$3(b, _s1_4, 205);
  6705. b = t1.call$2(10, 235);
  6706. t2.call$3(b, _s77_, 11);
  6707. t2.call$3(b, _s1_, 18);
  6708. t2.call$3(b, _s2_, 234);
  6709. t2.call$3(b, _s1_3, 172);
  6710. t2.call$3(b, _s1_4, 205);
  6711. b = t1.call$2(18, 235);
  6712. t2.call$3(b, _s77_, 11);
  6713. t2.call$3(b, _s1_, 19);
  6714. t2.call$3(b, _s2_, 234);
  6715. t2.call$3(b, _s1_3, 172);
  6716. t2.call$3(b, _s1_4, 205);
  6717. b = t1.call$2(19, 235);
  6718. t2.call$3(b, _s77_, 11);
  6719. t2.call$3(b, _s2_, 234);
  6720. t2.call$3(b, _s1_3, 172);
  6721. t2.call$3(b, _s1_4, 205);
  6722. b = t1.call$2(11, 235);
  6723. t2.call$3(b, _s77_, 11);
  6724. t2.call$3(b, _s1_1, 10);
  6725. t2.call$3(b, _s2_, 234);
  6726. t2.call$3(b, _s1_3, 172);
  6727. t2.call$3(b, _s1_4, 205);
  6728. b = t1.call$2(12, 236);
  6729. t2.call$3(b, _s77_, 12);
  6730. t2.call$3(b, _s1_3, 12);
  6731. t2.call$3(b, _s1_4, 205);
  6732. b = t1.call$2(13, 237);
  6733. t2.call$3(b, _s77_, 13);
  6734. t2.call$3(b, _s1_3, 13);
  6735. t3.call$3(t1.call$2(20, 245), "az", 21);
  6736. b = t1.call$2(21, 245);
  6737. t3.call$3(b, "az", 21);
  6738. t3.call$3(b, "09", 21);
  6739. t2.call$3(b, "+-.", 21);
  6740. return tables;
  6741. },
  6742. _scan(uri, start, end, state, indices) {
  6743. var i, table, char, transition,
  6744. tables = $.$get$_scannerTables();
  6745. for (i = start; i < end; ++i) {
  6746. table = tables[state];
  6747. char = B.JSString_methods._codeUnitAt$1(uri, i) ^ 96;
  6748. transition = table[char > 95 ? 31 : char];
  6749. state = transition & 31;
  6750. indices[transition >>> 5] = i;
  6751. }
  6752. return state;
  6753. },
  6754. _SimpleUri__packageNameEnd(uri) {
  6755. if (uri._schemeEnd === 7 && B.JSString_methods.startsWith$1(uri._uri, "package") && uri._hostStart <= 0)
  6756. return A._skipPackageNameChars(uri._uri, uri._pathStart, uri._queryStart);
  6757. return -1;
  6758. },
  6759. _skipPackageNameChars(source, start, end) {
  6760. var i, dots, char;
  6761. for (i = start, dots = 0; i < end; ++i) {
  6762. char = B.JSString_methods.codeUnitAt$1(source, i);
  6763. if (char === 47)
  6764. return dots !== 0 ? i : -1;
  6765. if (char === 37 || char === 58)
  6766. return -1;
  6767. dots |= char ^ 46;
  6768. }
  6769. return -1;
  6770. },
  6771. _caseInsensitiveCompareStart(prefix, string, start) {
  6772. var t1, result, i, prefixChar, stringChar, delta, lowerChar;
  6773. for (t1 = prefix.length, result = 0, i = 0; i < t1; ++i) {
  6774. prefixChar = B.JSString_methods._codeUnitAt$1(prefix, i);
  6775. stringChar = B.JSString_methods._codeUnitAt$1(string, start + i);
  6776. delta = prefixChar ^ stringChar;
  6777. if (delta !== 0) {
  6778. if (delta === 32) {
  6779. lowerChar = stringChar | delta;
  6780. if (97 <= lowerChar && lowerChar <= 122) {
  6781. result = 32;
  6782. continue;
  6783. }
  6784. }
  6785. return -1;
  6786. }
  6787. }
  6788. return result;
  6789. },
  6790. NoSuchMethodError_toString_closure: function NoSuchMethodError_toString_closure(t0, t1) {
  6791. this._box_0 = t0;
  6792. this.sb = t1;
  6793. },
  6794. DateTime: function DateTime(t0, t1) {
  6795. this._core$_value = t0;
  6796. this.isUtc = t1;
  6797. },
  6798. Duration: function Duration(t0) {
  6799. this._duration = t0;
  6800. },
  6801. _Enum: function _Enum() {
  6802. },
  6803. Error: function Error() {
  6804. },
  6805. AssertionError: function AssertionError(t0) {
  6806. this.message = t0;
  6807. },
  6808. TypeError: function TypeError() {
  6809. },
  6810. NullThrownError: function NullThrownError() {
  6811. },
  6812. ArgumentError: function ArgumentError(t0, t1, t2, t3) {
  6813. var _ = this;
  6814. _._hasValue = t0;
  6815. _.invalidValue = t1;
  6816. _.name = t2;
  6817. _.message = t3;
  6818. },
  6819. RangeError: function RangeError(t0, t1, t2, t3, t4, t5) {
  6820. var _ = this;
  6821. _.start = t0;
  6822. _.end = t1;
  6823. _._hasValue = t2;
  6824. _.invalidValue = t3;
  6825. _.name = t4;
  6826. _.message = t5;
  6827. },
  6828. IndexError: function IndexError(t0, t1, t2, t3, t4) {
  6829. var _ = this;
  6830. _.length = t0;
  6831. _._hasValue = t1;
  6832. _.invalidValue = t2;
  6833. _.name = t3;
  6834. _.message = t4;
  6835. },
  6836. NoSuchMethodError: function NoSuchMethodError(t0, t1, t2, t3) {
  6837. var _ = this;
  6838. _._core$_receiver = t0;
  6839. _._memberName = t1;
  6840. _._core$_arguments = t2;
  6841. _._namedArguments = t3;
  6842. },
  6843. UnsupportedError: function UnsupportedError(t0) {
  6844. this.message = t0;
  6845. },
  6846. UnimplementedError: function UnimplementedError(t0) {
  6847. this.message = t0;
  6848. },
  6849. StateError: function StateError(t0) {
  6850. this.message = t0;
  6851. },
  6852. ConcurrentModificationError: function ConcurrentModificationError(t0) {
  6853. this.modifiedObject = t0;
  6854. },
  6855. OutOfMemoryError: function OutOfMemoryError() {
  6856. },
  6857. StackOverflowError: function StackOverflowError() {
  6858. },
  6859. CyclicInitializationError: function CyclicInitializationError(t0) {
  6860. this.variableName = t0;
  6861. },
  6862. _Exception: function _Exception(t0) {
  6863. this.message = t0;
  6864. },
  6865. FormatException: function FormatException(t0, t1, t2) {
  6866. this.message = t0;
  6867. this.source = t1;
  6868. this.offset = t2;
  6869. },
  6870. Iterable: function Iterable() {
  6871. },
  6872. _GeneratorIterable: function _GeneratorIterable(t0, t1, t2) {
  6873. this.length = t0;
  6874. this._generator = t1;
  6875. this.$ti = t2;
  6876. },
  6877. Iterator: function Iterator() {
  6878. },
  6879. MapEntry: function MapEntry(t0, t1, t2) {
  6880. this.key = t0;
  6881. this.value = t1;
  6882. this.$ti = t2;
  6883. },
  6884. Null: function Null() {
  6885. },
  6886. Object: function Object() {
  6887. },
  6888. _StringStackTrace: function _StringStackTrace(t0) {
  6889. this._stackTrace = t0;
  6890. },
  6891. Runes: function Runes(t0) {
  6892. this.string = t0;
  6893. },
  6894. RuneIterator: function RuneIterator(t0) {
  6895. var _ = this;
  6896. _.string = t0;
  6897. _._nextPosition = _._position = 0;
  6898. _._currentCodePoint = -1;
  6899. },
  6900. StringBuffer: function StringBuffer(t0) {
  6901. this._contents = t0;
  6902. },
  6903. Uri__parseIPv4Address_error: function Uri__parseIPv4Address_error(t0) {
  6904. this.host = t0;
  6905. },
  6906. Uri_parseIPv6Address_error: function Uri_parseIPv6Address_error(t0) {
  6907. this.host = t0;
  6908. },
  6909. Uri_parseIPv6Address_parseHex: function Uri_parseIPv6Address_parseHex(t0, t1) {
  6910. this.error = t0;
  6911. this.host = t1;
  6912. },
  6913. _Uri: function _Uri(t0, t1, t2, t3, t4, t5, t6) {
  6914. var _ = this;
  6915. _.scheme = t0;
  6916. _._userInfo = t1;
  6917. _._host = t2;
  6918. _._port = t3;
  6919. _.path = t4;
  6920. _._query = t5;
  6921. _._fragment = t6;
  6922. _.___Uri_hashCode_FI = _.___Uri_pathSegments_FI = _.___Uri__text_FI = $;
  6923. },
  6924. _Uri__makePath_closure: function _Uri__makePath_closure() {
  6925. },
  6926. UriData: function UriData(t0, t1, t2) {
  6927. this._text = t0;
  6928. this._separatorIndices = t1;
  6929. this._uriCache = t2;
  6930. },
  6931. _createTables_build: function _createTables_build(t0) {
  6932. this.tables = t0;
  6933. },
  6934. _createTables_setChars: function _createTables_setChars() {
  6935. },
  6936. _createTables_setRange: function _createTables_setRange() {
  6937. },
  6938. _SimpleUri: function _SimpleUri(t0, t1, t2, t3, t4, t5, t6, t7) {
  6939. var _ = this;
  6940. _._uri = t0;
  6941. _._schemeEnd = t1;
  6942. _._hostStart = t2;
  6943. _._portStart = t3;
  6944. _._pathStart = t4;
  6945. _._queryStart = t5;
  6946. _._fragmentStart = t6;
  6947. _._schemeCache = t7;
  6948. _._hashCodeCache = null;
  6949. },
  6950. _DataUri: function _DataUri(t0, t1, t2, t3, t4, t5, t6) {
  6951. var _ = this;
  6952. _.scheme = t0;
  6953. _._userInfo = t1;
  6954. _._host = t2;
  6955. _._port = t3;
  6956. _.path = t4;
  6957. _._query = t5;
  6958. _._fragment = t6;
  6959. _.___Uri_hashCode_FI = _.___Uri_pathSegments_FI = _.___Uri__text_FI = $;
  6960. },
  6961. Expando: function Expando(t0) {
  6962. this._jsWeakMap = t0;
  6963. },
  6964. _convertDataTree(data) {
  6965. var t1 = new A._convertDataTree__convert(new A._IdentityHashMap(type$._IdentityHashMap_dynamic_dynamic)).call$1(data);
  6966. t1.toString;
  6967. return t1;
  6968. },
  6969. callConstructor(constr, $arguments) {
  6970. var args, factoryFunction;
  6971. if ($arguments instanceof Array)
  6972. switch ($arguments.length) {
  6973. case 0:
  6974. return new constr();
  6975. case 1:
  6976. return new constr($arguments[0]);
  6977. case 2:
  6978. return new constr($arguments[0], $arguments[1]);
  6979. case 3:
  6980. return new constr($arguments[0], $arguments[1], $arguments[2]);
  6981. case 4:
  6982. return new constr($arguments[0], $arguments[1], $arguments[2], $arguments[3]);
  6983. }
  6984. args = [null];
  6985. B.JSArray_methods.addAll$1(args, $arguments);
  6986. factoryFunction = constr.bind.apply(constr, args);
  6987. String(factoryFunction);
  6988. return new factoryFunction();
  6989. },
  6990. _convertDataTree__convert: function _convertDataTree__convert(t0) {
  6991. this._convertedObjects = t0;
  6992. },
  6993. max(a, b) {
  6994. return Math.max(A.checkNum(a), A.checkNum(b));
  6995. },
  6996. pow(x, exponent) {
  6997. return Math.pow(x, exponent);
  6998. },
  6999. Random_Random() {
  7000. return B.C__JSRandom;
  7001. },
  7002. _JSRandom: function _JSRandom() {
  7003. },
  7004. ArgParser: function ArgParser(t0, t1, t2, t3, t4, t5, t6) {
  7005. var _ = this;
  7006. _._arg_parser$_options = t0;
  7007. _._aliases = t1;
  7008. _.options = t2;
  7009. _.commands = t3;
  7010. _._optionsAndSeparators = t4;
  7011. _.allowTrailingOptions = t5;
  7012. _.usageLineLength = t6;
  7013. },
  7014. ArgParser__addOption_closure: function ArgParser__addOption_closure(t0) {
  7015. this.$this = t0;
  7016. },
  7017. ArgParserException$(message, commands) {
  7018. return new A.ArgParserException(commands == null ? B.List_empty : A.List_List$unmodifiable(commands, type$.String), message, null, null);
  7019. },
  7020. ArgParserException: function ArgParserException(t0, t1, t2, t3) {
  7021. var _ = this;
  7022. _.commands = t0;
  7023. _.message = t1;
  7024. _.source = t2;
  7025. _.offset = t3;
  7026. },
  7027. ArgResults: function ArgResults(t0, t1, t2, t3) {
  7028. var _ = this;
  7029. _._parser = t0;
  7030. _._parsed = t1;
  7031. _.name = t2;
  7032. _.rest = t3;
  7033. },
  7034. Option: function Option(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12) {
  7035. var _ = this;
  7036. _.name = t0;
  7037. _.abbr = t1;
  7038. _.help = t2;
  7039. _.valueHelp = t3;
  7040. _.allowed = t4;
  7041. _.allowedHelp = t5;
  7042. _.defaultsTo = t6;
  7043. _.negatable = t7;
  7044. _.callback = t8;
  7045. _.type = t9;
  7046. _.splitCommas = t10;
  7047. _.mandatory = t11;
  7048. _.hide = t12;
  7049. },
  7050. OptionType: function OptionType(t0) {
  7051. this.name = t0;
  7052. },
  7053. Parser$(_commandName, _grammar, _args, _parent, rest) {
  7054. var t1 = A._setArrayType([], type$.JSArray_String);
  7055. if (rest != null)
  7056. B.JSArray_methods.addAll$1(t1, rest);
  7057. return new A.Parser0(_commandName, _parent, _grammar, _args, t1, A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.dynamic));
  7058. },
  7059. _isLetterOrDigit(codeUnit) {
  7060. var t1;
  7061. if (!(codeUnit >= 65 && codeUnit <= 90))
  7062. if (!(codeUnit >= 97 && codeUnit <= 122))
  7063. t1 = codeUnit >= 48 && codeUnit <= 57;
  7064. else
  7065. t1 = true;
  7066. else
  7067. t1 = true;
  7068. return t1;
  7069. },
  7070. Parser0: function Parser0(t0, t1, t2, t3, t4, t5) {
  7071. var _ = this;
  7072. _._commandName = t0;
  7073. _._parser$_parent = t1;
  7074. _._grammar = t2;
  7075. _._args = t3;
  7076. _._parser$_rest = t4;
  7077. _._results = t5;
  7078. },
  7079. Parser_parse_closure: function Parser_parse_closure(t0) {
  7080. this.$this = t0;
  7081. },
  7082. Parser__setOption_closure: function Parser__setOption_closure() {
  7083. },
  7084. _Usage: function _Usage(t0, t1, t2) {
  7085. var _ = this;
  7086. _._usage$_optionsAndSeparators = t0;
  7087. _._buffer = t1;
  7088. _._currentColumn = 0;
  7089. _.___Usage__columnWidths_FI = $;
  7090. _._newlinesNeeded = 0;
  7091. _.lineLength = t2;
  7092. },
  7093. _Usage__writeOption_closure: function _Usage__writeOption_closure() {
  7094. },
  7095. _Usage__buildAllowedList_closure: function _Usage__buildAllowedList_closure(t0) {
  7096. this.option = t0;
  7097. },
  7098. ErrorResult: function ErrorResult(t0, t1) {
  7099. this.error = t0;
  7100. this.stackTrace = t1;
  7101. },
  7102. ValueResult: function ValueResult(t0, t1) {
  7103. this.value = t0;
  7104. this.$ti = t1;
  7105. },
  7106. StreamCompleter: function StreamCompleter(t0, t1) {
  7107. this._stream_completer$_stream = t0;
  7108. this.$ti = t1;
  7109. },
  7110. _CompleterStream: function _CompleterStream(t0) {
  7111. this._sourceStream = this._stream_completer$_controller = null;
  7112. this.$ti = t0;
  7113. },
  7114. StreamGroup: function StreamGroup(t0, t1, t2) {
  7115. var _ = this;
  7116. _.__StreamGroup__controller_A = $;
  7117. _._closed = false;
  7118. _._stream_group$_state = t0;
  7119. _._subscriptions = t1;
  7120. _.$ti = t2;
  7121. },
  7122. StreamGroup_add_closure: function StreamGroup_add_closure() {
  7123. },
  7124. StreamGroup_add_closure0: function StreamGroup_add_closure0(t0, t1) {
  7125. this.$this = t0;
  7126. this.stream = t1;
  7127. },
  7128. StreamGroup__onListen_closure: function StreamGroup__onListen_closure() {
  7129. },
  7130. StreamGroup__onCancel_closure: function StreamGroup__onCancel_closure(t0) {
  7131. this.$this = t0;
  7132. },
  7133. StreamGroup__listenToStream_closure: function StreamGroup__listenToStream_closure(t0, t1) {
  7134. this.$this = t0;
  7135. this.stream = t1;
  7136. },
  7137. _StreamGroupState: function _StreamGroupState(t0) {
  7138. this.name = t0;
  7139. },
  7140. StreamQueue: function StreamQueue(t0, t1, t2, t3) {
  7141. var _ = this;
  7142. _._stream_queue$_source = t0;
  7143. _._stream_queue$_subscription = null;
  7144. _._isDone = false;
  7145. _._eventsReceived = 0;
  7146. _._eventQueue = t1;
  7147. _._requestQueue = t2;
  7148. _.$ti = t3;
  7149. },
  7150. StreamQueue__ensureListening_closure: function StreamQueue__ensureListening_closure(t0) {
  7151. this.$this = t0;
  7152. },
  7153. StreamQueue__ensureListening_closure1: function StreamQueue__ensureListening_closure1(t0) {
  7154. this.$this = t0;
  7155. },
  7156. StreamQueue__ensureListening_closure0: function StreamQueue__ensureListening_closure0(t0) {
  7157. this.$this = t0;
  7158. },
  7159. _NextRequest: function _NextRequest(t0, t1) {
  7160. this._completer = t0;
  7161. this.$ti = t1;
  7162. },
  7163. Repl: function Repl(t0, t1, t2, t3) {
  7164. var _ = this;
  7165. _.prompt = t0;
  7166. _.continuation = t1;
  7167. _.validator = t2;
  7168. _.__Repl__adapter_A = $;
  7169. _.history = t3;
  7170. },
  7171. alwaysValid_closure: function alwaysValid_closure() {
  7172. },
  7173. ReplAdapter: function ReplAdapter(t0) {
  7174. this.repl = t0;
  7175. this.rl = null;
  7176. },
  7177. ReplAdapter_runAsync_closure: function ReplAdapter_runAsync_closure(t0, t1, t2, t3) {
  7178. var _ = this;
  7179. _._box_0 = t0;
  7180. _.$this = t1;
  7181. _.rl = t2;
  7182. _.runController = t3;
  7183. },
  7184. ReplAdapter_runAsync__closure: function ReplAdapter_runAsync__closure(t0) {
  7185. this.lineController = t0;
  7186. },
  7187. Stdin: function Stdin() {
  7188. },
  7189. Stdout: function Stdout() {
  7190. },
  7191. ReadlineModule: function ReadlineModule() {
  7192. },
  7193. ReadlineOptions: function ReadlineOptions() {
  7194. },
  7195. ReadlineInterface: function ReadlineInterface() {
  7196. },
  7197. EmptyUnmodifiableSet: function EmptyUnmodifiableSet(t0) {
  7198. this.$ti = t0;
  7199. },
  7200. _EmptyUnmodifiableSet_IterableBase_UnmodifiableSetMixin: function _EmptyUnmodifiableSet_IterableBase_UnmodifiableSetMixin() {
  7201. },
  7202. DefaultEquality: function DefaultEquality() {
  7203. },
  7204. IterableEquality: function IterableEquality() {
  7205. },
  7206. ListEquality: function ListEquality() {
  7207. },
  7208. _MapEntry: function _MapEntry(t0, t1, t2) {
  7209. this.equality = t0;
  7210. this.key = t1;
  7211. this.value = t2;
  7212. },
  7213. MapEquality: function MapEquality() {
  7214. },
  7215. QueueList$(initialCapacity, $E) {
  7216. return new A.QueueList(A.List_List$filled(A.QueueList__computeInitialCapacity(initialCapacity), null, false, $E._eval$1("0?")), 0, 0, $E._eval$1("QueueList<0>"));
  7217. },
  7218. QueueList_QueueList$from(source, $E) {
  7219. var $length, queue, t1;
  7220. if (type$.List_dynamic._is(source)) {
  7221. $length = J.get$length$asx(source);
  7222. queue = A.QueueList$($length + 1, $E);
  7223. J.setRange$4$ax(queue._table, 0, $length, source, 0);
  7224. queue._tail = $length;
  7225. return queue;
  7226. } else {
  7227. t1 = A.QueueList$(null, $E);
  7228. t1.addAll$1(0, source);
  7229. return t1;
  7230. }
  7231. },
  7232. QueueList__computeInitialCapacity(initialCapacity) {
  7233. if (initialCapacity == null || initialCapacity < 8)
  7234. return 8;
  7235. ++initialCapacity;
  7236. if ((initialCapacity & initialCapacity - 1) >>> 0 === 0)
  7237. return initialCapacity;
  7238. return A.QueueList__nextPowerOf2(initialCapacity);
  7239. },
  7240. QueueList__nextPowerOf2(number) {
  7241. var nextNumber;
  7242. number = (number << 1 >>> 0) - 1;
  7243. for (; true; number = nextNumber) {
  7244. nextNumber = (number & number - 1) >>> 0;
  7245. if (nextNumber === 0)
  7246. return number;
  7247. }
  7248. },
  7249. QueueList: function QueueList(t0, t1, t2, t3) {
  7250. var _ = this;
  7251. _._table = t0;
  7252. _._head = t1;
  7253. _._tail = t2;
  7254. _.$ti = t3;
  7255. },
  7256. _CastQueueList: function _CastQueueList(t0, t1, t2, t3, t4) {
  7257. var _ = this;
  7258. _._queue_list$_delegate = t0;
  7259. _._table = t1;
  7260. _._head = t2;
  7261. _._tail = t3;
  7262. _.$ti = t4;
  7263. },
  7264. _QueueList_Object_ListMixin: function _QueueList_Object_ListMixin() {
  7265. },
  7266. UnmodifiableSetMixin__throw() {
  7267. throw A.wrapException(A.UnsupportedError$("Cannot modify an unmodifiable Set"));
  7268. },
  7269. UnmodifiableSetView: function UnmodifiableSetView(t0, t1) {
  7270. this._base = t0;
  7271. this.$ti = t1;
  7272. },
  7273. UnmodifiableSetMixin: function UnmodifiableSetMixin() {
  7274. },
  7275. _UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin: function _UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin() {
  7276. },
  7277. _DelegatingIterableBase: function _DelegatingIterableBase() {
  7278. },
  7279. DelegatingSet: function DelegatingSet(t0, t1) {
  7280. this._base = t0;
  7281. this.$ti = t1;
  7282. },
  7283. MapKeySet: function MapKeySet(t0, t1) {
  7284. this._baseMap = t0;
  7285. this.$ti = t1;
  7286. },
  7287. MapKeySet_difference_closure: function MapKeySet_difference_closure(t0, t1) {
  7288. this.$this = t0;
  7289. this.other = t1;
  7290. },
  7291. _MapKeySet__DelegatingIterableBase_UnmodifiableSetMixin: function _MapKeySet__DelegatingIterableBase_UnmodifiableSetMixin() {
  7292. },
  7293. BufferModule: function BufferModule() {
  7294. },
  7295. BufferConstants: function BufferConstants() {
  7296. },
  7297. Buffer: function Buffer() {
  7298. },
  7299. ConsoleModule: function ConsoleModule() {
  7300. },
  7301. Console: function Console() {
  7302. },
  7303. EventEmitter: function EventEmitter() {
  7304. },
  7305. fs() {
  7306. var t1 = $._fs;
  7307. return t1 == null ? $._fs = self.fs : t1;
  7308. },
  7309. FS: function FS() {
  7310. },
  7311. FSConstants: function FSConstants() {
  7312. },
  7313. FSWatcher: function FSWatcher() {
  7314. },
  7315. ReadStream: function ReadStream() {
  7316. },
  7317. ReadStreamOptions: function ReadStreamOptions() {
  7318. },
  7319. WriteStream: function WriteStream() {
  7320. },
  7321. WriteStreamOptions: function WriteStreamOptions() {
  7322. },
  7323. FileOptions: function FileOptions() {
  7324. },
  7325. StatOptions: function StatOptions() {
  7326. },
  7327. MkdirOptions: function MkdirOptions() {
  7328. },
  7329. RmdirOptions: function RmdirOptions() {
  7330. },
  7331. WatchOptions: function WatchOptions() {
  7332. },
  7333. WatchFileOptions: function WatchFileOptions() {
  7334. },
  7335. Stats: function Stats() {
  7336. },
  7337. Promise: function Promise() {
  7338. },
  7339. Date: function Date() {
  7340. },
  7341. JsError: function JsError() {
  7342. },
  7343. Atomics: function Atomics() {
  7344. },
  7345. Modules: function Modules() {
  7346. },
  7347. Module1: function Module1() {
  7348. },
  7349. Net: function Net() {
  7350. },
  7351. Socket: function Socket() {
  7352. },
  7353. NetAddress: function NetAddress() {
  7354. },
  7355. NetServer: function NetServer() {
  7356. },
  7357. NodeJsError: function NodeJsError() {
  7358. },
  7359. JsAssertionError: function JsAssertionError() {
  7360. },
  7361. JsRangeError: function JsRangeError() {
  7362. },
  7363. JsReferenceError: function JsReferenceError() {
  7364. },
  7365. JsSyntaxError: function JsSyntaxError() {
  7366. },
  7367. JsTypeError: function JsTypeError() {
  7368. },
  7369. JsSystemError: function JsSystemError() {
  7370. },
  7371. Process: function Process() {
  7372. },
  7373. CPUUsage: function CPUUsage() {
  7374. },
  7375. Release: function Release() {
  7376. },
  7377. StreamModule: function StreamModule() {
  7378. },
  7379. Readable: function Readable() {
  7380. },
  7381. Writable: function Writable() {
  7382. },
  7383. Duplex: function Duplex() {
  7384. },
  7385. Transform: function Transform() {
  7386. },
  7387. WritableOptions: function WritableOptions() {
  7388. },
  7389. ReadableOptions: function ReadableOptions() {
  7390. },
  7391. Immediate: function Immediate() {
  7392. },
  7393. Timeout: function Timeout() {
  7394. },
  7395. TTY: function TTY() {
  7396. },
  7397. TTYReadStream: function TTYReadStream() {
  7398. },
  7399. TTYWriteStream: function TTYWriteStream() {
  7400. },
  7401. jsify(dartObject) {
  7402. if (A._isBasicType(dartObject))
  7403. return dartObject;
  7404. return A._convertDataTree(dartObject);
  7405. },
  7406. _isBasicType(value) {
  7407. var t1 = false;
  7408. if (t1)
  7409. return true;
  7410. return false;
  7411. },
  7412. promiseToFuture(promise, $T) {
  7413. var t1 = new A._Future($.Zone__current, $T._eval$1("_Future<0>")),
  7414. completer = new A._SyncCompleter(t1, $T._eval$1("_SyncCompleter<0>"));
  7415. J.then$2$x(promise, A.allowInterop(new A.promiseToFuture_closure(completer)), A.allowInterop(new A.promiseToFuture_closure0(completer)));
  7416. return t1;
  7417. },
  7418. futureToPromise(future, $T) {
  7419. return new self.Promise(A.allowInterop(new A.futureToPromise_closure(future, $T)));
  7420. },
  7421. Util: function Util() {
  7422. },
  7423. promiseToFuture_closure: function promiseToFuture_closure(t0) {
  7424. this.completer = t0;
  7425. },
  7426. promiseToFuture_closure0: function promiseToFuture_closure0(t0) {
  7427. this.completer = t0;
  7428. },
  7429. futureToPromise_closure: function futureToPromise_closure(t0, t1) {
  7430. this.future = t0;
  7431. this.T = t1;
  7432. },
  7433. futureToPromise__closure: function futureToPromise__closure(t0, t1) {
  7434. this.resolve = t0;
  7435. this.T = t1;
  7436. },
  7437. Context_Context(style) {
  7438. var current = style == null ? A.current() : ".";
  7439. if (style == null)
  7440. style = $.$get$Style_platform();
  7441. return new A.Context(type$.InternalStyle._as(style), current);
  7442. },
  7443. _parseUri(uri) {
  7444. if (typeof uri == "string")
  7445. return A.Uri_parse(uri);
  7446. if (type$.Uri._is(uri))
  7447. return uri;
  7448. throw A.wrapException(A.ArgumentError$value(uri, "uri", "Value must be a String or a Uri"));
  7449. },
  7450. _validateArgList(method, args) {
  7451. var numArgs, i, numArgs0, message, t1, t2, t3, t4;
  7452. for (numArgs = args.length, i = 1; i < numArgs; ++i) {
  7453. if (args[i] == null || args[i - 1] != null)
  7454. continue;
  7455. for (; numArgs >= 1; numArgs = numArgs0) {
  7456. numArgs0 = numArgs - 1;
  7457. if (args[numArgs0] != null)
  7458. break;
  7459. }
  7460. message = new A.StringBuffer("");
  7461. t1 = "" + (method + "(");
  7462. message._contents = t1;
  7463. t2 = A._arrayInstanceType(args);
  7464. t3 = t2._eval$1("SubListIterable<1>");
  7465. t4 = new A.SubListIterable(args, 0, numArgs, t3);
  7466. t4.SubListIterable$3(args, 0, numArgs, t2._precomputed1);
  7467. t3 = t1 + new A.MappedListIterable(t4, new A._validateArgList_closure(), t3._eval$1("MappedListIterable<ListIterable.E,String>")).join$1(0, ", ");
  7468. message._contents = t3;
  7469. message._contents = t3 + ("): part " + (i - 1) + " was null, but part " + i + " was not.");
  7470. throw A.wrapException(A.ArgumentError$(message.toString$0(0), null));
  7471. }
  7472. },
  7473. Context: function Context(t0, t1) {
  7474. this.style = t0;
  7475. this._context$_current = t1;
  7476. },
  7477. Context_joinAll_closure: function Context_joinAll_closure() {
  7478. },
  7479. Context_split_closure: function Context_split_closure() {
  7480. },
  7481. _validateArgList_closure: function _validateArgList_closure() {
  7482. },
  7483. _PathDirection: function _PathDirection(t0) {
  7484. this.name = t0;
  7485. },
  7486. _PathRelation: function _PathRelation(t0) {
  7487. this.name = t0;
  7488. },
  7489. InternalStyle: function InternalStyle() {
  7490. },
  7491. ParsedPath_ParsedPath$parse(path, style) {
  7492. var t1, parts, separators, start, i,
  7493. root = style.getRoot$1(path),
  7494. isRootRelative = style.isRootRelative$1(path);
  7495. if (root != null)
  7496. path = B.JSString_methods.substring$1(path, root.length);
  7497. t1 = type$.JSArray_String;
  7498. parts = A._setArrayType([], t1);
  7499. separators = A._setArrayType([], t1);
  7500. t1 = path.length;
  7501. if (t1 !== 0 && style.isSeparator$1(B.JSString_methods._codeUnitAt$1(path, 0))) {
  7502. separators.push(path[0]);
  7503. start = 1;
  7504. } else {
  7505. separators.push("");
  7506. start = 0;
  7507. }
  7508. for (i = start; i < t1; ++i)
  7509. if (style.isSeparator$1(B.JSString_methods._codeUnitAt$1(path, i))) {
  7510. parts.push(B.JSString_methods.substring$2(path, start, i));
  7511. separators.push(path[i]);
  7512. start = i + 1;
  7513. }
  7514. if (start < t1) {
  7515. parts.push(B.JSString_methods.substring$1(path, start));
  7516. separators.push("");
  7517. }
  7518. return new A.ParsedPath(style, root, isRootRelative, parts, separators);
  7519. },
  7520. ParsedPath: function ParsedPath(t0, t1, t2, t3, t4) {
  7521. var _ = this;
  7522. _.style = t0;
  7523. _.root = t1;
  7524. _.isRootRelative = t2;
  7525. _.parts = t3;
  7526. _.separators = t4;
  7527. },
  7528. ParsedPath__splitExtension_closure: function ParsedPath__splitExtension_closure() {
  7529. },
  7530. ParsedPath__splitExtension_closure0: function ParsedPath__splitExtension_closure0() {
  7531. },
  7532. PathException$(message) {
  7533. return new A.PathException(message);
  7534. },
  7535. PathException: function PathException(t0) {
  7536. this.message = t0;
  7537. },
  7538. PathMap__create(context, $V) {
  7539. var t1 = {};
  7540. t1.context = context;
  7541. t1.context = $.$get$context();
  7542. return A.LinkedHashMap_LinkedHashMap(new A.PathMap__create_closure(t1), new A.PathMap__create_closure0(t1), new A.PathMap__create_closure1(), type$.nullable_String, $V);
  7543. },
  7544. PathMap: function PathMap(t0, t1) {
  7545. this._map = t0;
  7546. this.$ti = t1;
  7547. },
  7548. PathMap__create_closure: function PathMap__create_closure(t0) {
  7549. this._box_0 = t0;
  7550. },
  7551. PathMap__create_closure0: function PathMap__create_closure0(t0) {
  7552. this._box_0 = t0;
  7553. },
  7554. PathMap__create_closure1: function PathMap__create_closure1() {
  7555. },
  7556. Style__getPlatformStyle() {
  7557. if (A.Uri_base().get$scheme() !== "file")
  7558. return $.$get$Style_url();
  7559. var t1 = A.Uri_base();
  7560. if (!B.JSString_methods.endsWith$1(t1.get$path(t1), "/"))
  7561. return $.$get$Style_url();
  7562. if (A._Uri__Uri(null, "a/b", null, null).toFilePath$0() === "a\\b")
  7563. return $.$get$Style_windows();
  7564. return $.$get$Style_posix();
  7565. },
  7566. Style: function Style() {
  7567. },
  7568. PosixStyle: function PosixStyle(t0, t1, t2) {
  7569. this.separatorPattern = t0;
  7570. this.needsSeparatorPattern = t1;
  7571. this.rootPattern = t2;
  7572. },
  7573. UrlStyle: function UrlStyle(t0, t1, t2, t3) {
  7574. var _ = this;
  7575. _.separatorPattern = t0;
  7576. _.needsSeparatorPattern = t1;
  7577. _.rootPattern = t2;
  7578. _.relativeRootPattern = t3;
  7579. },
  7580. WindowsStyle: function WindowsStyle(t0, t1, t2, t3) {
  7581. var _ = this;
  7582. _.separatorPattern = t0;
  7583. _.needsSeparatorPattern = t1;
  7584. _.rootPattern = t2;
  7585. _.relativeRootPattern = t3;
  7586. },
  7587. WindowsStyle_absolutePathToUri_closure: function WindowsStyle_absolutePathToUri_closure() {
  7588. },
  7589. CssMediaQuery$type(type, conditions, modifier) {
  7590. return new A.CssMediaQuery(modifier, type, true, conditions == null ? B.List_empty : A.List_List$unmodifiable(conditions, type$.String));
  7591. },
  7592. CssMediaQuery$condition(conditions, conjunction) {
  7593. var t1 = A.List_List$unmodifiable(conditions, type$.String);
  7594. if (t1.length > 1 && conjunction == null)
  7595. A.throwExpression(A.ArgumentError$(string$.If_con, null));
  7596. return new A.CssMediaQuery(null, null, conjunction !== false, t1);
  7597. },
  7598. CssMediaQuery: function CssMediaQuery(t0, t1, t2, t3) {
  7599. var _ = this;
  7600. _.modifier = t0;
  7601. _.type = t1;
  7602. _.conjunction = t2;
  7603. _.conditions = t3;
  7604. },
  7605. _SingletonCssMediaQueryMergeResult: function _SingletonCssMediaQueryMergeResult(t0) {
  7606. this._media_query$_name = t0;
  7607. },
  7608. MediaQuerySuccessfulMergeResult: function MediaQuerySuccessfulMergeResult(t0) {
  7609. this.query = t0;
  7610. },
  7611. ModifiableCssAtRule$($name, span, childless, value) {
  7612. var t1 = A._setArrayType([], type$.JSArray_ModifiableCssNode);
  7613. return new A.ModifiableCssAtRule($name, value, childless, span, new A.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode), t1);
  7614. },
  7615. ModifiableCssAtRule: function ModifiableCssAtRule(t0, t1, t2, t3, t4, t5) {
  7616. var _ = this;
  7617. _.name = t0;
  7618. _.value = t1;
  7619. _.isChildless = t2;
  7620. _.span = t3;
  7621. _.children = t4;
  7622. _._children = t5;
  7623. _._indexInParent = _._parent = null;
  7624. _.isGroupEnd = false;
  7625. },
  7626. ModifiableCssComment: function ModifiableCssComment(t0, t1) {
  7627. var _ = this;
  7628. _.text = t0;
  7629. _.span = t1;
  7630. _._indexInParent = _._parent = null;
  7631. _.isGroupEnd = false;
  7632. },
  7633. ModifiableCssDeclaration$($name, value, span, parsedAsCustomProperty, valueSpanForMap) {
  7634. var t1 = valueSpanForMap == null ? value.get$span(value) : valueSpanForMap;
  7635. if (parsedAsCustomProperty)
  7636. if (!J.startsWith$1$s($name.get$value($name), "--"))
  7637. A.throwExpression(A.ArgumentError$(string$.parsed, null));
  7638. else if (!(value.get$value(value) instanceof A.SassString))
  7639. A.throwExpression(A.ArgumentError$(string$.If_par + value.toString$0(0) + "` of type " + A.getRuntimeType(value.get$value(value)).toString$0(0) + ").", null));
  7640. return new A.ModifiableCssDeclaration($name, value, parsedAsCustomProperty, t1, span);
  7641. },
  7642. ModifiableCssDeclaration: function ModifiableCssDeclaration(t0, t1, t2, t3, t4) {
  7643. var _ = this;
  7644. _.name = t0;
  7645. _.value = t1;
  7646. _.parsedAsCustomProperty = t2;
  7647. _.valueSpanForMap = t3;
  7648. _.span = t4;
  7649. _._indexInParent = _._parent = null;
  7650. _.isGroupEnd = false;
  7651. },
  7652. ModifiableCssImport: function ModifiableCssImport(t0, t1, t2) {
  7653. var _ = this;
  7654. _.url = t0;
  7655. _.modifiers = t1;
  7656. _.span = t2;
  7657. _._indexInParent = _._parent = null;
  7658. _.isGroupEnd = false;
  7659. },
  7660. ModifiableCssKeyframeBlock$(selector, span) {
  7661. var t1 = A._setArrayType([], type$.JSArray_ModifiableCssNode);
  7662. return new A.ModifiableCssKeyframeBlock(selector, span, new A.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode), t1);
  7663. },
  7664. ModifiableCssKeyframeBlock: function ModifiableCssKeyframeBlock(t0, t1, t2, t3) {
  7665. var _ = this;
  7666. _.selector = t0;
  7667. _.span = t1;
  7668. _.children = t2;
  7669. _._children = t3;
  7670. _._indexInParent = _._parent = null;
  7671. _.isGroupEnd = false;
  7672. },
  7673. ModifiableCssMediaRule$(queries, span) {
  7674. var t1 = A.List_List$unmodifiable(queries, type$.CssMediaQuery),
  7675. t2 = A._setArrayType([], type$.JSArray_ModifiableCssNode);
  7676. if (J.get$isEmpty$asx(queries))
  7677. A.throwExpression(A.ArgumentError$value(queries, "queries", "may not be empty."));
  7678. return new A.ModifiableCssMediaRule(t1, span, new A.UnmodifiableListView(t2, type$.UnmodifiableListView_ModifiableCssNode), t2);
  7679. },
  7680. ModifiableCssMediaRule: function ModifiableCssMediaRule(t0, t1, t2, t3) {
  7681. var _ = this;
  7682. _.queries = t0;
  7683. _.span = t1;
  7684. _.children = t2;
  7685. _._children = t3;
  7686. _._indexInParent = _._parent = null;
  7687. _.isGroupEnd = false;
  7688. },
  7689. ModifiableCssNode: function ModifiableCssNode() {
  7690. },
  7691. ModifiableCssNode_hasFollowingSibling_closure: function ModifiableCssNode_hasFollowingSibling_closure() {
  7692. },
  7693. ModifiableCssParentNode: function ModifiableCssParentNode() {
  7694. },
  7695. ModifiableCssStyleRule$(selector, span, originalSelector) {
  7696. var t1 = A._setArrayType([], type$.JSArray_ModifiableCssNode);
  7697. return new A.ModifiableCssStyleRule(selector, originalSelector, span, new A.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode), t1);
  7698. },
  7699. ModifiableCssStyleRule: function ModifiableCssStyleRule(t0, t1, t2, t3, t4) {
  7700. var _ = this;
  7701. _.selector = t0;
  7702. _.originalSelector = t1;
  7703. _.span = t2;
  7704. _.children = t3;
  7705. _._children = t4;
  7706. _._indexInParent = _._parent = null;
  7707. _.isGroupEnd = false;
  7708. },
  7709. ModifiableCssStylesheet$(span) {
  7710. var t1 = A._setArrayType([], type$.JSArray_ModifiableCssNode);
  7711. return new A.ModifiableCssStylesheet(span, new A.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode), t1);
  7712. },
  7713. ModifiableCssStylesheet: function ModifiableCssStylesheet(t0, t1, t2) {
  7714. var _ = this;
  7715. _.span = t0;
  7716. _.children = t1;
  7717. _._children = t2;
  7718. _._indexInParent = _._parent = null;
  7719. _.isGroupEnd = false;
  7720. },
  7721. ModifiableCssSupportsRule$(condition, span) {
  7722. var t1 = A._setArrayType([], type$.JSArray_ModifiableCssNode);
  7723. return new A.ModifiableCssSupportsRule(condition, span, new A.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode), t1);
  7724. },
  7725. ModifiableCssSupportsRule: function ModifiableCssSupportsRule(t0, t1, t2, t3) {
  7726. var _ = this;
  7727. _.condition = t0;
  7728. _.span = t1;
  7729. _.children = t2;
  7730. _._children = t3;
  7731. _._indexInParent = _._parent = null;
  7732. _.isGroupEnd = false;
  7733. },
  7734. ModifiableCssValue: function ModifiableCssValue(t0, t1, t2) {
  7735. this.value = t0;
  7736. this.span = t1;
  7737. this.$ti = t2;
  7738. },
  7739. CssNode: function CssNode() {
  7740. },
  7741. CssParentNode: function CssParentNode() {
  7742. },
  7743. _IsInvisibleVisitor: function _IsInvisibleVisitor(t0, t1) {
  7744. this.includeBogus = t0;
  7745. this.includeComments = t1;
  7746. },
  7747. __IsInvisibleVisitor_Object_EveryCssVisitor: function __IsInvisibleVisitor_Object_EveryCssVisitor() {
  7748. },
  7749. CssStylesheet: function CssStylesheet(t0, t1) {
  7750. this.children = t0;
  7751. this.span = t1;
  7752. },
  7753. CssValue: function CssValue(t0, t1, t2) {
  7754. this.value = t0;
  7755. this.span = t1;
  7756. this.$ti = t2;
  7757. },
  7758. AstNode: function AstNode() {
  7759. },
  7760. _FakeAstNode: function _FakeAstNode(t0) {
  7761. this._callback = t0;
  7762. },
  7763. Argument: function Argument(t0, t1, t2) {
  7764. this.name = t0;
  7765. this.defaultValue = t1;
  7766. this.span = t2;
  7767. },
  7768. ArgumentDeclaration_ArgumentDeclaration$parse(contents, url) {
  7769. return A.ScssParser$(contents, null, url).parseArgumentDeclaration$0();
  7770. },
  7771. ArgumentDeclaration: function ArgumentDeclaration(t0, t1, t2) {
  7772. this.$arguments = t0;
  7773. this.restArgument = t1;
  7774. this.span = t2;
  7775. },
  7776. ArgumentDeclaration_verify_closure: function ArgumentDeclaration_verify_closure() {
  7777. },
  7778. ArgumentDeclaration_verify_closure0: function ArgumentDeclaration_verify_closure0() {
  7779. },
  7780. ArgumentInvocation$empty(span) {
  7781. return new A.ArgumentInvocation(B.List_empty9, B.Map_empty2, null, null, span);
  7782. },
  7783. ArgumentInvocation: function ArgumentInvocation(t0, t1, t2, t3, t4) {
  7784. var _ = this;
  7785. _.positional = t0;
  7786. _.named = t1;
  7787. _.rest = t2;
  7788. _.keywordRest = t3;
  7789. _.span = t4;
  7790. },
  7791. AtRootQuery: function AtRootQuery(t0, t1, t2, t3) {
  7792. var _ = this;
  7793. _.include = t0;
  7794. _.names = t1;
  7795. _._all = t2;
  7796. _._at_root_query$_rule = t3;
  7797. },
  7798. ConfiguredVariable: function ConfiguredVariable(t0, t1, t2, t3) {
  7799. var _ = this;
  7800. _.name = t0;
  7801. _.expression = t1;
  7802. _.isGuarded = t2;
  7803. _.span = t3;
  7804. },
  7805. BinaryOperationExpression: function BinaryOperationExpression(t0, t1, t2, t3) {
  7806. var _ = this;
  7807. _.operator = t0;
  7808. _.left = t1;
  7809. _.right = t2;
  7810. _.allowsSlash = t3;
  7811. },
  7812. BinaryOperator: function BinaryOperator(t0, t1, t2, t3) {
  7813. var _ = this;
  7814. _.name = t0;
  7815. _.operator = t1;
  7816. _.precedence = t2;
  7817. _._name = t3;
  7818. },
  7819. BooleanExpression: function BooleanExpression(t0, t1) {
  7820. this.value = t0;
  7821. this.span = t1;
  7822. },
  7823. CalculationExpression__verifyArguments($arguments) {
  7824. return A.List_List$unmodifiable(new A.MappedListIterable($arguments, new A.CalculationExpression__verifyArguments_closure(), A._arrayInstanceType($arguments)._eval$1("MappedListIterable<1,@>")), type$.Expression);
  7825. },
  7826. CalculationExpression__verify(expression) {
  7827. var t1,
  7828. _s29_ = "Invalid calculation argument ";
  7829. if (expression instanceof A.NumberExpression)
  7830. return;
  7831. if (expression instanceof A.CalculationExpression)
  7832. return;
  7833. if (expression instanceof A.VariableExpression)
  7834. return;
  7835. if (expression instanceof A.FunctionExpression)
  7836. return;
  7837. if (expression instanceof A.IfExpression)
  7838. return;
  7839. if (expression instanceof A.StringExpression) {
  7840. if (expression.hasQuotes)
  7841. throw A.wrapException(A.ArgumentError$(_s29_ + expression.toString$0(0) + ".", null));
  7842. } else if (expression instanceof A.ParenthesizedExpression)
  7843. A.CalculationExpression__verify(expression.expression);
  7844. else if (expression instanceof A.BinaryOperationExpression) {
  7845. A.CalculationExpression__verify(expression.left);
  7846. A.CalculationExpression__verify(expression.right);
  7847. t1 = expression.operator;
  7848. if (t1 === B.BinaryOperator_qbf)
  7849. return;
  7850. if (t1 === B.BinaryOperator_KlB)
  7851. return;
  7852. if (t1 === B.BinaryOperator_6pl)
  7853. return;
  7854. if (t1 === B.BinaryOperator_qpm)
  7855. return;
  7856. throw A.wrapException(A.ArgumentError$(_s29_ + expression.toString$0(0) + ".", null));
  7857. } else
  7858. throw A.wrapException(A.ArgumentError$(_s29_ + expression.toString$0(0) + ".", null));
  7859. },
  7860. CalculationExpression: function CalculationExpression(t0, t1, t2) {
  7861. this.name = t0;
  7862. this.$arguments = t1;
  7863. this.span = t2;
  7864. },
  7865. CalculationExpression__verifyArguments_closure: function CalculationExpression__verifyArguments_closure() {
  7866. },
  7867. ColorExpression: function ColorExpression(t0, t1) {
  7868. this.value = t0;
  7869. this.span = t1;
  7870. },
  7871. FunctionExpression: function FunctionExpression(t0, t1, t2, t3) {
  7872. var _ = this;
  7873. _.namespace = t0;
  7874. _.originalName = t1;
  7875. _.$arguments = t2;
  7876. _.span = t3;
  7877. },
  7878. IfExpression: function IfExpression(t0, t1) {
  7879. this.$arguments = t0;
  7880. this.span = t1;
  7881. },
  7882. InterpolatedFunctionExpression: function InterpolatedFunctionExpression(t0, t1, t2) {
  7883. this.name = t0;
  7884. this.$arguments = t1;
  7885. this.span = t2;
  7886. },
  7887. ListExpression: function ListExpression(t0, t1, t2, t3) {
  7888. var _ = this;
  7889. _.contents = t0;
  7890. _.separator = t1;
  7891. _.hasBrackets = t2;
  7892. _.span = t3;
  7893. },
  7894. ListExpression_toString_closure: function ListExpression_toString_closure(t0) {
  7895. this.$this = t0;
  7896. },
  7897. MapExpression: function MapExpression(t0, t1) {
  7898. this.pairs = t0;
  7899. this.span = t1;
  7900. },
  7901. MapExpression_toString_closure: function MapExpression_toString_closure() {
  7902. },
  7903. NullExpression: function NullExpression(t0) {
  7904. this.span = t0;
  7905. },
  7906. NumberExpression: function NumberExpression(t0, t1, t2) {
  7907. this.value = t0;
  7908. this.unit = t1;
  7909. this.span = t2;
  7910. },
  7911. ParenthesizedExpression: function ParenthesizedExpression(t0, t1) {
  7912. this.expression = t0;
  7913. this.span = t1;
  7914. },
  7915. SelectorExpression: function SelectorExpression(t0) {
  7916. this.span = t0;
  7917. },
  7918. StringExpression_quoteText(text) {
  7919. var t1,
  7920. quote = A.StringExpression__bestQuote(A._setArrayType([text], type$.JSArray_String)),
  7921. buffer = new A.StringBuffer("");
  7922. buffer._contents = "" + A.Primitives_stringFromCharCode(quote);
  7923. A.StringExpression__quoteInnerText(text, quote, buffer, true);
  7924. t1 = buffer._contents += A.Primitives_stringFromCharCode(quote);
  7925. return t1.charCodeAt(0) == 0 ? t1 : t1;
  7926. },
  7927. StringExpression__quoteInnerText(text, quote, buffer, $static) {
  7928. var t1, t2, i, codeUnit, next, t3;
  7929. for (t1 = text.length, t2 = t1 - 1, i = 0; i < t1; ++i) {
  7930. codeUnit = B.JSString_methods._codeUnitAt$1(text, i);
  7931. if (codeUnit === 10 || codeUnit === 13 || codeUnit === 12) {
  7932. buffer.writeCharCode$1(92);
  7933. buffer.writeCharCode$1(97);
  7934. if (i !== t2) {
  7935. next = B.JSString_methods._codeUnitAt$1(text, i + 1);
  7936. if (next === 32 || next === 9 || next === 10 || next === 13 || next === 12 || A.isHex(next))
  7937. buffer.writeCharCode$1(32);
  7938. }
  7939. } else {
  7940. if (codeUnit !== quote)
  7941. if (codeUnit !== 92)
  7942. t3 = $static && codeUnit === 35 && i < t2 && B.JSString_methods._codeUnitAt$1(text, i + 1) === 123;
  7943. else
  7944. t3 = true;
  7945. else
  7946. t3 = true;
  7947. if (t3)
  7948. buffer.writeCharCode$1(92);
  7949. buffer.writeCharCode$1(codeUnit);
  7950. }
  7951. }
  7952. },
  7953. StringExpression__bestQuote(strings) {
  7954. var t1, containsDoubleQuote, t2, t3, i, codeUnit;
  7955. for (t1 = J.get$iterator$ax(strings), containsDoubleQuote = false; t1.moveNext$0();) {
  7956. t2 = t1.get$current(t1);
  7957. for (t3 = t2.length, i = 0; i < t3; ++i) {
  7958. codeUnit = B.JSString_methods._codeUnitAt$1(t2, i);
  7959. if (codeUnit === 39)
  7960. return 34;
  7961. if (codeUnit === 34)
  7962. containsDoubleQuote = true;
  7963. }
  7964. }
  7965. return containsDoubleQuote ? 39 : 34;
  7966. },
  7967. StringExpression: function StringExpression(t0, t1) {
  7968. this.text = t0;
  7969. this.hasQuotes = t1;
  7970. },
  7971. SupportsExpression: function SupportsExpression(t0) {
  7972. this.condition = t0;
  7973. },
  7974. UnaryOperationExpression: function UnaryOperationExpression(t0, t1, t2) {
  7975. this.operator = t0;
  7976. this.operand = t1;
  7977. this.span = t2;
  7978. },
  7979. UnaryOperator: function UnaryOperator(t0, t1, t2) {
  7980. this.name = t0;
  7981. this.operator = t1;
  7982. this._name = t2;
  7983. },
  7984. ValueExpression: function ValueExpression(t0, t1) {
  7985. this.value = t0;
  7986. this.span = t1;
  7987. },
  7988. VariableExpression: function VariableExpression(t0, t1, t2) {
  7989. this.namespace = t0;
  7990. this.name = t1;
  7991. this.span = t2;
  7992. },
  7993. DynamicImport: function DynamicImport(t0, t1) {
  7994. this.urlString = t0;
  7995. this.span = t1;
  7996. },
  7997. StaticImport: function StaticImport(t0, t1, t2) {
  7998. this.url = t0;
  7999. this.modifiers = t1;
  8000. this.span = t2;
  8001. },
  8002. Interpolation$(contents, span) {
  8003. var t1 = new A.Interpolation(A.List_List$unmodifiable(contents, type$.Object), span);
  8004. t1.Interpolation$2(contents, span);
  8005. return t1;
  8006. },
  8007. Interpolation: function Interpolation(t0, t1) {
  8008. this.contents = t0;
  8009. this.span = t1;
  8010. },
  8011. Interpolation_toString_closure: function Interpolation_toString_closure() {
  8012. },
  8013. AtRootRule$(children, span, query) {
  8014. var t1 = A.List_List$unmodifiable(children, type$.Statement),
  8015. t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure());
  8016. return new A.AtRootRule(query, span, t1, t2);
  8017. },
  8018. AtRootRule: function AtRootRule(t0, t1, t2, t3) {
  8019. var _ = this;
  8020. _.query = t0;
  8021. _.span = t1;
  8022. _.children = t2;
  8023. _.hasDeclarations = t3;
  8024. },
  8025. AtRule$($name, span, children, value) {
  8026. var t1 = children == null ? null : A.List_List$unmodifiable(children, type$.Statement),
  8027. t2 = t1 == null ? null : B.JSArray_methods.any$1(t1, new A.ParentStatement_closure());
  8028. return new A.AtRule($name, value, span, t1, t2 === true);
  8029. },
  8030. AtRule: function AtRule(t0, t1, t2, t3, t4) {
  8031. var _ = this;
  8032. _.name = t0;
  8033. _.value = t1;
  8034. _.span = t2;
  8035. _.children = t3;
  8036. _.hasDeclarations = t4;
  8037. },
  8038. CallableDeclaration: function CallableDeclaration() {
  8039. },
  8040. ContentBlock$($arguments, children, span) {
  8041. var t1 = A.List_List$unmodifiable(children, type$.Statement),
  8042. t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure());
  8043. return new A.ContentBlock("@content", $arguments, span, t1, t2);
  8044. },
  8045. ContentBlock: function ContentBlock(t0, t1, t2, t3, t4) {
  8046. var _ = this;
  8047. _.name = t0;
  8048. _.$arguments = t1;
  8049. _.span = t2;
  8050. _.children = t3;
  8051. _.hasDeclarations = t4;
  8052. },
  8053. ContentRule: function ContentRule(t0, t1) {
  8054. this.$arguments = t0;
  8055. this.span = t1;
  8056. },
  8057. DebugRule: function DebugRule(t0, t1) {
  8058. this.expression = t0;
  8059. this.span = t1;
  8060. },
  8061. Declaration$($name, value, span) {
  8062. if (B.JSString_methods.startsWith$1($name.get$initialPlain(), "--") && !(value instanceof A.StringExpression))
  8063. A.throwExpression(A.ArgumentError$(string$.Declarwu + value.toString$0(0) + "` of type " + value.get$runtimeType(value).toString$0(0) + ").", null));
  8064. return new A.Declaration($name, value, span, null, false);
  8065. },
  8066. Declaration$nested($name, children, span, value) {
  8067. var t1 = A.List_List$unmodifiable(children, type$.Statement),
  8068. t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure());
  8069. if (B.JSString_methods.startsWith$1($name.get$initialPlain(), "--") && !(value instanceof A.StringExpression))
  8070. A.throwExpression(A.ArgumentError$(string$.Declarwa, null));
  8071. return new A.Declaration($name, value, span, t1, t2);
  8072. },
  8073. Declaration: function Declaration(t0, t1, t2, t3, t4) {
  8074. var _ = this;
  8075. _.name = t0;
  8076. _.value = t1;
  8077. _.span = t2;
  8078. _.children = t3;
  8079. _.hasDeclarations = t4;
  8080. },
  8081. EachRule$(variables, list, children, span) {
  8082. var t1 = A.List_List$unmodifiable(variables, type$.String),
  8083. t2 = A.List_List$unmodifiable(children, type$.Statement),
  8084. t3 = B.JSArray_methods.any$1(t2, new A.ParentStatement_closure());
  8085. return new A.EachRule(t1, list, span, t2, t3);
  8086. },
  8087. EachRule: function EachRule(t0, t1, t2, t3, t4) {
  8088. var _ = this;
  8089. _.variables = t0;
  8090. _.list = t1;
  8091. _.span = t2;
  8092. _.children = t3;
  8093. _.hasDeclarations = t4;
  8094. },
  8095. EachRule_toString_closure: function EachRule_toString_closure() {
  8096. },
  8097. ErrorRule: function ErrorRule(t0, t1) {
  8098. this.expression = t0;
  8099. this.span = t1;
  8100. },
  8101. ExtendRule: function ExtendRule(t0, t1, t2) {
  8102. this.selector = t0;
  8103. this.isOptional = t1;
  8104. this.span = t2;
  8105. },
  8106. ForRule$(variable, from, to, children, span, exclusive) {
  8107. var t1 = A.List_List$unmodifiable(children, type$.Statement),
  8108. t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure());
  8109. return new A.ForRule(variable, from, to, exclusive, span, t1, t2);
  8110. },
  8111. ForRule: function ForRule(t0, t1, t2, t3, t4, t5, t6) {
  8112. var _ = this;
  8113. _.variable = t0;
  8114. _.from = t1;
  8115. _.to = t2;
  8116. _.isExclusive = t3;
  8117. _.span = t4;
  8118. _.children = t5;
  8119. _.hasDeclarations = t6;
  8120. },
  8121. ForwardRule: function ForwardRule(t0, t1, t2, t3, t4, t5, t6, t7) {
  8122. var _ = this;
  8123. _.url = t0;
  8124. _.shownMixinsAndFunctions = t1;
  8125. _.shownVariables = t2;
  8126. _.hiddenMixinsAndFunctions = t3;
  8127. _.hiddenVariables = t4;
  8128. _.prefix = t5;
  8129. _.configuration = t6;
  8130. _.span = t7;
  8131. },
  8132. FunctionRule$($name, $arguments, children, span, comment) {
  8133. var t1 = A.List_List$unmodifiable(children, type$.Statement),
  8134. t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure());
  8135. return new A.FunctionRule($name, $arguments, span, t1, t2);
  8136. },
  8137. FunctionRule: function FunctionRule(t0, t1, t2, t3, t4) {
  8138. var _ = this;
  8139. _.name = t0;
  8140. _.$arguments = t1;
  8141. _.span = t2;
  8142. _.children = t3;
  8143. _.hasDeclarations = t4;
  8144. },
  8145. IfClause$(expression, children) {
  8146. var t1 = A.List_List$unmodifiable(children, type$.Statement);
  8147. return new A.IfClause(expression, t1, B.JSArray_methods.any$1(t1, new A.IfRuleClause$__closure()));
  8148. },
  8149. ElseClause$(children) {
  8150. var t1 = A.List_List$unmodifiable(children, type$.Statement);
  8151. return new A.ElseClause(t1, B.JSArray_methods.any$1(t1, new A.IfRuleClause$__closure()));
  8152. },
  8153. IfRule: function IfRule(t0, t1, t2) {
  8154. this.clauses = t0;
  8155. this.lastClause = t1;
  8156. this.span = t2;
  8157. },
  8158. IfRule_toString_closure: function IfRule_toString_closure() {
  8159. },
  8160. IfRuleClause: function IfRuleClause() {
  8161. },
  8162. IfRuleClause$__closure: function IfRuleClause$__closure() {
  8163. },
  8164. IfRuleClause$___closure: function IfRuleClause$___closure() {
  8165. },
  8166. IfClause: function IfClause(t0, t1, t2) {
  8167. this.expression = t0;
  8168. this.children = t1;
  8169. this.hasDeclarations = t2;
  8170. },
  8171. ElseClause: function ElseClause(t0, t1) {
  8172. this.children = t0;
  8173. this.hasDeclarations = t1;
  8174. },
  8175. ImportRule: function ImportRule(t0, t1) {
  8176. this.imports = t0;
  8177. this.span = t1;
  8178. },
  8179. IncludeRule: function IncludeRule(t0, t1, t2, t3, t4) {
  8180. var _ = this;
  8181. _.namespace = t0;
  8182. _.name = t1;
  8183. _.$arguments = t2;
  8184. _.content = t3;
  8185. _.span = t4;
  8186. },
  8187. LoudComment: function LoudComment(t0) {
  8188. this.text = t0;
  8189. },
  8190. MediaRule$(query, children, span) {
  8191. var t1 = A.List_List$unmodifiable(children, type$.Statement),
  8192. t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure());
  8193. return new A.MediaRule(query, span, t1, t2);
  8194. },
  8195. MediaRule: function MediaRule(t0, t1, t2, t3) {
  8196. var _ = this;
  8197. _.query = t0;
  8198. _.span = t1;
  8199. _.children = t2;
  8200. _.hasDeclarations = t3;
  8201. },
  8202. MixinRule$($name, $arguments, children, span, comment) {
  8203. var t1 = A.List_List$unmodifiable(children, type$.Statement),
  8204. t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure());
  8205. return new A.MixinRule($name, $arguments, span, t1, t2);
  8206. },
  8207. MixinRule: function MixinRule(t0, t1, t2, t3, t4) {
  8208. var _ = this;
  8209. _.__MixinRule_hasContent_FI = $;
  8210. _.name = t0;
  8211. _.$arguments = t1;
  8212. _.span = t2;
  8213. _.children = t3;
  8214. _.hasDeclarations = t4;
  8215. },
  8216. _HasContentVisitor: function _HasContentVisitor() {
  8217. },
  8218. __HasContentVisitor_Object_StatementSearchVisitor: function __HasContentVisitor_Object_StatementSearchVisitor() {
  8219. },
  8220. ParentStatement: function ParentStatement() {
  8221. },
  8222. ParentStatement_closure: function ParentStatement_closure() {
  8223. },
  8224. ParentStatement__closure: function ParentStatement__closure() {
  8225. },
  8226. ReturnRule: function ReturnRule(t0, t1) {
  8227. this.expression = t0;
  8228. this.span = t1;
  8229. },
  8230. SilentComment: function SilentComment(t0, t1) {
  8231. this.text = t0;
  8232. this.span = t1;
  8233. },
  8234. StyleRule$(selector, children, span) {
  8235. var t1 = A.List_List$unmodifiable(children, type$.Statement),
  8236. t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure());
  8237. return new A.StyleRule(selector, span, t1, t2);
  8238. },
  8239. StyleRule: function StyleRule(t0, t1, t2, t3) {
  8240. var _ = this;
  8241. _.selector = t0;
  8242. _.span = t1;
  8243. _.children = t2;
  8244. _.hasDeclarations = t3;
  8245. },
  8246. Stylesheet$(children, span) {
  8247. var t1 = A._setArrayType([], type$.JSArray_UseRule),
  8248. t2 = A._setArrayType([], type$.JSArray_ForwardRule),
  8249. t3 = A.List_List$unmodifiable(children, type$.Statement),
  8250. t4 = B.JSArray_methods.any$1(t3, new A.ParentStatement_closure());
  8251. t1 = new A.Stylesheet(span, false, t1, t2, t3, t4);
  8252. t1.Stylesheet$internal$3$plainCss(children, span, false);
  8253. return t1;
  8254. },
  8255. Stylesheet$internal(children, span, plainCss) {
  8256. var t1 = A._setArrayType([], type$.JSArray_UseRule),
  8257. t2 = A._setArrayType([], type$.JSArray_ForwardRule),
  8258. t3 = A.List_List$unmodifiable(children, type$.Statement),
  8259. t4 = B.JSArray_methods.any$1(t3, new A.ParentStatement_closure());
  8260. t1 = new A.Stylesheet(span, plainCss, t1, t2, t3, t4);
  8261. t1.Stylesheet$internal$3$plainCss(children, span, plainCss);
  8262. return t1;
  8263. },
  8264. Stylesheet_Stylesheet$parse(contents, syntax, logger, url) {
  8265. var t1, t2;
  8266. switch (syntax) {
  8267. case B.Syntax_Sass_sass:
  8268. t1 = A.SpanScanner$(contents, url);
  8269. t2 = logger == null ? B.StderrLogger_false : logger;
  8270. return new A.SassParser(A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration), t1, t2).parse$0();
  8271. case B.Syntax_SCSS_scss:
  8272. return A.ScssParser$(contents, logger, url).parse$0();
  8273. case B.Syntax_CSS_css:
  8274. t1 = A.SpanScanner$(contents, url);
  8275. t2 = logger == null ? B.StderrLogger_false : logger;
  8276. return new A.CssParser(A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration), t1, t2).parse$0();
  8277. default:
  8278. throw A.wrapException(A.ArgumentError$("Unknown syntax " + syntax.toString$0(0) + ".", null));
  8279. }
  8280. },
  8281. Stylesheet: function Stylesheet(t0, t1, t2, t3, t4, t5) {
  8282. var _ = this;
  8283. _.span = t0;
  8284. _.plainCss = t1;
  8285. _._uses = t2;
  8286. _._forwards = t3;
  8287. _.children = t4;
  8288. _.hasDeclarations = t5;
  8289. },
  8290. SupportsRule$(condition, children, span) {
  8291. var t1 = A.List_List$unmodifiable(children, type$.Statement),
  8292. t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure());
  8293. return new A.SupportsRule(condition, span, t1, t2);
  8294. },
  8295. SupportsRule: function SupportsRule(t0, t1, t2, t3) {
  8296. var _ = this;
  8297. _.condition = t0;
  8298. _.span = t1;
  8299. _.children = t2;
  8300. _.hasDeclarations = t3;
  8301. },
  8302. UseRule: function UseRule(t0, t1, t2, t3) {
  8303. var _ = this;
  8304. _.url = t0;
  8305. _.namespace = t1;
  8306. _.configuration = t2;
  8307. _.span = t3;
  8308. },
  8309. VariableDeclaration$($name, expression, span, comment, global, guarded, namespace) {
  8310. if (namespace != null && global)
  8311. A.throwExpression(A.ArgumentError$(string$.Other_, null));
  8312. return new A.VariableDeclaration(namespace, $name, expression, guarded, global, span);
  8313. },
  8314. VariableDeclaration: function VariableDeclaration(t0, t1, t2, t3, t4, t5) {
  8315. var _ = this;
  8316. _.namespace = t0;
  8317. _.name = t1;
  8318. _.expression = t2;
  8319. _.isGuarded = t3;
  8320. _.isGlobal = t4;
  8321. _.span = t5;
  8322. },
  8323. WarnRule: function WarnRule(t0, t1) {
  8324. this.expression = t0;
  8325. this.span = t1;
  8326. },
  8327. WhileRule$(condition, children, span) {
  8328. var t1 = A.List_List$unmodifiable(children, type$.Statement),
  8329. t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure());
  8330. return new A.WhileRule(condition, span, t1, t2);
  8331. },
  8332. WhileRule: function WhileRule(t0, t1, t2, t3) {
  8333. var _ = this;
  8334. _.condition = t0;
  8335. _.span = t1;
  8336. _.children = t2;
  8337. _.hasDeclarations = t3;
  8338. },
  8339. SupportsAnything: function SupportsAnything(t0, t1) {
  8340. this.contents = t0;
  8341. this.span = t1;
  8342. },
  8343. SupportsDeclaration: function SupportsDeclaration(t0, t1, t2) {
  8344. this.name = t0;
  8345. this.value = t1;
  8346. this.span = t2;
  8347. },
  8348. SupportsFunction: function SupportsFunction(t0, t1, t2) {
  8349. this.name = t0;
  8350. this.$arguments = t1;
  8351. this.span = t2;
  8352. },
  8353. SupportsInterpolation: function SupportsInterpolation(t0, t1) {
  8354. this.expression = t0;
  8355. this.span = t1;
  8356. },
  8357. SupportsNegation: function SupportsNegation(t0, t1) {
  8358. this.condition = t0;
  8359. this.span = t1;
  8360. },
  8361. SupportsOperation: function SupportsOperation(t0, t1, t2, t3) {
  8362. var _ = this;
  8363. _.left = t0;
  8364. _.right = t1;
  8365. _.operator = t2;
  8366. _.span = t3;
  8367. },
  8368. Selector: function Selector() {
  8369. },
  8370. _IsInvisibleVisitor0: function _IsInvisibleVisitor0(t0) {
  8371. this.includeBogus = t0;
  8372. },
  8373. _IsBogusVisitor: function _IsBogusVisitor(t0) {
  8374. this.includeLeadingCombinator = t0;
  8375. },
  8376. _IsBogusVisitor_visitComplexSelector_closure: function _IsBogusVisitor_visitComplexSelector_closure(t0) {
  8377. this.$this = t0;
  8378. },
  8379. _IsUselessVisitor: function _IsUselessVisitor() {
  8380. },
  8381. _IsUselessVisitor_visitComplexSelector_closure: function _IsUselessVisitor_visitComplexSelector_closure(t0) {
  8382. this.$this = t0;
  8383. },
  8384. __IsBogusVisitor_Object_AnySelectorVisitor: function __IsBogusVisitor_Object_AnySelectorVisitor() {
  8385. },
  8386. __IsInvisibleVisitor_Object_AnySelectorVisitor: function __IsInvisibleVisitor_Object_AnySelectorVisitor() {
  8387. },
  8388. __IsUselessVisitor_Object_AnySelectorVisitor: function __IsUselessVisitor_Object_AnySelectorVisitor() {
  8389. },
  8390. AttributeSelector: function AttributeSelector(t0, t1, t2, t3) {
  8391. var _ = this;
  8392. _.name = t0;
  8393. _.op = t1;
  8394. _.value = t2;
  8395. _.modifier = t3;
  8396. },
  8397. AttributeOperator: function AttributeOperator(t0, t1) {
  8398. this._attribute$_text = t0;
  8399. this._name = t1;
  8400. },
  8401. ClassSelector: function ClassSelector(t0) {
  8402. this.name = t0;
  8403. },
  8404. Combinator: function Combinator(t0, t1) {
  8405. this._combinator$_text = t0;
  8406. this._name = t1;
  8407. },
  8408. ComplexSelector$(leadingCombinators, components, lineBreak) {
  8409. var t1 = A.List_List$unmodifiable(leadingCombinators, type$.Combinator),
  8410. t2 = A.List_List$unmodifiable(components, type$.ComplexSelectorComponent);
  8411. if (t1.length === 0 && t2.length === 0)
  8412. A.throwExpression(A.ArgumentError$(string$.leadin, null));
  8413. return new A.ComplexSelector(t1, t2, lineBreak);
  8414. },
  8415. ComplexSelector: function ComplexSelector(t0, t1, t2) {
  8416. var _ = this;
  8417. _.leadingCombinators = t0;
  8418. _.components = t1;
  8419. _.lineBreak = t2;
  8420. _.__ComplexSelector_specificity_FI = $;
  8421. },
  8422. ComplexSelector_specificity_closure: function ComplexSelector_specificity_closure() {
  8423. },
  8424. ComplexSelectorComponent: function ComplexSelectorComponent(t0, t1) {
  8425. this.selector = t0;
  8426. this.combinators = t1;
  8427. },
  8428. ComplexSelectorComponent_toString_closure: function ComplexSelectorComponent_toString_closure() {
  8429. },
  8430. CompoundSelector$(components) {
  8431. var t1 = A.List_List$unmodifiable(components, type$.SimpleSelector);
  8432. if (t1.length === 0)
  8433. A.throwExpression(A.ArgumentError$("components may not be empty.", null));
  8434. return new A.CompoundSelector(t1);
  8435. },
  8436. CompoundSelector: function CompoundSelector(t0) {
  8437. this.components = t0;
  8438. this.__CompoundSelector_specificity_FI = $;
  8439. },
  8440. CompoundSelector_specificity_closure: function CompoundSelector_specificity_closure() {
  8441. },
  8442. IDSelector: function IDSelector(t0) {
  8443. this.name = t0;
  8444. },
  8445. IDSelector_unify_closure: function IDSelector_unify_closure(t0) {
  8446. this.$this = t0;
  8447. },
  8448. SelectorList$(components) {
  8449. var t1 = A.List_List$unmodifiable(components, type$.ComplexSelector);
  8450. if (t1.length === 0)
  8451. A.throwExpression(A.ArgumentError$("components may not be empty.", null));
  8452. return new A.SelectorList(t1);
  8453. },
  8454. SelectorList_SelectorList$parse(contents, allowParent, allowPlaceholder, logger) {
  8455. return A.SelectorParser$(contents, allowParent, allowPlaceholder, logger, null).parse$0();
  8456. },
  8457. SelectorList: function SelectorList(t0) {
  8458. this.components = t0;
  8459. },
  8460. SelectorList_asSassList_closure: function SelectorList_asSassList_closure() {
  8461. },
  8462. SelectorList_resolveParentSelectors_closure: function SelectorList_resolveParentSelectors_closure(t0, t1, t2) {
  8463. this.$this = t0;
  8464. this.implicitParent = t1;
  8465. this.parent = t2;
  8466. },
  8467. SelectorList_resolveParentSelectors__closure: function SelectorList_resolveParentSelectors__closure(t0) {
  8468. this.complex = t0;
  8469. },
  8470. SelectorList__complexContainsParentSelector_closure: function SelectorList__complexContainsParentSelector_closure() {
  8471. },
  8472. SelectorList__complexContainsParentSelector__closure: function SelectorList__complexContainsParentSelector__closure() {
  8473. },
  8474. SelectorList__resolveParentSelectorsCompound_closure: function SelectorList__resolveParentSelectorsCompound_closure() {
  8475. },
  8476. SelectorList__resolveParentSelectorsCompound_closure0: function SelectorList__resolveParentSelectorsCompound_closure0(t0) {
  8477. this.parent = t0;
  8478. },
  8479. SelectorList__resolveParentSelectorsCompound_closure1: function SelectorList__resolveParentSelectorsCompound_closure1(t0, t1, t2) {
  8480. this.parentSelector = t0;
  8481. this.resolvedSimples = t1;
  8482. this.component = t2;
  8483. },
  8484. SelectorList_withAdditionalCombinators_closure: function SelectorList_withAdditionalCombinators_closure(t0) {
  8485. this.combinators = t0;
  8486. },
  8487. ParentSelector: function ParentSelector(t0) {
  8488. this.suffix = t0;
  8489. },
  8490. PlaceholderSelector: function PlaceholderSelector(t0) {
  8491. this.name = t0;
  8492. },
  8493. PseudoSelector$($name, argument, element, selector) {
  8494. var t1 = !element,
  8495. t2 = t1 && !A.PseudoSelector__isFakePseudoElement($name);
  8496. return new A.PseudoSelector($name, A.unvendor($name), t2, t1, argument, selector);
  8497. },
  8498. PseudoSelector__isFakePseudoElement($name) {
  8499. switch (B.JSString_methods._codeUnitAt$1($name, 0)) {
  8500. case 97:
  8501. case 65:
  8502. return A.equalsIgnoreCase($name, "after");
  8503. case 98:
  8504. case 66:
  8505. return A.equalsIgnoreCase($name, "before");
  8506. case 102:
  8507. case 70:
  8508. return A.equalsIgnoreCase($name, "first-line") || A.equalsIgnoreCase($name, "first-letter");
  8509. default:
  8510. return false;
  8511. }
  8512. },
  8513. PseudoSelector: function PseudoSelector(t0, t1, t2, t3, t4, t5) {
  8514. var _ = this;
  8515. _.name = t0;
  8516. _.normalizedName = t1;
  8517. _.isClass = t2;
  8518. _.isSyntacticClass = t3;
  8519. _.argument = t4;
  8520. _.selector = t5;
  8521. _.__PseudoSelector_specificity_FI = $;
  8522. },
  8523. PseudoSelector_specificity_closure: function PseudoSelector_specificity_closure(t0) {
  8524. this.$this = t0;
  8525. },
  8526. PseudoSelector_specificity__closure: function PseudoSelector_specificity__closure() {
  8527. },
  8528. PseudoSelector_specificity__closure0: function PseudoSelector_specificity__closure0() {
  8529. },
  8530. PseudoSelector_unify_closure: function PseudoSelector_unify_closure() {
  8531. },
  8532. QualifiedName: function QualifiedName(t0, t1) {
  8533. this.name = t0;
  8534. this.namespace = t1;
  8535. },
  8536. SimpleSelector: function SimpleSelector() {
  8537. },
  8538. SimpleSelector_isSuperselector_closure: function SimpleSelector_isSuperselector_closure(t0) {
  8539. this.$this = t0;
  8540. },
  8541. SimpleSelector_isSuperselector__closure: function SimpleSelector_isSuperselector__closure(t0) {
  8542. this.$this = t0;
  8543. },
  8544. TypeSelector: function TypeSelector(t0) {
  8545. this.name = t0;
  8546. },
  8547. UniversalSelector: function UniversalSelector(t0) {
  8548. this.namespace = t0;
  8549. },
  8550. compileAsync(path, charset, importCache, logger, quietDeps, sourceMap, style, syntax, verbose) {
  8551. return A.compileAsync$body(path, charset, importCache, logger, quietDeps, sourceMap, style, syntax, verbose);
  8552. },
  8553. compileAsync$body(path, charset, importCache, logger, quietDeps, sourceMap, style, syntax, verbose) {
  8554. var $async$goto = 0,
  8555. $async$completer = A._makeAsyncAwaitCompleter(type$.CompileResult),
  8556. $async$returnValue, t1, terseLogger, t2, t3, t0, stylesheet, result;
  8557. var $async$compileAsync = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  8558. if ($async$errorCode === 1)
  8559. return A._asyncRethrow($async$result, $async$completer);
  8560. while (true)
  8561. switch ($async$goto) {
  8562. case 0:
  8563. // Function start
  8564. if (!verbose) {
  8565. t1 = logger == null ? new A.StderrLogger(false) : logger;
  8566. terseLogger = new A.TerseLogger(A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.int), t1);
  8567. logger = terseLogger;
  8568. } else
  8569. terseLogger = null;
  8570. t1 = syntax === A.Syntax_forPath(path);
  8571. $async$goto = t1 ? 3 : 5;
  8572. break;
  8573. case 3:
  8574. // then
  8575. t1 = A.absolute(".", null, null, null, null, null, null, null, null, null, null, null, null, null, null);
  8576. if (J.$eq$(J.get$platform$x(self.process), "win32") || J.$eq$(J.get$platform$x(self.process), "darwin")) {
  8577. t2 = $.$get$context();
  8578. t3 = A._realCasePath(A.absolute(t2.normalize$1(path), null, null, null, null, null, null, null, null, null, null, null, null, null, null));
  8579. t0 = t3;
  8580. t3 = t2;
  8581. t2 = t0;
  8582. } else {
  8583. t2 = $.$get$context();
  8584. t3 = t2.canonicalize$1(0, path);
  8585. t0 = t3;
  8586. t3 = t2;
  8587. t2 = t0;
  8588. }
  8589. $async$goto = 6;
  8590. return A._asyncAwait(importCache.importCanonical$3$originalUrl(new A.FilesystemImporter(t1), t3.toUri$1(t2), t3.toUri$1(path)), $async$compileAsync);
  8591. case 6:
  8592. // returning from await.
  8593. t3 = $async$result;
  8594. t3.toString;
  8595. stylesheet = t3;
  8596. // goto join
  8597. $async$goto = 4;
  8598. break;
  8599. case 5:
  8600. // else
  8601. t1 = A.readFile(path);
  8602. stylesheet = A.Stylesheet_Stylesheet$parse(t1, syntax, logger, $.$get$context().toUri$1(path));
  8603. case 4:
  8604. // join
  8605. $async$goto = 7;
  8606. return A._asyncAwait(A._compileStylesheet0(stylesheet, logger, importCache, null, new A.FilesystemImporter(A.absolute(".", null, null, null, null, null, null, null, null, null, null, null, null, null, null)), null, style, true, null, null, quietDeps, sourceMap, charset), $async$compileAsync);
  8607. case 7:
  8608. // returning from await.
  8609. result = $async$result;
  8610. if (terseLogger != null)
  8611. terseLogger.summarize$1$node(false);
  8612. $async$returnValue = result;
  8613. // goto return
  8614. $async$goto = 1;
  8615. break;
  8616. case 1:
  8617. // return
  8618. return A._asyncReturn($async$returnValue, $async$completer);
  8619. }
  8620. });
  8621. return A._asyncStartSync($async$compileAsync, $async$completer);
  8622. },
  8623. compileStringAsync(source, charset, importCache, importer, logger, quietDeps, sourceMap, style, syntax, verbose) {
  8624. return A.compileStringAsync$body(source, charset, importCache, importer, logger, quietDeps, sourceMap, style, syntax, verbose);
  8625. },
  8626. compileStringAsync$body(source, charset, importCache, importer, logger, quietDeps, sourceMap, style, syntax, verbose) {
  8627. var $async$goto = 0,
  8628. $async$completer = A._makeAsyncAwaitCompleter(type$.CompileResult),
  8629. $async$returnValue, t1, terseLogger, stylesheet, result;
  8630. var $async$compileStringAsync = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  8631. if ($async$errorCode === 1)
  8632. return A._asyncRethrow($async$result, $async$completer);
  8633. while (true)
  8634. switch ($async$goto) {
  8635. case 0:
  8636. // Function start
  8637. if (!verbose) {
  8638. t1 = logger == null ? new A.StderrLogger(false) : logger;
  8639. terseLogger = new A.TerseLogger(A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.int), t1);
  8640. logger = terseLogger;
  8641. } else
  8642. terseLogger = null;
  8643. stylesheet = A.Stylesheet_Stylesheet$parse(source, syntax, logger, null);
  8644. $async$goto = 3;
  8645. return A._asyncAwait(A._compileStylesheet0(stylesheet, logger, importCache, null, importer, null, style, true, null, null, quietDeps, sourceMap, charset), $async$compileStringAsync);
  8646. case 3:
  8647. // returning from await.
  8648. result = $async$result;
  8649. if (terseLogger != null)
  8650. terseLogger.summarize$1$node(false);
  8651. $async$returnValue = result;
  8652. // goto return
  8653. $async$goto = 1;
  8654. break;
  8655. case 1:
  8656. // return
  8657. return A._asyncReturn($async$returnValue, $async$completer);
  8658. }
  8659. });
  8660. return A._asyncStartSync($async$compileStringAsync, $async$completer);
  8661. },
  8662. _compileStylesheet0(stylesheet, logger, importCache, nodeImporter, importer, functions, style, useSpaces, indentWidth, lineFeed, quietDeps, sourceMap, charset) {
  8663. var $async$goto = 0,
  8664. $async$completer = A._makeAsyncAwaitCompleter(type$.CompileResult),
  8665. $async$returnValue, serializeResult, resultSourceMap, $async$temp1;
  8666. var $async$_compileStylesheet0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  8667. if ($async$errorCode === 1)
  8668. return A._asyncRethrow($async$result, $async$completer);
  8669. while (true)
  8670. switch ($async$goto) {
  8671. case 0:
  8672. // Function start
  8673. $async$temp1 = A;
  8674. $async$goto = 3;
  8675. return A._asyncAwait(A._EvaluateVisitor$0(functions, importCache, logger, nodeImporter, quietDeps, sourceMap).run$2(0, importer, stylesheet), $async$_compileStylesheet0);
  8676. case 3:
  8677. // returning from await.
  8678. serializeResult = $async$temp1.serialize($async$result.stylesheet, charset, indentWidth, false, lineFeed, sourceMap, style, true);
  8679. resultSourceMap = serializeResult.sourceMap;
  8680. if (resultSourceMap != null && true)
  8681. A.mapInPlace(resultSourceMap.urls, new A._compileStylesheet_closure0(stylesheet, importCache));
  8682. $async$returnValue = new A.CompileResult(serializeResult);
  8683. // goto return
  8684. $async$goto = 1;
  8685. break;
  8686. case 1:
  8687. // return
  8688. return A._asyncReturn($async$returnValue, $async$completer);
  8689. }
  8690. });
  8691. return A._asyncStartSync($async$_compileStylesheet0, $async$completer);
  8692. },
  8693. _compileStylesheet_closure0: function _compileStylesheet_closure0(t0, t1) {
  8694. this.stylesheet = t0;
  8695. this.importCache = t1;
  8696. },
  8697. AsyncEnvironment$() {
  8698. var t1 = type$.String,
  8699. t2 = type$.Module_AsyncCallable,
  8700. t3 = type$.AstNode,
  8701. t4 = type$.int,
  8702. t5 = type$.AsyncCallable,
  8703. t6 = type$.JSArray_Map_String_AsyncCallable;
  8704. return new A.AsyncEnvironment(A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), A.LinkedHashMap_LinkedHashMap$_empty(t1, t3), A.LinkedHashMap_LinkedHashMap$_empty(t2, t3), A.LinkedHashMap_LinkedHashMap$_empty(t2, t3), null, null, A._setArrayType([], type$.JSArray_Module_AsyncCallable), A._setArrayType([A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Value)], type$.JSArray_Map_String_Value), A._setArrayType([A.LinkedHashMap_LinkedHashMap$_empty(t1, t3)], type$.JSArray_Map_String_AstNode), A.LinkedHashMap_LinkedHashMap$_empty(t1, t4), A._setArrayType([A.LinkedHashMap_LinkedHashMap$_empty(t1, t5)], t6), A.LinkedHashMap_LinkedHashMap$_empty(t1, t4), A._setArrayType([A.LinkedHashMap_LinkedHashMap$_empty(t1, t5)], t6), A.LinkedHashMap_LinkedHashMap$_empty(t1, t4), null);
  8705. },
  8706. AsyncEnvironment$_(_modules, _namespaceNodes, _globalModules, _importedModules, _forwardedModules, _nestedForwardedModules, _allModules, _variables, _variableNodes, _functions, _mixins, _content) {
  8707. var t1 = type$.String,
  8708. t2 = type$.int;
  8709. return new A.AsyncEnvironment(_modules, _namespaceNodes, _globalModules, _importedModules, _forwardedModules, _nestedForwardedModules, _allModules, _variables, _variableNodes, A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _functions, A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _mixins, A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _content);
  8710. },
  8711. _EnvironmentModule__EnvironmentModule0(environment, css, extensionStore, forwarded) {
  8712. var t1, t2, t3, t4, t5, t6;
  8713. if (forwarded == null)
  8714. forwarded = B.Set_empty1;
  8715. t1 = A._EnvironmentModule__makeModulesByVariable0(forwarded);
  8716. t2 = A._EnvironmentModule__memberMap0(B.JSArray_methods.get$first(environment._async_environment$_variables), forwarded.map$1$1(0, new A._EnvironmentModule__EnvironmentModule_closure5(), type$.Map_String_Value), type$.Value);
  8717. t3 = A._EnvironmentModule__memberMap0(B.JSArray_methods.get$first(environment._async_environment$_variableNodes), forwarded.map$1$1(0, new A._EnvironmentModule__EnvironmentModule_closure6(), type$.Map_String_AstNode), type$.AstNode);
  8718. t4 = type$.Map_String_AsyncCallable;
  8719. t5 = type$.AsyncCallable;
  8720. t6 = A._EnvironmentModule__memberMap0(B.JSArray_methods.get$first(environment._async_environment$_functions), forwarded.map$1$1(0, new A._EnvironmentModule__EnvironmentModule_closure7(), t4), t5);
  8721. t5 = A._EnvironmentModule__memberMap0(B.JSArray_methods.get$first(environment._async_environment$_mixins), forwarded.map$1$1(0, new A._EnvironmentModule__EnvironmentModule_closure8(), t4), t5);
  8722. t4 = J.get$isNotEmpty$asx(css.get$children(css)) || B.JSArray_methods.any$1(environment._async_environment$_allModules, new A._EnvironmentModule__EnvironmentModule_closure9());
  8723. return A._EnvironmentModule$_0(environment, css, extensionStore, t1, t2, t3, t6, t5, t4, !extensionStore.get$isEmpty(extensionStore) || B.JSArray_methods.any$1(environment._async_environment$_allModules, new A._EnvironmentModule__EnvironmentModule_closure10()));
  8724. },
  8725. _EnvironmentModule__makeModulesByVariable0(forwarded) {
  8726. var modulesByVariable, t1, t2, t3, t4, t5;
  8727. if (forwarded.get$isEmpty(forwarded))
  8728. return B.Map_empty3;
  8729. modulesByVariable = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.Module_AsyncCallable);
  8730. for (t1 = forwarded.get$iterator(forwarded); t1.moveNext$0();) {
  8731. t2 = t1.get$current(t1);
  8732. if (t2 instanceof A._EnvironmentModule0) {
  8733. for (t3 = t2._async_environment$_modulesByVariable, t3 = t3.get$values(t3), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  8734. t4 = t3.get$current(t3);
  8735. t5 = t4.get$variables();
  8736. A.setAll(modulesByVariable, t5.get$keys(t5), t4);
  8737. }
  8738. A.setAll(modulesByVariable, J.get$keys$z(B.JSArray_methods.get$first(t2._async_environment$_environment._async_environment$_variables)), t2);
  8739. } else {
  8740. t3 = t2.get$variables();
  8741. A.setAll(modulesByVariable, t3.get$keys(t3), t2);
  8742. }
  8743. }
  8744. return modulesByVariable;
  8745. },
  8746. _EnvironmentModule__memberMap0(localMap, otherMaps, $V) {
  8747. var t1, t2, t3;
  8748. localMap = new A.PublicMemberMapView(localMap, $V._eval$1("PublicMemberMapView<0>"));
  8749. if (otherMaps.get$isEmpty(otherMaps))
  8750. return localMap;
  8751. t1 = A._setArrayType([], $V._eval$1("JSArray<Map<String,0>>"));
  8752. for (t2 = otherMaps.get$iterator(otherMaps); t2.moveNext$0();) {
  8753. t3 = t2.get$current(t2);
  8754. if (t3.get$isNotEmpty(t3))
  8755. t1.push(t3);
  8756. }
  8757. t1.push(localMap);
  8758. if (t1.length === 1)
  8759. return localMap;
  8760. return A.MergedMapView$(t1, type$.String, $V);
  8761. },
  8762. _EnvironmentModule$_0(_environment, css, extensionStore, _modulesByVariable, variables, variableNodes, functions, mixins, transitivelyContainsCss, transitivelyContainsExtensions) {
  8763. return new A._EnvironmentModule0(_environment._async_environment$_allModules, variables, variableNodes, functions, mixins, extensionStore, css, transitivelyContainsCss, transitivelyContainsExtensions, _environment, _modulesByVariable);
  8764. },
  8765. AsyncEnvironment: function AsyncEnvironment(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14) {
  8766. var _ = this;
  8767. _._async_environment$_modules = t0;
  8768. _._async_environment$_namespaceNodes = t1;
  8769. _._async_environment$_globalModules = t2;
  8770. _._async_environment$_importedModules = t3;
  8771. _._async_environment$_forwardedModules = t4;
  8772. _._async_environment$_nestedForwardedModules = t5;
  8773. _._async_environment$_allModules = t6;
  8774. _._async_environment$_variables = t7;
  8775. _._async_environment$_variableNodes = t8;
  8776. _._async_environment$_variableIndices = t9;
  8777. _._async_environment$_functions = t10;
  8778. _._async_environment$_functionIndices = t11;
  8779. _._async_environment$_mixins = t12;
  8780. _._async_environment$_mixinIndices = t13;
  8781. _._async_environment$_content = t14;
  8782. _._async_environment$_inMixin = false;
  8783. _._async_environment$_inSemiGlobalScope = true;
  8784. _._async_environment$_lastVariableIndex = _._async_environment$_lastVariableName = null;
  8785. },
  8786. AsyncEnvironment_importForwards_closure: function AsyncEnvironment_importForwards_closure() {
  8787. },
  8788. AsyncEnvironment_importForwards_closure0: function AsyncEnvironment_importForwards_closure0() {
  8789. },
  8790. AsyncEnvironment_importForwards_closure1: function AsyncEnvironment_importForwards_closure1() {
  8791. },
  8792. AsyncEnvironment__getVariableFromGlobalModule_closure: function AsyncEnvironment__getVariableFromGlobalModule_closure(t0) {
  8793. this.name = t0;
  8794. },
  8795. AsyncEnvironment_setVariable_closure: function AsyncEnvironment_setVariable_closure(t0, t1) {
  8796. this.$this = t0;
  8797. this.name = t1;
  8798. },
  8799. AsyncEnvironment_setVariable_closure0: function AsyncEnvironment_setVariable_closure0(t0) {
  8800. this.name = t0;
  8801. },
  8802. AsyncEnvironment_setVariable_closure1: function AsyncEnvironment_setVariable_closure1(t0, t1) {
  8803. this.$this = t0;
  8804. this.name = t1;
  8805. },
  8806. AsyncEnvironment__getFunctionFromGlobalModule_closure: function AsyncEnvironment__getFunctionFromGlobalModule_closure(t0) {
  8807. this.name = t0;
  8808. },
  8809. AsyncEnvironment__getMixinFromGlobalModule_closure: function AsyncEnvironment__getMixinFromGlobalModule_closure(t0) {
  8810. this.name = t0;
  8811. },
  8812. AsyncEnvironment_toModule_closure: function AsyncEnvironment_toModule_closure() {
  8813. },
  8814. AsyncEnvironment_toDummyModule_closure: function AsyncEnvironment_toDummyModule_closure() {
  8815. },
  8816. AsyncEnvironment__fromOneModule_closure: function AsyncEnvironment__fromOneModule_closure(t0, t1) {
  8817. this.callback = t0;
  8818. this.T = t1;
  8819. },
  8820. AsyncEnvironment__fromOneModule__closure: function AsyncEnvironment__fromOneModule__closure(t0, t1) {
  8821. this.entry = t0;
  8822. this.T = t1;
  8823. },
  8824. _EnvironmentModule0: function _EnvironmentModule0(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10) {
  8825. var _ = this;
  8826. _.upstream = t0;
  8827. _.variables = t1;
  8828. _.variableNodes = t2;
  8829. _.functions = t3;
  8830. _.mixins = t4;
  8831. _.extensionStore = t5;
  8832. _.css = t6;
  8833. _.transitivelyContainsCss = t7;
  8834. _.transitivelyContainsExtensions = t8;
  8835. _._async_environment$_environment = t9;
  8836. _._async_environment$_modulesByVariable = t10;
  8837. },
  8838. _EnvironmentModule__EnvironmentModule_closure5: function _EnvironmentModule__EnvironmentModule_closure5() {
  8839. },
  8840. _EnvironmentModule__EnvironmentModule_closure6: function _EnvironmentModule__EnvironmentModule_closure6() {
  8841. },
  8842. _EnvironmentModule__EnvironmentModule_closure7: function _EnvironmentModule__EnvironmentModule_closure7() {
  8843. },
  8844. _EnvironmentModule__EnvironmentModule_closure8: function _EnvironmentModule__EnvironmentModule_closure8() {
  8845. },
  8846. _EnvironmentModule__EnvironmentModule_closure9: function _EnvironmentModule__EnvironmentModule_closure9() {
  8847. },
  8848. _EnvironmentModule__EnvironmentModule_closure10: function _EnvironmentModule__EnvironmentModule_closure10() {
  8849. },
  8850. AsyncImportCache__toImporters(importers, loadPaths, packageConfig) {
  8851. var sassPath, t2, t3, _i, path, _null = null,
  8852. t1 = J.get$env$x(self.process);
  8853. if (t1 == null)
  8854. t1 = type$.Object._as(t1);
  8855. sassPath = A._asStringQ(t1.SASS_PATH);
  8856. t1 = A._setArrayType([], type$.JSArray_AsyncImporter_2);
  8857. for (t2 = J.get$iterator$ax(loadPaths); t2.moveNext$0();) {
  8858. t3 = t2.get$current(t2);
  8859. t1.push(new A.FilesystemImporter($.$get$context().absolute$15(t3, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null)));
  8860. }
  8861. if (sassPath != null) {
  8862. t2 = sassPath.split(J.$eq$(J.get$platform$x(self.process), "win32") ? ";" : ":");
  8863. t3 = t2.length;
  8864. _i = 0;
  8865. for (; _i < t3; ++_i) {
  8866. path = t2[_i];
  8867. t1.push(new A.FilesystemImporter($.$get$context().absolute$15(path, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null)));
  8868. }
  8869. }
  8870. return t1;
  8871. },
  8872. AsyncImportCache: function AsyncImportCache(t0, t1, t2, t3, t4, t5) {
  8873. var _ = this;
  8874. _._async_import_cache$_importers = t0;
  8875. _._async_import_cache$_logger = t1;
  8876. _._async_import_cache$_canonicalizeCache = t2;
  8877. _._async_import_cache$_relativeCanonicalizeCache = t3;
  8878. _._async_import_cache$_importCache = t4;
  8879. _._async_import_cache$_resultsCache = t5;
  8880. },
  8881. AsyncImportCache_canonicalize_closure: function AsyncImportCache_canonicalize_closure(t0, t1, t2, t3, t4) {
  8882. var _ = this;
  8883. _.$this = t0;
  8884. _.baseUrl = t1;
  8885. _.url = t2;
  8886. _.baseImporter = t3;
  8887. _.forImport = t4;
  8888. },
  8889. AsyncImportCache_canonicalize_closure0: function AsyncImportCache_canonicalize_closure0(t0, t1, t2) {
  8890. this.$this = t0;
  8891. this.url = t1;
  8892. this.forImport = t2;
  8893. },
  8894. AsyncImportCache__canonicalize_closure: function AsyncImportCache__canonicalize_closure(t0, t1) {
  8895. this.importer = t0;
  8896. this.url = t1;
  8897. },
  8898. AsyncImportCache_importCanonical_closure: function AsyncImportCache_importCanonical_closure(t0, t1, t2, t3, t4) {
  8899. var _ = this;
  8900. _.$this = t0;
  8901. _.importer = t1;
  8902. _.canonicalUrl = t2;
  8903. _.originalUrl = t3;
  8904. _.quiet = t4;
  8905. },
  8906. AsyncImportCache_humanize_closure: function AsyncImportCache_humanize_closure(t0) {
  8907. this.canonicalUrl = t0;
  8908. },
  8909. AsyncImportCache_humanize_closure0: function AsyncImportCache_humanize_closure0() {
  8910. },
  8911. AsyncImportCache_humanize_closure1: function AsyncImportCache_humanize_closure1() {
  8912. },
  8913. AsyncBuiltInCallable$mixin($name, $arguments, callback, url) {
  8914. return new A.AsyncBuiltInCallable($name, A.ScssParser$("@mixin " + $name + "(" + $arguments + ") {", null, url).parseArgumentDeclaration$0(), new A.AsyncBuiltInCallable$mixin_closure(callback));
  8915. },
  8916. AsyncBuiltInCallable: function AsyncBuiltInCallable(t0, t1, t2) {
  8917. this.name = t0;
  8918. this._async_built_in$_arguments = t1;
  8919. this._async_built_in$_callback = t2;
  8920. },
  8921. AsyncBuiltInCallable$mixin_closure: function AsyncBuiltInCallable$mixin_closure(t0) {
  8922. this.callback = t0;
  8923. },
  8924. BuiltInCallable$function($name, $arguments, callback, url) {
  8925. return new A.BuiltInCallable($name, A._setArrayType([new A.Tuple2(A.ScssParser$("@function " + $name + "(" + $arguments + ") {", null, url).parseArgumentDeclaration$0(), callback, type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value)], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value));
  8926. },
  8927. BuiltInCallable$mixin($name, $arguments, callback, url) {
  8928. return new A.BuiltInCallable($name, A._setArrayType([new A.Tuple2(A.ScssParser$("@mixin " + $name + "(" + $arguments + ") {", null, url).parseArgumentDeclaration$0(), new A.BuiltInCallable$mixin_closure(callback), type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value)], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value));
  8929. },
  8930. BuiltInCallable$overloadedFunction($name, overloads) {
  8931. var t2, t3, t4, t5, t6, t7, t8,
  8932. t1 = A._setArrayType([], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value);
  8933. for (t2 = overloads.get$entries(overloads), t2 = t2.get$iterator(t2), t3 = type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value, t4 = "@function " + $name + "(", t5 = type$.String, t6 = type$.VariableDeclaration; t2.moveNext$0();) {
  8934. t7 = t2.get$current(t2);
  8935. t8 = A.SpanScanner$(t4 + A.S(t7.key) + ") {", null);
  8936. t1.push(new A.Tuple2(new A.ScssParser(A.LinkedHashMap_LinkedHashMap$_empty(t5, t6), t8, B.StderrLogger_false).parseArgumentDeclaration$0(), t7.value, t3));
  8937. }
  8938. return new A.BuiltInCallable($name, t1);
  8939. },
  8940. BuiltInCallable: function BuiltInCallable(t0, t1) {
  8941. this.name = t0;
  8942. this._overloads = t1;
  8943. },
  8944. BuiltInCallable$mixin_closure: function BuiltInCallable$mixin_closure(t0) {
  8945. this.callback = t0;
  8946. },
  8947. PlainCssCallable: function PlainCssCallable(t0) {
  8948. this.name = t0;
  8949. },
  8950. UserDefinedCallable: function UserDefinedCallable(t0, t1, t2, t3) {
  8951. var _ = this;
  8952. _.declaration = t0;
  8953. _.environment = t1;
  8954. _.inDependency = t2;
  8955. _.$ti = t3;
  8956. },
  8957. _compileStylesheet(stylesheet, logger, importCache, nodeImporter, importer, functions, style, useSpaces, indentWidth, lineFeed, quietDeps, sourceMap, charset) {
  8958. var serializeResult = A.serialize(A._EvaluateVisitor$(functions, importCache, logger, nodeImporter, quietDeps, sourceMap).run$2(0, importer, stylesheet).stylesheet, charset, indentWidth, false, lineFeed, sourceMap, style, true),
  8959. resultSourceMap = serializeResult.sourceMap;
  8960. if (resultSourceMap != null && true)
  8961. A.mapInPlace(resultSourceMap.urls, new A._compileStylesheet_closure(stylesheet, importCache));
  8962. return new A.CompileResult(serializeResult);
  8963. },
  8964. _compileStylesheet_closure: function _compileStylesheet_closure(t0, t1) {
  8965. this.stylesheet = t0;
  8966. this.importCache = t1;
  8967. },
  8968. CompileResult: function CompileResult(t0) {
  8969. this._serialize = t0;
  8970. },
  8971. Configuration: function Configuration(t0, t1) {
  8972. this._values = t0;
  8973. this.__originalConfiguration = t1;
  8974. },
  8975. Configuration_toString_closure: function Configuration_toString_closure() {
  8976. },
  8977. ExplicitConfiguration: function ExplicitConfiguration(t0, t1, t2) {
  8978. this.nodeWithSpan = t0;
  8979. this._values = t1;
  8980. this.__originalConfiguration = t2;
  8981. },
  8982. ConfiguredValue: function ConfiguredValue(t0, t1, t2) {
  8983. this.value = t0;
  8984. this.configurationSpan = t1;
  8985. this.assignmentNode = t2;
  8986. },
  8987. Environment$() {
  8988. var t1 = type$.String,
  8989. t2 = type$.Module_Callable,
  8990. t3 = type$.AstNode,
  8991. t4 = type$.int,
  8992. t5 = type$.Callable,
  8993. t6 = type$.JSArray_Map_String_Callable;
  8994. return new A.Environment(A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), A.LinkedHashMap_LinkedHashMap$_empty(t1, t3), A.LinkedHashMap_LinkedHashMap$_empty(t2, t3), A.LinkedHashMap_LinkedHashMap$_empty(t2, t3), null, null, A._setArrayType([], type$.JSArray_Module_Callable), A._setArrayType([A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Value)], type$.JSArray_Map_String_Value), A._setArrayType([A.LinkedHashMap_LinkedHashMap$_empty(t1, t3)], type$.JSArray_Map_String_AstNode), A.LinkedHashMap_LinkedHashMap$_empty(t1, t4), A._setArrayType([A.LinkedHashMap_LinkedHashMap$_empty(t1, t5)], t6), A.LinkedHashMap_LinkedHashMap$_empty(t1, t4), A._setArrayType([A.LinkedHashMap_LinkedHashMap$_empty(t1, t5)], t6), A.LinkedHashMap_LinkedHashMap$_empty(t1, t4), null);
  8995. },
  8996. Environment$_(_modules, _namespaceNodes, _globalModules, _importedModules, _forwardedModules, _nestedForwardedModules, _allModules, _variables, _variableNodes, _functions, _mixins, _content) {
  8997. var t1 = type$.String,
  8998. t2 = type$.int;
  8999. return new A.Environment(_modules, _namespaceNodes, _globalModules, _importedModules, _forwardedModules, _nestedForwardedModules, _allModules, _variables, _variableNodes, A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _functions, A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _mixins, A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _content);
  9000. },
  9001. _EnvironmentModule__EnvironmentModule(environment, css, extensionStore, forwarded) {
  9002. var t1, t2, t3, t4, t5, t6;
  9003. if (forwarded == null)
  9004. forwarded = B.Set_empty;
  9005. t1 = A._EnvironmentModule__makeModulesByVariable(forwarded);
  9006. t2 = A._EnvironmentModule__memberMap(B.JSArray_methods.get$first(environment._variables), forwarded.map$1$1(0, new A._EnvironmentModule__EnvironmentModule_closure(), type$.Map_String_Value), type$.Value);
  9007. t3 = A._EnvironmentModule__memberMap(B.JSArray_methods.get$first(environment._variableNodes), forwarded.map$1$1(0, new A._EnvironmentModule__EnvironmentModule_closure0(), type$.Map_String_AstNode), type$.AstNode);
  9008. t4 = type$.Map_String_Callable;
  9009. t5 = type$.Callable;
  9010. t6 = A._EnvironmentModule__memberMap(B.JSArray_methods.get$first(environment._functions), forwarded.map$1$1(0, new A._EnvironmentModule__EnvironmentModule_closure1(), t4), t5);
  9011. t5 = A._EnvironmentModule__memberMap(B.JSArray_methods.get$first(environment._mixins), forwarded.map$1$1(0, new A._EnvironmentModule__EnvironmentModule_closure2(), t4), t5);
  9012. t4 = J.get$isNotEmpty$asx(css.get$children(css)) || B.JSArray_methods.any$1(environment._allModules, new A._EnvironmentModule__EnvironmentModule_closure3());
  9013. return A._EnvironmentModule$_(environment, css, extensionStore, t1, t2, t3, t6, t5, t4, !extensionStore.get$isEmpty(extensionStore) || B.JSArray_methods.any$1(environment._allModules, new A._EnvironmentModule__EnvironmentModule_closure4()));
  9014. },
  9015. _EnvironmentModule__makeModulesByVariable(forwarded) {
  9016. var modulesByVariable, t1, t2, t3, t4, t5;
  9017. if (forwarded.get$isEmpty(forwarded))
  9018. return B.Map_empty;
  9019. modulesByVariable = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.Module_Callable);
  9020. for (t1 = forwarded.get$iterator(forwarded); t1.moveNext$0();) {
  9021. t2 = t1.get$current(t1);
  9022. if (t2 instanceof A._EnvironmentModule) {
  9023. for (t3 = t2._modulesByVariable, t3 = t3.get$values(t3), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  9024. t4 = t3.get$current(t3);
  9025. t5 = t4.get$variables();
  9026. A.setAll(modulesByVariable, t5.get$keys(t5), t4);
  9027. }
  9028. A.setAll(modulesByVariable, J.get$keys$z(B.JSArray_methods.get$first(t2._environment$_environment._variables)), t2);
  9029. } else {
  9030. t3 = t2.get$variables();
  9031. A.setAll(modulesByVariable, t3.get$keys(t3), t2);
  9032. }
  9033. }
  9034. return modulesByVariable;
  9035. },
  9036. _EnvironmentModule__memberMap(localMap, otherMaps, $V) {
  9037. var t1, t2, t3;
  9038. localMap = new A.PublicMemberMapView(localMap, $V._eval$1("PublicMemberMapView<0>"));
  9039. if (otherMaps.get$isEmpty(otherMaps))
  9040. return localMap;
  9041. t1 = A._setArrayType([], $V._eval$1("JSArray<Map<String,0>>"));
  9042. for (t2 = otherMaps.get$iterator(otherMaps); t2.moveNext$0();) {
  9043. t3 = t2.get$current(t2);
  9044. if (t3.get$isNotEmpty(t3))
  9045. t1.push(t3);
  9046. }
  9047. t1.push(localMap);
  9048. if (t1.length === 1)
  9049. return localMap;
  9050. return A.MergedMapView$(t1, type$.String, $V);
  9051. },
  9052. _EnvironmentModule$_(_environment, css, extensionStore, _modulesByVariable, variables, variableNodes, functions, mixins, transitivelyContainsCss, transitivelyContainsExtensions) {
  9053. return new A._EnvironmentModule(_environment._allModules, variables, variableNodes, functions, mixins, extensionStore, css, transitivelyContainsCss, transitivelyContainsExtensions, _environment, _modulesByVariable);
  9054. },
  9055. Environment: function Environment(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14) {
  9056. var _ = this;
  9057. _._environment$_modules = t0;
  9058. _._namespaceNodes = t1;
  9059. _._globalModules = t2;
  9060. _._importedModules = t3;
  9061. _._forwardedModules = t4;
  9062. _._nestedForwardedModules = t5;
  9063. _._allModules = t6;
  9064. _._variables = t7;
  9065. _._variableNodes = t8;
  9066. _._variableIndices = t9;
  9067. _._functions = t10;
  9068. _._functionIndices = t11;
  9069. _._mixins = t12;
  9070. _._mixinIndices = t13;
  9071. _._content = t14;
  9072. _._inMixin = false;
  9073. _._inSemiGlobalScope = true;
  9074. _._lastVariableIndex = _._lastVariableName = null;
  9075. },
  9076. Environment_importForwards_closure: function Environment_importForwards_closure() {
  9077. },
  9078. Environment_importForwards_closure0: function Environment_importForwards_closure0() {
  9079. },
  9080. Environment_importForwards_closure1: function Environment_importForwards_closure1() {
  9081. },
  9082. Environment__getVariableFromGlobalModule_closure: function Environment__getVariableFromGlobalModule_closure(t0) {
  9083. this.name = t0;
  9084. },
  9085. Environment_setVariable_closure: function Environment_setVariable_closure(t0, t1) {
  9086. this.$this = t0;
  9087. this.name = t1;
  9088. },
  9089. Environment_setVariable_closure0: function Environment_setVariable_closure0(t0) {
  9090. this.name = t0;
  9091. },
  9092. Environment_setVariable_closure1: function Environment_setVariable_closure1(t0, t1) {
  9093. this.$this = t0;
  9094. this.name = t1;
  9095. },
  9096. Environment__getFunctionFromGlobalModule_closure: function Environment__getFunctionFromGlobalModule_closure(t0) {
  9097. this.name = t0;
  9098. },
  9099. Environment__getMixinFromGlobalModule_closure: function Environment__getMixinFromGlobalModule_closure(t0) {
  9100. this.name = t0;
  9101. },
  9102. Environment_toModule_closure: function Environment_toModule_closure() {
  9103. },
  9104. Environment_toDummyModule_closure: function Environment_toDummyModule_closure() {
  9105. },
  9106. Environment__fromOneModule_closure: function Environment__fromOneModule_closure(t0, t1) {
  9107. this.callback = t0;
  9108. this.T = t1;
  9109. },
  9110. Environment__fromOneModule__closure: function Environment__fromOneModule__closure(t0, t1) {
  9111. this.entry = t0;
  9112. this.T = t1;
  9113. },
  9114. _EnvironmentModule: function _EnvironmentModule(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10) {
  9115. var _ = this;
  9116. _.upstream = t0;
  9117. _.variables = t1;
  9118. _.variableNodes = t2;
  9119. _.functions = t3;
  9120. _.mixins = t4;
  9121. _.extensionStore = t5;
  9122. _.css = t6;
  9123. _.transitivelyContainsCss = t7;
  9124. _.transitivelyContainsExtensions = t8;
  9125. _._environment$_environment = t9;
  9126. _._modulesByVariable = t10;
  9127. },
  9128. _EnvironmentModule__EnvironmentModule_closure: function _EnvironmentModule__EnvironmentModule_closure() {
  9129. },
  9130. _EnvironmentModule__EnvironmentModule_closure0: function _EnvironmentModule__EnvironmentModule_closure0() {
  9131. },
  9132. _EnvironmentModule__EnvironmentModule_closure1: function _EnvironmentModule__EnvironmentModule_closure1() {
  9133. },
  9134. _EnvironmentModule__EnvironmentModule_closure2: function _EnvironmentModule__EnvironmentModule_closure2() {
  9135. },
  9136. _EnvironmentModule__EnvironmentModule_closure3: function _EnvironmentModule__EnvironmentModule_closure3() {
  9137. },
  9138. _EnvironmentModule__EnvironmentModule_closure4: function _EnvironmentModule__EnvironmentModule_closure4() {
  9139. },
  9140. SassException$(message, span) {
  9141. return new A.SassException(message, span);
  9142. },
  9143. MultiSpanSassRuntimeException$(message, span, primaryLabel, secondarySpans, trace) {
  9144. return new A.MultiSpanSassRuntimeException(trace, primaryLabel, A.ConstantMap_ConstantMap$from(secondarySpans, type$.FileSpan, type$.String), message, span);
  9145. },
  9146. SassFormatException$(message, span) {
  9147. return new A.SassFormatException(message, span);
  9148. },
  9149. SassScriptException$(message, argumentName) {
  9150. return new A.SassScriptException(argumentName == null ? message : "$" + argumentName + ": " + message);
  9151. },
  9152. MultiSpanSassScriptException$(message, primaryLabel, secondarySpans) {
  9153. var t1 = A.ConstantMap_ConstantMap$from(secondarySpans, type$.FileSpan, type$.String);
  9154. return new A.MultiSpanSassScriptException(primaryLabel, t1, message);
  9155. },
  9156. SassException: function SassException(t0, t1) {
  9157. this._span_exception$_message = t0;
  9158. this._span = t1;
  9159. },
  9160. MultiSpanSassException: function MultiSpanSassException(t0, t1, t2, t3) {
  9161. var _ = this;
  9162. _.primaryLabel = t0;
  9163. _.secondarySpans = t1;
  9164. _._span_exception$_message = t2;
  9165. _._span = t3;
  9166. },
  9167. SassRuntimeException: function SassRuntimeException(t0, t1, t2) {
  9168. this.trace = t0;
  9169. this._span_exception$_message = t1;
  9170. this._span = t2;
  9171. },
  9172. MultiSpanSassRuntimeException: function MultiSpanSassRuntimeException(t0, t1, t2, t3, t4) {
  9173. var _ = this;
  9174. _.trace = t0;
  9175. _.primaryLabel = t1;
  9176. _.secondarySpans = t2;
  9177. _._span_exception$_message = t3;
  9178. _._span = t4;
  9179. },
  9180. SassFormatException: function SassFormatException(t0, t1) {
  9181. this._span_exception$_message = t0;
  9182. this._span = t1;
  9183. },
  9184. SassScriptException: function SassScriptException(t0) {
  9185. this.message = t0;
  9186. },
  9187. MultiSpanSassScriptException: function MultiSpanSassScriptException(t0, t1, t2) {
  9188. this.primaryLabel = t0;
  9189. this.secondarySpans = t1;
  9190. this.message = t2;
  9191. },
  9192. compileStylesheet(options, graph, source, destination, ifModified) {
  9193. return A.compileStylesheet$body(options, graph, source, destination, ifModified);
  9194. },
  9195. compileStylesheet$body(options, graph, source, destination, ifModified) {
  9196. var $async$goto = 0,
  9197. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  9198. $async$returnValue, $async$handler = 2, $async$currentError, syntax, result, importCache, error, exception, t1, t2, t3, t4, t5, t6, t7, t8, t9, result0, logger, terseLogger, stylesheet, t0, css, buffer, sourceName, importer, $async$exception;
  9199. var $async$compileStylesheet = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  9200. if ($async$errorCode === 1) {
  9201. $async$currentError = $async$result;
  9202. $async$goto = $async$handler;
  9203. }
  9204. while (true)
  9205. switch ($async$goto) {
  9206. case 0:
  9207. // Function start
  9208. importer = new A.FilesystemImporter(A.absolute(".", null, null, null, null, null, null, null, null, null, null, null, null, null, null));
  9209. if (ifModified)
  9210. try {
  9211. if (source != null && destination != null && !graph.modifiedSince$3($.$get$context().toUri$1(source), A.modificationTime(destination), importer)) {
  9212. // goto return
  9213. $async$goto = 1;
  9214. break;
  9215. }
  9216. } catch (exception) {
  9217. if (!(A.unwrapException(exception) instanceof A.FileSystemException))
  9218. throw exception;
  9219. }
  9220. syntax = null;
  9221. if (A._asBoolQ(options._ifParsed$1("indented")) === true)
  9222. syntax = B.Syntax_Sass_sass;
  9223. else if (source != null)
  9224. syntax = A.Syntax_forPath(source);
  9225. else
  9226. syntax = B.Syntax_SCSS_scss;
  9227. result = null;
  9228. $async$handler = 4;
  9229. t1 = options._options;
  9230. $async$goto = A._asBool(t1.$index(0, "async")) ? 7 : 9;
  9231. break;
  9232. case 7:
  9233. // then
  9234. t2 = type$.List_String._as(t1.$index(0, "load-path"));
  9235. t3 = A._asBool(t1.$index(0, "quiet")) ? $.$get$Logger_quiet() : new A.StderrLogger(options.get$color());
  9236. t4 = type$.nullable_Tuple3_AsyncImporter_Uri_Uri;
  9237. t5 = type$.Uri;
  9238. t2 = A.AsyncImportCache__toImporters(null, t2, null);
  9239. importCache = new A.AsyncImportCache(t2, t3, A.LinkedHashMap_LinkedHashMap$_empty(type$.Tuple2_Uri_bool, t4), A.LinkedHashMap_LinkedHashMap$_empty(type$.Tuple4_of_Uri_and_bool_and_AsyncImporter_and_nullable_Uri, t4), A.LinkedHashMap_LinkedHashMap$_empty(t5, type$.nullable_Stylesheet), A.LinkedHashMap_LinkedHashMap$_empty(t5, type$.ImporterResult));
  9240. $async$goto = source == null ? 10 : 12;
  9241. break;
  9242. case 10:
  9243. // then
  9244. $async$goto = 13;
  9245. return A._asyncAwait(A.readStdin(), $async$compileStylesheet);
  9246. case 13:
  9247. // returning from await.
  9248. t2 = $async$result;
  9249. t3 = syntax;
  9250. t4 = A._asBool(t1.$index(0, "quiet")) ? $.$get$Logger_quiet() : new A.StderrLogger(options.get$color());
  9251. t5 = A.absolute(".", null, null, null, null, null, null, null, null, null, null, null, null, null, null);
  9252. t6 = J.$eq$(t1.$index(0, "style"), "compressed") ? B.OutputStyle_1 : B.OutputStyle_0;
  9253. t7 = A._asBool(t1.$index(0, "quiet-deps"));
  9254. t8 = A._asBool(t1.$index(0, "verbose"));
  9255. t9 = options.get$emitSourceMap();
  9256. $async$goto = 14;
  9257. return A._asyncAwait(A.compileStringAsync(t2, A._asBool(t1.$index(0, "charset")), importCache, new A.FilesystemImporter(t5), t4, t7, t9, t6, t3, t8), $async$compileStylesheet);
  9258. case 14:
  9259. // returning from await.
  9260. result0 = $async$result;
  9261. // goto join
  9262. $async$goto = 11;
  9263. break;
  9264. case 12:
  9265. // else
  9266. t2 = syntax;
  9267. t3 = A._asBool(t1.$index(0, "quiet")) ? $.$get$Logger_quiet() : new A.StderrLogger(options.get$color());
  9268. t4 = J.$eq$(t1.$index(0, "style"), "compressed") ? B.OutputStyle_1 : B.OutputStyle_0;
  9269. t5 = A._asBool(t1.$index(0, "quiet-deps"));
  9270. t6 = A._asBool(t1.$index(0, "verbose"));
  9271. t7 = options.get$emitSourceMap();
  9272. $async$goto = 15;
  9273. return A._asyncAwait(A.compileAsync(source, A._asBool(t1.$index(0, "charset")), importCache, t3, t5, t7, t4, t2, t6), $async$compileStylesheet);
  9274. case 15:
  9275. // returning from await.
  9276. result0 = $async$result;
  9277. case 11:
  9278. // join
  9279. result = result0;
  9280. // goto join
  9281. $async$goto = 8;
  9282. break;
  9283. case 9:
  9284. // else
  9285. $async$goto = source == null ? 16 : 18;
  9286. break;
  9287. case 16:
  9288. // then
  9289. $async$goto = 19;
  9290. return A._asyncAwait(A.readStdin(), $async$compileStylesheet);
  9291. case 19:
  9292. // returning from await.
  9293. t2 = $async$result;
  9294. t3 = syntax;
  9295. logger = A._asBool(t1.$index(0, "quiet")) ? $.$get$Logger_quiet() : new A.StderrLogger(options.get$color());
  9296. t4 = A.absolute(".", null, null, null, null, null, null, null, null, null, null, null, null, null, null);
  9297. t5 = J.$eq$(t1.$index(0, "style"), "compressed") ? B.OutputStyle_1 : B.OutputStyle_0;
  9298. t6 = A._asBool(t1.$index(0, "quiet-deps"));
  9299. t7 = A._asBool(t1.$index(0, "verbose"));
  9300. t8 = options.get$emitSourceMap();
  9301. t1 = A._asBool(t1.$index(0, "charset"));
  9302. if (!t7) {
  9303. terseLogger = new A.TerseLogger(A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.int), logger);
  9304. logger = terseLogger;
  9305. } else
  9306. terseLogger = null;
  9307. stylesheet = A.Stylesheet_Stylesheet$parse(t2, t3 == null ? B.Syntax_SCSS_scss : t3, logger, null);
  9308. result0 = A._compileStylesheet(stylesheet, logger, graph.importCache, null, new A.FilesystemImporter(t4), null, t5, true, null, null, t6, t8, t1);
  9309. if (terseLogger != null)
  9310. terseLogger.summarize$1$node(false);
  9311. // goto join
  9312. $async$goto = 17;
  9313. break;
  9314. case 18:
  9315. // else
  9316. t2 = syntax;
  9317. logger = A._asBool(t1.$index(0, "quiet")) ? $.$get$Logger_quiet() : new A.StderrLogger(options.get$color());
  9318. importCache = graph.importCache;
  9319. t3 = J.$eq$(t1.$index(0, "style"), "compressed") ? B.OutputStyle_1 : B.OutputStyle_0;
  9320. t4 = A._asBool(t1.$index(0, "quiet-deps"));
  9321. t5 = A._asBool(t1.$index(0, "verbose"));
  9322. t6 = options.get$emitSourceMap();
  9323. t1 = A._asBool(t1.$index(0, "charset"));
  9324. if (!t5) {
  9325. terseLogger = new A.TerseLogger(A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.int), logger);
  9326. logger = terseLogger;
  9327. } else
  9328. terseLogger = null;
  9329. t5 = t2 == null || t2 === A.Syntax_forPath(source);
  9330. if (t5) {
  9331. t2 = A.absolute(".", null, null, null, null, null, null, null, null, null, null, null, null, null, null);
  9332. if (J.$eq$(J.get$platform$x(self.process), "win32") || J.$eq$(J.get$platform$x(self.process), "darwin")) {
  9333. t5 = $.$get$context();
  9334. t7 = A._realCasePath(A.absolute(t5.normalize$1(source), null, null, null, null, null, null, null, null, null, null, null, null, null, null));
  9335. t0 = t7;
  9336. t7 = t5;
  9337. t5 = t0;
  9338. } else {
  9339. t5 = $.$get$context();
  9340. t7 = t5.canonicalize$1(0, source);
  9341. t0 = t7;
  9342. t7 = t5;
  9343. t5 = t0;
  9344. }
  9345. t7 = importCache.importCanonical$3$originalUrl(new A.FilesystemImporter(t2), t7.toUri$1(t5), t7.toUri$1(source));
  9346. t7.toString;
  9347. stylesheet = t7;
  9348. } else {
  9349. t5 = A.readFile(source);
  9350. if (t2 == null)
  9351. t2 = A.Syntax_forPath(source);
  9352. stylesheet = A.Stylesheet_Stylesheet$parse(t5, t2, logger, $.$get$context().toUri$1(source));
  9353. }
  9354. result0 = A._compileStylesheet(stylesheet, logger, importCache, null, new A.FilesystemImporter(A.absolute(".", null, null, null, null, null, null, null, null, null, null, null, null, null, null)), null, t3, true, null, null, t4, t6, t1);
  9355. if (terseLogger != null)
  9356. terseLogger.summarize$1$node(false);
  9357. case 17:
  9358. // join
  9359. result = result0;
  9360. case 8:
  9361. // join
  9362. $async$handler = 2;
  9363. // goto after finally
  9364. $async$goto = 6;
  9365. break;
  9366. case 4:
  9367. // catch
  9368. $async$handler = 3;
  9369. $async$exception = $async$currentError;
  9370. t1 = A.unwrapException($async$exception);
  9371. if (t1 instanceof A.SassException) {
  9372. error = t1;
  9373. if (options.get$emitErrorCss())
  9374. if (destination == null)
  9375. A.print(error.toCssString$0());
  9376. else {
  9377. A.ensureDir($.$get$context().dirname$1(destination));
  9378. A.writeFile(destination, error.toCssString$0() + "\n");
  9379. }
  9380. throw $async$exception;
  9381. } else
  9382. throw $async$exception;
  9383. // goto after finally
  9384. $async$goto = 6;
  9385. break;
  9386. case 3:
  9387. // uncaught
  9388. // goto rethrow
  9389. $async$goto = 2;
  9390. break;
  9391. case 6:
  9392. // after finally
  9393. css = result._serialize.css + A._writeSourceMap(options, result._serialize.sourceMap, destination);
  9394. if (destination == null) {
  9395. if (css.length !== 0)
  9396. A.print(css);
  9397. } else {
  9398. A.ensureDir($.$get$context().dirname$1(destination));
  9399. A.writeFile(destination, css + "\n");
  9400. }
  9401. t1 = options._options;
  9402. if (!A._asBool(t1.$index(0, "quiet")))
  9403. t1 = !A._asBool(t1.$index(0, "update")) && !A._asBool(t1.$index(0, "watch"));
  9404. else
  9405. t1 = true;
  9406. if (t1) {
  9407. // goto return
  9408. $async$goto = 1;
  9409. break;
  9410. }
  9411. buffer = new A.StringBuffer("");
  9412. t1 = options.get$color() ? buffer._contents = "" + "\x1b[32m" : "";
  9413. if (source == null)
  9414. sourceName = "stdin";
  9415. else {
  9416. t2 = $.$get$context();
  9417. sourceName = t2.prettyUri$1(t2.toUri$1(source));
  9418. }
  9419. destination.toString;
  9420. t2 = $.$get$context();
  9421. t2 = t1 + ("Compiled " + sourceName + " to " + t2.prettyUri$1(t2.toUri$1(destination)) + ".");
  9422. buffer._contents = t2;
  9423. if (options.get$color())
  9424. buffer._contents = t2 + "\x1b[0m";
  9425. A.print(buffer);
  9426. case 1:
  9427. // return
  9428. return A._asyncReturn($async$returnValue, $async$completer);
  9429. case 2:
  9430. // rethrow
  9431. return A._asyncRethrow($async$currentError, $async$completer);
  9432. }
  9433. });
  9434. return A._asyncStartSync($async$compileStylesheet, $async$completer);
  9435. },
  9436. _writeSourceMap(options, sourceMap, destination) {
  9437. var t1, sourceMapText, url, sourceMapPath, t2, escapedUrl;
  9438. if (sourceMap == null)
  9439. return "";
  9440. if (destination != null) {
  9441. t1 = $.$get$context();
  9442. sourceMap.targetUrl = t1.toUri$1(A.ParsedPath_ParsedPath$parse(destination, t1.style).get$basename()).toString$0(0);
  9443. }
  9444. A.mapInPlace(sourceMap.urls, new A._writeSourceMap_closure(options, destination));
  9445. t1 = options._options;
  9446. sourceMapText = B.C_JsonCodec.encode$2$toEncodable(sourceMap.toJson$1$includeSourceContents(A._asBool(t1.$index(0, "embed-sources"))), null);
  9447. if (A._asBool(t1.$index(0, "embed-source-map")))
  9448. url = A.Uri_Uri$dataFromString(sourceMapText, B.C_Utf8Codec, "application/json");
  9449. else {
  9450. destination.toString;
  9451. sourceMapPath = destination + ".map";
  9452. t2 = $.$get$context();
  9453. A.ensureDir(t2.dirname$1(sourceMapPath));
  9454. A.writeFile(sourceMapPath, sourceMapText);
  9455. url = t2.toUri$1(t2.relative$2$from(sourceMapPath, t2.dirname$1(destination)));
  9456. }
  9457. t2 = url.toString$0(0);
  9458. escapedUrl = A.stringReplaceAllUnchecked(t2, "*/", "%2A/");
  9459. t1 = (J.$eq$(t1.$index(0, "style"), "compressed") ? B.OutputStyle_1 : B.OutputStyle_0) === B.OutputStyle_1 ? "" : "\n\n";
  9460. return t1 + ("/*# sourceMappingURL=" + escapedUrl + " */");
  9461. },
  9462. _writeSourceMap_closure: function _writeSourceMap_closure(t0, t1) {
  9463. this.options = t0;
  9464. this.destination = t1;
  9465. },
  9466. ExecutableOptions__separator(text) {
  9467. var t1 = $.$get$ExecutableOptions__separatorBar(),
  9468. t2 = B.JSString_methods.$mul(t1, 3),
  9469. t3 = J.$eq$(self.process.stdout.isTTY, true) ? "\x1b[1m" : "",
  9470. t4 = J.$eq$(self.process.stdout.isTTY, true) ? "\x1b[0m" : "";
  9471. return t2 + " " + t3 + text + t4 + " " + B.JSString_methods.$mul(t1, 35 - text.length);
  9472. },
  9473. ExecutableOptions__fail(message) {
  9474. return A.throwExpression(A.UsageException$(message));
  9475. },
  9476. ExecutableOptions_ExecutableOptions$parse(args) {
  9477. var options, error, t1, exception;
  9478. try {
  9479. t1 = A.Parser$(null, $.$get$ExecutableOptions__parser(), A.ListQueue_ListQueue$of(args, type$.String), null, null).parse$0();
  9480. if (t1.wasParsed$1("poll") && !A._asBool(t1.$index(0, "watch")))
  9481. A.ExecutableOptions__fail("--poll may not be passed without --watch.");
  9482. options = new A.ExecutableOptions(t1);
  9483. if (A._asBool(options._options.$index(0, "help")))
  9484. A.ExecutableOptions__fail("Compile Sass to CSS.");
  9485. return options;
  9486. } catch (exception) {
  9487. t1 = A.unwrapException(exception);
  9488. if (type$.FormatException._is(t1)) {
  9489. error = t1;
  9490. A.ExecutableOptions__fail(J.get$message$x(error));
  9491. } else
  9492. throw exception;
  9493. }
  9494. },
  9495. UsageException$(message) {
  9496. return new A.UsageException(message);
  9497. },
  9498. ExecutableOptions: function ExecutableOptions(t0) {
  9499. var _ = this;
  9500. _._options = t0;
  9501. _.__ExecutableOptions_interactive_FI = $;
  9502. _._sourcesToDestinations = null;
  9503. _.__ExecutableOptions__sourceDirectoriesToDestinations_F = $;
  9504. },
  9505. ExecutableOptions__parser_closure: function ExecutableOptions__parser_closure() {
  9506. },
  9507. ExecutableOptions_interactive_closure: function ExecutableOptions_interactive_closure(t0) {
  9508. this.$this = t0;
  9509. },
  9510. ExecutableOptions_emitErrorCss_closure: function ExecutableOptions_emitErrorCss_closure() {
  9511. },
  9512. UsageException: function UsageException(t0) {
  9513. this.message = t0;
  9514. },
  9515. watch(options, graph) {
  9516. return A.watch$body(options, graph);
  9517. },
  9518. watch$body(options, graph) {
  9519. var $async$goto = 0,
  9520. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  9521. $async$returnValue, t1, t2, t3, t4, t5, t6, dirWatcher, watcher;
  9522. var $async$watch = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  9523. if ($async$errorCode === 1)
  9524. return A._asyncRethrow($async$result, $async$completer);
  9525. while (true)
  9526. switch ($async$goto) {
  9527. case 0:
  9528. // Function start
  9529. options._ensureSources$0();
  9530. t1 = options.__ExecutableOptions__sourceDirectoriesToDestinations_F;
  9531. t1 === $ && A.throwUnnamedLateFieldNI();
  9532. t2 = type$.String;
  9533. t1 = t1.cast$2$0(0, t2, t2);
  9534. t1 = A.List_List$of(t1.get$keys(t1), true, t2);
  9535. for (options._ensureSources$0(), t3 = options._sourcesToDestinations.cast$2$0(0, t2, t2), t3 = J.get$iterator$ax(t3.get$keys(t3)); t3.moveNext$0();) {
  9536. t4 = t3.get$current(t3);
  9537. t1.push($.$get$context().dirname$1(t4));
  9538. }
  9539. t3 = options._options;
  9540. B.JSArray_methods.addAll$1(t1, type$.List_String._as(t3.$index(0, "load-path")));
  9541. t4 = A._asBool(t3.$index(0, "poll"));
  9542. t5 = type$.Stream_WatchEvent;
  9543. t6 = A.PathMap__create(null, t5);
  9544. t5 = new A.StreamGroup(B._StreamGroupState_dormant, A.LinkedHashMap_LinkedHashMap$_empty(t5, type$.nullable_StreamSubscription_WatchEvent), type$.StreamGroup_WatchEvent);
  9545. t5.__StreamGroup__controller_A = A.StreamController_StreamController(t5.get$_onCancel(), t5.get$_onListen(), t5.get$_onPause(), t5.get$_onResume(), true, type$.WatchEvent);
  9546. dirWatcher = new A.MultiDirWatcher(new A.PathMap(t6, type$.PathMap_Stream_WatchEvent), t5, t4);
  9547. $async$goto = 3;
  9548. return A._asyncAwait(A.Future_wait(new A.MappedListIterable(t1, new A.watch_closure(dirWatcher), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Future<~>>")), type$.void), $async$watch);
  9549. case 3:
  9550. // returning from await.
  9551. watcher = new A._Watcher(options, graph);
  9552. options._ensureSources$0(), t1 = options._sourcesToDestinations.cast$2$0(0, t2, t2), t1 = t1.get$entries(t1), t1 = t1.get$iterator(t1);
  9553. case 4:
  9554. // for condition
  9555. if (!t1.moveNext$0()) {
  9556. // goto after for
  9557. $async$goto = 5;
  9558. break;
  9559. }
  9560. t2 = t1.get$current(t1);
  9561. t4 = $.$get$context();
  9562. t5 = t4.absolute$15(".", null, null, null, null, null, null, null, null, null, null, null, null, null, null);
  9563. t6 = t2.key;
  9564. graph.addCanonical$4$recanonicalize(new A.FilesystemImporter(t5), t4.toUri$1(J.$eq$(J.get$platform$x(self.process), "win32") || J.$eq$(J.get$platform$x(self.process), "darwin") ? A._realCasePath(t4.absolute$15(t4.normalize$1(t6), null, null, null, null, null, null, null, null, null, null, null, null, null, null)) : t4.canonicalize$1(0, t6)), t4.toUri$1(t6), false);
  9565. $async$goto = 6;
  9566. return A._asyncAwait(watcher.compile$3$ifModified(0, t6, t2.value, true), $async$watch);
  9567. case 6:
  9568. // returning from await.
  9569. if (!$async$result && A._asBool(t3.$index(0, "stop-on-error"))) {
  9570. t1 = dirWatcher._group.__StreamGroup__controller_A;
  9571. t1 === $ && A.throwUnnamedLateFieldNI();
  9572. t1._subscribe$4(null, null, null, false).cancel$0();
  9573. // goto return
  9574. $async$goto = 1;
  9575. break;
  9576. }
  9577. // goto for condition
  9578. $async$goto = 4;
  9579. break;
  9580. case 5:
  9581. // after for
  9582. A.print("Sass is watching for changes. Press Ctrl-C to stop.\n");
  9583. $async$goto = 7;
  9584. return A._asyncAwait(watcher.watch$1(0, dirWatcher), $async$watch);
  9585. case 7:
  9586. // returning from await.
  9587. case 1:
  9588. // return
  9589. return A._asyncReturn($async$returnValue, $async$completer);
  9590. }
  9591. });
  9592. return A._asyncStartSync($async$watch, $async$completer);
  9593. },
  9594. watch_closure: function watch_closure(t0) {
  9595. this.dirWatcher = t0;
  9596. },
  9597. _Watcher: function _Watcher(t0, t1) {
  9598. this._watch$_options = t0;
  9599. this._graph = t1;
  9600. },
  9601. _Watcher__debounceEvents_closure: function _Watcher__debounceEvents_closure() {
  9602. },
  9603. EmptyExtensionStore: function EmptyExtensionStore() {
  9604. },
  9605. Extension: function Extension(t0, t1, t2, t3, t4) {
  9606. var _ = this;
  9607. _.extender = t0;
  9608. _.target = t1;
  9609. _.mediaContext = t2;
  9610. _.isOptional = t3;
  9611. _.span = t4;
  9612. },
  9613. Extender: function Extender(t0, t1, t2) {
  9614. var _ = this;
  9615. _.selector = t0;
  9616. _.isOriginal = t1;
  9617. _._extension = null;
  9618. _.span = t2;
  9619. },
  9620. ExtensionStore__extendOrReplace(selector, source, targets, mode, span) {
  9621. var t1, t2, t3, t4, t5, t6, t7, t8, _i, complex, t9, compound, t10, t11, _i0, simple, t12, _i1, t13, t14,
  9622. extender = A.ExtensionStore$_mode(mode);
  9623. if (!selector.accept$1(B._IsInvisibleVisitor_true))
  9624. extender._originals.addAll$1(0, selector.components);
  9625. for (t1 = targets.components, t2 = t1.length, t3 = source.components, t4 = t3.length, t5 = type$.ComplexSelector, t6 = type$.Extension, t7 = type$.SimpleSelector, t8 = type$.Map_ComplexSelector_Extension, _i = 0; _i < t2; ++_i) {
  9626. complex = t1[_i];
  9627. if (complex.leadingCombinators.length === 0) {
  9628. t9 = complex.components;
  9629. t9 = t9.length === 1 && B.JSArray_methods.get$first(t9).combinators.length === 0;
  9630. } else
  9631. t9 = false;
  9632. compound = t9 ? B.JSArray_methods.get$first(complex.components).selector : null;
  9633. if (compound == null)
  9634. throw A.wrapException(A.SassScriptException$("Can't extend complex selector " + A.S(complex) + ".", null));
  9635. t9 = A.LinkedHashMap_LinkedHashMap$_empty(t7, t8);
  9636. for (t10 = compound.components, t11 = t10.length, _i0 = 0; _i0 < t11; ++_i0) {
  9637. simple = t10[_i0];
  9638. t12 = A.LinkedHashMap_LinkedHashMap$_empty(t5, t6);
  9639. for (_i1 = 0; _i1 < t4; ++_i1) {
  9640. complex = t3[_i1];
  9641. complex.get$specificity();
  9642. t13 = new A.Extender(complex, false, span);
  9643. t14 = new A.Extension(t13, simple, null, true, span);
  9644. t13._extension = t14;
  9645. t12.$indexSet(0, complex, t14);
  9646. }
  9647. t9.$indexSet(0, simple, t12);
  9648. }
  9649. selector = extender._extendList$3(selector, span, t9);
  9650. }
  9651. return selector;
  9652. },
  9653. ExtensionStore$() {
  9654. var t1 = type$.SimpleSelector;
  9655. return new A.ExtensionStore(A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Set_ModifiableCssValue_SelectorList), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Map_ComplexSelector_Extension), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.List_Extension), A.LinkedHashMap_LinkedHashMap$_empty(type$.ModifiableCssValue_SelectorList, type$.List_CssMediaQuery), new A._LinkedIdentityHashMap(type$._LinkedIdentityHashMap_SimpleSelector_int), new A._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_ComplexSelector), B.ExtendMode_normal_normal);
  9656. },
  9657. ExtensionStore$_mode(_mode) {
  9658. var t1 = type$.SimpleSelector;
  9659. return new A.ExtensionStore(A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Set_ModifiableCssValue_SelectorList), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Map_ComplexSelector_Extension), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.List_Extension), A.LinkedHashMap_LinkedHashMap$_empty(type$.ModifiableCssValue_SelectorList, type$.List_CssMediaQuery), new A._LinkedIdentityHashMap(type$._LinkedIdentityHashMap_SimpleSelector_int), new A._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_ComplexSelector), _mode);
  9660. },
  9661. ExtensionStore: function ExtensionStore(t0, t1, t2, t3, t4, t5, t6) {
  9662. var _ = this;
  9663. _._selectors = t0;
  9664. _._extensions = t1;
  9665. _._extensionsByExtender = t2;
  9666. _._mediaContexts = t3;
  9667. _._sourceSpecificity = t4;
  9668. _._originals = t5;
  9669. _._mode = t6;
  9670. },
  9671. ExtensionStore_extensionsWhereTarget_closure: function ExtensionStore_extensionsWhereTarget_closure() {
  9672. },
  9673. ExtensionStore__registerSelector_closure: function ExtensionStore__registerSelector_closure() {
  9674. },
  9675. ExtensionStore_addExtension_closure: function ExtensionStore_addExtension_closure() {
  9676. },
  9677. ExtensionStore_addExtension_closure0: function ExtensionStore_addExtension_closure0() {
  9678. },
  9679. ExtensionStore_addExtension_closure1: function ExtensionStore_addExtension_closure1(t0) {
  9680. this.complex = t0;
  9681. },
  9682. ExtensionStore__extendExistingExtensions_closure: function ExtensionStore__extendExistingExtensions_closure() {
  9683. },
  9684. ExtensionStore__extendExistingExtensions_closure0: function ExtensionStore__extendExistingExtensions_closure0() {
  9685. },
  9686. ExtensionStore_addExtensions_closure: function ExtensionStore_addExtensions_closure(t0, t1) {
  9687. this._box_0 = t0;
  9688. this.$this = t1;
  9689. },
  9690. ExtensionStore_addExtensions__closure1: function ExtensionStore_addExtensions__closure1(t0, t1, t2, t3, t4) {
  9691. var _ = this;
  9692. _._box_0 = t0;
  9693. _.existingSources = t1;
  9694. _.extensionsForTarget = t2;
  9695. _.selectorsForTarget = t3;
  9696. _.target = t4;
  9697. },
  9698. ExtensionStore_addExtensions___closure: function ExtensionStore_addExtensions___closure() {
  9699. },
  9700. ExtensionStore_addExtensions_closure0: function ExtensionStore_addExtensions_closure0(t0, t1) {
  9701. this._box_0 = t0;
  9702. this.$this = t1;
  9703. },
  9704. ExtensionStore_addExtensions__closure: function ExtensionStore_addExtensions__closure(t0, t1) {
  9705. this.$this = t0;
  9706. this.newExtensions = t1;
  9707. },
  9708. ExtensionStore_addExtensions__closure0: function ExtensionStore_addExtensions__closure0(t0, t1) {
  9709. this.$this = t0;
  9710. this.newExtensions = t1;
  9711. },
  9712. ExtensionStore__extendComplex_closure: function ExtensionStore__extendComplex_closure(t0, t1, t2) {
  9713. this._box_0 = t0;
  9714. this.$this = t1;
  9715. this.complex = t2;
  9716. },
  9717. ExtensionStore__extendComplex__closure: function ExtensionStore__extendComplex__closure(t0, t1, t2) {
  9718. this._box_0 = t0;
  9719. this.$this = t1;
  9720. this.complex = t2;
  9721. },
  9722. ExtensionStore__extendCompound_closure: function ExtensionStore__extendCompound_closure() {
  9723. },
  9724. ExtensionStore__extendCompound_closure0: function ExtensionStore__extendCompound_closure0() {
  9725. },
  9726. ExtensionStore__extendCompound_closure1: function ExtensionStore__extendCompound_closure1(t0) {
  9727. this.original = t0;
  9728. },
  9729. ExtensionStore__extendSimple_withoutPseudo: function ExtensionStore__extendSimple_withoutPseudo(t0, t1, t2, t3) {
  9730. var _ = this;
  9731. _.$this = t0;
  9732. _.extensions = t1;
  9733. _.targetsUsed = t2;
  9734. _.simpleSpan = t3;
  9735. },
  9736. ExtensionStore__extendSimple_closure: function ExtensionStore__extendSimple_closure(t0, t1, t2) {
  9737. this.$this = t0;
  9738. this.withoutPseudo = t1;
  9739. this.simpleSpan = t2;
  9740. },
  9741. ExtensionStore__extendSimple_closure0: function ExtensionStore__extendSimple_closure0() {
  9742. },
  9743. ExtensionStore__extendPseudo_closure: function ExtensionStore__extendPseudo_closure() {
  9744. },
  9745. ExtensionStore__extendPseudo_closure0: function ExtensionStore__extendPseudo_closure0() {
  9746. },
  9747. ExtensionStore__extendPseudo_closure1: function ExtensionStore__extendPseudo_closure1() {
  9748. },
  9749. ExtensionStore__extendPseudo_closure2: function ExtensionStore__extendPseudo_closure2(t0) {
  9750. this.pseudo = t0;
  9751. },
  9752. ExtensionStore__extendPseudo_closure3: function ExtensionStore__extendPseudo_closure3(t0) {
  9753. this.pseudo = t0;
  9754. },
  9755. ExtensionStore__trim_closure: function ExtensionStore__trim_closure(t0, t1) {
  9756. this._box_0 = t0;
  9757. this.complex1 = t1;
  9758. },
  9759. ExtensionStore__trim_closure0: function ExtensionStore__trim_closure0(t0, t1) {
  9760. this._box_0 = t0;
  9761. this.complex1 = t1;
  9762. },
  9763. ExtensionStore_clone_closure: function ExtensionStore_clone_closure(t0, t1, t2, t3) {
  9764. var _ = this;
  9765. _.$this = t0;
  9766. _.newSelectors = t1;
  9767. _.oldToNewSelectors = t2;
  9768. _.newMediaContexts = t3;
  9769. },
  9770. unifyComplex(complexes) {
  9771. var t2, trailingCombinator, leadingCombinator, unifiedBase, t3, t4, newLeadingCombinator, base, newTrailingCombinator, _i, t5, t6, t7, t8, t9, t10, result, _null = null,
  9772. t1 = J.getInterceptor$asx(complexes);
  9773. if (t1.get$length(complexes) === 1)
  9774. return complexes;
  9775. for (t2 = t1.get$iterator(complexes), trailingCombinator = _null, leadingCombinator = trailingCombinator, unifiedBase = leadingCombinator; t2.moveNext$0();) {
  9776. t3 = t2.get$current(t2);
  9777. if (t3.accept$1(B.C__IsUselessVisitor))
  9778. return _null;
  9779. t4 = t3.components;
  9780. if (t4.length === 1 && t3.leadingCombinators.length !== 0) {
  9781. newLeadingCombinator = B.JSArray_methods.get$single(t3.leadingCombinators);
  9782. if (leadingCombinator != null && leadingCombinator !== newLeadingCombinator)
  9783. return _null;
  9784. leadingCombinator = newLeadingCombinator;
  9785. }
  9786. base = B.JSArray_methods.get$last(t4);
  9787. t3 = base.combinators;
  9788. if (t3.length !== 0) {
  9789. newTrailingCombinator = B.JSArray_methods.get$single(t3);
  9790. if (trailingCombinator != null && trailingCombinator !== newTrailingCombinator)
  9791. return _null;
  9792. trailingCombinator = newTrailingCombinator;
  9793. }
  9794. if (unifiedBase == null)
  9795. unifiedBase = base.selector.components;
  9796. else
  9797. for (t3 = base.selector.components, t4 = t3.length, _i = 0; _i < t4; ++_i) {
  9798. unifiedBase = t3[_i].unify$1(unifiedBase);
  9799. if (unifiedBase == null)
  9800. return _null;
  9801. }
  9802. }
  9803. t2 = type$.JSArray_ComplexSelector;
  9804. t3 = A._setArrayType([], t2);
  9805. for (t4 = t1.get$iterator(complexes), t5 = type$.Combinator, t6 = type$.ComplexSelectorComponent; t4.moveNext$0();) {
  9806. t7 = t4.get$current(t4);
  9807. t8 = t7.components;
  9808. t9 = t8.length;
  9809. if (t9 > 1) {
  9810. t10 = t7.leadingCombinators;
  9811. t8 = B.JSArray_methods.take$1(t8, t9 - 1);
  9812. t7 = t7.lineBreak;
  9813. result = A.List_List$from(t10, false, t5);
  9814. result.fixed$length = Array;
  9815. result.immutable$list = Array;
  9816. t10 = result;
  9817. result = A.List_List$from(t8, false, t6);
  9818. result.fixed$length = Array;
  9819. result.immutable$list = Array;
  9820. t8 = result;
  9821. if (t10.length === 0 && t8.length === 0)
  9822. A.throwExpression(A.ArgumentError$(string$.leadin, _null));
  9823. t3.push(new A.ComplexSelector(t10, t8, t7));
  9824. }
  9825. }
  9826. t4 = leadingCombinator == null ? B.List_empty0 : A._setArrayType([leadingCombinator], type$.JSArray_Combinator);
  9827. unifiedBase.toString;
  9828. t6 = A.CompoundSelector$(unifiedBase);
  9829. base = A.ComplexSelector$(t4, A._setArrayType([new A.ComplexSelectorComponent(t6, A.List_List$unmodifiable(trailingCombinator == null ? B.List_empty0 : A._setArrayType([trailingCombinator], type$.JSArray_Combinator), t5))], type$.JSArray_ComplexSelectorComponent), t1.any$1(complexes, new A.unifyComplex_closure()));
  9830. if (t3.length === 0)
  9831. t1 = A._setArrayType([base], t2);
  9832. else {
  9833. t1 = A.List_List$of(A.IterableExtension_get_exceptLast(t3), true, type$.ComplexSelector);
  9834. t1.push(B.JSArray_methods.get$last(t3).concatenate$1(base));
  9835. }
  9836. return A.weave(t1, false);
  9837. },
  9838. unifyCompound(compound1, compound2) {
  9839. var t1, result, _i, unified;
  9840. for (t1 = compound1.length, result = compound2, _i = 0; _i < t1; ++_i, result = unified) {
  9841. unified = compound1[_i].unify$1(result);
  9842. if (unified == null)
  9843. return null;
  9844. }
  9845. return A.CompoundSelector$(result);
  9846. },
  9847. unifyUniversalAndElement(selector1, selector2) {
  9848. var namespace1, name1, t1, namespace2, name2, namespace, $name, _null = null,
  9849. _s45_ = string$.must_b;
  9850. if (selector1 instanceof A.UniversalSelector) {
  9851. namespace1 = selector1.namespace;
  9852. name1 = _null;
  9853. } else if (selector1 instanceof A.TypeSelector) {
  9854. t1 = selector1.name;
  9855. namespace1 = t1.namespace;
  9856. name1 = t1.name;
  9857. } else
  9858. throw A.wrapException(A.ArgumentError$value(selector1, "selector1", _s45_));
  9859. if (selector2 instanceof A.UniversalSelector) {
  9860. namespace2 = selector2.namespace;
  9861. name2 = _null;
  9862. } else if (selector2 instanceof A.TypeSelector) {
  9863. t1 = selector2.name;
  9864. namespace2 = t1.namespace;
  9865. name2 = t1.name;
  9866. } else
  9867. throw A.wrapException(A.ArgumentError$value(selector2, "selector2", _s45_));
  9868. if (namespace1 == namespace2 || namespace2 === "*")
  9869. namespace = namespace1;
  9870. else {
  9871. if (namespace1 !== "*")
  9872. return _null;
  9873. namespace = namespace2;
  9874. }
  9875. if (name1 == name2 || name2 == null)
  9876. $name = name1;
  9877. else {
  9878. if (!(name1 == null || name1 === "*"))
  9879. return _null;
  9880. $name = name2;
  9881. }
  9882. return $name == null ? new A.UniversalSelector(namespace) : new A.TypeSelector(new A.QualifiedName($name, namespace));
  9883. },
  9884. weave(complexes, forceLineBreak) {
  9885. var complex, t2, prefixes, t3, t4, t5, t6, target, i, t7, _i, t8, t9, _i0, parentPrefix, t10, t11, result, t12,
  9886. t1 = J.getInterceptor$asx(complexes);
  9887. if (t1.get$length(complexes) === 1) {
  9888. complex = t1.get$first(complexes);
  9889. if (!forceLineBreak || complex.lineBreak)
  9890. return complexes;
  9891. return A._setArrayType([A.ComplexSelector$(complex.leadingCombinators, complex.components, true)], type$.JSArray_ComplexSelector);
  9892. }
  9893. t2 = type$.JSArray_ComplexSelector;
  9894. prefixes = A._setArrayType([t1.get$first(complexes)], t2);
  9895. for (t1 = t1.skip$1(complexes, 1), t1 = t1.get$iterator(t1), t3 = type$.Combinator, t4 = type$.ComplexSelectorComponent; t1.moveNext$0();) {
  9896. t5 = t1.get$current(t1);
  9897. t6 = t5.components;
  9898. target = B.JSArray_methods.get$last(t6);
  9899. if (t6.length === 1) {
  9900. for (i = 0; i < prefixes.length; ++i)
  9901. prefixes[i] = prefixes[i].concatenate$2$forceLineBreak(t5, forceLineBreak);
  9902. continue;
  9903. }
  9904. t6 = A._setArrayType([], t2);
  9905. for (t7 = prefixes.length, _i = 0; _i < prefixes.length; prefixes.length === t7 || (0, A.throwConcurrentModificationError)(prefixes), ++_i) {
  9906. t8 = A._weaveParents(prefixes[_i], t5);
  9907. if (t8 == null)
  9908. t8 = B.List_empty1;
  9909. t9 = t8.length;
  9910. _i0 = 0;
  9911. for (; _i0 < t8.length; t8.length === t9 || (0, A.throwConcurrentModificationError)(t8), ++_i0) {
  9912. parentPrefix = t8[_i0];
  9913. t10 = A.List_List$of(parentPrefix.components, true, t4);
  9914. t10.push(target);
  9915. t11 = parentPrefix.lineBreak || forceLineBreak;
  9916. result = A.List_List$from(parentPrefix.leadingCombinators, false, t3);
  9917. result.fixed$length = Array;
  9918. result.immutable$list = Array;
  9919. t12 = result;
  9920. result = A.List_List$from(t10, false, t4);
  9921. result.fixed$length = Array;
  9922. result.immutable$list = Array;
  9923. t10 = result;
  9924. if (t12.length === 0 && t10.length === 0)
  9925. A.throwExpression(A.ArgumentError$(string$.leadin, null));
  9926. t6.push(new A.ComplexSelector(t12, t10, t11));
  9927. }
  9928. }
  9929. prefixes = t6;
  9930. }
  9931. return prefixes;
  9932. },
  9933. _weaveParents(prefix, base) {
  9934. var t1, queue1, queue2, trailingCombinators, rootish1, rootish2, t2, rootish, groups1, groups2, lcs, choices, t3, t4, t5, _i, group, t6, t7, t8, _i0, chunk, t9, t10, result, _null = null,
  9935. leadingCombinators = A._mergeLeadingCombinators(prefix.leadingCombinators, base.leadingCombinators);
  9936. if (leadingCombinators == null)
  9937. return _null;
  9938. t1 = type$.ComplexSelectorComponent;
  9939. queue1 = A.ListQueue_ListQueue$of(prefix.components, t1);
  9940. queue2 = A.ListQueue_ListQueue$of(A.IterableExtension_get_exceptLast(base.components), t1);
  9941. trailingCombinators = A._mergeTrailingCombinators(queue1, queue2, _null);
  9942. if (trailingCombinators == null)
  9943. return _null;
  9944. rootish1 = A._firstIfRootish(queue1);
  9945. rootish2 = A._firstIfRootish(queue2);
  9946. t2 = rootish1 == null;
  9947. if (!t2 && rootish2 != null) {
  9948. rootish = A.unifyCompound(rootish1.selector.components, rootish2.selector.components);
  9949. if (rootish == null)
  9950. return _null;
  9951. t2 = type$.Combinator;
  9952. queue1.addFirst$1(new A.ComplexSelectorComponent(rootish, A.List_List$unmodifiable(rootish1.combinators, t2)));
  9953. queue2.addFirst$1(new A.ComplexSelectorComponent(rootish, A.List_List$unmodifiable(rootish2.combinators, t2)));
  9954. } else if (!t2 || rootish2 != null) {
  9955. t2 = t2 ? rootish2 : rootish1;
  9956. t2.toString;
  9957. queue1.addFirst$1(t2);
  9958. queue2.addFirst$1(t2);
  9959. }
  9960. groups1 = A._groupSelectors(queue1);
  9961. groups2 = A._groupSelectors(queue2);
  9962. t2 = type$.List_ComplexSelectorComponent;
  9963. lcs = A.longestCommonSubsequence(groups2, groups1, new A._weaveParents_closure(), t2);
  9964. choices = A._setArrayType([], type$.JSArray_List_Iterable_ComplexSelectorComponent);
  9965. for (t3 = lcs.length, t4 = type$.JSArray_Iterable_ComplexSelectorComponent, t5 = type$.JSArray_ComplexSelectorComponent, _i = 0; _i < lcs.length; lcs.length === t3 || (0, A.throwConcurrentModificationError)(lcs), ++_i) {
  9966. group = lcs[_i];
  9967. t6 = A._setArrayType([], t4);
  9968. for (t7 = A._chunks(groups1, groups2, new A._weaveParents_closure0(group), t2), t8 = t7.length, _i0 = 0; _i0 < t7.length; t7.length === t8 || (0, A.throwConcurrentModificationError)(t7), ++_i0) {
  9969. chunk = t7[_i0];
  9970. t9 = A._setArrayType([], t5);
  9971. for (t10 = B.JSArray_methods.get$iterator(chunk); t10.moveNext$0();)
  9972. B.JSArray_methods.addAll$1(t9, t10.get$current(t10));
  9973. t6.push(t9);
  9974. }
  9975. choices.push(t6);
  9976. choices.push(A._setArrayType([group], t4));
  9977. groups1.removeFirst$0();
  9978. groups2.removeFirst$0();
  9979. }
  9980. t3 = A._setArrayType([], t4);
  9981. for (t2 = A._chunks(groups1, groups2, new A._weaveParents_closure1(), t2), t4 = t2.length, _i = 0; _i < t2.length; t2.length === t4 || (0, A.throwConcurrentModificationError)(t2), ++_i) {
  9982. chunk = t2[_i];
  9983. t6 = A._setArrayType([], t5);
  9984. for (t7 = B.JSArray_methods.get$iterator(chunk); t7.moveNext$0();)
  9985. B.JSArray_methods.addAll$1(t6, t7.get$current(t7));
  9986. t3.push(t6);
  9987. }
  9988. choices.push(t3);
  9989. B.JSArray_methods.addAll$1(choices, trailingCombinators);
  9990. t2 = A._setArrayType([], type$.JSArray_ComplexSelector);
  9991. for (t3 = J.get$iterator$ax(A.paths(new A.WhereIterable(choices, new A._weaveParents_closure2(), type$.WhereIterable_List_Iterable_ComplexSelectorComponent), type$.Iterable_ComplexSelectorComponent)), t4 = type$.Combinator, t6 = !prefix.lineBreak, t7 = base.lineBreak; t3.moveNext$0();) {
  9992. t8 = t3.get$current(t3);
  9993. t9 = A._setArrayType([], t5);
  9994. for (t8 = J.get$iterator$ax(t8); t8.moveNext$0();)
  9995. B.JSArray_methods.addAll$1(t9, t8.get$current(t8));
  9996. t8 = !t6 || t7;
  9997. result = A.List_List$from(leadingCombinators, false, t4);
  9998. result.fixed$length = Array;
  9999. result.immutable$list = Array;
  10000. t10 = result;
  10001. result = A.List_List$from(t9, false, t1);
  10002. result.fixed$length = Array;
  10003. result.immutable$list = Array;
  10004. t9 = result;
  10005. if (t10.length === 0 && t9.length === 0)
  10006. A.throwExpression(A.ArgumentError$(string$.leadin, _null));
  10007. t2.push(new A.ComplexSelector(t10, t9, t8));
  10008. }
  10009. return t2;
  10010. },
  10011. _firstIfRootish(queue) {
  10012. var first, t1, t2, _i, simple;
  10013. if (queue._collection$_head === queue._collection$_tail)
  10014. return null;
  10015. first = queue.get$first(queue);
  10016. for (t1 = first.selector.components, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  10017. simple = t1[_i];
  10018. if (simple instanceof A.PseudoSelector && simple.isClass && $._rootishPseudoClasses.contains$1(0, simple.normalizedName)) {
  10019. queue.removeFirst$0();
  10020. return first;
  10021. }
  10022. }
  10023. return null;
  10024. },
  10025. _mergeLeadingCombinators(combinators1, combinators2) {
  10026. var t2, _null = null,
  10027. t1 = combinators1.length;
  10028. if (t1 > 1)
  10029. return _null;
  10030. t2 = combinators2.length;
  10031. if (t2 > 1)
  10032. return _null;
  10033. if (t1 === 0)
  10034. return combinators2;
  10035. if (t2 === 0)
  10036. return combinators1;
  10037. return B.C_ListEquality.equals$2(0, combinators1, combinators2) ? combinators1 : _null;
  10038. },
  10039. _mergeTrailingCombinators(components1, components2, result) {
  10040. var combinators1, combinators2, t1, t2, combinator1, combinator2, component1, component2, t3, t4, choices, unified, followingSiblingComponent, nextSiblingComponent, _null = null;
  10041. if (result == null)
  10042. result = A.QueueList$(_null, type$.List_List_ComplexSelectorComponent);
  10043. combinators1 = components1._collection$_head === components1._collection$_tail ? B.List_empty0 : components1.get$last(components1).combinators;
  10044. combinators2 = components2._collection$_head === components2._collection$_tail ? B.List_empty0 : components2.get$last(components2).combinators;
  10045. t1 = combinators1.length;
  10046. t2 = t1 === 0;
  10047. if (t2 && combinators2.length === 0)
  10048. return result;
  10049. if (t1 > 1 || combinators2.length > 1)
  10050. return _null;
  10051. combinator1 = t2 ? _null : B.JSArray_methods.get$first(combinators1);
  10052. combinator2 = combinators2.length === 0 ? _null : B.JSArray_methods.get$first(combinators2);
  10053. t1 = combinator1 != null;
  10054. if (t1 && combinator2 != null) {
  10055. component1 = components1.removeLast$0(0);
  10056. component2 = components2.removeLast$0(0);
  10057. t1 = combinator1 === B.Combinator_Htt;
  10058. if (t1 && combinator2 === B.Combinator_Htt) {
  10059. t1 = component1.selector;
  10060. t2 = component2.selector;
  10061. if (A.compoundIsSuperselector(t1, t2, _null))
  10062. result.addFirst$1(A._setArrayType([A._setArrayType([component2], type$.JSArray_ComplexSelectorComponent)], type$.JSArray_List_ComplexSelectorComponent));
  10063. else {
  10064. t3 = type$.JSArray_ComplexSelectorComponent;
  10065. t4 = type$.JSArray_List_ComplexSelectorComponent;
  10066. if (A.compoundIsSuperselector(t2, t1, _null))
  10067. result.addFirst$1(A._setArrayType([A._setArrayType([component1], t3)], t4));
  10068. else {
  10069. choices = A._setArrayType([A._setArrayType([component1, component2], t3), A._setArrayType([component2, component1], t3)], t4);
  10070. unified = A.unifyCompound(t1.components, t2.components);
  10071. if (unified != null)
  10072. choices.push(A._setArrayType([new A.ComplexSelectorComponent(unified, A.List_List$unmodifiable(B.List_Kw1, type$.Combinator))], t3));
  10073. result.addFirst$1(choices);
  10074. }
  10075. }
  10076. } else {
  10077. if (!(t1 && combinator2 === B.Combinator_4QF))
  10078. t2 = combinator1 === B.Combinator_4QF && combinator2 === B.Combinator_Htt;
  10079. else
  10080. t2 = true;
  10081. if (t2) {
  10082. followingSiblingComponent = t1 ? component1 : component2;
  10083. nextSiblingComponent = t1 ? component2 : component1;
  10084. t1 = type$.JSArray_ComplexSelectorComponent;
  10085. t2 = type$.JSArray_List_ComplexSelectorComponent;
  10086. if (A.compoundIsSuperselector(followingSiblingComponent.selector, nextSiblingComponent.selector, _null))
  10087. result.addFirst$1(A._setArrayType([A._setArrayType([nextSiblingComponent], t1)], t2));
  10088. else {
  10089. unified = A.unifyCompound(component1.selector.components, component2.selector.components);
  10090. t2 = A._setArrayType([A._setArrayType([followingSiblingComponent, nextSiblingComponent], t1)], t2);
  10091. if (unified != null)
  10092. t2.push(A._setArrayType([new A.ComplexSelectorComponent(unified, A.List_List$unmodifiable(B.List_IoD, type$.Combinator))], t1));
  10093. result.addFirst$1(t2);
  10094. }
  10095. } else {
  10096. if (combinator1 === B.Combinator_Cht)
  10097. t2 = combinator2 === B.Combinator_4QF || combinator2 === B.Combinator_Htt;
  10098. else
  10099. t2 = false;
  10100. if (t2) {
  10101. result.addFirst$1(A._setArrayType([A._setArrayType([component2], type$.JSArray_ComplexSelectorComponent)], type$.JSArray_List_ComplexSelectorComponent));
  10102. components1._add$1(component1);
  10103. } else {
  10104. if (combinator2 === B.Combinator_Cht)
  10105. t1 = combinator1 === B.Combinator_4QF || t1;
  10106. else
  10107. t1 = false;
  10108. if (t1) {
  10109. result.addFirst$1(A._setArrayType([A._setArrayType([component1], type$.JSArray_ComplexSelectorComponent)], type$.JSArray_List_ComplexSelectorComponent));
  10110. components2._add$1(component2);
  10111. } else if (combinator1 === combinator2) {
  10112. unified = A.unifyCompound(component1.selector.components, component2.selector.components);
  10113. if (unified == null)
  10114. return _null;
  10115. result.addFirst$1(A._setArrayType([A._setArrayType([new A.ComplexSelectorComponent(unified, A.List_List$unmodifiable(A._setArrayType([combinator1], type$.JSArray_Combinator), type$.Combinator))], type$.JSArray_ComplexSelectorComponent)], type$.JSArray_List_ComplexSelectorComponent));
  10116. } else
  10117. return _null;
  10118. }
  10119. }
  10120. }
  10121. return A._mergeTrailingCombinators(components1, components2, result);
  10122. } else if (t1) {
  10123. if (combinator1 === B.Combinator_Cht && !components2.get$isEmpty(components2) && A.compoundIsSuperselector(components2.get$last(components2).selector, components1.get$last(components1).selector, _null))
  10124. components2.removeLast$0(0);
  10125. result.addFirst$1(A._setArrayType([A._setArrayType([components1.removeLast$0(0)], type$.JSArray_ComplexSelectorComponent)], type$.JSArray_List_ComplexSelectorComponent));
  10126. return A._mergeTrailingCombinators(components1, components2, result);
  10127. } else {
  10128. if (combinator2 === B.Combinator_Cht && !components1.get$isEmpty(components1) && A.compoundIsSuperselector(components1.get$last(components1).selector, components2.get$last(components2).selector, _null))
  10129. components1.removeLast$0(0);
  10130. result.addFirst$1(A._setArrayType([A._setArrayType([components2.removeLast$0(0)], type$.JSArray_ComplexSelectorComponent)], type$.JSArray_List_ComplexSelectorComponent));
  10131. return A._mergeTrailingCombinators(components1, components2, result);
  10132. }
  10133. },
  10134. _mustUnify(complex1, complex2) {
  10135. var t2, t3, t4,
  10136. t1 = A.LinkedHashSet_LinkedHashSet$_empty(type$.SimpleSelector);
  10137. for (t2 = J.get$iterator$ax(complex1); t2.moveNext$0();)
  10138. for (t3 = B.JSArray_methods.get$iterator(t2.get$current(t2).selector.components), t4 = new A.WhereIterator(t3, A.functions___isUnique$closure()); t4.moveNext$0();)
  10139. t1.add$1(0, t3.get$current(t3));
  10140. if (t1._collection$_length === 0)
  10141. return false;
  10142. return J.any$1$ax(complex2, new A._mustUnify_closure(t1));
  10143. },
  10144. _isUnique(simple) {
  10145. var t1;
  10146. if (!(simple instanceof A.IDSelector))
  10147. t1 = simple instanceof A.PseudoSelector && !simple.isClass;
  10148. else
  10149. t1 = true;
  10150. return t1;
  10151. },
  10152. _chunks(queue1, queue2, done, $T) {
  10153. var chunk2, t2,
  10154. t1 = $T._eval$1("JSArray<0>"),
  10155. chunk1 = A._setArrayType([], t1);
  10156. for (; !done.call$1(queue1);)
  10157. chunk1.push(queue1.removeFirst$0());
  10158. chunk2 = A._setArrayType([], t1);
  10159. for (; !done.call$1(queue2);)
  10160. chunk2.push(queue2.removeFirst$0());
  10161. t1 = chunk1.length === 0;
  10162. if (t1 && chunk2.length === 0)
  10163. return A._setArrayType([], $T._eval$1("JSArray<List<0>>"));
  10164. if (t1)
  10165. return A._setArrayType([chunk2], $T._eval$1("JSArray<List<0>>"));
  10166. if (chunk2.length === 0)
  10167. return A._setArrayType([chunk1], $T._eval$1("JSArray<List<0>>"));
  10168. t1 = A.List_List$of(chunk1, true, $T);
  10169. B.JSArray_methods.addAll$1(t1, chunk2);
  10170. t2 = A.List_List$of(chunk2, true, $T);
  10171. B.JSArray_methods.addAll$1(t2, chunk1);
  10172. return A._setArrayType([t1, t2], $T._eval$1("JSArray<List<0>>"));
  10173. },
  10174. paths(choices, $T) {
  10175. return J.fold$2$ax(choices, A._setArrayType([A._setArrayType([], $T._eval$1("JSArray<0>"))], $T._eval$1("JSArray<List<0>>")), new A.paths_closure($T));
  10176. },
  10177. _groupSelectors(complex) {
  10178. var t2, t3, t4,
  10179. groups = A.QueueList$(null, type$.List_ComplexSelectorComponent),
  10180. t1 = type$.JSArray_ComplexSelectorComponent,
  10181. group = A._setArrayType([], t1);
  10182. for (t2 = A._ListQueueIterator$(complex), t3 = A._instanceType(t2)._precomputed1; t2.moveNext$0();) {
  10183. t4 = t2._collection$_current;
  10184. if (t4 == null)
  10185. t4 = t3._as(t4);
  10186. group.push(t4);
  10187. if (t4.combinators.length === 0) {
  10188. groups._queue_list$_add$1(group);
  10189. group = A._setArrayType([], t1);
  10190. }
  10191. }
  10192. if (group.length !== 0)
  10193. groups._queue_list$_add$1(group);
  10194. return groups;
  10195. },
  10196. listIsSuperselector(list1, list2) {
  10197. return B.JSArray_methods.every$1(list2, new A.listIsSuperselector_closure(list1));
  10198. },
  10199. _complexIsParentSuperselector(complex1, complex2) {
  10200. var base, t1, t2;
  10201. if (J.get$length$asx(complex1) > J.get$length$asx(complex2))
  10202. return false;
  10203. base = new A.ComplexSelectorComponent(A.CompoundSelector$(A._setArrayType([new A.PlaceholderSelector("<temp>")], type$.JSArray_SimpleSelector)), A.List_List$unmodifiable(B.List_empty0, type$.Combinator));
  10204. t1 = type$.ComplexSelectorComponent;
  10205. t2 = A.List_List$of(complex1, true, t1);
  10206. t2.push(base);
  10207. t1 = A.List_List$of(complex2, true, t1);
  10208. t1.push(base);
  10209. return A.complexIsSuperselector(t2, t1);
  10210. },
  10211. complexIsSuperselector(complex1, complex2) {
  10212. var t1, t2, t3, i1, i2, remaining1, t4, remaining2, component1, t5, parents, endOfSubselector, component2, combinator1, combinator2;
  10213. if (B.JSArray_methods.get$last(complex1).combinators.length !== 0)
  10214. return false;
  10215. if (B.JSArray_methods.get$last(complex2).combinators.length !== 0)
  10216. return false;
  10217. for (t1 = type$.JSArray_ComplexSelectorComponent, t2 = A._arrayInstanceType(complex2), t3 = t2._precomputed1, t2 = t2._eval$1("SubListIterable<1>"), i1 = 0, i2 = 0; true;) {
  10218. remaining1 = complex1.length - i1;
  10219. t4 = complex2.length;
  10220. remaining2 = t4 - i2;
  10221. if (remaining1 === 0 || remaining2 === 0)
  10222. return false;
  10223. if (remaining1 > remaining2)
  10224. return false;
  10225. component1 = complex1[i1];
  10226. t5 = component1.combinators;
  10227. if (t5.length > 1)
  10228. return false;
  10229. if (remaining1 === 1) {
  10230. parents = B.JSArray_methods.sublist$2(complex2, i2, t4 - 1);
  10231. if (B.JSArray_methods.any$1(parents, new A.complexIsSuperselector_closure()))
  10232. return false;
  10233. return A.compoundIsSuperselector(component1.selector, B.JSArray_methods.get$last(complex2).selector, parents);
  10234. }
  10235. for (t4 = component1.selector, endOfSubselector = i2, parents = null; true;) {
  10236. component2 = complex2[endOfSubselector];
  10237. if (component2.combinators.length > 1)
  10238. return false;
  10239. if (A.compoundIsSuperselector(t4, component2.selector, parents))
  10240. break;
  10241. ++endOfSubselector;
  10242. if (endOfSubselector === complex2.length - 1)
  10243. return false;
  10244. if (parents == null)
  10245. parents = A._setArrayType([], t1);
  10246. parents.push(component2);
  10247. }
  10248. component2 = complex2[endOfSubselector];
  10249. combinator1 = A.IterableExtension_get_firstOrNull(t5);
  10250. combinator2 = A.IterableExtension_get_firstOrNull(component2.combinators);
  10251. if (combinator1 != combinator2)
  10252. if (!(combinator1 == null && combinator2 === B.Combinator_Cht))
  10253. t4 = combinator1 === B.Combinator_Htt && combinator2 === B.Combinator_4QF;
  10254. else
  10255. t4 = true;
  10256. else
  10257. t4 = true;
  10258. if (!t4)
  10259. return false;
  10260. ++i1;
  10261. i2 = endOfSubselector + 1;
  10262. if (complex1.length - i1 === 1)
  10263. if (combinator1 === B.Combinator_Htt) {
  10264. t4 = complex2.length - 1;
  10265. t5 = new A.SubListIterable(complex2, 0, t4, t2);
  10266. t5.SubListIterable$3(complex2, 0, t4, t3);
  10267. if (!t5.skip$1(0, i2).every$1(0, new A.complexIsSuperselector_closure0(combinator1)))
  10268. return false;
  10269. } else if (combinator1 != null)
  10270. if (complex2.length - i2 > 1)
  10271. return false;
  10272. }
  10273. },
  10274. _isSupercombinator(combinator1, combinator2) {
  10275. var t1;
  10276. if (combinator1 != combinator2)
  10277. if (!(combinator1 == null && combinator2 === B.Combinator_Cht))
  10278. t1 = combinator1 === B.Combinator_Htt && combinator2 === B.Combinator_4QF;
  10279. else
  10280. t1 = true;
  10281. else
  10282. t1 = true;
  10283. return t1;
  10284. },
  10285. compoundIsSuperselector(compound1, compound2, parents) {
  10286. var t2, t3, t4, t5, t6, t7, t8, _i, simple1,
  10287. tuple1 = A._findPseudoElementIndexed(compound1),
  10288. tuple2 = A._findPseudoElementIndexed(compound2),
  10289. t1 = tuple1 == null;
  10290. if (!t1 && tuple2 != null) {
  10291. if (tuple1.item1.isSuperselector$1(tuple2.item1)) {
  10292. t1 = compound1.components;
  10293. t2 = tuple1.item2;
  10294. t3 = type$.int;
  10295. t4 = A._arrayInstanceType(t1)._precomputed1;
  10296. t5 = A.SubListIterable$(t1, 0, A.checkNotNullable(t2, "count", t3), t4);
  10297. t6 = compound2.components;
  10298. t7 = tuple2.item2;
  10299. t8 = A._arrayInstanceType(t6)._precomputed1;
  10300. t1 = A._compoundComponentsIsSuperselector(t5, A.SubListIterable$(t6, 0, A.checkNotNullable(t7, "count", t3), t8), parents) && A._compoundComponentsIsSuperselector(A.SubListIterable$(t1, t2 + 1, null, t4), A.SubListIterable$(t6, t7 + 1, null, t8), parents);
  10301. } else
  10302. t1 = false;
  10303. return t1;
  10304. } else if (!t1 || tuple2 != null)
  10305. return false;
  10306. for (t1 = compound1.components, t2 = t1.length, t3 = compound2.components, _i = 0; _i < t2; ++_i) {
  10307. simple1 = t1[_i];
  10308. if (simple1 instanceof A.PseudoSelector && simple1.selector != null) {
  10309. if (!A._selectorPseudoIsSuperselector(simple1, compound2, parents))
  10310. return false;
  10311. } else if (!B.JSArray_methods.any$1(t3, simple1.get$isSuperselector()))
  10312. return false;
  10313. }
  10314. return true;
  10315. },
  10316. _findPseudoElementIndexed(compound) {
  10317. var t1, t2, i, simple;
  10318. for (t1 = compound.components, t2 = t1.length, i = 0; i < t2; ++i) {
  10319. simple = t1[i];
  10320. if (simple instanceof A.PseudoSelector && !simple.isClass)
  10321. return new A.Tuple2(simple, i, type$.Tuple2_PseudoSelector_int);
  10322. }
  10323. return null;
  10324. },
  10325. _compoundComponentsIsSuperselector(compound1, compound2, parents) {
  10326. if (compound1.get$length(compound1) === 0)
  10327. return true;
  10328. if (compound2.get$length(compound2) === 0)
  10329. compound2 = A._setArrayType([new A.UniversalSelector("*")], type$.JSArray_SimpleSelector);
  10330. return A.compoundIsSuperselector(A.CompoundSelector$(compound1), A.CompoundSelector$(compound2), parents);
  10331. },
  10332. _selectorPseudoIsSuperselector(pseudo1, compound2, parents) {
  10333. var selector1_ = pseudo1.selector;
  10334. if (selector1_ == null)
  10335. throw A.wrapException(A.ArgumentError$("Selector " + pseudo1.toString$0(0) + " must have a selector argument.", null));
  10336. switch (pseudo1.normalizedName) {
  10337. case "is":
  10338. case "matches":
  10339. case "any":
  10340. case "where":
  10341. return A._selectorPseudoArgs(compound2, pseudo1.name, true).any$1(0, new A._selectorPseudoIsSuperselector_closure(selector1_)) || B.JSArray_methods.any$1(selector1_.components, new A._selectorPseudoIsSuperselector_closure0(parents, compound2));
  10342. case "has":
  10343. case "host":
  10344. case "host-context":
  10345. return A._selectorPseudoArgs(compound2, pseudo1.name, true).any$1(0, new A._selectorPseudoIsSuperselector_closure1(selector1_));
  10346. case "slotted":
  10347. return A._selectorPseudoArgs(compound2, pseudo1.name, false).any$1(0, new A._selectorPseudoIsSuperselector_closure2(selector1_));
  10348. case "not":
  10349. return B.JSArray_methods.every$1(selector1_.components, new A._selectorPseudoIsSuperselector_closure3(compound2, pseudo1));
  10350. case "current":
  10351. return A._selectorPseudoArgs(compound2, pseudo1.name, true).any$1(0, new A._selectorPseudoIsSuperselector_closure4(selector1_));
  10352. case "nth-child":
  10353. case "nth-last-child":
  10354. return B.JSArray_methods.any$1(compound2.components, new A._selectorPseudoIsSuperselector_closure5(pseudo1, selector1_));
  10355. default:
  10356. throw A.wrapException("unreachable");
  10357. }
  10358. },
  10359. _selectorPseudoArgs(compound, $name, isClass) {
  10360. var t1 = type$.WhereTypeIterable_PseudoSelector;
  10361. return A.IterableNullableExtension_whereNotNull(new A.MappedIterable(new A.WhereIterable(new A.WhereTypeIterable(compound.components, t1), new A._selectorPseudoArgs_closure(isClass, $name), t1._eval$1("WhereIterable<Iterable.E>")), new A._selectorPseudoArgs_closure0(), t1._eval$1("MappedIterable<Iterable.E,SelectorList?>")), type$.SelectorList);
  10362. },
  10363. unifyComplex_closure: function unifyComplex_closure() {
  10364. },
  10365. _weaveParents_closure: function _weaveParents_closure() {
  10366. },
  10367. _weaveParents_closure0: function _weaveParents_closure0(t0) {
  10368. this.group = t0;
  10369. },
  10370. _weaveParents_closure1: function _weaveParents_closure1() {
  10371. },
  10372. _weaveParents_closure2: function _weaveParents_closure2() {
  10373. },
  10374. _mustUnify_closure: function _mustUnify_closure(t0) {
  10375. this.uniqueSelectors = t0;
  10376. },
  10377. _mustUnify__closure: function _mustUnify__closure(t0) {
  10378. this.uniqueSelectors = t0;
  10379. },
  10380. paths_closure: function paths_closure(t0) {
  10381. this.T = t0;
  10382. },
  10383. paths__closure: function paths__closure(t0, t1) {
  10384. this.paths = t0;
  10385. this.T = t1;
  10386. },
  10387. paths___closure: function paths___closure(t0, t1) {
  10388. this.option = t0;
  10389. this.T = t1;
  10390. },
  10391. listIsSuperselector_closure: function listIsSuperselector_closure(t0) {
  10392. this.list1 = t0;
  10393. },
  10394. listIsSuperselector__closure: function listIsSuperselector__closure(t0) {
  10395. this.complex1 = t0;
  10396. },
  10397. complexIsSuperselector_closure: function complexIsSuperselector_closure() {
  10398. },
  10399. complexIsSuperselector_closure0: function complexIsSuperselector_closure0(t0) {
  10400. this.combinator1 = t0;
  10401. },
  10402. _selectorPseudoIsSuperselector_closure: function _selectorPseudoIsSuperselector_closure(t0) {
  10403. this.selector1 = t0;
  10404. },
  10405. _selectorPseudoIsSuperselector_closure0: function _selectorPseudoIsSuperselector_closure0(t0, t1) {
  10406. this.parents = t0;
  10407. this.compound2 = t1;
  10408. },
  10409. _selectorPseudoIsSuperselector_closure1: function _selectorPseudoIsSuperselector_closure1(t0) {
  10410. this.selector1 = t0;
  10411. },
  10412. _selectorPseudoIsSuperselector_closure2: function _selectorPseudoIsSuperselector_closure2(t0) {
  10413. this.selector1 = t0;
  10414. },
  10415. _selectorPseudoIsSuperselector_closure3: function _selectorPseudoIsSuperselector_closure3(t0, t1) {
  10416. this.compound2 = t0;
  10417. this.pseudo1 = t1;
  10418. },
  10419. _selectorPseudoIsSuperselector__closure: function _selectorPseudoIsSuperselector__closure(t0, t1) {
  10420. this.complex = t0;
  10421. this.pseudo1 = t1;
  10422. },
  10423. _selectorPseudoIsSuperselector___closure: function _selectorPseudoIsSuperselector___closure(t0) {
  10424. this.simple2 = t0;
  10425. },
  10426. _selectorPseudoIsSuperselector___closure0: function _selectorPseudoIsSuperselector___closure0(t0) {
  10427. this.simple2 = t0;
  10428. },
  10429. _selectorPseudoIsSuperselector_closure4: function _selectorPseudoIsSuperselector_closure4(t0) {
  10430. this.selector1 = t0;
  10431. },
  10432. _selectorPseudoIsSuperselector_closure5: function _selectorPseudoIsSuperselector_closure5(t0, t1) {
  10433. this.pseudo1 = t0;
  10434. this.selector1 = t1;
  10435. },
  10436. _selectorPseudoArgs_closure: function _selectorPseudoArgs_closure(t0, t1) {
  10437. this.isClass = t0;
  10438. this.name = t1;
  10439. },
  10440. _selectorPseudoArgs_closure0: function _selectorPseudoArgs_closure0() {
  10441. },
  10442. MergedExtension_merge(left, right) {
  10443. var t3, t4, t5, t6,
  10444. t1 = left.extender,
  10445. t2 = t1.selector;
  10446. if (!t2.$eq(0, right.extender.selector) || !left.target.$eq(0, right.target))
  10447. throw A.wrapException(A.ArgumentError$(left.toString$0(0) + " and " + right.toString$0(0) + " aren't the same extension.", null));
  10448. t3 = left.mediaContext;
  10449. t4 = t3 == null;
  10450. if (!t4) {
  10451. t5 = right.mediaContext;
  10452. t5 = t5 != null && !B.C_ListEquality.equals$2(0, t3, t5);
  10453. } else
  10454. t5 = false;
  10455. if (t5)
  10456. throw A.wrapException(A.SassException$("From " + left.span.message$1(0, "") + string$.x0aYou_m, right.span));
  10457. if (right.isOptional && right.mediaContext == null)
  10458. return left;
  10459. if (left.isOptional && t4)
  10460. return right;
  10461. t5 = left.target;
  10462. t6 = left.span;
  10463. if (t4)
  10464. t3 = right.mediaContext;
  10465. t2.get$specificity();
  10466. t1 = new A.Extender(t2, false, t1.span);
  10467. return t1._extension = new A.MergedExtension(left, right, t1, t5, t3, true, t6);
  10468. },
  10469. MergedExtension: function MergedExtension(t0, t1, t2, t3, t4, t5, t6) {
  10470. var _ = this;
  10471. _.left = t0;
  10472. _.right = t1;
  10473. _.extender = t2;
  10474. _.target = t3;
  10475. _.mediaContext = t4;
  10476. _.isOptional = t5;
  10477. _.span = t6;
  10478. },
  10479. ExtendMode: function ExtendMode(t0, t1) {
  10480. this.name = t0;
  10481. this._name = t1;
  10482. },
  10483. globalFunctions_closure: function globalFunctions_closure() {
  10484. },
  10485. _updateComponents($arguments, adjust, change, scale) {
  10486. var keywords, alpha, red, green, blue, hue, saturation, lightness, whiteness, blackness, hasRgb, hasSL, hasWB, t2, t3, t4, t5, _null = null,
  10487. t1 = J.getInterceptor$asx($arguments),
  10488. color = t1.$index($arguments, 0).assertColor$1("color"),
  10489. argumentList = type$.SassArgumentList._as(t1.$index($arguments, 1));
  10490. if (argumentList._list$_contents.length !== 0)
  10491. throw A.wrapException(A.SassScriptException$(string$.Only_op, _null));
  10492. argumentList._wereKeywordsAccessed = true;
  10493. keywords = A.LinkedHashMap_LinkedHashMap$of(argumentList._keywords, type$.String, type$.Value);
  10494. t1 = new A._updateComponents_getParam(keywords, scale, change);
  10495. alpha = t1.call$3$checkUnitless("alpha", 1, true);
  10496. red = t1.call$2("red", 255);
  10497. green = t1.call$2("green", 255);
  10498. blue = t1.call$2("blue", 255);
  10499. hue = scale ? _null : A.NullableExtension_andThen(keywords.remove$1(0, "hue"), new A._updateComponents_closure());
  10500. saturation = t1.call$3$checkPercent("saturation", 100, true);
  10501. lightness = t1.call$3$checkPercent("lightness", 100, true);
  10502. whiteness = t1.call$3$assertPercent("whiteness", 100, true);
  10503. blackness = t1.call$3$assertPercent("blackness", 100, true);
  10504. t1 = keywords.__js_helper$_length;
  10505. if (t1 !== 0)
  10506. throw A.wrapException(A.SassScriptException$("No " + A.pluralize("argument", t1, _null) + " named " + A.S(A.toSentence(keywords.get$keys(keywords).map$1$1(0, new A._updateComponents_closure0(), type$.Object), "or")) + ".", _null));
  10507. hasRgb = red != null || green != null || blue != null;
  10508. hasSL = saturation != null || lightness != null;
  10509. hasWB = whiteness != null || blackness != null;
  10510. if (hasRgb)
  10511. t1 = hasSL || hasWB || hue != null;
  10512. else
  10513. t1 = false;
  10514. if (t1)
  10515. throw A.wrapException(A.SassScriptException$(string$.RGB_pa + (hasWB ? "HWB" : "HSL") + " parameters.", _null));
  10516. if (hasSL && hasWB)
  10517. throw A.wrapException(A.SassScriptException$(string$.HSL_pa, _null));
  10518. t1 = new A._updateComponents_updateValue(change, adjust);
  10519. t2 = new A._updateComponents_updateRgb(t1);
  10520. if (hasRgb) {
  10521. t3 = t2.call$2(color.get$red(color), red);
  10522. t4 = t2.call$2(color.get$green(color), green);
  10523. t2 = t2.call$2(color.get$blue(color), blue);
  10524. return color.changeRgb$4$alpha$blue$green$red(t1.call$3(color._alpha, alpha, 1), t2, t4, t3);
  10525. } else if (hasWB) {
  10526. if (change)
  10527. t2 = hue;
  10528. else {
  10529. t2 = color.get$hue(color);
  10530. t2 += hue == null ? 0 : hue;
  10531. }
  10532. t3 = t1.call$3(color.get$whiteness(color), whiteness, 100);
  10533. t4 = t1.call$3(color.get$blackness(color), blackness, 100);
  10534. t5 = color._alpha;
  10535. t1 = t1.call$3(t5, alpha, 1);
  10536. if (t2 == null)
  10537. t2 = color.get$hue(color);
  10538. if (t3 == null)
  10539. t3 = color.get$whiteness(color);
  10540. if (t4 == null)
  10541. t4 = color.get$blackness(color);
  10542. return A.SassColor_SassColor$hwb(t2, t3, t4, t1 == null ? t5 : t1);
  10543. } else {
  10544. t2 = hue == null;
  10545. if (!t2 || hasSL) {
  10546. if (change)
  10547. t2 = hue;
  10548. else {
  10549. t3 = color.get$hue(color);
  10550. t3 += t2 ? 0 : hue;
  10551. t2 = t3;
  10552. }
  10553. t3 = t1.call$3(color.get$saturation(color), saturation, 100);
  10554. t4 = t1.call$3(color.get$lightness(color), lightness, 100);
  10555. return color.changeHsl$4$alpha$hue$lightness$saturation(t1.call$3(color._alpha, alpha, 1), t2, t4, t3);
  10556. } else if (alpha != null)
  10557. return color.changeAlpha$1(t1.call$3(color._alpha, alpha, 1));
  10558. else
  10559. return color;
  10560. }
  10561. },
  10562. _functionString($name, $arguments) {
  10563. return new A.SassString($name + "(" + J.map$1$1$ax($arguments, new A._functionString_closure(), type$.String).join$1(0, ", ") + ")", false);
  10564. },
  10565. _removedColorFunction($name, argument, negative) {
  10566. return A.BuiltInCallable$function($name, "$color, $amount", new A._removedColorFunction_closure($name, argument, negative), "sass:color");
  10567. },
  10568. _rgb($name, $arguments) {
  10569. var t2, red, green, blue,
  10570. t1 = J.getInterceptor$asx($arguments),
  10571. alpha = t1.get$length($arguments) > 3 ? t1.$index($arguments, 3) : null;
  10572. if (!t1.$index($arguments, 0).get$isSpecialNumber())
  10573. if (!t1.$index($arguments, 1).get$isSpecialNumber())
  10574. if (!t1.$index($arguments, 2).get$isSpecialNumber()) {
  10575. t2 = alpha == null ? null : alpha.get$isSpecialNumber();
  10576. t2 = t2 === true;
  10577. } else
  10578. t2 = true;
  10579. else
  10580. t2 = true;
  10581. else
  10582. t2 = true;
  10583. if (t2)
  10584. return A._functionString($name, $arguments);
  10585. red = t1.$index($arguments, 0).assertNumber$1("red");
  10586. green = t1.$index($arguments, 1).assertNumber$1("green");
  10587. blue = t1.$index($arguments, 2).assertNumber$1("blue");
  10588. return A.SassColor$rgbInternal(A.fuzzyRound(A._percentageOrUnitless(red, 255, "red")), A.fuzzyRound(A._percentageOrUnitless(green, 255, "green")), A.fuzzyRound(A._percentageOrUnitless(blue, 255, "blue")), A.NullableExtension_andThen(alpha, new A._rgb_closure()), B._ColorFormatEnum_rgbFunction);
  10589. },
  10590. _rgbTwoArg($name, $arguments) {
  10591. var first, color,
  10592. t1 = J.getInterceptor$asx($arguments);
  10593. if (t1.$index($arguments, 0).get$isVar())
  10594. return A._functionString($name, $arguments);
  10595. else if (t1.$index($arguments, 1).get$isVar()) {
  10596. first = t1.$index($arguments, 0);
  10597. if (first instanceof A.SassColor)
  10598. return new A.SassString($name + "(" + first.get$red(first) + ", " + first.get$green(first) + ", " + first.get$blue(first) + ", " + A.serializeValue(t1.$index($arguments, 1), false, true) + ")", false);
  10599. else
  10600. return A._functionString($name, $arguments);
  10601. } else if (t1.$index($arguments, 1).get$isSpecialNumber()) {
  10602. color = t1.$index($arguments, 0).assertColor$1("color");
  10603. return new A.SassString($name + "(" + color.get$red(color) + ", " + color.get$green(color) + ", " + color.get$blue(color) + ", " + A.serializeValue(t1.$index($arguments, 1), false, true) + ")", false);
  10604. }
  10605. return t1.$index($arguments, 0).assertColor$1("color").changeAlpha$1(A._percentageOrUnitless(t1.$index($arguments, 1).assertNumber$1("alpha"), 1, "alpha"));
  10606. },
  10607. _hsl($name, $arguments) {
  10608. var t2, hue, saturation, lightness,
  10609. _s10_ = "saturation",
  10610. _s9_ = "lightness",
  10611. t1 = J.getInterceptor$asx($arguments),
  10612. alpha = t1.get$length($arguments) > 3 ? t1.$index($arguments, 3) : null;
  10613. if (!t1.$index($arguments, 0).get$isSpecialNumber())
  10614. if (!t1.$index($arguments, 1).get$isSpecialNumber())
  10615. if (!t1.$index($arguments, 2).get$isSpecialNumber()) {
  10616. t2 = alpha == null ? null : alpha.get$isSpecialNumber();
  10617. t2 = t2 === true;
  10618. } else
  10619. t2 = true;
  10620. else
  10621. t2 = true;
  10622. else
  10623. t2 = true;
  10624. if (t2)
  10625. return A._functionString($name, $arguments);
  10626. hue = A._angleValue(t1.$index($arguments, 0), "hue");
  10627. saturation = t1.$index($arguments, 1).assertNumber$1(_s10_);
  10628. lightness = t1.$index($arguments, 2).assertNumber$1(_s9_);
  10629. A._checkPercent(saturation, _s10_);
  10630. A._checkPercent(lightness, _s9_);
  10631. return A.SassColor$hslInternal(hue, B.JSNumber_methods.clamp$2(saturation._number$_value, 0, 100), B.JSNumber_methods.clamp$2(lightness._number$_value, 0, 100), A.NullableExtension_andThen(alpha, new A._hsl_closure()), B._ColorFormatEnum_hslFunction);
  10632. },
  10633. _angleValue(angleValue, $name) {
  10634. var t1, t2,
  10635. angle = angleValue.assertNumber$1($name);
  10636. if (angle.compatibleWithUnit$1("deg"))
  10637. return angle.coerceValueToUnit$1("deg");
  10638. t1 = angle.toString$0(0);
  10639. t2 = angle.unitSuggestion$1($name);
  10640. A.EvaluationContext_current().warn$2$deprecation(0, "$" + $name + ": Passing a unit other than deg (" + t1 + string$.x29x20is_d + t2 + string$.x0a_See_, true);
  10641. return angle._number$_value;
  10642. },
  10643. _checkPercent(number, $name) {
  10644. var t1, t2;
  10645. if (number.hasUnit$1("%"))
  10646. return;
  10647. t1 = number.toString$0(0);
  10648. t2 = number.unitSuggestion$2($name, "%");
  10649. A.EvaluationContext_current().warn$2$deprecation(0, "$" + $name + ": Passing a number without unit % (" + t1 + string$.x29x20is_d + t2 + string$.x0a_Morex3a, true);
  10650. },
  10651. _hwb($arguments) {
  10652. var _s9_ = "whiteness",
  10653. _s9_0 = "blackness",
  10654. t1 = J.getInterceptor$asx($arguments),
  10655. alpha = t1.get$length($arguments) > 3 ? t1.$index($arguments, 3) : null,
  10656. hue = A._angleValue(t1.$index($arguments, 0), "hue"),
  10657. whiteness = t1.$index($arguments, 1).assertNumber$1(_s9_),
  10658. blackness = t1.$index($arguments, 2).assertNumber$1(_s9_0);
  10659. whiteness.assertUnit$2("%", _s9_);
  10660. blackness.assertUnit$2("%", _s9_0);
  10661. return A.SassColor_SassColor$hwb(hue, whiteness.valueInRange$3(0, 100, _s9_), blackness.valueInRange$3(0, 100, _s9_0), A.NullableExtension_andThen(alpha, new A._hwb_closure()));
  10662. },
  10663. _parseChannels($name, argumentNames, channels) {
  10664. var list, t1, channels0, alphaFromSlashList, isCommaSeparated, isBracketed, buffer, maybeSlashSeparated, slash, _null = null,
  10665. _s17_ = "$channels must be";
  10666. if (channels.get$isVar())
  10667. return A._functionString($name, A._setArrayType([channels], type$.JSArray_Value));
  10668. if (channels.get$separator(channels) === B.ListSeparator_zg9) {
  10669. list = channels.get$asList();
  10670. t1 = list.length;
  10671. if (t1 !== 2)
  10672. throw A.wrapException(A.SassScriptException$(string$.Only_2 + t1 + " " + A.pluralize("was", t1, "were") + " passed.", _null));
  10673. channels0 = list[0];
  10674. alphaFromSlashList = list[1];
  10675. if (!alphaFromSlashList.get$isSpecialNumber())
  10676. alphaFromSlashList.assertNumber$1("alpha");
  10677. if (list[0].get$isVar())
  10678. return A._functionString($name, A._setArrayType([channels], type$.JSArray_Value));
  10679. } else {
  10680. alphaFromSlashList = _null;
  10681. channels0 = channels;
  10682. }
  10683. isCommaSeparated = channels0.get$separator(channels0) === B.ListSeparator_rXA;
  10684. isBracketed = channels0.get$hasBrackets();
  10685. if (isCommaSeparated || isBracketed) {
  10686. buffer = new A.StringBuffer(_s17_);
  10687. if (isBracketed) {
  10688. t1 = _s17_ + " an unbracketed";
  10689. buffer._contents = t1;
  10690. } else
  10691. t1 = _s17_;
  10692. if (isCommaSeparated) {
  10693. t1 += isBracketed ? "," : " a";
  10694. buffer._contents = t1;
  10695. t1 = buffer._contents = t1 + " space-separated";
  10696. }
  10697. buffer._contents = t1 + " list.";
  10698. throw A.wrapException(A.SassScriptException$(buffer.toString$0(0), _null));
  10699. }
  10700. list = channels0.get$asList();
  10701. t1 = list.length;
  10702. if (t1 > 3)
  10703. throw A.wrapException(A.SassScriptException$("Only 3 elements allowed, but " + t1 + " were passed.", _null));
  10704. else if (t1 < 3) {
  10705. if (!B.JSArray_methods.any$1(list, new A._parseChannels_closure()))
  10706. if (list.length !== 0) {
  10707. t1 = B.JSArray_methods.get$last(list);
  10708. if (t1 instanceof A.SassString)
  10709. if (t1._hasQuotes) {
  10710. t1 = t1._string$_text;
  10711. t1 = A.startsWithIgnoreCase(t1, "var(") && B.JSString_methods.contains$1(t1, "/");
  10712. } else
  10713. t1 = false;
  10714. else
  10715. t1 = false;
  10716. } else
  10717. t1 = false;
  10718. else
  10719. t1 = true;
  10720. if (t1)
  10721. return A._functionString($name, A._setArrayType([channels], type$.JSArray_Value));
  10722. else
  10723. throw A.wrapException(A.SassScriptException$("Missing element " + argumentNames[list.length] + ".", _null));
  10724. }
  10725. if (alphaFromSlashList != null) {
  10726. t1 = A.List_List$of(list, true, type$.Value);
  10727. t1.push(alphaFromSlashList);
  10728. return t1;
  10729. }
  10730. maybeSlashSeparated = list[2];
  10731. if (maybeSlashSeparated instanceof A.SassNumber) {
  10732. slash = maybeSlashSeparated.asSlash;
  10733. if (slash == null)
  10734. return list;
  10735. return A._setArrayType([list[0], list[1], slash.item1, slash.item2], type$.JSArray_Value);
  10736. } else if (maybeSlashSeparated instanceof A.SassString && !maybeSlashSeparated._hasQuotes && B.JSString_methods.contains$1(maybeSlashSeparated._string$_text, "/"))
  10737. return A._functionString($name, A._setArrayType([channels0], type$.JSArray_Value));
  10738. else
  10739. return list;
  10740. },
  10741. _percentageOrUnitless(number, max, $name) {
  10742. var value;
  10743. if (!number.get$hasUnits())
  10744. value = number._number$_value;
  10745. else if (number.hasUnit$1("%"))
  10746. value = max * number._number$_value / 100;
  10747. else
  10748. throw A.wrapException(A.SassScriptException$("$" + $name + ": Expected " + number.toString$0(0) + ' to have no units or "%".', null));
  10749. return B.JSNumber_methods.clamp$2(value, 0, max);
  10750. },
  10751. _mixColors(color1, color2, weight) {
  10752. var weightScale, normalizedWeight, t1, t2, alphaDistance, t3, weight1, weight2;
  10753. A._checkPercent(weight, "weight");
  10754. weightScale = weight.valueInRange$3(0, 100, "weight") / 100;
  10755. normalizedWeight = weightScale * 2 - 1;
  10756. t1 = color1._alpha;
  10757. t2 = color2._alpha;
  10758. alphaDistance = t1 - t2;
  10759. t3 = normalizedWeight * alphaDistance;
  10760. weight1 = ((t3 === -1 ? normalizedWeight : (normalizedWeight + alphaDistance) / (1 + t3)) + 1) / 2;
  10761. weight2 = 1 - weight1;
  10762. return A.SassColor$rgb(A.fuzzyRound(color1.get$red(color1) * weight1 + color2.get$red(color2) * weight2), A.fuzzyRound(color1.get$green(color1) * weight1 + color2.get$green(color2) * weight2), A.fuzzyRound(color1.get$blue(color1) * weight1 + color2.get$blue(color2) * weight2), t1 * weightScale + t2 * (1 - weightScale));
  10763. },
  10764. _opacify($arguments) {
  10765. var t1 = J.getInterceptor$asx($arguments),
  10766. color = t1.$index($arguments, 0).assertColor$1("color");
  10767. return color.changeAlpha$1(B.JSNumber_methods.clamp$2(color._alpha + t1.$index($arguments, 1).assertNumber$1("amount").valueInRangeWithUnit$4(0, 1, "amount", ""), 0, 1));
  10768. },
  10769. _transparentize($arguments) {
  10770. var t1 = J.getInterceptor$asx($arguments),
  10771. color = t1.$index($arguments, 0).assertColor$1("color");
  10772. return color.changeAlpha$1(B.JSNumber_methods.clamp$2(color._alpha - t1.$index($arguments, 1).assertNumber$1("amount").valueInRangeWithUnit$4(0, 1, "amount", ""), 0, 1));
  10773. },
  10774. _function4($name, $arguments, callback) {
  10775. return A.BuiltInCallable$function($name, $arguments, callback, "sass:color");
  10776. },
  10777. global_closure: function global_closure() {
  10778. },
  10779. global_closure0: function global_closure0() {
  10780. },
  10781. global_closure1: function global_closure1() {
  10782. },
  10783. global_closure2: function global_closure2() {
  10784. },
  10785. global_closure3: function global_closure3() {
  10786. },
  10787. global_closure4: function global_closure4() {
  10788. },
  10789. global_closure5: function global_closure5() {
  10790. },
  10791. global_closure6: function global_closure6() {
  10792. },
  10793. global_closure7: function global_closure7() {
  10794. },
  10795. global_closure8: function global_closure8() {
  10796. },
  10797. global_closure9: function global_closure9() {
  10798. },
  10799. global_closure10: function global_closure10() {
  10800. },
  10801. global_closure11: function global_closure11() {
  10802. },
  10803. global_closure12: function global_closure12() {
  10804. },
  10805. global_closure13: function global_closure13() {
  10806. },
  10807. global_closure14: function global_closure14() {
  10808. },
  10809. global_closure15: function global_closure15() {
  10810. },
  10811. global_closure16: function global_closure16() {
  10812. },
  10813. global_closure17: function global_closure17() {
  10814. },
  10815. global_closure18: function global_closure18() {
  10816. },
  10817. global_closure19: function global_closure19() {
  10818. },
  10819. global_closure20: function global_closure20() {
  10820. },
  10821. global_closure21: function global_closure21() {
  10822. },
  10823. global_closure22: function global_closure22() {
  10824. },
  10825. global_closure23: function global_closure23() {
  10826. },
  10827. global_closure24: function global_closure24() {
  10828. },
  10829. global__closure: function global__closure() {
  10830. },
  10831. global_closure25: function global_closure25() {
  10832. },
  10833. module_closure0: function module_closure0() {
  10834. },
  10835. module_closure1: function module_closure1() {
  10836. },
  10837. module_closure2: function module_closure2() {
  10838. },
  10839. module_closure3: function module_closure3() {
  10840. },
  10841. module_closure4: function module_closure4() {
  10842. },
  10843. module_closure5: function module_closure5() {
  10844. },
  10845. module_closure6: function module_closure6() {
  10846. },
  10847. module_closure7: function module_closure7() {
  10848. },
  10849. module__closure1: function module__closure1() {
  10850. },
  10851. module_closure8: function module_closure8() {
  10852. },
  10853. _red_closure: function _red_closure() {
  10854. },
  10855. _green_closure: function _green_closure() {
  10856. },
  10857. _blue_closure: function _blue_closure() {
  10858. },
  10859. _mix_closure: function _mix_closure() {
  10860. },
  10861. _hue_closure: function _hue_closure() {
  10862. },
  10863. _saturation_closure: function _saturation_closure() {
  10864. },
  10865. _lightness_closure: function _lightness_closure() {
  10866. },
  10867. _complement_closure: function _complement_closure() {
  10868. },
  10869. _adjust_closure: function _adjust_closure() {
  10870. },
  10871. _scale_closure: function _scale_closure() {
  10872. },
  10873. _change_closure: function _change_closure() {
  10874. },
  10875. _ieHexStr_closure: function _ieHexStr_closure() {
  10876. },
  10877. _ieHexStr_closure_hexString: function _ieHexStr_closure_hexString() {
  10878. },
  10879. _updateComponents_getParam: function _updateComponents_getParam(t0, t1, t2) {
  10880. this.keywords = t0;
  10881. this.scale = t1;
  10882. this.change = t2;
  10883. },
  10884. _updateComponents_closure: function _updateComponents_closure() {
  10885. },
  10886. _updateComponents_closure0: function _updateComponents_closure0() {
  10887. },
  10888. _updateComponents_updateValue: function _updateComponents_updateValue(t0, t1) {
  10889. this.change = t0;
  10890. this.adjust = t1;
  10891. },
  10892. _updateComponents_updateRgb: function _updateComponents_updateRgb(t0) {
  10893. this.updateValue = t0;
  10894. },
  10895. _functionString_closure: function _functionString_closure() {
  10896. },
  10897. _removedColorFunction_closure: function _removedColorFunction_closure(t0, t1, t2) {
  10898. this.name = t0;
  10899. this.argument = t1;
  10900. this.negative = t2;
  10901. },
  10902. _rgb_closure: function _rgb_closure() {
  10903. },
  10904. _hsl_closure: function _hsl_closure() {
  10905. },
  10906. _hwb_closure: function _hwb_closure() {
  10907. },
  10908. _parseChannels_closure: function _parseChannels_closure() {
  10909. },
  10910. _function3($name, $arguments, callback) {
  10911. return A.BuiltInCallable$function($name, $arguments, callback, "sass:list");
  10912. },
  10913. _length_closure0: function _length_closure0() {
  10914. },
  10915. _nth_closure: function _nth_closure() {
  10916. },
  10917. _setNth_closure: function _setNth_closure() {
  10918. },
  10919. _join_closure: function _join_closure() {
  10920. },
  10921. _append_closure0: function _append_closure0() {
  10922. },
  10923. _zip_closure: function _zip_closure() {
  10924. },
  10925. _zip__closure: function _zip__closure() {
  10926. },
  10927. _zip__closure0: function _zip__closure0(t0) {
  10928. this._box_0 = t0;
  10929. },
  10930. _zip__closure1: function _zip__closure1(t0) {
  10931. this._box_0 = t0;
  10932. },
  10933. _index_closure0: function _index_closure0() {
  10934. },
  10935. _separator_closure: function _separator_closure() {
  10936. },
  10937. _isBracketed_closure: function _isBracketed_closure() {
  10938. },
  10939. _slash_closure: function _slash_closure() {
  10940. },
  10941. _modify(map, keys, modify, addNesting) {
  10942. var keyIterator = J.get$iterator$ax(keys);
  10943. return keyIterator.moveNext$0() ? new A._modify_modifyNestedMap(keyIterator, modify, addNesting).call$1(map) : modify.call$1(map);
  10944. },
  10945. _deepMergeImpl(map1, map2) {
  10946. var t2, t3, result,
  10947. t1 = map1._map$_contents;
  10948. if (t1.get$isEmpty(t1))
  10949. return map2;
  10950. t2 = map2._map$_contents;
  10951. if (t2.get$isEmpty(t2))
  10952. return map1;
  10953. t3 = type$.Value;
  10954. result = A.LinkedHashMap_LinkedHashMap$of(t1, t3, t3);
  10955. t2.forEach$1(0, new A._deepMergeImpl_closure(result));
  10956. return new A.SassMap(A.ConstantMap_ConstantMap$from(result, t3, t3));
  10957. },
  10958. _function2($name, $arguments, callback) {
  10959. return A.BuiltInCallable$function($name, $arguments, callback, "sass:map");
  10960. },
  10961. _get_closure: function _get_closure() {
  10962. },
  10963. _set_closure: function _set_closure() {
  10964. },
  10965. _set__closure0: function _set__closure0(t0) {
  10966. this.$arguments = t0;
  10967. },
  10968. _set_closure0: function _set_closure0() {
  10969. },
  10970. _set__closure: function _set__closure(t0) {
  10971. this.args = t0;
  10972. },
  10973. _merge_closure: function _merge_closure() {
  10974. },
  10975. _merge_closure0: function _merge_closure0() {
  10976. },
  10977. _merge__closure: function _merge__closure(t0) {
  10978. this.map2 = t0;
  10979. },
  10980. _deepMerge_closure: function _deepMerge_closure() {
  10981. },
  10982. _deepRemove_closure: function _deepRemove_closure() {
  10983. },
  10984. _deepRemove__closure: function _deepRemove__closure(t0) {
  10985. this.keys = t0;
  10986. },
  10987. _remove_closure: function _remove_closure() {
  10988. },
  10989. _remove_closure0: function _remove_closure0() {
  10990. },
  10991. _keys_closure: function _keys_closure() {
  10992. },
  10993. _values_closure: function _values_closure() {
  10994. },
  10995. _hasKey_closure: function _hasKey_closure() {
  10996. },
  10997. _modify_modifyNestedMap: function _modify_modifyNestedMap(t0, t1, t2) {
  10998. this.keyIterator = t0;
  10999. this.modify = t1;
  11000. this.addNesting = t2;
  11001. },
  11002. _deepMergeImpl_closure: function _deepMergeImpl_closure(t0) {
  11003. this.result = t0;
  11004. },
  11005. _numberFunction($name, transform) {
  11006. return A.BuiltInCallable$function($name, "$number", new A._numberFunction_closure(transform), "sass:math");
  11007. },
  11008. _function1($name, $arguments, callback) {
  11009. return A.BuiltInCallable$function($name, $arguments, callback, "sass:math");
  11010. },
  11011. _ceil_closure: function _ceil_closure() {
  11012. },
  11013. _clamp_closure: function _clamp_closure() {
  11014. },
  11015. _floor_closure: function _floor_closure() {
  11016. },
  11017. _max_closure: function _max_closure() {
  11018. },
  11019. _min_closure: function _min_closure() {
  11020. },
  11021. _round_closure: function _round_closure() {
  11022. },
  11023. _abs_closure: function _abs_closure() {
  11024. },
  11025. _hypot_closure: function _hypot_closure() {
  11026. },
  11027. _hypot__closure: function _hypot__closure() {
  11028. },
  11029. _log_closure: function _log_closure() {
  11030. },
  11031. _pow_closure: function _pow_closure() {
  11032. },
  11033. _sqrt_closure: function _sqrt_closure() {
  11034. },
  11035. _acos_closure: function _acos_closure() {
  11036. },
  11037. _asin_closure: function _asin_closure() {
  11038. },
  11039. _atan_closure: function _atan_closure() {
  11040. },
  11041. _atan2_closure: function _atan2_closure() {
  11042. },
  11043. _cos_closure: function _cos_closure() {
  11044. },
  11045. _sin_closure: function _sin_closure() {
  11046. },
  11047. _tan_closure: function _tan_closure() {
  11048. },
  11049. _compatible_closure: function _compatible_closure() {
  11050. },
  11051. _isUnitless_closure: function _isUnitless_closure() {
  11052. },
  11053. _unit_closure: function _unit_closure() {
  11054. },
  11055. _percentage_closure: function _percentage_closure() {
  11056. },
  11057. _randomFunction_closure: function _randomFunction_closure() {
  11058. },
  11059. _div_closure: function _div_closure() {
  11060. },
  11061. _numberFunction_closure: function _numberFunction_closure(t0) {
  11062. this.transform = t0;
  11063. },
  11064. _function5($name, $arguments, callback) {
  11065. return A.BuiltInCallable$function($name, $arguments, callback, "sass:meta");
  11066. },
  11067. global_closure26: function global_closure26() {
  11068. },
  11069. global_closure27: function global_closure27() {
  11070. },
  11071. global_closure28: function global_closure28() {
  11072. },
  11073. global_closure29: function global_closure29() {
  11074. },
  11075. local_closure: function local_closure() {
  11076. },
  11077. local_closure0: function local_closure0() {
  11078. },
  11079. local__closure: function local__closure() {
  11080. },
  11081. _prependParent(compound) {
  11082. var t2, _null = null,
  11083. t1 = compound.components,
  11084. first = B.JSArray_methods.get$first(t1);
  11085. if (first instanceof A.UniversalSelector)
  11086. return _null;
  11087. if (first instanceof A.TypeSelector) {
  11088. t2 = first.name;
  11089. if (t2.namespace != null)
  11090. return _null;
  11091. t2 = A._setArrayType([new A.ParentSelector(t2.name)], type$.JSArray_SimpleSelector);
  11092. B.JSArray_methods.addAll$1(t2, A.SubListIterable$(t1, 1, _null, A._arrayInstanceType(t1)._precomputed1));
  11093. return A.CompoundSelector$(t2);
  11094. } else {
  11095. t2 = A._setArrayType([new A.ParentSelector(_null)], type$.JSArray_SimpleSelector);
  11096. B.JSArray_methods.addAll$1(t2, t1);
  11097. return A.CompoundSelector$(t2);
  11098. }
  11099. },
  11100. _function0($name, $arguments, callback) {
  11101. return A.BuiltInCallable$function($name, $arguments, callback, "sass:selector");
  11102. },
  11103. _nest_closure: function _nest_closure() {
  11104. },
  11105. _nest__closure: function _nest__closure(t0) {
  11106. this._box_0 = t0;
  11107. },
  11108. _nest__closure0: function _nest__closure0() {
  11109. },
  11110. _append_closure: function _append_closure() {
  11111. },
  11112. _append__closure: function _append__closure() {
  11113. },
  11114. _append__closure0: function _append__closure0() {
  11115. },
  11116. _append___closure: function _append___closure(t0) {
  11117. this.parent = t0;
  11118. },
  11119. _extend_closure: function _extend_closure() {
  11120. },
  11121. _replace_closure: function _replace_closure() {
  11122. },
  11123. _unify_closure: function _unify_closure() {
  11124. },
  11125. _isSuperselector_closure: function _isSuperselector_closure() {
  11126. },
  11127. _simpleSelectors_closure: function _simpleSelectors_closure() {
  11128. },
  11129. _simpleSelectors__closure: function _simpleSelectors__closure() {
  11130. },
  11131. _parse_closure: function _parse_closure() {
  11132. },
  11133. _codepointForIndex(index, lengthInCodepoints, allowNegative) {
  11134. var result;
  11135. if (index === 0)
  11136. return 0;
  11137. if (index > 0)
  11138. return Math.min(index - 1, lengthInCodepoints);
  11139. result = lengthInCodepoints + index;
  11140. if (result < 0 && !allowNegative)
  11141. return 0;
  11142. return result;
  11143. },
  11144. _function($name, $arguments, callback) {
  11145. return A.BuiltInCallable$function($name, $arguments, callback, "sass:string");
  11146. },
  11147. module_closure: function module_closure() {
  11148. },
  11149. module__closure: function module__closure(t0) {
  11150. this.string = t0;
  11151. },
  11152. module__closure0: function module__closure0(t0) {
  11153. this.string = t0;
  11154. },
  11155. _unquote_closure: function _unquote_closure() {
  11156. },
  11157. _quote_closure: function _quote_closure() {
  11158. },
  11159. _length_closure: function _length_closure() {
  11160. },
  11161. _insert_closure: function _insert_closure() {
  11162. },
  11163. _index_closure: function _index_closure() {
  11164. },
  11165. _slice_closure: function _slice_closure() {
  11166. },
  11167. _toUpperCase_closure: function _toUpperCase_closure() {
  11168. },
  11169. _toLowerCase_closure: function _toLowerCase_closure() {
  11170. },
  11171. _uniqueId_closure: function _uniqueId_closure() {
  11172. },
  11173. ImportCache$(loadPaths, logger) {
  11174. var t1 = type$.nullable_Tuple3_Importer_Uri_Uri,
  11175. t2 = type$.Uri,
  11176. t3 = A.ImportCache__toImporters(null, loadPaths, null),
  11177. t4 = logger == null ? B.StderrLogger_false : logger;
  11178. return new A.ImportCache(t3, t4, A.LinkedHashMap_LinkedHashMap$_empty(type$.Tuple2_Uri_bool, t1), A.LinkedHashMap_LinkedHashMap$_empty(type$.Tuple4_of_Uri_and_bool_and_Importer_and_nullable_Uri, t1), A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.nullable_Stylesheet), A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.ImporterResult));
  11179. },
  11180. ImportCache__toImporters(importers, loadPaths, packageConfig) {
  11181. var sassPath, t2, t3, _i, path, _null = null,
  11182. t1 = J.get$env$x(self.process);
  11183. if (t1 == null)
  11184. t1 = type$.Object._as(t1);
  11185. sassPath = A._asStringQ(t1.SASS_PATH);
  11186. t1 = A._setArrayType([], type$.JSArray_Importer_2);
  11187. for (t2 = J.get$iterator$ax(loadPaths); t2.moveNext$0();) {
  11188. t3 = t2.get$current(t2);
  11189. t1.push(new A.FilesystemImporter($.$get$context().absolute$15(t3, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null)));
  11190. }
  11191. if (sassPath != null) {
  11192. t2 = sassPath.split(J.$eq$(J.get$platform$x(self.process), "win32") ? ";" : ":");
  11193. t3 = t2.length;
  11194. _i = 0;
  11195. for (; _i < t3; ++_i) {
  11196. path = t2[_i];
  11197. t1.push(new A.FilesystemImporter($.$get$context().absolute$15(path, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null)));
  11198. }
  11199. }
  11200. return t1;
  11201. },
  11202. ImportCache: function ImportCache(t0, t1, t2, t3, t4, t5) {
  11203. var _ = this;
  11204. _._importers = t0;
  11205. _._logger = t1;
  11206. _._canonicalizeCache = t2;
  11207. _._relativeCanonicalizeCache = t3;
  11208. _._importCache = t4;
  11209. _._resultsCache = t5;
  11210. },
  11211. ImportCache_canonicalize_closure: function ImportCache_canonicalize_closure(t0, t1, t2, t3, t4) {
  11212. var _ = this;
  11213. _.$this = t0;
  11214. _.baseUrl = t1;
  11215. _.url = t2;
  11216. _.baseImporter = t3;
  11217. _.forImport = t4;
  11218. },
  11219. ImportCache_canonicalize_closure0: function ImportCache_canonicalize_closure0(t0, t1, t2) {
  11220. this.$this = t0;
  11221. this.url = t1;
  11222. this.forImport = t2;
  11223. },
  11224. ImportCache__canonicalize_closure: function ImportCache__canonicalize_closure(t0, t1) {
  11225. this.importer = t0;
  11226. this.url = t1;
  11227. },
  11228. ImportCache_importCanonical_closure: function ImportCache_importCanonical_closure(t0, t1, t2, t3, t4) {
  11229. var _ = this;
  11230. _.$this = t0;
  11231. _.importer = t1;
  11232. _.canonicalUrl = t2;
  11233. _.originalUrl = t3;
  11234. _.quiet = t4;
  11235. },
  11236. ImportCache_humanize_closure: function ImportCache_humanize_closure(t0) {
  11237. this.canonicalUrl = t0;
  11238. },
  11239. ImportCache_humanize_closure0: function ImportCache_humanize_closure0() {
  11240. },
  11241. ImportCache_humanize_closure1: function ImportCache_humanize_closure1() {
  11242. },
  11243. Importer: function Importer() {
  11244. },
  11245. AsyncImporter: function AsyncImporter() {
  11246. },
  11247. FilesystemImporter: function FilesystemImporter(t0) {
  11248. this._loadPath = t0;
  11249. },
  11250. FilesystemImporter_canonicalize_closure: function FilesystemImporter_canonicalize_closure() {
  11251. },
  11252. ImporterResult: function ImporterResult(t0, t1, t2) {
  11253. this.contents = t0;
  11254. this._sourceMapUrl = t1;
  11255. this.syntax = t2;
  11256. },
  11257. fromImport() {
  11258. var t1 = A._asBoolQ($.Zone__current.$index(0, B.Symbol__inImportRule));
  11259. return t1 === true;
  11260. },
  11261. resolveImportPath(path) {
  11262. var t1,
  11263. extension = A.ParsedPath_ParsedPath$parse(path, $.$get$context().style)._splitExtension$1(1)[1];
  11264. if (extension === ".sass" || extension === ".scss" || extension === ".css") {
  11265. t1 = A.fromImport() ? new A.resolveImportPath_closure(path, extension).call$0() : null;
  11266. return t1 == null ? A._exactlyOne(A._tryPath(path)) : t1;
  11267. }
  11268. t1 = A.fromImport() ? new A.resolveImportPath_closure0(path).call$0() : null;
  11269. if (t1 == null)
  11270. t1 = A._exactlyOne(A._tryPathWithExtensions(path));
  11271. return t1 == null ? A._tryPathAsDirectory(path) : t1;
  11272. },
  11273. _tryPathWithExtensions(path) {
  11274. var result = A._tryPath(path + ".sass");
  11275. B.JSArray_methods.addAll$1(result, A._tryPath(path + ".scss"));
  11276. return result.length !== 0 ? result : A._tryPath(path + ".css");
  11277. },
  11278. _tryPath(path) {
  11279. var t1 = $.$get$context(),
  11280. partial = A.join(t1.dirname$1(path), "_" + A.ParsedPath_ParsedPath$parse(path, t1.style).get$basename(), null);
  11281. t1 = A._setArrayType([], type$.JSArray_String);
  11282. if (A.fileExists(partial))
  11283. t1.push(partial);
  11284. if (A.fileExists(path))
  11285. t1.push(path);
  11286. return t1;
  11287. },
  11288. _tryPathAsDirectory(path) {
  11289. var t1;
  11290. if (!A.dirExists(path))
  11291. return null;
  11292. t1 = A.fromImport() ? new A._tryPathAsDirectory_closure(path).call$0() : null;
  11293. return t1 == null ? A._exactlyOne(A._tryPathWithExtensions(A.join(path, "index", null))) : t1;
  11294. },
  11295. _exactlyOne(paths) {
  11296. var t1 = paths.length;
  11297. if (t1 === 0)
  11298. return null;
  11299. if (t1 === 1)
  11300. return B.JSArray_methods.get$first(paths);
  11301. throw A.wrapException(string$.It_s_n + B.JSArray_methods.map$1$1(paths, new A._exactlyOne_closure(), type$.String).join$1(0, "\n"));
  11302. },
  11303. resolveImportPath_closure: function resolveImportPath_closure(t0, t1) {
  11304. this.path = t0;
  11305. this.extension = t1;
  11306. },
  11307. resolveImportPath_closure0: function resolveImportPath_closure0(t0) {
  11308. this.path = t0;
  11309. },
  11310. _tryPathAsDirectory_closure: function _tryPathAsDirectory_closure(t0) {
  11311. this.path = t0;
  11312. },
  11313. _exactlyOne_closure: function _exactlyOne_closure() {
  11314. },
  11315. InterpolationBuffer: function InterpolationBuffer(t0, t1) {
  11316. this._interpolation_buffer$_text = t0;
  11317. this._interpolation_buffer$_contents = t1;
  11318. },
  11319. _realCasePath(path) {
  11320. var prefix, t1;
  11321. if (!(J.$eq$(J.get$platform$x(self.process), "win32") || J.$eq$(J.get$platform$x(self.process), "darwin")))
  11322. return path;
  11323. if (J.$eq$(J.get$platform$x(self.process), "win32")) {
  11324. prefix = B.JSString_methods.substring$2(path, 0, $.$get$context().style.rootLength$1(path));
  11325. t1 = prefix.length;
  11326. if (t1 !== 0 && A.isAlphabetic0(B.JSString_methods._codeUnitAt$1(prefix, 0)))
  11327. path = prefix.toUpperCase() + B.JSString_methods.substring$1(path, t1);
  11328. }
  11329. return new A._realCasePath_helper().call$1(path);
  11330. },
  11331. _realCasePath_helper: function _realCasePath_helper() {
  11332. },
  11333. _realCasePath_helper_closure: function _realCasePath_helper_closure(t0, t1, t2) {
  11334. this.helper = t0;
  11335. this.dirname = t1;
  11336. this.path = t2;
  11337. },
  11338. _realCasePath_helper__closure: function _realCasePath_helper__closure(t0) {
  11339. this.basename = t0;
  11340. },
  11341. readFile(path) {
  11342. var sourceFile, t1, i,
  11343. contents = A._asString(A._readFile(path, "utf8"));
  11344. if (!B.JSString_methods.contains$1(contents, "\ufffd"))
  11345. return contents;
  11346. sourceFile = A.SourceFile$fromString(contents, $.$get$context().toUri$1(path));
  11347. for (t1 = contents.length, i = 0; i < t1; ++i) {
  11348. if (B.JSString_methods._codeUnitAt$1(contents, i) !== 65533)
  11349. continue;
  11350. throw A.wrapException(A.SassException$("Invalid UTF-8.", A.FileLocation$_(sourceFile, i).pointSpan$0()));
  11351. }
  11352. return contents;
  11353. },
  11354. _readFile(path, encoding) {
  11355. return A._systemErrorToFileSystemException(new A._readFile_closure(path, encoding));
  11356. },
  11357. writeFile(path, contents) {
  11358. return A._systemErrorToFileSystemException(new A.writeFile_closure(path, contents));
  11359. },
  11360. deleteFile(path) {
  11361. return A._systemErrorToFileSystemException(new A.deleteFile_closure(path));
  11362. },
  11363. readStdin() {
  11364. return A.readStdin$body();
  11365. },
  11366. readStdin$body() {
  11367. var $async$goto = 0,
  11368. $async$completer = A._makeAsyncAwaitCompleter(type$.String),
  11369. $async$returnValue, sink, t1, t2, completer;
  11370. var $async$readStdin = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  11371. if ($async$errorCode === 1)
  11372. return A._asyncRethrow($async$result, $async$completer);
  11373. while (true)
  11374. switch ($async$goto) {
  11375. case 0:
  11376. // Function start
  11377. t1 = {};
  11378. t2 = new A._Future($.Zone__current, type$._Future_String);
  11379. completer = new A._AsyncCompleter(t2, type$._AsyncCompleter_String);
  11380. t1.contents = null;
  11381. sink = new A._StringCallbackSink(new A.readStdin_closure(t1, completer), new A.StringBuffer("")).asUtf8Sink$1(false);
  11382. J.on$2$x(J.get$stdin$x(self.process), "data", A.allowInterop(new A.readStdin_closure0(sink)));
  11383. J.on$2$x(J.get$stdin$x(self.process), "end", A.allowInterop(new A.readStdin_closure1(sink)));
  11384. J.on$2$x(J.get$stdin$x(self.process), "error", A.allowInterop(new A.readStdin_closure2(completer)));
  11385. $async$returnValue = t2;
  11386. // goto return
  11387. $async$goto = 1;
  11388. break;
  11389. case 1:
  11390. // return
  11391. return A._asyncReturn($async$returnValue, $async$completer);
  11392. }
  11393. });
  11394. return A._asyncStartSync($async$readStdin, $async$completer);
  11395. },
  11396. fileExists(path) {
  11397. return A._systemErrorToFileSystemException(new A.fileExists_closure(path));
  11398. },
  11399. dirExists(path) {
  11400. return A._systemErrorToFileSystemException(new A.dirExists_closure(path));
  11401. },
  11402. ensureDir(path) {
  11403. return A._systemErrorToFileSystemException(new A.ensureDir_closure(path));
  11404. },
  11405. listDir(path, recursive) {
  11406. return A._systemErrorToFileSystemException(new A.listDir_closure(recursive, path));
  11407. },
  11408. modificationTime(path) {
  11409. return A._systemErrorToFileSystemException(new A.modificationTime_closure(path));
  11410. },
  11411. _systemErrorToFileSystemException(callback) {
  11412. var error, t1, exception, t2;
  11413. try {
  11414. t1 = callback.call$0();
  11415. return t1;
  11416. } catch (exception) {
  11417. error = A.unwrapException(exception);
  11418. if (!type$.JsSystemError._is(error))
  11419. throw exception;
  11420. t1 = error;
  11421. t2 = J.getInterceptor$x(t1);
  11422. throw A.wrapException(new A.FileSystemException(J.substring$2$s(t2.get$message(t1), (A.S(t2.get$code(t1)) + ": ").length, J.get$length$asx(t2.get$message(t1)) - (", " + A.S(t2.get$syscall(t1)) + " '" + A.S(t2.get$path(t1)) + "'").length), J.get$path$x(error)));
  11423. }
  11424. },
  11425. isWindows() {
  11426. return J.$eq$(J.get$platform$x(self.process), "win32");
  11427. },
  11428. watchDir(path, poll) {
  11429. var t2, t3, t1 = {},
  11430. watcher = J.watch$2$x(self.chokidar, path, {disableGlobbing: true, usePolling: poll});
  11431. t1.controller = null;
  11432. t2 = J.getInterceptor$x(watcher);
  11433. t2.on$2(watcher, "add", A.allowInterop(new A.watchDir_closure(t1)));
  11434. t2.on$2(watcher, "change", A.allowInterop(new A.watchDir_closure0(t1)));
  11435. t2.on$2(watcher, "unlink", A.allowInterop(new A.watchDir_closure1(t1)));
  11436. t2.on$2(watcher, "error", A.allowInterop(new A.watchDir_closure2(t1)));
  11437. t3 = new A._Future($.Zone__current, type$._Future_Stream_WatchEvent);
  11438. t2.on$2(watcher, "ready", A.allowInterop(new A.watchDir_closure3(t1, watcher, new A._AsyncCompleter(t3, type$._AsyncCompleter_Stream_WatchEvent))));
  11439. return t3;
  11440. },
  11441. FileSystemException: function FileSystemException(t0, t1) {
  11442. this.message = t0;
  11443. this.path = t1;
  11444. },
  11445. Stderr: function Stderr(t0) {
  11446. this._stderr = t0;
  11447. },
  11448. _readFile_closure: function _readFile_closure(t0, t1) {
  11449. this.path = t0;
  11450. this.encoding = t1;
  11451. },
  11452. writeFile_closure: function writeFile_closure(t0, t1) {
  11453. this.path = t0;
  11454. this.contents = t1;
  11455. },
  11456. deleteFile_closure: function deleteFile_closure(t0) {
  11457. this.path = t0;
  11458. },
  11459. readStdin_closure: function readStdin_closure(t0, t1) {
  11460. this._box_0 = t0;
  11461. this.completer = t1;
  11462. },
  11463. readStdin_closure0: function readStdin_closure0(t0) {
  11464. this.sink = t0;
  11465. },
  11466. readStdin_closure1: function readStdin_closure1(t0) {
  11467. this.sink = t0;
  11468. },
  11469. readStdin_closure2: function readStdin_closure2(t0) {
  11470. this.completer = t0;
  11471. },
  11472. fileExists_closure: function fileExists_closure(t0) {
  11473. this.path = t0;
  11474. },
  11475. dirExists_closure: function dirExists_closure(t0) {
  11476. this.path = t0;
  11477. },
  11478. ensureDir_closure: function ensureDir_closure(t0) {
  11479. this.path = t0;
  11480. },
  11481. listDir_closure: function listDir_closure(t0, t1) {
  11482. this.recursive = t0;
  11483. this.path = t1;
  11484. },
  11485. listDir__closure: function listDir__closure(t0) {
  11486. this.path = t0;
  11487. },
  11488. listDir__closure0: function listDir__closure0() {
  11489. },
  11490. listDir_closure_list: function listDir_closure_list() {
  11491. },
  11492. listDir__list_closure: function listDir__list_closure(t0, t1) {
  11493. this.parent = t0;
  11494. this.list = t1;
  11495. },
  11496. modificationTime_closure: function modificationTime_closure(t0) {
  11497. this.path = t0;
  11498. },
  11499. watchDir_closure: function watchDir_closure(t0) {
  11500. this._box_0 = t0;
  11501. },
  11502. watchDir_closure0: function watchDir_closure0(t0) {
  11503. this._box_0 = t0;
  11504. },
  11505. watchDir_closure1: function watchDir_closure1(t0) {
  11506. this._box_0 = t0;
  11507. },
  11508. watchDir_closure2: function watchDir_closure2(t0) {
  11509. this._box_0 = t0;
  11510. },
  11511. watchDir_closure3: function watchDir_closure3(t0, t1, t2) {
  11512. this._box_0 = t0;
  11513. this.watcher = t1;
  11514. this.completer = t2;
  11515. },
  11516. watchDir__closure: function watchDir__closure(t0) {
  11517. this.watcher = t0;
  11518. },
  11519. _QuietLogger: function _QuietLogger() {
  11520. },
  11521. StderrLogger: function StderrLogger(t0) {
  11522. this.color = t0;
  11523. },
  11524. TerseLogger: function TerseLogger(t0, t1) {
  11525. this._warningCounts = t0;
  11526. this._inner = t1;
  11527. },
  11528. TerseLogger_summarize_closure: function TerseLogger_summarize_closure() {
  11529. },
  11530. TerseLogger_summarize_closure0: function TerseLogger_summarize_closure0() {
  11531. },
  11532. TrackingLogger: function TrackingLogger(t0) {
  11533. this._tracking$_logger = t0;
  11534. this._emittedDebug = this._emittedWarning = false;
  11535. },
  11536. BuiltInModule$($name, functions, mixins, variables, $T) {
  11537. var t1 = A._Uri__Uri(null, $name, null, "sass"),
  11538. t2 = A.BuiltInModule__callableMap(functions, $T),
  11539. t3 = A.BuiltInModule__callableMap(mixins, $T),
  11540. t4 = variables == null ? B.Map_empty1 : new A.UnmodifiableMapView(variables, type$.UnmodifiableMapView_String_Value);
  11541. return new A.BuiltInModule(t1, t2, t3, t4, $T._eval$1("BuiltInModule<0>"));
  11542. },
  11543. BuiltInModule__callableMap(callables, $T) {
  11544. var t2, _i, callable,
  11545. t1 = type$.String;
  11546. if (callables == null)
  11547. t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, $T);
  11548. else {
  11549. t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, $T);
  11550. for (t2 = callables.length, _i = 0; _i < callables.length; callables.length === t2 || (0, A.throwConcurrentModificationError)(callables), ++_i) {
  11551. callable = callables[_i];
  11552. t1.$indexSet(0, J.get$name$x(callable), callable);
  11553. }
  11554. t1 = new A.UnmodifiableMapView(t1, type$.$env_1_1_String._bind$1($T)._eval$1("UnmodifiableMapView<1,2>"));
  11555. }
  11556. return new A.UnmodifiableMapView(t1, type$.$env_1_1_String._bind$1($T)._eval$1("UnmodifiableMapView<1,2>"));
  11557. },
  11558. BuiltInModule: function BuiltInModule(t0, t1, t2, t3, t4) {
  11559. var _ = this;
  11560. _.url = t0;
  11561. _.functions = t1;
  11562. _.mixins = t2;
  11563. _.variables = t3;
  11564. _.$ti = t4;
  11565. },
  11566. ForwardedModuleView_ifNecessary(inner, rule, $T) {
  11567. var t1;
  11568. if (rule.prefix == null)
  11569. if (rule.shownMixinsAndFunctions == null)
  11570. if (rule.shownVariables == null) {
  11571. t1 = rule.hiddenMixinsAndFunctions;
  11572. if (t1 == null)
  11573. t1 = null;
  11574. else {
  11575. t1 = t1._base;
  11576. t1 = t1.get$isEmpty(t1);
  11577. }
  11578. if (t1 === true) {
  11579. t1 = rule.hiddenVariables;
  11580. if (t1 == null)
  11581. t1 = null;
  11582. else {
  11583. t1 = t1._base;
  11584. t1 = t1.get$isEmpty(t1);
  11585. }
  11586. t1 = t1 === true;
  11587. } else
  11588. t1 = false;
  11589. } else
  11590. t1 = false;
  11591. else
  11592. t1 = false;
  11593. else
  11594. t1 = false;
  11595. if (t1)
  11596. return inner;
  11597. else
  11598. return A.ForwardedModuleView$(inner, rule, $T);
  11599. },
  11600. ForwardedModuleView$(_inner, _rule, $T) {
  11601. var t1 = _rule.prefix,
  11602. t2 = _rule.shownVariables,
  11603. t3 = _rule.hiddenVariables,
  11604. t4 = _rule.shownMixinsAndFunctions,
  11605. t5 = _rule.hiddenMixinsAndFunctions;
  11606. return new A.ForwardedModuleView(_inner, _rule, A.ForwardedModuleView__forwardedMap(_inner.get$variables(), t1, t2, t3, type$.Value), A.ForwardedModuleView__forwardedMap(_inner.get$variableNodes(), t1, t2, t3, type$.AstNode), A.ForwardedModuleView__forwardedMap(_inner.get$functions(_inner), t1, t4, t5, $T), A.ForwardedModuleView__forwardedMap(_inner.get$mixins(), t1, t4, t5, $T), $T._eval$1("ForwardedModuleView<0>"));
  11607. },
  11608. ForwardedModuleView__forwardedMap(map, prefix, safelist, blocklist, $V) {
  11609. var t2,
  11610. t1 = prefix == null;
  11611. if (t1)
  11612. if (safelist == null)
  11613. if (blocklist != null) {
  11614. t2 = blocklist._base;
  11615. t2 = t2.get$isEmpty(t2);
  11616. } else
  11617. t2 = true;
  11618. else
  11619. t2 = false;
  11620. else
  11621. t2 = false;
  11622. if (t2)
  11623. return map;
  11624. if (!t1)
  11625. map = new A.PrefixedMapView(map, prefix, $V._eval$1("PrefixedMapView<0>"));
  11626. if (safelist != null)
  11627. map = new A.LimitedMapView(map, safelist._base.intersection$1(new A.MapKeySet(map, type$.MapKeySet_nullable_Object)), type$.$env_1_1_String._bind$1($V)._eval$1("LimitedMapView<1,2>"));
  11628. else {
  11629. if (blocklist != null) {
  11630. t1 = blocklist._base;
  11631. t1 = t1.get$isNotEmpty(t1);
  11632. } else
  11633. t1 = false;
  11634. if (t1)
  11635. map = A.LimitedMapView$blocklist(map, blocklist, type$.String, $V);
  11636. }
  11637. return map;
  11638. },
  11639. ForwardedModuleView: function ForwardedModuleView(t0, t1, t2, t3, t4, t5, t6) {
  11640. var _ = this;
  11641. _._forwarded_view$_inner = t0;
  11642. _._rule = t1;
  11643. _.variables = t2;
  11644. _.variableNodes = t3;
  11645. _.functions = t4;
  11646. _.mixins = t5;
  11647. _.$ti = t6;
  11648. },
  11649. ShadowedModuleView_ifNecessary(inner, functions, mixins, variables, $T) {
  11650. return A.ShadowedModuleView__needsBlocklist(inner.get$variables(), variables) || A.ShadowedModuleView__needsBlocklist(inner.get$functions(inner), functions) || A.ShadowedModuleView__needsBlocklist(inner.get$mixins(), mixins) ? new A.ShadowedModuleView(inner, A.ShadowedModuleView__shadowedMap(inner.get$variables(), variables, type$.Value), A.ShadowedModuleView__shadowedMap(inner.get$variableNodes(), variables, type$.AstNode), A.ShadowedModuleView__shadowedMap(inner.get$functions(inner), functions, $T), A.ShadowedModuleView__shadowedMap(inner.get$mixins(), mixins, $T), $T._eval$1("ShadowedModuleView<0>")) : null;
  11651. },
  11652. ShadowedModuleView__shadowedMap(map, blocklist, $V) {
  11653. var t1 = A.ShadowedModuleView__needsBlocklist(map, blocklist);
  11654. return !t1 ? map : A.LimitedMapView$blocklist(map, blocklist, type$.String, $V);
  11655. },
  11656. ShadowedModuleView__needsBlocklist(map, blocklist) {
  11657. return map.get$isNotEmpty(map) && blocklist.any$1(0, map.get$containsKey());
  11658. },
  11659. ShadowedModuleView: function ShadowedModuleView(t0, t1, t2, t3, t4, t5) {
  11660. var _ = this;
  11661. _._shadowed_view$_inner = t0;
  11662. _.variables = t1;
  11663. _.variableNodes = t2;
  11664. _.functions = t3;
  11665. _.mixins = t4;
  11666. _.$ti = t5;
  11667. },
  11668. JSArray0: function JSArray0() {
  11669. },
  11670. Chokidar: function Chokidar() {
  11671. },
  11672. ChokidarOptions: function ChokidarOptions() {
  11673. },
  11674. ChokidarWatcher: function ChokidarWatcher() {
  11675. },
  11676. JSFunction: function JSFunction() {
  11677. },
  11678. NodeImporterResult: function NodeImporterResult() {
  11679. },
  11680. RenderContext: function RenderContext() {
  11681. },
  11682. RenderContextOptions: function RenderContextOptions() {
  11683. },
  11684. RenderContextResult: function RenderContextResult() {
  11685. },
  11686. RenderContextResultStats: function RenderContextResultStats() {
  11687. },
  11688. JSClass: function JSClass() {
  11689. },
  11690. JSUrl: function JSUrl() {
  11691. },
  11692. _PropertyDescriptor: function _PropertyDescriptor() {
  11693. },
  11694. AtRootQueryParser: function AtRootQueryParser(t0, t1) {
  11695. this.scanner = t0;
  11696. this.logger = t1;
  11697. },
  11698. AtRootQueryParser_parse_closure: function AtRootQueryParser_parse_closure(t0) {
  11699. this.$this = t0;
  11700. },
  11701. _disallowedFunctionNames_closure: function _disallowedFunctionNames_closure() {
  11702. },
  11703. CssParser: function CssParser(t0, t1, t2) {
  11704. var _ = this;
  11705. _._isUseAllowed = true;
  11706. _._inParentheses = _._inStyleRule = _._stylesheet$_inUnknownAtRule = _._inControlDirective = _._inContentBlock = _._stylesheet$_inMixin = false;
  11707. _._globalVariables = t0;
  11708. _.lastSilentComment = null;
  11709. _.scanner = t1;
  11710. _.logger = t2;
  11711. },
  11712. KeyframeSelectorParser$(contents, logger) {
  11713. var t1 = A.SpanScanner$(contents, null);
  11714. return new A.KeyframeSelectorParser(t1, logger);
  11715. },
  11716. KeyframeSelectorParser: function KeyframeSelectorParser(t0, t1) {
  11717. this.scanner = t0;
  11718. this.logger = t1;
  11719. },
  11720. KeyframeSelectorParser_parse_closure: function KeyframeSelectorParser_parse_closure(t0) {
  11721. this.$this = t0;
  11722. },
  11723. MediaQueryParser: function MediaQueryParser(t0, t1) {
  11724. this.scanner = t0;
  11725. this.logger = t1;
  11726. },
  11727. MediaQueryParser_parse_closure: function MediaQueryParser_parse_closure(t0) {
  11728. this.$this = t0;
  11729. },
  11730. Parser_isIdentifier(text) {
  11731. var t1, t2, exception, logger = null;
  11732. try {
  11733. t1 = logger;
  11734. t2 = A.SpanScanner$(text, null);
  11735. new A.Parser(t2, t1 == null ? B.StderrLogger_false : t1)._parseIdentifier$0();
  11736. return true;
  11737. } catch (exception) {
  11738. if (A.unwrapException(exception) instanceof A.SassFormatException)
  11739. return false;
  11740. else
  11741. throw exception;
  11742. }
  11743. },
  11744. Parser: function Parser(t0, t1) {
  11745. this.scanner = t0;
  11746. this.logger = t1;
  11747. },
  11748. Parser__parseIdentifier_closure: function Parser__parseIdentifier_closure(t0) {
  11749. this.$this = t0;
  11750. },
  11751. Parser_scanIdentChar_matches: function Parser_scanIdentChar_matches(t0, t1) {
  11752. this.caseSensitive = t0;
  11753. this.char = t1;
  11754. },
  11755. SassParser: function SassParser(t0, t1, t2) {
  11756. var _ = this;
  11757. _._currentIndentation = 0;
  11758. _._spaces = _._nextIndentationEnd = _._nextIndentation = null;
  11759. _._isUseAllowed = true;
  11760. _._inParentheses = _._inStyleRule = _._stylesheet$_inUnknownAtRule = _._inControlDirective = _._inContentBlock = _._stylesheet$_inMixin = false;
  11761. _._globalVariables = t0;
  11762. _.lastSilentComment = null;
  11763. _.scanner = t1;
  11764. _.logger = t2;
  11765. },
  11766. SassParser_children_closure: function SassParser_children_closure(t0, t1, t2) {
  11767. this.$this = t0;
  11768. this.child = t1;
  11769. this.children = t2;
  11770. },
  11771. ScssParser$(contents, logger, url) {
  11772. var t1 = A.SpanScanner$(contents, url),
  11773. t2 = logger == null ? B.StderrLogger_false : logger;
  11774. return new A.ScssParser(A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration), t1, t2);
  11775. },
  11776. ScssParser: function ScssParser(t0, t1, t2) {
  11777. var _ = this;
  11778. _._isUseAllowed = true;
  11779. _._inParentheses = _._inStyleRule = _._stylesheet$_inUnknownAtRule = _._inControlDirective = _._inContentBlock = _._stylesheet$_inMixin = false;
  11780. _._globalVariables = t0;
  11781. _.lastSilentComment = null;
  11782. _.scanner = t1;
  11783. _.logger = t2;
  11784. },
  11785. SelectorParser$(contents, allowParent, allowPlaceholder, logger, url) {
  11786. var t1 = A.SpanScanner$(contents, url);
  11787. return new A.SelectorParser(allowParent, allowPlaceholder, t1, logger == null ? B.StderrLogger_false : logger);
  11788. },
  11789. SelectorParser: function SelectorParser(t0, t1, t2, t3) {
  11790. var _ = this;
  11791. _._allowParent = t0;
  11792. _._allowPlaceholder = t1;
  11793. _.scanner = t2;
  11794. _.logger = t3;
  11795. },
  11796. SelectorParser_parse_closure: function SelectorParser_parse_closure(t0) {
  11797. this.$this = t0;
  11798. },
  11799. SelectorParser_parseCompoundSelector_closure: function SelectorParser_parseCompoundSelector_closure(t0) {
  11800. this.$this = t0;
  11801. },
  11802. StylesheetParser: function StylesheetParser() {
  11803. },
  11804. StylesheetParser_parse_closure: function StylesheetParser_parse_closure(t0) {
  11805. this.$this = t0;
  11806. },
  11807. StylesheetParser_parse__closure: function StylesheetParser_parse__closure(t0) {
  11808. this.$this = t0;
  11809. },
  11810. StylesheetParser_parse__closure0: function StylesheetParser_parse__closure0() {
  11811. },
  11812. StylesheetParser_parseArgumentDeclaration_closure: function StylesheetParser_parseArgumentDeclaration_closure(t0) {
  11813. this.$this = t0;
  11814. },
  11815. StylesheetParser_parseVariableDeclaration_closure: function StylesheetParser_parseVariableDeclaration_closure(t0) {
  11816. this.$this = t0;
  11817. },
  11818. StylesheetParser_parseUseRule_closure: function StylesheetParser_parseUseRule_closure(t0) {
  11819. this.$this = t0;
  11820. },
  11821. StylesheetParser__parseSingleProduction_closure: function StylesheetParser__parseSingleProduction_closure(t0, t1, t2) {
  11822. this.$this = t0;
  11823. this.production = t1;
  11824. this.T = t2;
  11825. },
  11826. StylesheetParser__statement_closure: function StylesheetParser__statement_closure(t0) {
  11827. this.$this = t0;
  11828. },
  11829. StylesheetParser_variableDeclarationWithoutNamespace_closure: function StylesheetParser_variableDeclarationWithoutNamespace_closure(t0, t1) {
  11830. this.$this = t0;
  11831. this.start = t1;
  11832. },
  11833. StylesheetParser_variableDeclarationWithoutNamespace_closure0: function StylesheetParser_variableDeclarationWithoutNamespace_closure0(t0) {
  11834. this.declaration = t0;
  11835. },
  11836. StylesheetParser__declarationOrBuffer_closure: function StylesheetParser__declarationOrBuffer_closure(t0) {
  11837. this.name = t0;
  11838. },
  11839. StylesheetParser__declarationOrBuffer_closure0: function StylesheetParser__declarationOrBuffer_closure0(t0, t1) {
  11840. this._box_0 = t0;
  11841. this.name = t1;
  11842. },
  11843. StylesheetParser__styleRule_closure: function StylesheetParser__styleRule_closure(t0, t1, t2, t3) {
  11844. var _ = this;
  11845. _._box_0 = t0;
  11846. _.$this = t1;
  11847. _.wasInStyleRule = t2;
  11848. _.start = t3;
  11849. },
  11850. StylesheetParser__propertyOrVariableDeclaration_closure: function StylesheetParser__propertyOrVariableDeclaration_closure(t0) {
  11851. this._box_0 = t0;
  11852. },
  11853. StylesheetParser__propertyOrVariableDeclaration_closure0: function StylesheetParser__propertyOrVariableDeclaration_closure0(t0, t1) {
  11854. this._box_0 = t0;
  11855. this.value = t1;
  11856. },
  11857. StylesheetParser__atRootRule_closure: function StylesheetParser__atRootRule_closure(t0) {
  11858. this.query = t0;
  11859. },
  11860. StylesheetParser__atRootRule_closure0: function StylesheetParser__atRootRule_closure0() {
  11861. },
  11862. StylesheetParser__eachRule_closure: function StylesheetParser__eachRule_closure(t0, t1, t2, t3) {
  11863. var _ = this;
  11864. _.$this = t0;
  11865. _.wasInControlDirective = t1;
  11866. _.variables = t2;
  11867. _.list = t3;
  11868. },
  11869. StylesheetParser__functionRule_closure: function StylesheetParser__functionRule_closure(t0, t1, t2) {
  11870. this.name = t0;
  11871. this.$arguments = t1;
  11872. this.precedingComment = t2;
  11873. },
  11874. StylesheetParser__forRule_closure: function StylesheetParser__forRule_closure(t0, t1) {
  11875. this._box_0 = t0;
  11876. this.$this = t1;
  11877. },
  11878. StylesheetParser__forRule_closure0: function StylesheetParser__forRule_closure0(t0, t1, t2, t3, t4, t5) {
  11879. var _ = this;
  11880. _._box_0 = t0;
  11881. _.$this = t1;
  11882. _.wasInControlDirective = t2;
  11883. _.variable = t3;
  11884. _.from = t4;
  11885. _.to = t5;
  11886. },
  11887. StylesheetParser__memberList_closure: function StylesheetParser__memberList_closure(t0, t1, t2) {
  11888. this.$this = t0;
  11889. this.variables = t1;
  11890. this.identifiers = t2;
  11891. },
  11892. StylesheetParser__includeRule_closure: function StylesheetParser__includeRule_closure(t0) {
  11893. this.contentArguments_ = t0;
  11894. },
  11895. StylesheetParser_mediaRule_closure: function StylesheetParser_mediaRule_closure(t0) {
  11896. this.query = t0;
  11897. },
  11898. StylesheetParser__mixinRule_closure: function StylesheetParser__mixinRule_closure(t0, t1, t2, t3) {
  11899. var _ = this;
  11900. _.$this = t0;
  11901. _.name = t1;
  11902. _.$arguments = t2;
  11903. _.precedingComment = t3;
  11904. },
  11905. StylesheetParser_mozDocumentRule_closure: function StylesheetParser_mozDocumentRule_closure(t0, t1, t2, t3) {
  11906. var _ = this;
  11907. _._box_0 = t0;
  11908. _.$this = t1;
  11909. _.name = t2;
  11910. _.value = t3;
  11911. },
  11912. StylesheetParser_supportsRule_closure: function StylesheetParser_supportsRule_closure(t0) {
  11913. this.condition = t0;
  11914. },
  11915. StylesheetParser__whileRule_closure: function StylesheetParser__whileRule_closure(t0, t1, t2) {
  11916. this.$this = t0;
  11917. this.wasInControlDirective = t1;
  11918. this.condition = t2;
  11919. },
  11920. StylesheetParser_unknownAtRule_closure: function StylesheetParser_unknownAtRule_closure(t0, t1) {
  11921. this._box_0 = t0;
  11922. this.name = t1;
  11923. },
  11924. StylesheetParser__expression_resetState: function StylesheetParser__expression_resetState(t0, t1, t2) {
  11925. this._box_0 = t0;
  11926. this.$this = t1;
  11927. this.start = t2;
  11928. },
  11929. StylesheetParser__expression_resolveOneOperation: function StylesheetParser__expression_resolveOneOperation(t0, t1) {
  11930. this._box_0 = t0;
  11931. this.$this = t1;
  11932. },
  11933. StylesheetParser__expression_resolveOperations: function StylesheetParser__expression_resolveOperations(t0, t1) {
  11934. this._box_0 = t0;
  11935. this.resolveOneOperation = t1;
  11936. },
  11937. StylesheetParser__expression_addSingleExpression: function StylesheetParser__expression_addSingleExpression(t0, t1, t2, t3) {
  11938. var _ = this;
  11939. _._box_0 = t0;
  11940. _.$this = t1;
  11941. _.resetState = t2;
  11942. _.resolveOperations = t3;
  11943. },
  11944. StylesheetParser__expression_addOperator: function StylesheetParser__expression_addOperator(t0, t1, t2) {
  11945. this._box_0 = t0;
  11946. this.$this = t1;
  11947. this.resolveOneOperation = t2;
  11948. },
  11949. StylesheetParser__expression_resolveSpaceExpressions: function StylesheetParser__expression_resolveSpaceExpressions(t0, t1, t2) {
  11950. this._box_0 = t0;
  11951. this.$this = t1;
  11952. this.resolveOperations = t2;
  11953. },
  11954. StylesheetParser_expressionUntilComma_closure: function StylesheetParser_expressionUntilComma_closure(t0) {
  11955. this.$this = t0;
  11956. },
  11957. StylesheetParser__unicodeRange_closure: function StylesheetParser__unicodeRange_closure() {
  11958. },
  11959. StylesheetParser__unicodeRange_closure0: function StylesheetParser__unicodeRange_closure0() {
  11960. },
  11961. StylesheetParser_namespacedExpression_closure: function StylesheetParser_namespacedExpression_closure(t0, t1) {
  11962. this.$this = t0;
  11963. this.start = t1;
  11964. },
  11965. StylesheetParser_trySpecialFunction_closure: function StylesheetParser_trySpecialFunction_closure() {
  11966. },
  11967. StylesheetParser__expressionUntilComparison_closure: function StylesheetParser__expressionUntilComparison_closure(t0) {
  11968. this.$this = t0;
  11969. },
  11970. StylesheetParser__publicIdentifier_closure: function StylesheetParser__publicIdentifier_closure(t0, t1) {
  11971. this.$this = t0;
  11972. this.start = t1;
  11973. },
  11974. StylesheetNode$_(_stylesheet, importer, canonicalUrl, allUpstream) {
  11975. var t1 = new A.StylesheetNode(_stylesheet, importer, canonicalUrl, allUpstream.item1, allUpstream.item2, A.LinkedHashSet_LinkedHashSet$_empty(type$.StylesheetNode));
  11976. t1.StylesheetNode$_$4(_stylesheet, importer, canonicalUrl, allUpstream);
  11977. return t1;
  11978. },
  11979. StylesheetGraph: function StylesheetGraph(t0, t1, t2) {
  11980. this._nodes = t0;
  11981. this.importCache = t1;
  11982. this._transitiveModificationTimes = t2;
  11983. },
  11984. StylesheetGraph_modifiedSince_transitiveModificationTime: function StylesheetGraph_modifiedSince_transitiveModificationTime(t0) {
  11985. this.$this = t0;
  11986. },
  11987. StylesheetGraph_modifiedSince_transitiveModificationTime_closure: function StylesheetGraph_modifiedSince_transitiveModificationTime_closure(t0, t1) {
  11988. this.node = t0;
  11989. this.transitiveModificationTime = t1;
  11990. },
  11991. StylesheetGraph__add_closure: function StylesheetGraph__add_closure(t0, t1, t2, t3) {
  11992. var _ = this;
  11993. _.$this = t0;
  11994. _.url = t1;
  11995. _.baseImporter = t2;
  11996. _.baseUrl = t3;
  11997. },
  11998. StylesheetGraph_addCanonical_closure: function StylesheetGraph_addCanonical_closure(t0, t1, t2, t3) {
  11999. var _ = this;
  12000. _.$this = t0;
  12001. _.importer = t1;
  12002. _.canonicalUrl = t2;
  12003. _.originalUrl = t3;
  12004. },
  12005. StylesheetGraph_reload_closure: function StylesheetGraph_reload_closure(t0, t1, t2) {
  12006. this.$this = t0;
  12007. this.node = t1;
  12008. this.canonicalUrl = t2;
  12009. },
  12010. StylesheetGraph__recanonicalizeImportsForNode_closure: function StylesheetGraph__recanonicalizeImportsForNode_closure(t0, t1, t2, t3, t4, t5) {
  12011. var _ = this;
  12012. _.$this = t0;
  12013. _.importer = t1;
  12014. _.canonicalUrl = t2;
  12015. _.node = t3;
  12016. _.forImport = t4;
  12017. _.newMap = t5;
  12018. },
  12019. StylesheetGraph__nodeFor_closure: function StylesheetGraph__nodeFor_closure(t0, t1, t2, t3, t4) {
  12020. var _ = this;
  12021. _.$this = t0;
  12022. _.url = t1;
  12023. _.baseImporter = t2;
  12024. _.baseUrl = t3;
  12025. _.forImport = t4;
  12026. },
  12027. StylesheetGraph__nodeFor_closure0: function StylesheetGraph__nodeFor_closure0(t0, t1, t2, t3) {
  12028. var _ = this;
  12029. _.$this = t0;
  12030. _.importer = t1;
  12031. _.canonicalUrl = t2;
  12032. _.resolvedUrl = t3;
  12033. },
  12034. StylesheetNode: function StylesheetNode(t0, t1, t2, t3, t4, t5) {
  12035. var _ = this;
  12036. _._stylesheet = t0;
  12037. _.importer = t1;
  12038. _.canonicalUrl = t2;
  12039. _._upstream = t3;
  12040. _._upstreamImports = t4;
  12041. _._downstream = t5;
  12042. },
  12043. Syntax_forPath(path) {
  12044. switch (A.ParsedPath_ParsedPath$parse(path, $.$get$context().style)._splitExtension$1(1)[1]) {
  12045. case ".sass":
  12046. return B.Syntax_Sass_sass;
  12047. case ".css":
  12048. return B.Syntax_CSS_css;
  12049. default:
  12050. return B.Syntax_SCSS_scss;
  12051. }
  12052. },
  12053. Syntax: function Syntax(t0, t1) {
  12054. this._syntax$_name = t0;
  12055. this._name = t1;
  12056. },
  12057. LimitedMapView$blocklist(_map, blocklist, $K, $V) {
  12058. var t2, key,
  12059. t1 = A.LinkedHashSet_LinkedHashSet$_empty($K);
  12060. for (t2 = J.get$iterator$ax(_map.get$keys(_map)); t2.moveNext$0();) {
  12061. key = t2.get$current(t2);
  12062. if (!blocklist.contains$1(0, key))
  12063. t1.add$1(0, key);
  12064. }
  12065. return new A.LimitedMapView(_map, t1, $K._eval$1("@<0>")._bind$1($V)._eval$1("LimitedMapView<1,2>"));
  12066. },
  12067. LimitedMapView: function LimitedMapView(t0, t1, t2) {
  12068. this._limited_map_view$_map = t0;
  12069. this._limited_map_view$_keys = t1;
  12070. this.$ti = t2;
  12071. },
  12072. MergedMapView$(maps, $K, $V) {
  12073. var t1 = $K._eval$1("@<0>")._bind$1($V);
  12074. t1 = new A.MergedMapView(A.LinkedHashMap_LinkedHashMap$_empty($K, t1._eval$1("Map<1,2>")), t1._eval$1("MergedMapView<1,2>"));
  12075. t1.MergedMapView$1(maps, $K, $V);
  12076. return t1;
  12077. },
  12078. MergedMapView: function MergedMapView(t0, t1) {
  12079. this._mapsByKey = t0;
  12080. this.$ti = t1;
  12081. },
  12082. MultiDirWatcher: function MultiDirWatcher(t0, t1, t2) {
  12083. this._watchers = t0;
  12084. this._group = t1;
  12085. this._poll = t2;
  12086. },
  12087. MultiSpan: function MultiSpan(t0, t1, t2) {
  12088. this._multi_span$_primary = t0;
  12089. this.primaryLabel = t1;
  12090. this.secondarySpans = t2;
  12091. },
  12092. NoSourceMapBuffer: function NoSourceMapBuffer(t0) {
  12093. this._no_source_map_buffer$_buffer = t0;
  12094. },
  12095. PrefixedMapView: function PrefixedMapView(t0, t1, t2) {
  12096. this._prefixed_map_view$_map = t0;
  12097. this._prefix = t1;
  12098. this.$ti = t2;
  12099. },
  12100. _PrefixedKeys: function _PrefixedKeys(t0) {
  12101. this._view = t0;
  12102. },
  12103. _PrefixedKeys_iterator_closure: function _PrefixedKeys_iterator_closure(t0) {
  12104. this.$this = t0;
  12105. },
  12106. PublicMemberMapView: function PublicMemberMapView(t0, t1) {
  12107. this._public_member_map_view$_inner = t0;
  12108. this.$ti = t1;
  12109. },
  12110. SourceMapBuffer: function SourceMapBuffer(t0, t1) {
  12111. var _ = this;
  12112. _._source_map_buffer$_buffer = t0;
  12113. _._entries = t1;
  12114. _._column = _._line = 0;
  12115. _._inSpan = false;
  12116. },
  12117. SourceMapBuffer_buildSourceMap_closure: function SourceMapBuffer_buildSourceMap_closure(t0, t1) {
  12118. this._box_0 = t0;
  12119. this.prefixLength = t1;
  12120. },
  12121. UnprefixedMapView: function UnprefixedMapView(t0, t1, t2) {
  12122. this._unprefixed_map_view$_map = t0;
  12123. this._unprefixed_map_view$_prefix = t1;
  12124. this.$ti = t2;
  12125. },
  12126. _UnprefixedKeys: function _UnprefixedKeys(t0) {
  12127. this._unprefixed_map_view$_view = t0;
  12128. },
  12129. _UnprefixedKeys_iterator_closure: function _UnprefixedKeys_iterator_closure(t0) {
  12130. this.$this = t0;
  12131. },
  12132. _UnprefixedKeys_iterator_closure0: function _UnprefixedKeys_iterator_closure0(t0) {
  12133. this.$this = t0;
  12134. },
  12135. toSentence(iter, conjunction) {
  12136. var t1 = iter.__internal$_iterable,
  12137. t2 = J.getInterceptor$asx(t1);
  12138. if (t2.get$length(t1) === 1)
  12139. return J.toString$0$(iter._f.call$1(t2.get$first(t1)));
  12140. return A.IterableExtension_get_exceptLast(iter).join$1(0, ", ") + (" " + conjunction + " " + A.S(iter._f.call$1(t2.get$last(t1))));
  12141. },
  12142. indent(string, indentation) {
  12143. return new A.MappedListIterable(A._setArrayType(string.split("\n"), type$.JSArray_String), new A.indent_closure(indentation), type$.MappedListIterable_String_String).join$1(0, "\n");
  12144. },
  12145. pluralize($name, number, plural) {
  12146. if (number === 1)
  12147. return $name;
  12148. if (plural != null)
  12149. return plural;
  12150. return $name + "s";
  12151. },
  12152. trimAscii(string, excludeEscape) {
  12153. var t1,
  12154. start = A._firstNonWhitespace(string);
  12155. if (start == null)
  12156. t1 = "";
  12157. else {
  12158. t1 = A._lastNonWhitespace(string, true);
  12159. t1.toString;
  12160. t1 = B.JSString_methods.substring$2(string, start, t1 + 1);
  12161. }
  12162. return t1;
  12163. },
  12164. trimAsciiRight(string, excludeEscape) {
  12165. var end = A._lastNonWhitespace(string, excludeEscape);
  12166. return end == null ? "" : B.JSString_methods.substring$2(string, 0, end + 1);
  12167. },
  12168. _firstNonWhitespace(string) {
  12169. var t1, i, t2;
  12170. for (t1 = string.length, i = 0; i < t1; ++i) {
  12171. t2 = B.JSString_methods._codeUnitAt$1(string, i);
  12172. if (!(t2 === 32 || t2 === 9 || t2 === 10 || t2 === 13 || t2 === 12))
  12173. return i;
  12174. }
  12175. return null;
  12176. },
  12177. _lastNonWhitespace(string, excludeEscape) {
  12178. var t1, i, codeUnit;
  12179. for (t1 = string.length, i = t1 - 1; i >= 0; --i) {
  12180. codeUnit = B.JSString_methods.codeUnitAt$1(string, i);
  12181. if (!(codeUnit === 32 || codeUnit === 9 || codeUnit === 10 || codeUnit === 13 || codeUnit === 12))
  12182. if (excludeEscape && i !== 0 && i !== t1 && codeUnit === 92)
  12183. return i + 1;
  12184. else
  12185. return i;
  12186. }
  12187. return null;
  12188. },
  12189. isPublic(member) {
  12190. var start = B.JSString_methods._codeUnitAt$1(member, 0);
  12191. return start !== 45 && start !== 95;
  12192. },
  12193. flattenVertically(iterable, $T) {
  12194. var result,
  12195. t1 = iterable.$ti._eval$1("@<ListIterable.E>")._bind$1($T._eval$1("QueueList<0>"))._eval$1("MappedListIterable<1,2>"),
  12196. queues = A.List_List$of(new A.MappedListIterable(iterable, new A.flattenVertically_closure($T), t1), true, t1._eval$1("ListIterable.E"));
  12197. if (queues.length === 1)
  12198. return B.JSArray_methods.get$first(queues);
  12199. result = A._setArrayType([], $T._eval$1("JSArray<0>"));
  12200. for (; queues.length !== 0;) {
  12201. if (!!queues.fixed$length)
  12202. A.throwExpression(A.UnsupportedError$("removeWhere"));
  12203. B.JSArray_methods._removeWhere$2(queues, new A.flattenVertically_closure0(result, $T), true);
  12204. }
  12205. return result;
  12206. },
  12207. firstOrNull(iterable) {
  12208. var iterator = J.get$iterator$ax(iterable);
  12209. return iterator.moveNext$0() ? iterator.get$current(iterator) : null;
  12210. },
  12211. codepointIndexToCodeUnitIndex(string, codepointIndex) {
  12212. var codeUnitIndex, i, codeUnitIndex0;
  12213. for (codeUnitIndex = 0, i = 0; i < codepointIndex; ++i) {
  12214. codeUnitIndex0 = codeUnitIndex + 1;
  12215. codeUnitIndex = B.JSString_methods._codeUnitAt$1(string, codeUnitIndex) >>> 10 === 54 ? codeUnitIndex0 + 1 : codeUnitIndex0;
  12216. }
  12217. return codeUnitIndex;
  12218. },
  12219. codeUnitIndexToCodepointIndex(string, codeUnitIndex) {
  12220. var codepointIndex, i;
  12221. for (codepointIndex = 0, i = 0; i < codeUnitIndex; i = (B.JSString_methods._codeUnitAt$1(string, i) >>> 10 === 54 ? i + 1 : i) + 1)
  12222. ++codepointIndex;
  12223. return codepointIndex;
  12224. },
  12225. frameForSpan(span, member, url) {
  12226. var t2, t3,
  12227. t1 = url == null ? span.get$sourceUrl(span) : url;
  12228. if (t1 == null)
  12229. t1 = $.$get$_noSourceUrl();
  12230. t2 = span.get$start(span);
  12231. t2 = t2.file.getLine$1(t2.offset);
  12232. t3 = span.get$start(span);
  12233. return new A.Frame(t1, t2 + 1, t3.file.getColumn$1(t3.offset) + 1, member);
  12234. },
  12235. declarationName(span) {
  12236. var text = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(span.file._decodedChars, span._file$_start, span._end), 0, null);
  12237. return A.trimAsciiRight(B.JSString_methods.substring$2(text, 0, B.JSString_methods.indexOf$1(text, ":")), false);
  12238. },
  12239. unvendor($name) {
  12240. var i,
  12241. t1 = $name.length;
  12242. if (t1 < 2)
  12243. return $name;
  12244. if (B.JSString_methods._codeUnitAt$1($name, 0) !== 45)
  12245. return $name;
  12246. if (B.JSString_methods._codeUnitAt$1($name, 1) === 45)
  12247. return $name;
  12248. for (i = 2; i < t1; ++i)
  12249. if (B.JSString_methods._codeUnitAt$1($name, i) === 45)
  12250. return B.JSString_methods.substring$1($name, i + 1);
  12251. return $name;
  12252. },
  12253. equalsIgnoreCase(string1, string2) {
  12254. var t1, i;
  12255. if (string1 === string2)
  12256. return true;
  12257. if (string1 == null || false)
  12258. return false;
  12259. t1 = string1.length;
  12260. if (t1 !== string2.length)
  12261. return false;
  12262. for (i = 0; i < t1; ++i)
  12263. if (!A.characterEqualsIgnoreCase(B.JSString_methods._codeUnitAt$1(string1, i), B.JSString_methods._codeUnitAt$1(string2, i)))
  12264. return false;
  12265. return true;
  12266. },
  12267. startsWithIgnoreCase(string, prefix) {
  12268. var i,
  12269. t1 = prefix.length;
  12270. if (string.length < t1)
  12271. return false;
  12272. for (i = 0; i < t1; ++i)
  12273. if (!A.characterEqualsIgnoreCase(B.JSString_methods._codeUnitAt$1(string, i), B.JSString_methods._codeUnitAt$1(prefix, i)))
  12274. return false;
  12275. return true;
  12276. },
  12277. mapInPlace(list, $function) {
  12278. var i;
  12279. for (i = 0; i < list.length; ++i)
  12280. list[i] = $function.call$1(list[i]);
  12281. },
  12282. longestCommonSubsequence(list1, list2, select, $T) {
  12283. var t1, _i, selections, i, i0, j, selection, j0,
  12284. _length = list1.get$length(list1) + 1,
  12285. lengths = J.JSArray_JSArray$allocateFixed(_length, type$.List_int);
  12286. for (t1 = type$.int, _i = 0; _i < _length; ++_i)
  12287. lengths[_i] = A.List_List$filled(((list2._tail - list2._head & J.get$length$asx(list2._table) - 1) >>> 0) + 1, 0, false, t1);
  12288. _length = list1.get$length(list1);
  12289. selections = J.JSArray_JSArray$allocateFixed(_length, $T._eval$1("List<0?>"));
  12290. for (t1 = $T._eval$1("0?"), _i = 0; _i < _length; ++_i)
  12291. selections[_i] = A.List_List$filled((list2._tail - list2._head & J.get$length$asx(list2._table) - 1) >>> 0, null, false, t1);
  12292. for (i = 0; i < (list1._tail - list1._head & J.get$length$asx(list1._table) - 1) >>> 0; i = i0)
  12293. for (i0 = i + 1, j = 0; j < (list2._tail - list2._head & J.get$length$asx(list2._table) - 1) >>> 0; j = j0) {
  12294. selection = select.call$2(list1.$index(0, i), list2.$index(0, j));
  12295. selections[i][j] = selection;
  12296. t1 = lengths[i0];
  12297. j0 = j + 1;
  12298. t1[j0] = selection == null ? Math.max(t1[j], lengths[i][j0]) : lengths[i][j] + 1;
  12299. }
  12300. return new A.longestCommonSubsequence_backtrack(selections, lengths, $T).call$2(list1.get$length(list1) - 1, list2.get$length(list2) - 1);
  12301. },
  12302. removeFirstWhere(list, test, orElse) {
  12303. var i;
  12304. for (i = 0; i < list.length; ++i) {
  12305. if (!test.call$1(list[i]))
  12306. continue;
  12307. B.JSArray_methods.removeAt$1(list, i);
  12308. return;
  12309. }
  12310. orElse.call$0();
  12311. },
  12312. mapAddAll2(destination, source, K1, K2, $V) {
  12313. source.forEach$1(0, new A.mapAddAll2_closure(destination, K1, K2, $V));
  12314. },
  12315. setAll(map, keys, value) {
  12316. var t1;
  12317. for (t1 = J.get$iterator$ax(keys); t1.moveNext$0();)
  12318. map.$indexSet(0, t1.get$current(t1), value);
  12319. },
  12320. rotateSlice(list, start, end) {
  12321. var i, next,
  12322. element = list.$index(0, end - 1);
  12323. for (i = start; i < end; ++i, element = next) {
  12324. next = list.$index(0, i);
  12325. list.$indexSet(0, i, element);
  12326. }
  12327. },
  12328. mapAsync(iterable, callback, $E, $F) {
  12329. return A.mapAsync$body(iterable, callback, $E, $F, $F._eval$1("Iterable<0>"));
  12330. },
  12331. mapAsync$body(iterable, callback, $E, $F, $async$type) {
  12332. var $async$goto = 0,
  12333. $async$completer = A._makeAsyncAwaitCompleter($async$type),
  12334. $async$returnValue, t2, _i, t1, $async$temp1;
  12335. var $async$mapAsync = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  12336. if ($async$errorCode === 1)
  12337. return A._asyncRethrow($async$result, $async$completer);
  12338. while (true)
  12339. switch ($async$goto) {
  12340. case 0:
  12341. // Function start
  12342. t1 = A._setArrayType([], $F._eval$1("JSArray<0>"));
  12343. t2 = iterable.length, _i = 0;
  12344. case 3:
  12345. // for condition
  12346. if (!(_i < t2)) {
  12347. // goto after for
  12348. $async$goto = 5;
  12349. break;
  12350. }
  12351. $async$temp1 = t1;
  12352. $async$goto = 6;
  12353. return A._asyncAwait(callback.call$1(iterable[_i]), $async$mapAsync);
  12354. case 6:
  12355. // returning from await.
  12356. $async$temp1.push($async$result);
  12357. case 4:
  12358. // for update
  12359. ++_i;
  12360. // goto for condition
  12361. $async$goto = 3;
  12362. break;
  12363. case 5:
  12364. // after for
  12365. $async$returnValue = t1;
  12366. // goto return
  12367. $async$goto = 1;
  12368. break;
  12369. case 1:
  12370. // return
  12371. return A._asyncReturn($async$returnValue, $async$completer);
  12372. }
  12373. });
  12374. return A._asyncStartSync($async$mapAsync, $async$completer);
  12375. },
  12376. putIfAbsentAsync(map, key, ifAbsent, $K, $V) {
  12377. return A.putIfAbsentAsync$body(map, key, ifAbsent, $K, $V, $V);
  12378. },
  12379. putIfAbsentAsync$body(map, key, ifAbsent, $K, $V, $async$type) {
  12380. var $async$goto = 0,
  12381. $async$completer = A._makeAsyncAwaitCompleter($async$type),
  12382. $async$returnValue, t1, value;
  12383. var $async$putIfAbsentAsync = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  12384. if ($async$errorCode === 1)
  12385. return A._asyncRethrow($async$result, $async$completer);
  12386. while (true)
  12387. switch ($async$goto) {
  12388. case 0:
  12389. // Function start
  12390. if (map.containsKey$1(key)) {
  12391. t1 = map.$index(0, key);
  12392. $async$returnValue = t1 == null ? $V._as(t1) : t1;
  12393. // goto return
  12394. $async$goto = 1;
  12395. break;
  12396. }
  12397. $async$goto = 3;
  12398. return A._asyncAwait(ifAbsent.call$0(), $async$putIfAbsentAsync);
  12399. case 3:
  12400. // returning from await.
  12401. value = $async$result;
  12402. map.$indexSet(0, key, value);
  12403. $async$returnValue = value;
  12404. // goto return
  12405. $async$goto = 1;
  12406. break;
  12407. case 1:
  12408. // return
  12409. return A._asyncReturn($async$returnValue, $async$completer);
  12410. }
  12411. });
  12412. return A._asyncStartSync($async$putIfAbsentAsync, $async$completer);
  12413. },
  12414. copyMapOfMap(map, K1, K2, $V) {
  12415. var t2, t3, t4, t5,
  12416. t1 = A.LinkedHashMap_LinkedHashMap$_empty(K1, K2._eval$1("@<0>")._bind$1($V)._eval$1("Map<1,2>"));
  12417. for (t2 = map.get$entries(map), t2 = t2.get$iterator(t2); t2.moveNext$0();) {
  12418. t3 = t2.get$current(t2);
  12419. t4 = t3.key;
  12420. t3 = t3.value;
  12421. t5 = A.LinkedHashMap_LinkedHashMap(null, null, null, K2, $V);
  12422. t5.addAll$1(0, t3);
  12423. t1.$indexSet(0, t4, t5);
  12424. }
  12425. return t1;
  12426. },
  12427. copyMapOfList(map, $K, $E) {
  12428. var t2, t3,
  12429. t1 = A.LinkedHashMap_LinkedHashMap$_empty($K, $E._eval$1("List<0>"));
  12430. for (t2 = map.get$entries(map), t2 = t2.get$iterator(t2); t2.moveNext$0();) {
  12431. t3 = t2.get$current(t2);
  12432. t1.$indexSet(0, t3.key, J.toList$0$ax(t3.value));
  12433. }
  12434. return t1;
  12435. },
  12436. consumeEscapedCharacter(scanner) {
  12437. var first, value, i, next, t1;
  12438. scanner.expectChar$1(92);
  12439. first = scanner.peekChar$0();
  12440. if (first == null)
  12441. return 65533;
  12442. else if (first === 10 || first === 13 || first === 12)
  12443. scanner.error$1(0, "Expected escape sequence.");
  12444. else if (A.isHex(first)) {
  12445. for (value = 0, i = 0; i < 6; ++i) {
  12446. next = scanner.peekChar$0();
  12447. if (next == null || !A.isHex(next))
  12448. break;
  12449. value = (value << 4 >>> 0) + A.asHex(scanner.readChar$0());
  12450. }
  12451. t1 = scanner.peekChar$0();
  12452. if (t1 === 32 || t1 === 9 || t1 === 10 || t1 === 13 || t1 === 12)
  12453. scanner.readChar$0();
  12454. if (value !== 0)
  12455. t1 = value >= 55296 && value <= 57343 || value >= 1114111;
  12456. else
  12457. t1 = true;
  12458. if (t1)
  12459. return 65533;
  12460. else
  12461. return value;
  12462. } else
  12463. return scanner.readChar$0();
  12464. },
  12465. throwWithTrace(error, trace) {
  12466. A.attachTrace(error, trace);
  12467. throw A.wrapException(error);
  12468. },
  12469. attachTrace(error, trace) {
  12470. var t1;
  12471. if (trace.toString$0(0).length === 0)
  12472. return;
  12473. t1 = $.$get$_traces();
  12474. A.Expando__checkType(error);
  12475. t1 = t1._jsWeakMap;
  12476. if (t1.get(error) == null)
  12477. t1.set(error, trace);
  12478. },
  12479. getTrace(error) {
  12480. var t1;
  12481. if (typeof error == "string" || typeof error == "number" || A._isBool(error))
  12482. t1 = null;
  12483. else {
  12484. t1 = $.$get$_traces();
  12485. A.Expando__checkType(error);
  12486. t1 = t1._jsWeakMap.get(error);
  12487. }
  12488. return t1;
  12489. },
  12490. IterableExtension_get_exceptLast(_this) {
  12491. var t1 = J.getInterceptor$asx(_this),
  12492. size = t1.get$length(_this) - 1;
  12493. if (size < 0)
  12494. throw A.wrapException(A.StateError$("Iterable may not be empty"));
  12495. return t1.take$1(_this, size);
  12496. },
  12497. indent_closure: function indent_closure(t0) {
  12498. this.indentation = t0;
  12499. },
  12500. flattenVertically_closure: function flattenVertically_closure(t0) {
  12501. this.T = t0;
  12502. },
  12503. flattenVertically_closure0: function flattenVertically_closure0(t0, t1) {
  12504. this.result = t0;
  12505. this.T = t1;
  12506. },
  12507. longestCommonSubsequence_backtrack: function longestCommonSubsequence_backtrack(t0, t1, t2) {
  12508. this.selections = t0;
  12509. this.lengths = t1;
  12510. this.T = t2;
  12511. },
  12512. mapAddAll2_closure: function mapAddAll2_closure(t0, t1, t2, t3) {
  12513. var _ = this;
  12514. _.destination = t0;
  12515. _.K1 = t1;
  12516. _.K2 = t2;
  12517. _.V = t3;
  12518. },
  12519. SassApiValue_assertSelector(_this, allowParent, $name) {
  12520. var error, stackTrace, t1, exception,
  12521. string = _this._selectorString$1($name);
  12522. try {
  12523. t1 = A.SelectorList_SelectorList$parse(string, allowParent, true, null);
  12524. return t1;
  12525. } catch (exception) {
  12526. t1 = A.unwrapException(exception);
  12527. if (t1 instanceof A.SassFormatException) {
  12528. error = t1;
  12529. stackTrace = A.getTraceFromException(exception);
  12530. t1 = B.JSString_methods.replaceFirst$2(J.toString$0$(error), "Error: ", "");
  12531. A.throwWithTrace(new A.SassScriptException($name == null ? t1 : "$" + $name + ": " + t1), stackTrace);
  12532. } else
  12533. throw exception;
  12534. }
  12535. },
  12536. SassApiValue_assertCompoundSelector(_this, $name) {
  12537. var error, stackTrace, t1, exception,
  12538. allowParent = false,
  12539. string = _this._selectorString$1($name);
  12540. try {
  12541. t1 = A.SelectorParser$(string, allowParent, true, null, null).parseCompoundSelector$0();
  12542. return t1;
  12543. } catch (exception) {
  12544. t1 = A.unwrapException(exception);
  12545. if (t1 instanceof A.SassFormatException) {
  12546. error = t1;
  12547. stackTrace = A.getTraceFromException(exception);
  12548. t1 = B.JSString_methods.replaceFirst$2(J.toString$0$(error), "Error: ", "");
  12549. A.throwWithTrace(new A.SassScriptException("$" + $name + ": " + t1), stackTrace);
  12550. } else
  12551. throw exception;
  12552. }
  12553. },
  12554. Value: function Value() {
  12555. },
  12556. SassArgumentList$(contents, keywords, separator) {
  12557. var t1 = type$.Value;
  12558. t1 = new A.SassArgumentList(A.ConstantMap_ConstantMap$from(keywords, type$.String, t1), A.List_List$unmodifiable(contents, t1), separator, false);
  12559. t1.SassList$3$brackets(contents, separator, false);
  12560. return t1;
  12561. },
  12562. SassArgumentList: function SassArgumentList(t0, t1, t2, t3) {
  12563. var _ = this;
  12564. _._keywords = t0;
  12565. _._wereKeywordsAccessed = false;
  12566. _._list$_contents = t1;
  12567. _._separator = t2;
  12568. _._hasBrackets = t3;
  12569. },
  12570. SassBoolean: function SassBoolean(t0) {
  12571. this.value = t0;
  12572. },
  12573. SassCalculation_calc(argument) {
  12574. argument = A.SassCalculation__simplify(argument);
  12575. if (argument instanceof A.SassNumber)
  12576. return argument;
  12577. if (argument instanceof A.SassCalculation)
  12578. return argument;
  12579. return new A.SassCalculation("calc", A.List_List$unmodifiable([argument], type$.Object));
  12580. },
  12581. SassCalculation_min($arguments) {
  12582. var minimum, _i, arg, t2,
  12583. args = A.List_List$unmodifiable(new A.MappedListIterable($arguments, A.calculation_SassCalculation__simplify$closure(), A._arrayInstanceType($arguments)._eval$1("MappedListIterable<1,@>")), type$.Object),
  12584. t1 = args.length;
  12585. if (t1 === 0)
  12586. throw A.wrapException(A.ArgumentError$("min() must have at least one argument.", null));
  12587. for (minimum = null, _i = 0; _i < t1; ++_i) {
  12588. arg = args[_i];
  12589. if (arg instanceof A.SassNumber)
  12590. t2 = minimum != null && !minimum.isComparableTo$1(arg);
  12591. else
  12592. t2 = true;
  12593. if (t2) {
  12594. minimum = null;
  12595. break;
  12596. } else if (minimum == null || minimum.greaterThan$1(arg).value)
  12597. minimum = arg;
  12598. }
  12599. if (minimum != null)
  12600. return minimum;
  12601. A.SassCalculation__verifyCompatibleNumbers(args);
  12602. return new A.SassCalculation("min", args);
  12603. },
  12604. SassCalculation_max($arguments) {
  12605. var maximum, _i, arg, t2,
  12606. args = A.List_List$unmodifiable(new A.MappedListIterable($arguments, A.calculation_SassCalculation__simplify$closure(), A._arrayInstanceType($arguments)._eval$1("MappedListIterable<1,@>")), type$.Object),
  12607. t1 = args.length;
  12608. if (t1 === 0)
  12609. throw A.wrapException(A.ArgumentError$("max() must have at least one argument.", null));
  12610. for (maximum = null, _i = 0; _i < t1; ++_i) {
  12611. arg = args[_i];
  12612. if (arg instanceof A.SassNumber)
  12613. t2 = maximum != null && !maximum.isComparableTo$1(arg);
  12614. else
  12615. t2 = true;
  12616. if (t2) {
  12617. maximum = null;
  12618. break;
  12619. } else if (maximum == null || maximum.lessThan$1(arg).value)
  12620. maximum = arg;
  12621. }
  12622. if (maximum != null)
  12623. return maximum;
  12624. A.SassCalculation__verifyCompatibleNumbers(args);
  12625. return new A.SassCalculation("max", args);
  12626. },
  12627. SassCalculation_clamp(min, value, max) {
  12628. var t1, args;
  12629. if (value == null && max != null)
  12630. throw A.wrapException(A.ArgumentError$("If value is null, max must also be null.", null));
  12631. min = A.SassCalculation__simplify(min);
  12632. value = A.NullableExtension_andThen(value, A.calculation_SassCalculation__simplify$closure());
  12633. max = A.NullableExtension_andThen(max, A.calculation_SassCalculation__simplify$closure());
  12634. if (min instanceof A.SassNumber && value instanceof A.SassNumber && max instanceof A.SassNumber && min.hasCompatibleUnits$1(value) && min.hasCompatibleUnits$1(max)) {
  12635. if (value.lessThanOrEquals$1(min).value)
  12636. return min;
  12637. if (value.greaterThanOrEquals$1(max).value)
  12638. return max;
  12639. return value;
  12640. }
  12641. t1 = [min];
  12642. if (value != null)
  12643. t1.push(value);
  12644. if (max != null)
  12645. t1.push(max);
  12646. args = A.List_List$unmodifiable(t1, type$.Object);
  12647. A.SassCalculation__verifyCompatibleNumbers(args);
  12648. A.SassCalculation__verifyLength(args, 3);
  12649. return new A.SassCalculation("clamp", args);
  12650. },
  12651. SassCalculation_operateInternal(operator, left, right, inMinMax, simplify) {
  12652. var t1, t2;
  12653. if (!simplify)
  12654. return new A.CalculationOperation(operator, left, right);
  12655. left = A.SassCalculation__simplify(left);
  12656. right = A.SassCalculation__simplify(right);
  12657. t1 = operator === B.CalculationOperator_IyK;
  12658. if (t1 || operator === B.CalculationOperator_2bx) {
  12659. if (left instanceof A.SassNumber)
  12660. if (right instanceof A.SassNumber)
  12661. t2 = inMinMax ? left.isComparableTo$1(right) : left.hasCompatibleUnits$1(right);
  12662. else
  12663. t2 = false;
  12664. else
  12665. t2 = false;
  12666. if (t2)
  12667. return t1 ? left.plus$1(right) : left.minus$1(right);
  12668. A.SassCalculation__verifyCompatibleNumbers(A._setArrayType([left, right], type$.JSArray_Object));
  12669. if (right instanceof A.SassNumber) {
  12670. t2 = right._number$_value;
  12671. t2 = t2 < 0 && !A.fuzzyEquals(t2, 0);
  12672. } else
  12673. t2 = false;
  12674. if (t2) {
  12675. right = right.times$1(A.SassNumber_SassNumber(-1, null));
  12676. operator = t1 ? B.CalculationOperator_2bx : B.CalculationOperator_IyK;
  12677. }
  12678. return new A.CalculationOperation(operator, left, right);
  12679. } else if (left instanceof A.SassNumber && right instanceof A.SassNumber)
  12680. return operator === B.CalculationOperator_jFr ? left.times$1(right) : left.dividedBy$1(right);
  12681. else
  12682. return new A.CalculationOperation(operator, left, right);
  12683. },
  12684. SassCalculation__simplify(arg) {
  12685. var _s32_ = " can't be used in a calculation.";
  12686. if (arg instanceof A.SassNumber || arg instanceof A.CalculationInterpolation || arg instanceof A.CalculationOperation)
  12687. return arg;
  12688. else if (arg instanceof A.SassString) {
  12689. if (!arg._hasQuotes)
  12690. return arg;
  12691. throw A.wrapException(A.SassScriptException$("Quoted string " + arg.toString$0(0) + _s32_, null));
  12692. } else if (arg instanceof A.SassCalculation)
  12693. return arg.name === "calc" ? arg.$arguments[0] : arg;
  12694. else if (arg instanceof A.Value)
  12695. throw A.wrapException(A.SassScriptException$("Value " + arg.toString$0(0) + _s32_, null));
  12696. else
  12697. throw A.wrapException(A.ArgumentError$("Unexpected calculation argument " + A.S(arg) + ".", null));
  12698. },
  12699. SassCalculation__verifyCompatibleNumbers(args) {
  12700. var t1, _i, t2, arg, i, number1, j, number2;
  12701. for (t1 = args.length, _i = 0; t2 = args.length, _i < t2; args.length === t1 || (0, A.throwConcurrentModificationError)(args), ++_i) {
  12702. arg = args[_i];
  12703. if (!(arg instanceof A.SassNumber))
  12704. continue;
  12705. if (arg.get$numeratorUnits(arg).length > 1 || arg.get$denominatorUnits(arg).length !== 0)
  12706. throw A.wrapException(A.SassScriptException$("Number " + arg.toString$0(0) + " isn't compatible with CSS calculations.", null));
  12707. }
  12708. for (t1 = t2, i = 0; i < t1 - 1; ++i) {
  12709. number1 = args[i];
  12710. if (!(number1 instanceof A.SassNumber))
  12711. continue;
  12712. for (j = i + 1; t1 = args.length, j < t1; ++j) {
  12713. number2 = args[j];
  12714. if (!(number2 instanceof A.SassNumber))
  12715. continue;
  12716. if (number1.hasPossiblyCompatibleUnits$1(number2))
  12717. continue;
  12718. throw A.wrapException(A.SassScriptException$(number1.toString$0(0) + " and " + number2.toString$0(0) + " are incompatible.", null));
  12719. }
  12720. }
  12721. },
  12722. SassCalculation__verifyLength(args, expectedLength) {
  12723. var t1 = args.length;
  12724. if (t1 === expectedLength)
  12725. return;
  12726. if (B.JSArray_methods.any$1(args, new A.SassCalculation__verifyLength_closure()))
  12727. return;
  12728. throw A.wrapException(A.SassScriptException$("" + expectedLength + " arguments required, but only " + t1 + " " + A.pluralize("was", t1, "were") + " passed.", null));
  12729. },
  12730. SassCalculation: function SassCalculation(t0, t1) {
  12731. this.name = t0;
  12732. this.$arguments = t1;
  12733. },
  12734. SassCalculation__verifyLength_closure: function SassCalculation__verifyLength_closure() {
  12735. },
  12736. CalculationOperation: function CalculationOperation(t0, t1, t2) {
  12737. this.operator = t0;
  12738. this.left = t1;
  12739. this.right = t2;
  12740. },
  12741. CalculationOperator: function CalculationOperator(t0, t1, t2, t3) {
  12742. var _ = this;
  12743. _.name = t0;
  12744. _.operator = t1;
  12745. _.precedence = t2;
  12746. _._name = t3;
  12747. },
  12748. CalculationInterpolation: function CalculationInterpolation(t0) {
  12749. this.value = t0;
  12750. },
  12751. SassColor$rgb(red, green, blue, alpha) {
  12752. var _null = null,
  12753. t1 = new A.SassColor(red, green, blue, _null, _null, _null, alpha == null ? 1 : A.fuzzyAssertRange(alpha, 0, 1, "alpha"), _null);
  12754. A.RangeError_checkValueInInterval(t1.get$red(t1), 0, 255, "red");
  12755. A.RangeError_checkValueInInterval(t1.get$green(t1), 0, 255, "green");
  12756. A.RangeError_checkValueInInterval(t1.get$blue(t1), 0, 255, "blue");
  12757. return t1;
  12758. },
  12759. SassColor$rgbInternal(_red, _green, _blue, alpha, format) {
  12760. var t1 = new A.SassColor(_red, _green, _blue, null, null, null, alpha == null ? 1 : A.fuzzyAssertRange(alpha, 0, 1, "alpha"), format);
  12761. A.RangeError_checkValueInInterval(t1.get$red(t1), 0, 255, "red");
  12762. A.RangeError_checkValueInInterval(t1.get$green(t1), 0, 255, "green");
  12763. A.RangeError_checkValueInInterval(t1.get$blue(t1), 0, 255, "blue");
  12764. return t1;
  12765. },
  12766. SassColor$hslInternal(hue, saturation, lightness, alpha, format) {
  12767. var t1 = B.JSNumber_methods.$mod(hue, 360),
  12768. t2 = A.fuzzyAssertRange(saturation, 0, 100, "saturation"),
  12769. t3 = A.fuzzyAssertRange(lightness, 0, 100, "lightness");
  12770. return new A.SassColor(null, null, null, t1, t2, t3, alpha == null ? 1 : A.fuzzyAssertRange(alpha, 0, 1, "alpha"), format);
  12771. },
  12772. SassColor_SassColor$hwb(hue, whiteness, blackness, alpha) {
  12773. var t2, t1 = {},
  12774. scaledHue = B.JSNumber_methods.$mod(hue, 360) / 360,
  12775. scaledWhiteness = t1.scaledWhiteness = A.fuzzyAssertRange(whiteness, 0, 100, "whiteness") / 100,
  12776. scaledBlackness = A.fuzzyAssertRange(blackness, 0, 100, "blackness") / 100,
  12777. sum = scaledWhiteness + scaledBlackness;
  12778. if (sum > 1) {
  12779. t2 = t1.scaledWhiteness = scaledWhiteness / sum;
  12780. scaledBlackness /= sum;
  12781. } else
  12782. t2 = scaledWhiteness;
  12783. t2 = new A.SassColor_SassColor$hwb_toRgb(t1, 1 - t2 - scaledBlackness);
  12784. return A.SassColor$rgb(t2.call$1(scaledHue + 0.3333333333333333), t2.call$1(scaledHue), t2.call$1(scaledHue - 0.3333333333333333), alpha);
  12785. },
  12786. SassColor__hueToRgb(m1, m2, hue) {
  12787. if (hue < 0)
  12788. ++hue;
  12789. if (hue > 1)
  12790. --hue;
  12791. if (hue < 0.16666666666666666)
  12792. return m1 + (m2 - m1) * hue * 6;
  12793. else if (hue < 0.5)
  12794. return m2;
  12795. else if (hue < 0.6666666666666666)
  12796. return m1 + (m2 - m1) * (0.6666666666666666 - hue) * 6;
  12797. else
  12798. return m1;
  12799. },
  12800. SassColor: function SassColor(t0, t1, t2, t3, t4, t5, t6, t7) {
  12801. var _ = this;
  12802. _._red = t0;
  12803. _._green = t1;
  12804. _._blue = t2;
  12805. _._hue = t3;
  12806. _._saturation = t4;
  12807. _._lightness = t5;
  12808. _._alpha = t6;
  12809. _.format = t7;
  12810. },
  12811. SassColor_SassColor$hwb_toRgb: function SassColor_SassColor$hwb_toRgb(t0, t1) {
  12812. this._box_0 = t0;
  12813. this.factor = t1;
  12814. },
  12815. _ColorFormatEnum: function _ColorFormatEnum(t0) {
  12816. this._color$_name = t0;
  12817. },
  12818. SpanColorFormat: function SpanColorFormat(t0) {
  12819. this._color$_span = t0;
  12820. },
  12821. SassFunction: function SassFunction(t0) {
  12822. this.callable = t0;
  12823. },
  12824. SassList$(contents, _separator, brackets) {
  12825. var t1 = new A.SassList(A.List_List$unmodifiable(contents, type$.Value), _separator, brackets);
  12826. t1.SassList$3$brackets(contents, _separator, brackets);
  12827. return t1;
  12828. },
  12829. SassList: function SassList(t0, t1, t2) {
  12830. this._list$_contents = t0;
  12831. this._separator = t1;
  12832. this._hasBrackets = t2;
  12833. },
  12834. SassList_isBlank_closure: function SassList_isBlank_closure() {
  12835. },
  12836. ListSeparator: function ListSeparator(t0, t1, t2) {
  12837. this._list$_name = t0;
  12838. this.separator = t1;
  12839. this._name = t2;
  12840. },
  12841. SassMap: function SassMap(t0) {
  12842. this._map$_contents = t0;
  12843. },
  12844. SassMap_asList_closure: function SassMap_asList_closure(t0) {
  12845. this.result = t0;
  12846. },
  12847. _SassNull: function _SassNull() {
  12848. },
  12849. conversionFactor(unit1, unit2) {
  12850. var innerMap;
  12851. if (unit1 === unit2)
  12852. return 1;
  12853. innerMap = B.Map_K2BWj.$index(0, unit1);
  12854. if (innerMap == null)
  12855. return null;
  12856. return innerMap.$index(0, unit2);
  12857. },
  12858. SassNumber_SassNumber(value, unit) {
  12859. return unit == null ? new A.UnitlessSassNumber(value, null) : new A.SingleUnitSassNumber(unit, value, null);
  12860. },
  12861. SassNumber_SassNumber$withUnits(value, denominatorUnits, numeratorUnits) {
  12862. var t1, numerators, unsimplifiedDenominators, denominators, valueDouble, _i, denominator, simplifiedAway, i, factor, _null = null;
  12863. if (denominatorUnits == null || denominatorUnits.length === 0) {
  12864. t1 = numeratorUnits.length;
  12865. if (t1 === 0)
  12866. return new A.UnitlessSassNumber(value, _null);
  12867. else if (t1 === 1)
  12868. return new A.SingleUnitSassNumber(numeratorUnits[0], value, _null);
  12869. else
  12870. return new A.ComplexSassNumber(A.List_List$unmodifiable(numeratorUnits, type$.String), B.List_empty, value, _null);
  12871. } else {
  12872. t1 = numeratorUnits.length;
  12873. if (t1 === 0)
  12874. return new A.ComplexSassNumber(B.List_empty, A.List_List$unmodifiable(denominatorUnits, type$.String), value, _null);
  12875. else {
  12876. numerators = A._setArrayType(numeratorUnits.slice(0), A._arrayInstanceType(numeratorUnits));
  12877. unsimplifiedDenominators = A._setArrayType(denominatorUnits.slice(0), A.instanceType(denominatorUnits)._eval$1("JSArray<1>"));
  12878. denominators = A._setArrayType([], type$.JSArray_String);
  12879. for (t1 = unsimplifiedDenominators.length, valueDouble = value, _i = 0; _i < unsimplifiedDenominators.length; unsimplifiedDenominators.length === t1 || (0, A.throwConcurrentModificationError)(unsimplifiedDenominators), ++_i) {
  12880. denominator = unsimplifiedDenominators[_i];
  12881. i = 0;
  12882. while (true) {
  12883. if (!(i < numerators.length)) {
  12884. simplifiedAway = false;
  12885. break;
  12886. }
  12887. c$0: {
  12888. factor = A.conversionFactor(denominator, numerators[i]);
  12889. if (factor == null)
  12890. break c$0;
  12891. valueDouble *= factor;
  12892. B.JSArray_methods.removeAt$1(numerators, i);
  12893. simplifiedAway = true;
  12894. break;
  12895. }
  12896. ++i;
  12897. }
  12898. if (!simplifiedAway)
  12899. denominators.push(denominator);
  12900. }
  12901. if (denominatorUnits.length === 0) {
  12902. t1 = numeratorUnits.length;
  12903. if (t1 === 0)
  12904. return new A.UnitlessSassNumber(valueDouble, _null);
  12905. else if (t1 === 1)
  12906. return new A.SingleUnitSassNumber(B.JSArray_methods.get$single(numeratorUnits), valueDouble, _null);
  12907. }
  12908. t1 = type$.String;
  12909. return new A.ComplexSassNumber(A.List_List$unmodifiable(numerators, t1), A.List_List$unmodifiable(denominators, t1), valueDouble, _null);
  12910. }
  12911. }
  12912. },
  12913. SassNumber: function SassNumber() {
  12914. },
  12915. SassNumber__coerceOrConvertValue_compatibilityException: function SassNumber__coerceOrConvertValue_compatibilityException(t0, t1, t2, t3, t4, t5, t6) {
  12916. var _ = this;
  12917. _.$this = t0;
  12918. _.other = t1;
  12919. _.otherName = t2;
  12920. _.otherHasUnits = t3;
  12921. _.name = t4;
  12922. _.newNumerators = t5;
  12923. _.newDenominators = t6;
  12924. },
  12925. SassNumber__coerceOrConvertValue_closure: function SassNumber__coerceOrConvertValue_closure(t0, t1) {
  12926. this._box_0 = t0;
  12927. this.newNumerator = t1;
  12928. },
  12929. SassNumber__coerceOrConvertValue_closure0: function SassNumber__coerceOrConvertValue_closure0(t0) {
  12930. this.compatibilityException = t0;
  12931. },
  12932. SassNumber__coerceOrConvertValue_closure1: function SassNumber__coerceOrConvertValue_closure1(t0, t1) {
  12933. this._box_0 = t0;
  12934. this.newDenominator = t1;
  12935. },
  12936. SassNumber__coerceOrConvertValue_closure2: function SassNumber__coerceOrConvertValue_closure2(t0) {
  12937. this.compatibilityException = t0;
  12938. },
  12939. SassNumber_plus_closure: function SassNumber_plus_closure() {
  12940. },
  12941. SassNumber_minus_closure: function SassNumber_minus_closure() {
  12942. },
  12943. SassNumber_multiplyUnits_closure: function SassNumber_multiplyUnits_closure(t0, t1) {
  12944. this._box_0 = t0;
  12945. this.numerator = t1;
  12946. },
  12947. SassNumber_multiplyUnits_closure0: function SassNumber_multiplyUnits_closure0(t0, t1) {
  12948. this.newNumerators = t0;
  12949. this.numerator = t1;
  12950. },
  12951. SassNumber_multiplyUnits_closure1: function SassNumber_multiplyUnits_closure1(t0, t1) {
  12952. this._box_0 = t0;
  12953. this.numerator = t1;
  12954. },
  12955. SassNumber_multiplyUnits_closure2: function SassNumber_multiplyUnits_closure2(t0, t1) {
  12956. this.newNumerators = t0;
  12957. this.numerator = t1;
  12958. },
  12959. SassNumber__areAnyConvertible_closure: function SassNumber__areAnyConvertible_closure(t0) {
  12960. this.units2 = t0;
  12961. },
  12962. SassNumber__canonicalizeUnitList_closure: function SassNumber__canonicalizeUnitList_closure() {
  12963. },
  12964. SassNumber__canonicalMultiplier_closure: function SassNumber__canonicalMultiplier_closure(t0) {
  12965. this.$this = t0;
  12966. },
  12967. SassNumber_unitSuggestion_closure: function SassNumber_unitSuggestion_closure() {
  12968. },
  12969. SassNumber_unitSuggestion_closure0: function SassNumber_unitSuggestion_closure0() {
  12970. },
  12971. ComplexSassNumber: function ComplexSassNumber(t0, t1, t2, t3) {
  12972. var _ = this;
  12973. _._numeratorUnits = t0;
  12974. _._denominatorUnits = t1;
  12975. _._number$_value = t2;
  12976. _.hashCache = null;
  12977. _.asSlash = t3;
  12978. },
  12979. SingleUnitSassNumber: function SingleUnitSassNumber(t0, t1, t2) {
  12980. var _ = this;
  12981. _._unit = t0;
  12982. _._number$_value = t1;
  12983. _.hashCache = null;
  12984. _.asSlash = t2;
  12985. },
  12986. SingleUnitSassNumber__coerceToUnit_closure: function SingleUnitSassNumber__coerceToUnit_closure(t0, t1) {
  12987. this.$this = t0;
  12988. this.unit = t1;
  12989. },
  12990. SingleUnitSassNumber__coerceValueToUnit_closure: function SingleUnitSassNumber__coerceValueToUnit_closure(t0) {
  12991. this.$this = t0;
  12992. },
  12993. SingleUnitSassNumber_multiplyUnits_closure: function SingleUnitSassNumber_multiplyUnits_closure(t0, t1) {
  12994. this._box_0 = t0;
  12995. this.$this = t1;
  12996. },
  12997. SingleUnitSassNumber_multiplyUnits_closure0: function SingleUnitSassNumber_multiplyUnits_closure0(t0, t1) {
  12998. this._box_0 = t0;
  12999. this.$this = t1;
  13000. },
  13001. UnitlessSassNumber: function UnitlessSassNumber(t0, t1) {
  13002. this._number$_value = t0;
  13003. this.hashCache = null;
  13004. this.asSlash = t1;
  13005. },
  13006. SassString$(_text, quotes) {
  13007. return new A.SassString(_text, quotes);
  13008. },
  13009. SassString: function SassString(t0, t1) {
  13010. var _ = this;
  13011. _._string$_text = t0;
  13012. _._hasQuotes = t1;
  13013. _.__SassString__sassLength_FI = $;
  13014. _._hashCache = null;
  13015. },
  13016. AnySelectorVisitor: function AnySelectorVisitor() {
  13017. },
  13018. AnySelectorVisitor_visitComplexSelector_closure: function AnySelectorVisitor_visitComplexSelector_closure(t0) {
  13019. this.$this = t0;
  13020. },
  13021. AnySelectorVisitor_visitCompoundSelector_closure: function AnySelectorVisitor_visitCompoundSelector_closure(t0) {
  13022. this.$this = t0;
  13023. },
  13024. _EvaluateVisitor$0(functions, importCache, logger, nodeImporter, quietDeps, sourceMap) {
  13025. var t1 = type$.Uri,
  13026. t2 = type$.Module_AsyncCallable,
  13027. t3 = A._setArrayType([], type$.JSArray_Tuple2_String_AstNode),
  13028. t4 = logger == null ? B.StderrLogger_false : logger;
  13029. t3 = new A._EvaluateVisitor0(importCache, nodeImporter, A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.AsyncCallable), A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Configuration), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.AstNode), t4, A.LinkedHashSet_LinkedHashSet$_empty(type$.Tuple2_String_SourceSpan), quietDeps, sourceMap, A.AsyncEnvironment$(), A.LinkedHashSet_LinkedHashSet$_empty(t1), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.nullable_AstNode), t3, B.Configuration_Map_empty_null);
  13030. t3._EvaluateVisitor$6$functions$importCache$logger$nodeImporter$quietDeps$sourceMap0(functions, importCache, logger, nodeImporter, quietDeps, sourceMap);
  13031. return t3;
  13032. },
  13033. _EvaluateVisitor0: function _EvaluateVisitor0(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15) {
  13034. var _ = this;
  13035. _._async_evaluate$_importCache = t0;
  13036. _._async_evaluate$_nodeImporter = t1;
  13037. _._async_evaluate$_builtInFunctions = t2;
  13038. _._async_evaluate$_builtInModules = t3;
  13039. _._async_evaluate$_modules = t4;
  13040. _._async_evaluate$_moduleConfigurations = t5;
  13041. _._async_evaluate$_moduleNodes = t6;
  13042. _._async_evaluate$_logger = t7;
  13043. _._async_evaluate$_warningsEmitted = t8;
  13044. _._async_evaluate$_quietDeps = t9;
  13045. _._async_evaluate$_sourceMap = t10;
  13046. _._async_evaluate$_environment = t11;
  13047. _._async_evaluate$_declarationName = _._async_evaluate$__parent = _._async_evaluate$_mediaQuerySources = _._async_evaluate$_mediaQueries = _._async_evaluate$_styleRuleIgnoringAtRoot = null;
  13048. _._async_evaluate$_member = "root stylesheet";
  13049. _._async_evaluate$_importSpan = _._async_evaluate$_callableNode = _._async_evaluate$_currentCallable = null;
  13050. _._async_evaluate$_inSupportsDeclaration = _._async_evaluate$_inKeyframes = _._async_evaluate$_atRootExcludingStyleRule = _._async_evaluate$_inUnknownAtRule = _._async_evaluate$_inFunction = false;
  13051. _._async_evaluate$_loadedUrls = t12;
  13052. _._async_evaluate$_activeModules = t13;
  13053. _._async_evaluate$_stack = t14;
  13054. _._async_evaluate$_importer = null;
  13055. _._async_evaluate$_inDependency = false;
  13056. _._async_evaluate$__extensionStore = _._async_evaluate$_outOfOrderImports = _._async_evaluate$__endOfImports = _._async_evaluate$__root = _._async_evaluate$__stylesheet = null;
  13057. _._async_evaluate$_configuration = t15;
  13058. },
  13059. _EvaluateVisitor_closure9: function _EvaluateVisitor_closure9(t0) {
  13060. this.$this = t0;
  13061. },
  13062. _EvaluateVisitor_closure10: function _EvaluateVisitor_closure10(t0) {
  13063. this.$this = t0;
  13064. },
  13065. _EvaluateVisitor_closure11: function _EvaluateVisitor_closure11(t0) {
  13066. this.$this = t0;
  13067. },
  13068. _EvaluateVisitor_closure12: function _EvaluateVisitor_closure12(t0) {
  13069. this.$this = t0;
  13070. },
  13071. _EvaluateVisitor_closure13: function _EvaluateVisitor_closure13(t0) {
  13072. this.$this = t0;
  13073. },
  13074. _EvaluateVisitor_closure14: function _EvaluateVisitor_closure14(t0) {
  13075. this.$this = t0;
  13076. },
  13077. _EvaluateVisitor_closure15: function _EvaluateVisitor_closure15(t0) {
  13078. this.$this = t0;
  13079. },
  13080. _EvaluateVisitor_closure16: function _EvaluateVisitor_closure16(t0) {
  13081. this.$this = t0;
  13082. },
  13083. _EvaluateVisitor__closure4: function _EvaluateVisitor__closure4(t0, t1, t2) {
  13084. this.$this = t0;
  13085. this.name = t1;
  13086. this.module = t2;
  13087. },
  13088. _EvaluateVisitor_closure17: function _EvaluateVisitor_closure17(t0) {
  13089. this.$this = t0;
  13090. },
  13091. _EvaluateVisitor_closure18: function _EvaluateVisitor_closure18(t0) {
  13092. this.$this = t0;
  13093. },
  13094. _EvaluateVisitor__closure2: function _EvaluateVisitor__closure2(t0, t1, t2) {
  13095. this.values = t0;
  13096. this.span = t1;
  13097. this.callableNode = t2;
  13098. },
  13099. _EvaluateVisitor__closure3: function _EvaluateVisitor__closure3(t0) {
  13100. this.$this = t0;
  13101. },
  13102. _EvaluateVisitor_run_closure0: function _EvaluateVisitor_run_closure0(t0, t1, t2) {
  13103. this.$this = t0;
  13104. this.node = t1;
  13105. this.importer = t2;
  13106. },
  13107. _EvaluateVisitor__loadModule_closure1: function _EvaluateVisitor__loadModule_closure1(t0, t1) {
  13108. this.callback = t0;
  13109. this.builtInModule = t1;
  13110. },
  13111. _EvaluateVisitor__loadModule_closure2: function _EvaluateVisitor__loadModule_closure2(t0, t1, t2, t3, t4, t5, t6) {
  13112. var _ = this;
  13113. _.$this = t0;
  13114. _.url = t1;
  13115. _.nodeWithSpan = t2;
  13116. _.baseUrl = t3;
  13117. _.namesInErrors = t4;
  13118. _.configuration = t5;
  13119. _.callback = t6;
  13120. },
  13121. _EvaluateVisitor__loadModule__closure0: function _EvaluateVisitor__loadModule__closure0(t0, t1) {
  13122. this.$this = t0;
  13123. this.message = t1;
  13124. },
  13125. _EvaluateVisitor__execute_closure0: function _EvaluateVisitor__execute_closure0(t0, t1, t2, t3, t4, t5) {
  13126. var _ = this;
  13127. _.$this = t0;
  13128. _.importer = t1;
  13129. _.stylesheet = t2;
  13130. _.extensionStore = t3;
  13131. _.configuration = t4;
  13132. _.css = t5;
  13133. },
  13134. _EvaluateVisitor__combineCss_closure2: function _EvaluateVisitor__combineCss_closure2() {
  13135. },
  13136. _EvaluateVisitor__combineCss_closure3: function _EvaluateVisitor__combineCss_closure3(t0) {
  13137. this.selectors = t0;
  13138. },
  13139. _EvaluateVisitor__combineCss_closure4: function _EvaluateVisitor__combineCss_closure4() {
  13140. },
  13141. _EvaluateVisitor__extendModules_closure1: function _EvaluateVisitor__extendModules_closure1(t0) {
  13142. this.originalSelectors = t0;
  13143. },
  13144. _EvaluateVisitor__extendModules_closure2: function _EvaluateVisitor__extendModules_closure2() {
  13145. },
  13146. _EvaluateVisitor__topologicalModules_visitModule0: function _EvaluateVisitor__topologicalModules_visitModule0(t0, t1) {
  13147. this.seen = t0;
  13148. this.sorted = t1;
  13149. },
  13150. _EvaluateVisitor_visitAtRootRule_closure2: function _EvaluateVisitor_visitAtRootRule_closure2(t0, t1) {
  13151. this.$this = t0;
  13152. this.resolved = t1;
  13153. },
  13154. _EvaluateVisitor_visitAtRootRule_closure3: function _EvaluateVisitor_visitAtRootRule_closure3(t0, t1) {
  13155. this.$this = t0;
  13156. this.node = t1;
  13157. },
  13158. _EvaluateVisitor_visitAtRootRule_closure4: function _EvaluateVisitor_visitAtRootRule_closure4(t0, t1) {
  13159. this.$this = t0;
  13160. this.node = t1;
  13161. },
  13162. _EvaluateVisitor__scopeForAtRoot_closure5: function _EvaluateVisitor__scopeForAtRoot_closure5(t0, t1, t2) {
  13163. this.$this = t0;
  13164. this.newParent = t1;
  13165. this.node = t2;
  13166. },
  13167. _EvaluateVisitor__scopeForAtRoot_closure6: function _EvaluateVisitor__scopeForAtRoot_closure6(t0, t1) {
  13168. this.$this = t0;
  13169. this.innerScope = t1;
  13170. },
  13171. _EvaluateVisitor__scopeForAtRoot_closure7: function _EvaluateVisitor__scopeForAtRoot_closure7(t0, t1) {
  13172. this.$this = t0;
  13173. this.innerScope = t1;
  13174. },
  13175. _EvaluateVisitor__scopeForAtRoot__closure0: function _EvaluateVisitor__scopeForAtRoot__closure0(t0, t1) {
  13176. this.innerScope = t0;
  13177. this.callback = t1;
  13178. },
  13179. _EvaluateVisitor__scopeForAtRoot_closure8: function _EvaluateVisitor__scopeForAtRoot_closure8(t0, t1) {
  13180. this.$this = t0;
  13181. this.innerScope = t1;
  13182. },
  13183. _EvaluateVisitor__scopeForAtRoot_closure9: function _EvaluateVisitor__scopeForAtRoot_closure9() {
  13184. },
  13185. _EvaluateVisitor__scopeForAtRoot_closure10: function _EvaluateVisitor__scopeForAtRoot_closure10(t0, t1) {
  13186. this.$this = t0;
  13187. this.innerScope = t1;
  13188. },
  13189. _EvaluateVisitor_visitContentRule_closure0: function _EvaluateVisitor_visitContentRule_closure0(t0, t1) {
  13190. this.$this = t0;
  13191. this.content = t1;
  13192. },
  13193. _EvaluateVisitor_visitDeclaration_closure1: function _EvaluateVisitor_visitDeclaration_closure1(t0) {
  13194. this.$this = t0;
  13195. },
  13196. _EvaluateVisitor_visitDeclaration_closure2: function _EvaluateVisitor_visitDeclaration_closure2(t0, t1) {
  13197. this.$this = t0;
  13198. this.children = t1;
  13199. },
  13200. _EvaluateVisitor_visitEachRule_closure2: function _EvaluateVisitor_visitEachRule_closure2(t0, t1, t2) {
  13201. this.$this = t0;
  13202. this.node = t1;
  13203. this.nodeWithSpan = t2;
  13204. },
  13205. _EvaluateVisitor_visitEachRule_closure3: function _EvaluateVisitor_visitEachRule_closure3(t0, t1, t2) {
  13206. this.$this = t0;
  13207. this.node = t1;
  13208. this.nodeWithSpan = t2;
  13209. },
  13210. _EvaluateVisitor_visitEachRule_closure4: function _EvaluateVisitor_visitEachRule_closure4(t0, t1, t2, t3) {
  13211. var _ = this;
  13212. _.$this = t0;
  13213. _.list = t1;
  13214. _.setVariables = t2;
  13215. _.node = t3;
  13216. },
  13217. _EvaluateVisitor_visitEachRule__closure0: function _EvaluateVisitor_visitEachRule__closure0(t0, t1, t2) {
  13218. this.$this = t0;
  13219. this.setVariables = t1;
  13220. this.node = t2;
  13221. },
  13222. _EvaluateVisitor_visitEachRule___closure0: function _EvaluateVisitor_visitEachRule___closure0(t0) {
  13223. this.$this = t0;
  13224. },
  13225. _EvaluateVisitor_visitExtendRule_closure0: function _EvaluateVisitor_visitExtendRule_closure0(t0, t1) {
  13226. this.$this = t0;
  13227. this.targetText = t1;
  13228. },
  13229. _EvaluateVisitor_visitAtRule_closure2: function _EvaluateVisitor_visitAtRule_closure2(t0) {
  13230. this.$this = t0;
  13231. },
  13232. _EvaluateVisitor_visitAtRule_closure3: function _EvaluateVisitor_visitAtRule_closure3(t0, t1) {
  13233. this.$this = t0;
  13234. this.children = t1;
  13235. },
  13236. _EvaluateVisitor_visitAtRule__closure0: function _EvaluateVisitor_visitAtRule__closure0(t0, t1) {
  13237. this.$this = t0;
  13238. this.children = t1;
  13239. },
  13240. _EvaluateVisitor_visitAtRule_closure4: function _EvaluateVisitor_visitAtRule_closure4() {
  13241. },
  13242. _EvaluateVisitor_visitForRule_closure4: function _EvaluateVisitor_visitForRule_closure4(t0, t1) {
  13243. this.$this = t0;
  13244. this.node = t1;
  13245. },
  13246. _EvaluateVisitor_visitForRule_closure5: function _EvaluateVisitor_visitForRule_closure5(t0, t1) {
  13247. this.$this = t0;
  13248. this.node = t1;
  13249. },
  13250. _EvaluateVisitor_visitForRule_closure6: function _EvaluateVisitor_visitForRule_closure6(t0) {
  13251. this.fromNumber = t0;
  13252. },
  13253. _EvaluateVisitor_visitForRule_closure7: function _EvaluateVisitor_visitForRule_closure7(t0, t1) {
  13254. this.toNumber = t0;
  13255. this.fromNumber = t1;
  13256. },
  13257. _EvaluateVisitor_visitForRule_closure8: function _EvaluateVisitor_visitForRule_closure8(t0, t1, t2, t3, t4, t5) {
  13258. var _ = this;
  13259. _._box_0 = t0;
  13260. _.$this = t1;
  13261. _.node = t2;
  13262. _.from = t3;
  13263. _.direction = t4;
  13264. _.fromNumber = t5;
  13265. },
  13266. _EvaluateVisitor_visitForRule__closure0: function _EvaluateVisitor_visitForRule__closure0(t0) {
  13267. this.$this = t0;
  13268. },
  13269. _EvaluateVisitor_visitForwardRule_closure1: function _EvaluateVisitor_visitForwardRule_closure1(t0, t1) {
  13270. this.$this = t0;
  13271. this.node = t1;
  13272. },
  13273. _EvaluateVisitor_visitForwardRule_closure2: function _EvaluateVisitor_visitForwardRule_closure2(t0, t1) {
  13274. this.$this = t0;
  13275. this.node = t1;
  13276. },
  13277. _EvaluateVisitor_visitIfRule_closure0: function _EvaluateVisitor_visitIfRule_closure0(t0, t1) {
  13278. this._box_0 = t0;
  13279. this.$this = t1;
  13280. },
  13281. _EvaluateVisitor_visitIfRule__closure0: function _EvaluateVisitor_visitIfRule__closure0(t0) {
  13282. this.$this = t0;
  13283. },
  13284. _EvaluateVisitor__visitDynamicImport_closure0: function _EvaluateVisitor__visitDynamicImport_closure0(t0, t1) {
  13285. this.$this = t0;
  13286. this.$import = t1;
  13287. },
  13288. _EvaluateVisitor__visitDynamicImport__closure3: function _EvaluateVisitor__visitDynamicImport__closure3(t0) {
  13289. this.$this = t0;
  13290. },
  13291. _EvaluateVisitor__visitDynamicImport__closure4: function _EvaluateVisitor__visitDynamicImport__closure4() {
  13292. },
  13293. _EvaluateVisitor__visitDynamicImport__closure5: function _EvaluateVisitor__visitDynamicImport__closure5() {
  13294. },
  13295. _EvaluateVisitor__visitDynamicImport__closure6: function _EvaluateVisitor__visitDynamicImport__closure6(t0, t1, t2, t3, t4, t5) {
  13296. var _ = this;
  13297. _.$this = t0;
  13298. _.result = t1;
  13299. _.stylesheet = t2;
  13300. _.loadsUserDefinedModules = t3;
  13301. _.environment = t4;
  13302. _.children = t5;
  13303. },
  13304. _EvaluateVisitor_visitIncludeRule_closure3: function _EvaluateVisitor_visitIncludeRule_closure3(t0, t1) {
  13305. this.$this = t0;
  13306. this.node = t1;
  13307. },
  13308. _EvaluateVisitor_visitIncludeRule_closure4: function _EvaluateVisitor_visitIncludeRule_closure4(t0) {
  13309. this.node = t0;
  13310. },
  13311. _EvaluateVisitor_visitIncludeRule_closure6: function _EvaluateVisitor_visitIncludeRule_closure6(t0) {
  13312. this.$this = t0;
  13313. },
  13314. _EvaluateVisitor_visitIncludeRule_closure5: function _EvaluateVisitor_visitIncludeRule_closure5(t0, t1, t2, t3) {
  13315. var _ = this;
  13316. _.$this = t0;
  13317. _.contentCallable = t1;
  13318. _.mixin = t2;
  13319. _.nodeWithSpan = t3;
  13320. },
  13321. _EvaluateVisitor_visitIncludeRule__closure0: function _EvaluateVisitor_visitIncludeRule__closure0(t0, t1, t2) {
  13322. this.$this = t0;
  13323. this.mixin = t1;
  13324. this.nodeWithSpan = t2;
  13325. },
  13326. _EvaluateVisitor_visitIncludeRule___closure0: function _EvaluateVisitor_visitIncludeRule___closure0(t0, t1, t2) {
  13327. this.$this = t0;
  13328. this.mixin = t1;
  13329. this.nodeWithSpan = t2;
  13330. },
  13331. _EvaluateVisitor_visitIncludeRule____closure0: function _EvaluateVisitor_visitIncludeRule____closure0(t0, t1) {
  13332. this.$this = t0;
  13333. this.statement = t1;
  13334. },
  13335. _EvaluateVisitor_visitMediaRule_closure2: function _EvaluateVisitor_visitMediaRule_closure2(t0, t1) {
  13336. this.$this = t0;
  13337. this.queries = t1;
  13338. },
  13339. _EvaluateVisitor_visitMediaRule_closure3: function _EvaluateVisitor_visitMediaRule_closure3(t0, t1, t2, t3, t4) {
  13340. var _ = this;
  13341. _.$this = t0;
  13342. _.mergedQueries = t1;
  13343. _.queries = t2;
  13344. _.mergedSources = t3;
  13345. _.node = t4;
  13346. },
  13347. _EvaluateVisitor_visitMediaRule__closure0: function _EvaluateVisitor_visitMediaRule__closure0(t0, t1) {
  13348. this.$this = t0;
  13349. this.node = t1;
  13350. },
  13351. _EvaluateVisitor_visitMediaRule___closure0: function _EvaluateVisitor_visitMediaRule___closure0(t0, t1) {
  13352. this.$this = t0;
  13353. this.node = t1;
  13354. },
  13355. _EvaluateVisitor_visitMediaRule_closure4: function _EvaluateVisitor_visitMediaRule_closure4(t0) {
  13356. this.mergedSources = t0;
  13357. },
  13358. _EvaluateVisitor__visitMediaQueries_closure0: function _EvaluateVisitor__visitMediaQueries_closure0(t0, t1) {
  13359. this.$this = t0;
  13360. this.resolved = t1;
  13361. },
  13362. _EvaluateVisitor_visitStyleRule_closure7: function _EvaluateVisitor_visitStyleRule_closure7(t0, t1) {
  13363. this.$this = t0;
  13364. this.selectorText = t1;
  13365. },
  13366. _EvaluateVisitor_visitStyleRule_closure8: function _EvaluateVisitor_visitStyleRule_closure8(t0, t1) {
  13367. this.$this = t0;
  13368. this.node = t1;
  13369. },
  13370. _EvaluateVisitor_visitStyleRule_closure9: function _EvaluateVisitor_visitStyleRule_closure9() {
  13371. },
  13372. _EvaluateVisitor_visitStyleRule_closure10: function _EvaluateVisitor_visitStyleRule_closure10(t0, t1) {
  13373. this.$this = t0;
  13374. this.selectorText = t1;
  13375. },
  13376. _EvaluateVisitor_visitStyleRule_closure11: function _EvaluateVisitor_visitStyleRule_closure11(t0, t1) {
  13377. this._box_0 = t0;
  13378. this.$this = t1;
  13379. },
  13380. _EvaluateVisitor_visitStyleRule_closure12: function _EvaluateVisitor_visitStyleRule_closure12(t0, t1, t2) {
  13381. this.$this = t0;
  13382. this.rule = t1;
  13383. this.node = t2;
  13384. },
  13385. _EvaluateVisitor_visitStyleRule__closure0: function _EvaluateVisitor_visitStyleRule__closure0(t0, t1) {
  13386. this.$this = t0;
  13387. this.node = t1;
  13388. },
  13389. _EvaluateVisitor_visitStyleRule_closure13: function _EvaluateVisitor_visitStyleRule_closure13() {
  13390. },
  13391. _EvaluateVisitor_visitStyleRule_closure14: function _EvaluateVisitor_visitStyleRule_closure14() {
  13392. },
  13393. _EvaluateVisitor_visitSupportsRule_closure1: function _EvaluateVisitor_visitSupportsRule_closure1(t0, t1) {
  13394. this.$this = t0;
  13395. this.node = t1;
  13396. },
  13397. _EvaluateVisitor_visitSupportsRule__closure0: function _EvaluateVisitor_visitSupportsRule__closure0(t0, t1) {
  13398. this.$this = t0;
  13399. this.node = t1;
  13400. },
  13401. _EvaluateVisitor_visitSupportsRule_closure2: function _EvaluateVisitor_visitSupportsRule_closure2() {
  13402. },
  13403. _EvaluateVisitor_visitVariableDeclaration_closure2: function _EvaluateVisitor_visitVariableDeclaration_closure2(t0, t1, t2) {
  13404. this.$this = t0;
  13405. this.node = t1;
  13406. this.override = t2;
  13407. },
  13408. _EvaluateVisitor_visitVariableDeclaration_closure3: function _EvaluateVisitor_visitVariableDeclaration_closure3(t0, t1) {
  13409. this.$this = t0;
  13410. this.node = t1;
  13411. },
  13412. _EvaluateVisitor_visitVariableDeclaration_closure4: function _EvaluateVisitor_visitVariableDeclaration_closure4(t0, t1, t2) {
  13413. this.$this = t0;
  13414. this.node = t1;
  13415. this.value = t2;
  13416. },
  13417. _EvaluateVisitor_visitUseRule_closure0: function _EvaluateVisitor_visitUseRule_closure0(t0, t1) {
  13418. this.$this = t0;
  13419. this.node = t1;
  13420. },
  13421. _EvaluateVisitor_visitWarnRule_closure0: function _EvaluateVisitor_visitWarnRule_closure0(t0, t1) {
  13422. this.$this = t0;
  13423. this.node = t1;
  13424. },
  13425. _EvaluateVisitor_visitWhileRule_closure0: function _EvaluateVisitor_visitWhileRule_closure0(t0, t1) {
  13426. this.$this = t0;
  13427. this.node = t1;
  13428. },
  13429. _EvaluateVisitor_visitWhileRule__closure0: function _EvaluateVisitor_visitWhileRule__closure0(t0) {
  13430. this.$this = t0;
  13431. },
  13432. _EvaluateVisitor_visitBinaryOperationExpression_closure0: function _EvaluateVisitor_visitBinaryOperationExpression_closure0(t0, t1) {
  13433. this.$this = t0;
  13434. this.node = t1;
  13435. },
  13436. _EvaluateVisitor_visitBinaryOperationExpression_closure_recommendation0: function _EvaluateVisitor_visitBinaryOperationExpression_closure_recommendation0() {
  13437. },
  13438. _EvaluateVisitor_visitVariableExpression_closure0: function _EvaluateVisitor_visitVariableExpression_closure0(t0, t1) {
  13439. this.$this = t0;
  13440. this.node = t1;
  13441. },
  13442. _EvaluateVisitor_visitUnaryOperationExpression_closure0: function _EvaluateVisitor_visitUnaryOperationExpression_closure0(t0, t1) {
  13443. this.node = t0;
  13444. this.operand = t1;
  13445. },
  13446. _EvaluateVisitor__visitCalculationValue_closure0: function _EvaluateVisitor__visitCalculationValue_closure0(t0, t1, t2) {
  13447. this.$this = t0;
  13448. this.node = t1;
  13449. this.inMinMax = t2;
  13450. },
  13451. _EvaluateVisitor_visitListExpression_closure0: function _EvaluateVisitor_visitListExpression_closure0(t0) {
  13452. this.$this = t0;
  13453. },
  13454. _EvaluateVisitor_visitFunctionExpression_closure1: function _EvaluateVisitor_visitFunctionExpression_closure1(t0, t1) {
  13455. this.$this = t0;
  13456. this.node = t1;
  13457. },
  13458. _EvaluateVisitor_visitFunctionExpression_closure2: function _EvaluateVisitor_visitFunctionExpression_closure2(t0, t1, t2) {
  13459. this._box_0 = t0;
  13460. this.$this = t1;
  13461. this.node = t2;
  13462. },
  13463. _EvaluateVisitor_visitInterpolatedFunctionExpression_closure0: function _EvaluateVisitor_visitInterpolatedFunctionExpression_closure0(t0, t1, t2) {
  13464. this.$this = t0;
  13465. this.node = t1;
  13466. this.$function = t2;
  13467. },
  13468. _EvaluateVisitor__runUserDefinedCallable_closure0: function _EvaluateVisitor__runUserDefinedCallable_closure0(t0, t1, t2, t3, t4, t5) {
  13469. var _ = this;
  13470. _.$this = t0;
  13471. _.callable = t1;
  13472. _.evaluated = t2;
  13473. _.nodeWithSpan = t3;
  13474. _.run = t4;
  13475. _.V = t5;
  13476. },
  13477. _EvaluateVisitor__runUserDefinedCallable__closure0: function _EvaluateVisitor__runUserDefinedCallable__closure0(t0, t1, t2, t3, t4, t5) {
  13478. var _ = this;
  13479. _.$this = t0;
  13480. _.evaluated = t1;
  13481. _.callable = t2;
  13482. _.nodeWithSpan = t3;
  13483. _.run = t4;
  13484. _.V = t5;
  13485. },
  13486. _EvaluateVisitor__runUserDefinedCallable___closure0: function _EvaluateVisitor__runUserDefinedCallable___closure0(t0, t1, t2, t3, t4, t5) {
  13487. var _ = this;
  13488. _.$this = t0;
  13489. _.evaluated = t1;
  13490. _.callable = t2;
  13491. _.nodeWithSpan = t3;
  13492. _.run = t4;
  13493. _.V = t5;
  13494. },
  13495. _EvaluateVisitor__runUserDefinedCallable____closure0: function _EvaluateVisitor__runUserDefinedCallable____closure0() {
  13496. },
  13497. _EvaluateVisitor__runFunctionCallable_closure0: function _EvaluateVisitor__runFunctionCallable_closure0(t0, t1) {
  13498. this.$this = t0;
  13499. this.callable = t1;
  13500. },
  13501. _EvaluateVisitor__runBuiltInCallable_closure1: function _EvaluateVisitor__runBuiltInCallable_closure1(t0, t1, t2) {
  13502. this.overload = t0;
  13503. this.evaluated = t1;
  13504. this.namedSet = t2;
  13505. },
  13506. _EvaluateVisitor__runBuiltInCallable_closure2: function _EvaluateVisitor__runBuiltInCallable_closure2() {
  13507. },
  13508. _EvaluateVisitor__evaluateArguments_closure3: function _EvaluateVisitor__evaluateArguments_closure3() {
  13509. },
  13510. _EvaluateVisitor__evaluateArguments_closure4: function _EvaluateVisitor__evaluateArguments_closure4(t0, t1) {
  13511. this.$this = t0;
  13512. this.restNodeForSpan = t1;
  13513. },
  13514. _EvaluateVisitor__evaluateArguments_closure5: function _EvaluateVisitor__evaluateArguments_closure5(t0, t1, t2, t3) {
  13515. var _ = this;
  13516. _.$this = t0;
  13517. _.named = t1;
  13518. _.restNodeForSpan = t2;
  13519. _.namedNodes = t3;
  13520. },
  13521. _EvaluateVisitor__evaluateArguments_closure6: function _EvaluateVisitor__evaluateArguments_closure6() {
  13522. },
  13523. _EvaluateVisitor__evaluateMacroArguments_closure3: function _EvaluateVisitor__evaluateMacroArguments_closure3(t0) {
  13524. this.restArgs = t0;
  13525. },
  13526. _EvaluateVisitor__evaluateMacroArguments_closure4: function _EvaluateVisitor__evaluateMacroArguments_closure4(t0, t1, t2) {
  13527. this.$this = t0;
  13528. this.restNodeForSpan = t1;
  13529. this.restArgs = t2;
  13530. },
  13531. _EvaluateVisitor__evaluateMacroArguments_closure5: function _EvaluateVisitor__evaluateMacroArguments_closure5(t0, t1, t2, t3) {
  13532. var _ = this;
  13533. _.$this = t0;
  13534. _.named = t1;
  13535. _.restNodeForSpan = t2;
  13536. _.restArgs = t3;
  13537. },
  13538. _EvaluateVisitor__evaluateMacroArguments_closure6: function _EvaluateVisitor__evaluateMacroArguments_closure6(t0, t1, t2) {
  13539. this.$this = t0;
  13540. this.keywordRestNodeForSpan = t1;
  13541. this.keywordRestArgs = t2;
  13542. },
  13543. _EvaluateVisitor__addRestMap_closure0: function _EvaluateVisitor__addRestMap_closure0(t0, t1, t2, t3, t4, t5) {
  13544. var _ = this;
  13545. _.$this = t0;
  13546. _.values = t1;
  13547. _.convert = t2;
  13548. _.expressionNode = t3;
  13549. _.map = t4;
  13550. _.nodeWithSpan = t5;
  13551. },
  13552. _EvaluateVisitor__verifyArguments_closure0: function _EvaluateVisitor__verifyArguments_closure0(t0, t1, t2) {
  13553. this.$arguments = t0;
  13554. this.positional = t1;
  13555. this.named = t2;
  13556. },
  13557. _EvaluateVisitor_visitStringExpression_closure0: function _EvaluateVisitor_visitStringExpression_closure0(t0) {
  13558. this.$this = t0;
  13559. },
  13560. _EvaluateVisitor_visitCssAtRule_closure1: function _EvaluateVisitor_visitCssAtRule_closure1(t0, t1) {
  13561. this.$this = t0;
  13562. this.node = t1;
  13563. },
  13564. _EvaluateVisitor_visitCssAtRule_closure2: function _EvaluateVisitor_visitCssAtRule_closure2() {
  13565. },
  13566. _EvaluateVisitor_visitCssKeyframeBlock_closure1: function _EvaluateVisitor_visitCssKeyframeBlock_closure1(t0, t1) {
  13567. this.$this = t0;
  13568. this.node = t1;
  13569. },
  13570. _EvaluateVisitor_visitCssKeyframeBlock_closure2: function _EvaluateVisitor_visitCssKeyframeBlock_closure2() {
  13571. },
  13572. _EvaluateVisitor_visitCssMediaRule_closure2: function _EvaluateVisitor_visitCssMediaRule_closure2(t0, t1) {
  13573. this.$this = t0;
  13574. this.node = t1;
  13575. },
  13576. _EvaluateVisitor_visitCssMediaRule_closure3: function _EvaluateVisitor_visitCssMediaRule_closure3(t0, t1, t2, t3) {
  13577. var _ = this;
  13578. _.$this = t0;
  13579. _.mergedQueries = t1;
  13580. _.node = t2;
  13581. _.mergedSources = t3;
  13582. },
  13583. _EvaluateVisitor_visitCssMediaRule__closure0: function _EvaluateVisitor_visitCssMediaRule__closure0(t0, t1) {
  13584. this.$this = t0;
  13585. this.node = t1;
  13586. },
  13587. _EvaluateVisitor_visitCssMediaRule___closure0: function _EvaluateVisitor_visitCssMediaRule___closure0(t0, t1) {
  13588. this.$this = t0;
  13589. this.node = t1;
  13590. },
  13591. _EvaluateVisitor_visitCssMediaRule_closure4: function _EvaluateVisitor_visitCssMediaRule_closure4(t0) {
  13592. this.mergedSources = t0;
  13593. },
  13594. _EvaluateVisitor_visitCssStyleRule_closure1: function _EvaluateVisitor_visitCssStyleRule_closure1(t0, t1, t2) {
  13595. this.$this = t0;
  13596. this.rule = t1;
  13597. this.node = t2;
  13598. },
  13599. _EvaluateVisitor_visitCssStyleRule__closure0: function _EvaluateVisitor_visitCssStyleRule__closure0(t0, t1) {
  13600. this.$this = t0;
  13601. this.node = t1;
  13602. },
  13603. _EvaluateVisitor_visitCssStyleRule_closure2: function _EvaluateVisitor_visitCssStyleRule_closure2() {
  13604. },
  13605. _EvaluateVisitor_visitCssSupportsRule_closure1: function _EvaluateVisitor_visitCssSupportsRule_closure1(t0, t1) {
  13606. this.$this = t0;
  13607. this.node = t1;
  13608. },
  13609. _EvaluateVisitor_visitCssSupportsRule__closure0: function _EvaluateVisitor_visitCssSupportsRule__closure0(t0, t1) {
  13610. this.$this = t0;
  13611. this.node = t1;
  13612. },
  13613. _EvaluateVisitor_visitCssSupportsRule_closure2: function _EvaluateVisitor_visitCssSupportsRule_closure2() {
  13614. },
  13615. _EvaluateVisitor__performInterpolation_closure0: function _EvaluateVisitor__performInterpolation_closure0(t0, t1, t2) {
  13616. this.$this = t0;
  13617. this.warnForColor = t1;
  13618. this.interpolation = t2;
  13619. },
  13620. _EvaluateVisitor__serialize_closure0: function _EvaluateVisitor__serialize_closure0(t0, t1) {
  13621. this.value = t0;
  13622. this.quote = t1;
  13623. },
  13624. _EvaluateVisitor__expressionNode_closure0: function _EvaluateVisitor__expressionNode_closure0(t0, t1) {
  13625. this.$this = t0;
  13626. this.expression = t1;
  13627. },
  13628. _EvaluateVisitor__withoutSlash_recommendation0: function _EvaluateVisitor__withoutSlash_recommendation0() {
  13629. },
  13630. _EvaluateVisitor__stackFrame_closure0: function _EvaluateVisitor__stackFrame_closure0(t0) {
  13631. this.$this = t0;
  13632. },
  13633. _EvaluateVisitor__stackTrace_closure0: function _EvaluateVisitor__stackTrace_closure0(t0) {
  13634. this.$this = t0;
  13635. },
  13636. _ImportedCssVisitor0: function _ImportedCssVisitor0(t0) {
  13637. this._async_evaluate$_visitor = t0;
  13638. },
  13639. _ImportedCssVisitor_visitCssAtRule_closure0: function _ImportedCssVisitor_visitCssAtRule_closure0() {
  13640. },
  13641. _ImportedCssVisitor_visitCssMediaRule_closure0: function _ImportedCssVisitor_visitCssMediaRule_closure0(t0) {
  13642. this.hasBeenMerged = t0;
  13643. },
  13644. _ImportedCssVisitor_visitCssStyleRule_closure0: function _ImportedCssVisitor_visitCssStyleRule_closure0() {
  13645. },
  13646. _ImportedCssVisitor_visitCssSupportsRule_closure0: function _ImportedCssVisitor_visitCssSupportsRule_closure0() {
  13647. },
  13648. EvaluateResult: function EvaluateResult(t0) {
  13649. this.stylesheet = t0;
  13650. },
  13651. _EvaluationContext0: function _EvaluationContext0(t0, t1) {
  13652. this._async_evaluate$_visitor = t0;
  13653. this._async_evaluate$_defaultWarnNodeWithSpan = t1;
  13654. },
  13655. _ArgumentResults0: function _ArgumentResults0(t0, t1, t2, t3, t4) {
  13656. var _ = this;
  13657. _.positional = t0;
  13658. _.positionalNodes = t1;
  13659. _.named = t2;
  13660. _.namedNodes = t3;
  13661. _.separator = t4;
  13662. },
  13663. _LoadedStylesheet0: function _LoadedStylesheet0(t0, t1, t2) {
  13664. this.stylesheet = t0;
  13665. this.importer = t1;
  13666. this.isDependency = t2;
  13667. },
  13668. cloneCssStylesheet(stylesheet, extensionStore) {
  13669. var result = extensionStore.clone$0();
  13670. return new A.Tuple2(new A._CloneCssVisitor(result.item2)._visitChildren$2(A.ModifiableCssStylesheet$(stylesheet.get$span(stylesheet)), stylesheet), result.item1, type$.Tuple2_ModifiableCssStylesheet_ExtensionStore);
  13671. },
  13672. _CloneCssVisitor: function _CloneCssVisitor(t0) {
  13673. this._oldToNewSelectors = t0;
  13674. },
  13675. _EvaluateVisitor$(functions, importCache, logger, nodeImporter, quietDeps, sourceMap) {
  13676. var t1 = type$.Uri,
  13677. t2 = type$.Module_Callable,
  13678. t3 = A._setArrayType([], type$.JSArray_Tuple2_String_AstNode),
  13679. t4 = logger == null ? B.StderrLogger_false : logger;
  13680. t3 = new A._EvaluateVisitor(importCache, nodeImporter, A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.Callable), A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Configuration), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.AstNode), t4, A.LinkedHashSet_LinkedHashSet$_empty(type$.Tuple2_String_SourceSpan), quietDeps, sourceMap, A.Environment$(), A.LinkedHashSet_LinkedHashSet$_empty(t1), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.nullable_AstNode), t3, B.Configuration_Map_empty_null);
  13681. t3._EvaluateVisitor$6$functions$importCache$logger$nodeImporter$quietDeps$sourceMap(functions, importCache, logger, nodeImporter, quietDeps, sourceMap);
  13682. return t3;
  13683. },
  13684. Evaluator: function Evaluator(t0, t1) {
  13685. this._visitor = t0;
  13686. this._importer = t1;
  13687. },
  13688. _EvaluateVisitor: function _EvaluateVisitor(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15) {
  13689. var _ = this;
  13690. _._evaluate$_importCache = t0;
  13691. _._nodeImporter = t1;
  13692. _._builtInFunctions = t2;
  13693. _._builtInModules = t3;
  13694. _._modules = t4;
  13695. _._moduleConfigurations = t5;
  13696. _._moduleNodes = t6;
  13697. _._evaluate$_logger = t7;
  13698. _._warningsEmitted = t8;
  13699. _._quietDeps = t9;
  13700. _._sourceMap = t10;
  13701. _._environment = t11;
  13702. _._declarationName = _.__parent = _._mediaQuerySources = _._mediaQueries = _._styleRuleIgnoringAtRoot = null;
  13703. _._member = "root stylesheet";
  13704. _._importSpan = _._callableNode = _._currentCallable = null;
  13705. _._inSupportsDeclaration = _._inKeyframes = _._atRootExcludingStyleRule = _._inUnknownAtRule = _._inFunction = false;
  13706. _._loadedUrls = t12;
  13707. _._activeModules = t13;
  13708. _._stack = t14;
  13709. _._importer = null;
  13710. _._inDependency = false;
  13711. _.__extensionStore = _._outOfOrderImports = _.__endOfImports = _.__root = _.__stylesheet = null;
  13712. _._configuration = t15;
  13713. },
  13714. _EvaluateVisitor_closure: function _EvaluateVisitor_closure(t0) {
  13715. this.$this = t0;
  13716. },
  13717. _EvaluateVisitor_closure0: function _EvaluateVisitor_closure0(t0) {
  13718. this.$this = t0;
  13719. },
  13720. _EvaluateVisitor_closure1: function _EvaluateVisitor_closure1(t0) {
  13721. this.$this = t0;
  13722. },
  13723. _EvaluateVisitor_closure2: function _EvaluateVisitor_closure2(t0) {
  13724. this.$this = t0;
  13725. },
  13726. _EvaluateVisitor_closure3: function _EvaluateVisitor_closure3(t0) {
  13727. this.$this = t0;
  13728. },
  13729. _EvaluateVisitor_closure4: function _EvaluateVisitor_closure4(t0) {
  13730. this.$this = t0;
  13731. },
  13732. _EvaluateVisitor_closure5: function _EvaluateVisitor_closure5(t0) {
  13733. this.$this = t0;
  13734. },
  13735. _EvaluateVisitor_closure6: function _EvaluateVisitor_closure6(t0) {
  13736. this.$this = t0;
  13737. },
  13738. _EvaluateVisitor__closure1: function _EvaluateVisitor__closure1(t0, t1, t2) {
  13739. this.$this = t0;
  13740. this.name = t1;
  13741. this.module = t2;
  13742. },
  13743. _EvaluateVisitor_closure7: function _EvaluateVisitor_closure7(t0) {
  13744. this.$this = t0;
  13745. },
  13746. _EvaluateVisitor_closure8: function _EvaluateVisitor_closure8(t0) {
  13747. this.$this = t0;
  13748. },
  13749. _EvaluateVisitor__closure: function _EvaluateVisitor__closure(t0, t1, t2) {
  13750. this.values = t0;
  13751. this.span = t1;
  13752. this.callableNode = t2;
  13753. },
  13754. _EvaluateVisitor__closure0: function _EvaluateVisitor__closure0(t0) {
  13755. this.$this = t0;
  13756. },
  13757. _EvaluateVisitor_run_closure: function _EvaluateVisitor_run_closure(t0, t1, t2) {
  13758. this.$this = t0;
  13759. this.node = t1;
  13760. this.importer = t2;
  13761. },
  13762. _EvaluateVisitor_runExpression_closure: function _EvaluateVisitor_runExpression_closure(t0, t1, t2) {
  13763. this.$this = t0;
  13764. this.importer = t1;
  13765. this.expression = t2;
  13766. },
  13767. _EvaluateVisitor_runExpression__closure: function _EvaluateVisitor_runExpression__closure(t0, t1) {
  13768. this.$this = t0;
  13769. this.expression = t1;
  13770. },
  13771. _EvaluateVisitor_runStatement_closure: function _EvaluateVisitor_runStatement_closure(t0, t1, t2) {
  13772. this.$this = t0;
  13773. this.importer = t1;
  13774. this.statement = t2;
  13775. },
  13776. _EvaluateVisitor_runStatement__closure: function _EvaluateVisitor_runStatement__closure(t0, t1) {
  13777. this.$this = t0;
  13778. this.statement = t1;
  13779. },
  13780. _EvaluateVisitor__loadModule_closure: function _EvaluateVisitor__loadModule_closure(t0, t1) {
  13781. this.callback = t0;
  13782. this.builtInModule = t1;
  13783. },
  13784. _EvaluateVisitor__loadModule_closure0: function _EvaluateVisitor__loadModule_closure0(t0, t1, t2, t3, t4, t5, t6) {
  13785. var _ = this;
  13786. _.$this = t0;
  13787. _.url = t1;
  13788. _.nodeWithSpan = t2;
  13789. _.baseUrl = t3;
  13790. _.namesInErrors = t4;
  13791. _.configuration = t5;
  13792. _.callback = t6;
  13793. },
  13794. _EvaluateVisitor__loadModule__closure: function _EvaluateVisitor__loadModule__closure(t0, t1) {
  13795. this.$this = t0;
  13796. this.message = t1;
  13797. },
  13798. _EvaluateVisitor__execute_closure: function _EvaluateVisitor__execute_closure(t0, t1, t2, t3, t4, t5) {
  13799. var _ = this;
  13800. _.$this = t0;
  13801. _.importer = t1;
  13802. _.stylesheet = t2;
  13803. _.extensionStore = t3;
  13804. _.configuration = t4;
  13805. _.css = t5;
  13806. },
  13807. _EvaluateVisitor__combineCss_closure: function _EvaluateVisitor__combineCss_closure() {
  13808. },
  13809. _EvaluateVisitor__combineCss_closure0: function _EvaluateVisitor__combineCss_closure0(t0) {
  13810. this.selectors = t0;
  13811. },
  13812. _EvaluateVisitor__combineCss_closure1: function _EvaluateVisitor__combineCss_closure1() {
  13813. },
  13814. _EvaluateVisitor__extendModules_closure: function _EvaluateVisitor__extendModules_closure(t0) {
  13815. this.originalSelectors = t0;
  13816. },
  13817. _EvaluateVisitor__extendModules_closure0: function _EvaluateVisitor__extendModules_closure0() {
  13818. },
  13819. _EvaluateVisitor__topologicalModules_visitModule: function _EvaluateVisitor__topologicalModules_visitModule(t0, t1) {
  13820. this.seen = t0;
  13821. this.sorted = t1;
  13822. },
  13823. _EvaluateVisitor_visitAtRootRule_closure: function _EvaluateVisitor_visitAtRootRule_closure(t0, t1) {
  13824. this.$this = t0;
  13825. this.resolved = t1;
  13826. },
  13827. _EvaluateVisitor_visitAtRootRule_closure0: function _EvaluateVisitor_visitAtRootRule_closure0(t0, t1) {
  13828. this.$this = t0;
  13829. this.node = t1;
  13830. },
  13831. _EvaluateVisitor_visitAtRootRule_closure1: function _EvaluateVisitor_visitAtRootRule_closure1(t0, t1) {
  13832. this.$this = t0;
  13833. this.node = t1;
  13834. },
  13835. _EvaluateVisitor__scopeForAtRoot_closure: function _EvaluateVisitor__scopeForAtRoot_closure(t0, t1, t2) {
  13836. this.$this = t0;
  13837. this.newParent = t1;
  13838. this.node = t2;
  13839. },
  13840. _EvaluateVisitor__scopeForAtRoot_closure0: function _EvaluateVisitor__scopeForAtRoot_closure0(t0, t1) {
  13841. this.$this = t0;
  13842. this.innerScope = t1;
  13843. },
  13844. _EvaluateVisitor__scopeForAtRoot_closure1: function _EvaluateVisitor__scopeForAtRoot_closure1(t0, t1) {
  13845. this.$this = t0;
  13846. this.innerScope = t1;
  13847. },
  13848. _EvaluateVisitor__scopeForAtRoot__closure: function _EvaluateVisitor__scopeForAtRoot__closure(t0, t1) {
  13849. this.innerScope = t0;
  13850. this.callback = t1;
  13851. },
  13852. _EvaluateVisitor__scopeForAtRoot_closure2: function _EvaluateVisitor__scopeForAtRoot_closure2(t0, t1) {
  13853. this.$this = t0;
  13854. this.innerScope = t1;
  13855. },
  13856. _EvaluateVisitor__scopeForAtRoot_closure3: function _EvaluateVisitor__scopeForAtRoot_closure3() {
  13857. },
  13858. _EvaluateVisitor__scopeForAtRoot_closure4: function _EvaluateVisitor__scopeForAtRoot_closure4(t0, t1) {
  13859. this.$this = t0;
  13860. this.innerScope = t1;
  13861. },
  13862. _EvaluateVisitor_visitContentRule_closure: function _EvaluateVisitor_visitContentRule_closure(t0, t1) {
  13863. this.$this = t0;
  13864. this.content = t1;
  13865. },
  13866. _EvaluateVisitor_visitDeclaration_closure: function _EvaluateVisitor_visitDeclaration_closure(t0) {
  13867. this.$this = t0;
  13868. },
  13869. _EvaluateVisitor_visitDeclaration_closure0: function _EvaluateVisitor_visitDeclaration_closure0(t0, t1) {
  13870. this.$this = t0;
  13871. this.children = t1;
  13872. },
  13873. _EvaluateVisitor_visitEachRule_closure: function _EvaluateVisitor_visitEachRule_closure(t0, t1, t2) {
  13874. this.$this = t0;
  13875. this.node = t1;
  13876. this.nodeWithSpan = t2;
  13877. },
  13878. _EvaluateVisitor_visitEachRule_closure0: function _EvaluateVisitor_visitEachRule_closure0(t0, t1, t2) {
  13879. this.$this = t0;
  13880. this.node = t1;
  13881. this.nodeWithSpan = t2;
  13882. },
  13883. _EvaluateVisitor_visitEachRule_closure1: function _EvaluateVisitor_visitEachRule_closure1(t0, t1, t2, t3) {
  13884. var _ = this;
  13885. _.$this = t0;
  13886. _.list = t1;
  13887. _.setVariables = t2;
  13888. _.node = t3;
  13889. },
  13890. _EvaluateVisitor_visitEachRule__closure: function _EvaluateVisitor_visitEachRule__closure(t0, t1, t2) {
  13891. this.$this = t0;
  13892. this.setVariables = t1;
  13893. this.node = t2;
  13894. },
  13895. _EvaluateVisitor_visitEachRule___closure: function _EvaluateVisitor_visitEachRule___closure(t0) {
  13896. this.$this = t0;
  13897. },
  13898. _EvaluateVisitor_visitExtendRule_closure: function _EvaluateVisitor_visitExtendRule_closure(t0, t1) {
  13899. this.$this = t0;
  13900. this.targetText = t1;
  13901. },
  13902. _EvaluateVisitor_visitAtRule_closure: function _EvaluateVisitor_visitAtRule_closure(t0) {
  13903. this.$this = t0;
  13904. },
  13905. _EvaluateVisitor_visitAtRule_closure0: function _EvaluateVisitor_visitAtRule_closure0(t0, t1) {
  13906. this.$this = t0;
  13907. this.children = t1;
  13908. },
  13909. _EvaluateVisitor_visitAtRule__closure: function _EvaluateVisitor_visitAtRule__closure(t0, t1) {
  13910. this.$this = t0;
  13911. this.children = t1;
  13912. },
  13913. _EvaluateVisitor_visitAtRule_closure1: function _EvaluateVisitor_visitAtRule_closure1() {
  13914. },
  13915. _EvaluateVisitor_visitForRule_closure: function _EvaluateVisitor_visitForRule_closure(t0, t1) {
  13916. this.$this = t0;
  13917. this.node = t1;
  13918. },
  13919. _EvaluateVisitor_visitForRule_closure0: function _EvaluateVisitor_visitForRule_closure0(t0, t1) {
  13920. this.$this = t0;
  13921. this.node = t1;
  13922. },
  13923. _EvaluateVisitor_visitForRule_closure1: function _EvaluateVisitor_visitForRule_closure1(t0) {
  13924. this.fromNumber = t0;
  13925. },
  13926. _EvaluateVisitor_visitForRule_closure2: function _EvaluateVisitor_visitForRule_closure2(t0, t1) {
  13927. this.toNumber = t0;
  13928. this.fromNumber = t1;
  13929. },
  13930. _EvaluateVisitor_visitForRule_closure3: function _EvaluateVisitor_visitForRule_closure3(t0, t1, t2, t3, t4, t5) {
  13931. var _ = this;
  13932. _._box_0 = t0;
  13933. _.$this = t1;
  13934. _.node = t2;
  13935. _.from = t3;
  13936. _.direction = t4;
  13937. _.fromNumber = t5;
  13938. },
  13939. _EvaluateVisitor_visitForRule__closure: function _EvaluateVisitor_visitForRule__closure(t0) {
  13940. this.$this = t0;
  13941. },
  13942. _EvaluateVisitor_visitForwardRule_closure: function _EvaluateVisitor_visitForwardRule_closure(t0, t1) {
  13943. this.$this = t0;
  13944. this.node = t1;
  13945. },
  13946. _EvaluateVisitor_visitForwardRule_closure0: function _EvaluateVisitor_visitForwardRule_closure0(t0, t1) {
  13947. this.$this = t0;
  13948. this.node = t1;
  13949. },
  13950. _EvaluateVisitor_visitIfRule_closure: function _EvaluateVisitor_visitIfRule_closure(t0, t1) {
  13951. this._box_0 = t0;
  13952. this.$this = t1;
  13953. },
  13954. _EvaluateVisitor_visitIfRule__closure: function _EvaluateVisitor_visitIfRule__closure(t0) {
  13955. this.$this = t0;
  13956. },
  13957. _EvaluateVisitor__visitDynamicImport_closure: function _EvaluateVisitor__visitDynamicImport_closure(t0, t1) {
  13958. this.$this = t0;
  13959. this.$import = t1;
  13960. },
  13961. _EvaluateVisitor__visitDynamicImport__closure: function _EvaluateVisitor__visitDynamicImport__closure(t0) {
  13962. this.$this = t0;
  13963. },
  13964. _EvaluateVisitor__visitDynamicImport__closure0: function _EvaluateVisitor__visitDynamicImport__closure0() {
  13965. },
  13966. _EvaluateVisitor__visitDynamicImport__closure1: function _EvaluateVisitor__visitDynamicImport__closure1() {
  13967. },
  13968. _EvaluateVisitor__visitDynamicImport__closure2: function _EvaluateVisitor__visitDynamicImport__closure2(t0, t1, t2, t3, t4, t5) {
  13969. var _ = this;
  13970. _.$this = t0;
  13971. _.result = t1;
  13972. _.stylesheet = t2;
  13973. _.loadsUserDefinedModules = t3;
  13974. _.environment = t4;
  13975. _.children = t5;
  13976. },
  13977. _EvaluateVisitor_visitIncludeRule_closure: function _EvaluateVisitor_visitIncludeRule_closure(t0, t1) {
  13978. this.$this = t0;
  13979. this.node = t1;
  13980. },
  13981. _EvaluateVisitor_visitIncludeRule_closure0: function _EvaluateVisitor_visitIncludeRule_closure0(t0) {
  13982. this.node = t0;
  13983. },
  13984. _EvaluateVisitor_visitIncludeRule_closure2: function _EvaluateVisitor_visitIncludeRule_closure2(t0) {
  13985. this.$this = t0;
  13986. },
  13987. _EvaluateVisitor_visitIncludeRule_closure1: function _EvaluateVisitor_visitIncludeRule_closure1(t0, t1, t2, t3) {
  13988. var _ = this;
  13989. _.$this = t0;
  13990. _.contentCallable = t1;
  13991. _.mixin = t2;
  13992. _.nodeWithSpan = t3;
  13993. },
  13994. _EvaluateVisitor_visitIncludeRule__closure: function _EvaluateVisitor_visitIncludeRule__closure(t0, t1, t2) {
  13995. this.$this = t0;
  13996. this.mixin = t1;
  13997. this.nodeWithSpan = t2;
  13998. },
  13999. _EvaluateVisitor_visitIncludeRule___closure: function _EvaluateVisitor_visitIncludeRule___closure(t0, t1, t2) {
  14000. this.$this = t0;
  14001. this.mixin = t1;
  14002. this.nodeWithSpan = t2;
  14003. },
  14004. _EvaluateVisitor_visitIncludeRule____closure: function _EvaluateVisitor_visitIncludeRule____closure(t0, t1) {
  14005. this.$this = t0;
  14006. this.statement = t1;
  14007. },
  14008. _EvaluateVisitor_visitMediaRule_closure: function _EvaluateVisitor_visitMediaRule_closure(t0, t1) {
  14009. this.$this = t0;
  14010. this.queries = t1;
  14011. },
  14012. _EvaluateVisitor_visitMediaRule_closure0: function _EvaluateVisitor_visitMediaRule_closure0(t0, t1, t2, t3, t4) {
  14013. var _ = this;
  14014. _.$this = t0;
  14015. _.mergedQueries = t1;
  14016. _.queries = t2;
  14017. _.mergedSources = t3;
  14018. _.node = t4;
  14019. },
  14020. _EvaluateVisitor_visitMediaRule__closure: function _EvaluateVisitor_visitMediaRule__closure(t0, t1) {
  14021. this.$this = t0;
  14022. this.node = t1;
  14023. },
  14024. _EvaluateVisitor_visitMediaRule___closure: function _EvaluateVisitor_visitMediaRule___closure(t0, t1) {
  14025. this.$this = t0;
  14026. this.node = t1;
  14027. },
  14028. _EvaluateVisitor_visitMediaRule_closure1: function _EvaluateVisitor_visitMediaRule_closure1(t0) {
  14029. this.mergedSources = t0;
  14030. },
  14031. _EvaluateVisitor__visitMediaQueries_closure: function _EvaluateVisitor__visitMediaQueries_closure(t0, t1) {
  14032. this.$this = t0;
  14033. this.resolved = t1;
  14034. },
  14035. _EvaluateVisitor_visitStyleRule_closure: function _EvaluateVisitor_visitStyleRule_closure(t0, t1) {
  14036. this.$this = t0;
  14037. this.selectorText = t1;
  14038. },
  14039. _EvaluateVisitor_visitStyleRule_closure0: function _EvaluateVisitor_visitStyleRule_closure0(t0, t1) {
  14040. this.$this = t0;
  14041. this.node = t1;
  14042. },
  14043. _EvaluateVisitor_visitStyleRule_closure1: function _EvaluateVisitor_visitStyleRule_closure1() {
  14044. },
  14045. _EvaluateVisitor_visitStyleRule_closure2: function _EvaluateVisitor_visitStyleRule_closure2(t0, t1) {
  14046. this.$this = t0;
  14047. this.selectorText = t1;
  14048. },
  14049. _EvaluateVisitor_visitStyleRule_closure3: function _EvaluateVisitor_visitStyleRule_closure3(t0, t1) {
  14050. this._box_0 = t0;
  14051. this.$this = t1;
  14052. },
  14053. _EvaluateVisitor_visitStyleRule_closure4: function _EvaluateVisitor_visitStyleRule_closure4(t0, t1, t2) {
  14054. this.$this = t0;
  14055. this.rule = t1;
  14056. this.node = t2;
  14057. },
  14058. _EvaluateVisitor_visitStyleRule__closure: function _EvaluateVisitor_visitStyleRule__closure(t0, t1) {
  14059. this.$this = t0;
  14060. this.node = t1;
  14061. },
  14062. _EvaluateVisitor_visitStyleRule_closure5: function _EvaluateVisitor_visitStyleRule_closure5() {
  14063. },
  14064. _EvaluateVisitor_visitStyleRule_closure6: function _EvaluateVisitor_visitStyleRule_closure6() {
  14065. },
  14066. _EvaluateVisitor_visitSupportsRule_closure: function _EvaluateVisitor_visitSupportsRule_closure(t0, t1) {
  14067. this.$this = t0;
  14068. this.node = t1;
  14069. },
  14070. _EvaluateVisitor_visitSupportsRule__closure: function _EvaluateVisitor_visitSupportsRule__closure(t0, t1) {
  14071. this.$this = t0;
  14072. this.node = t1;
  14073. },
  14074. _EvaluateVisitor_visitSupportsRule_closure0: function _EvaluateVisitor_visitSupportsRule_closure0() {
  14075. },
  14076. _EvaluateVisitor_visitVariableDeclaration_closure: function _EvaluateVisitor_visitVariableDeclaration_closure(t0, t1, t2) {
  14077. this.$this = t0;
  14078. this.node = t1;
  14079. this.override = t2;
  14080. },
  14081. _EvaluateVisitor_visitVariableDeclaration_closure0: function _EvaluateVisitor_visitVariableDeclaration_closure0(t0, t1) {
  14082. this.$this = t0;
  14083. this.node = t1;
  14084. },
  14085. _EvaluateVisitor_visitVariableDeclaration_closure1: function _EvaluateVisitor_visitVariableDeclaration_closure1(t0, t1, t2) {
  14086. this.$this = t0;
  14087. this.node = t1;
  14088. this.value = t2;
  14089. },
  14090. _EvaluateVisitor_visitUseRule_closure: function _EvaluateVisitor_visitUseRule_closure(t0, t1) {
  14091. this.$this = t0;
  14092. this.node = t1;
  14093. },
  14094. _EvaluateVisitor_visitWarnRule_closure: function _EvaluateVisitor_visitWarnRule_closure(t0, t1) {
  14095. this.$this = t0;
  14096. this.node = t1;
  14097. },
  14098. _EvaluateVisitor_visitWhileRule_closure: function _EvaluateVisitor_visitWhileRule_closure(t0, t1) {
  14099. this.$this = t0;
  14100. this.node = t1;
  14101. },
  14102. _EvaluateVisitor_visitWhileRule__closure: function _EvaluateVisitor_visitWhileRule__closure(t0) {
  14103. this.$this = t0;
  14104. },
  14105. _EvaluateVisitor_visitBinaryOperationExpression_closure: function _EvaluateVisitor_visitBinaryOperationExpression_closure(t0, t1) {
  14106. this.$this = t0;
  14107. this.node = t1;
  14108. },
  14109. _EvaluateVisitor_visitBinaryOperationExpression_closure_recommendation: function _EvaluateVisitor_visitBinaryOperationExpression_closure_recommendation() {
  14110. },
  14111. _EvaluateVisitor_visitVariableExpression_closure: function _EvaluateVisitor_visitVariableExpression_closure(t0, t1) {
  14112. this.$this = t0;
  14113. this.node = t1;
  14114. },
  14115. _EvaluateVisitor_visitUnaryOperationExpression_closure: function _EvaluateVisitor_visitUnaryOperationExpression_closure(t0, t1) {
  14116. this.node = t0;
  14117. this.operand = t1;
  14118. },
  14119. _EvaluateVisitor__visitCalculationValue_closure: function _EvaluateVisitor__visitCalculationValue_closure(t0, t1, t2) {
  14120. this.$this = t0;
  14121. this.node = t1;
  14122. this.inMinMax = t2;
  14123. },
  14124. _EvaluateVisitor_visitListExpression_closure: function _EvaluateVisitor_visitListExpression_closure(t0) {
  14125. this.$this = t0;
  14126. },
  14127. _EvaluateVisitor_visitFunctionExpression_closure: function _EvaluateVisitor_visitFunctionExpression_closure(t0, t1) {
  14128. this.$this = t0;
  14129. this.node = t1;
  14130. },
  14131. _EvaluateVisitor_visitFunctionExpression_closure0: function _EvaluateVisitor_visitFunctionExpression_closure0(t0, t1, t2) {
  14132. this._box_0 = t0;
  14133. this.$this = t1;
  14134. this.node = t2;
  14135. },
  14136. _EvaluateVisitor_visitInterpolatedFunctionExpression_closure: function _EvaluateVisitor_visitInterpolatedFunctionExpression_closure(t0, t1, t2) {
  14137. this.$this = t0;
  14138. this.node = t1;
  14139. this.$function = t2;
  14140. },
  14141. _EvaluateVisitor__runUserDefinedCallable_closure: function _EvaluateVisitor__runUserDefinedCallable_closure(t0, t1, t2, t3, t4, t5) {
  14142. var _ = this;
  14143. _.$this = t0;
  14144. _.callable = t1;
  14145. _.evaluated = t2;
  14146. _.nodeWithSpan = t3;
  14147. _.run = t4;
  14148. _.V = t5;
  14149. },
  14150. _EvaluateVisitor__runUserDefinedCallable__closure: function _EvaluateVisitor__runUserDefinedCallable__closure(t0, t1, t2, t3, t4, t5) {
  14151. var _ = this;
  14152. _.$this = t0;
  14153. _.evaluated = t1;
  14154. _.callable = t2;
  14155. _.nodeWithSpan = t3;
  14156. _.run = t4;
  14157. _.V = t5;
  14158. },
  14159. _EvaluateVisitor__runUserDefinedCallable___closure: function _EvaluateVisitor__runUserDefinedCallable___closure(t0, t1, t2, t3, t4, t5) {
  14160. var _ = this;
  14161. _.$this = t0;
  14162. _.evaluated = t1;
  14163. _.callable = t2;
  14164. _.nodeWithSpan = t3;
  14165. _.run = t4;
  14166. _.V = t5;
  14167. },
  14168. _EvaluateVisitor__runUserDefinedCallable____closure: function _EvaluateVisitor__runUserDefinedCallable____closure() {
  14169. },
  14170. _EvaluateVisitor__runFunctionCallable_closure: function _EvaluateVisitor__runFunctionCallable_closure(t0, t1) {
  14171. this.$this = t0;
  14172. this.callable = t1;
  14173. },
  14174. _EvaluateVisitor__runBuiltInCallable_closure: function _EvaluateVisitor__runBuiltInCallable_closure(t0, t1, t2) {
  14175. this.overload = t0;
  14176. this.evaluated = t1;
  14177. this.namedSet = t2;
  14178. },
  14179. _EvaluateVisitor__runBuiltInCallable_closure0: function _EvaluateVisitor__runBuiltInCallable_closure0() {
  14180. },
  14181. _EvaluateVisitor__evaluateArguments_closure: function _EvaluateVisitor__evaluateArguments_closure() {
  14182. },
  14183. _EvaluateVisitor__evaluateArguments_closure0: function _EvaluateVisitor__evaluateArguments_closure0(t0, t1) {
  14184. this.$this = t0;
  14185. this.restNodeForSpan = t1;
  14186. },
  14187. _EvaluateVisitor__evaluateArguments_closure1: function _EvaluateVisitor__evaluateArguments_closure1(t0, t1, t2, t3) {
  14188. var _ = this;
  14189. _.$this = t0;
  14190. _.named = t1;
  14191. _.restNodeForSpan = t2;
  14192. _.namedNodes = t3;
  14193. },
  14194. _EvaluateVisitor__evaluateArguments_closure2: function _EvaluateVisitor__evaluateArguments_closure2() {
  14195. },
  14196. _EvaluateVisitor__evaluateMacroArguments_closure: function _EvaluateVisitor__evaluateMacroArguments_closure(t0) {
  14197. this.restArgs = t0;
  14198. },
  14199. _EvaluateVisitor__evaluateMacroArguments_closure0: function _EvaluateVisitor__evaluateMacroArguments_closure0(t0, t1, t2) {
  14200. this.$this = t0;
  14201. this.restNodeForSpan = t1;
  14202. this.restArgs = t2;
  14203. },
  14204. _EvaluateVisitor__evaluateMacroArguments_closure1: function _EvaluateVisitor__evaluateMacroArguments_closure1(t0, t1, t2, t3) {
  14205. var _ = this;
  14206. _.$this = t0;
  14207. _.named = t1;
  14208. _.restNodeForSpan = t2;
  14209. _.restArgs = t3;
  14210. },
  14211. _EvaluateVisitor__evaluateMacroArguments_closure2: function _EvaluateVisitor__evaluateMacroArguments_closure2(t0, t1, t2) {
  14212. this.$this = t0;
  14213. this.keywordRestNodeForSpan = t1;
  14214. this.keywordRestArgs = t2;
  14215. },
  14216. _EvaluateVisitor__addRestMap_closure: function _EvaluateVisitor__addRestMap_closure(t0, t1, t2, t3, t4, t5) {
  14217. var _ = this;
  14218. _.$this = t0;
  14219. _.values = t1;
  14220. _.convert = t2;
  14221. _.expressionNode = t3;
  14222. _.map = t4;
  14223. _.nodeWithSpan = t5;
  14224. },
  14225. _EvaluateVisitor__verifyArguments_closure: function _EvaluateVisitor__verifyArguments_closure(t0, t1, t2) {
  14226. this.$arguments = t0;
  14227. this.positional = t1;
  14228. this.named = t2;
  14229. },
  14230. _EvaluateVisitor_visitStringExpression_closure: function _EvaluateVisitor_visitStringExpression_closure(t0) {
  14231. this.$this = t0;
  14232. },
  14233. _EvaluateVisitor_visitCssAtRule_closure: function _EvaluateVisitor_visitCssAtRule_closure(t0, t1) {
  14234. this.$this = t0;
  14235. this.node = t1;
  14236. },
  14237. _EvaluateVisitor_visitCssAtRule_closure0: function _EvaluateVisitor_visitCssAtRule_closure0() {
  14238. },
  14239. _EvaluateVisitor_visitCssKeyframeBlock_closure: function _EvaluateVisitor_visitCssKeyframeBlock_closure(t0, t1) {
  14240. this.$this = t0;
  14241. this.node = t1;
  14242. },
  14243. _EvaluateVisitor_visitCssKeyframeBlock_closure0: function _EvaluateVisitor_visitCssKeyframeBlock_closure0() {
  14244. },
  14245. _EvaluateVisitor_visitCssMediaRule_closure: function _EvaluateVisitor_visitCssMediaRule_closure(t0, t1) {
  14246. this.$this = t0;
  14247. this.node = t1;
  14248. },
  14249. _EvaluateVisitor_visitCssMediaRule_closure0: function _EvaluateVisitor_visitCssMediaRule_closure0(t0, t1, t2, t3) {
  14250. var _ = this;
  14251. _.$this = t0;
  14252. _.mergedQueries = t1;
  14253. _.node = t2;
  14254. _.mergedSources = t3;
  14255. },
  14256. _EvaluateVisitor_visitCssMediaRule__closure: function _EvaluateVisitor_visitCssMediaRule__closure(t0, t1) {
  14257. this.$this = t0;
  14258. this.node = t1;
  14259. },
  14260. _EvaluateVisitor_visitCssMediaRule___closure: function _EvaluateVisitor_visitCssMediaRule___closure(t0, t1) {
  14261. this.$this = t0;
  14262. this.node = t1;
  14263. },
  14264. _EvaluateVisitor_visitCssMediaRule_closure1: function _EvaluateVisitor_visitCssMediaRule_closure1(t0) {
  14265. this.mergedSources = t0;
  14266. },
  14267. _EvaluateVisitor_visitCssStyleRule_closure: function _EvaluateVisitor_visitCssStyleRule_closure(t0, t1, t2) {
  14268. this.$this = t0;
  14269. this.rule = t1;
  14270. this.node = t2;
  14271. },
  14272. _EvaluateVisitor_visitCssStyleRule__closure: function _EvaluateVisitor_visitCssStyleRule__closure(t0, t1) {
  14273. this.$this = t0;
  14274. this.node = t1;
  14275. },
  14276. _EvaluateVisitor_visitCssStyleRule_closure0: function _EvaluateVisitor_visitCssStyleRule_closure0() {
  14277. },
  14278. _EvaluateVisitor_visitCssSupportsRule_closure: function _EvaluateVisitor_visitCssSupportsRule_closure(t0, t1) {
  14279. this.$this = t0;
  14280. this.node = t1;
  14281. },
  14282. _EvaluateVisitor_visitCssSupportsRule__closure: function _EvaluateVisitor_visitCssSupportsRule__closure(t0, t1) {
  14283. this.$this = t0;
  14284. this.node = t1;
  14285. },
  14286. _EvaluateVisitor_visitCssSupportsRule_closure0: function _EvaluateVisitor_visitCssSupportsRule_closure0() {
  14287. },
  14288. _EvaluateVisitor__performInterpolation_closure: function _EvaluateVisitor__performInterpolation_closure(t0, t1, t2) {
  14289. this.$this = t0;
  14290. this.warnForColor = t1;
  14291. this.interpolation = t2;
  14292. },
  14293. _EvaluateVisitor__serialize_closure: function _EvaluateVisitor__serialize_closure(t0, t1) {
  14294. this.value = t0;
  14295. this.quote = t1;
  14296. },
  14297. _EvaluateVisitor__expressionNode_closure: function _EvaluateVisitor__expressionNode_closure(t0, t1) {
  14298. this.$this = t0;
  14299. this.expression = t1;
  14300. },
  14301. _EvaluateVisitor__withoutSlash_recommendation: function _EvaluateVisitor__withoutSlash_recommendation() {
  14302. },
  14303. _EvaluateVisitor__stackFrame_closure: function _EvaluateVisitor__stackFrame_closure(t0) {
  14304. this.$this = t0;
  14305. },
  14306. _EvaluateVisitor__stackTrace_closure: function _EvaluateVisitor__stackTrace_closure(t0) {
  14307. this.$this = t0;
  14308. },
  14309. _ImportedCssVisitor: function _ImportedCssVisitor(t0) {
  14310. this._visitor = t0;
  14311. },
  14312. _ImportedCssVisitor_visitCssAtRule_closure: function _ImportedCssVisitor_visitCssAtRule_closure() {
  14313. },
  14314. _ImportedCssVisitor_visitCssMediaRule_closure: function _ImportedCssVisitor_visitCssMediaRule_closure(t0) {
  14315. this.hasBeenMerged = t0;
  14316. },
  14317. _ImportedCssVisitor_visitCssStyleRule_closure: function _ImportedCssVisitor_visitCssStyleRule_closure() {
  14318. },
  14319. _ImportedCssVisitor_visitCssSupportsRule_closure: function _ImportedCssVisitor_visitCssSupportsRule_closure() {
  14320. },
  14321. _EvaluationContext: function _EvaluationContext(t0, t1) {
  14322. this._visitor = t0;
  14323. this._defaultWarnNodeWithSpan = t1;
  14324. },
  14325. _ArgumentResults: function _ArgumentResults(t0, t1, t2, t3, t4) {
  14326. var _ = this;
  14327. _.positional = t0;
  14328. _.positionalNodes = t1;
  14329. _.named = t2;
  14330. _.namedNodes = t3;
  14331. _.separator = t4;
  14332. },
  14333. _LoadedStylesheet: function _LoadedStylesheet(t0, t1, t2) {
  14334. this.stylesheet = t0;
  14335. this.importer = t1;
  14336. this.isDependency = t2;
  14337. },
  14338. EveryCssVisitor: function EveryCssVisitor() {
  14339. },
  14340. EveryCssVisitor_visitCssAtRule_closure: function EveryCssVisitor_visitCssAtRule_closure(t0) {
  14341. this.$this = t0;
  14342. },
  14343. EveryCssVisitor_visitCssKeyframeBlock_closure: function EveryCssVisitor_visitCssKeyframeBlock_closure(t0) {
  14344. this.$this = t0;
  14345. },
  14346. EveryCssVisitor_visitCssMediaRule_closure: function EveryCssVisitor_visitCssMediaRule_closure(t0) {
  14347. this.$this = t0;
  14348. },
  14349. EveryCssVisitor_visitCssStyleRule_closure: function EveryCssVisitor_visitCssStyleRule_closure(t0) {
  14350. this.$this = t0;
  14351. },
  14352. EveryCssVisitor_visitCssStylesheet_closure: function EveryCssVisitor_visitCssStylesheet_closure(t0) {
  14353. this.$this = t0;
  14354. },
  14355. EveryCssVisitor_visitCssSupportsRule_closure: function EveryCssVisitor_visitCssSupportsRule_closure(t0) {
  14356. this.$this = t0;
  14357. },
  14358. _FindDependenciesVisitor: function _FindDependenciesVisitor(t0, t1) {
  14359. this._usesAndForwards = t0;
  14360. this._imports = t1;
  14361. },
  14362. __FindDependenciesVisitor_Object_RecursiveStatementVisitor: function __FindDependenciesVisitor_Object_RecursiveStatementVisitor() {
  14363. },
  14364. RecursiveStatementVisitor: function RecursiveStatementVisitor() {
  14365. },
  14366. serialize(node, charset, indentWidth, inspect, lineFeed, sourceMap, style, useSpaces) {
  14367. var t1, css, t2, prefix,
  14368. visitor = A._SerializeVisitor$(2, inspect, lineFeed, true, sourceMap, style, true);
  14369. node.accept$1(visitor);
  14370. t1 = visitor._serialize$_buffer;
  14371. css = t1.toString$0(0);
  14372. if (charset) {
  14373. t2 = new A.CodeUnits(css);
  14374. t2 = t2.any$1(t2, new A.serialize_closure());
  14375. } else
  14376. t2 = false;
  14377. if (t2)
  14378. prefix = style === B.OutputStyle_1 ? "\ufeff" : '@charset "UTF-8";\n';
  14379. else
  14380. prefix = "";
  14381. t1 = sourceMap ? t1.buildSourceMap$1$prefix(prefix) : null;
  14382. return new A.SerializeResult(prefix + css, t1);
  14383. },
  14384. serializeValue(value, inspect, quote) {
  14385. var visitor = A._SerializeVisitor$(null, inspect, null, quote, false, null, true);
  14386. value.accept$1(visitor);
  14387. return visitor._serialize$_buffer.toString$0(0);
  14388. },
  14389. serializeSelector(selector, inspect) {
  14390. var visitor = A._SerializeVisitor$(null, true, null, true, false, null, true);
  14391. selector.accept$1(visitor);
  14392. return visitor._serialize$_buffer.toString$0(0);
  14393. },
  14394. _SerializeVisitor$(indentWidth, inspect, lineFeed, quote, sourceMap, style, useSpaces) {
  14395. var t1 = sourceMap ? new A.SourceMapBuffer(new A.StringBuffer(""), A._setArrayType([], type$.JSArray_Entry)) : new A.NoSourceMapBuffer(new A.StringBuffer("")),
  14396. t2 = style == null ? B.OutputStyle_0 : style,
  14397. t3 = indentWidth == null ? 2 : indentWidth;
  14398. A.RangeError_checkValueInInterval(t3, 0, 10, "indentWidth");
  14399. return new A._SerializeVisitor(t1, t2, inspect, quote, 32, t3, B.LineFeed_lf);
  14400. },
  14401. serialize_closure: function serialize_closure() {
  14402. },
  14403. _SerializeVisitor: function _SerializeVisitor(t0, t1, t2, t3, t4, t5, t6) {
  14404. var _ = this;
  14405. _._serialize$_buffer = t0;
  14406. _._indentation = 0;
  14407. _._style = t1;
  14408. _._inspect = t2;
  14409. _._quote = t3;
  14410. _._indentCharacter = t4;
  14411. _._indentWidth = t5;
  14412. _._serialize$_lineFeed = t6;
  14413. },
  14414. _SerializeVisitor_visitCssComment_closure: function _SerializeVisitor_visitCssComment_closure(t0, t1) {
  14415. this.$this = t0;
  14416. this.node = t1;
  14417. },
  14418. _SerializeVisitor_visitCssAtRule_closure: function _SerializeVisitor_visitCssAtRule_closure(t0, t1) {
  14419. this.$this = t0;
  14420. this.node = t1;
  14421. },
  14422. _SerializeVisitor_visitCssMediaRule_closure: function _SerializeVisitor_visitCssMediaRule_closure(t0, t1) {
  14423. this.$this = t0;
  14424. this.node = t1;
  14425. },
  14426. _SerializeVisitor_visitCssImport_closure: function _SerializeVisitor_visitCssImport_closure(t0, t1) {
  14427. this.$this = t0;
  14428. this.node = t1;
  14429. },
  14430. _SerializeVisitor_visitCssImport__closure: function _SerializeVisitor_visitCssImport__closure(t0, t1) {
  14431. this.$this = t0;
  14432. this.node = t1;
  14433. },
  14434. _SerializeVisitor_visitCssKeyframeBlock_closure: function _SerializeVisitor_visitCssKeyframeBlock_closure(t0, t1) {
  14435. this.$this = t0;
  14436. this.node = t1;
  14437. },
  14438. _SerializeVisitor_visitCssStyleRule_closure: function _SerializeVisitor_visitCssStyleRule_closure(t0, t1) {
  14439. this.$this = t0;
  14440. this.node = t1;
  14441. },
  14442. _SerializeVisitor_visitCssSupportsRule_closure: function _SerializeVisitor_visitCssSupportsRule_closure(t0, t1) {
  14443. this.$this = t0;
  14444. this.node = t1;
  14445. },
  14446. _SerializeVisitor_visitCssDeclaration_closure: function _SerializeVisitor_visitCssDeclaration_closure(t0, t1) {
  14447. this.$this = t0;
  14448. this.node = t1;
  14449. },
  14450. _SerializeVisitor_visitCssDeclaration_closure0: function _SerializeVisitor_visitCssDeclaration_closure0(t0, t1) {
  14451. this.$this = t0;
  14452. this.node = t1;
  14453. },
  14454. _SerializeVisitor_visitList_closure: function _SerializeVisitor_visitList_closure() {
  14455. },
  14456. _SerializeVisitor_visitList_closure0: function _SerializeVisitor_visitList_closure0(t0, t1) {
  14457. this.$this = t0;
  14458. this.value = t1;
  14459. },
  14460. _SerializeVisitor_visitList_closure1: function _SerializeVisitor_visitList_closure1(t0) {
  14461. this.$this = t0;
  14462. },
  14463. _SerializeVisitor_visitMap_closure: function _SerializeVisitor_visitMap_closure(t0) {
  14464. this.$this = t0;
  14465. },
  14466. _SerializeVisitor_visitSelectorList_closure: function _SerializeVisitor_visitSelectorList_closure() {
  14467. },
  14468. _SerializeVisitor__write_closure: function _SerializeVisitor__write_closure(t0, t1) {
  14469. this.$this = t0;
  14470. this.value = t1;
  14471. },
  14472. _SerializeVisitor__visitChildren_closure: function _SerializeVisitor__visitChildren_closure(t0, t1) {
  14473. this.$this = t0;
  14474. this.child = t1;
  14475. },
  14476. _SerializeVisitor__visitChildren_closure0: function _SerializeVisitor__visitChildren_closure0(t0, t1) {
  14477. this.$this = t0;
  14478. this.child = t1;
  14479. },
  14480. OutputStyle: function OutputStyle(t0) {
  14481. this._name = t0;
  14482. },
  14483. LineFeed: function LineFeed(t0) {
  14484. this._name = t0;
  14485. },
  14486. SerializeResult: function SerializeResult(t0, t1) {
  14487. this.css = t0;
  14488. this.sourceMap = t1;
  14489. },
  14490. _IterableExtension__search(_this, callback) {
  14491. var t1, value;
  14492. for (t1 = J.get$iterator$ax(_this); t1.moveNext$0();) {
  14493. value = callback.call$1(t1.get$current(t1));
  14494. if (value != null)
  14495. return value;
  14496. }
  14497. return null;
  14498. },
  14499. StatementSearchVisitor: function StatementSearchVisitor() {
  14500. },
  14501. StatementSearchVisitor_visitIfRule_closure: function StatementSearchVisitor_visitIfRule_closure(t0) {
  14502. this.$this = t0;
  14503. },
  14504. StatementSearchVisitor_visitIfRule__closure0: function StatementSearchVisitor_visitIfRule__closure0(t0) {
  14505. this.$this = t0;
  14506. },
  14507. StatementSearchVisitor_visitIfRule_closure0: function StatementSearchVisitor_visitIfRule_closure0(t0) {
  14508. this.$this = t0;
  14509. },
  14510. StatementSearchVisitor_visitIfRule__closure: function StatementSearchVisitor_visitIfRule__closure(t0) {
  14511. this.$this = t0;
  14512. },
  14513. StatementSearchVisitor_visitChildren_closure: function StatementSearchVisitor_visitChildren_closure(t0) {
  14514. this.$this = t0;
  14515. },
  14516. Entry: function Entry(t0, t1, t2) {
  14517. this.source = t0;
  14518. this.target = t1;
  14519. this.identifierName = t2;
  14520. },
  14521. SingleMapping_SingleMapping$fromEntries(entries) {
  14522. var lines, t1, t2, urls, names, files, targetEntries, t3, t4, lineNum, _i, sourceEntry, t5, t6, sourceUrl, t7, urlId,
  14523. sourceEntries = J.toList$0$ax(entries);
  14524. B.JSArray_methods.sort$0(sourceEntries);
  14525. lines = A._setArrayType([], type$.JSArray_TargetLineEntry);
  14526. t1 = type$.String;
  14527. t2 = type$.int;
  14528. urls = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
  14529. names = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
  14530. files = A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.SourceFile);
  14531. targetEntries = A._Cell$();
  14532. for (t2 = sourceEntries.length, t3 = type$.JSArray_TargetEntry, t4 = targetEntries.__late_helper$_name, lineNum = null, _i = 0; _i < sourceEntries.length; sourceEntries.length === t2 || (0, A.throwConcurrentModificationError)(sourceEntries), ++_i) {
  14533. sourceEntry = sourceEntries[_i];
  14534. if (lineNum == null || sourceEntry.target.line > lineNum) {
  14535. lineNum = sourceEntry.target.line;
  14536. t5 = A._setArrayType([], t3);
  14537. targetEntries._value = t5;
  14538. lines.push(new A.TargetLineEntry(lineNum, t5));
  14539. }
  14540. t5 = sourceEntry.source;
  14541. t6 = t5.file;
  14542. sourceUrl = t6.url;
  14543. t7 = sourceUrl == null ? "" : sourceUrl.toString$0(0);
  14544. urlId = urls.putIfAbsent$2(t7, new A.SingleMapping_SingleMapping$fromEntries_closure(urls));
  14545. files.putIfAbsent$2(urlId, new A.SingleMapping_SingleMapping$fromEntries_closure0(sourceEntry));
  14546. t7 = targetEntries._value;
  14547. if (t7 === targetEntries)
  14548. A.throwExpression(A.LateError$localNI(t4));
  14549. t5 = t5.offset;
  14550. J.add$1$ax(t7, new A.TargetEntry(sourceEntry.target.column, urlId, t6.getLine$1(t5), t6.getColumn$1(t5), null));
  14551. }
  14552. t2 = urls.get$values(urls);
  14553. t2 = A.MappedIterable_MappedIterable(t2, new A.SingleMapping_SingleMapping$fromEntries_closure1(files), A._instanceType(t2)._eval$1("Iterable.E"), type$.nullable_SourceFile);
  14554. t2 = A.List_List$of(t2, true, A._instanceType(t2)._eval$1("Iterable.E"));
  14555. t3 = urls.$ti._eval$1("LinkedHashMapKeyIterable<1>");
  14556. t4 = names.$ti._eval$1("LinkedHashMapKeyIterable<1>");
  14557. return new A.SingleMapping(A.List_List$of(new A.LinkedHashMapKeyIterable(urls, t3), true, t3._eval$1("Iterable.E")), A.List_List$of(new A.LinkedHashMapKeyIterable(names, t4), true, t4._eval$1("Iterable.E")), t2, lines, null, A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.dynamic));
  14558. },
  14559. Mapping: function Mapping() {
  14560. },
  14561. SingleMapping: function SingleMapping(t0, t1, t2, t3, t4, t5) {
  14562. var _ = this;
  14563. _.urls = t0;
  14564. _.names = t1;
  14565. _.files = t2;
  14566. _.lines = t3;
  14567. _.targetUrl = t4;
  14568. _.sourceRoot = null;
  14569. _.extensions = t5;
  14570. },
  14571. SingleMapping_SingleMapping$fromEntries_closure: function SingleMapping_SingleMapping$fromEntries_closure(t0) {
  14572. this.urls = t0;
  14573. },
  14574. SingleMapping_SingleMapping$fromEntries_closure0: function SingleMapping_SingleMapping$fromEntries_closure0(t0) {
  14575. this.sourceEntry = t0;
  14576. },
  14577. SingleMapping_SingleMapping$fromEntries_closure1: function SingleMapping_SingleMapping$fromEntries_closure1(t0) {
  14578. this.files = t0;
  14579. },
  14580. SingleMapping_toJson_closure: function SingleMapping_toJson_closure() {
  14581. },
  14582. SingleMapping_toJson_closure0: function SingleMapping_toJson_closure0(t0) {
  14583. this.result = t0;
  14584. },
  14585. TargetLineEntry: function TargetLineEntry(t0, t1) {
  14586. this.line = t0;
  14587. this.entries = t1;
  14588. },
  14589. TargetEntry: function TargetEntry(t0, t1, t2, t3, t4) {
  14590. var _ = this;
  14591. _.column = t0;
  14592. _.sourceUrlId = t1;
  14593. _.sourceLine = t2;
  14594. _.sourceColumn = t3;
  14595. _.sourceNameId = t4;
  14596. },
  14597. SourceFile$fromString(text, url) {
  14598. var t1 = new A.CodeUnits(text),
  14599. t2 = A._setArrayType([0], type$.JSArray_int),
  14600. t3 = typeof url == "string" ? A.Uri_parse(url) : type$.nullable_Uri._as(url);
  14601. t2 = new A.SourceFile(t3, t2, new Uint32Array(A._ensureNativeList(t1.toList$0(t1))));
  14602. t2.SourceFile$decoded$2$url(t1, url);
  14603. return t2;
  14604. },
  14605. SourceFile$decoded(decodedChars, url) {
  14606. var t1 = A._setArrayType([0], type$.JSArray_int),
  14607. t2 = typeof url == "string" ? A.Uri_parse(url) : type$.nullable_Uri._as(url);
  14608. t1 = new A.SourceFile(t2, t1, new Uint32Array(A._ensureNativeList(J.toList$0$ax(decodedChars))));
  14609. t1.SourceFile$decoded$2$url(decodedChars, url);
  14610. return t1;
  14611. },
  14612. FileLocation$_(file, offset) {
  14613. if (offset < 0)
  14614. A.throwExpression(A.RangeError$("Offset may not be negative, was " + offset + "."));
  14615. else if (offset > file._decodedChars.length)
  14616. A.throwExpression(A.RangeError$("Offset " + offset + string$.x20must_ + file.get$length(file) + "."));
  14617. return new A.FileLocation(file, offset);
  14618. },
  14619. _FileSpan$(file, _start, _end) {
  14620. if (_end < _start)
  14621. A.throwExpression(A.ArgumentError$("End " + _end + " must come after start " + _start + ".", null));
  14622. else if (_end > file._decodedChars.length)
  14623. A.throwExpression(A.RangeError$("End " + _end + string$.x20must_ + file.get$length(file) + "."));
  14624. else if (_start < 0)
  14625. A.throwExpression(A.RangeError$("Start may not be negative, was " + _start + "."));
  14626. return new A._FileSpan(file, _start, _end);
  14627. },
  14628. FileSpanExtension_subspan(_this, start, end) {
  14629. var startOffset,
  14630. t1 = _this._end,
  14631. t2 = _this._file$_start,
  14632. t3 = t1 - t2;
  14633. A.RangeError_checkValidRange(start, end, t3);
  14634. if (start === 0)
  14635. t3 = end == null || end === t3;
  14636. else
  14637. t3 = false;
  14638. if (t3)
  14639. return _this;
  14640. t3 = _this.file;
  14641. startOffset = A.FileLocation$_(t3, t2).offset;
  14642. t1 = end == null ? A.FileLocation$_(t3, t1).offset : startOffset + end;
  14643. return t3.span$2(0, startOffset + start, t1);
  14644. },
  14645. SourceFile: function SourceFile(t0, t1, t2) {
  14646. var _ = this;
  14647. _.url = t0;
  14648. _._lineStarts = t1;
  14649. _._decodedChars = t2;
  14650. _._cachedLine = null;
  14651. },
  14652. FileLocation: function FileLocation(t0, t1) {
  14653. this.file = t0;
  14654. this.offset = t1;
  14655. },
  14656. _FileSpan: function _FileSpan(t0, t1, t2) {
  14657. this.file = t0;
  14658. this._file$_start = t1;
  14659. this._end = t2;
  14660. },
  14661. Highlighter$(span, color) {
  14662. var t1 = A.Highlighter__collateLines(A._setArrayType([A._Highlight$(span, null, true)], type$.JSArray__Highlight)),
  14663. t2 = new A.Highlighter_closure(color).call$0(),
  14664. t3 = B.JSInt_methods.toString$0(B.JSArray_methods.get$last(t1).number + 1),
  14665. t4 = A.Highlighter__contiguous(t1) ? 0 : 3,
  14666. t5 = A._arrayInstanceType(t1);
  14667. return new A.Highlighter(t1, t2, null, 1 + Math.max(t3.length, t4), new A.MappedListIterable(t1, new A.Highlighter$__closure(), t5._eval$1("MappedListIterable<1,int>")).reduce$1(0, B.CONSTANT), !A.isAllTheSame(new A.MappedListIterable(t1, new A.Highlighter$__closure0(), t5._eval$1("MappedListIterable<1,Object?>"))), new A.StringBuffer(""));
  14668. },
  14669. Highlighter$multiple(primarySpan, primaryLabel, secondarySpans, color, primaryColor, secondaryColor) {
  14670. var t2, t3, t4, t5, t6,
  14671. t1 = A._setArrayType([A._Highlight$(primarySpan, primaryLabel, true)], type$.JSArray__Highlight);
  14672. for (t2 = secondarySpans.get$entries(secondarySpans), t2 = t2.get$iterator(t2); t2.moveNext$0();) {
  14673. t3 = t2.get$current(t2);
  14674. t1.push(A._Highlight$(t3.key, t3.value, false));
  14675. }
  14676. t1 = A.Highlighter__collateLines(t1);
  14677. if (color)
  14678. t2 = primaryColor == null ? "\x1b[31m" : primaryColor;
  14679. else
  14680. t2 = null;
  14681. if (color)
  14682. t3 = "\x1b[34m";
  14683. else
  14684. t3 = null;
  14685. t4 = B.JSInt_methods.toString$0(B.JSArray_methods.get$last(t1).number + 1);
  14686. t5 = A.Highlighter__contiguous(t1) ? 0 : 3;
  14687. t6 = A._arrayInstanceType(t1);
  14688. return new A.Highlighter(t1, t2, t3, 1 + Math.max(t4.length, t5), new A.MappedListIterable(t1, new A.Highlighter$__closure(), t6._eval$1("MappedListIterable<1,int>")).reduce$1(0, B.CONSTANT), !A.isAllTheSame(new A.MappedListIterable(t1, new A.Highlighter$__closure0(), t6._eval$1("MappedListIterable<1,Object?>"))), new A.StringBuffer(""));
  14689. },
  14690. Highlighter__contiguous(lines) {
  14691. var i, thisLine, nextLine;
  14692. for (i = 0; i < lines.length - 1;) {
  14693. thisLine = lines[i];
  14694. ++i;
  14695. nextLine = lines[i];
  14696. if (thisLine.number + 1 !== nextLine.number && J.$eq$(thisLine.url, nextLine.url))
  14697. return false;
  14698. }
  14699. return true;
  14700. },
  14701. Highlighter__collateLines(highlights) {
  14702. var t1, t2, t3,
  14703. highlightsByUrl = A.groupBy(highlights, new A.Highlighter__collateLines_closure(), type$._Highlight, type$.Object);
  14704. for (t1 = highlightsByUrl.get$values(highlightsByUrl), t1 = new A.MappedIterator(J.get$iterator$ax(t1.__internal$_iterable), t1._f), t2 = A._instanceType(t1)._rest[1]; t1.moveNext$0();) {
  14705. t3 = t1.__internal$_current;
  14706. if (t3 == null)
  14707. t3 = t2._as(t3);
  14708. J.sort$1$ax(t3, new A.Highlighter__collateLines_closure0());
  14709. }
  14710. t1 = highlightsByUrl.get$entries(highlightsByUrl);
  14711. t2 = A._instanceType(t1)._eval$1("ExpandIterable<Iterable.E,_Line>");
  14712. return A.List_List$of(new A.ExpandIterable(t1, new A.Highlighter__collateLines_closure1(), t2), true, t2._eval$1("Iterable.E"));
  14713. },
  14714. _Highlight$(span, label, primary) {
  14715. var t2,
  14716. t1 = new A._Highlight_closure(span).call$0();
  14717. if (label == null)
  14718. t2 = null;
  14719. else
  14720. t2 = A.stringReplaceAllUnchecked(label, "\r\n", "\n");
  14721. return new A._Highlight(t1, primary, t2);
  14722. },
  14723. _Highlight__normalizeNewlines(span) {
  14724. var endOffset, t1, i, t2, t3, t4,
  14725. text = span.get$text();
  14726. if (!B.JSString_methods.contains$1(text, "\r\n"))
  14727. return span;
  14728. endOffset = span.get$end(span).get$offset();
  14729. for (t1 = text.length - 1, i = 0; i < t1; ++i)
  14730. if (B.JSString_methods._codeUnitAt$1(text, i) === 13 && B.JSString_methods._codeUnitAt$1(text, i + 1) === 10)
  14731. --endOffset;
  14732. t1 = span.get$start(span);
  14733. t2 = span.get$sourceUrl(span);
  14734. t3 = span.get$end(span).get$line();
  14735. t2 = A.SourceLocation$(endOffset, span.get$end(span).get$column(), t3, t2);
  14736. t3 = A.stringReplaceAllUnchecked(text, "\r\n", "\n");
  14737. t4 = span.get$context(span);
  14738. return A.SourceSpanWithContext$(t1, t2, t3, A.stringReplaceAllUnchecked(t4, "\r\n", "\n"));
  14739. },
  14740. _Highlight__normalizeTrailingNewline(span) {
  14741. var context, text, start, end, t1, t2, t3;
  14742. if (!B.JSString_methods.endsWith$1(span.get$context(span), "\n"))
  14743. return span;
  14744. if (B.JSString_methods.endsWith$1(span.get$text(), "\n\n"))
  14745. return span;
  14746. context = B.JSString_methods.substring$2(span.get$context(span), 0, span.get$context(span).length - 1);
  14747. text = span.get$text();
  14748. start = span.get$start(span);
  14749. end = span.get$end(span);
  14750. if (B.JSString_methods.endsWith$1(span.get$text(), "\n")) {
  14751. t1 = A.findLineStart(span.get$context(span), span.get$text(), span.get$start(span).get$column());
  14752. t1.toString;
  14753. t1 = t1 + span.get$start(span).get$column() + span.get$length(span) === span.get$context(span).length;
  14754. } else
  14755. t1 = false;
  14756. if (t1) {
  14757. text = B.JSString_methods.substring$2(span.get$text(), 0, span.get$text().length - 1);
  14758. if (text.length === 0)
  14759. end = start;
  14760. else {
  14761. t1 = span.get$end(span).get$offset();
  14762. t2 = span.get$sourceUrl(span);
  14763. t3 = span.get$end(span).get$line();
  14764. end = A.SourceLocation$(t1 - 1, A._Highlight__lastLineLength(context), t3 - 1, t2);
  14765. start = span.get$start(span).get$offset() === span.get$end(span).get$offset() ? end : span.get$start(span);
  14766. }
  14767. }
  14768. return A.SourceSpanWithContext$(start, end, text, context);
  14769. },
  14770. _Highlight__normalizeEndOfLine(span) {
  14771. var text, t1, t2, t3, t4;
  14772. if (span.get$end(span).get$column() !== 0)
  14773. return span;
  14774. if (span.get$end(span).get$line() === span.get$start(span).get$line())
  14775. return span;
  14776. text = B.JSString_methods.substring$2(span.get$text(), 0, span.get$text().length - 1);
  14777. t1 = span.get$start(span);
  14778. t2 = span.get$end(span).get$offset();
  14779. t3 = span.get$sourceUrl(span);
  14780. t4 = span.get$end(span).get$line();
  14781. t3 = A.SourceLocation$(t2 - 1, text.length - B.JSString_methods.lastIndexOf$1(text, "\n") - 1, t4 - 1, t3);
  14782. return A.SourceSpanWithContext$(t1, t3, text, B.JSString_methods.endsWith$1(span.get$context(span), "\n") ? B.JSString_methods.substring$2(span.get$context(span), 0, span.get$context(span).length - 1) : span.get$context(span));
  14783. },
  14784. _Highlight__lastLineLength(text) {
  14785. var t1 = text.length;
  14786. if (t1 === 0)
  14787. return 0;
  14788. else if (B.JSString_methods.codeUnitAt$1(text, t1 - 1) === 10)
  14789. return t1 === 1 ? 0 : t1 - B.JSString_methods.lastIndexOf$2(text, "\n", t1 - 2) - 1;
  14790. else
  14791. return t1 - B.JSString_methods.lastIndexOf$1(text, "\n") - 1;
  14792. },
  14793. Highlighter: function Highlighter(t0, t1, t2, t3, t4, t5, t6) {
  14794. var _ = this;
  14795. _._lines = t0;
  14796. _._primaryColor = t1;
  14797. _._secondaryColor = t2;
  14798. _._paddingBeforeSidebar = t3;
  14799. _._maxMultilineSpans = t4;
  14800. _._multipleFiles = t5;
  14801. _._highlighter$_buffer = t6;
  14802. },
  14803. Highlighter_closure: function Highlighter_closure(t0) {
  14804. this.color = t0;
  14805. },
  14806. Highlighter$__closure: function Highlighter$__closure() {
  14807. },
  14808. Highlighter$___closure: function Highlighter$___closure() {
  14809. },
  14810. Highlighter$__closure0: function Highlighter$__closure0() {
  14811. },
  14812. Highlighter__collateLines_closure: function Highlighter__collateLines_closure() {
  14813. },
  14814. Highlighter__collateLines_closure0: function Highlighter__collateLines_closure0() {
  14815. },
  14816. Highlighter__collateLines_closure1: function Highlighter__collateLines_closure1() {
  14817. },
  14818. Highlighter__collateLines__closure: function Highlighter__collateLines__closure(t0) {
  14819. this.line = t0;
  14820. },
  14821. Highlighter_highlight_closure: function Highlighter_highlight_closure() {
  14822. },
  14823. Highlighter__writeFileStart_closure: function Highlighter__writeFileStart_closure(t0) {
  14824. this.$this = t0;
  14825. },
  14826. Highlighter__writeMultilineHighlights_closure: function Highlighter__writeMultilineHighlights_closure(t0, t1, t2) {
  14827. this.$this = t0;
  14828. this.startLine = t1;
  14829. this.line = t2;
  14830. },
  14831. Highlighter__writeMultilineHighlights_closure0: function Highlighter__writeMultilineHighlights_closure0(t0, t1) {
  14832. this.$this = t0;
  14833. this.highlight = t1;
  14834. },
  14835. Highlighter__writeMultilineHighlights_closure1: function Highlighter__writeMultilineHighlights_closure1(t0) {
  14836. this.$this = t0;
  14837. },
  14838. Highlighter__writeMultilineHighlights_closure2: function Highlighter__writeMultilineHighlights_closure2(t0, t1, t2, t3, t4, t5, t6) {
  14839. var _ = this;
  14840. _._box_0 = t0;
  14841. _.$this = t1;
  14842. _.current = t2;
  14843. _.startLine = t3;
  14844. _.line = t4;
  14845. _.highlight = t5;
  14846. _.endLine = t6;
  14847. },
  14848. Highlighter__writeMultilineHighlights__closure: function Highlighter__writeMultilineHighlights__closure(t0, t1) {
  14849. this._box_0 = t0;
  14850. this.$this = t1;
  14851. },
  14852. Highlighter__writeMultilineHighlights__closure0: function Highlighter__writeMultilineHighlights__closure0(t0, t1) {
  14853. this.$this = t0;
  14854. this.vertical = t1;
  14855. },
  14856. Highlighter__writeHighlightedText_closure: function Highlighter__writeHighlightedText_closure(t0, t1, t2, t3) {
  14857. var _ = this;
  14858. _.$this = t0;
  14859. _.text = t1;
  14860. _.startColumn = t2;
  14861. _.endColumn = t3;
  14862. },
  14863. Highlighter__writeIndicator_closure: function Highlighter__writeIndicator_closure(t0, t1, t2) {
  14864. this.$this = t0;
  14865. this.line = t1;
  14866. this.highlight = t2;
  14867. },
  14868. Highlighter__writeIndicator_closure0: function Highlighter__writeIndicator_closure0(t0, t1, t2) {
  14869. this.$this = t0;
  14870. this.line = t1;
  14871. this.highlight = t2;
  14872. },
  14873. Highlighter__writeIndicator_closure1: function Highlighter__writeIndicator_closure1(t0, t1, t2, t3) {
  14874. var _ = this;
  14875. _.$this = t0;
  14876. _.coversWholeLine = t1;
  14877. _.line = t2;
  14878. _.highlight = t3;
  14879. },
  14880. Highlighter__writeLabel_closure: function Highlighter__writeLabel_closure(t0, t1) {
  14881. this.$this = t0;
  14882. this.lines = t1;
  14883. },
  14884. Highlighter__writeLabel_closure0: function Highlighter__writeLabel_closure0(t0, t1) {
  14885. this.$this = t0;
  14886. this.text = t1;
  14887. },
  14888. Highlighter__writeSidebar_closure: function Highlighter__writeSidebar_closure(t0, t1, t2) {
  14889. this._box_0 = t0;
  14890. this.$this = t1;
  14891. this.end = t2;
  14892. },
  14893. _Highlight: function _Highlight(t0, t1, t2) {
  14894. this.span = t0;
  14895. this.isPrimary = t1;
  14896. this.label = t2;
  14897. },
  14898. _Highlight_closure: function _Highlight_closure(t0) {
  14899. this.span = t0;
  14900. },
  14901. _Line: function _Line(t0, t1, t2, t3) {
  14902. var _ = this;
  14903. _.text = t0;
  14904. _.number = t1;
  14905. _.url = t2;
  14906. _.highlights = t3;
  14907. },
  14908. SourceLocation$(offset, column, line, sourceUrl) {
  14909. if (offset < 0)
  14910. A.throwExpression(A.RangeError$("Offset may not be negative, was " + offset + "."));
  14911. else if (line < 0)
  14912. A.throwExpression(A.RangeError$("Line may not be negative, was " + line + "."));
  14913. else if (column < 0)
  14914. A.throwExpression(A.RangeError$("Column may not be negative, was " + column + "."));
  14915. return new A.SourceLocation(sourceUrl, offset, line, column);
  14916. },
  14917. SourceLocation: function SourceLocation(t0, t1, t2, t3) {
  14918. var _ = this;
  14919. _.sourceUrl = t0;
  14920. _.offset = t1;
  14921. _.line = t2;
  14922. _.column = t3;
  14923. },
  14924. SourceLocationMixin: function SourceLocationMixin() {
  14925. },
  14926. SourceSpanExtension_messageMultiple(_this, message, label, secondarySpans, color, primaryColor) {
  14927. var t2,
  14928. t1 = _this.get$start(_this);
  14929. t1 = t1.file.getLine$1(t1.offset);
  14930. t2 = _this.get$start(_this);
  14931. t2 = "" + ("line " + (t1 + 1) + ", column " + (t2.file.getColumn$1(t2.offset) + 1));
  14932. if (_this.get$sourceUrl(_this) != null) {
  14933. t1 = _this.get$sourceUrl(_this);
  14934. t1 = t2 + (" of " + $.$get$context().prettyUri$1(t1));
  14935. } else
  14936. t1 = t2;
  14937. t1 = t1 + (": " + message + "\n") + A.Highlighter$multiple(_this, label, secondarySpans, color, primaryColor, null).highlight$0();
  14938. return t1.charCodeAt(0) == 0 ? t1 : t1;
  14939. },
  14940. SourceSpanBase: function SourceSpanBase() {
  14941. },
  14942. SourceSpanException: function SourceSpanException() {
  14943. },
  14944. SourceSpanFormatException: function SourceSpanFormatException(t0, t1, t2) {
  14945. this.source = t0;
  14946. this._span_exception$_message = t1;
  14947. this._span = t2;
  14948. },
  14949. SourceSpanMixin: function SourceSpanMixin() {
  14950. },
  14951. SourceSpanWithContext$(start, end, text, _context) {
  14952. var t1 = new A.SourceSpanWithContext(_context, start, end, text);
  14953. t1.SourceSpanBase$3(start, end, text);
  14954. if (!B.JSString_methods.contains$1(_context, text))
  14955. A.throwExpression(A.ArgumentError$('The context line "' + _context + '" must contain "' + text + '".', null));
  14956. if (A.findLineStart(_context, text, start.get$column()) == null)
  14957. A.throwExpression(A.ArgumentError$('The span text "' + text + '" must start at column ' + (start.get$column() + 1) + ' in a line within "' + _context + '".', null));
  14958. return t1;
  14959. },
  14960. SourceSpanWithContext: function SourceSpanWithContext(t0, t1, t2, t3) {
  14961. var _ = this;
  14962. _._context = t0;
  14963. _.start = t1;
  14964. _.end = t2;
  14965. _.text = t3;
  14966. },
  14967. Chain_Chain$parse(chain) {
  14968. var t1, t2,
  14969. _s51_ = string$.x3d_____;
  14970. if (chain.length === 0)
  14971. return new A.Chain(A.List_List$unmodifiable(A._setArrayType([], type$.JSArray_Trace), type$.Trace));
  14972. t1 = $.$get$vmChainGap();
  14973. if (B.JSString_methods.contains$1(chain, t1)) {
  14974. t1 = B.JSString_methods.split$1(chain, t1);
  14975. t2 = A._arrayInstanceType(t1);
  14976. return new A.Chain(A.List_List$unmodifiable(new A.MappedIterable(new A.WhereIterable(t1, new A.Chain_Chain$parse_closure(), t2._eval$1("WhereIterable<1>")), A.trace_Trace___parseVM_tearOff$closure(), t2._eval$1("MappedIterable<1,Trace>")), type$.Trace));
  14977. }
  14978. if (!B.JSString_methods.contains$1(chain, _s51_))
  14979. return new A.Chain(A.List_List$unmodifiable(A._setArrayType([A.Trace_Trace$parse(chain)], type$.JSArray_Trace), type$.Trace));
  14980. return new A.Chain(A.List_List$unmodifiable(new A.MappedListIterable(A._setArrayType(chain.split(_s51_), type$.JSArray_String), A.trace_Trace___parseFriendly_tearOff$closure(), type$.MappedListIterable_String_Trace), type$.Trace));
  14981. },
  14982. Chain: function Chain(t0) {
  14983. this.traces = t0;
  14984. },
  14985. Chain_Chain$parse_closure: function Chain_Chain$parse_closure() {
  14986. },
  14987. Chain_toTrace_closure: function Chain_toTrace_closure() {
  14988. },
  14989. Chain_toString_closure0: function Chain_toString_closure0() {
  14990. },
  14991. Chain_toString__closure0: function Chain_toString__closure0() {
  14992. },
  14993. Chain_toString_closure: function Chain_toString_closure(t0) {
  14994. this.longest = t0;
  14995. },
  14996. Chain_toString__closure: function Chain_toString__closure(t0) {
  14997. this.longest = t0;
  14998. },
  14999. Frame___parseVM_tearOff(frame) {
  15000. return A.Frame_Frame$parseVM(frame);
  15001. },
  15002. Frame_Frame$parseVM(frame) {
  15003. return A.Frame__catchFormatException(frame, new A.Frame_Frame$parseVM_closure(frame));
  15004. },
  15005. Frame___parseV8_tearOff(frame) {
  15006. return A.Frame_Frame$parseV8(frame);
  15007. },
  15008. Frame_Frame$parseV8(frame) {
  15009. return A.Frame__catchFormatException(frame, new A.Frame_Frame$parseV8_closure(frame));
  15010. },
  15011. Frame_Frame$_parseFirefoxEval(frame) {
  15012. return A.Frame__catchFormatException(frame, new A.Frame_Frame$_parseFirefoxEval_closure(frame));
  15013. },
  15014. Frame___parseFirefox_tearOff(frame) {
  15015. return A.Frame_Frame$parseFirefox(frame);
  15016. },
  15017. Frame_Frame$parseFirefox(frame) {
  15018. return A.Frame__catchFormatException(frame, new A.Frame_Frame$parseFirefox_closure(frame));
  15019. },
  15020. Frame___parseFriendly_tearOff(frame) {
  15021. return A.Frame_Frame$parseFriendly(frame);
  15022. },
  15023. Frame_Frame$parseFriendly(frame) {
  15024. return A.Frame__catchFormatException(frame, new A.Frame_Frame$parseFriendly_closure(frame));
  15025. },
  15026. Frame__uriOrPathToUri(uriOrPath) {
  15027. if (B.JSString_methods.contains$1(uriOrPath, $.$get$Frame__uriRegExp()))
  15028. return A.Uri_parse(uriOrPath);
  15029. else if (B.JSString_methods.contains$1(uriOrPath, $.$get$Frame__windowsRegExp()))
  15030. return A._Uri__Uri$file(uriOrPath, true);
  15031. else if (B.JSString_methods.startsWith$1(uriOrPath, "/"))
  15032. return A._Uri__Uri$file(uriOrPath, false);
  15033. if (B.JSString_methods.contains$1(uriOrPath, "\\"))
  15034. return $.$get$windows().toUri$1(uriOrPath);
  15035. return A.Uri_parse(uriOrPath);
  15036. },
  15037. Frame__catchFormatException(text, body) {
  15038. var t1, exception;
  15039. try {
  15040. t1 = body.call$0();
  15041. return t1;
  15042. } catch (exception) {
  15043. if (type$.FormatException._is(A.unwrapException(exception)))
  15044. return new A.UnparsedFrame(A._Uri__Uri(null, "unparsed", null, null), text);
  15045. else
  15046. throw exception;
  15047. }
  15048. },
  15049. Frame: function Frame(t0, t1, t2, t3) {
  15050. var _ = this;
  15051. _.uri = t0;
  15052. _.line = t1;
  15053. _.column = t2;
  15054. _.member = t3;
  15055. },
  15056. Frame_Frame$parseVM_closure: function Frame_Frame$parseVM_closure(t0) {
  15057. this.frame = t0;
  15058. },
  15059. Frame_Frame$parseV8_closure: function Frame_Frame$parseV8_closure(t0) {
  15060. this.frame = t0;
  15061. },
  15062. Frame_Frame$parseV8_closure_parseLocation: function Frame_Frame$parseV8_closure_parseLocation(t0) {
  15063. this.frame = t0;
  15064. },
  15065. Frame_Frame$_parseFirefoxEval_closure: function Frame_Frame$_parseFirefoxEval_closure(t0) {
  15066. this.frame = t0;
  15067. },
  15068. Frame_Frame$parseFirefox_closure: function Frame_Frame$parseFirefox_closure(t0) {
  15069. this.frame = t0;
  15070. },
  15071. Frame_Frame$parseFriendly_closure: function Frame_Frame$parseFriendly_closure(t0) {
  15072. this.frame = t0;
  15073. },
  15074. LazyTrace: function LazyTrace(t0) {
  15075. this._thunk = t0;
  15076. this.__LazyTrace__trace_FI = $;
  15077. },
  15078. LazyTrace_terse_closure: function LazyTrace_terse_closure(t0) {
  15079. this.$this = t0;
  15080. },
  15081. Trace_Trace$from(trace) {
  15082. if (type$.Trace._is(trace))
  15083. return trace;
  15084. if (trace instanceof A.Chain)
  15085. return trace.toTrace$0();
  15086. return new A.LazyTrace(new A.Trace_Trace$from_closure(trace));
  15087. },
  15088. Trace_Trace$parse(trace) {
  15089. var error, t1, exception;
  15090. try {
  15091. if (trace.length === 0) {
  15092. t1 = A.Trace$(A._setArrayType([], type$.JSArray_Frame), null);
  15093. return t1;
  15094. }
  15095. if (B.JSString_methods.contains$1(trace, $.$get$_v8Trace())) {
  15096. t1 = A.Trace$parseV8(trace);
  15097. return t1;
  15098. }
  15099. if (B.JSString_methods.contains$1(trace, "\tat ")) {
  15100. t1 = A.Trace$parseJSCore(trace);
  15101. return t1;
  15102. }
  15103. if (B.JSString_methods.contains$1(trace, $.$get$_firefoxSafariTrace()) || B.JSString_methods.contains$1(trace, $.$get$_firefoxEvalTrace())) {
  15104. t1 = A.Trace$parseFirefox(trace);
  15105. return t1;
  15106. }
  15107. if (B.JSString_methods.contains$1(trace, string$.x3d_____)) {
  15108. t1 = A.Chain_Chain$parse(trace).toTrace$0();
  15109. return t1;
  15110. }
  15111. if (B.JSString_methods.contains$1(trace, $.$get$_friendlyTrace())) {
  15112. t1 = A.Trace$parseFriendly(trace);
  15113. return t1;
  15114. }
  15115. t1 = A.Trace$parseVM(trace);
  15116. return t1;
  15117. } catch (exception) {
  15118. t1 = A.unwrapException(exception);
  15119. if (type$.FormatException._is(t1)) {
  15120. error = t1;
  15121. throw A.wrapException(A.FormatException$(J.get$message$x(error) + "\nStack trace:\n" + trace, null, null));
  15122. } else
  15123. throw exception;
  15124. }
  15125. },
  15126. Trace___parseVM_tearOff(trace) {
  15127. return A.Trace$parseVM(trace);
  15128. },
  15129. Trace$parseVM(trace) {
  15130. var t1 = A.List_List$unmodifiable(A.Trace__parseVM(trace), type$.Frame);
  15131. return new A.Trace(t1, new A._StringStackTrace(trace));
  15132. },
  15133. Trace__parseVM(trace) {
  15134. var $frames,
  15135. t1 = B.JSString_methods.trim$0(trace),
  15136. t2 = $.$get$vmChainGap(),
  15137. t3 = type$.WhereIterable_String,
  15138. lines = new A.WhereIterable(A._setArrayType(A.stringReplaceAllUnchecked(t1, t2, "").split("\n"), type$.JSArray_String), new A.Trace__parseVM_closure(), t3);
  15139. if (!lines.get$iterator(lines).moveNext$0())
  15140. return A._setArrayType([], type$.JSArray_Frame);
  15141. t1 = A.TakeIterable_TakeIterable(lines, lines.get$length(lines) - 1, t3._eval$1("Iterable.E"));
  15142. t1 = A.MappedIterable_MappedIterable(t1, A.frame_Frame___parseVM_tearOff$closure(), A._instanceType(t1)._eval$1("Iterable.E"), type$.Frame);
  15143. $frames = A.List_List$of(t1, true, A._instanceType(t1)._eval$1("Iterable.E"));
  15144. if (!J.endsWith$1$s(lines.get$last(lines), ".da"))
  15145. B.JSArray_methods.add$1($frames, A.Frame_Frame$parseVM(lines.get$last(lines)));
  15146. return $frames;
  15147. },
  15148. Trace$parseV8(trace) {
  15149. var t1 = A.SubListIterable$(A._setArrayType(trace.split("\n"), type$.JSArray_String), 1, null, type$.String).super$Iterable$skipWhile(0, new A.Trace$parseV8_closure()),
  15150. t2 = type$.Frame;
  15151. t2 = A.List_List$unmodifiable(A.MappedIterable_MappedIterable(t1, A.frame_Frame___parseV8_tearOff$closure(), t1.$ti._eval$1("Iterable.E"), t2), t2);
  15152. return new A.Trace(t2, new A._StringStackTrace(trace));
  15153. },
  15154. Trace$parseJSCore(trace) {
  15155. var t1 = A.List_List$unmodifiable(new A.MappedIterable(new A.WhereIterable(A._setArrayType(trace.split("\n"), type$.JSArray_String), new A.Trace$parseJSCore_closure(), type$.WhereIterable_String), A.frame_Frame___parseV8_tearOff$closure(), type$.MappedIterable_String_Frame), type$.Frame);
  15156. return new A.Trace(t1, new A._StringStackTrace(trace));
  15157. },
  15158. Trace$parseFirefox(trace) {
  15159. var t1 = A.List_List$unmodifiable(new A.MappedIterable(new A.WhereIterable(A._setArrayType(B.JSString_methods.trim$0(trace).split("\n"), type$.JSArray_String), new A.Trace$parseFirefox_closure(), type$.WhereIterable_String), A.frame_Frame___parseFirefox_tearOff$closure(), type$.MappedIterable_String_Frame), type$.Frame);
  15160. return new A.Trace(t1, new A._StringStackTrace(trace));
  15161. },
  15162. Trace___parseFriendly_tearOff(trace) {
  15163. return A.Trace$parseFriendly(trace);
  15164. },
  15165. Trace$parseFriendly(trace) {
  15166. var t1 = trace.length === 0 ? A._setArrayType([], type$.JSArray_Frame) : new A.MappedIterable(new A.WhereIterable(A._setArrayType(B.JSString_methods.trim$0(trace).split("\n"), type$.JSArray_String), new A.Trace$parseFriendly_closure(), type$.WhereIterable_String), A.frame_Frame___parseFriendly_tearOff$closure(), type$.MappedIterable_String_Frame);
  15167. t1 = A.List_List$unmodifiable(t1, type$.Frame);
  15168. return new A.Trace(t1, new A._StringStackTrace(trace));
  15169. },
  15170. Trace$($frames, original) {
  15171. var t1 = A.List_List$unmodifiable($frames, type$.Frame);
  15172. return new A.Trace(t1, new A._StringStackTrace(original == null ? "" : original));
  15173. },
  15174. Trace: function Trace(t0, t1) {
  15175. this.frames = t0;
  15176. this.original = t1;
  15177. },
  15178. Trace_Trace$from_closure: function Trace_Trace$from_closure(t0) {
  15179. this.trace = t0;
  15180. },
  15181. Trace__parseVM_closure: function Trace__parseVM_closure() {
  15182. },
  15183. Trace$parseV8_closure: function Trace$parseV8_closure() {
  15184. },
  15185. Trace$parseJSCore_closure: function Trace$parseJSCore_closure() {
  15186. },
  15187. Trace$parseFirefox_closure: function Trace$parseFirefox_closure() {
  15188. },
  15189. Trace$parseFriendly_closure: function Trace$parseFriendly_closure() {
  15190. },
  15191. Trace_terse_closure: function Trace_terse_closure() {
  15192. },
  15193. Trace_foldFrames_closure: function Trace_foldFrames_closure(t0) {
  15194. this.oldPredicate = t0;
  15195. },
  15196. Trace_foldFrames_closure0: function Trace_foldFrames_closure0(t0) {
  15197. this._box_0 = t0;
  15198. },
  15199. Trace_toString_closure0: function Trace_toString_closure0() {
  15200. },
  15201. Trace_toString_closure: function Trace_toString_closure(t0) {
  15202. this.longest = t0;
  15203. },
  15204. UnparsedFrame: function UnparsedFrame(t0, t1) {
  15205. this.uri = t0;
  15206. this.member = t1;
  15207. },
  15208. TransformByHandlers_transformByHandlers(_this, onData, onDone, $S, $T) {
  15209. var _null = null, t1 = {},
  15210. controller = A.StreamController_StreamController(_null, _null, _null, _null, true, $T);
  15211. t1.subscription = null;
  15212. controller.onListen = new A.TransformByHandlers_transformByHandlers_closure(t1, _this, onData, controller, A.instantiate1(A.from_handlers__TransformByHandlers__defaultHandleError$closure(), $T), onDone, $S);
  15213. return controller.get$stream();
  15214. },
  15215. TransformByHandlers__defaultHandleError(error, stackTrace, sink) {
  15216. sink.addError$2(error, stackTrace);
  15217. },
  15218. TransformByHandlers_transformByHandlers_closure: function TransformByHandlers_transformByHandlers_closure(t0, t1, t2, t3, t4, t5, t6) {
  15219. var _ = this;
  15220. _._box_1 = t0;
  15221. _._this = t1;
  15222. _.handleData = t2;
  15223. _.controller = t3;
  15224. _.handleError = t4;
  15225. _.handleDone = t5;
  15226. _.S = t6;
  15227. },
  15228. TransformByHandlers_transformByHandlers__closure: function TransformByHandlers_transformByHandlers__closure(t0, t1, t2) {
  15229. this.handleData = t0;
  15230. this.controller = t1;
  15231. this.S = t2;
  15232. },
  15233. TransformByHandlers_transformByHandlers__closure1: function TransformByHandlers_transformByHandlers__closure1(t0, t1) {
  15234. this.handleError = t0;
  15235. this.controller = t1;
  15236. },
  15237. TransformByHandlers_transformByHandlers__closure0: function TransformByHandlers_transformByHandlers__closure0(t0, t1, t2) {
  15238. this._box_0 = t0;
  15239. this.handleDone = t1;
  15240. this.controller = t2;
  15241. },
  15242. TransformByHandlers_transformByHandlers__closure2: function TransformByHandlers_transformByHandlers__closure2(t0, t1) {
  15243. this._box_1 = t0;
  15244. this._box_0 = t1;
  15245. },
  15246. RateLimit__debounceAggregate(_this, duration, collect, leading, trailing, $T, $S) {
  15247. var t1 = {};
  15248. t1.soFar = t1.timer = null;
  15249. t1.emittedLatestAsLeading = t1.shouldClose = t1.hasPending = false;
  15250. return A.TransformByHandlers_transformByHandlers(_this, new A.RateLimit__debounceAggregate_closure(t1, $S, collect, false, duration, true, $T), new A.RateLimit__debounceAggregate_closure0(t1, true, $S), $T, $S);
  15251. },
  15252. _collect($event, soFar, $T) {
  15253. var t1 = soFar == null ? A._setArrayType([], $T._eval$1("JSArray<0>")) : soFar;
  15254. J.add$1$ax(t1, $event);
  15255. return t1;
  15256. },
  15257. RateLimit__debounceAggregate_closure: function RateLimit__debounceAggregate_closure(t0, t1, t2, t3, t4, t5, t6) {
  15258. var _ = this;
  15259. _._box_0 = t0;
  15260. _.S = t1;
  15261. _.collect = t2;
  15262. _.leading = t3;
  15263. _.duration = t4;
  15264. _.trailing = t5;
  15265. _.T = t6;
  15266. },
  15267. RateLimit__debounceAggregate_closure_emit: function RateLimit__debounceAggregate_closure_emit(t0, t1, t2) {
  15268. this._box_0 = t0;
  15269. this.sink = t1;
  15270. this.S = t2;
  15271. },
  15272. RateLimit__debounceAggregate__closure: function RateLimit__debounceAggregate__closure(t0, t1, t2, t3) {
  15273. var _ = this;
  15274. _._box_0 = t0;
  15275. _.trailing = t1;
  15276. _.emit = t2;
  15277. _.sink = t3;
  15278. },
  15279. RateLimit__debounceAggregate_closure0: function RateLimit__debounceAggregate_closure0(t0, t1, t2) {
  15280. this._box_0 = t0;
  15281. this.trailing = t1;
  15282. this.S = t2;
  15283. },
  15284. StringScannerException$(message, span, source) {
  15285. return new A.StringScannerException(source, message, span);
  15286. },
  15287. StringScannerException: function StringScannerException(t0, t1, t2) {
  15288. this.source = t0;
  15289. this._span_exception$_message = t1;
  15290. this._span = t2;
  15291. },
  15292. LineScanner$(string) {
  15293. return new A.LineScanner(null, string);
  15294. },
  15295. LineScanner: function LineScanner(t0, t1) {
  15296. var _ = this;
  15297. _._line_scanner$_column = _._line_scanner$_line = 0;
  15298. _.sourceUrl = t0;
  15299. _.string = t1;
  15300. _._string_scanner$_position = 0;
  15301. _._lastMatchPosition = _._lastMatch = null;
  15302. },
  15303. SpanScanner$(string, sourceUrl) {
  15304. var t2,
  15305. t1 = A.SourceFile$fromString(string, sourceUrl);
  15306. if (sourceUrl == null)
  15307. t2 = null;
  15308. else
  15309. t2 = typeof sourceUrl == "string" ? A.Uri_parse(sourceUrl) : type$.Uri._as(sourceUrl);
  15310. return new A.SpanScanner(t1, t2, string);
  15311. },
  15312. SpanScanner: function SpanScanner(t0, t1, t2) {
  15313. var _ = this;
  15314. _._sourceFile = t0;
  15315. _.sourceUrl = t1;
  15316. _.string = t2;
  15317. _._string_scanner$_position = 0;
  15318. _._lastMatchPosition = _._lastMatch = null;
  15319. },
  15320. _SpanScannerState: function _SpanScannerState(t0, t1) {
  15321. this._scanner = t0;
  15322. this.position = t1;
  15323. },
  15324. StringScanner$(string, position, sourceUrl) {
  15325. var t1;
  15326. if (sourceUrl == null)
  15327. t1 = null;
  15328. else
  15329. t1 = typeof sourceUrl == "string" ? A.Uri_parse(sourceUrl) : type$.Uri._as(sourceUrl);
  15330. return new A.StringScanner(t1, string);
  15331. },
  15332. StringScanner: function StringScanner(t0, t1) {
  15333. var _ = this;
  15334. _.sourceUrl = t0;
  15335. _.string = t1;
  15336. _._string_scanner$_position = 0;
  15337. _._lastMatchPosition = _._lastMatch = null;
  15338. },
  15339. AsciiGlyphSet: function AsciiGlyphSet() {
  15340. },
  15341. UnicodeGlyphSet: function UnicodeGlyphSet() {
  15342. },
  15343. Tuple2: function Tuple2(t0, t1, t2) {
  15344. this.item1 = t0;
  15345. this.item2 = t1;
  15346. this.$ti = t2;
  15347. },
  15348. Tuple3: function Tuple3(t0, t1, t2, t3) {
  15349. var _ = this;
  15350. _.item1 = t0;
  15351. _.item2 = t1;
  15352. _.item3 = t2;
  15353. _.$ti = t3;
  15354. },
  15355. Tuple4: function Tuple4(t0, t1, t2, t3, t4) {
  15356. var _ = this;
  15357. _.item1 = t0;
  15358. _.item2 = t1;
  15359. _.item3 = t2;
  15360. _.item4 = t3;
  15361. _.$ti = t4;
  15362. },
  15363. WatchEvent: function WatchEvent(t0, t1) {
  15364. this.type = t0;
  15365. this.path = t1;
  15366. },
  15367. ChangeType: function ChangeType(t0) {
  15368. this._watch_event$_name = t0;
  15369. },
  15370. AnySelectorVisitor0: function AnySelectorVisitor0() {
  15371. },
  15372. AnySelectorVisitor_visitComplexSelector_closure0: function AnySelectorVisitor_visitComplexSelector_closure0(t0) {
  15373. this.$this = t0;
  15374. },
  15375. AnySelectorVisitor_visitCompoundSelector_closure0: function AnySelectorVisitor_visitCompoundSelector_closure0(t0) {
  15376. this.$this = t0;
  15377. },
  15378. SupportsAnything0: function SupportsAnything0(t0, t1) {
  15379. this.contents = t0;
  15380. this.span = t1;
  15381. },
  15382. Argument0: function Argument0(t0, t1, t2) {
  15383. this.name = t0;
  15384. this.defaultValue = t1;
  15385. this.span = t2;
  15386. },
  15387. ArgumentDeclaration_ArgumentDeclaration$parse0(contents, url) {
  15388. return A.ScssParser$0(contents, null, url).parseArgumentDeclaration$0();
  15389. },
  15390. ArgumentDeclaration0: function ArgumentDeclaration0(t0, t1, t2) {
  15391. this.$arguments = t0;
  15392. this.restArgument = t1;
  15393. this.span = t2;
  15394. },
  15395. ArgumentDeclaration_verify_closure1: function ArgumentDeclaration_verify_closure1() {
  15396. },
  15397. ArgumentDeclaration_verify_closure2: function ArgumentDeclaration_verify_closure2() {
  15398. },
  15399. ArgumentInvocation$empty0(span) {
  15400. return new A.ArgumentInvocation0(B.List_empty21, B.Map_empty9, null, null, span);
  15401. },
  15402. ArgumentInvocation0: function ArgumentInvocation0(t0, t1, t2, t3, t4) {
  15403. var _ = this;
  15404. _.positional = t0;
  15405. _.named = t1;
  15406. _.rest = t2;
  15407. _.keywordRest = t3;
  15408. _.span = t4;
  15409. },
  15410. argumentListClass_closure: function argumentListClass_closure() {
  15411. },
  15412. argumentListClass__closure: function argumentListClass__closure() {
  15413. },
  15414. argumentListClass__closure0: function argumentListClass__closure0() {
  15415. },
  15416. SassArgumentList$0(contents, keywords, separator) {
  15417. var t1 = type$.Value_2;
  15418. t1 = new A.SassArgumentList0(A.ConstantMap_ConstantMap$from(keywords, type$.String, t1), A.List_List$unmodifiable(contents, t1), separator, false);
  15419. t1.SassList$3$brackets0(contents, separator, false);
  15420. return t1;
  15421. },
  15422. SassArgumentList0: function SassArgumentList0(t0, t1, t2, t3) {
  15423. var _ = this;
  15424. _._argument_list$_keywords = t0;
  15425. _._argument_list$_wereKeywordsAccessed = false;
  15426. _._list1$_contents = t1;
  15427. _._list1$_separator = t2;
  15428. _._list1$_hasBrackets = t3;
  15429. },
  15430. JSArray1: function JSArray1() {
  15431. },
  15432. AsyncImporter0: function AsyncImporter0() {
  15433. },
  15434. NodeToDartAsyncImporter: function NodeToDartAsyncImporter(t0, t1) {
  15435. this._async0$_canonicalize = t0;
  15436. this._load = t1;
  15437. },
  15438. AsyncBuiltInCallable$mixin0($name, $arguments, callback, url) {
  15439. return new A.AsyncBuiltInCallable0($name, A.ScssParser$0("@mixin " + $name + "(" + $arguments + ") {", null, url).parseArgumentDeclaration$0(), new A.AsyncBuiltInCallable$mixin_closure0(callback));
  15440. },
  15441. AsyncBuiltInCallable0: function AsyncBuiltInCallable0(t0, t1, t2) {
  15442. this.name = t0;
  15443. this._async_built_in0$_arguments = t1;
  15444. this._async_built_in0$_callback = t2;
  15445. },
  15446. AsyncBuiltInCallable$mixin_closure0: function AsyncBuiltInCallable$mixin_closure0(t0) {
  15447. this.callback = t0;
  15448. },
  15449. compileAsync0(path, charset, functions, importCache, indentWidth, lineFeed, logger, nodeImporter, quietDeps, sourceMap, style, syntax, useSpaces, verbose) {
  15450. var $async$goto = 0,
  15451. $async$completer = A._makeAsyncAwaitCompleter(type$.CompileResult_2),
  15452. $async$returnValue, terseLogger, t1, t2, t3, t4, t0, stylesheet, result;
  15453. var $async$compileAsync0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  15454. if ($async$errorCode === 1)
  15455. return A._asyncRethrow($async$result, $async$completer);
  15456. while (true)
  15457. switch ($async$goto) {
  15458. case 0:
  15459. // Function start
  15460. if (!verbose) {
  15461. terseLogger = new A.TerseLogger0(A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.int), logger);
  15462. logger = terseLogger;
  15463. } else
  15464. terseLogger = null;
  15465. t1 = nodeImporter == null;
  15466. if (t1)
  15467. t2 = syntax == null || syntax === A.Syntax_forPath0(path);
  15468. else
  15469. t2 = false;
  15470. $async$goto = t2 ? 3 : 5;
  15471. break;
  15472. case 3:
  15473. // then
  15474. if (importCache == null)
  15475. importCache = A.AsyncImportCache$none(logger);
  15476. t2 = A.absolute(".", null, null, null, null, null, null, null, null, null, null, null, null, null, null);
  15477. if (J.$eq$(J.get$platform$x(self.process), "win32") || J.$eq$(J.get$platform$x(self.process), "darwin")) {
  15478. t3 = $.$get$context();
  15479. t4 = A._realCasePath0(A.absolute(t3.normalize$1(path), null, null, null, null, null, null, null, null, null, null, null, null, null, null));
  15480. t0 = t4;
  15481. t4 = t3;
  15482. t3 = t0;
  15483. } else {
  15484. t3 = $.$get$context();
  15485. t4 = t3.canonicalize$1(0, path);
  15486. t0 = t4;
  15487. t4 = t3;
  15488. t3 = t0;
  15489. }
  15490. $async$goto = 6;
  15491. return A._asyncAwait(importCache.importCanonical$3$originalUrl(new A.FilesystemImporter0(t2), t4.toUri$1(t3), t4.toUri$1(path)), $async$compileAsync0);
  15492. case 6:
  15493. // returning from await.
  15494. t4 = $async$result;
  15495. t4.toString;
  15496. stylesheet = t4;
  15497. // goto join
  15498. $async$goto = 4;
  15499. break;
  15500. case 5:
  15501. // else
  15502. t2 = A.readFile0(path);
  15503. t3 = syntax == null ? A.Syntax_forPath0(path) : syntax;
  15504. stylesheet = A.Stylesheet_Stylesheet$parse0(t2, t3, logger, $.$get$context().toUri$1(path));
  15505. case 4:
  15506. // join
  15507. $async$goto = 7;
  15508. return A._asyncAwait(A._compileStylesheet2(stylesheet, logger, importCache, nodeImporter, new A.FilesystemImporter0(A.absolute(".", null, null, null, null, null, null, null, null, null, null, null, null, null, null)), functions, style, useSpaces, indentWidth, lineFeed, quietDeps, sourceMap, charset), $async$compileAsync0);
  15509. case 7:
  15510. // returning from await.
  15511. result = $async$result;
  15512. if (terseLogger != null)
  15513. terseLogger.summarize$1$node(!t1);
  15514. $async$returnValue = result;
  15515. // goto return
  15516. $async$goto = 1;
  15517. break;
  15518. case 1:
  15519. // return
  15520. return A._asyncReturn($async$returnValue, $async$completer);
  15521. }
  15522. });
  15523. return A._asyncStartSync($async$compileAsync0, $async$completer);
  15524. },
  15525. compileStringAsync0(source, charset, functions, importCache, importer, indentWidth, lineFeed, logger, nodeImporter, quietDeps, sourceMap, style, syntax, url, useSpaces, verbose) {
  15526. var $async$goto = 0,
  15527. $async$completer = A._makeAsyncAwaitCompleter(type$.CompileResult_2),
  15528. $async$returnValue, terseLogger, stylesheet, result;
  15529. var $async$compileStringAsync0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  15530. if ($async$errorCode === 1)
  15531. return A._asyncRethrow($async$result, $async$completer);
  15532. while (true)
  15533. switch ($async$goto) {
  15534. case 0:
  15535. // Function start
  15536. if (!verbose) {
  15537. terseLogger = new A.TerseLogger0(A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.int), logger);
  15538. logger = terseLogger;
  15539. } else
  15540. terseLogger = null;
  15541. stylesheet = A.Stylesheet_Stylesheet$parse0(source, syntax == null ? B.Syntax_SCSS_scss0 : syntax, logger, url);
  15542. $async$goto = 3;
  15543. return A._asyncAwait(A._compileStylesheet2(stylesheet, logger, importCache, nodeImporter, importer == null ? new A.FilesystemImporter0(A.absolute(".", null, null, null, null, null, null, null, null, null, null, null, null, null, null)) : importer, functions, style, useSpaces, indentWidth, lineFeed, quietDeps, sourceMap, charset), $async$compileStringAsync0);
  15544. case 3:
  15545. // returning from await.
  15546. result = $async$result;
  15547. if (terseLogger != null)
  15548. terseLogger.summarize$1$node(nodeImporter != null);
  15549. $async$returnValue = result;
  15550. // goto return
  15551. $async$goto = 1;
  15552. break;
  15553. case 1:
  15554. // return
  15555. return A._asyncReturn($async$returnValue, $async$completer);
  15556. }
  15557. });
  15558. return A._asyncStartSync($async$compileStringAsync0, $async$completer);
  15559. },
  15560. _compileStylesheet2(stylesheet, logger, importCache, nodeImporter, importer, functions, style, useSpaces, indentWidth, lineFeed, quietDeps, sourceMap, charset) {
  15561. var $async$goto = 0,
  15562. $async$completer = A._makeAsyncAwaitCompleter(type$.CompileResult_2),
  15563. $async$returnValue, evaluateResult, serializeResult, resultSourceMap;
  15564. var $async$_compileStylesheet2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  15565. if ($async$errorCode === 1)
  15566. return A._asyncRethrow($async$result, $async$completer);
  15567. while (true)
  15568. switch ($async$goto) {
  15569. case 0:
  15570. // Function start
  15571. $async$goto = 3;
  15572. return A._asyncAwait(A._EvaluateVisitor$2(functions, importCache, logger, nodeImporter, quietDeps, sourceMap).run$2(0, importer, stylesheet), $async$_compileStylesheet2);
  15573. case 3:
  15574. // returning from await.
  15575. evaluateResult = $async$result;
  15576. serializeResult = A.serialize0(evaluateResult.stylesheet, charset, indentWidth, false, lineFeed, sourceMap, style, useSpaces);
  15577. resultSourceMap = serializeResult.sourceMap;
  15578. if (resultSourceMap != null && importCache != null)
  15579. A.mapInPlace0(resultSourceMap.urls, new A._compileStylesheet_closure2(stylesheet, importCache));
  15580. $async$returnValue = new A.CompileResult0(evaluateResult, serializeResult);
  15581. // goto return
  15582. $async$goto = 1;
  15583. break;
  15584. case 1:
  15585. // return
  15586. return A._asyncReturn($async$returnValue, $async$completer);
  15587. }
  15588. });
  15589. return A._asyncStartSync($async$_compileStylesheet2, $async$completer);
  15590. },
  15591. _compileStylesheet_closure2: function _compileStylesheet_closure2(t0, t1) {
  15592. this.stylesheet = t0;
  15593. this.importCache = t1;
  15594. },
  15595. AsyncEnvironment$0() {
  15596. var t1 = type$.String,
  15597. t2 = type$.Module_AsyncCallable_2,
  15598. t3 = type$.AstNode_2,
  15599. t4 = type$.int,
  15600. t5 = type$.AsyncCallable_2,
  15601. t6 = type$.JSArray_Map_String_AsyncCallable_2;
  15602. return new A.AsyncEnvironment0(A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), A.LinkedHashMap_LinkedHashMap$_empty(t1, t3), A.LinkedHashMap_LinkedHashMap$_empty(t2, t3), A.LinkedHashMap_LinkedHashMap$_empty(t2, t3), null, null, A._setArrayType([], type$.JSArray_Module_AsyncCallable_2), A._setArrayType([A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Value_2)], type$.JSArray_Map_String_Value_2), A._setArrayType([A.LinkedHashMap_LinkedHashMap$_empty(t1, t3)], type$.JSArray_Map_String_AstNode_2), A.LinkedHashMap_LinkedHashMap$_empty(t1, t4), A._setArrayType([A.LinkedHashMap_LinkedHashMap$_empty(t1, t5)], t6), A.LinkedHashMap_LinkedHashMap$_empty(t1, t4), A._setArrayType([A.LinkedHashMap_LinkedHashMap$_empty(t1, t5)], t6), A.LinkedHashMap_LinkedHashMap$_empty(t1, t4), null);
  15603. },
  15604. AsyncEnvironment$_0(_modules, _namespaceNodes, _globalModules, _importedModules, _forwardedModules, _nestedForwardedModules, _allModules, _variables, _variableNodes, _functions, _mixins, _content) {
  15605. var t1 = type$.String,
  15606. t2 = type$.int;
  15607. return new A.AsyncEnvironment0(_modules, _namespaceNodes, _globalModules, _importedModules, _forwardedModules, _nestedForwardedModules, _allModules, _variables, _variableNodes, A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _functions, A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _mixins, A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _content);
  15608. },
  15609. _EnvironmentModule__EnvironmentModule2(environment, css, extensionStore, forwarded) {
  15610. var t1, t2, t3, t4, t5, t6;
  15611. if (forwarded == null)
  15612. forwarded = B.Set_empty5;
  15613. t1 = A._EnvironmentModule__makeModulesByVariable2(forwarded);
  15614. t2 = A._EnvironmentModule__memberMap2(B.JSArray_methods.get$first(environment._async_environment0$_variables), forwarded.map$1$1(0, new A._EnvironmentModule__EnvironmentModule_closure17(), type$.Map_String_Value_2), type$.Value_2);
  15615. t3 = A._EnvironmentModule__memberMap2(B.JSArray_methods.get$first(environment._async_environment0$_variableNodes), forwarded.map$1$1(0, new A._EnvironmentModule__EnvironmentModule_closure18(), type$.Map_String_AstNode_2), type$.AstNode_2);
  15616. t4 = type$.Map_String_AsyncCallable_2;
  15617. t5 = type$.AsyncCallable_2;
  15618. t6 = A._EnvironmentModule__memberMap2(B.JSArray_methods.get$first(environment._async_environment0$_functions), forwarded.map$1$1(0, new A._EnvironmentModule__EnvironmentModule_closure19(), t4), t5);
  15619. t5 = A._EnvironmentModule__memberMap2(B.JSArray_methods.get$first(environment._async_environment0$_mixins), forwarded.map$1$1(0, new A._EnvironmentModule__EnvironmentModule_closure20(), t4), t5);
  15620. t4 = J.get$isNotEmpty$asx(css.get$children(css)) || B.JSArray_methods.any$1(environment._async_environment0$_allModules, new A._EnvironmentModule__EnvironmentModule_closure21());
  15621. return A._EnvironmentModule$_2(environment, css, extensionStore, t1, t2, t3, t6, t5, t4, !extensionStore.get$isEmpty(extensionStore) || B.JSArray_methods.any$1(environment._async_environment0$_allModules, new A._EnvironmentModule__EnvironmentModule_closure22()));
  15622. },
  15623. _EnvironmentModule__makeModulesByVariable2(forwarded) {
  15624. var modulesByVariable, t1, t2, t3, t4, t5;
  15625. if (forwarded.get$isEmpty(forwarded))
  15626. return B.Map_empty10;
  15627. modulesByVariable = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.Module_AsyncCallable_2);
  15628. for (t1 = forwarded.get$iterator(forwarded); t1.moveNext$0();) {
  15629. t2 = t1.get$current(t1);
  15630. if (t2 instanceof A._EnvironmentModule2) {
  15631. for (t3 = t2._async_environment0$_modulesByVariable, t3 = t3.get$values(t3), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  15632. t4 = t3.get$current(t3);
  15633. t5 = t4.get$variables();
  15634. A.setAll0(modulesByVariable, t5.get$keys(t5), t4);
  15635. }
  15636. A.setAll0(modulesByVariable, J.get$keys$z(B.JSArray_methods.get$first(t2._async_environment0$_environment._async_environment0$_variables)), t2);
  15637. } else {
  15638. t3 = t2.get$variables();
  15639. A.setAll0(modulesByVariable, t3.get$keys(t3), t2);
  15640. }
  15641. }
  15642. return modulesByVariable;
  15643. },
  15644. _EnvironmentModule__memberMap2(localMap, otherMaps, $V) {
  15645. var t1, t2, t3;
  15646. localMap = new A.PublicMemberMapView0(localMap, $V._eval$1("PublicMemberMapView0<0>"));
  15647. if (otherMaps.get$isEmpty(otherMaps))
  15648. return localMap;
  15649. t1 = A._setArrayType([], $V._eval$1("JSArray<Map<String,0>>"));
  15650. for (t2 = otherMaps.get$iterator(otherMaps); t2.moveNext$0();) {
  15651. t3 = t2.get$current(t2);
  15652. if (t3.get$isNotEmpty(t3))
  15653. t1.push(t3);
  15654. }
  15655. t1.push(localMap);
  15656. if (t1.length === 1)
  15657. return localMap;
  15658. return A.MergedMapView$0(t1, type$.String, $V);
  15659. },
  15660. _EnvironmentModule$_2(_environment, css, extensionStore, _modulesByVariable, variables, variableNodes, functions, mixins, transitivelyContainsCss, transitivelyContainsExtensions) {
  15661. return new A._EnvironmentModule2(_environment._async_environment0$_allModules, variables, variableNodes, functions, mixins, extensionStore, css, transitivelyContainsCss, transitivelyContainsExtensions, _environment, _modulesByVariable);
  15662. },
  15663. AsyncEnvironment0: function AsyncEnvironment0(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14) {
  15664. var _ = this;
  15665. _._async_environment0$_modules = t0;
  15666. _._async_environment0$_namespaceNodes = t1;
  15667. _._async_environment0$_globalModules = t2;
  15668. _._async_environment0$_importedModules = t3;
  15669. _._async_environment0$_forwardedModules = t4;
  15670. _._async_environment0$_nestedForwardedModules = t5;
  15671. _._async_environment0$_allModules = t6;
  15672. _._async_environment0$_variables = t7;
  15673. _._async_environment0$_variableNodes = t8;
  15674. _._async_environment0$_variableIndices = t9;
  15675. _._async_environment0$_functions = t10;
  15676. _._async_environment0$_functionIndices = t11;
  15677. _._async_environment0$_mixins = t12;
  15678. _._async_environment0$_mixinIndices = t13;
  15679. _._async_environment0$_content = t14;
  15680. _._async_environment0$_inMixin = false;
  15681. _._async_environment0$_inSemiGlobalScope = true;
  15682. _._async_environment0$_lastVariableIndex = _._async_environment0$_lastVariableName = null;
  15683. },
  15684. AsyncEnvironment_importForwards_closure2: function AsyncEnvironment_importForwards_closure2() {
  15685. },
  15686. AsyncEnvironment_importForwards_closure3: function AsyncEnvironment_importForwards_closure3() {
  15687. },
  15688. AsyncEnvironment_importForwards_closure4: function AsyncEnvironment_importForwards_closure4() {
  15689. },
  15690. AsyncEnvironment__getVariableFromGlobalModule_closure0: function AsyncEnvironment__getVariableFromGlobalModule_closure0(t0) {
  15691. this.name = t0;
  15692. },
  15693. AsyncEnvironment_setVariable_closure2: function AsyncEnvironment_setVariable_closure2(t0, t1) {
  15694. this.$this = t0;
  15695. this.name = t1;
  15696. },
  15697. AsyncEnvironment_setVariable_closure3: function AsyncEnvironment_setVariable_closure3(t0) {
  15698. this.name = t0;
  15699. },
  15700. AsyncEnvironment_setVariable_closure4: function AsyncEnvironment_setVariable_closure4(t0, t1) {
  15701. this.$this = t0;
  15702. this.name = t1;
  15703. },
  15704. AsyncEnvironment__getFunctionFromGlobalModule_closure0: function AsyncEnvironment__getFunctionFromGlobalModule_closure0(t0) {
  15705. this.name = t0;
  15706. },
  15707. AsyncEnvironment__getMixinFromGlobalModule_closure0: function AsyncEnvironment__getMixinFromGlobalModule_closure0(t0) {
  15708. this.name = t0;
  15709. },
  15710. AsyncEnvironment_toModule_closure0: function AsyncEnvironment_toModule_closure0() {
  15711. },
  15712. AsyncEnvironment_toDummyModule_closure0: function AsyncEnvironment_toDummyModule_closure0() {
  15713. },
  15714. AsyncEnvironment__fromOneModule_closure0: function AsyncEnvironment__fromOneModule_closure0(t0, t1) {
  15715. this.callback = t0;
  15716. this.T = t1;
  15717. },
  15718. AsyncEnvironment__fromOneModule__closure0: function AsyncEnvironment__fromOneModule__closure0(t0, t1) {
  15719. this.entry = t0;
  15720. this.T = t1;
  15721. },
  15722. _EnvironmentModule2: function _EnvironmentModule2(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10) {
  15723. var _ = this;
  15724. _.upstream = t0;
  15725. _.variables = t1;
  15726. _.variableNodes = t2;
  15727. _.functions = t3;
  15728. _.mixins = t4;
  15729. _.extensionStore = t5;
  15730. _.css = t6;
  15731. _.transitivelyContainsCss = t7;
  15732. _.transitivelyContainsExtensions = t8;
  15733. _._async_environment0$_environment = t9;
  15734. _._async_environment0$_modulesByVariable = t10;
  15735. },
  15736. _EnvironmentModule__EnvironmentModule_closure17: function _EnvironmentModule__EnvironmentModule_closure17() {
  15737. },
  15738. _EnvironmentModule__EnvironmentModule_closure18: function _EnvironmentModule__EnvironmentModule_closure18() {
  15739. },
  15740. _EnvironmentModule__EnvironmentModule_closure19: function _EnvironmentModule__EnvironmentModule_closure19() {
  15741. },
  15742. _EnvironmentModule__EnvironmentModule_closure20: function _EnvironmentModule__EnvironmentModule_closure20() {
  15743. },
  15744. _EnvironmentModule__EnvironmentModule_closure21: function _EnvironmentModule__EnvironmentModule_closure21() {
  15745. },
  15746. _EnvironmentModule__EnvironmentModule_closure22: function _EnvironmentModule__EnvironmentModule_closure22() {
  15747. },
  15748. _EvaluateVisitor$2(functions, importCache, logger, nodeImporter, quietDeps, sourceMap) {
  15749. var t4,
  15750. t1 = type$.Uri,
  15751. t2 = type$.Module_AsyncCallable_2,
  15752. t3 = A._setArrayType([], type$.JSArray_Tuple2_String_AstNode_2);
  15753. if (nodeImporter == null)
  15754. t4 = importCache == null ? A.AsyncImportCache$none(logger) : importCache;
  15755. else
  15756. t4 = null;
  15757. t1 = new A._EvaluateVisitor2(t4, nodeImporter, A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.AsyncCallable_2), A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Configuration_2), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.AstNode_2), logger, A.LinkedHashSet_LinkedHashSet$_empty(type$.Tuple2_String_SourceSpan), quietDeps, sourceMap, A.AsyncEnvironment$0(), A.LinkedHashSet_LinkedHashSet$_empty(t1), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.nullable_AstNode_2), t3, B.Configuration_Map_empty_null0);
  15758. t1._EvaluateVisitor$6$functions$importCache$logger$nodeImporter$quietDeps$sourceMap2(functions, importCache, logger, nodeImporter, quietDeps, sourceMap);
  15759. return t1;
  15760. },
  15761. _EvaluateVisitor2: function _EvaluateVisitor2(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15) {
  15762. var _ = this;
  15763. _._async_evaluate0$_importCache = t0;
  15764. _._async_evaluate0$_nodeImporter = t1;
  15765. _._async_evaluate0$_builtInFunctions = t2;
  15766. _._async_evaluate0$_builtInModules = t3;
  15767. _._async_evaluate0$_modules = t4;
  15768. _._async_evaluate0$_moduleConfigurations = t5;
  15769. _._async_evaluate0$_moduleNodes = t6;
  15770. _._async_evaluate0$_logger = t7;
  15771. _._async_evaluate0$_warningsEmitted = t8;
  15772. _._async_evaluate0$_quietDeps = t9;
  15773. _._async_evaluate0$_sourceMap = t10;
  15774. _._async_evaluate0$_environment = t11;
  15775. _._async_evaluate0$_declarationName = _._async_evaluate0$__parent = _._async_evaluate0$_mediaQuerySources = _._async_evaluate0$_mediaQueries = _._async_evaluate0$_styleRuleIgnoringAtRoot = null;
  15776. _._async_evaluate0$_member = "root stylesheet";
  15777. _._async_evaluate0$_importSpan = _._async_evaluate0$_callableNode = _._async_evaluate0$_currentCallable = null;
  15778. _._async_evaluate0$_inSupportsDeclaration = _._async_evaluate0$_inKeyframes = _._async_evaluate0$_atRootExcludingStyleRule = _._async_evaluate0$_inUnknownAtRule = _._async_evaluate0$_inFunction = false;
  15779. _._async_evaluate0$_loadedUrls = t12;
  15780. _._async_evaluate0$_activeModules = t13;
  15781. _._async_evaluate0$_stack = t14;
  15782. _._async_evaluate0$_importer = null;
  15783. _._async_evaluate0$_inDependency = false;
  15784. _._async_evaluate0$__extensionStore = _._async_evaluate0$_outOfOrderImports = _._async_evaluate0$__endOfImports = _._async_evaluate0$__root = _._async_evaluate0$__stylesheet = null;
  15785. _._async_evaluate0$_configuration = t15;
  15786. },
  15787. _EvaluateVisitor_closure29: function _EvaluateVisitor_closure29(t0) {
  15788. this.$this = t0;
  15789. },
  15790. _EvaluateVisitor_closure30: function _EvaluateVisitor_closure30(t0) {
  15791. this.$this = t0;
  15792. },
  15793. _EvaluateVisitor_closure31: function _EvaluateVisitor_closure31(t0) {
  15794. this.$this = t0;
  15795. },
  15796. _EvaluateVisitor_closure32: function _EvaluateVisitor_closure32(t0) {
  15797. this.$this = t0;
  15798. },
  15799. _EvaluateVisitor_closure33: function _EvaluateVisitor_closure33(t0) {
  15800. this.$this = t0;
  15801. },
  15802. _EvaluateVisitor_closure34: function _EvaluateVisitor_closure34(t0) {
  15803. this.$this = t0;
  15804. },
  15805. _EvaluateVisitor_closure35: function _EvaluateVisitor_closure35(t0) {
  15806. this.$this = t0;
  15807. },
  15808. _EvaluateVisitor_closure36: function _EvaluateVisitor_closure36(t0) {
  15809. this.$this = t0;
  15810. },
  15811. _EvaluateVisitor__closure10: function _EvaluateVisitor__closure10(t0, t1, t2) {
  15812. this.$this = t0;
  15813. this.name = t1;
  15814. this.module = t2;
  15815. },
  15816. _EvaluateVisitor_closure37: function _EvaluateVisitor_closure37(t0) {
  15817. this.$this = t0;
  15818. },
  15819. _EvaluateVisitor_closure38: function _EvaluateVisitor_closure38(t0) {
  15820. this.$this = t0;
  15821. },
  15822. _EvaluateVisitor__closure8: function _EvaluateVisitor__closure8(t0, t1, t2) {
  15823. this.values = t0;
  15824. this.span = t1;
  15825. this.callableNode = t2;
  15826. },
  15827. _EvaluateVisitor__closure9: function _EvaluateVisitor__closure9(t0) {
  15828. this.$this = t0;
  15829. },
  15830. _EvaluateVisitor_run_closure2: function _EvaluateVisitor_run_closure2(t0, t1, t2) {
  15831. this.$this = t0;
  15832. this.node = t1;
  15833. this.importer = t2;
  15834. },
  15835. _EvaluateVisitor__loadModule_closure5: function _EvaluateVisitor__loadModule_closure5(t0, t1) {
  15836. this.callback = t0;
  15837. this.builtInModule = t1;
  15838. },
  15839. _EvaluateVisitor__loadModule_closure6: function _EvaluateVisitor__loadModule_closure6(t0, t1, t2, t3, t4, t5, t6) {
  15840. var _ = this;
  15841. _.$this = t0;
  15842. _.url = t1;
  15843. _.nodeWithSpan = t2;
  15844. _.baseUrl = t3;
  15845. _.namesInErrors = t4;
  15846. _.configuration = t5;
  15847. _.callback = t6;
  15848. },
  15849. _EvaluateVisitor__loadModule__closure2: function _EvaluateVisitor__loadModule__closure2(t0, t1) {
  15850. this.$this = t0;
  15851. this.message = t1;
  15852. },
  15853. _EvaluateVisitor__execute_closure2: function _EvaluateVisitor__execute_closure2(t0, t1, t2, t3, t4, t5) {
  15854. var _ = this;
  15855. _.$this = t0;
  15856. _.importer = t1;
  15857. _.stylesheet = t2;
  15858. _.extensionStore = t3;
  15859. _.configuration = t4;
  15860. _.css = t5;
  15861. },
  15862. _EvaluateVisitor__combineCss_closure8: function _EvaluateVisitor__combineCss_closure8() {
  15863. },
  15864. _EvaluateVisitor__combineCss_closure9: function _EvaluateVisitor__combineCss_closure9(t0) {
  15865. this.selectors = t0;
  15866. },
  15867. _EvaluateVisitor__combineCss_closure10: function _EvaluateVisitor__combineCss_closure10() {
  15868. },
  15869. _EvaluateVisitor__extendModules_closure5: function _EvaluateVisitor__extendModules_closure5(t0) {
  15870. this.originalSelectors = t0;
  15871. },
  15872. _EvaluateVisitor__extendModules_closure6: function _EvaluateVisitor__extendModules_closure6() {
  15873. },
  15874. _EvaluateVisitor__topologicalModules_visitModule2: function _EvaluateVisitor__topologicalModules_visitModule2(t0, t1) {
  15875. this.seen = t0;
  15876. this.sorted = t1;
  15877. },
  15878. _EvaluateVisitor_visitAtRootRule_closure8: function _EvaluateVisitor_visitAtRootRule_closure8(t0, t1) {
  15879. this.$this = t0;
  15880. this.resolved = t1;
  15881. },
  15882. _EvaluateVisitor_visitAtRootRule_closure9: function _EvaluateVisitor_visitAtRootRule_closure9(t0, t1) {
  15883. this.$this = t0;
  15884. this.node = t1;
  15885. },
  15886. _EvaluateVisitor_visitAtRootRule_closure10: function _EvaluateVisitor_visitAtRootRule_closure10(t0, t1) {
  15887. this.$this = t0;
  15888. this.node = t1;
  15889. },
  15890. _EvaluateVisitor__scopeForAtRoot_closure17: function _EvaluateVisitor__scopeForAtRoot_closure17(t0, t1, t2) {
  15891. this.$this = t0;
  15892. this.newParent = t1;
  15893. this.node = t2;
  15894. },
  15895. _EvaluateVisitor__scopeForAtRoot_closure18: function _EvaluateVisitor__scopeForAtRoot_closure18(t0, t1) {
  15896. this.$this = t0;
  15897. this.innerScope = t1;
  15898. },
  15899. _EvaluateVisitor__scopeForAtRoot_closure19: function _EvaluateVisitor__scopeForAtRoot_closure19(t0, t1) {
  15900. this.$this = t0;
  15901. this.innerScope = t1;
  15902. },
  15903. _EvaluateVisitor__scopeForAtRoot__closure2: function _EvaluateVisitor__scopeForAtRoot__closure2(t0, t1) {
  15904. this.innerScope = t0;
  15905. this.callback = t1;
  15906. },
  15907. _EvaluateVisitor__scopeForAtRoot_closure20: function _EvaluateVisitor__scopeForAtRoot_closure20(t0, t1) {
  15908. this.$this = t0;
  15909. this.innerScope = t1;
  15910. },
  15911. _EvaluateVisitor__scopeForAtRoot_closure21: function _EvaluateVisitor__scopeForAtRoot_closure21() {
  15912. },
  15913. _EvaluateVisitor__scopeForAtRoot_closure22: function _EvaluateVisitor__scopeForAtRoot_closure22(t0, t1) {
  15914. this.$this = t0;
  15915. this.innerScope = t1;
  15916. },
  15917. _EvaluateVisitor_visitContentRule_closure2: function _EvaluateVisitor_visitContentRule_closure2(t0, t1) {
  15918. this.$this = t0;
  15919. this.content = t1;
  15920. },
  15921. _EvaluateVisitor_visitDeclaration_closure5: function _EvaluateVisitor_visitDeclaration_closure5(t0) {
  15922. this.$this = t0;
  15923. },
  15924. _EvaluateVisitor_visitDeclaration_closure6: function _EvaluateVisitor_visitDeclaration_closure6(t0, t1) {
  15925. this.$this = t0;
  15926. this.children = t1;
  15927. },
  15928. _EvaluateVisitor_visitEachRule_closure8: function _EvaluateVisitor_visitEachRule_closure8(t0, t1, t2) {
  15929. this.$this = t0;
  15930. this.node = t1;
  15931. this.nodeWithSpan = t2;
  15932. },
  15933. _EvaluateVisitor_visitEachRule_closure9: function _EvaluateVisitor_visitEachRule_closure9(t0, t1, t2) {
  15934. this.$this = t0;
  15935. this.node = t1;
  15936. this.nodeWithSpan = t2;
  15937. },
  15938. _EvaluateVisitor_visitEachRule_closure10: function _EvaluateVisitor_visitEachRule_closure10(t0, t1, t2, t3) {
  15939. var _ = this;
  15940. _.$this = t0;
  15941. _.list = t1;
  15942. _.setVariables = t2;
  15943. _.node = t3;
  15944. },
  15945. _EvaluateVisitor_visitEachRule__closure2: function _EvaluateVisitor_visitEachRule__closure2(t0, t1, t2) {
  15946. this.$this = t0;
  15947. this.setVariables = t1;
  15948. this.node = t2;
  15949. },
  15950. _EvaluateVisitor_visitEachRule___closure2: function _EvaluateVisitor_visitEachRule___closure2(t0) {
  15951. this.$this = t0;
  15952. },
  15953. _EvaluateVisitor_visitExtendRule_closure2: function _EvaluateVisitor_visitExtendRule_closure2(t0, t1) {
  15954. this.$this = t0;
  15955. this.targetText = t1;
  15956. },
  15957. _EvaluateVisitor_visitAtRule_closure8: function _EvaluateVisitor_visitAtRule_closure8(t0) {
  15958. this.$this = t0;
  15959. },
  15960. _EvaluateVisitor_visitAtRule_closure9: function _EvaluateVisitor_visitAtRule_closure9(t0, t1) {
  15961. this.$this = t0;
  15962. this.children = t1;
  15963. },
  15964. _EvaluateVisitor_visitAtRule__closure2: function _EvaluateVisitor_visitAtRule__closure2(t0, t1) {
  15965. this.$this = t0;
  15966. this.children = t1;
  15967. },
  15968. _EvaluateVisitor_visitAtRule_closure10: function _EvaluateVisitor_visitAtRule_closure10() {
  15969. },
  15970. _EvaluateVisitor_visitForRule_closure14: function _EvaluateVisitor_visitForRule_closure14(t0, t1) {
  15971. this.$this = t0;
  15972. this.node = t1;
  15973. },
  15974. _EvaluateVisitor_visitForRule_closure15: function _EvaluateVisitor_visitForRule_closure15(t0, t1) {
  15975. this.$this = t0;
  15976. this.node = t1;
  15977. },
  15978. _EvaluateVisitor_visitForRule_closure16: function _EvaluateVisitor_visitForRule_closure16(t0) {
  15979. this.fromNumber = t0;
  15980. },
  15981. _EvaluateVisitor_visitForRule_closure17: function _EvaluateVisitor_visitForRule_closure17(t0, t1) {
  15982. this.toNumber = t0;
  15983. this.fromNumber = t1;
  15984. },
  15985. _EvaluateVisitor_visitForRule_closure18: function _EvaluateVisitor_visitForRule_closure18(t0, t1, t2, t3, t4, t5) {
  15986. var _ = this;
  15987. _._box_0 = t0;
  15988. _.$this = t1;
  15989. _.node = t2;
  15990. _.from = t3;
  15991. _.direction = t4;
  15992. _.fromNumber = t5;
  15993. },
  15994. _EvaluateVisitor_visitForRule__closure2: function _EvaluateVisitor_visitForRule__closure2(t0) {
  15995. this.$this = t0;
  15996. },
  15997. _EvaluateVisitor_visitForwardRule_closure5: function _EvaluateVisitor_visitForwardRule_closure5(t0, t1) {
  15998. this.$this = t0;
  15999. this.node = t1;
  16000. },
  16001. _EvaluateVisitor_visitForwardRule_closure6: function _EvaluateVisitor_visitForwardRule_closure6(t0, t1) {
  16002. this.$this = t0;
  16003. this.node = t1;
  16004. },
  16005. _EvaluateVisitor_visitIfRule_closure2: function _EvaluateVisitor_visitIfRule_closure2(t0, t1) {
  16006. this._box_0 = t0;
  16007. this.$this = t1;
  16008. },
  16009. _EvaluateVisitor_visitIfRule__closure2: function _EvaluateVisitor_visitIfRule__closure2(t0) {
  16010. this.$this = t0;
  16011. },
  16012. _EvaluateVisitor__visitDynamicImport_closure2: function _EvaluateVisitor__visitDynamicImport_closure2(t0, t1) {
  16013. this.$this = t0;
  16014. this.$import = t1;
  16015. },
  16016. _EvaluateVisitor__visitDynamicImport__closure11: function _EvaluateVisitor__visitDynamicImport__closure11(t0) {
  16017. this.$this = t0;
  16018. },
  16019. _EvaluateVisitor__visitDynamicImport__closure12: function _EvaluateVisitor__visitDynamicImport__closure12() {
  16020. },
  16021. _EvaluateVisitor__visitDynamicImport__closure13: function _EvaluateVisitor__visitDynamicImport__closure13() {
  16022. },
  16023. _EvaluateVisitor__visitDynamicImport__closure14: function _EvaluateVisitor__visitDynamicImport__closure14(t0, t1, t2, t3, t4, t5) {
  16024. var _ = this;
  16025. _.$this = t0;
  16026. _.result = t1;
  16027. _.stylesheet = t2;
  16028. _.loadsUserDefinedModules = t3;
  16029. _.environment = t4;
  16030. _.children = t5;
  16031. },
  16032. _EvaluateVisitor_visitIncludeRule_closure11: function _EvaluateVisitor_visitIncludeRule_closure11(t0, t1) {
  16033. this.$this = t0;
  16034. this.node = t1;
  16035. },
  16036. _EvaluateVisitor_visitIncludeRule_closure12: function _EvaluateVisitor_visitIncludeRule_closure12(t0) {
  16037. this.node = t0;
  16038. },
  16039. _EvaluateVisitor_visitIncludeRule_closure14: function _EvaluateVisitor_visitIncludeRule_closure14(t0) {
  16040. this.$this = t0;
  16041. },
  16042. _EvaluateVisitor_visitIncludeRule_closure13: function _EvaluateVisitor_visitIncludeRule_closure13(t0, t1, t2, t3) {
  16043. var _ = this;
  16044. _.$this = t0;
  16045. _.contentCallable = t1;
  16046. _.mixin = t2;
  16047. _.nodeWithSpan = t3;
  16048. },
  16049. _EvaluateVisitor_visitIncludeRule__closure2: function _EvaluateVisitor_visitIncludeRule__closure2(t0, t1, t2) {
  16050. this.$this = t0;
  16051. this.mixin = t1;
  16052. this.nodeWithSpan = t2;
  16053. },
  16054. _EvaluateVisitor_visitIncludeRule___closure2: function _EvaluateVisitor_visitIncludeRule___closure2(t0, t1, t2) {
  16055. this.$this = t0;
  16056. this.mixin = t1;
  16057. this.nodeWithSpan = t2;
  16058. },
  16059. _EvaluateVisitor_visitIncludeRule____closure2: function _EvaluateVisitor_visitIncludeRule____closure2(t0, t1) {
  16060. this.$this = t0;
  16061. this.statement = t1;
  16062. },
  16063. _EvaluateVisitor_visitMediaRule_closure8: function _EvaluateVisitor_visitMediaRule_closure8(t0, t1) {
  16064. this.$this = t0;
  16065. this.queries = t1;
  16066. },
  16067. _EvaluateVisitor_visitMediaRule_closure9: function _EvaluateVisitor_visitMediaRule_closure9(t0, t1, t2, t3, t4) {
  16068. var _ = this;
  16069. _.$this = t0;
  16070. _.mergedQueries = t1;
  16071. _.queries = t2;
  16072. _.mergedSources = t3;
  16073. _.node = t4;
  16074. },
  16075. _EvaluateVisitor_visitMediaRule__closure2: function _EvaluateVisitor_visitMediaRule__closure2(t0, t1) {
  16076. this.$this = t0;
  16077. this.node = t1;
  16078. },
  16079. _EvaluateVisitor_visitMediaRule___closure2: function _EvaluateVisitor_visitMediaRule___closure2(t0, t1) {
  16080. this.$this = t0;
  16081. this.node = t1;
  16082. },
  16083. _EvaluateVisitor_visitMediaRule_closure10: function _EvaluateVisitor_visitMediaRule_closure10(t0) {
  16084. this.mergedSources = t0;
  16085. },
  16086. _EvaluateVisitor__visitMediaQueries_closure2: function _EvaluateVisitor__visitMediaQueries_closure2(t0, t1) {
  16087. this.$this = t0;
  16088. this.resolved = t1;
  16089. },
  16090. _EvaluateVisitor_visitStyleRule_closure23: function _EvaluateVisitor_visitStyleRule_closure23(t0, t1) {
  16091. this.$this = t0;
  16092. this.selectorText = t1;
  16093. },
  16094. _EvaluateVisitor_visitStyleRule_closure24: function _EvaluateVisitor_visitStyleRule_closure24(t0, t1) {
  16095. this.$this = t0;
  16096. this.node = t1;
  16097. },
  16098. _EvaluateVisitor_visitStyleRule_closure25: function _EvaluateVisitor_visitStyleRule_closure25() {
  16099. },
  16100. _EvaluateVisitor_visitStyleRule_closure26: function _EvaluateVisitor_visitStyleRule_closure26(t0, t1) {
  16101. this.$this = t0;
  16102. this.selectorText = t1;
  16103. },
  16104. _EvaluateVisitor_visitStyleRule_closure27: function _EvaluateVisitor_visitStyleRule_closure27(t0, t1) {
  16105. this._box_0 = t0;
  16106. this.$this = t1;
  16107. },
  16108. _EvaluateVisitor_visitStyleRule_closure28: function _EvaluateVisitor_visitStyleRule_closure28(t0, t1, t2) {
  16109. this.$this = t0;
  16110. this.rule = t1;
  16111. this.node = t2;
  16112. },
  16113. _EvaluateVisitor_visitStyleRule__closure2: function _EvaluateVisitor_visitStyleRule__closure2(t0, t1) {
  16114. this.$this = t0;
  16115. this.node = t1;
  16116. },
  16117. _EvaluateVisitor_visitStyleRule_closure29: function _EvaluateVisitor_visitStyleRule_closure29() {
  16118. },
  16119. _EvaluateVisitor_visitStyleRule_closure30: function _EvaluateVisitor_visitStyleRule_closure30() {
  16120. },
  16121. _EvaluateVisitor_visitSupportsRule_closure5: function _EvaluateVisitor_visitSupportsRule_closure5(t0, t1) {
  16122. this.$this = t0;
  16123. this.node = t1;
  16124. },
  16125. _EvaluateVisitor_visitSupportsRule__closure2: function _EvaluateVisitor_visitSupportsRule__closure2(t0, t1) {
  16126. this.$this = t0;
  16127. this.node = t1;
  16128. },
  16129. _EvaluateVisitor_visitSupportsRule_closure6: function _EvaluateVisitor_visitSupportsRule_closure6() {
  16130. },
  16131. _EvaluateVisitor_visitVariableDeclaration_closure8: function _EvaluateVisitor_visitVariableDeclaration_closure8(t0, t1, t2) {
  16132. this.$this = t0;
  16133. this.node = t1;
  16134. this.override = t2;
  16135. },
  16136. _EvaluateVisitor_visitVariableDeclaration_closure9: function _EvaluateVisitor_visitVariableDeclaration_closure9(t0, t1) {
  16137. this.$this = t0;
  16138. this.node = t1;
  16139. },
  16140. _EvaluateVisitor_visitVariableDeclaration_closure10: function _EvaluateVisitor_visitVariableDeclaration_closure10(t0, t1, t2) {
  16141. this.$this = t0;
  16142. this.node = t1;
  16143. this.value = t2;
  16144. },
  16145. _EvaluateVisitor_visitUseRule_closure2: function _EvaluateVisitor_visitUseRule_closure2(t0, t1) {
  16146. this.$this = t0;
  16147. this.node = t1;
  16148. },
  16149. _EvaluateVisitor_visitWarnRule_closure2: function _EvaluateVisitor_visitWarnRule_closure2(t0, t1) {
  16150. this.$this = t0;
  16151. this.node = t1;
  16152. },
  16153. _EvaluateVisitor_visitWhileRule_closure2: function _EvaluateVisitor_visitWhileRule_closure2(t0, t1) {
  16154. this.$this = t0;
  16155. this.node = t1;
  16156. },
  16157. _EvaluateVisitor_visitWhileRule__closure2: function _EvaluateVisitor_visitWhileRule__closure2(t0) {
  16158. this.$this = t0;
  16159. },
  16160. _EvaluateVisitor_visitBinaryOperationExpression_closure2: function _EvaluateVisitor_visitBinaryOperationExpression_closure2(t0, t1) {
  16161. this.$this = t0;
  16162. this.node = t1;
  16163. },
  16164. _EvaluateVisitor_visitBinaryOperationExpression_closure_recommendation2: function _EvaluateVisitor_visitBinaryOperationExpression_closure_recommendation2() {
  16165. },
  16166. _EvaluateVisitor_visitVariableExpression_closure2: function _EvaluateVisitor_visitVariableExpression_closure2(t0, t1) {
  16167. this.$this = t0;
  16168. this.node = t1;
  16169. },
  16170. _EvaluateVisitor_visitUnaryOperationExpression_closure2: function _EvaluateVisitor_visitUnaryOperationExpression_closure2(t0, t1) {
  16171. this.node = t0;
  16172. this.operand = t1;
  16173. },
  16174. _EvaluateVisitor__visitCalculationValue_closure2: function _EvaluateVisitor__visitCalculationValue_closure2(t0, t1, t2) {
  16175. this.$this = t0;
  16176. this.node = t1;
  16177. this.inMinMax = t2;
  16178. },
  16179. _EvaluateVisitor_visitListExpression_closure2: function _EvaluateVisitor_visitListExpression_closure2(t0) {
  16180. this.$this = t0;
  16181. },
  16182. _EvaluateVisitor_visitFunctionExpression_closure5: function _EvaluateVisitor_visitFunctionExpression_closure5(t0, t1) {
  16183. this.$this = t0;
  16184. this.node = t1;
  16185. },
  16186. _EvaluateVisitor_visitFunctionExpression_closure6: function _EvaluateVisitor_visitFunctionExpression_closure6(t0, t1, t2) {
  16187. this._box_0 = t0;
  16188. this.$this = t1;
  16189. this.node = t2;
  16190. },
  16191. _EvaluateVisitor_visitInterpolatedFunctionExpression_closure2: function _EvaluateVisitor_visitInterpolatedFunctionExpression_closure2(t0, t1, t2) {
  16192. this.$this = t0;
  16193. this.node = t1;
  16194. this.$function = t2;
  16195. },
  16196. _EvaluateVisitor__runUserDefinedCallable_closure2: function _EvaluateVisitor__runUserDefinedCallable_closure2(t0, t1, t2, t3, t4, t5) {
  16197. var _ = this;
  16198. _.$this = t0;
  16199. _.callable = t1;
  16200. _.evaluated = t2;
  16201. _.nodeWithSpan = t3;
  16202. _.run = t4;
  16203. _.V = t5;
  16204. },
  16205. _EvaluateVisitor__runUserDefinedCallable__closure2: function _EvaluateVisitor__runUserDefinedCallable__closure2(t0, t1, t2, t3, t4, t5) {
  16206. var _ = this;
  16207. _.$this = t0;
  16208. _.evaluated = t1;
  16209. _.callable = t2;
  16210. _.nodeWithSpan = t3;
  16211. _.run = t4;
  16212. _.V = t5;
  16213. },
  16214. _EvaluateVisitor__runUserDefinedCallable___closure2: function _EvaluateVisitor__runUserDefinedCallable___closure2(t0, t1, t2, t3, t4, t5) {
  16215. var _ = this;
  16216. _.$this = t0;
  16217. _.evaluated = t1;
  16218. _.callable = t2;
  16219. _.nodeWithSpan = t3;
  16220. _.run = t4;
  16221. _.V = t5;
  16222. },
  16223. _EvaluateVisitor__runUserDefinedCallable____closure2: function _EvaluateVisitor__runUserDefinedCallable____closure2() {
  16224. },
  16225. _EvaluateVisitor__runFunctionCallable_closure2: function _EvaluateVisitor__runFunctionCallable_closure2(t0, t1) {
  16226. this.$this = t0;
  16227. this.callable = t1;
  16228. },
  16229. _EvaluateVisitor__runBuiltInCallable_closure5: function _EvaluateVisitor__runBuiltInCallable_closure5(t0, t1, t2) {
  16230. this.overload = t0;
  16231. this.evaluated = t1;
  16232. this.namedSet = t2;
  16233. },
  16234. _EvaluateVisitor__runBuiltInCallable_closure6: function _EvaluateVisitor__runBuiltInCallable_closure6() {
  16235. },
  16236. _EvaluateVisitor__evaluateArguments_closure11: function _EvaluateVisitor__evaluateArguments_closure11() {
  16237. },
  16238. _EvaluateVisitor__evaluateArguments_closure12: function _EvaluateVisitor__evaluateArguments_closure12(t0, t1) {
  16239. this.$this = t0;
  16240. this.restNodeForSpan = t1;
  16241. },
  16242. _EvaluateVisitor__evaluateArguments_closure13: function _EvaluateVisitor__evaluateArguments_closure13(t0, t1, t2, t3) {
  16243. var _ = this;
  16244. _.$this = t0;
  16245. _.named = t1;
  16246. _.restNodeForSpan = t2;
  16247. _.namedNodes = t3;
  16248. },
  16249. _EvaluateVisitor__evaluateArguments_closure14: function _EvaluateVisitor__evaluateArguments_closure14() {
  16250. },
  16251. _EvaluateVisitor__evaluateMacroArguments_closure11: function _EvaluateVisitor__evaluateMacroArguments_closure11(t0) {
  16252. this.restArgs = t0;
  16253. },
  16254. _EvaluateVisitor__evaluateMacroArguments_closure12: function _EvaluateVisitor__evaluateMacroArguments_closure12(t0, t1, t2) {
  16255. this.$this = t0;
  16256. this.restNodeForSpan = t1;
  16257. this.restArgs = t2;
  16258. },
  16259. _EvaluateVisitor__evaluateMacroArguments_closure13: function _EvaluateVisitor__evaluateMacroArguments_closure13(t0, t1, t2, t3) {
  16260. var _ = this;
  16261. _.$this = t0;
  16262. _.named = t1;
  16263. _.restNodeForSpan = t2;
  16264. _.restArgs = t3;
  16265. },
  16266. _EvaluateVisitor__evaluateMacroArguments_closure14: function _EvaluateVisitor__evaluateMacroArguments_closure14(t0, t1, t2) {
  16267. this.$this = t0;
  16268. this.keywordRestNodeForSpan = t1;
  16269. this.keywordRestArgs = t2;
  16270. },
  16271. _EvaluateVisitor__addRestMap_closure2: function _EvaluateVisitor__addRestMap_closure2(t0, t1, t2, t3, t4, t5) {
  16272. var _ = this;
  16273. _.$this = t0;
  16274. _.values = t1;
  16275. _.convert = t2;
  16276. _.expressionNode = t3;
  16277. _.map = t4;
  16278. _.nodeWithSpan = t5;
  16279. },
  16280. _EvaluateVisitor__verifyArguments_closure2: function _EvaluateVisitor__verifyArguments_closure2(t0, t1, t2) {
  16281. this.$arguments = t0;
  16282. this.positional = t1;
  16283. this.named = t2;
  16284. },
  16285. _EvaluateVisitor_visitStringExpression_closure2: function _EvaluateVisitor_visitStringExpression_closure2(t0) {
  16286. this.$this = t0;
  16287. },
  16288. _EvaluateVisitor_visitCssAtRule_closure5: function _EvaluateVisitor_visitCssAtRule_closure5(t0, t1) {
  16289. this.$this = t0;
  16290. this.node = t1;
  16291. },
  16292. _EvaluateVisitor_visitCssAtRule_closure6: function _EvaluateVisitor_visitCssAtRule_closure6() {
  16293. },
  16294. _EvaluateVisitor_visitCssKeyframeBlock_closure5: function _EvaluateVisitor_visitCssKeyframeBlock_closure5(t0, t1) {
  16295. this.$this = t0;
  16296. this.node = t1;
  16297. },
  16298. _EvaluateVisitor_visitCssKeyframeBlock_closure6: function _EvaluateVisitor_visitCssKeyframeBlock_closure6() {
  16299. },
  16300. _EvaluateVisitor_visitCssMediaRule_closure8: function _EvaluateVisitor_visitCssMediaRule_closure8(t0, t1) {
  16301. this.$this = t0;
  16302. this.node = t1;
  16303. },
  16304. _EvaluateVisitor_visitCssMediaRule_closure9: function _EvaluateVisitor_visitCssMediaRule_closure9(t0, t1, t2, t3) {
  16305. var _ = this;
  16306. _.$this = t0;
  16307. _.mergedQueries = t1;
  16308. _.node = t2;
  16309. _.mergedSources = t3;
  16310. },
  16311. _EvaluateVisitor_visitCssMediaRule__closure2: function _EvaluateVisitor_visitCssMediaRule__closure2(t0, t1) {
  16312. this.$this = t0;
  16313. this.node = t1;
  16314. },
  16315. _EvaluateVisitor_visitCssMediaRule___closure2: function _EvaluateVisitor_visitCssMediaRule___closure2(t0, t1) {
  16316. this.$this = t0;
  16317. this.node = t1;
  16318. },
  16319. _EvaluateVisitor_visitCssMediaRule_closure10: function _EvaluateVisitor_visitCssMediaRule_closure10(t0) {
  16320. this.mergedSources = t0;
  16321. },
  16322. _EvaluateVisitor_visitCssStyleRule_closure5: function _EvaluateVisitor_visitCssStyleRule_closure5(t0, t1, t2) {
  16323. this.$this = t0;
  16324. this.rule = t1;
  16325. this.node = t2;
  16326. },
  16327. _EvaluateVisitor_visitCssStyleRule__closure2: function _EvaluateVisitor_visitCssStyleRule__closure2(t0, t1) {
  16328. this.$this = t0;
  16329. this.node = t1;
  16330. },
  16331. _EvaluateVisitor_visitCssStyleRule_closure6: function _EvaluateVisitor_visitCssStyleRule_closure6() {
  16332. },
  16333. _EvaluateVisitor_visitCssSupportsRule_closure5: function _EvaluateVisitor_visitCssSupportsRule_closure5(t0, t1) {
  16334. this.$this = t0;
  16335. this.node = t1;
  16336. },
  16337. _EvaluateVisitor_visitCssSupportsRule__closure2: function _EvaluateVisitor_visitCssSupportsRule__closure2(t0, t1) {
  16338. this.$this = t0;
  16339. this.node = t1;
  16340. },
  16341. _EvaluateVisitor_visitCssSupportsRule_closure6: function _EvaluateVisitor_visitCssSupportsRule_closure6() {
  16342. },
  16343. _EvaluateVisitor__performInterpolation_closure2: function _EvaluateVisitor__performInterpolation_closure2(t0, t1, t2) {
  16344. this.$this = t0;
  16345. this.warnForColor = t1;
  16346. this.interpolation = t2;
  16347. },
  16348. _EvaluateVisitor__serialize_closure2: function _EvaluateVisitor__serialize_closure2(t0, t1) {
  16349. this.value = t0;
  16350. this.quote = t1;
  16351. },
  16352. _EvaluateVisitor__expressionNode_closure2: function _EvaluateVisitor__expressionNode_closure2(t0, t1) {
  16353. this.$this = t0;
  16354. this.expression = t1;
  16355. },
  16356. _EvaluateVisitor__withoutSlash_recommendation2: function _EvaluateVisitor__withoutSlash_recommendation2() {
  16357. },
  16358. _EvaluateVisitor__stackFrame_closure2: function _EvaluateVisitor__stackFrame_closure2(t0) {
  16359. this.$this = t0;
  16360. },
  16361. _EvaluateVisitor__stackTrace_closure2: function _EvaluateVisitor__stackTrace_closure2(t0) {
  16362. this.$this = t0;
  16363. },
  16364. _ImportedCssVisitor2: function _ImportedCssVisitor2(t0) {
  16365. this._async_evaluate0$_visitor = t0;
  16366. },
  16367. _ImportedCssVisitor_visitCssAtRule_closure2: function _ImportedCssVisitor_visitCssAtRule_closure2() {
  16368. },
  16369. _ImportedCssVisitor_visitCssMediaRule_closure2: function _ImportedCssVisitor_visitCssMediaRule_closure2(t0) {
  16370. this.hasBeenMerged = t0;
  16371. },
  16372. _ImportedCssVisitor_visitCssStyleRule_closure2: function _ImportedCssVisitor_visitCssStyleRule_closure2() {
  16373. },
  16374. _ImportedCssVisitor_visitCssSupportsRule_closure2: function _ImportedCssVisitor_visitCssSupportsRule_closure2() {
  16375. },
  16376. EvaluateResult0: function EvaluateResult0(t0, t1) {
  16377. this.stylesheet = t0;
  16378. this.loadedUrls = t1;
  16379. },
  16380. _EvaluationContext2: function _EvaluationContext2(t0, t1) {
  16381. this._async_evaluate0$_visitor = t0;
  16382. this._async_evaluate0$_defaultWarnNodeWithSpan = t1;
  16383. },
  16384. _ArgumentResults2: function _ArgumentResults2(t0, t1, t2, t3, t4) {
  16385. var _ = this;
  16386. _.positional = t0;
  16387. _.positionalNodes = t1;
  16388. _.named = t2;
  16389. _.namedNodes = t3;
  16390. _.separator = t4;
  16391. },
  16392. _LoadedStylesheet2: function _LoadedStylesheet2(t0, t1, t2) {
  16393. this.stylesheet = t0;
  16394. this.importer = t1;
  16395. this.isDependency = t2;
  16396. },
  16397. NodeToDartAsyncFileImporter: function NodeToDartAsyncFileImporter(t0) {
  16398. this._findFileUrl = t0;
  16399. },
  16400. AsyncImportCache$(importers, loadPaths, logger, packageConfig) {
  16401. var t1 = type$.nullable_Tuple3_AsyncImporter_Uri_Uri_2,
  16402. t2 = type$.Uri,
  16403. t3 = A.AsyncImportCache__toImporters0(importers, loadPaths, packageConfig);
  16404. return new A.AsyncImportCache0(t3, logger, A.LinkedHashMap_LinkedHashMap$_empty(type$.Tuple2_Uri_bool, t1), A.LinkedHashMap_LinkedHashMap$_empty(type$.Tuple4_of_Uri_and_bool_and_AsyncImporter_and_nullable_Uri_2, t1), A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.nullable_Stylesheet_2), A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.ImporterResult_2));
  16405. },
  16406. AsyncImportCache$none(logger) {
  16407. var t1 = type$.nullable_Tuple3_AsyncImporter_Uri_Uri_2,
  16408. t2 = type$.Uri;
  16409. return new A.AsyncImportCache0(B.List_empty25, logger, A.LinkedHashMap_LinkedHashMap$_empty(type$.Tuple2_Uri_bool, t1), A.LinkedHashMap_LinkedHashMap$_empty(type$.Tuple4_of_Uri_and_bool_and_AsyncImporter_and_nullable_Uri_2, t1), A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.nullable_Stylesheet_2), A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.ImporterResult_2));
  16410. },
  16411. AsyncImportCache__toImporters0(importers, loadPaths, packageConfig) {
  16412. var sassPath, t2, t3, _i, path, _null = null,
  16413. t1 = J.get$env$x(self.process);
  16414. if (t1 == null)
  16415. t1 = type$.Object._as(t1);
  16416. sassPath = A._asStringQ(t1.SASS_PATH);
  16417. t1 = A._setArrayType([], type$.JSArray_AsyncImporter);
  16418. if (importers != null)
  16419. B.JSArray_methods.addAll$1(t1, importers);
  16420. if (loadPaths != null)
  16421. for (t2 = J.get$iterator$ax(loadPaths); t2.moveNext$0();) {
  16422. t3 = t2.get$current(t2);
  16423. t1.push(new A.FilesystemImporter0($.$get$context().absolute$15(t3, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null)));
  16424. }
  16425. if (sassPath != null) {
  16426. t2 = sassPath.split(J.$eq$(J.get$platform$x(self.process), "win32") ? ";" : ":");
  16427. t3 = t2.length;
  16428. _i = 0;
  16429. for (; _i < t3; ++_i) {
  16430. path = t2[_i];
  16431. t1.push(new A.FilesystemImporter0($.$get$context().absolute$15(path, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null)));
  16432. }
  16433. }
  16434. return t1;
  16435. },
  16436. AsyncImportCache0: function AsyncImportCache0(t0, t1, t2, t3, t4, t5) {
  16437. var _ = this;
  16438. _._async_import_cache0$_importers = t0;
  16439. _._async_import_cache0$_logger = t1;
  16440. _._async_import_cache0$_canonicalizeCache = t2;
  16441. _._async_import_cache0$_relativeCanonicalizeCache = t3;
  16442. _._async_import_cache0$_importCache = t4;
  16443. _._async_import_cache0$_resultsCache = t5;
  16444. },
  16445. AsyncImportCache_canonicalize_closure1: function AsyncImportCache_canonicalize_closure1(t0, t1, t2, t3, t4) {
  16446. var _ = this;
  16447. _.$this = t0;
  16448. _.baseUrl = t1;
  16449. _.url = t2;
  16450. _.baseImporter = t3;
  16451. _.forImport = t4;
  16452. },
  16453. AsyncImportCache_canonicalize_closure2: function AsyncImportCache_canonicalize_closure2(t0, t1, t2) {
  16454. this.$this = t0;
  16455. this.url = t1;
  16456. this.forImport = t2;
  16457. },
  16458. AsyncImportCache__canonicalize_closure0: function AsyncImportCache__canonicalize_closure0(t0, t1) {
  16459. this.importer = t0;
  16460. this.url = t1;
  16461. },
  16462. AsyncImportCache_importCanonical_closure0: function AsyncImportCache_importCanonical_closure0(t0, t1, t2, t3, t4) {
  16463. var _ = this;
  16464. _.$this = t0;
  16465. _.importer = t1;
  16466. _.canonicalUrl = t2;
  16467. _.originalUrl = t3;
  16468. _.quiet = t4;
  16469. },
  16470. AsyncImportCache_humanize_closure2: function AsyncImportCache_humanize_closure2(t0) {
  16471. this.canonicalUrl = t0;
  16472. },
  16473. AsyncImportCache_humanize_closure3: function AsyncImportCache_humanize_closure3() {
  16474. },
  16475. AsyncImportCache_humanize_closure4: function AsyncImportCache_humanize_closure4() {
  16476. },
  16477. AtRootQueryParser0: function AtRootQueryParser0(t0, t1) {
  16478. this.scanner = t0;
  16479. this.logger = t1;
  16480. },
  16481. AtRootQueryParser_parse_closure0: function AtRootQueryParser_parse_closure0(t0) {
  16482. this.$this = t0;
  16483. },
  16484. AtRootQuery0: function AtRootQuery0(t0, t1, t2, t3) {
  16485. var _ = this;
  16486. _.include = t0;
  16487. _.names = t1;
  16488. _._at_root_query0$_all = t2;
  16489. _._at_root_query0$_rule = t3;
  16490. },
  16491. AtRootRule$0(children, span, query) {
  16492. var t1 = A.List_List$unmodifiable(children, type$.Statement_2),
  16493. t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure0());
  16494. return new A.AtRootRule0(query, span, t1, t2);
  16495. },
  16496. AtRootRule0: function AtRootRule0(t0, t1, t2, t3) {
  16497. var _ = this;
  16498. _.query = t0;
  16499. _.span = t1;
  16500. _.children = t2;
  16501. _.hasDeclarations = t3;
  16502. },
  16503. ModifiableCssAtRule$0($name, span, childless, value) {
  16504. var t1 = A._setArrayType([], type$.JSArray_ModifiableCssNode_2);
  16505. return new A.ModifiableCssAtRule0($name, value, childless, span, new A.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode_2), t1);
  16506. },
  16507. ModifiableCssAtRule0: function ModifiableCssAtRule0(t0, t1, t2, t3, t4, t5) {
  16508. var _ = this;
  16509. _.name = t0;
  16510. _.value = t1;
  16511. _.isChildless = t2;
  16512. _.span = t3;
  16513. _.children = t4;
  16514. _._node0$_children = t5;
  16515. _._node0$_indexInParent = _._node0$_parent = null;
  16516. _.isGroupEnd = false;
  16517. },
  16518. AtRule$0($name, span, children, value) {
  16519. var t1 = children == null ? null : A.List_List$unmodifiable(children, type$.Statement_2),
  16520. t2 = t1 == null ? null : B.JSArray_methods.any$1(t1, new A.ParentStatement_closure0());
  16521. return new A.AtRule0($name, value, span, t1, t2 === true);
  16522. },
  16523. AtRule0: function AtRule0(t0, t1, t2, t3, t4) {
  16524. var _ = this;
  16525. _.name = t0;
  16526. _.value = t1;
  16527. _.span = t2;
  16528. _.children = t3;
  16529. _.hasDeclarations = t4;
  16530. },
  16531. AttributeSelector0: function AttributeSelector0(t0, t1, t2, t3) {
  16532. var _ = this;
  16533. _.name = t0;
  16534. _.op = t1;
  16535. _.value = t2;
  16536. _.modifier = t3;
  16537. },
  16538. AttributeOperator0: function AttributeOperator0(t0, t1) {
  16539. this._attribute0$_text = t0;
  16540. this._name = t1;
  16541. },
  16542. BinaryOperationExpression0: function BinaryOperationExpression0(t0, t1, t2, t3) {
  16543. var _ = this;
  16544. _.operator = t0;
  16545. _.left = t1;
  16546. _.right = t2;
  16547. _.allowsSlash = t3;
  16548. },
  16549. BinaryOperator0: function BinaryOperator0(t0, t1, t2, t3) {
  16550. var _ = this;
  16551. _.name = t0;
  16552. _.operator = t1;
  16553. _.precedence = t2;
  16554. _._name = t3;
  16555. },
  16556. BooleanExpression0: function BooleanExpression0(t0, t1) {
  16557. this.value = t0;
  16558. this.span = t1;
  16559. },
  16560. legacyBooleanClass_closure: function legacyBooleanClass_closure() {
  16561. },
  16562. legacyBooleanClass__closure: function legacyBooleanClass__closure() {
  16563. },
  16564. legacyBooleanClass__closure0: function legacyBooleanClass__closure0() {
  16565. },
  16566. booleanClass_closure: function booleanClass_closure() {
  16567. },
  16568. booleanClass__closure: function booleanClass__closure() {
  16569. },
  16570. SassBoolean0: function SassBoolean0(t0) {
  16571. this.value = t0;
  16572. },
  16573. BuiltInCallable$function0($name, $arguments, callback, url) {
  16574. return new A.BuiltInCallable0($name, A._setArrayType([new A.Tuple2(A.ScssParser$0("@function " + $name + "(" + $arguments + ") {", null, url).parseArgumentDeclaration$0(), callback, type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2)], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2));
  16575. },
  16576. BuiltInCallable$mixin0($name, $arguments, callback, url) {
  16577. return new A.BuiltInCallable0($name, A._setArrayType([new A.Tuple2(A.ScssParser$0("@mixin " + $name + "(" + $arguments + ") {", null, url).parseArgumentDeclaration$0(), new A.BuiltInCallable$mixin_closure0(callback), type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2)], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2));
  16578. },
  16579. BuiltInCallable$overloadedFunction0($name, overloads) {
  16580. var t2, t3, t4, t5, t6, t7, t8,
  16581. t1 = A._setArrayType([], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2);
  16582. for (t2 = overloads.get$entries(overloads), t2 = t2.get$iterator(t2), t3 = type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2, t4 = "@function " + $name + "(", t5 = type$.String, t6 = type$.VariableDeclaration_2; t2.moveNext$0();) {
  16583. t7 = t2.get$current(t2);
  16584. t8 = A.SpanScanner$(t4 + A.S(t7.key) + ") {", null);
  16585. t1.push(new A.Tuple2(new A.ScssParser0(A.LinkedHashMap_LinkedHashMap$_empty(t5, t6), t8, B.StderrLogger_false0).parseArgumentDeclaration$0(), t7.value, t3));
  16586. }
  16587. return new A.BuiltInCallable0($name, t1);
  16588. },
  16589. BuiltInCallable0: function BuiltInCallable0(t0, t1) {
  16590. this.name = t0;
  16591. this._built_in$_overloads = t1;
  16592. },
  16593. BuiltInCallable$mixin_closure0: function BuiltInCallable$mixin_closure0(t0) {
  16594. this.callback = t0;
  16595. },
  16596. BuiltInModule$0($name, functions, mixins, variables, $T) {
  16597. var t1 = A._Uri__Uri(null, $name, null, "sass"),
  16598. t2 = A.BuiltInModule__callableMap0(functions, $T),
  16599. t3 = A.BuiltInModule__callableMap0(mixins, $T),
  16600. t4 = variables == null ? B.Map_empty8 : new A.UnmodifiableMapView(variables, type$.UnmodifiableMapView_String_Value_2);
  16601. return new A.BuiltInModule0(t1, t2, t3, t4, $T._eval$1("BuiltInModule0<0>"));
  16602. },
  16603. BuiltInModule__callableMap0(callables, $T) {
  16604. var t2, _i, callable,
  16605. t1 = type$.String;
  16606. if (callables == null)
  16607. t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, $T);
  16608. else {
  16609. t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, $T);
  16610. for (t2 = callables.length, _i = 0; _i < callables.length; callables.length === t2 || (0, A.throwConcurrentModificationError)(callables), ++_i) {
  16611. callable = callables[_i];
  16612. t1.$indexSet(0, J.get$name$x(callable), callable);
  16613. }
  16614. t1 = new A.UnmodifiableMapView(t1, type$.$env_1_1_String._bind$1($T)._eval$1("UnmodifiableMapView<1,2>"));
  16615. }
  16616. return new A.UnmodifiableMapView(t1, type$.$env_1_1_String._bind$1($T)._eval$1("UnmodifiableMapView<1,2>"));
  16617. },
  16618. BuiltInModule0: function BuiltInModule0(t0, t1, t2, t3, t4) {
  16619. var _ = this;
  16620. _.url = t0;
  16621. _.functions = t1;
  16622. _.mixins = t2;
  16623. _.variables = t3;
  16624. _.$ti = t4;
  16625. },
  16626. CalculationExpression__verifyArguments0($arguments) {
  16627. return A.List_List$unmodifiable(new A.MappedListIterable($arguments, new A.CalculationExpression__verifyArguments_closure0(), A._arrayInstanceType($arguments)._eval$1("MappedListIterable<1,@>")), type$.Expression_2);
  16628. },
  16629. CalculationExpression__verify0(expression) {
  16630. var t1,
  16631. _s29_ = "Invalid calculation argument ";
  16632. if (expression instanceof A.NumberExpression0)
  16633. return;
  16634. if (expression instanceof A.CalculationExpression0)
  16635. return;
  16636. if (expression instanceof A.VariableExpression0)
  16637. return;
  16638. if (expression instanceof A.FunctionExpression0)
  16639. return;
  16640. if (expression instanceof A.IfExpression0)
  16641. return;
  16642. if (expression instanceof A.StringExpression0) {
  16643. if (expression.hasQuotes)
  16644. throw A.wrapException(A.ArgumentError$(_s29_ + expression.toString$0(0) + ".", null));
  16645. } else if (expression instanceof A.ParenthesizedExpression0)
  16646. A.CalculationExpression__verify0(expression.expression);
  16647. else if (expression instanceof A.BinaryOperationExpression0) {
  16648. A.CalculationExpression__verify0(expression.left);
  16649. A.CalculationExpression__verify0(expression.right);
  16650. t1 = expression.operator;
  16651. if (t1 === B.BinaryOperator_qbf0)
  16652. return;
  16653. if (t1 === B.BinaryOperator_KlB0)
  16654. return;
  16655. if (t1 === B.BinaryOperator_6pl0)
  16656. return;
  16657. if (t1 === B.BinaryOperator_qpm0)
  16658. return;
  16659. throw A.wrapException(A.ArgumentError$(_s29_ + expression.toString$0(0) + ".", null));
  16660. } else
  16661. throw A.wrapException(A.ArgumentError$(_s29_ + expression.toString$0(0) + ".", null));
  16662. },
  16663. CalculationExpression0: function CalculationExpression0(t0, t1, t2) {
  16664. this.name = t0;
  16665. this.$arguments = t1;
  16666. this.span = t2;
  16667. },
  16668. CalculationExpression__verifyArguments_closure0: function CalculationExpression__verifyArguments_closure0() {
  16669. },
  16670. SassCalculation_calc0(argument) {
  16671. argument = A.SassCalculation__simplify0(argument);
  16672. if (argument instanceof A.SassNumber0)
  16673. return argument;
  16674. if (argument instanceof A.SassCalculation0)
  16675. return argument;
  16676. return new A.SassCalculation0("calc", A.List_List$unmodifiable([argument], type$.Object));
  16677. },
  16678. SassCalculation_min0($arguments) {
  16679. var minimum, _i, arg, t2,
  16680. args = A.List_List$unmodifiable(new A.MappedListIterable($arguments, A.calculation0_SassCalculation__simplify$closure(), A._arrayInstanceType($arguments)._eval$1("MappedListIterable<1,@>")), type$.Object),
  16681. t1 = args.length;
  16682. if (t1 === 0)
  16683. throw A.wrapException(A.ArgumentError$("min() must have at least one argument.", null));
  16684. for (minimum = null, _i = 0; _i < t1; ++_i) {
  16685. arg = args[_i];
  16686. if (arg instanceof A.SassNumber0)
  16687. t2 = minimum != null && !minimum.isComparableTo$1(arg);
  16688. else
  16689. t2 = true;
  16690. if (t2) {
  16691. minimum = null;
  16692. break;
  16693. } else if (minimum == null || minimum.greaterThan$1(arg).value)
  16694. minimum = arg;
  16695. }
  16696. if (minimum != null)
  16697. return minimum;
  16698. A.SassCalculation__verifyCompatibleNumbers0(args);
  16699. return new A.SassCalculation0("min", args);
  16700. },
  16701. SassCalculation_max0($arguments) {
  16702. var maximum, _i, arg, t2,
  16703. args = A.List_List$unmodifiable(new A.MappedListIterable($arguments, A.calculation0_SassCalculation__simplify$closure(), A._arrayInstanceType($arguments)._eval$1("MappedListIterable<1,@>")), type$.Object),
  16704. t1 = args.length;
  16705. if (t1 === 0)
  16706. throw A.wrapException(A.ArgumentError$("max() must have at least one argument.", null));
  16707. for (maximum = null, _i = 0; _i < t1; ++_i) {
  16708. arg = args[_i];
  16709. if (arg instanceof A.SassNumber0)
  16710. t2 = maximum != null && !maximum.isComparableTo$1(arg);
  16711. else
  16712. t2 = true;
  16713. if (t2) {
  16714. maximum = null;
  16715. break;
  16716. } else if (maximum == null || maximum.lessThan$1(arg).value)
  16717. maximum = arg;
  16718. }
  16719. if (maximum != null)
  16720. return maximum;
  16721. A.SassCalculation__verifyCompatibleNumbers0(args);
  16722. return new A.SassCalculation0("max", args);
  16723. },
  16724. SassCalculation_clamp0(min, value, max) {
  16725. var t1, args;
  16726. if (value == null && max != null)
  16727. throw A.wrapException(A.ArgumentError$("If value is null, max must also be null.", null));
  16728. min = A.SassCalculation__simplify0(min);
  16729. value = A.NullableExtension_andThen0(value, A.calculation0_SassCalculation__simplify$closure());
  16730. max = A.NullableExtension_andThen0(max, A.calculation0_SassCalculation__simplify$closure());
  16731. if (min instanceof A.SassNumber0 && value instanceof A.SassNumber0 && max instanceof A.SassNumber0 && min.hasCompatibleUnits$1(value) && min.hasCompatibleUnits$1(max)) {
  16732. if (value.lessThanOrEquals$1(min).value)
  16733. return min;
  16734. if (value.greaterThanOrEquals$1(max).value)
  16735. return max;
  16736. return value;
  16737. }
  16738. t1 = [min];
  16739. if (value != null)
  16740. t1.push(value);
  16741. if (max != null)
  16742. t1.push(max);
  16743. args = A.List_List$unmodifiable(t1, type$.Object);
  16744. A.SassCalculation__verifyCompatibleNumbers0(args);
  16745. A.SassCalculation__verifyLength0(args, 3);
  16746. return new A.SassCalculation0("clamp", args);
  16747. },
  16748. SassCalculation_operateInternal0(operator, left, right, inMinMax, simplify) {
  16749. var t1, t2;
  16750. if (!simplify)
  16751. return new A.CalculationOperation0(operator, left, right);
  16752. left = A.SassCalculation__simplify0(left);
  16753. right = A.SassCalculation__simplify0(right);
  16754. t1 = operator === B.CalculationOperator_IyK0;
  16755. if (t1 || operator === B.CalculationOperator_2bx0) {
  16756. if (left instanceof A.SassNumber0)
  16757. if (right instanceof A.SassNumber0)
  16758. t2 = inMinMax ? left.isComparableTo$1(right) : left.hasCompatibleUnits$1(right);
  16759. else
  16760. t2 = false;
  16761. else
  16762. t2 = false;
  16763. if (t2)
  16764. return t1 ? left.plus$1(right) : left.minus$1(right);
  16765. A.SassCalculation__verifyCompatibleNumbers0(A._setArrayType([left, right], type$.JSArray_Object));
  16766. if (right instanceof A.SassNumber0) {
  16767. t2 = right._number1$_value;
  16768. t2 = t2 < 0 && !A.fuzzyEquals0(t2, 0);
  16769. } else
  16770. t2 = false;
  16771. if (t2) {
  16772. right = right.times$1(A.SassNumber_SassNumber0(-1, null));
  16773. operator = t1 ? B.CalculationOperator_2bx0 : B.CalculationOperator_IyK0;
  16774. }
  16775. return new A.CalculationOperation0(operator, left, right);
  16776. } else if (left instanceof A.SassNumber0 && right instanceof A.SassNumber0)
  16777. return operator === B.CalculationOperator_jFr0 ? left.times$1(right) : left.dividedBy$1(right);
  16778. else
  16779. return new A.CalculationOperation0(operator, left, right);
  16780. },
  16781. SassCalculation__simplify0(arg) {
  16782. var _s32_ = " can't be used in a calculation.";
  16783. if (arg instanceof A.SassNumber0 || arg instanceof A.CalculationInterpolation0 || arg instanceof A.CalculationOperation0)
  16784. return arg;
  16785. else if (arg instanceof A.SassString0) {
  16786. if (!arg._string0$_hasQuotes)
  16787. return arg;
  16788. throw A.wrapException(A.SassScriptException$0("Quoted string " + arg.toString$0(0) + _s32_, null));
  16789. } else if (arg instanceof A.SassCalculation0)
  16790. return arg.name === "calc" ? arg.$arguments[0] : arg;
  16791. else if (arg instanceof A.Value0)
  16792. throw A.wrapException(A.SassScriptException$0("Value " + arg.toString$0(0) + _s32_, null));
  16793. else
  16794. throw A.wrapException(A.ArgumentError$("Unexpected calculation argument " + A.S(arg) + ".", null));
  16795. },
  16796. SassCalculation__verifyCompatibleNumbers0(args) {
  16797. var t1, _i, t2, arg, i, number1, j, number2;
  16798. for (t1 = args.length, _i = 0; t2 = args.length, _i < t2; args.length === t1 || (0, A.throwConcurrentModificationError)(args), ++_i) {
  16799. arg = args[_i];
  16800. if (!(arg instanceof A.SassNumber0))
  16801. continue;
  16802. if (arg.get$numeratorUnits(arg).length > 1 || arg.get$denominatorUnits(arg).length !== 0)
  16803. throw A.wrapException(A.SassScriptException$0("Number " + arg.toString$0(0) + " isn't compatible with CSS calculations.", null));
  16804. }
  16805. for (t1 = t2, i = 0; i < t1 - 1; ++i) {
  16806. number1 = args[i];
  16807. if (!(number1 instanceof A.SassNumber0))
  16808. continue;
  16809. for (j = i + 1; t1 = args.length, j < t1; ++j) {
  16810. number2 = args[j];
  16811. if (!(number2 instanceof A.SassNumber0))
  16812. continue;
  16813. if (number1.hasPossiblyCompatibleUnits$1(number2))
  16814. continue;
  16815. throw A.wrapException(A.SassScriptException$0(number1.toString$0(0) + " and " + number2.toString$0(0) + " are incompatible.", null));
  16816. }
  16817. }
  16818. },
  16819. SassCalculation__verifyLength0(args, expectedLength) {
  16820. var t1 = args.length;
  16821. if (t1 === expectedLength)
  16822. return;
  16823. if (B.JSArray_methods.any$1(args, new A.SassCalculation__verifyLength_closure0()))
  16824. return;
  16825. throw A.wrapException(A.SassScriptException$0("" + expectedLength + " arguments required, but only " + t1 + " " + A.pluralize0("was", t1, "were") + " passed.", null));
  16826. },
  16827. SassCalculation0: function SassCalculation0(t0, t1) {
  16828. this.name = t0;
  16829. this.$arguments = t1;
  16830. },
  16831. SassCalculation__verifyLength_closure0: function SassCalculation__verifyLength_closure0() {
  16832. },
  16833. CalculationOperation0: function CalculationOperation0(t0, t1, t2) {
  16834. this.operator = t0;
  16835. this.left = t1;
  16836. this.right = t2;
  16837. },
  16838. CalculationOperator0: function CalculationOperator0(t0, t1, t2, t3) {
  16839. var _ = this;
  16840. _.name = t0;
  16841. _.operator = t1;
  16842. _.precedence = t2;
  16843. _._name = t3;
  16844. },
  16845. CalculationInterpolation0: function CalculationInterpolation0(t0) {
  16846. this.value = t0;
  16847. },
  16848. CallableDeclaration0: function CallableDeclaration0() {
  16849. },
  16850. Chokidar0: function Chokidar0() {
  16851. },
  16852. ChokidarOptions0: function ChokidarOptions0() {
  16853. },
  16854. ChokidarWatcher0: function ChokidarWatcher0() {
  16855. },
  16856. ClassSelector0: function ClassSelector0(t0) {
  16857. this.name = t0;
  16858. },
  16859. cloneCssStylesheet0(stylesheet, extensionStore) {
  16860. var result = extensionStore.clone$0();
  16861. return new A.Tuple2(new A._CloneCssVisitor0(result.item2)._clone_css$_visitChildren$2(A.ModifiableCssStylesheet$0(stylesheet.get$span(stylesheet)), stylesheet), result.item1, type$.Tuple2_ModifiableCssStylesheet_ExtensionStore_2);
  16862. },
  16863. _CloneCssVisitor0: function _CloneCssVisitor0(t0) {
  16864. this._clone_css$_oldToNewSelectors = t0;
  16865. },
  16866. ColorExpression0: function ColorExpression0(t0, t1) {
  16867. this.value = t0;
  16868. this.span = t1;
  16869. },
  16870. _updateComponents0($arguments, adjust, change, scale) {
  16871. var keywords, alpha, red, green, blue, hue, saturation, lightness, whiteness, blackness, hasRgb, hasSL, hasWB, t2, t3, t4, _null = null,
  16872. t1 = J.getInterceptor$asx($arguments),
  16873. color = t1.$index($arguments, 0).assertColor$1("color"),
  16874. argumentList = type$.SassArgumentList_2._as(t1.$index($arguments, 1));
  16875. if (argumentList._list1$_contents.length !== 0)
  16876. throw A.wrapException(A.SassScriptException$0(string$.Only_op, _null));
  16877. argumentList._argument_list$_wereKeywordsAccessed = true;
  16878. keywords = A.LinkedHashMap_LinkedHashMap$of(argumentList._argument_list$_keywords, type$.String, type$.Value_2);
  16879. t1 = new A._updateComponents_getParam0(keywords, scale, change);
  16880. alpha = t1.call$3$checkUnitless("alpha", 1, true);
  16881. red = t1.call$2("red", 255);
  16882. green = t1.call$2("green", 255);
  16883. blue = t1.call$2("blue", 255);
  16884. hue = scale ? _null : A.NullableExtension_andThen0(keywords.remove$1(0, "hue"), new A._updateComponents_closure1());
  16885. saturation = t1.call$3$checkPercent("saturation", 100, true);
  16886. lightness = t1.call$3$checkPercent("lightness", 100, true);
  16887. whiteness = t1.call$3$assertPercent("whiteness", 100, true);
  16888. blackness = t1.call$3$assertPercent("blackness", 100, true);
  16889. t1 = keywords.__js_helper$_length;
  16890. if (t1 !== 0)
  16891. throw A.wrapException(A.SassScriptException$0("No " + A.pluralize0("argument", t1, _null) + " named " + A.S(A.toSentence0(keywords.get$keys(keywords).map$1$1(0, new A._updateComponents_closure2(), type$.Object), "or")) + ".", _null));
  16892. hasRgb = red != null || green != null || blue != null;
  16893. hasSL = saturation != null || lightness != null;
  16894. hasWB = whiteness != null || blackness != null;
  16895. if (hasRgb)
  16896. t1 = hasSL || hasWB || hue != null;
  16897. else
  16898. t1 = false;
  16899. if (t1)
  16900. throw A.wrapException(A.SassScriptException$0(string$.RGB_pa + (hasWB ? "HWB" : "HSL") + " parameters.", _null));
  16901. if (hasSL && hasWB)
  16902. throw A.wrapException(A.SassScriptException$0(string$.HSL_pa, _null));
  16903. t1 = new A._updateComponents_updateValue0(change, adjust);
  16904. t2 = new A._updateComponents_updateRgb0(t1);
  16905. if (hasRgb) {
  16906. t3 = t2.call$2(color.get$red(color), red);
  16907. t4 = t2.call$2(color.get$green(color), green);
  16908. t2 = t2.call$2(color.get$blue(color), blue);
  16909. return color.changeRgb$4$alpha$blue$green$red(t1.call$3(color._color1$_alpha, alpha, 1), t2, t4, t3);
  16910. } else if (hasWB) {
  16911. if (change)
  16912. t2 = hue;
  16913. else {
  16914. t2 = color.get$hue(color);
  16915. t2 += hue == null ? 0 : hue;
  16916. }
  16917. t3 = t1.call$3(color.get$whiteness(color), whiteness, 100);
  16918. t4 = t1.call$3(color.get$blackness(color), blackness, 100);
  16919. return color.changeHwb$4$alpha$blackness$hue$whiteness(t1.call$3(color._color1$_alpha, alpha, 1), t4, t2, t3);
  16920. } else {
  16921. t2 = hue == null;
  16922. if (!t2 || hasSL) {
  16923. if (change)
  16924. t2 = hue;
  16925. else {
  16926. t3 = color.get$hue(color);
  16927. t3 += t2 ? 0 : hue;
  16928. t2 = t3;
  16929. }
  16930. t3 = t1.call$3(color.get$saturation(color), saturation, 100);
  16931. t4 = t1.call$3(color.get$lightness(color), lightness, 100);
  16932. return color.changeHsl$4$alpha$hue$lightness$saturation(t1.call$3(color._color1$_alpha, alpha, 1), t2, t4, t3);
  16933. } else if (alpha != null)
  16934. return color.changeAlpha$1(t1.call$3(color._color1$_alpha, alpha, 1));
  16935. else
  16936. return color;
  16937. }
  16938. },
  16939. _functionString0($name, $arguments) {
  16940. return new A.SassString0($name + "(" + J.map$1$1$ax($arguments, new A._functionString_closure0(), type$.String).join$1(0, ", ") + ")", false);
  16941. },
  16942. _removedColorFunction0($name, argument, negative) {
  16943. return A.BuiltInCallable$function0($name, "$color, $amount", new A._removedColorFunction_closure0($name, argument, negative), "sass:color");
  16944. },
  16945. _rgb0($name, $arguments) {
  16946. var t2, red, green, blue,
  16947. t1 = J.getInterceptor$asx($arguments),
  16948. alpha = t1.get$length($arguments) > 3 ? t1.$index($arguments, 3) : null;
  16949. if (!t1.$index($arguments, 0).get$isSpecialNumber())
  16950. if (!t1.$index($arguments, 1).get$isSpecialNumber())
  16951. if (!t1.$index($arguments, 2).get$isSpecialNumber()) {
  16952. t2 = alpha == null ? null : alpha.get$isSpecialNumber();
  16953. t2 = t2 === true;
  16954. } else
  16955. t2 = true;
  16956. else
  16957. t2 = true;
  16958. else
  16959. t2 = true;
  16960. if (t2)
  16961. return A._functionString0($name, $arguments);
  16962. red = t1.$index($arguments, 0).assertNumber$1("red");
  16963. green = t1.$index($arguments, 1).assertNumber$1("green");
  16964. blue = t1.$index($arguments, 2).assertNumber$1("blue");
  16965. return A.SassColor$rgbInternal0(A.fuzzyRound0(A._percentageOrUnitless0(red, 255, "red")), A.fuzzyRound0(A._percentageOrUnitless0(green, 255, "green")), A.fuzzyRound0(A._percentageOrUnitless0(blue, 255, "blue")), A.NullableExtension_andThen0(alpha, new A._rgb_closure0()), B._ColorFormatEnum_rgbFunction0);
  16966. },
  16967. _rgbTwoArg0($name, $arguments) {
  16968. var first, color,
  16969. t1 = J.getInterceptor$asx($arguments);
  16970. if (t1.$index($arguments, 0).get$isVar())
  16971. return A._functionString0($name, $arguments);
  16972. else if (t1.$index($arguments, 1).get$isVar()) {
  16973. first = t1.$index($arguments, 0);
  16974. if (first instanceof A.SassColor0)
  16975. return new A.SassString0($name + "(" + first.get$red(first) + ", " + first.get$green(first) + ", " + first.get$blue(first) + ", " + A.serializeValue0(t1.$index($arguments, 1), false, true) + ")", false);
  16976. else
  16977. return A._functionString0($name, $arguments);
  16978. } else if (t1.$index($arguments, 1).get$isSpecialNumber()) {
  16979. color = t1.$index($arguments, 0).assertColor$1("color");
  16980. return new A.SassString0($name + "(" + color.get$red(color) + ", " + color.get$green(color) + ", " + color.get$blue(color) + ", " + A.serializeValue0(t1.$index($arguments, 1), false, true) + ")", false);
  16981. }
  16982. return t1.$index($arguments, 0).assertColor$1("color").changeAlpha$1(A._percentageOrUnitless0(t1.$index($arguments, 1).assertNumber$1("alpha"), 1, "alpha"));
  16983. },
  16984. _hsl0($name, $arguments) {
  16985. var t2, hue, saturation, lightness,
  16986. _s10_ = "saturation",
  16987. _s9_ = "lightness",
  16988. t1 = J.getInterceptor$asx($arguments),
  16989. alpha = t1.get$length($arguments) > 3 ? t1.$index($arguments, 3) : null;
  16990. if (!t1.$index($arguments, 0).get$isSpecialNumber())
  16991. if (!t1.$index($arguments, 1).get$isSpecialNumber())
  16992. if (!t1.$index($arguments, 2).get$isSpecialNumber()) {
  16993. t2 = alpha == null ? null : alpha.get$isSpecialNumber();
  16994. t2 = t2 === true;
  16995. } else
  16996. t2 = true;
  16997. else
  16998. t2 = true;
  16999. else
  17000. t2 = true;
  17001. if (t2)
  17002. return A._functionString0($name, $arguments);
  17003. hue = A._angleValue0(t1.$index($arguments, 0), "hue");
  17004. saturation = t1.$index($arguments, 1).assertNumber$1(_s10_);
  17005. lightness = t1.$index($arguments, 2).assertNumber$1(_s9_);
  17006. A._checkPercent0(saturation, _s10_);
  17007. A._checkPercent0(lightness, _s9_);
  17008. return A.SassColor$hslInternal0(hue, B.JSNumber_methods.clamp$2(saturation._number1$_value, 0, 100), B.JSNumber_methods.clamp$2(lightness._number1$_value, 0, 100), A.NullableExtension_andThen0(alpha, new A._hsl_closure0()), B._ColorFormatEnum_hslFunction0);
  17009. },
  17010. _angleValue0(angleValue, $name) {
  17011. var t1, t2,
  17012. angle = angleValue.assertNumber$1($name);
  17013. if (angle.compatibleWithUnit$1("deg"))
  17014. return angle.coerceValueToUnit$1("deg");
  17015. t1 = angle.toString$0(0);
  17016. t2 = angle.unitSuggestion$1($name);
  17017. A.EvaluationContext_current0().warn$2$deprecation(0, "$" + $name + ": Passing a unit other than deg (" + t1 + string$.x29x20is_d + t2 + string$.x0a_See_, true);
  17018. return angle._number1$_value;
  17019. },
  17020. _checkPercent0(number, $name) {
  17021. var t1, t2;
  17022. if (number.hasUnit$1("%"))
  17023. return;
  17024. t1 = number.toString$0(0);
  17025. t2 = number.unitSuggestion$2($name, "%");
  17026. A.EvaluationContext_current0().warn$2$deprecation(0, "$" + $name + ": Passing a number without unit % (" + t1 + string$.x29x20is_d + t2 + string$.x0a_Morex3a, true);
  17027. },
  17028. _hwb0($arguments) {
  17029. var _s9_ = "whiteness",
  17030. _s9_0 = "blackness",
  17031. t1 = J.getInterceptor$asx($arguments),
  17032. alpha = t1.get$length($arguments) > 3 ? t1.$index($arguments, 3) : null,
  17033. hue = A._angleValue0(t1.$index($arguments, 0), "hue"),
  17034. whiteness = t1.$index($arguments, 1).assertNumber$1(_s9_),
  17035. blackness = t1.$index($arguments, 2).assertNumber$1(_s9_0);
  17036. whiteness.assertUnit$2("%", _s9_);
  17037. blackness.assertUnit$2("%", _s9_0);
  17038. return A.SassColor_SassColor$hwb0(hue, whiteness.valueInRange$3(0, 100, _s9_), blackness.valueInRange$3(0, 100, _s9_0), A.NullableExtension_andThen0(alpha, new A._hwb_closure0()));
  17039. },
  17040. _parseChannels0($name, argumentNames, channels) {
  17041. var list, t1, channels0, alphaFromSlashList, isCommaSeparated, isBracketed, buffer, maybeSlashSeparated, slash, _null = null,
  17042. _s17_ = "$channels must be";
  17043. if (channels.get$isVar())
  17044. return A._functionString0($name, A._setArrayType([channels], type$.JSArray_Value_2));
  17045. if (channels.get$separator(channels) === B.ListSeparator_zg90) {
  17046. list = channels.get$asList();
  17047. t1 = list.length;
  17048. if (t1 !== 2)
  17049. throw A.wrapException(A.SassScriptException$0(string$.Only_2 + t1 + " " + A.pluralize0("was", t1, "were") + " passed.", _null));
  17050. channels0 = list[0];
  17051. alphaFromSlashList = list[1];
  17052. if (!alphaFromSlashList.get$isSpecialNumber())
  17053. alphaFromSlashList.assertNumber$1("alpha");
  17054. if (list[0].get$isVar())
  17055. return A._functionString0($name, A._setArrayType([channels], type$.JSArray_Value_2));
  17056. } else {
  17057. alphaFromSlashList = _null;
  17058. channels0 = channels;
  17059. }
  17060. isCommaSeparated = channels0.get$separator(channels0) === B.ListSeparator_rXA0;
  17061. isBracketed = channels0.get$hasBrackets();
  17062. if (isCommaSeparated || isBracketed) {
  17063. buffer = new A.StringBuffer(_s17_);
  17064. if (isBracketed) {
  17065. t1 = _s17_ + " an unbracketed";
  17066. buffer._contents = t1;
  17067. } else
  17068. t1 = _s17_;
  17069. if (isCommaSeparated) {
  17070. t1 += isBracketed ? "," : " a";
  17071. buffer._contents = t1;
  17072. t1 = buffer._contents = t1 + " space-separated";
  17073. }
  17074. buffer._contents = t1 + " list.";
  17075. throw A.wrapException(A.SassScriptException$0(buffer.toString$0(0), _null));
  17076. }
  17077. list = channels0.get$asList();
  17078. t1 = list.length;
  17079. if (t1 > 3)
  17080. throw A.wrapException(A.SassScriptException$0("Only 3 elements allowed, but " + t1 + " were passed.", _null));
  17081. else if (t1 < 3) {
  17082. if (!B.JSArray_methods.any$1(list, new A._parseChannels_closure0()))
  17083. if (list.length !== 0) {
  17084. t1 = B.JSArray_methods.get$last(list);
  17085. if (t1 instanceof A.SassString0)
  17086. if (t1._string0$_hasQuotes) {
  17087. t1 = t1._string0$_text;
  17088. t1 = A.startsWithIgnoreCase0(t1, "var(") && B.JSString_methods.contains$1(t1, "/");
  17089. } else
  17090. t1 = false;
  17091. else
  17092. t1 = false;
  17093. } else
  17094. t1 = false;
  17095. else
  17096. t1 = true;
  17097. if (t1)
  17098. return A._functionString0($name, A._setArrayType([channels], type$.JSArray_Value_2));
  17099. else
  17100. throw A.wrapException(A.SassScriptException$0("Missing element " + argumentNames[list.length] + ".", _null));
  17101. }
  17102. if (alphaFromSlashList != null) {
  17103. t1 = A.List_List$of(list, true, type$.Value_2);
  17104. t1.push(alphaFromSlashList);
  17105. return t1;
  17106. }
  17107. maybeSlashSeparated = list[2];
  17108. if (maybeSlashSeparated instanceof A.SassNumber0) {
  17109. slash = maybeSlashSeparated.asSlash;
  17110. if (slash == null)
  17111. return list;
  17112. return A._setArrayType([list[0], list[1], slash.item1, slash.item2], type$.JSArray_Value_2);
  17113. } else if (maybeSlashSeparated instanceof A.SassString0 && !maybeSlashSeparated._string0$_hasQuotes && B.JSString_methods.contains$1(maybeSlashSeparated._string0$_text, "/"))
  17114. return A._functionString0($name, A._setArrayType([channels0], type$.JSArray_Value_2));
  17115. else
  17116. return list;
  17117. },
  17118. _percentageOrUnitless0(number, max, $name) {
  17119. var value;
  17120. if (!number.get$hasUnits())
  17121. value = number._number1$_value;
  17122. else if (number.hasUnit$1("%"))
  17123. value = max * number._number1$_value / 100;
  17124. else
  17125. throw A.wrapException(A.SassScriptException$0("$" + $name + ": Expected " + number.toString$0(0) + ' to have no units or "%".', null));
  17126. return B.JSNumber_methods.clamp$2(value, 0, max);
  17127. },
  17128. _mixColors0(color1, color2, weight) {
  17129. var weightScale, normalizedWeight, t1, t2, alphaDistance, t3, weight1, weight2;
  17130. A._checkPercent0(weight, "weight");
  17131. weightScale = weight.valueInRange$3(0, 100, "weight") / 100;
  17132. normalizedWeight = weightScale * 2 - 1;
  17133. t1 = color1._color1$_alpha;
  17134. t2 = color2._color1$_alpha;
  17135. alphaDistance = t1 - t2;
  17136. t3 = normalizedWeight * alphaDistance;
  17137. weight1 = ((t3 === -1 ? normalizedWeight : (normalizedWeight + alphaDistance) / (1 + t3)) + 1) / 2;
  17138. weight2 = 1 - weight1;
  17139. return A.SassColor$rgb0(A.fuzzyRound0(color1.get$red(color1) * weight1 + color2.get$red(color2) * weight2), A.fuzzyRound0(color1.get$green(color1) * weight1 + color2.get$green(color2) * weight2), A.fuzzyRound0(color1.get$blue(color1) * weight1 + color2.get$blue(color2) * weight2), t1 * weightScale + t2 * (1 - weightScale));
  17140. },
  17141. _opacify0($arguments) {
  17142. var t1 = J.getInterceptor$asx($arguments),
  17143. color = t1.$index($arguments, 0).assertColor$1("color");
  17144. return color.changeAlpha$1(B.JSNumber_methods.clamp$2(color._color1$_alpha + t1.$index($arguments, 1).assertNumber$1("amount").valueInRangeWithUnit$4(0, 1, "amount", ""), 0, 1));
  17145. },
  17146. _transparentize0($arguments) {
  17147. var t1 = J.getInterceptor$asx($arguments),
  17148. color = t1.$index($arguments, 0).assertColor$1("color");
  17149. return color.changeAlpha$1(B.JSNumber_methods.clamp$2(color._color1$_alpha - t1.$index($arguments, 1).assertNumber$1("amount").valueInRangeWithUnit$4(0, 1, "amount", ""), 0, 1));
  17150. },
  17151. _function11($name, $arguments, callback) {
  17152. return A.BuiltInCallable$function0($name, $arguments, callback, "sass:color");
  17153. },
  17154. global_closure30: function global_closure30() {
  17155. },
  17156. global_closure31: function global_closure31() {
  17157. },
  17158. global_closure32: function global_closure32() {
  17159. },
  17160. global_closure33: function global_closure33() {
  17161. },
  17162. global_closure34: function global_closure34() {
  17163. },
  17164. global_closure35: function global_closure35() {
  17165. },
  17166. global_closure36: function global_closure36() {
  17167. },
  17168. global_closure37: function global_closure37() {
  17169. },
  17170. global_closure38: function global_closure38() {
  17171. },
  17172. global_closure39: function global_closure39() {
  17173. },
  17174. global_closure40: function global_closure40() {
  17175. },
  17176. global_closure41: function global_closure41() {
  17177. },
  17178. global_closure42: function global_closure42() {
  17179. },
  17180. global_closure43: function global_closure43() {
  17181. },
  17182. global_closure44: function global_closure44() {
  17183. },
  17184. global_closure45: function global_closure45() {
  17185. },
  17186. global_closure46: function global_closure46() {
  17187. },
  17188. global_closure47: function global_closure47() {
  17189. },
  17190. global_closure48: function global_closure48() {
  17191. },
  17192. global_closure49: function global_closure49() {
  17193. },
  17194. global_closure50: function global_closure50() {
  17195. },
  17196. global_closure51: function global_closure51() {
  17197. },
  17198. global_closure52: function global_closure52() {
  17199. },
  17200. global_closure53: function global_closure53() {
  17201. },
  17202. global_closure54: function global_closure54() {
  17203. },
  17204. global_closure55: function global_closure55() {
  17205. },
  17206. global__closure0: function global__closure0() {
  17207. },
  17208. global_closure56: function global_closure56() {
  17209. },
  17210. module_closure10: function module_closure10() {
  17211. },
  17212. module_closure11: function module_closure11() {
  17213. },
  17214. module_closure12: function module_closure12() {
  17215. },
  17216. module_closure13: function module_closure13() {
  17217. },
  17218. module_closure14: function module_closure14() {
  17219. },
  17220. module_closure15: function module_closure15() {
  17221. },
  17222. module_closure16: function module_closure16() {
  17223. },
  17224. module_closure17: function module_closure17() {
  17225. },
  17226. module__closure4: function module__closure4() {
  17227. },
  17228. module_closure18: function module_closure18() {
  17229. },
  17230. _red_closure0: function _red_closure0() {
  17231. },
  17232. _green_closure0: function _green_closure0() {
  17233. },
  17234. _blue_closure0: function _blue_closure0() {
  17235. },
  17236. _mix_closure0: function _mix_closure0() {
  17237. },
  17238. _hue_closure0: function _hue_closure0() {
  17239. },
  17240. _saturation_closure0: function _saturation_closure0() {
  17241. },
  17242. _lightness_closure0: function _lightness_closure0() {
  17243. },
  17244. _complement_closure0: function _complement_closure0() {
  17245. },
  17246. _adjust_closure0: function _adjust_closure0() {
  17247. },
  17248. _scale_closure0: function _scale_closure0() {
  17249. },
  17250. _change_closure0: function _change_closure0() {
  17251. },
  17252. _ieHexStr_closure0: function _ieHexStr_closure0() {
  17253. },
  17254. _ieHexStr_closure_hexString0: function _ieHexStr_closure_hexString0() {
  17255. },
  17256. _updateComponents_getParam0: function _updateComponents_getParam0(t0, t1, t2) {
  17257. this.keywords = t0;
  17258. this.scale = t1;
  17259. this.change = t2;
  17260. },
  17261. _updateComponents_closure1: function _updateComponents_closure1() {
  17262. },
  17263. _updateComponents_closure2: function _updateComponents_closure2() {
  17264. },
  17265. _updateComponents_updateValue0: function _updateComponents_updateValue0(t0, t1) {
  17266. this.change = t0;
  17267. this.adjust = t1;
  17268. },
  17269. _updateComponents_updateRgb0: function _updateComponents_updateRgb0(t0) {
  17270. this.updateValue = t0;
  17271. },
  17272. _functionString_closure0: function _functionString_closure0() {
  17273. },
  17274. _removedColorFunction_closure0: function _removedColorFunction_closure0(t0, t1, t2) {
  17275. this.name = t0;
  17276. this.argument = t1;
  17277. this.negative = t2;
  17278. },
  17279. _rgb_closure0: function _rgb_closure0() {
  17280. },
  17281. _hsl_closure0: function _hsl_closure0() {
  17282. },
  17283. _hwb_closure0: function _hwb_closure0() {
  17284. },
  17285. _parseChannels_closure0: function _parseChannels_closure0() {
  17286. },
  17287. _NodeSassColor: function _NodeSassColor() {
  17288. },
  17289. legacyColorClass_closure: function legacyColorClass_closure() {
  17290. },
  17291. legacyColorClass_closure0: function legacyColorClass_closure0() {
  17292. },
  17293. legacyColorClass_closure1: function legacyColorClass_closure1() {
  17294. },
  17295. legacyColorClass_closure2: function legacyColorClass_closure2() {
  17296. },
  17297. legacyColorClass_closure3: function legacyColorClass_closure3() {
  17298. },
  17299. legacyColorClass_closure4: function legacyColorClass_closure4() {
  17300. },
  17301. legacyColorClass_closure5: function legacyColorClass_closure5() {
  17302. },
  17303. legacyColorClass_closure6: function legacyColorClass_closure6() {
  17304. },
  17305. legacyColorClass_closure7: function legacyColorClass_closure7() {
  17306. },
  17307. colorClass_closure: function colorClass_closure() {
  17308. },
  17309. colorClass__closure: function colorClass__closure() {
  17310. },
  17311. colorClass__closure0: function colorClass__closure0() {
  17312. },
  17313. colorClass__closure1: function colorClass__closure1() {
  17314. },
  17315. colorClass__closure2: function colorClass__closure2() {
  17316. },
  17317. colorClass__closure3: function colorClass__closure3() {
  17318. },
  17319. colorClass__closure4: function colorClass__closure4() {
  17320. },
  17321. colorClass__closure5: function colorClass__closure5() {
  17322. },
  17323. colorClass__closure6: function colorClass__closure6() {
  17324. },
  17325. colorClass__closure7: function colorClass__closure7() {
  17326. },
  17327. colorClass__closure8: function colorClass__closure8() {
  17328. },
  17329. colorClass__closure9: function colorClass__closure9() {
  17330. },
  17331. _Channels: function _Channels() {
  17332. },
  17333. SassColor$rgb0(red, green, blue, alpha) {
  17334. var _null = null,
  17335. t1 = new A.SassColor0(red, green, blue, _null, _null, _null, alpha == null ? 1 : A.fuzzyAssertRange0(alpha, 0, 1, "alpha"), _null);
  17336. A.RangeError_checkValueInInterval(t1.get$red(t1), 0, 255, "red");
  17337. A.RangeError_checkValueInInterval(t1.get$green(t1), 0, 255, "green");
  17338. A.RangeError_checkValueInInterval(t1.get$blue(t1), 0, 255, "blue");
  17339. return t1;
  17340. },
  17341. SassColor$rgbInternal0(_red, _green, _blue, alpha, format) {
  17342. var t1 = new A.SassColor0(_red, _green, _blue, null, null, null, alpha == null ? 1 : A.fuzzyAssertRange0(alpha, 0, 1, "alpha"), format);
  17343. A.RangeError_checkValueInInterval(t1.get$red(t1), 0, 255, "red");
  17344. A.RangeError_checkValueInInterval(t1.get$green(t1), 0, 255, "green");
  17345. A.RangeError_checkValueInInterval(t1.get$blue(t1), 0, 255, "blue");
  17346. return t1;
  17347. },
  17348. SassColor$hsl(hue, saturation, lightness, alpha) {
  17349. var _null = null,
  17350. t1 = B.JSNumber_methods.$mod(hue, 360),
  17351. t2 = A.fuzzyAssertRange0(saturation, 0, 100, "saturation"),
  17352. t3 = A.fuzzyAssertRange0(lightness, 0, 100, "lightness");
  17353. return new A.SassColor0(_null, _null, _null, t1, t2, t3, alpha == null ? 1 : A.fuzzyAssertRange0(alpha, 0, 1, "alpha"), _null);
  17354. },
  17355. SassColor$hslInternal0(hue, saturation, lightness, alpha, format) {
  17356. var t1 = B.JSNumber_methods.$mod(hue, 360),
  17357. t2 = A.fuzzyAssertRange0(saturation, 0, 100, "saturation"),
  17358. t3 = A.fuzzyAssertRange0(lightness, 0, 100, "lightness");
  17359. return new A.SassColor0(null, null, null, t1, t2, t3, alpha == null ? 1 : A.fuzzyAssertRange0(alpha, 0, 1, "alpha"), format);
  17360. },
  17361. SassColor_SassColor$hwb0(hue, whiteness, blackness, alpha) {
  17362. var t2, t1 = {},
  17363. scaledHue = B.JSNumber_methods.$mod(hue, 360) / 360,
  17364. scaledWhiteness = t1.scaledWhiteness = A.fuzzyAssertRange0(whiteness, 0, 100, "whiteness") / 100,
  17365. scaledBlackness = A.fuzzyAssertRange0(blackness, 0, 100, "blackness") / 100,
  17366. sum = scaledWhiteness + scaledBlackness;
  17367. if (sum > 1) {
  17368. t2 = t1.scaledWhiteness = scaledWhiteness / sum;
  17369. scaledBlackness /= sum;
  17370. } else
  17371. t2 = scaledWhiteness;
  17372. t2 = new A.SassColor_SassColor$hwb_toRgb0(t1, 1 - t2 - scaledBlackness);
  17373. return A.SassColor$rgb0(t2.call$1(scaledHue + 0.3333333333333333), t2.call$1(scaledHue), t2.call$1(scaledHue - 0.3333333333333333), alpha);
  17374. },
  17375. SassColor__hueToRgb0(m1, m2, hue) {
  17376. if (hue < 0)
  17377. ++hue;
  17378. if (hue > 1)
  17379. --hue;
  17380. if (hue < 0.16666666666666666)
  17381. return m1 + (m2 - m1) * hue * 6;
  17382. else if (hue < 0.5)
  17383. return m2;
  17384. else if (hue < 0.6666666666666666)
  17385. return m1 + (m2 - m1) * (0.6666666666666666 - hue) * 6;
  17386. else
  17387. return m1;
  17388. },
  17389. SassColor0: function SassColor0(t0, t1, t2, t3, t4, t5, t6, t7) {
  17390. var _ = this;
  17391. _._color1$_red = t0;
  17392. _._color1$_green = t1;
  17393. _._color1$_blue = t2;
  17394. _._color1$_hue = t3;
  17395. _._color1$_saturation = t4;
  17396. _._color1$_lightness = t5;
  17397. _._color1$_alpha = t6;
  17398. _.format = t7;
  17399. },
  17400. SassColor_SassColor$hwb_toRgb0: function SassColor_SassColor$hwb_toRgb0(t0, t1) {
  17401. this._box_0 = t0;
  17402. this.factor = t1;
  17403. },
  17404. _ColorFormatEnum0: function _ColorFormatEnum0(t0) {
  17405. this._color1$_name = t0;
  17406. },
  17407. SpanColorFormat0: function SpanColorFormat0(t0) {
  17408. this._color1$_span = t0;
  17409. },
  17410. Combinator0: function Combinator0(t0, t1) {
  17411. this._combinator0$_text = t0;
  17412. this._name = t1;
  17413. },
  17414. ModifiableCssComment0: function ModifiableCssComment0(t0, t1) {
  17415. var _ = this;
  17416. _.text = t0;
  17417. _.span = t1;
  17418. _._node0$_indexInParent = _._node0$_parent = null;
  17419. _.isGroupEnd = false;
  17420. },
  17421. compile0(path, options) {
  17422. var result, error, stackTrace, t2, t3, t4, t5, t6, t7, t8, t9, t10, exception, _null = null,
  17423. t1 = options == null,
  17424. color0 = t1 ? _null : J.get$alertColor$x(options),
  17425. color = color0 == null ? J.$eq$(self.process.stdout.isTTY, true) : color0,
  17426. ascii0 = t1 ? _null : J.get$alertAscii$x(options),
  17427. ascii = ascii0 == null ? $._glyphs === B.C_AsciiGlyphSet : ascii0;
  17428. try {
  17429. t2 = t1 ? _null : J.get$loadPaths$x(options);
  17430. t3 = t1 ? _null : J.get$quietDeps$x(options);
  17431. if (t3 == null)
  17432. t3 = false;
  17433. t4 = A._parseOutputStyle0(t1 ? _null : J.get$style$x(options));
  17434. t5 = t1 ? _null : J.get$verbose$x(options);
  17435. if (t5 == null)
  17436. t5 = false;
  17437. t6 = t1 ? _null : J.get$charset$x(options);
  17438. if (t6 == null)
  17439. t6 = true;
  17440. t7 = t1 ? _null : J.get$sourceMap$x(options);
  17441. if (t7 == null)
  17442. t7 = false;
  17443. t8 = t1 ? _null : J.get$logger$x(options);
  17444. t9 = ascii;
  17445. if (t9 == null)
  17446. t9 = $._glyphs === B.C_AsciiGlyphSet;
  17447. t9 = new A.NodeToDartLogger(t8, new A.StderrLogger0(color), t9);
  17448. if (t1)
  17449. t8 = _null;
  17450. else {
  17451. t8 = J.get$importers$x(options);
  17452. t8 = t8 == null ? _null : J.map$1$1$ax(t8, A.compile___parseImporter$closure(), type$.Importer);
  17453. }
  17454. t10 = A._parseFunctions0(t1 ? _null : J.get$functions$x(options), false);
  17455. result = A.compile(path, t6, new A.CastList(t10, A._arrayInstanceType(t10)._eval$1("CastList<1,Callable0>")), A.ImportCache$0(t8, t2, t9, _null), _null, _null, t9, _null, t3, t7, t4, _null, true, t5);
  17456. t1 = t1 ? _null : J.get$sourceMapIncludeSources$x(options);
  17457. if (t1 == null)
  17458. t1 = false;
  17459. t1 = A._convertResult(result, t1);
  17460. return t1;
  17461. } catch (exception) {
  17462. t1 = A.unwrapException(exception);
  17463. if (t1 instanceof A.SassException0) {
  17464. error = t1;
  17465. stackTrace = A.getTraceFromException(exception);
  17466. A.throwNodeException(error, ascii, color, stackTrace);
  17467. } else
  17468. throw exception;
  17469. }
  17470. },
  17471. compileString0(text, options) {
  17472. var result, error, stackTrace, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, exception, _null = null,
  17473. t1 = options == null,
  17474. color0 = t1 ? _null : J.get$alertColor$x(options),
  17475. color = color0 == null ? J.$eq$(self.process.stdout.isTTY, true) : color0,
  17476. ascii0 = t1 ? _null : J.get$alertAscii$x(options),
  17477. ascii = ascii0 == null ? $._glyphs === B.C_AsciiGlyphSet : ascii0;
  17478. try {
  17479. t2 = A.parseSyntax(t1 ? _null : J.get$syntax$x(options));
  17480. t3 = t1 ? _null : A.NullableExtension_andThen0(J.get$url$x(options), A.utils1__jsToDartUrl$closure());
  17481. t4 = t1 ? _null : J.get$loadPaths$x(options);
  17482. t5 = t1 ? _null : J.get$quietDeps$x(options);
  17483. if (t5 == null)
  17484. t5 = false;
  17485. t6 = A._parseOutputStyle0(t1 ? _null : J.get$style$x(options));
  17486. t7 = t1 ? _null : J.get$verbose$x(options);
  17487. if (t7 == null)
  17488. t7 = false;
  17489. t8 = t1 ? _null : J.get$charset$x(options);
  17490. if (t8 == null)
  17491. t8 = true;
  17492. t9 = t1 ? _null : J.get$sourceMap$x(options);
  17493. if (t9 == null)
  17494. t9 = false;
  17495. t10 = t1 ? _null : J.get$logger$x(options);
  17496. t11 = ascii;
  17497. if (t11 == null)
  17498. t11 = $._glyphs === B.C_AsciiGlyphSet;
  17499. t11 = new A.NodeToDartLogger(t10, new A.StderrLogger0(color), t11);
  17500. if (t1)
  17501. t10 = _null;
  17502. else {
  17503. t10 = J.get$importers$x(options);
  17504. t10 = t10 == null ? _null : J.map$1$1$ax(t10, A.compile___parseImporter$closure(), type$.Importer);
  17505. }
  17506. t12 = t1 ? _null : A.NullableExtension_andThen0(J.get$importer$x(options), A.compile___parseImporter$closure());
  17507. if (t12 == null)
  17508. t12 = (t1 ? _null : J.get$url$x(options)) == null ? new A.NoOpImporter() : _null;
  17509. t13 = A._parseFunctions0(t1 ? _null : J.get$functions$x(options), false);
  17510. result = A.compileString(text, t8, new A.CastList(t13, A._arrayInstanceType(t13)._eval$1("CastList<1,Callable0>")), A.ImportCache$0(t10, t4, t11, _null), t12, _null, _null, t11, _null, t5, t9, t6, t2, t3, true, t7);
  17511. t1 = t1 ? _null : J.get$sourceMapIncludeSources$x(options);
  17512. if (t1 == null)
  17513. t1 = false;
  17514. t1 = A._convertResult(result, t1);
  17515. return t1;
  17516. } catch (exception) {
  17517. t1 = A.unwrapException(exception);
  17518. if (t1 instanceof A.SassException0) {
  17519. error = t1;
  17520. stackTrace = A.getTraceFromException(exception);
  17521. A.throwNodeException(error, ascii, color, stackTrace);
  17522. } else
  17523. throw exception;
  17524. }
  17525. },
  17526. compileAsync1(path, options) {
  17527. var ascii,
  17528. t1 = options == null,
  17529. color = t1 ? null : J.get$alertColor$x(options);
  17530. if (color == null)
  17531. color = J.$eq$(self.process.stdout.isTTY, true);
  17532. ascii = t1 ? null : J.get$alertAscii$x(options);
  17533. if (ascii == null)
  17534. ascii = $._glyphs === B.C_AsciiGlyphSet;
  17535. return A._wrapAsyncSassExceptions(A.futureToPromise0(new A.compileAsync_closure(path, color, options, ascii).call$0()), ascii, color);
  17536. },
  17537. compileStringAsync1(text, options) {
  17538. var ascii,
  17539. t1 = options == null,
  17540. color = t1 ? null : J.get$alertColor$x(options);
  17541. if (color == null)
  17542. color = J.$eq$(self.process.stdout.isTTY, true);
  17543. ascii = t1 ? null : J.get$alertAscii$x(options);
  17544. if (ascii == null)
  17545. ascii = $._glyphs === B.C_AsciiGlyphSet;
  17546. return A._wrapAsyncSassExceptions(A.futureToPromise0(new A.compileStringAsync_closure(text, options, color, ascii).call$0()), ascii, color);
  17547. },
  17548. _convertResult(result, includeSourceContents) {
  17549. var loadedUrls,
  17550. t1 = result._compile_result$_serialize,
  17551. t2 = t1.sourceMap,
  17552. sourceMap = t2 == null ? null : t2.toJson$1$includeSourceContents(includeSourceContents);
  17553. if (type$.Map_String_dynamic._is(sourceMap) && !sourceMap.containsKey$1("sources"))
  17554. sourceMap.$indexSet(0, "sources", A._setArrayType([], type$.JSArray_String));
  17555. t2 = result._evaluate.loadedUrls;
  17556. loadedUrls = A.toJSArray(new A.EfficientLengthMappedIterable(t2, A.utils1__dartToJSUrl$closure(), A._instanceType(t2)._eval$1("EfficientLengthMappedIterable<1,Object?>")));
  17557. t1 = t1.css;
  17558. return sourceMap == null ? {css: t1, loadedUrls: loadedUrls} : {css: t1, sourceMap: A.jsify(sourceMap), loadedUrls: loadedUrls};
  17559. },
  17560. _wrapAsyncSassExceptions(promise, ascii, color) {
  17561. return J.then$2$x(promise, null, A.allowInterop(new A._wrapAsyncSassExceptions_closure(color, ascii)));
  17562. },
  17563. _parseOutputStyle0(style) {
  17564. if (style == null || style === "expanded")
  17565. return B.OutputStyle_00;
  17566. if (style === "compressed")
  17567. return B.OutputStyle_10;
  17568. A.jsThrow(new self.Error('Unknown output style "' + A.S(style) + '".'));
  17569. },
  17570. _parseAsyncImporter(importer) {
  17571. var t1, findFileUrl, canonicalize, load;
  17572. if (importer == null)
  17573. A.jsThrow(new self.Error("Importers may not be null."));
  17574. type$.NodeImporter._as(importer);
  17575. t1 = J.getInterceptor$x(importer);
  17576. findFileUrl = t1.get$findFileUrl(importer);
  17577. canonicalize = t1.get$canonicalize(importer);
  17578. load = t1.get$load(importer);
  17579. if (findFileUrl == null) {
  17580. if (canonicalize == null || load == null)
  17581. A.jsThrow(new self.Error(string$.An_impu));
  17582. return new A.NodeToDartAsyncImporter(canonicalize, load);
  17583. } else if (canonicalize != null || load != null)
  17584. A.jsThrow(new self.Error(string$.An_impa));
  17585. else
  17586. return new A.NodeToDartAsyncFileImporter(findFileUrl);
  17587. },
  17588. _parseImporter0(importer) {
  17589. var t1, findFileUrl, canonicalize, load;
  17590. if (importer == null)
  17591. A.jsThrow(new self.Error("Importers may not be null."));
  17592. type$.NodeImporter._as(importer);
  17593. t1 = J.getInterceptor$x(importer);
  17594. findFileUrl = t1.get$findFileUrl(importer);
  17595. canonicalize = t1.get$canonicalize(importer);
  17596. load = t1.get$load(importer);
  17597. if (findFileUrl == null) {
  17598. if (canonicalize == null || load == null)
  17599. A.jsThrow(new self.Error(string$.An_impu));
  17600. return new A.NodeToDartImporter(canonicalize, load);
  17601. } else if (canonicalize != null || load != null)
  17602. A.jsThrow(new self.Error(string$.An_impa));
  17603. else
  17604. return new A.NodeToDartFileImporter(findFileUrl);
  17605. },
  17606. _parseFunctions0(functions, asynch) {
  17607. var result;
  17608. if (functions == null)
  17609. return B.List_empty24;
  17610. result = A._setArrayType([], type$.JSArray_AsyncCallable_2);
  17611. A.jsForEach(functions, new A._parseFunctions_closure0(asynch, result));
  17612. return result;
  17613. },
  17614. compileAsync_closure: function compileAsync_closure(t0, t1, t2, t3) {
  17615. var _ = this;
  17616. _.path = t0;
  17617. _.color = t1;
  17618. _.options = t2;
  17619. _.ascii = t3;
  17620. },
  17621. compileAsync__closure: function compileAsync__closure() {
  17622. },
  17623. compileStringAsync_closure: function compileStringAsync_closure(t0, t1, t2, t3) {
  17624. var _ = this;
  17625. _.text = t0;
  17626. _.options = t1;
  17627. _.color = t2;
  17628. _.ascii = t3;
  17629. },
  17630. compileStringAsync__closure: function compileStringAsync__closure() {
  17631. },
  17632. compileStringAsync__closure0: function compileStringAsync__closure0() {
  17633. },
  17634. _wrapAsyncSassExceptions_closure: function _wrapAsyncSassExceptions_closure(t0, t1) {
  17635. this.color = t0;
  17636. this.ascii = t1;
  17637. },
  17638. _parseFunctions_closure0: function _parseFunctions_closure0(t0, t1) {
  17639. this.asynch = t0;
  17640. this.result = t1;
  17641. },
  17642. _parseFunctions__closure2: function _parseFunctions__closure2(t0, t1) {
  17643. this.callback = t0;
  17644. this.callable = t1;
  17645. },
  17646. _parseFunctions__closure3: function _parseFunctions__closure3(t0, t1) {
  17647. this.callback = t0;
  17648. this.callable = t1;
  17649. },
  17650. compile(path, charset, functions, importCache, indentWidth, lineFeed, logger, nodeImporter, quietDeps, sourceMap, style, syntax, useSpaces, verbose) {
  17651. var terseLogger, t1, t2, t3, t4, t0, stylesheet, result, _null = null;
  17652. if (!verbose) {
  17653. terseLogger = new A.TerseLogger0(A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.int), logger);
  17654. logger = terseLogger;
  17655. } else
  17656. terseLogger = _null;
  17657. t1 = nodeImporter == null;
  17658. if (t1)
  17659. t2 = syntax == null || syntax === A.Syntax_forPath0(path);
  17660. else
  17661. t2 = false;
  17662. if (t2) {
  17663. if (importCache == null)
  17664. importCache = A.ImportCache$none(logger);
  17665. t2 = A.absolute(".", _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null);
  17666. if (J.$eq$(J.get$platform$x(self.process), "win32") || J.$eq$(J.get$platform$x(self.process), "darwin")) {
  17667. t3 = $.$get$context();
  17668. t4 = A._realCasePath0(A.absolute(t3.normalize$1(path), _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null));
  17669. t0 = t4;
  17670. t4 = t3;
  17671. t3 = t0;
  17672. } else {
  17673. t3 = $.$get$context();
  17674. t4 = t3.canonicalize$1(0, path);
  17675. t0 = t4;
  17676. t4 = t3;
  17677. t3 = t0;
  17678. }
  17679. t4 = importCache.importCanonical$3$originalUrl(new A.FilesystemImporter0(t2), t4.toUri$1(t3), t4.toUri$1(path));
  17680. t4.toString;
  17681. stylesheet = t4;
  17682. } else {
  17683. t2 = A.readFile0(path);
  17684. t3 = syntax == null ? A.Syntax_forPath0(path) : syntax;
  17685. stylesheet = A.Stylesheet_Stylesheet$parse0(t2, t3, logger, $.$get$context().toUri$1(path));
  17686. }
  17687. result = A._compileStylesheet1(stylesheet, logger, importCache, nodeImporter, new A.FilesystemImporter0(A.absolute(".", _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null)), functions, style, useSpaces, indentWidth, lineFeed, quietDeps, sourceMap, charset);
  17688. if (terseLogger != null)
  17689. terseLogger.summarize$1$node(!t1);
  17690. return result;
  17691. },
  17692. compileString(source, charset, functions, importCache, importer, indentWidth, lineFeed, logger, nodeImporter, quietDeps, sourceMap, style, syntax, url, useSpaces, verbose) {
  17693. var terseLogger, stylesheet, result, _null = null;
  17694. if (!verbose) {
  17695. terseLogger = new A.TerseLogger0(A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.int), logger);
  17696. logger = terseLogger;
  17697. } else
  17698. terseLogger = _null;
  17699. stylesheet = A.Stylesheet_Stylesheet$parse0(source, syntax == null ? B.Syntax_SCSS_scss0 : syntax, logger, url);
  17700. result = A._compileStylesheet1(stylesheet, logger, importCache, nodeImporter, importer == null ? new A.FilesystemImporter0(A.absolute(".", _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null)) : importer, functions, style, useSpaces, indentWidth, lineFeed, quietDeps, sourceMap, charset);
  17701. if (terseLogger != null)
  17702. terseLogger.summarize$1$node(nodeImporter != null);
  17703. return result;
  17704. },
  17705. _compileStylesheet1(stylesheet, logger, importCache, nodeImporter, importer, functions, style, useSpaces, indentWidth, lineFeed, quietDeps, sourceMap, charset) {
  17706. var evaluateResult = A._EvaluateVisitor$1(functions, importCache, logger, nodeImporter, quietDeps, sourceMap).run$2(0, importer, stylesheet),
  17707. serializeResult = A.serialize0(evaluateResult.stylesheet, charset, indentWidth, false, lineFeed, sourceMap, style, useSpaces),
  17708. resultSourceMap = serializeResult.sourceMap;
  17709. if (resultSourceMap != null && importCache != null)
  17710. A.mapInPlace0(resultSourceMap.urls, new A._compileStylesheet_closure1(stylesheet, importCache));
  17711. return new A.CompileResult0(evaluateResult, serializeResult);
  17712. },
  17713. _compileStylesheet_closure1: function _compileStylesheet_closure1(t0, t1) {
  17714. this.stylesheet = t0;
  17715. this.importCache = t1;
  17716. },
  17717. CompileOptions: function CompileOptions() {
  17718. },
  17719. CompileStringOptions: function CompileStringOptions() {
  17720. },
  17721. NodeCompileResult: function NodeCompileResult() {
  17722. },
  17723. CompileResult0: function CompileResult0(t0, t1) {
  17724. this._evaluate = t0;
  17725. this._compile_result$_serialize = t1;
  17726. },
  17727. ComplexSassNumber0: function ComplexSassNumber0(t0, t1, t2, t3) {
  17728. var _ = this;
  17729. _._complex0$_numeratorUnits = t0;
  17730. _._complex0$_denominatorUnits = t1;
  17731. _._number1$_value = t2;
  17732. _.hashCache = null;
  17733. _.asSlash = t3;
  17734. },
  17735. ComplexSelector$0(leadingCombinators, components, lineBreak) {
  17736. var t1 = A.List_List$unmodifiable(leadingCombinators, type$.Combinator_2),
  17737. t2 = A.List_List$unmodifiable(components, type$.ComplexSelectorComponent_2);
  17738. if (t1.length === 0 && t2.length === 0)
  17739. A.throwExpression(A.ArgumentError$(string$.leadin, null));
  17740. return new A.ComplexSelector0(t1, t2, lineBreak);
  17741. },
  17742. ComplexSelector0: function ComplexSelector0(t0, t1, t2) {
  17743. var _ = this;
  17744. _.leadingCombinators = t0;
  17745. _.components = t1;
  17746. _.lineBreak = t2;
  17747. _._complex$__ComplexSelector_specificity_FI = $;
  17748. },
  17749. ComplexSelector_specificity_closure0: function ComplexSelector_specificity_closure0() {
  17750. },
  17751. ComplexSelectorComponent0: function ComplexSelectorComponent0(t0, t1) {
  17752. this.selector = t0;
  17753. this.combinators = t1;
  17754. },
  17755. ComplexSelectorComponent_toString_closure0: function ComplexSelectorComponent_toString_closure0() {
  17756. },
  17757. CompoundSelector$0(components) {
  17758. var t1 = A.List_List$unmodifiable(components, type$.SimpleSelector_2);
  17759. if (t1.length === 0)
  17760. A.throwExpression(A.ArgumentError$("components may not be empty.", null));
  17761. return new A.CompoundSelector0(t1);
  17762. },
  17763. CompoundSelector0: function CompoundSelector0(t0) {
  17764. this.components = t0;
  17765. this._compound$__CompoundSelector_specificity_FI = $;
  17766. },
  17767. CompoundSelector_specificity_closure0: function CompoundSelector_specificity_closure0() {
  17768. },
  17769. Configuration0: function Configuration0(t0, t1) {
  17770. this._configuration$_values = t0;
  17771. this._configuration$__originalConfiguration = t1;
  17772. },
  17773. Configuration_toString_closure0: function Configuration_toString_closure0() {
  17774. },
  17775. ExplicitConfiguration0: function ExplicitConfiguration0(t0, t1, t2) {
  17776. this.nodeWithSpan = t0;
  17777. this._configuration$_values = t1;
  17778. this._configuration$__originalConfiguration = t2;
  17779. },
  17780. ConfiguredValue0: function ConfiguredValue0(t0, t1, t2) {
  17781. this.value = t0;
  17782. this.configurationSpan = t1;
  17783. this.assignmentNode = t2;
  17784. },
  17785. ConfiguredVariable0: function ConfiguredVariable0(t0, t1, t2, t3) {
  17786. var _ = this;
  17787. _.name = t0;
  17788. _.expression = t1;
  17789. _.isGuarded = t2;
  17790. _.span = t3;
  17791. },
  17792. ContentBlock$0($arguments, children, span) {
  17793. var t1 = A.List_List$unmodifiable(children, type$.Statement_2),
  17794. t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure0());
  17795. return new A.ContentBlock0("@content", $arguments, span, t1, t2);
  17796. },
  17797. ContentBlock0: function ContentBlock0(t0, t1, t2, t3, t4) {
  17798. var _ = this;
  17799. _.name = t0;
  17800. _.$arguments = t1;
  17801. _.span = t2;
  17802. _.children = t3;
  17803. _.hasDeclarations = t4;
  17804. },
  17805. ContentRule0: function ContentRule0(t0, t1) {
  17806. this.$arguments = t0;
  17807. this.span = t1;
  17808. },
  17809. _disallowedFunctionNames_closure0: function _disallowedFunctionNames_closure0() {
  17810. },
  17811. CssParser0: function CssParser0(t0, t1, t2) {
  17812. var _ = this;
  17813. _._stylesheet0$_isUseAllowed = true;
  17814. _._stylesheet0$_inParentheses = _._stylesheet0$_inStyleRule = _._stylesheet0$_inUnknownAtRule = _._stylesheet0$_inControlDirective = _._stylesheet0$_inContentBlock = _._stylesheet0$_inMixin = false;
  17815. _._stylesheet0$_globalVariables = t0;
  17816. _.lastSilentComment = null;
  17817. _.scanner = t1;
  17818. _.logger = t2;
  17819. },
  17820. DebugRule0: function DebugRule0(t0, t1) {
  17821. this.expression = t0;
  17822. this.span = t1;
  17823. },
  17824. ModifiableCssDeclaration$0($name, value, span, parsedAsCustomProperty, valueSpanForMap) {
  17825. var t1 = valueSpanForMap == null ? value.get$span(value) : valueSpanForMap;
  17826. if (parsedAsCustomProperty)
  17827. if (!J.startsWith$1$s($name.get$value($name), "--"))
  17828. A.throwExpression(A.ArgumentError$(string$.parsed, null));
  17829. else if (!(value.get$value(value) instanceof A.SassString0))
  17830. A.throwExpression(A.ArgumentError$(string$.If_par + value.toString$0(0) + "` of type " + A.getRuntimeType(value.get$value(value)).toString$0(0) + ").", null));
  17831. return new A.ModifiableCssDeclaration0($name, value, parsedAsCustomProperty, t1, span);
  17832. },
  17833. ModifiableCssDeclaration0: function ModifiableCssDeclaration0(t0, t1, t2, t3, t4) {
  17834. var _ = this;
  17835. _.name = t0;
  17836. _.value = t1;
  17837. _.parsedAsCustomProperty = t2;
  17838. _.valueSpanForMap = t3;
  17839. _.span = t4;
  17840. _._node0$_indexInParent = _._node0$_parent = null;
  17841. _.isGroupEnd = false;
  17842. },
  17843. Declaration$0($name, value, span) {
  17844. if (B.JSString_methods.startsWith$1($name.get$initialPlain(), "--") && !(value instanceof A.StringExpression0))
  17845. A.throwExpression(A.ArgumentError$(string$.Declarwu + value.toString$0(0) + "` of type " + value.get$runtimeType(value).toString$0(0) + ").", null));
  17846. return new A.Declaration0($name, value, span, null, false);
  17847. },
  17848. Declaration$nested0($name, children, span, value) {
  17849. var t1 = A.List_List$unmodifiable(children, type$.Statement_2),
  17850. t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure0());
  17851. if (B.JSString_methods.startsWith$1($name.get$initialPlain(), "--") && !(value instanceof A.StringExpression0))
  17852. A.throwExpression(A.ArgumentError$(string$.Declarwa, null));
  17853. return new A.Declaration0($name, value, span, t1, t2);
  17854. },
  17855. Declaration0: function Declaration0(t0, t1, t2, t3, t4) {
  17856. var _ = this;
  17857. _.name = t0;
  17858. _.value = t1;
  17859. _.span = t2;
  17860. _.children = t3;
  17861. _.hasDeclarations = t4;
  17862. },
  17863. SupportsDeclaration0: function SupportsDeclaration0(t0, t1, t2) {
  17864. this.name = t0;
  17865. this.value = t1;
  17866. this.span = t2;
  17867. },
  17868. DynamicImport0: function DynamicImport0(t0, t1) {
  17869. this.urlString = t0;
  17870. this.span = t1;
  17871. },
  17872. EachRule$0(variables, list, children, span) {
  17873. var t1 = A.List_List$unmodifiable(variables, type$.String),
  17874. t2 = A.List_List$unmodifiable(children, type$.Statement_2),
  17875. t3 = B.JSArray_methods.any$1(t2, new A.ParentStatement_closure0());
  17876. return new A.EachRule0(t1, list, span, t2, t3);
  17877. },
  17878. EachRule0: function EachRule0(t0, t1, t2, t3, t4) {
  17879. var _ = this;
  17880. _.variables = t0;
  17881. _.list = t1;
  17882. _.span = t2;
  17883. _.children = t3;
  17884. _.hasDeclarations = t4;
  17885. },
  17886. EachRule_toString_closure0: function EachRule_toString_closure0() {
  17887. },
  17888. EmptyExtensionStore0: function EmptyExtensionStore0() {
  17889. },
  17890. Environment$0() {
  17891. var t1 = type$.String,
  17892. t2 = type$.Module_Callable_2,
  17893. t3 = type$.AstNode_2,
  17894. t4 = type$.int,
  17895. t5 = type$.Callable_2,
  17896. t6 = type$.JSArray_Map_String_Callable_2;
  17897. return new A.Environment0(A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), A.LinkedHashMap_LinkedHashMap$_empty(t1, t3), A.LinkedHashMap_LinkedHashMap$_empty(t2, t3), A.LinkedHashMap_LinkedHashMap$_empty(t2, t3), null, null, A._setArrayType([], type$.JSArray_Module_Callable_2), A._setArrayType([A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Value_2)], type$.JSArray_Map_String_Value_2), A._setArrayType([A.LinkedHashMap_LinkedHashMap$_empty(t1, t3)], type$.JSArray_Map_String_AstNode_2), A.LinkedHashMap_LinkedHashMap$_empty(t1, t4), A._setArrayType([A.LinkedHashMap_LinkedHashMap$_empty(t1, t5)], t6), A.LinkedHashMap_LinkedHashMap$_empty(t1, t4), A._setArrayType([A.LinkedHashMap_LinkedHashMap$_empty(t1, t5)], t6), A.LinkedHashMap_LinkedHashMap$_empty(t1, t4), null);
  17898. },
  17899. Environment$_0(_modules, _namespaceNodes, _globalModules, _importedModules, _forwardedModules, _nestedForwardedModules, _allModules, _variables, _variableNodes, _functions, _mixins, _content) {
  17900. var t1 = type$.String,
  17901. t2 = type$.int;
  17902. return new A.Environment0(_modules, _namespaceNodes, _globalModules, _importedModules, _forwardedModules, _nestedForwardedModules, _allModules, _variables, _variableNodes, A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _functions, A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _mixins, A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _content);
  17903. },
  17904. _EnvironmentModule__EnvironmentModule1(environment, css, extensionStore, forwarded) {
  17905. var t1, t2, t3, t4, t5, t6;
  17906. if (forwarded == null)
  17907. forwarded = B.Set_empty3;
  17908. t1 = A._EnvironmentModule__makeModulesByVariable1(forwarded);
  17909. t2 = A._EnvironmentModule__memberMap1(B.JSArray_methods.get$first(environment._environment0$_variables), forwarded.map$1$1(0, new A._EnvironmentModule__EnvironmentModule_closure11(), type$.Map_String_Value_2), type$.Value_2);
  17910. t3 = A._EnvironmentModule__memberMap1(B.JSArray_methods.get$first(environment._environment0$_variableNodes), forwarded.map$1$1(0, new A._EnvironmentModule__EnvironmentModule_closure12(), type$.Map_String_AstNode_2), type$.AstNode_2);
  17911. t4 = type$.Map_String_Callable_2;
  17912. t5 = type$.Callable_2;
  17913. t6 = A._EnvironmentModule__memberMap1(B.JSArray_methods.get$first(environment._environment0$_functions), forwarded.map$1$1(0, new A._EnvironmentModule__EnvironmentModule_closure13(), t4), t5);
  17914. t5 = A._EnvironmentModule__memberMap1(B.JSArray_methods.get$first(environment._environment0$_mixins), forwarded.map$1$1(0, new A._EnvironmentModule__EnvironmentModule_closure14(), t4), t5);
  17915. t4 = J.get$isNotEmpty$asx(css.get$children(css)) || B.JSArray_methods.any$1(environment._environment0$_allModules, new A._EnvironmentModule__EnvironmentModule_closure15());
  17916. return A._EnvironmentModule$_1(environment, css, extensionStore, t1, t2, t3, t6, t5, t4, !extensionStore.get$isEmpty(extensionStore) || B.JSArray_methods.any$1(environment._environment0$_allModules, new A._EnvironmentModule__EnvironmentModule_closure16()));
  17917. },
  17918. _EnvironmentModule__makeModulesByVariable1(forwarded) {
  17919. var modulesByVariable, t1, t2, t3, t4, t5;
  17920. if (forwarded.get$isEmpty(forwarded))
  17921. return B.Map_empty6;
  17922. modulesByVariable = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.Module_Callable_2);
  17923. for (t1 = forwarded.get$iterator(forwarded); t1.moveNext$0();) {
  17924. t2 = t1.get$current(t1);
  17925. if (t2 instanceof A._EnvironmentModule1) {
  17926. for (t3 = t2._environment0$_modulesByVariable, t3 = t3.get$values(t3), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  17927. t4 = t3.get$current(t3);
  17928. t5 = t4.get$variables();
  17929. A.setAll0(modulesByVariable, t5.get$keys(t5), t4);
  17930. }
  17931. A.setAll0(modulesByVariable, J.get$keys$z(B.JSArray_methods.get$first(t2._environment0$_environment._environment0$_variables)), t2);
  17932. } else {
  17933. t3 = t2.get$variables();
  17934. A.setAll0(modulesByVariable, t3.get$keys(t3), t2);
  17935. }
  17936. }
  17937. return modulesByVariable;
  17938. },
  17939. _EnvironmentModule__memberMap1(localMap, otherMaps, $V) {
  17940. var t1, t2, t3;
  17941. localMap = new A.PublicMemberMapView0(localMap, $V._eval$1("PublicMemberMapView0<0>"));
  17942. if (otherMaps.get$isEmpty(otherMaps))
  17943. return localMap;
  17944. t1 = A._setArrayType([], $V._eval$1("JSArray<Map<String,0>>"));
  17945. for (t2 = otherMaps.get$iterator(otherMaps); t2.moveNext$0();) {
  17946. t3 = t2.get$current(t2);
  17947. if (t3.get$isNotEmpty(t3))
  17948. t1.push(t3);
  17949. }
  17950. t1.push(localMap);
  17951. if (t1.length === 1)
  17952. return localMap;
  17953. return A.MergedMapView$0(t1, type$.String, $V);
  17954. },
  17955. _EnvironmentModule$_1(_environment, css, extensionStore, _modulesByVariable, variables, variableNodes, functions, mixins, transitivelyContainsCss, transitivelyContainsExtensions) {
  17956. return new A._EnvironmentModule1(_environment._environment0$_allModules, variables, variableNodes, functions, mixins, extensionStore, css, transitivelyContainsCss, transitivelyContainsExtensions, _environment, _modulesByVariable);
  17957. },
  17958. Environment0: function Environment0(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14) {
  17959. var _ = this;
  17960. _._environment0$_modules = t0;
  17961. _._environment0$_namespaceNodes = t1;
  17962. _._environment0$_globalModules = t2;
  17963. _._environment0$_importedModules = t3;
  17964. _._environment0$_forwardedModules = t4;
  17965. _._environment0$_nestedForwardedModules = t5;
  17966. _._environment0$_allModules = t6;
  17967. _._environment0$_variables = t7;
  17968. _._environment0$_variableNodes = t8;
  17969. _._environment0$_variableIndices = t9;
  17970. _._environment0$_functions = t10;
  17971. _._environment0$_functionIndices = t11;
  17972. _._environment0$_mixins = t12;
  17973. _._environment0$_mixinIndices = t13;
  17974. _._environment0$_content = t14;
  17975. _._environment0$_inMixin = false;
  17976. _._environment0$_inSemiGlobalScope = true;
  17977. _._environment0$_lastVariableIndex = _._environment0$_lastVariableName = null;
  17978. },
  17979. Environment_importForwards_closure2: function Environment_importForwards_closure2() {
  17980. },
  17981. Environment_importForwards_closure3: function Environment_importForwards_closure3() {
  17982. },
  17983. Environment_importForwards_closure4: function Environment_importForwards_closure4() {
  17984. },
  17985. Environment__getVariableFromGlobalModule_closure0: function Environment__getVariableFromGlobalModule_closure0(t0) {
  17986. this.name = t0;
  17987. },
  17988. Environment_setVariable_closure2: function Environment_setVariable_closure2(t0, t1) {
  17989. this.$this = t0;
  17990. this.name = t1;
  17991. },
  17992. Environment_setVariable_closure3: function Environment_setVariable_closure3(t0) {
  17993. this.name = t0;
  17994. },
  17995. Environment_setVariable_closure4: function Environment_setVariable_closure4(t0, t1) {
  17996. this.$this = t0;
  17997. this.name = t1;
  17998. },
  17999. Environment__getFunctionFromGlobalModule_closure0: function Environment__getFunctionFromGlobalModule_closure0(t0) {
  18000. this.name = t0;
  18001. },
  18002. Environment__getMixinFromGlobalModule_closure0: function Environment__getMixinFromGlobalModule_closure0(t0) {
  18003. this.name = t0;
  18004. },
  18005. Environment_toModule_closure0: function Environment_toModule_closure0() {
  18006. },
  18007. Environment_toDummyModule_closure0: function Environment_toDummyModule_closure0() {
  18008. },
  18009. Environment__fromOneModule_closure0: function Environment__fromOneModule_closure0(t0, t1) {
  18010. this.callback = t0;
  18011. this.T = t1;
  18012. },
  18013. Environment__fromOneModule__closure0: function Environment__fromOneModule__closure0(t0, t1) {
  18014. this.entry = t0;
  18015. this.T = t1;
  18016. },
  18017. _EnvironmentModule1: function _EnvironmentModule1(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10) {
  18018. var _ = this;
  18019. _.upstream = t0;
  18020. _.variables = t1;
  18021. _.variableNodes = t2;
  18022. _.functions = t3;
  18023. _.mixins = t4;
  18024. _.extensionStore = t5;
  18025. _.css = t6;
  18026. _.transitivelyContainsCss = t7;
  18027. _.transitivelyContainsExtensions = t8;
  18028. _._environment0$_environment = t9;
  18029. _._environment0$_modulesByVariable = t10;
  18030. },
  18031. _EnvironmentModule__EnvironmentModule_closure11: function _EnvironmentModule__EnvironmentModule_closure11() {
  18032. },
  18033. _EnvironmentModule__EnvironmentModule_closure12: function _EnvironmentModule__EnvironmentModule_closure12() {
  18034. },
  18035. _EnvironmentModule__EnvironmentModule_closure13: function _EnvironmentModule__EnvironmentModule_closure13() {
  18036. },
  18037. _EnvironmentModule__EnvironmentModule_closure14: function _EnvironmentModule__EnvironmentModule_closure14() {
  18038. },
  18039. _EnvironmentModule__EnvironmentModule_closure15: function _EnvironmentModule__EnvironmentModule_closure15() {
  18040. },
  18041. _EnvironmentModule__EnvironmentModule_closure16: function _EnvironmentModule__EnvironmentModule_closure16() {
  18042. },
  18043. ErrorRule0: function ErrorRule0(t0, t1) {
  18044. this.expression = t0;
  18045. this.span = t1;
  18046. },
  18047. _EvaluateVisitor$1(functions, importCache, logger, nodeImporter, quietDeps, sourceMap) {
  18048. var t4,
  18049. t1 = type$.Uri,
  18050. t2 = type$.Module_Callable_2,
  18051. t3 = A._setArrayType([], type$.JSArray_Tuple2_String_AstNode_2);
  18052. if (nodeImporter == null)
  18053. t4 = importCache == null ? A.ImportCache$none(logger) : importCache;
  18054. else
  18055. t4 = null;
  18056. t1 = new A._EvaluateVisitor1(t4, nodeImporter, A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.Callable_2), A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Configuration_2), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.AstNode_2), logger, A.LinkedHashSet_LinkedHashSet$_empty(type$.Tuple2_String_SourceSpan), quietDeps, sourceMap, A.Environment$0(), A.LinkedHashSet_LinkedHashSet$_empty(t1), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.nullable_AstNode_2), t3, B.Configuration_Map_empty_null0);
  18057. t1._EvaluateVisitor$6$functions$importCache$logger$nodeImporter$quietDeps$sourceMap1(functions, importCache, logger, nodeImporter, quietDeps, sourceMap);
  18058. return t1;
  18059. },
  18060. _EvaluateVisitor1: function _EvaluateVisitor1(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15) {
  18061. var _ = this;
  18062. _._evaluate0$_importCache = t0;
  18063. _._evaluate0$_nodeImporter = t1;
  18064. _._evaluate0$_builtInFunctions = t2;
  18065. _._evaluate0$_builtInModules = t3;
  18066. _._evaluate0$_modules = t4;
  18067. _._evaluate0$_moduleConfigurations = t5;
  18068. _._evaluate0$_moduleNodes = t6;
  18069. _._evaluate0$_logger = t7;
  18070. _._evaluate0$_warningsEmitted = t8;
  18071. _._evaluate0$_quietDeps = t9;
  18072. _._evaluate0$_sourceMap = t10;
  18073. _._evaluate0$_environment = t11;
  18074. _._evaluate0$_declarationName = _._evaluate0$__parent = _._evaluate0$_mediaQuerySources = _._evaluate0$_mediaQueries = _._evaluate0$_styleRuleIgnoringAtRoot = null;
  18075. _._evaluate0$_member = "root stylesheet";
  18076. _._evaluate0$_importSpan = _._evaluate0$_callableNode = _._evaluate0$_currentCallable = null;
  18077. _._evaluate0$_inSupportsDeclaration = _._evaluate0$_inKeyframes = _._evaluate0$_atRootExcludingStyleRule = _._evaluate0$_inUnknownAtRule = _._evaluate0$_inFunction = false;
  18078. _._evaluate0$_loadedUrls = t12;
  18079. _._evaluate0$_activeModules = t13;
  18080. _._evaluate0$_stack = t14;
  18081. _._evaluate0$_importer = null;
  18082. _._evaluate0$_inDependency = false;
  18083. _._evaluate0$__extensionStore = _._evaluate0$_outOfOrderImports = _._evaluate0$__endOfImports = _._evaluate0$__root = _._evaluate0$__stylesheet = null;
  18084. _._evaluate0$_configuration = t15;
  18085. },
  18086. _EvaluateVisitor_closure19: function _EvaluateVisitor_closure19(t0) {
  18087. this.$this = t0;
  18088. },
  18089. _EvaluateVisitor_closure20: function _EvaluateVisitor_closure20(t0) {
  18090. this.$this = t0;
  18091. },
  18092. _EvaluateVisitor_closure21: function _EvaluateVisitor_closure21(t0) {
  18093. this.$this = t0;
  18094. },
  18095. _EvaluateVisitor_closure22: function _EvaluateVisitor_closure22(t0) {
  18096. this.$this = t0;
  18097. },
  18098. _EvaluateVisitor_closure23: function _EvaluateVisitor_closure23(t0) {
  18099. this.$this = t0;
  18100. },
  18101. _EvaluateVisitor_closure24: function _EvaluateVisitor_closure24(t0) {
  18102. this.$this = t0;
  18103. },
  18104. _EvaluateVisitor_closure25: function _EvaluateVisitor_closure25(t0) {
  18105. this.$this = t0;
  18106. },
  18107. _EvaluateVisitor_closure26: function _EvaluateVisitor_closure26(t0) {
  18108. this.$this = t0;
  18109. },
  18110. _EvaluateVisitor__closure7: function _EvaluateVisitor__closure7(t0, t1, t2) {
  18111. this.$this = t0;
  18112. this.name = t1;
  18113. this.module = t2;
  18114. },
  18115. _EvaluateVisitor_closure27: function _EvaluateVisitor_closure27(t0) {
  18116. this.$this = t0;
  18117. },
  18118. _EvaluateVisitor_closure28: function _EvaluateVisitor_closure28(t0) {
  18119. this.$this = t0;
  18120. },
  18121. _EvaluateVisitor__closure5: function _EvaluateVisitor__closure5(t0, t1, t2) {
  18122. this.values = t0;
  18123. this.span = t1;
  18124. this.callableNode = t2;
  18125. },
  18126. _EvaluateVisitor__closure6: function _EvaluateVisitor__closure6(t0) {
  18127. this.$this = t0;
  18128. },
  18129. _EvaluateVisitor_run_closure1: function _EvaluateVisitor_run_closure1(t0, t1, t2) {
  18130. this.$this = t0;
  18131. this.node = t1;
  18132. this.importer = t2;
  18133. },
  18134. _EvaluateVisitor__loadModule_closure3: function _EvaluateVisitor__loadModule_closure3(t0, t1) {
  18135. this.callback = t0;
  18136. this.builtInModule = t1;
  18137. },
  18138. _EvaluateVisitor__loadModule_closure4: function _EvaluateVisitor__loadModule_closure4(t0, t1, t2, t3, t4, t5, t6) {
  18139. var _ = this;
  18140. _.$this = t0;
  18141. _.url = t1;
  18142. _.nodeWithSpan = t2;
  18143. _.baseUrl = t3;
  18144. _.namesInErrors = t4;
  18145. _.configuration = t5;
  18146. _.callback = t6;
  18147. },
  18148. _EvaluateVisitor__loadModule__closure1: function _EvaluateVisitor__loadModule__closure1(t0, t1) {
  18149. this.$this = t0;
  18150. this.message = t1;
  18151. },
  18152. _EvaluateVisitor__execute_closure1: function _EvaluateVisitor__execute_closure1(t0, t1, t2, t3, t4, t5) {
  18153. var _ = this;
  18154. _.$this = t0;
  18155. _.importer = t1;
  18156. _.stylesheet = t2;
  18157. _.extensionStore = t3;
  18158. _.configuration = t4;
  18159. _.css = t5;
  18160. },
  18161. _EvaluateVisitor__combineCss_closure5: function _EvaluateVisitor__combineCss_closure5() {
  18162. },
  18163. _EvaluateVisitor__combineCss_closure6: function _EvaluateVisitor__combineCss_closure6(t0) {
  18164. this.selectors = t0;
  18165. },
  18166. _EvaluateVisitor__combineCss_closure7: function _EvaluateVisitor__combineCss_closure7() {
  18167. },
  18168. _EvaluateVisitor__extendModules_closure3: function _EvaluateVisitor__extendModules_closure3(t0) {
  18169. this.originalSelectors = t0;
  18170. },
  18171. _EvaluateVisitor__extendModules_closure4: function _EvaluateVisitor__extendModules_closure4() {
  18172. },
  18173. _EvaluateVisitor__topologicalModules_visitModule1: function _EvaluateVisitor__topologicalModules_visitModule1(t0, t1) {
  18174. this.seen = t0;
  18175. this.sorted = t1;
  18176. },
  18177. _EvaluateVisitor_visitAtRootRule_closure5: function _EvaluateVisitor_visitAtRootRule_closure5(t0, t1) {
  18178. this.$this = t0;
  18179. this.resolved = t1;
  18180. },
  18181. _EvaluateVisitor_visitAtRootRule_closure6: function _EvaluateVisitor_visitAtRootRule_closure6(t0, t1) {
  18182. this.$this = t0;
  18183. this.node = t1;
  18184. },
  18185. _EvaluateVisitor_visitAtRootRule_closure7: function _EvaluateVisitor_visitAtRootRule_closure7(t0, t1) {
  18186. this.$this = t0;
  18187. this.node = t1;
  18188. },
  18189. _EvaluateVisitor__scopeForAtRoot_closure11: function _EvaluateVisitor__scopeForAtRoot_closure11(t0, t1, t2) {
  18190. this.$this = t0;
  18191. this.newParent = t1;
  18192. this.node = t2;
  18193. },
  18194. _EvaluateVisitor__scopeForAtRoot_closure12: function _EvaluateVisitor__scopeForAtRoot_closure12(t0, t1) {
  18195. this.$this = t0;
  18196. this.innerScope = t1;
  18197. },
  18198. _EvaluateVisitor__scopeForAtRoot_closure13: function _EvaluateVisitor__scopeForAtRoot_closure13(t0, t1) {
  18199. this.$this = t0;
  18200. this.innerScope = t1;
  18201. },
  18202. _EvaluateVisitor__scopeForAtRoot__closure1: function _EvaluateVisitor__scopeForAtRoot__closure1(t0, t1) {
  18203. this.innerScope = t0;
  18204. this.callback = t1;
  18205. },
  18206. _EvaluateVisitor__scopeForAtRoot_closure14: function _EvaluateVisitor__scopeForAtRoot_closure14(t0, t1) {
  18207. this.$this = t0;
  18208. this.innerScope = t1;
  18209. },
  18210. _EvaluateVisitor__scopeForAtRoot_closure15: function _EvaluateVisitor__scopeForAtRoot_closure15() {
  18211. },
  18212. _EvaluateVisitor__scopeForAtRoot_closure16: function _EvaluateVisitor__scopeForAtRoot_closure16(t0, t1) {
  18213. this.$this = t0;
  18214. this.innerScope = t1;
  18215. },
  18216. _EvaluateVisitor_visitContentRule_closure1: function _EvaluateVisitor_visitContentRule_closure1(t0, t1) {
  18217. this.$this = t0;
  18218. this.content = t1;
  18219. },
  18220. _EvaluateVisitor_visitDeclaration_closure3: function _EvaluateVisitor_visitDeclaration_closure3(t0) {
  18221. this.$this = t0;
  18222. },
  18223. _EvaluateVisitor_visitDeclaration_closure4: function _EvaluateVisitor_visitDeclaration_closure4(t0, t1) {
  18224. this.$this = t0;
  18225. this.children = t1;
  18226. },
  18227. _EvaluateVisitor_visitEachRule_closure5: function _EvaluateVisitor_visitEachRule_closure5(t0, t1, t2) {
  18228. this.$this = t0;
  18229. this.node = t1;
  18230. this.nodeWithSpan = t2;
  18231. },
  18232. _EvaluateVisitor_visitEachRule_closure6: function _EvaluateVisitor_visitEachRule_closure6(t0, t1, t2) {
  18233. this.$this = t0;
  18234. this.node = t1;
  18235. this.nodeWithSpan = t2;
  18236. },
  18237. _EvaluateVisitor_visitEachRule_closure7: function _EvaluateVisitor_visitEachRule_closure7(t0, t1, t2, t3) {
  18238. var _ = this;
  18239. _.$this = t0;
  18240. _.list = t1;
  18241. _.setVariables = t2;
  18242. _.node = t3;
  18243. },
  18244. _EvaluateVisitor_visitEachRule__closure1: function _EvaluateVisitor_visitEachRule__closure1(t0, t1, t2) {
  18245. this.$this = t0;
  18246. this.setVariables = t1;
  18247. this.node = t2;
  18248. },
  18249. _EvaluateVisitor_visitEachRule___closure1: function _EvaluateVisitor_visitEachRule___closure1(t0) {
  18250. this.$this = t0;
  18251. },
  18252. _EvaluateVisitor_visitExtendRule_closure1: function _EvaluateVisitor_visitExtendRule_closure1(t0, t1) {
  18253. this.$this = t0;
  18254. this.targetText = t1;
  18255. },
  18256. _EvaluateVisitor_visitAtRule_closure5: function _EvaluateVisitor_visitAtRule_closure5(t0) {
  18257. this.$this = t0;
  18258. },
  18259. _EvaluateVisitor_visitAtRule_closure6: function _EvaluateVisitor_visitAtRule_closure6(t0, t1) {
  18260. this.$this = t0;
  18261. this.children = t1;
  18262. },
  18263. _EvaluateVisitor_visitAtRule__closure1: function _EvaluateVisitor_visitAtRule__closure1(t0, t1) {
  18264. this.$this = t0;
  18265. this.children = t1;
  18266. },
  18267. _EvaluateVisitor_visitAtRule_closure7: function _EvaluateVisitor_visitAtRule_closure7() {
  18268. },
  18269. _EvaluateVisitor_visitForRule_closure9: function _EvaluateVisitor_visitForRule_closure9(t0, t1) {
  18270. this.$this = t0;
  18271. this.node = t1;
  18272. },
  18273. _EvaluateVisitor_visitForRule_closure10: function _EvaluateVisitor_visitForRule_closure10(t0, t1) {
  18274. this.$this = t0;
  18275. this.node = t1;
  18276. },
  18277. _EvaluateVisitor_visitForRule_closure11: function _EvaluateVisitor_visitForRule_closure11(t0) {
  18278. this.fromNumber = t0;
  18279. },
  18280. _EvaluateVisitor_visitForRule_closure12: function _EvaluateVisitor_visitForRule_closure12(t0, t1) {
  18281. this.toNumber = t0;
  18282. this.fromNumber = t1;
  18283. },
  18284. _EvaluateVisitor_visitForRule_closure13: function _EvaluateVisitor_visitForRule_closure13(t0, t1, t2, t3, t4, t5) {
  18285. var _ = this;
  18286. _._box_0 = t0;
  18287. _.$this = t1;
  18288. _.node = t2;
  18289. _.from = t3;
  18290. _.direction = t4;
  18291. _.fromNumber = t5;
  18292. },
  18293. _EvaluateVisitor_visitForRule__closure1: function _EvaluateVisitor_visitForRule__closure1(t0) {
  18294. this.$this = t0;
  18295. },
  18296. _EvaluateVisitor_visitForwardRule_closure3: function _EvaluateVisitor_visitForwardRule_closure3(t0, t1) {
  18297. this.$this = t0;
  18298. this.node = t1;
  18299. },
  18300. _EvaluateVisitor_visitForwardRule_closure4: function _EvaluateVisitor_visitForwardRule_closure4(t0, t1) {
  18301. this.$this = t0;
  18302. this.node = t1;
  18303. },
  18304. _EvaluateVisitor_visitIfRule_closure1: function _EvaluateVisitor_visitIfRule_closure1(t0, t1) {
  18305. this._box_0 = t0;
  18306. this.$this = t1;
  18307. },
  18308. _EvaluateVisitor_visitIfRule__closure1: function _EvaluateVisitor_visitIfRule__closure1(t0) {
  18309. this.$this = t0;
  18310. },
  18311. _EvaluateVisitor__visitDynamicImport_closure1: function _EvaluateVisitor__visitDynamicImport_closure1(t0, t1) {
  18312. this.$this = t0;
  18313. this.$import = t1;
  18314. },
  18315. _EvaluateVisitor__visitDynamicImport__closure7: function _EvaluateVisitor__visitDynamicImport__closure7(t0) {
  18316. this.$this = t0;
  18317. },
  18318. _EvaluateVisitor__visitDynamicImport__closure8: function _EvaluateVisitor__visitDynamicImport__closure8() {
  18319. },
  18320. _EvaluateVisitor__visitDynamicImport__closure9: function _EvaluateVisitor__visitDynamicImport__closure9() {
  18321. },
  18322. _EvaluateVisitor__visitDynamicImport__closure10: function _EvaluateVisitor__visitDynamicImport__closure10(t0, t1, t2, t3, t4, t5) {
  18323. var _ = this;
  18324. _.$this = t0;
  18325. _.result = t1;
  18326. _.stylesheet = t2;
  18327. _.loadsUserDefinedModules = t3;
  18328. _.environment = t4;
  18329. _.children = t5;
  18330. },
  18331. _EvaluateVisitor_visitIncludeRule_closure7: function _EvaluateVisitor_visitIncludeRule_closure7(t0, t1) {
  18332. this.$this = t0;
  18333. this.node = t1;
  18334. },
  18335. _EvaluateVisitor_visitIncludeRule_closure8: function _EvaluateVisitor_visitIncludeRule_closure8(t0) {
  18336. this.node = t0;
  18337. },
  18338. _EvaluateVisitor_visitIncludeRule_closure10: function _EvaluateVisitor_visitIncludeRule_closure10(t0) {
  18339. this.$this = t0;
  18340. },
  18341. _EvaluateVisitor_visitIncludeRule_closure9: function _EvaluateVisitor_visitIncludeRule_closure9(t0, t1, t2, t3) {
  18342. var _ = this;
  18343. _.$this = t0;
  18344. _.contentCallable = t1;
  18345. _.mixin = t2;
  18346. _.nodeWithSpan = t3;
  18347. },
  18348. _EvaluateVisitor_visitIncludeRule__closure1: function _EvaluateVisitor_visitIncludeRule__closure1(t0, t1, t2) {
  18349. this.$this = t0;
  18350. this.mixin = t1;
  18351. this.nodeWithSpan = t2;
  18352. },
  18353. _EvaluateVisitor_visitIncludeRule___closure1: function _EvaluateVisitor_visitIncludeRule___closure1(t0, t1, t2) {
  18354. this.$this = t0;
  18355. this.mixin = t1;
  18356. this.nodeWithSpan = t2;
  18357. },
  18358. _EvaluateVisitor_visitIncludeRule____closure1: function _EvaluateVisitor_visitIncludeRule____closure1(t0, t1) {
  18359. this.$this = t0;
  18360. this.statement = t1;
  18361. },
  18362. _EvaluateVisitor_visitMediaRule_closure5: function _EvaluateVisitor_visitMediaRule_closure5(t0, t1) {
  18363. this.$this = t0;
  18364. this.queries = t1;
  18365. },
  18366. _EvaluateVisitor_visitMediaRule_closure6: function _EvaluateVisitor_visitMediaRule_closure6(t0, t1, t2, t3, t4) {
  18367. var _ = this;
  18368. _.$this = t0;
  18369. _.mergedQueries = t1;
  18370. _.queries = t2;
  18371. _.mergedSources = t3;
  18372. _.node = t4;
  18373. },
  18374. _EvaluateVisitor_visitMediaRule__closure1: function _EvaluateVisitor_visitMediaRule__closure1(t0, t1) {
  18375. this.$this = t0;
  18376. this.node = t1;
  18377. },
  18378. _EvaluateVisitor_visitMediaRule___closure1: function _EvaluateVisitor_visitMediaRule___closure1(t0, t1) {
  18379. this.$this = t0;
  18380. this.node = t1;
  18381. },
  18382. _EvaluateVisitor_visitMediaRule_closure7: function _EvaluateVisitor_visitMediaRule_closure7(t0) {
  18383. this.mergedSources = t0;
  18384. },
  18385. _EvaluateVisitor__visitMediaQueries_closure1: function _EvaluateVisitor__visitMediaQueries_closure1(t0, t1) {
  18386. this.$this = t0;
  18387. this.resolved = t1;
  18388. },
  18389. _EvaluateVisitor_visitStyleRule_closure15: function _EvaluateVisitor_visitStyleRule_closure15(t0, t1) {
  18390. this.$this = t0;
  18391. this.selectorText = t1;
  18392. },
  18393. _EvaluateVisitor_visitStyleRule_closure16: function _EvaluateVisitor_visitStyleRule_closure16(t0, t1) {
  18394. this.$this = t0;
  18395. this.node = t1;
  18396. },
  18397. _EvaluateVisitor_visitStyleRule_closure17: function _EvaluateVisitor_visitStyleRule_closure17() {
  18398. },
  18399. _EvaluateVisitor_visitStyleRule_closure18: function _EvaluateVisitor_visitStyleRule_closure18(t0, t1) {
  18400. this.$this = t0;
  18401. this.selectorText = t1;
  18402. },
  18403. _EvaluateVisitor_visitStyleRule_closure19: function _EvaluateVisitor_visitStyleRule_closure19(t0, t1) {
  18404. this._box_0 = t0;
  18405. this.$this = t1;
  18406. },
  18407. _EvaluateVisitor_visitStyleRule_closure20: function _EvaluateVisitor_visitStyleRule_closure20(t0, t1, t2) {
  18408. this.$this = t0;
  18409. this.rule = t1;
  18410. this.node = t2;
  18411. },
  18412. _EvaluateVisitor_visitStyleRule__closure1: function _EvaluateVisitor_visitStyleRule__closure1(t0, t1) {
  18413. this.$this = t0;
  18414. this.node = t1;
  18415. },
  18416. _EvaluateVisitor_visitStyleRule_closure21: function _EvaluateVisitor_visitStyleRule_closure21() {
  18417. },
  18418. _EvaluateVisitor_visitStyleRule_closure22: function _EvaluateVisitor_visitStyleRule_closure22() {
  18419. },
  18420. _EvaluateVisitor_visitSupportsRule_closure3: function _EvaluateVisitor_visitSupportsRule_closure3(t0, t1) {
  18421. this.$this = t0;
  18422. this.node = t1;
  18423. },
  18424. _EvaluateVisitor_visitSupportsRule__closure1: function _EvaluateVisitor_visitSupportsRule__closure1(t0, t1) {
  18425. this.$this = t0;
  18426. this.node = t1;
  18427. },
  18428. _EvaluateVisitor_visitSupportsRule_closure4: function _EvaluateVisitor_visitSupportsRule_closure4() {
  18429. },
  18430. _EvaluateVisitor_visitVariableDeclaration_closure5: function _EvaluateVisitor_visitVariableDeclaration_closure5(t0, t1, t2) {
  18431. this.$this = t0;
  18432. this.node = t1;
  18433. this.override = t2;
  18434. },
  18435. _EvaluateVisitor_visitVariableDeclaration_closure6: function _EvaluateVisitor_visitVariableDeclaration_closure6(t0, t1) {
  18436. this.$this = t0;
  18437. this.node = t1;
  18438. },
  18439. _EvaluateVisitor_visitVariableDeclaration_closure7: function _EvaluateVisitor_visitVariableDeclaration_closure7(t0, t1, t2) {
  18440. this.$this = t0;
  18441. this.node = t1;
  18442. this.value = t2;
  18443. },
  18444. _EvaluateVisitor_visitUseRule_closure1: function _EvaluateVisitor_visitUseRule_closure1(t0, t1) {
  18445. this.$this = t0;
  18446. this.node = t1;
  18447. },
  18448. _EvaluateVisitor_visitWarnRule_closure1: function _EvaluateVisitor_visitWarnRule_closure1(t0, t1) {
  18449. this.$this = t0;
  18450. this.node = t1;
  18451. },
  18452. _EvaluateVisitor_visitWhileRule_closure1: function _EvaluateVisitor_visitWhileRule_closure1(t0, t1) {
  18453. this.$this = t0;
  18454. this.node = t1;
  18455. },
  18456. _EvaluateVisitor_visitWhileRule__closure1: function _EvaluateVisitor_visitWhileRule__closure1(t0) {
  18457. this.$this = t0;
  18458. },
  18459. _EvaluateVisitor_visitBinaryOperationExpression_closure1: function _EvaluateVisitor_visitBinaryOperationExpression_closure1(t0, t1) {
  18460. this.$this = t0;
  18461. this.node = t1;
  18462. },
  18463. _EvaluateVisitor_visitBinaryOperationExpression_closure_recommendation1: function _EvaluateVisitor_visitBinaryOperationExpression_closure_recommendation1() {
  18464. },
  18465. _EvaluateVisitor_visitVariableExpression_closure1: function _EvaluateVisitor_visitVariableExpression_closure1(t0, t1) {
  18466. this.$this = t0;
  18467. this.node = t1;
  18468. },
  18469. _EvaluateVisitor_visitUnaryOperationExpression_closure1: function _EvaluateVisitor_visitUnaryOperationExpression_closure1(t0, t1) {
  18470. this.node = t0;
  18471. this.operand = t1;
  18472. },
  18473. _EvaluateVisitor__visitCalculationValue_closure1: function _EvaluateVisitor__visitCalculationValue_closure1(t0, t1, t2) {
  18474. this.$this = t0;
  18475. this.node = t1;
  18476. this.inMinMax = t2;
  18477. },
  18478. _EvaluateVisitor_visitListExpression_closure1: function _EvaluateVisitor_visitListExpression_closure1(t0) {
  18479. this.$this = t0;
  18480. },
  18481. _EvaluateVisitor_visitFunctionExpression_closure3: function _EvaluateVisitor_visitFunctionExpression_closure3(t0, t1) {
  18482. this.$this = t0;
  18483. this.node = t1;
  18484. },
  18485. _EvaluateVisitor_visitFunctionExpression_closure4: function _EvaluateVisitor_visitFunctionExpression_closure4(t0, t1, t2) {
  18486. this._box_0 = t0;
  18487. this.$this = t1;
  18488. this.node = t2;
  18489. },
  18490. _EvaluateVisitor_visitInterpolatedFunctionExpression_closure1: function _EvaluateVisitor_visitInterpolatedFunctionExpression_closure1(t0, t1, t2) {
  18491. this.$this = t0;
  18492. this.node = t1;
  18493. this.$function = t2;
  18494. },
  18495. _EvaluateVisitor__runUserDefinedCallable_closure1: function _EvaluateVisitor__runUserDefinedCallable_closure1(t0, t1, t2, t3, t4, t5) {
  18496. var _ = this;
  18497. _.$this = t0;
  18498. _.callable = t1;
  18499. _.evaluated = t2;
  18500. _.nodeWithSpan = t3;
  18501. _.run = t4;
  18502. _.V = t5;
  18503. },
  18504. _EvaluateVisitor__runUserDefinedCallable__closure1: function _EvaluateVisitor__runUserDefinedCallable__closure1(t0, t1, t2, t3, t4, t5) {
  18505. var _ = this;
  18506. _.$this = t0;
  18507. _.evaluated = t1;
  18508. _.callable = t2;
  18509. _.nodeWithSpan = t3;
  18510. _.run = t4;
  18511. _.V = t5;
  18512. },
  18513. _EvaluateVisitor__runUserDefinedCallable___closure1: function _EvaluateVisitor__runUserDefinedCallable___closure1(t0, t1, t2, t3, t4, t5) {
  18514. var _ = this;
  18515. _.$this = t0;
  18516. _.evaluated = t1;
  18517. _.callable = t2;
  18518. _.nodeWithSpan = t3;
  18519. _.run = t4;
  18520. _.V = t5;
  18521. },
  18522. _EvaluateVisitor__runUserDefinedCallable____closure1: function _EvaluateVisitor__runUserDefinedCallable____closure1() {
  18523. },
  18524. _EvaluateVisitor__runFunctionCallable_closure1: function _EvaluateVisitor__runFunctionCallable_closure1(t0, t1) {
  18525. this.$this = t0;
  18526. this.callable = t1;
  18527. },
  18528. _EvaluateVisitor__runBuiltInCallable_closure3: function _EvaluateVisitor__runBuiltInCallable_closure3(t0, t1, t2) {
  18529. this.overload = t0;
  18530. this.evaluated = t1;
  18531. this.namedSet = t2;
  18532. },
  18533. _EvaluateVisitor__runBuiltInCallable_closure4: function _EvaluateVisitor__runBuiltInCallable_closure4() {
  18534. },
  18535. _EvaluateVisitor__evaluateArguments_closure7: function _EvaluateVisitor__evaluateArguments_closure7() {
  18536. },
  18537. _EvaluateVisitor__evaluateArguments_closure8: function _EvaluateVisitor__evaluateArguments_closure8(t0, t1) {
  18538. this.$this = t0;
  18539. this.restNodeForSpan = t1;
  18540. },
  18541. _EvaluateVisitor__evaluateArguments_closure9: function _EvaluateVisitor__evaluateArguments_closure9(t0, t1, t2, t3) {
  18542. var _ = this;
  18543. _.$this = t0;
  18544. _.named = t1;
  18545. _.restNodeForSpan = t2;
  18546. _.namedNodes = t3;
  18547. },
  18548. _EvaluateVisitor__evaluateArguments_closure10: function _EvaluateVisitor__evaluateArguments_closure10() {
  18549. },
  18550. _EvaluateVisitor__evaluateMacroArguments_closure7: function _EvaluateVisitor__evaluateMacroArguments_closure7(t0) {
  18551. this.restArgs = t0;
  18552. },
  18553. _EvaluateVisitor__evaluateMacroArguments_closure8: function _EvaluateVisitor__evaluateMacroArguments_closure8(t0, t1, t2) {
  18554. this.$this = t0;
  18555. this.restNodeForSpan = t1;
  18556. this.restArgs = t2;
  18557. },
  18558. _EvaluateVisitor__evaluateMacroArguments_closure9: function _EvaluateVisitor__evaluateMacroArguments_closure9(t0, t1, t2, t3) {
  18559. var _ = this;
  18560. _.$this = t0;
  18561. _.named = t1;
  18562. _.restNodeForSpan = t2;
  18563. _.restArgs = t3;
  18564. },
  18565. _EvaluateVisitor__evaluateMacroArguments_closure10: function _EvaluateVisitor__evaluateMacroArguments_closure10(t0, t1, t2) {
  18566. this.$this = t0;
  18567. this.keywordRestNodeForSpan = t1;
  18568. this.keywordRestArgs = t2;
  18569. },
  18570. _EvaluateVisitor__addRestMap_closure1: function _EvaluateVisitor__addRestMap_closure1(t0, t1, t2, t3, t4, t5) {
  18571. var _ = this;
  18572. _.$this = t0;
  18573. _.values = t1;
  18574. _.convert = t2;
  18575. _.expressionNode = t3;
  18576. _.map = t4;
  18577. _.nodeWithSpan = t5;
  18578. },
  18579. _EvaluateVisitor__verifyArguments_closure1: function _EvaluateVisitor__verifyArguments_closure1(t0, t1, t2) {
  18580. this.$arguments = t0;
  18581. this.positional = t1;
  18582. this.named = t2;
  18583. },
  18584. _EvaluateVisitor_visitStringExpression_closure1: function _EvaluateVisitor_visitStringExpression_closure1(t0) {
  18585. this.$this = t0;
  18586. },
  18587. _EvaluateVisitor_visitCssAtRule_closure3: function _EvaluateVisitor_visitCssAtRule_closure3(t0, t1) {
  18588. this.$this = t0;
  18589. this.node = t1;
  18590. },
  18591. _EvaluateVisitor_visitCssAtRule_closure4: function _EvaluateVisitor_visitCssAtRule_closure4() {
  18592. },
  18593. _EvaluateVisitor_visitCssKeyframeBlock_closure3: function _EvaluateVisitor_visitCssKeyframeBlock_closure3(t0, t1) {
  18594. this.$this = t0;
  18595. this.node = t1;
  18596. },
  18597. _EvaluateVisitor_visitCssKeyframeBlock_closure4: function _EvaluateVisitor_visitCssKeyframeBlock_closure4() {
  18598. },
  18599. _EvaluateVisitor_visitCssMediaRule_closure5: function _EvaluateVisitor_visitCssMediaRule_closure5(t0, t1) {
  18600. this.$this = t0;
  18601. this.node = t1;
  18602. },
  18603. _EvaluateVisitor_visitCssMediaRule_closure6: function _EvaluateVisitor_visitCssMediaRule_closure6(t0, t1, t2, t3) {
  18604. var _ = this;
  18605. _.$this = t0;
  18606. _.mergedQueries = t1;
  18607. _.node = t2;
  18608. _.mergedSources = t3;
  18609. },
  18610. _EvaluateVisitor_visitCssMediaRule__closure1: function _EvaluateVisitor_visitCssMediaRule__closure1(t0, t1) {
  18611. this.$this = t0;
  18612. this.node = t1;
  18613. },
  18614. _EvaluateVisitor_visitCssMediaRule___closure1: function _EvaluateVisitor_visitCssMediaRule___closure1(t0, t1) {
  18615. this.$this = t0;
  18616. this.node = t1;
  18617. },
  18618. _EvaluateVisitor_visitCssMediaRule_closure7: function _EvaluateVisitor_visitCssMediaRule_closure7(t0) {
  18619. this.mergedSources = t0;
  18620. },
  18621. _EvaluateVisitor_visitCssStyleRule_closure3: function _EvaluateVisitor_visitCssStyleRule_closure3(t0, t1, t2) {
  18622. this.$this = t0;
  18623. this.rule = t1;
  18624. this.node = t2;
  18625. },
  18626. _EvaluateVisitor_visitCssStyleRule__closure1: function _EvaluateVisitor_visitCssStyleRule__closure1(t0, t1) {
  18627. this.$this = t0;
  18628. this.node = t1;
  18629. },
  18630. _EvaluateVisitor_visitCssStyleRule_closure4: function _EvaluateVisitor_visitCssStyleRule_closure4() {
  18631. },
  18632. _EvaluateVisitor_visitCssSupportsRule_closure3: function _EvaluateVisitor_visitCssSupportsRule_closure3(t0, t1) {
  18633. this.$this = t0;
  18634. this.node = t1;
  18635. },
  18636. _EvaluateVisitor_visitCssSupportsRule__closure1: function _EvaluateVisitor_visitCssSupportsRule__closure1(t0, t1) {
  18637. this.$this = t0;
  18638. this.node = t1;
  18639. },
  18640. _EvaluateVisitor_visitCssSupportsRule_closure4: function _EvaluateVisitor_visitCssSupportsRule_closure4() {
  18641. },
  18642. _EvaluateVisitor__performInterpolation_closure1: function _EvaluateVisitor__performInterpolation_closure1(t0, t1, t2) {
  18643. this.$this = t0;
  18644. this.warnForColor = t1;
  18645. this.interpolation = t2;
  18646. },
  18647. _EvaluateVisitor__serialize_closure1: function _EvaluateVisitor__serialize_closure1(t0, t1) {
  18648. this.value = t0;
  18649. this.quote = t1;
  18650. },
  18651. _EvaluateVisitor__expressionNode_closure1: function _EvaluateVisitor__expressionNode_closure1(t0, t1) {
  18652. this.$this = t0;
  18653. this.expression = t1;
  18654. },
  18655. _EvaluateVisitor__withoutSlash_recommendation1: function _EvaluateVisitor__withoutSlash_recommendation1() {
  18656. },
  18657. _EvaluateVisitor__stackFrame_closure1: function _EvaluateVisitor__stackFrame_closure1(t0) {
  18658. this.$this = t0;
  18659. },
  18660. _EvaluateVisitor__stackTrace_closure1: function _EvaluateVisitor__stackTrace_closure1(t0) {
  18661. this.$this = t0;
  18662. },
  18663. _ImportedCssVisitor1: function _ImportedCssVisitor1(t0) {
  18664. this._evaluate0$_visitor = t0;
  18665. },
  18666. _ImportedCssVisitor_visitCssAtRule_closure1: function _ImportedCssVisitor_visitCssAtRule_closure1() {
  18667. },
  18668. _ImportedCssVisitor_visitCssMediaRule_closure1: function _ImportedCssVisitor_visitCssMediaRule_closure1(t0) {
  18669. this.hasBeenMerged = t0;
  18670. },
  18671. _ImportedCssVisitor_visitCssStyleRule_closure1: function _ImportedCssVisitor_visitCssStyleRule_closure1() {
  18672. },
  18673. _ImportedCssVisitor_visitCssSupportsRule_closure1: function _ImportedCssVisitor_visitCssSupportsRule_closure1() {
  18674. },
  18675. _EvaluationContext1: function _EvaluationContext1(t0, t1) {
  18676. this._evaluate0$_visitor = t0;
  18677. this._evaluate0$_defaultWarnNodeWithSpan = t1;
  18678. },
  18679. _ArgumentResults1: function _ArgumentResults1(t0, t1, t2, t3, t4) {
  18680. var _ = this;
  18681. _.positional = t0;
  18682. _.positionalNodes = t1;
  18683. _.named = t2;
  18684. _.namedNodes = t3;
  18685. _.separator = t4;
  18686. },
  18687. _LoadedStylesheet1: function _LoadedStylesheet1(t0, t1, t2) {
  18688. this.stylesheet = t0;
  18689. this.importer = t1;
  18690. this.isDependency = t2;
  18691. },
  18692. EveryCssVisitor0: function EveryCssVisitor0() {
  18693. },
  18694. EveryCssVisitor_visitCssAtRule_closure0: function EveryCssVisitor_visitCssAtRule_closure0(t0) {
  18695. this.$this = t0;
  18696. },
  18697. EveryCssVisitor_visitCssKeyframeBlock_closure0: function EveryCssVisitor_visitCssKeyframeBlock_closure0(t0) {
  18698. this.$this = t0;
  18699. },
  18700. EveryCssVisitor_visitCssMediaRule_closure0: function EveryCssVisitor_visitCssMediaRule_closure0(t0) {
  18701. this.$this = t0;
  18702. },
  18703. EveryCssVisitor_visitCssStyleRule_closure0: function EveryCssVisitor_visitCssStyleRule_closure0(t0) {
  18704. this.$this = t0;
  18705. },
  18706. EveryCssVisitor_visitCssStylesheet_closure0: function EveryCssVisitor_visitCssStylesheet_closure0(t0) {
  18707. this.$this = t0;
  18708. },
  18709. EveryCssVisitor_visitCssSupportsRule_closure0: function EveryCssVisitor_visitCssSupportsRule_closure0(t0) {
  18710. this.$this = t0;
  18711. },
  18712. throwNodeException(exception, ascii, color, trace) {
  18713. var wasAscii, jsException, t1, trace0;
  18714. trace = trace;
  18715. wasAscii = $._glyphs === B.C_AsciiGlyphSet;
  18716. $._glyphs = ascii ? B.C_AsciiGlyphSet : B.C_UnicodeGlyphSet;
  18717. try {
  18718. t1 = A.callConstructor($.$get$exceptionClass(), [exception, B.JSString_methods.replaceFirst$2(exception.toString$1$color(0, color), "Error: ", "")]);
  18719. jsException = type$._NodeException._as(t1);
  18720. trace0 = A.getTrace0(exception);
  18721. trace = trace0 == null ? trace : trace0;
  18722. if (trace != null)
  18723. A.attachJsStack(jsException, trace);
  18724. A.jsThrow(jsException);
  18725. } finally {
  18726. $._glyphs = wasAscii ? B.C_AsciiGlyphSet : B.C_UnicodeGlyphSet;
  18727. }
  18728. },
  18729. _NodeException: function _NodeException() {
  18730. },
  18731. exceptionClass_closure: function exceptionClass_closure() {
  18732. },
  18733. exceptionClass__closure: function exceptionClass__closure() {
  18734. },
  18735. exceptionClass__closure0: function exceptionClass__closure0() {
  18736. },
  18737. exceptionClass__closure1: function exceptionClass__closure1() {
  18738. },
  18739. SassException$0(message, span) {
  18740. return new A.SassException0(message, span);
  18741. },
  18742. MultiSpanSassRuntimeException$0(message, span, primaryLabel, secondarySpans, trace) {
  18743. return new A.MultiSpanSassRuntimeException0(trace, primaryLabel, A.ConstantMap_ConstantMap$from(secondarySpans, type$.FileSpan, type$.String), message, span);
  18744. },
  18745. SassFormatException$0(message, span) {
  18746. return new A.SassFormatException0(message, span);
  18747. },
  18748. SassScriptException$0(message, argumentName) {
  18749. return new A.SassScriptException0(argumentName == null ? message : "$" + argumentName + ": " + message);
  18750. },
  18751. MultiSpanSassScriptException$0(message, primaryLabel, secondarySpans) {
  18752. var t1 = A.ConstantMap_ConstantMap$from(secondarySpans, type$.FileSpan, type$.String);
  18753. return new A.MultiSpanSassScriptException0(primaryLabel, t1, message);
  18754. },
  18755. SassException0: function SassException0(t0, t1) {
  18756. this._span_exception$_message = t0;
  18757. this._span = t1;
  18758. },
  18759. MultiSpanSassException0: function MultiSpanSassException0(t0, t1, t2, t3) {
  18760. var _ = this;
  18761. _.primaryLabel = t0;
  18762. _.secondarySpans = t1;
  18763. _._span_exception$_message = t2;
  18764. _._span = t3;
  18765. },
  18766. SassRuntimeException0: function SassRuntimeException0(t0, t1, t2) {
  18767. this.trace = t0;
  18768. this._span_exception$_message = t1;
  18769. this._span = t2;
  18770. },
  18771. MultiSpanSassRuntimeException0: function MultiSpanSassRuntimeException0(t0, t1, t2, t3, t4) {
  18772. var _ = this;
  18773. _.trace = t0;
  18774. _.primaryLabel = t1;
  18775. _.secondarySpans = t2;
  18776. _._span_exception$_message = t3;
  18777. _._span = t4;
  18778. },
  18779. SassFormatException0: function SassFormatException0(t0, t1) {
  18780. this._span_exception$_message = t0;
  18781. this._span = t1;
  18782. },
  18783. SassScriptException0: function SassScriptException0(t0) {
  18784. this.message = t0;
  18785. },
  18786. MultiSpanSassScriptException0: function MultiSpanSassScriptException0(t0, t1, t2) {
  18787. this.primaryLabel = t0;
  18788. this.secondarySpans = t1;
  18789. this.message = t2;
  18790. },
  18791. Exports: function Exports() {
  18792. },
  18793. LoggerNamespace: function LoggerNamespace() {
  18794. },
  18795. ExtendRule0: function ExtendRule0(t0, t1, t2) {
  18796. this.selector = t0;
  18797. this.isOptional = t1;
  18798. this.span = t2;
  18799. },
  18800. Extension0: function Extension0(t0, t1, t2, t3, t4) {
  18801. var _ = this;
  18802. _.extender = t0;
  18803. _.target = t1;
  18804. _.mediaContext = t2;
  18805. _.isOptional = t3;
  18806. _.span = t4;
  18807. },
  18808. Extender0: function Extender0(t0, t1, t2) {
  18809. var _ = this;
  18810. _.selector = t0;
  18811. _.isOriginal = t1;
  18812. _._extension$_extension = null;
  18813. _.span = t2;
  18814. },
  18815. ExtensionStore__extendOrReplace0(selector, source, targets, mode, span) {
  18816. var t1, t2, t3, t4, t5, t6, t7, t8, _i, complex, t9, compound, t10, t11, _i0, simple, t12, _i1, t13, t14,
  18817. extender = A.ExtensionStore$_mode0(mode);
  18818. if (!selector.accept$1(B._IsInvisibleVisitor_true0))
  18819. extender._extension_store$_originals.addAll$1(0, selector.components);
  18820. for (t1 = targets.components, t2 = t1.length, t3 = source.components, t4 = t3.length, t5 = type$.ComplexSelector_2, t6 = type$.Extension_2, t7 = type$.SimpleSelector_2, t8 = type$.Map_ComplexSelector_Extension_2, _i = 0; _i < t2; ++_i) {
  18821. complex = t1[_i];
  18822. if (complex.leadingCombinators.length === 0) {
  18823. t9 = complex.components;
  18824. t9 = t9.length === 1 && B.JSArray_methods.get$first(t9).combinators.length === 0;
  18825. } else
  18826. t9 = false;
  18827. compound = t9 ? B.JSArray_methods.get$first(complex.components).selector : null;
  18828. if (compound == null)
  18829. throw A.wrapException(A.SassScriptException$0("Can't extend complex selector " + A.S(complex) + ".", null));
  18830. t9 = A.LinkedHashMap_LinkedHashMap$_empty(t7, t8);
  18831. for (t10 = compound.components, t11 = t10.length, _i0 = 0; _i0 < t11; ++_i0) {
  18832. simple = t10[_i0];
  18833. t12 = A.LinkedHashMap_LinkedHashMap$_empty(t5, t6);
  18834. for (_i1 = 0; _i1 < t4; ++_i1) {
  18835. complex = t3[_i1];
  18836. complex.get$specificity();
  18837. t13 = new A.Extender0(complex, false, span);
  18838. t14 = new A.Extension0(t13, simple, null, true, span);
  18839. t13._extension$_extension = t14;
  18840. t12.$indexSet(0, complex, t14);
  18841. }
  18842. t9.$indexSet(0, simple, t12);
  18843. }
  18844. selector = extender._extension_store$_extendList$3(selector, span, t9);
  18845. }
  18846. return selector;
  18847. },
  18848. ExtensionStore$0() {
  18849. var t1 = type$.SimpleSelector_2;
  18850. return new A.ExtensionStore0(A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Set_ModifiableCssValue_SelectorList_2), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Map_ComplexSelector_Extension_2), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.List_Extension_2), A.LinkedHashMap_LinkedHashMap$_empty(type$.ModifiableCssValue_SelectorList_2, type$.List_CssMediaQuery_2), new A._LinkedIdentityHashMap(type$._LinkedIdentityHashMap_SimpleSelector_int_2), new A._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_ComplexSelector_2), B.ExtendMode_normal_normal0);
  18851. },
  18852. ExtensionStore$_mode0(_mode) {
  18853. var t1 = type$.SimpleSelector_2;
  18854. return new A.ExtensionStore0(A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Set_ModifiableCssValue_SelectorList_2), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Map_ComplexSelector_Extension_2), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.List_Extension_2), A.LinkedHashMap_LinkedHashMap$_empty(type$.ModifiableCssValue_SelectorList_2, type$.List_CssMediaQuery_2), new A._LinkedIdentityHashMap(type$._LinkedIdentityHashMap_SimpleSelector_int_2), new A._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_ComplexSelector_2), _mode);
  18855. },
  18856. ExtensionStore0: function ExtensionStore0(t0, t1, t2, t3, t4, t5, t6) {
  18857. var _ = this;
  18858. _._extension_store$_selectors = t0;
  18859. _._extension_store$_extensions = t1;
  18860. _._extension_store$_extensionsByExtender = t2;
  18861. _._extension_store$_mediaContexts = t3;
  18862. _._extension_store$_sourceSpecificity = t4;
  18863. _._extension_store$_originals = t5;
  18864. _._extension_store$_mode = t6;
  18865. },
  18866. ExtensionStore_extensionsWhereTarget_closure0: function ExtensionStore_extensionsWhereTarget_closure0() {
  18867. },
  18868. ExtensionStore__registerSelector_closure0: function ExtensionStore__registerSelector_closure0() {
  18869. },
  18870. ExtensionStore_addExtension_closure2: function ExtensionStore_addExtension_closure2() {
  18871. },
  18872. ExtensionStore_addExtension_closure3: function ExtensionStore_addExtension_closure3() {
  18873. },
  18874. ExtensionStore_addExtension_closure4: function ExtensionStore_addExtension_closure4(t0) {
  18875. this.complex = t0;
  18876. },
  18877. ExtensionStore__extendExistingExtensions_closure1: function ExtensionStore__extendExistingExtensions_closure1() {
  18878. },
  18879. ExtensionStore__extendExistingExtensions_closure2: function ExtensionStore__extendExistingExtensions_closure2() {
  18880. },
  18881. ExtensionStore_addExtensions_closure1: function ExtensionStore_addExtensions_closure1(t0, t1) {
  18882. this._box_0 = t0;
  18883. this.$this = t1;
  18884. },
  18885. ExtensionStore_addExtensions__closure4: function ExtensionStore_addExtensions__closure4(t0, t1, t2, t3, t4) {
  18886. var _ = this;
  18887. _._box_0 = t0;
  18888. _.existingSources = t1;
  18889. _.extensionsForTarget = t2;
  18890. _.selectorsForTarget = t3;
  18891. _.target = t4;
  18892. },
  18893. ExtensionStore_addExtensions___closure0: function ExtensionStore_addExtensions___closure0() {
  18894. },
  18895. ExtensionStore_addExtensions_closure2: function ExtensionStore_addExtensions_closure2(t0, t1) {
  18896. this._box_0 = t0;
  18897. this.$this = t1;
  18898. },
  18899. ExtensionStore_addExtensions__closure2: function ExtensionStore_addExtensions__closure2(t0, t1) {
  18900. this.$this = t0;
  18901. this.newExtensions = t1;
  18902. },
  18903. ExtensionStore_addExtensions__closure3: function ExtensionStore_addExtensions__closure3(t0, t1) {
  18904. this.$this = t0;
  18905. this.newExtensions = t1;
  18906. },
  18907. ExtensionStore__extendComplex_closure0: function ExtensionStore__extendComplex_closure0(t0, t1, t2) {
  18908. this._box_0 = t0;
  18909. this.$this = t1;
  18910. this.complex = t2;
  18911. },
  18912. ExtensionStore__extendComplex__closure0: function ExtensionStore__extendComplex__closure0(t0, t1, t2) {
  18913. this._box_0 = t0;
  18914. this.$this = t1;
  18915. this.complex = t2;
  18916. },
  18917. ExtensionStore__extendCompound_closure2: function ExtensionStore__extendCompound_closure2() {
  18918. },
  18919. ExtensionStore__extendCompound_closure3: function ExtensionStore__extendCompound_closure3() {
  18920. },
  18921. ExtensionStore__extendCompound_closure4: function ExtensionStore__extendCompound_closure4(t0) {
  18922. this.original = t0;
  18923. },
  18924. ExtensionStore__extendSimple_withoutPseudo0: function ExtensionStore__extendSimple_withoutPseudo0(t0, t1, t2, t3) {
  18925. var _ = this;
  18926. _.$this = t0;
  18927. _.extensions = t1;
  18928. _.targetsUsed = t2;
  18929. _.simpleSpan = t3;
  18930. },
  18931. ExtensionStore__extendSimple_closure1: function ExtensionStore__extendSimple_closure1(t0, t1, t2) {
  18932. this.$this = t0;
  18933. this.withoutPseudo = t1;
  18934. this.simpleSpan = t2;
  18935. },
  18936. ExtensionStore__extendSimple_closure2: function ExtensionStore__extendSimple_closure2() {
  18937. },
  18938. ExtensionStore__extendPseudo_closure4: function ExtensionStore__extendPseudo_closure4() {
  18939. },
  18940. ExtensionStore__extendPseudo_closure5: function ExtensionStore__extendPseudo_closure5() {
  18941. },
  18942. ExtensionStore__extendPseudo_closure6: function ExtensionStore__extendPseudo_closure6() {
  18943. },
  18944. ExtensionStore__extendPseudo_closure7: function ExtensionStore__extendPseudo_closure7(t0) {
  18945. this.pseudo = t0;
  18946. },
  18947. ExtensionStore__extendPseudo_closure8: function ExtensionStore__extendPseudo_closure8(t0) {
  18948. this.pseudo = t0;
  18949. },
  18950. ExtensionStore__trim_closure1: function ExtensionStore__trim_closure1(t0, t1) {
  18951. this._box_0 = t0;
  18952. this.complex1 = t1;
  18953. },
  18954. ExtensionStore__trim_closure2: function ExtensionStore__trim_closure2(t0, t1) {
  18955. this._box_0 = t0;
  18956. this.complex1 = t1;
  18957. },
  18958. ExtensionStore_clone_closure0: function ExtensionStore_clone_closure0(t0, t1, t2, t3) {
  18959. var _ = this;
  18960. _.$this = t0;
  18961. _.newSelectors = t1;
  18962. _.oldToNewSelectors = t2;
  18963. _.newMediaContexts = t3;
  18964. },
  18965. FiberClass: function FiberClass() {
  18966. },
  18967. Fiber: function Fiber() {
  18968. },
  18969. NodeToDartFileImporter: function NodeToDartFileImporter(t0) {
  18970. this._file0$_findFileUrl = t0;
  18971. },
  18972. FilesystemImporter$(loadPath) {
  18973. var _null = null;
  18974. return new A.FilesystemImporter0(A.absolute(loadPath, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null));
  18975. },
  18976. FilesystemImporter0: function FilesystemImporter0(t0) {
  18977. this._filesystem$_loadPath = t0;
  18978. },
  18979. FilesystemImporter_canonicalize_closure0: function FilesystemImporter_canonicalize_closure0() {
  18980. },
  18981. ForRule$0(variable, from, to, children, span, exclusive) {
  18982. var t1 = A.List_List$unmodifiable(children, type$.Statement_2),
  18983. t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure0());
  18984. return new A.ForRule0(variable, from, to, exclusive, span, t1, t2);
  18985. },
  18986. ForRule0: function ForRule0(t0, t1, t2, t3, t4, t5, t6) {
  18987. var _ = this;
  18988. _.variable = t0;
  18989. _.from = t1;
  18990. _.to = t2;
  18991. _.isExclusive = t3;
  18992. _.span = t4;
  18993. _.children = t5;
  18994. _.hasDeclarations = t6;
  18995. },
  18996. ForwardRule0: function ForwardRule0(t0, t1, t2, t3, t4, t5, t6, t7) {
  18997. var _ = this;
  18998. _.url = t0;
  18999. _.shownMixinsAndFunctions = t1;
  19000. _.shownVariables = t2;
  19001. _.hiddenMixinsAndFunctions = t3;
  19002. _.hiddenVariables = t4;
  19003. _.prefix = t5;
  19004. _.configuration = t6;
  19005. _.span = t7;
  19006. },
  19007. ForwardedModuleView_ifNecessary0(inner, rule, $T) {
  19008. var t1;
  19009. if (rule.prefix == null)
  19010. if (rule.shownMixinsAndFunctions == null)
  19011. if (rule.shownVariables == null) {
  19012. t1 = rule.hiddenMixinsAndFunctions;
  19013. if (t1 == null)
  19014. t1 = null;
  19015. else {
  19016. t1 = t1._base;
  19017. t1 = t1.get$isEmpty(t1);
  19018. }
  19019. if (t1 === true) {
  19020. t1 = rule.hiddenVariables;
  19021. if (t1 == null)
  19022. t1 = null;
  19023. else {
  19024. t1 = t1._base;
  19025. t1 = t1.get$isEmpty(t1);
  19026. }
  19027. t1 = t1 === true;
  19028. } else
  19029. t1 = false;
  19030. } else
  19031. t1 = false;
  19032. else
  19033. t1 = false;
  19034. else
  19035. t1 = false;
  19036. if (t1)
  19037. return inner;
  19038. else
  19039. return A.ForwardedModuleView$0(inner, rule, $T);
  19040. },
  19041. ForwardedModuleView$0(_inner, _rule, $T) {
  19042. var t1 = _rule.prefix,
  19043. t2 = _rule.shownVariables,
  19044. t3 = _rule.hiddenVariables,
  19045. t4 = _rule.shownMixinsAndFunctions,
  19046. t5 = _rule.hiddenMixinsAndFunctions;
  19047. return new A.ForwardedModuleView0(_inner, _rule, A.ForwardedModuleView__forwardedMap0(_inner.get$variables(), t1, t2, t3, type$.Value_2), A.ForwardedModuleView__forwardedMap0(_inner.get$variableNodes(), t1, t2, t3, type$.AstNode_2), A.ForwardedModuleView__forwardedMap0(_inner.get$functions(_inner), t1, t4, t5, $T), A.ForwardedModuleView__forwardedMap0(_inner.get$mixins(), t1, t4, t5, $T), $T._eval$1("ForwardedModuleView0<0>"));
  19048. },
  19049. ForwardedModuleView__forwardedMap0(map, prefix, safelist, blocklist, $V) {
  19050. var t2,
  19051. t1 = prefix == null;
  19052. if (t1)
  19053. if (safelist == null)
  19054. if (blocklist != null) {
  19055. t2 = blocklist._base;
  19056. t2 = t2.get$isEmpty(t2);
  19057. } else
  19058. t2 = true;
  19059. else
  19060. t2 = false;
  19061. else
  19062. t2 = false;
  19063. if (t2)
  19064. return map;
  19065. if (!t1)
  19066. map = new A.PrefixedMapView0(map, prefix, $V._eval$1("PrefixedMapView0<0>"));
  19067. if (safelist != null)
  19068. map = new A.LimitedMapView0(map, safelist._base.intersection$1(new A.MapKeySet(map, type$.MapKeySet_nullable_Object)), type$.$env_1_1_String._bind$1($V)._eval$1("LimitedMapView0<1,2>"));
  19069. else {
  19070. if (blocklist != null) {
  19071. t1 = blocklist._base;
  19072. t1 = t1.get$isNotEmpty(t1);
  19073. } else
  19074. t1 = false;
  19075. if (t1)
  19076. map = A.LimitedMapView$blocklist0(map, blocklist, type$.String, $V);
  19077. }
  19078. return map;
  19079. },
  19080. ForwardedModuleView0: function ForwardedModuleView0(t0, t1, t2, t3, t4, t5, t6) {
  19081. var _ = this;
  19082. _._forwarded_view0$_inner = t0;
  19083. _._forwarded_view0$_rule = t1;
  19084. _.variables = t2;
  19085. _.variableNodes = t3;
  19086. _.functions = t4;
  19087. _.mixins = t5;
  19088. _.$ti = t6;
  19089. },
  19090. FunctionExpression0: function FunctionExpression0(t0, t1, t2, t3) {
  19091. var _ = this;
  19092. _.namespace = t0;
  19093. _.originalName = t1;
  19094. _.$arguments = t2;
  19095. _.span = t3;
  19096. },
  19097. JSFunction0: function JSFunction0() {
  19098. },
  19099. SupportsFunction0: function SupportsFunction0(t0, t1, t2) {
  19100. this.name = t0;
  19101. this.$arguments = t1;
  19102. this.span = t2;
  19103. },
  19104. functionClass_closure: function functionClass_closure() {
  19105. },
  19106. functionClass__closure: function functionClass__closure() {
  19107. },
  19108. functionClass__closure0: function functionClass__closure0() {
  19109. },
  19110. SassFunction0: function SassFunction0(t0) {
  19111. this.callable = t0;
  19112. },
  19113. FunctionRule$0($name, $arguments, children, span, comment) {
  19114. var t1 = A.List_List$unmodifiable(children, type$.Statement_2),
  19115. t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure0());
  19116. return new A.FunctionRule0($name, $arguments, span, t1, t2);
  19117. },
  19118. FunctionRule0: function FunctionRule0(t0, t1, t2, t3, t4) {
  19119. var _ = this;
  19120. _.name = t0;
  19121. _.$arguments = t1;
  19122. _.span = t2;
  19123. _.children = t3;
  19124. _.hasDeclarations = t4;
  19125. },
  19126. unifyComplex0(complexes) {
  19127. var t2, trailingCombinator, leadingCombinator, unifiedBase, t3, t4, newLeadingCombinator, base, newTrailingCombinator, _i, t5, t6, t7, t8, t9, t10, result, _null = null,
  19128. t1 = J.getInterceptor$asx(complexes);
  19129. if (t1.get$length(complexes) === 1)
  19130. return complexes;
  19131. for (t2 = t1.get$iterator(complexes), trailingCombinator = _null, leadingCombinator = trailingCombinator, unifiedBase = leadingCombinator; t2.moveNext$0();) {
  19132. t3 = t2.get$current(t2);
  19133. if (t3.accept$1(B.C__IsUselessVisitor0))
  19134. return _null;
  19135. t4 = t3.components;
  19136. if (t4.length === 1 && t3.leadingCombinators.length !== 0) {
  19137. newLeadingCombinator = B.JSArray_methods.get$single(t3.leadingCombinators);
  19138. if (leadingCombinator != null && leadingCombinator !== newLeadingCombinator)
  19139. return _null;
  19140. leadingCombinator = newLeadingCombinator;
  19141. }
  19142. base = B.JSArray_methods.get$last(t4);
  19143. t3 = base.combinators;
  19144. if (t3.length !== 0) {
  19145. newTrailingCombinator = B.JSArray_methods.get$single(t3);
  19146. if (trailingCombinator != null && trailingCombinator !== newTrailingCombinator)
  19147. return _null;
  19148. trailingCombinator = newTrailingCombinator;
  19149. }
  19150. if (unifiedBase == null)
  19151. unifiedBase = base.selector.components;
  19152. else
  19153. for (t3 = base.selector.components, t4 = t3.length, _i = 0; _i < t4; ++_i) {
  19154. unifiedBase = t3[_i].unify$1(unifiedBase);
  19155. if (unifiedBase == null)
  19156. return _null;
  19157. }
  19158. }
  19159. t2 = type$.JSArray_ComplexSelector_2;
  19160. t3 = A._setArrayType([], t2);
  19161. for (t4 = t1.get$iterator(complexes), t5 = type$.Combinator_2, t6 = type$.ComplexSelectorComponent_2; t4.moveNext$0();) {
  19162. t7 = t4.get$current(t4);
  19163. t8 = t7.components;
  19164. t9 = t8.length;
  19165. if (t9 > 1) {
  19166. t10 = t7.leadingCombinators;
  19167. t8 = B.JSArray_methods.take$1(t8, t9 - 1);
  19168. t7 = t7.lineBreak;
  19169. result = A.List_List$from(t10, false, t5);
  19170. result.fixed$length = Array;
  19171. result.immutable$list = Array;
  19172. t10 = result;
  19173. result = A.List_List$from(t8, false, t6);
  19174. result.fixed$length = Array;
  19175. result.immutable$list = Array;
  19176. t8 = result;
  19177. if (t10.length === 0 && t8.length === 0)
  19178. A.throwExpression(A.ArgumentError$(string$.leadin, _null));
  19179. t3.push(new A.ComplexSelector0(t10, t8, t7));
  19180. }
  19181. }
  19182. t4 = leadingCombinator == null ? B.List_empty13 : A._setArrayType([leadingCombinator], type$.JSArray_Combinator_2);
  19183. unifiedBase.toString;
  19184. t6 = A.CompoundSelector$0(unifiedBase);
  19185. base = A.ComplexSelector$0(t4, A._setArrayType([new A.ComplexSelectorComponent0(t6, A.List_List$unmodifiable(trailingCombinator == null ? B.List_empty13 : A._setArrayType([trailingCombinator], type$.JSArray_Combinator_2), t5))], type$.JSArray_ComplexSelectorComponent_2), t1.any$1(complexes, new A.unifyComplex_closure0()));
  19186. if (t3.length === 0)
  19187. t1 = A._setArrayType([base], t2);
  19188. else {
  19189. t1 = A.List_List$of(A.IterableExtension_get_exceptLast0(t3), true, type$.ComplexSelector_2);
  19190. t1.push(B.JSArray_methods.get$last(t3).concatenate$1(base));
  19191. }
  19192. return A.weave0(t1, false);
  19193. },
  19194. unifyCompound0(compound1, compound2) {
  19195. var t1, result, _i, unified;
  19196. for (t1 = compound1.length, result = compound2, _i = 0; _i < t1; ++_i, result = unified) {
  19197. unified = compound1[_i].unify$1(result);
  19198. if (unified == null)
  19199. return null;
  19200. }
  19201. return A.CompoundSelector$0(result);
  19202. },
  19203. unifyUniversalAndElement0(selector1, selector2) {
  19204. var namespace1, name1, t1, namespace2, name2, namespace, $name, _null = null,
  19205. _s45_ = string$.must_b;
  19206. if (selector1 instanceof A.UniversalSelector0) {
  19207. namespace1 = selector1.namespace;
  19208. name1 = _null;
  19209. } else if (selector1 instanceof A.TypeSelector0) {
  19210. t1 = selector1.name;
  19211. namespace1 = t1.namespace;
  19212. name1 = t1.name;
  19213. } else
  19214. throw A.wrapException(A.ArgumentError$value(selector1, "selector1", _s45_));
  19215. if (selector2 instanceof A.UniversalSelector0) {
  19216. namespace2 = selector2.namespace;
  19217. name2 = _null;
  19218. } else if (selector2 instanceof A.TypeSelector0) {
  19219. t1 = selector2.name;
  19220. namespace2 = t1.namespace;
  19221. name2 = t1.name;
  19222. } else
  19223. throw A.wrapException(A.ArgumentError$value(selector2, "selector2", _s45_));
  19224. if (namespace1 == namespace2 || namespace2 === "*")
  19225. namespace = namespace1;
  19226. else {
  19227. if (namespace1 !== "*")
  19228. return _null;
  19229. namespace = namespace2;
  19230. }
  19231. if (name1 == name2 || name2 == null)
  19232. $name = name1;
  19233. else {
  19234. if (!(name1 == null || name1 === "*"))
  19235. return _null;
  19236. $name = name2;
  19237. }
  19238. return $name == null ? new A.UniversalSelector0(namespace) : new A.TypeSelector0(new A.QualifiedName0($name, namespace));
  19239. },
  19240. weave0(complexes, forceLineBreak) {
  19241. var complex, t2, prefixes, t3, t4, t5, t6, target, i, t7, _i, t8, t9, _i0, parentPrefix, t10, t11, result, t12,
  19242. t1 = J.getInterceptor$asx(complexes);
  19243. if (t1.get$length(complexes) === 1) {
  19244. complex = t1.get$first(complexes);
  19245. if (!forceLineBreak || complex.lineBreak)
  19246. return complexes;
  19247. return A._setArrayType([A.ComplexSelector$0(complex.leadingCombinators, complex.components, true)], type$.JSArray_ComplexSelector_2);
  19248. }
  19249. t2 = type$.JSArray_ComplexSelector_2;
  19250. prefixes = A._setArrayType([t1.get$first(complexes)], t2);
  19251. for (t1 = t1.skip$1(complexes, 1), t1 = t1.get$iterator(t1), t3 = type$.Combinator_2, t4 = type$.ComplexSelectorComponent_2; t1.moveNext$0();) {
  19252. t5 = t1.get$current(t1);
  19253. t6 = t5.components;
  19254. target = B.JSArray_methods.get$last(t6);
  19255. if (t6.length === 1) {
  19256. for (i = 0; i < prefixes.length; ++i)
  19257. prefixes[i] = prefixes[i].concatenate$2$forceLineBreak(t5, forceLineBreak);
  19258. continue;
  19259. }
  19260. t6 = A._setArrayType([], t2);
  19261. for (t7 = prefixes.length, _i = 0; _i < prefixes.length; prefixes.length === t7 || (0, A.throwConcurrentModificationError)(prefixes), ++_i) {
  19262. t8 = A._weaveParents0(prefixes[_i], t5);
  19263. if (t8 == null)
  19264. t8 = B.List_empty14;
  19265. t9 = t8.length;
  19266. _i0 = 0;
  19267. for (; _i0 < t8.length; t8.length === t9 || (0, A.throwConcurrentModificationError)(t8), ++_i0) {
  19268. parentPrefix = t8[_i0];
  19269. t10 = A.List_List$of(parentPrefix.components, true, t4);
  19270. t10.push(target);
  19271. t11 = parentPrefix.lineBreak || forceLineBreak;
  19272. result = A.List_List$from(parentPrefix.leadingCombinators, false, t3);
  19273. result.fixed$length = Array;
  19274. result.immutable$list = Array;
  19275. t12 = result;
  19276. result = A.List_List$from(t10, false, t4);
  19277. result.fixed$length = Array;
  19278. result.immutable$list = Array;
  19279. t10 = result;
  19280. if (t12.length === 0 && t10.length === 0)
  19281. A.throwExpression(A.ArgumentError$(string$.leadin, null));
  19282. t6.push(new A.ComplexSelector0(t12, t10, t11));
  19283. }
  19284. }
  19285. prefixes = t6;
  19286. }
  19287. return prefixes;
  19288. },
  19289. _weaveParents0(prefix, base) {
  19290. var t1, queue1, queue2, trailingCombinators, rootish1, rootish2, t2, rootish, groups1, groups2, lcs, choices, t3, t4, t5, _i, group, t6, t7, t8, _i0, chunk, t9, t10, result, _null = null,
  19291. leadingCombinators = A._mergeLeadingCombinators0(prefix.leadingCombinators, base.leadingCombinators);
  19292. if (leadingCombinators == null)
  19293. return _null;
  19294. t1 = type$.ComplexSelectorComponent_2;
  19295. queue1 = A.ListQueue_ListQueue$of(prefix.components, t1);
  19296. queue2 = A.ListQueue_ListQueue$of(A.IterableExtension_get_exceptLast0(base.components), t1);
  19297. trailingCombinators = A._mergeTrailingCombinators0(queue1, queue2, _null);
  19298. if (trailingCombinators == null)
  19299. return _null;
  19300. rootish1 = A._firstIfRootish0(queue1);
  19301. rootish2 = A._firstIfRootish0(queue2);
  19302. t2 = rootish1 == null;
  19303. if (!t2 && rootish2 != null) {
  19304. rootish = A.unifyCompound0(rootish1.selector.components, rootish2.selector.components);
  19305. if (rootish == null)
  19306. return _null;
  19307. t2 = type$.Combinator_2;
  19308. queue1.addFirst$1(new A.ComplexSelectorComponent0(rootish, A.List_List$unmodifiable(rootish1.combinators, t2)));
  19309. queue2.addFirst$1(new A.ComplexSelectorComponent0(rootish, A.List_List$unmodifiable(rootish2.combinators, t2)));
  19310. } else if (!t2 || rootish2 != null) {
  19311. t2 = t2 ? rootish2 : rootish1;
  19312. t2.toString;
  19313. queue1.addFirst$1(t2);
  19314. queue2.addFirst$1(t2);
  19315. }
  19316. groups1 = A._groupSelectors0(queue1);
  19317. groups2 = A._groupSelectors0(queue2);
  19318. t2 = type$.List_ComplexSelectorComponent_2;
  19319. lcs = A.longestCommonSubsequence0(groups2, groups1, new A._weaveParents_closure3(), t2);
  19320. choices = A._setArrayType([], type$.JSArray_List_Iterable_ComplexSelectorComponent_2);
  19321. for (t3 = lcs.length, t4 = type$.JSArray_Iterable_ComplexSelectorComponent_2, t5 = type$.JSArray_ComplexSelectorComponent_2, _i = 0; _i < lcs.length; lcs.length === t3 || (0, A.throwConcurrentModificationError)(lcs), ++_i) {
  19322. group = lcs[_i];
  19323. t6 = A._setArrayType([], t4);
  19324. for (t7 = A._chunks0(groups1, groups2, new A._weaveParents_closure4(group), t2), t8 = t7.length, _i0 = 0; _i0 < t7.length; t7.length === t8 || (0, A.throwConcurrentModificationError)(t7), ++_i0) {
  19325. chunk = t7[_i0];
  19326. t9 = A._setArrayType([], t5);
  19327. for (t10 = B.JSArray_methods.get$iterator(chunk); t10.moveNext$0();)
  19328. B.JSArray_methods.addAll$1(t9, t10.get$current(t10));
  19329. t6.push(t9);
  19330. }
  19331. choices.push(t6);
  19332. choices.push(A._setArrayType([group], t4));
  19333. groups1.removeFirst$0();
  19334. groups2.removeFirst$0();
  19335. }
  19336. t3 = A._setArrayType([], t4);
  19337. for (t2 = A._chunks0(groups1, groups2, new A._weaveParents_closure5(), t2), t4 = t2.length, _i = 0; _i < t2.length; t2.length === t4 || (0, A.throwConcurrentModificationError)(t2), ++_i) {
  19338. chunk = t2[_i];
  19339. t6 = A._setArrayType([], t5);
  19340. for (t7 = B.JSArray_methods.get$iterator(chunk); t7.moveNext$0();)
  19341. B.JSArray_methods.addAll$1(t6, t7.get$current(t7));
  19342. t3.push(t6);
  19343. }
  19344. choices.push(t3);
  19345. B.JSArray_methods.addAll$1(choices, trailingCombinators);
  19346. t2 = A._setArrayType([], type$.JSArray_ComplexSelector_2);
  19347. for (t3 = J.get$iterator$ax(A.paths0(new A.WhereIterable(choices, new A._weaveParents_closure6(), type$.WhereIterable_List_Iterable_ComplexSelectorComponent_2), type$.Iterable_ComplexSelectorComponent_2)), t4 = type$.Combinator_2, t6 = !prefix.lineBreak, t7 = base.lineBreak; t3.moveNext$0();) {
  19348. t8 = t3.get$current(t3);
  19349. t9 = A._setArrayType([], t5);
  19350. for (t8 = J.get$iterator$ax(t8); t8.moveNext$0();)
  19351. B.JSArray_methods.addAll$1(t9, t8.get$current(t8));
  19352. t8 = !t6 || t7;
  19353. result = A.List_List$from(leadingCombinators, false, t4);
  19354. result.fixed$length = Array;
  19355. result.immutable$list = Array;
  19356. t10 = result;
  19357. result = A.List_List$from(t9, false, t1);
  19358. result.fixed$length = Array;
  19359. result.immutable$list = Array;
  19360. t9 = result;
  19361. if (t10.length === 0 && t9.length === 0)
  19362. A.throwExpression(A.ArgumentError$(string$.leadin, _null));
  19363. t2.push(new A.ComplexSelector0(t10, t9, t8));
  19364. }
  19365. return t2;
  19366. },
  19367. _firstIfRootish0(queue) {
  19368. var first, t1, t2, _i, simple;
  19369. if (queue._collection$_head === queue._collection$_tail)
  19370. return null;
  19371. first = queue.get$first(queue);
  19372. for (t1 = first.selector.components, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  19373. simple = t1[_i];
  19374. if (simple instanceof A.PseudoSelector0 && simple.isClass && $._rootishPseudoClasses0.contains$1(0, simple.normalizedName)) {
  19375. queue.removeFirst$0();
  19376. return first;
  19377. }
  19378. }
  19379. return null;
  19380. },
  19381. _mergeLeadingCombinators0(combinators1, combinators2) {
  19382. var t2, _null = null,
  19383. t1 = combinators1.length;
  19384. if (t1 > 1)
  19385. return _null;
  19386. t2 = combinators2.length;
  19387. if (t2 > 1)
  19388. return _null;
  19389. if (t1 === 0)
  19390. return combinators2;
  19391. if (t2 === 0)
  19392. return combinators1;
  19393. return B.C_ListEquality.equals$2(0, combinators1, combinators2) ? combinators1 : _null;
  19394. },
  19395. _mergeTrailingCombinators0(components1, components2, result) {
  19396. var combinators1, combinators2, t1, t2, combinator1, combinator2, component1, component2, t3, t4, choices, unified, followingSiblingComponent, nextSiblingComponent, _null = null;
  19397. if (result == null)
  19398. result = A.QueueList$(_null, type$.List_List_ComplexSelectorComponent_2);
  19399. combinators1 = components1._collection$_head === components1._collection$_tail ? B.List_empty13 : components1.get$last(components1).combinators;
  19400. combinators2 = components2._collection$_head === components2._collection$_tail ? B.List_empty13 : components2.get$last(components2).combinators;
  19401. t1 = combinators1.length;
  19402. t2 = t1 === 0;
  19403. if (t2 && combinators2.length === 0)
  19404. return result;
  19405. if (t1 > 1 || combinators2.length > 1)
  19406. return _null;
  19407. combinator1 = t2 ? _null : B.JSArray_methods.get$first(combinators1);
  19408. combinator2 = combinators2.length === 0 ? _null : B.JSArray_methods.get$first(combinators2);
  19409. t1 = combinator1 != null;
  19410. if (t1 && combinator2 != null) {
  19411. component1 = components1.removeLast$0(0);
  19412. component2 = components2.removeLast$0(0);
  19413. t1 = combinator1 === B.Combinator_Htt0;
  19414. if (t1 && combinator2 === B.Combinator_Htt0) {
  19415. t1 = component1.selector;
  19416. t2 = component2.selector;
  19417. if (A.compoundIsSuperselector0(t1, t2, _null))
  19418. result.addFirst$1(A._setArrayType([A._setArrayType([component2], type$.JSArray_ComplexSelectorComponent_2)], type$.JSArray_List_ComplexSelectorComponent_2));
  19419. else {
  19420. t3 = type$.JSArray_ComplexSelectorComponent_2;
  19421. t4 = type$.JSArray_List_ComplexSelectorComponent_2;
  19422. if (A.compoundIsSuperselector0(t2, t1, _null))
  19423. result.addFirst$1(A._setArrayType([A._setArrayType([component1], t3)], t4));
  19424. else {
  19425. choices = A._setArrayType([A._setArrayType([component1, component2], t3), A._setArrayType([component2, component1], t3)], t4);
  19426. unified = A.unifyCompound0(t1.components, t2.components);
  19427. if (unified != null)
  19428. choices.push(A._setArrayType([new A.ComplexSelectorComponent0(unified, A.List_List$unmodifiable(B.List_Kw10, type$.Combinator_2))], t3));
  19429. result.addFirst$1(choices);
  19430. }
  19431. }
  19432. } else {
  19433. if (!(t1 && combinator2 === B.Combinator_4QF0))
  19434. t2 = combinator1 === B.Combinator_4QF0 && combinator2 === B.Combinator_Htt0;
  19435. else
  19436. t2 = true;
  19437. if (t2) {
  19438. followingSiblingComponent = t1 ? component1 : component2;
  19439. nextSiblingComponent = t1 ? component2 : component1;
  19440. t1 = type$.JSArray_ComplexSelectorComponent_2;
  19441. t2 = type$.JSArray_List_ComplexSelectorComponent_2;
  19442. if (A.compoundIsSuperselector0(followingSiblingComponent.selector, nextSiblingComponent.selector, _null))
  19443. result.addFirst$1(A._setArrayType([A._setArrayType([nextSiblingComponent], t1)], t2));
  19444. else {
  19445. unified = A.unifyCompound0(component1.selector.components, component2.selector.components);
  19446. t2 = A._setArrayType([A._setArrayType([followingSiblingComponent, nextSiblingComponent], t1)], t2);
  19447. if (unified != null)
  19448. t2.push(A._setArrayType([new A.ComplexSelectorComponent0(unified, A.List_List$unmodifiable(B.List_IoD0, type$.Combinator_2))], t1));
  19449. result.addFirst$1(t2);
  19450. }
  19451. } else {
  19452. if (combinator1 === B.Combinator_Cht0)
  19453. t2 = combinator2 === B.Combinator_4QF0 || combinator2 === B.Combinator_Htt0;
  19454. else
  19455. t2 = false;
  19456. if (t2) {
  19457. result.addFirst$1(A._setArrayType([A._setArrayType([component2], type$.JSArray_ComplexSelectorComponent_2)], type$.JSArray_List_ComplexSelectorComponent_2));
  19458. components1._add$1(component1);
  19459. } else {
  19460. if (combinator2 === B.Combinator_Cht0)
  19461. t1 = combinator1 === B.Combinator_4QF0 || t1;
  19462. else
  19463. t1 = false;
  19464. if (t1) {
  19465. result.addFirst$1(A._setArrayType([A._setArrayType([component1], type$.JSArray_ComplexSelectorComponent_2)], type$.JSArray_List_ComplexSelectorComponent_2));
  19466. components2._add$1(component2);
  19467. } else if (combinator1 === combinator2) {
  19468. unified = A.unifyCompound0(component1.selector.components, component2.selector.components);
  19469. if (unified == null)
  19470. return _null;
  19471. result.addFirst$1(A._setArrayType([A._setArrayType([new A.ComplexSelectorComponent0(unified, A.List_List$unmodifiable(A._setArrayType([combinator1], type$.JSArray_Combinator_2), type$.Combinator_2))], type$.JSArray_ComplexSelectorComponent_2)], type$.JSArray_List_ComplexSelectorComponent_2));
  19472. } else
  19473. return _null;
  19474. }
  19475. }
  19476. }
  19477. return A._mergeTrailingCombinators0(components1, components2, result);
  19478. } else if (t1) {
  19479. if (combinator1 === B.Combinator_Cht0 && !components2.get$isEmpty(components2) && A.compoundIsSuperselector0(components2.get$last(components2).selector, components1.get$last(components1).selector, _null))
  19480. components2.removeLast$0(0);
  19481. result.addFirst$1(A._setArrayType([A._setArrayType([components1.removeLast$0(0)], type$.JSArray_ComplexSelectorComponent_2)], type$.JSArray_List_ComplexSelectorComponent_2));
  19482. return A._mergeTrailingCombinators0(components1, components2, result);
  19483. } else {
  19484. if (combinator2 === B.Combinator_Cht0 && !components1.get$isEmpty(components1) && A.compoundIsSuperselector0(components1.get$last(components1).selector, components2.get$last(components2).selector, _null))
  19485. components1.removeLast$0(0);
  19486. result.addFirst$1(A._setArrayType([A._setArrayType([components2.removeLast$0(0)], type$.JSArray_ComplexSelectorComponent_2)], type$.JSArray_List_ComplexSelectorComponent_2));
  19487. return A._mergeTrailingCombinators0(components1, components2, result);
  19488. }
  19489. },
  19490. _mustUnify0(complex1, complex2) {
  19491. var t2, t3, t4,
  19492. t1 = A.LinkedHashSet_LinkedHashSet$_empty(type$.SimpleSelector_2);
  19493. for (t2 = J.get$iterator$ax(complex1); t2.moveNext$0();)
  19494. for (t3 = B.JSArray_methods.get$iterator(t2.get$current(t2).selector.components), t4 = new A.WhereIterator(t3, A.functions0___isUnique$closure()); t4.moveNext$0();)
  19495. t1.add$1(0, t3.get$current(t3));
  19496. if (t1._collection$_length === 0)
  19497. return false;
  19498. return J.any$1$ax(complex2, new A._mustUnify_closure0(t1));
  19499. },
  19500. _isUnique0(simple) {
  19501. var t1;
  19502. if (!(simple instanceof A.IDSelector0))
  19503. t1 = simple instanceof A.PseudoSelector0 && !simple.isClass;
  19504. else
  19505. t1 = true;
  19506. return t1;
  19507. },
  19508. _chunks0(queue1, queue2, done, $T) {
  19509. var chunk2, t2,
  19510. t1 = $T._eval$1("JSArray<0>"),
  19511. chunk1 = A._setArrayType([], t1);
  19512. for (; !done.call$1(queue1);)
  19513. chunk1.push(queue1.removeFirst$0());
  19514. chunk2 = A._setArrayType([], t1);
  19515. for (; !done.call$1(queue2);)
  19516. chunk2.push(queue2.removeFirst$0());
  19517. t1 = chunk1.length === 0;
  19518. if (t1 && chunk2.length === 0)
  19519. return A._setArrayType([], $T._eval$1("JSArray<List<0>>"));
  19520. if (t1)
  19521. return A._setArrayType([chunk2], $T._eval$1("JSArray<List<0>>"));
  19522. if (chunk2.length === 0)
  19523. return A._setArrayType([chunk1], $T._eval$1("JSArray<List<0>>"));
  19524. t1 = A.List_List$of(chunk1, true, $T);
  19525. B.JSArray_methods.addAll$1(t1, chunk2);
  19526. t2 = A.List_List$of(chunk2, true, $T);
  19527. B.JSArray_methods.addAll$1(t2, chunk1);
  19528. return A._setArrayType([t1, t2], $T._eval$1("JSArray<List<0>>"));
  19529. },
  19530. paths0(choices, $T) {
  19531. return J.fold$2$ax(choices, A._setArrayType([A._setArrayType([], $T._eval$1("JSArray<0>"))], $T._eval$1("JSArray<List<0>>")), new A.paths_closure0($T));
  19532. },
  19533. _groupSelectors0(complex) {
  19534. var t2, t3, t4,
  19535. groups = A.QueueList$(null, type$.List_ComplexSelectorComponent_2),
  19536. t1 = type$.JSArray_ComplexSelectorComponent_2,
  19537. group = A._setArrayType([], t1);
  19538. for (t2 = A._ListQueueIterator$(complex), t3 = A._instanceType(t2)._precomputed1; t2.moveNext$0();) {
  19539. t4 = t2._collection$_current;
  19540. if (t4 == null)
  19541. t4 = t3._as(t4);
  19542. group.push(t4);
  19543. if (t4.combinators.length === 0) {
  19544. groups._queue_list$_add$1(group);
  19545. group = A._setArrayType([], t1);
  19546. }
  19547. }
  19548. if (group.length !== 0)
  19549. groups._queue_list$_add$1(group);
  19550. return groups;
  19551. },
  19552. listIsSuperselector0(list1, list2) {
  19553. return B.JSArray_methods.every$1(list2, new A.listIsSuperselector_closure0(list1));
  19554. },
  19555. _complexIsParentSuperselector0(complex1, complex2) {
  19556. var base, t1, t2;
  19557. if (J.get$length$asx(complex1) > J.get$length$asx(complex2))
  19558. return false;
  19559. base = new A.ComplexSelectorComponent0(A.CompoundSelector$0(A._setArrayType([new A.PlaceholderSelector0("<temp>")], type$.JSArray_SimpleSelector_2)), A.List_List$unmodifiable(B.List_empty13, type$.Combinator_2));
  19560. t1 = type$.ComplexSelectorComponent_2;
  19561. t2 = A.List_List$of(complex1, true, t1);
  19562. t2.push(base);
  19563. t1 = A.List_List$of(complex2, true, t1);
  19564. t1.push(base);
  19565. return A.complexIsSuperselector0(t2, t1);
  19566. },
  19567. complexIsSuperselector0(complex1, complex2) {
  19568. var t1, t2, t3, i1, i2, remaining1, t4, remaining2, component1, t5, parents, endOfSubselector, component2, combinator1, combinator2;
  19569. if (B.JSArray_methods.get$last(complex1).combinators.length !== 0)
  19570. return false;
  19571. if (B.JSArray_methods.get$last(complex2).combinators.length !== 0)
  19572. return false;
  19573. for (t1 = type$.JSArray_ComplexSelectorComponent_2, t2 = A._arrayInstanceType(complex2), t3 = t2._precomputed1, t2 = t2._eval$1("SubListIterable<1>"), i1 = 0, i2 = 0; true;) {
  19574. remaining1 = complex1.length - i1;
  19575. t4 = complex2.length;
  19576. remaining2 = t4 - i2;
  19577. if (remaining1 === 0 || remaining2 === 0)
  19578. return false;
  19579. if (remaining1 > remaining2)
  19580. return false;
  19581. component1 = complex1[i1];
  19582. t5 = component1.combinators;
  19583. if (t5.length > 1)
  19584. return false;
  19585. if (remaining1 === 1) {
  19586. parents = B.JSArray_methods.sublist$2(complex2, i2, t4 - 1);
  19587. if (B.JSArray_methods.any$1(parents, new A.complexIsSuperselector_closure1()))
  19588. return false;
  19589. return A.compoundIsSuperselector0(component1.selector, B.JSArray_methods.get$last(complex2).selector, parents);
  19590. }
  19591. for (t4 = component1.selector, endOfSubselector = i2, parents = null; true;) {
  19592. component2 = complex2[endOfSubselector];
  19593. if (component2.combinators.length > 1)
  19594. return false;
  19595. if (A.compoundIsSuperselector0(t4, component2.selector, parents))
  19596. break;
  19597. ++endOfSubselector;
  19598. if (endOfSubselector === complex2.length - 1)
  19599. return false;
  19600. if (parents == null)
  19601. parents = A._setArrayType([], t1);
  19602. parents.push(component2);
  19603. }
  19604. component2 = complex2[endOfSubselector];
  19605. combinator1 = A.IterableExtension_get_firstOrNull(t5);
  19606. combinator2 = A.IterableExtension_get_firstOrNull(component2.combinators);
  19607. if (combinator1 != combinator2)
  19608. if (!(combinator1 == null && combinator2 === B.Combinator_Cht0))
  19609. t4 = combinator1 === B.Combinator_Htt0 && combinator2 === B.Combinator_4QF0;
  19610. else
  19611. t4 = true;
  19612. else
  19613. t4 = true;
  19614. if (!t4)
  19615. return false;
  19616. ++i1;
  19617. i2 = endOfSubselector + 1;
  19618. if (complex1.length - i1 === 1)
  19619. if (combinator1 === B.Combinator_Htt0) {
  19620. t4 = complex2.length - 1;
  19621. t5 = new A.SubListIterable(complex2, 0, t4, t2);
  19622. t5.SubListIterable$3(complex2, 0, t4, t3);
  19623. if (!t5.skip$1(0, i2).every$1(0, new A.complexIsSuperselector_closure2(combinator1)))
  19624. return false;
  19625. } else if (combinator1 != null)
  19626. if (complex2.length - i2 > 1)
  19627. return false;
  19628. }
  19629. },
  19630. _isSupercombinator0(combinator1, combinator2) {
  19631. var t1;
  19632. if (combinator1 != combinator2)
  19633. if (!(combinator1 == null && combinator2 === B.Combinator_Cht0))
  19634. t1 = combinator1 === B.Combinator_Htt0 && combinator2 === B.Combinator_4QF0;
  19635. else
  19636. t1 = true;
  19637. else
  19638. t1 = true;
  19639. return t1;
  19640. },
  19641. compoundIsSuperselector0(compound1, compound2, parents) {
  19642. var t2, t3, t4, t5, t6, t7, t8, _i, simple1,
  19643. tuple1 = A._findPseudoElementIndexed0(compound1),
  19644. tuple2 = A._findPseudoElementIndexed0(compound2),
  19645. t1 = tuple1 == null;
  19646. if (!t1 && tuple2 != null) {
  19647. if (tuple1.item1.isSuperselector$1(tuple2.item1)) {
  19648. t1 = compound1.components;
  19649. t2 = tuple1.item2;
  19650. t3 = type$.int;
  19651. t4 = A._arrayInstanceType(t1)._precomputed1;
  19652. t5 = A.SubListIterable$(t1, 0, A.checkNotNullable(t2, "count", t3), t4);
  19653. t6 = compound2.components;
  19654. t7 = tuple2.item2;
  19655. t8 = A._arrayInstanceType(t6)._precomputed1;
  19656. t1 = A._compoundComponentsIsSuperselector0(t5, A.SubListIterable$(t6, 0, A.checkNotNullable(t7, "count", t3), t8), parents) && A._compoundComponentsIsSuperselector0(A.SubListIterable$(t1, t2 + 1, null, t4), A.SubListIterable$(t6, t7 + 1, null, t8), parents);
  19657. } else
  19658. t1 = false;
  19659. return t1;
  19660. } else if (!t1 || tuple2 != null)
  19661. return false;
  19662. for (t1 = compound1.components, t2 = t1.length, t3 = compound2.components, _i = 0; _i < t2; ++_i) {
  19663. simple1 = t1[_i];
  19664. if (simple1 instanceof A.PseudoSelector0 && simple1.selector != null) {
  19665. if (!A._selectorPseudoIsSuperselector0(simple1, compound2, parents))
  19666. return false;
  19667. } else if (!B.JSArray_methods.any$1(t3, simple1.get$isSuperselector()))
  19668. return false;
  19669. }
  19670. return true;
  19671. },
  19672. _findPseudoElementIndexed0(compound) {
  19673. var t1, t2, i, simple;
  19674. for (t1 = compound.components, t2 = t1.length, i = 0; i < t2; ++i) {
  19675. simple = t1[i];
  19676. if (simple instanceof A.PseudoSelector0 && !simple.isClass)
  19677. return new A.Tuple2(simple, i, type$.Tuple2_PseudoSelector_int_2);
  19678. }
  19679. return null;
  19680. },
  19681. _compoundComponentsIsSuperselector0(compound1, compound2, parents) {
  19682. if (compound1.get$length(compound1) === 0)
  19683. return true;
  19684. if (compound2.get$length(compound2) === 0)
  19685. compound2 = A._setArrayType([new A.UniversalSelector0("*")], type$.JSArray_SimpleSelector_2);
  19686. return A.compoundIsSuperselector0(A.CompoundSelector$0(compound1), A.CompoundSelector$0(compound2), parents);
  19687. },
  19688. _selectorPseudoIsSuperselector0(pseudo1, compound2, parents) {
  19689. var selector1_ = pseudo1.selector;
  19690. if (selector1_ == null)
  19691. throw A.wrapException(A.ArgumentError$("Selector " + pseudo1.toString$0(0) + " must have a selector argument.", null));
  19692. switch (pseudo1.normalizedName) {
  19693. case "is":
  19694. case "matches":
  19695. case "any":
  19696. case "where":
  19697. return A._selectorPseudoArgs0(compound2, pseudo1.name, true).any$1(0, new A._selectorPseudoIsSuperselector_closure6(selector1_)) || B.JSArray_methods.any$1(selector1_.components, new A._selectorPseudoIsSuperselector_closure7(parents, compound2));
  19698. case "has":
  19699. case "host":
  19700. case "host-context":
  19701. return A._selectorPseudoArgs0(compound2, pseudo1.name, true).any$1(0, new A._selectorPseudoIsSuperselector_closure8(selector1_));
  19702. case "slotted":
  19703. return A._selectorPseudoArgs0(compound2, pseudo1.name, false).any$1(0, new A._selectorPseudoIsSuperselector_closure9(selector1_));
  19704. case "not":
  19705. return B.JSArray_methods.every$1(selector1_.components, new A._selectorPseudoIsSuperselector_closure10(compound2, pseudo1));
  19706. case "current":
  19707. return A._selectorPseudoArgs0(compound2, pseudo1.name, true).any$1(0, new A._selectorPseudoIsSuperselector_closure11(selector1_));
  19708. case "nth-child":
  19709. case "nth-last-child":
  19710. return B.JSArray_methods.any$1(compound2.components, new A._selectorPseudoIsSuperselector_closure12(pseudo1, selector1_));
  19711. default:
  19712. throw A.wrapException("unreachable");
  19713. }
  19714. },
  19715. _selectorPseudoArgs0(compound, $name, isClass) {
  19716. var t1 = type$.WhereTypeIterable_PseudoSelector_2;
  19717. return A.IterableNullableExtension_whereNotNull(new A.MappedIterable(new A.WhereIterable(new A.WhereTypeIterable(compound.components, t1), new A._selectorPseudoArgs_closure1(isClass, $name), t1._eval$1("WhereIterable<Iterable.E>")), new A._selectorPseudoArgs_closure2(), t1._eval$1("MappedIterable<Iterable.E,SelectorList0?>")), type$.SelectorList_2);
  19718. },
  19719. unifyComplex_closure0: function unifyComplex_closure0() {
  19720. },
  19721. _weaveParents_closure3: function _weaveParents_closure3() {
  19722. },
  19723. _weaveParents_closure4: function _weaveParents_closure4(t0) {
  19724. this.group = t0;
  19725. },
  19726. _weaveParents_closure5: function _weaveParents_closure5() {
  19727. },
  19728. _weaveParents_closure6: function _weaveParents_closure6() {
  19729. },
  19730. _mustUnify_closure0: function _mustUnify_closure0(t0) {
  19731. this.uniqueSelectors = t0;
  19732. },
  19733. _mustUnify__closure0: function _mustUnify__closure0(t0) {
  19734. this.uniqueSelectors = t0;
  19735. },
  19736. paths_closure0: function paths_closure0(t0) {
  19737. this.T = t0;
  19738. },
  19739. paths__closure0: function paths__closure0(t0, t1) {
  19740. this.paths = t0;
  19741. this.T = t1;
  19742. },
  19743. paths___closure0: function paths___closure0(t0, t1) {
  19744. this.option = t0;
  19745. this.T = t1;
  19746. },
  19747. listIsSuperselector_closure0: function listIsSuperselector_closure0(t0) {
  19748. this.list1 = t0;
  19749. },
  19750. listIsSuperselector__closure0: function listIsSuperselector__closure0(t0) {
  19751. this.complex1 = t0;
  19752. },
  19753. complexIsSuperselector_closure1: function complexIsSuperselector_closure1() {
  19754. },
  19755. complexIsSuperselector_closure2: function complexIsSuperselector_closure2(t0) {
  19756. this.combinator1 = t0;
  19757. },
  19758. _selectorPseudoIsSuperselector_closure6: function _selectorPseudoIsSuperselector_closure6(t0) {
  19759. this.selector1 = t0;
  19760. },
  19761. _selectorPseudoIsSuperselector_closure7: function _selectorPseudoIsSuperselector_closure7(t0, t1) {
  19762. this.parents = t0;
  19763. this.compound2 = t1;
  19764. },
  19765. _selectorPseudoIsSuperselector_closure8: function _selectorPseudoIsSuperselector_closure8(t0) {
  19766. this.selector1 = t0;
  19767. },
  19768. _selectorPseudoIsSuperselector_closure9: function _selectorPseudoIsSuperselector_closure9(t0) {
  19769. this.selector1 = t0;
  19770. },
  19771. _selectorPseudoIsSuperselector_closure10: function _selectorPseudoIsSuperselector_closure10(t0, t1) {
  19772. this.compound2 = t0;
  19773. this.pseudo1 = t1;
  19774. },
  19775. _selectorPseudoIsSuperselector__closure0: function _selectorPseudoIsSuperselector__closure0(t0, t1) {
  19776. this.complex = t0;
  19777. this.pseudo1 = t1;
  19778. },
  19779. _selectorPseudoIsSuperselector___closure1: function _selectorPseudoIsSuperselector___closure1(t0) {
  19780. this.simple2 = t0;
  19781. },
  19782. _selectorPseudoIsSuperselector___closure2: function _selectorPseudoIsSuperselector___closure2(t0) {
  19783. this.simple2 = t0;
  19784. },
  19785. _selectorPseudoIsSuperselector_closure11: function _selectorPseudoIsSuperselector_closure11(t0) {
  19786. this.selector1 = t0;
  19787. },
  19788. _selectorPseudoIsSuperselector_closure12: function _selectorPseudoIsSuperselector_closure12(t0, t1) {
  19789. this.pseudo1 = t0;
  19790. this.selector1 = t1;
  19791. },
  19792. _selectorPseudoArgs_closure1: function _selectorPseudoArgs_closure1(t0, t1) {
  19793. this.isClass = t0;
  19794. this.name = t1;
  19795. },
  19796. _selectorPseudoArgs_closure2: function _selectorPseudoArgs_closure2() {
  19797. },
  19798. globalFunctions_closure0: function globalFunctions_closure0() {
  19799. },
  19800. IDSelector0: function IDSelector0(t0) {
  19801. this.name = t0;
  19802. },
  19803. IDSelector_unify_closure0: function IDSelector_unify_closure0(t0) {
  19804. this.$this = t0;
  19805. },
  19806. IfExpression0: function IfExpression0(t0, t1) {
  19807. this.$arguments = t0;
  19808. this.span = t1;
  19809. },
  19810. IfClause$0(expression, children) {
  19811. var t1 = A.List_List$unmodifiable(children, type$.Statement_2);
  19812. return new A.IfClause0(expression, t1, B.JSArray_methods.any$1(t1, new A.IfRuleClause$__closure0()));
  19813. },
  19814. ElseClause$0(children) {
  19815. var t1 = A.List_List$unmodifiable(children, type$.Statement_2);
  19816. return new A.ElseClause0(t1, B.JSArray_methods.any$1(t1, new A.IfRuleClause$__closure0()));
  19817. },
  19818. IfRule0: function IfRule0(t0, t1, t2) {
  19819. this.clauses = t0;
  19820. this.lastClause = t1;
  19821. this.span = t2;
  19822. },
  19823. IfRule_toString_closure0: function IfRule_toString_closure0() {
  19824. },
  19825. IfRuleClause0: function IfRuleClause0() {
  19826. },
  19827. IfRuleClause$__closure0: function IfRuleClause$__closure0() {
  19828. },
  19829. IfRuleClause$___closure0: function IfRuleClause$___closure0() {
  19830. },
  19831. IfClause0: function IfClause0(t0, t1, t2) {
  19832. this.expression = t0;
  19833. this.children = t1;
  19834. this.hasDeclarations = t2;
  19835. },
  19836. ElseClause0: function ElseClause0(t0, t1) {
  19837. this.children = t0;
  19838. this.hasDeclarations = t1;
  19839. },
  19840. jsToDartList(list) {
  19841. return self.immutable.isOrderedMap(list) ? J.toArray$0$x(type$.ImmutableList._as(list)) : type$.List_dynamic._as(list);
  19842. },
  19843. dartMapToImmutableMap(dartMap) {
  19844. var t1, t2,
  19845. immutableMap = J.asMutable$0$x(new self.immutable.OrderedMap());
  19846. for (t1 = dartMap.get$entries(dartMap), t1 = t1.get$iterator(t1); t1.moveNext$0();) {
  19847. t2 = t1.get$current(t1);
  19848. immutableMap = J.$set$2$x(immutableMap, t2.key, t2.value);
  19849. }
  19850. return J.asImmutable$0$x(immutableMap);
  19851. },
  19852. immutableMapToDartMap(immutableMap) {
  19853. var dartMap = A.LinkedHashMap_LinkedHashMap$_empty(type$.Object, type$.nullable_Object);
  19854. J.forEach$1$x(immutableMap, A.allowInterop(new A.immutableMapToDartMap_closure(dartMap)));
  19855. return dartMap;
  19856. },
  19857. ImmutableList: function ImmutableList() {
  19858. },
  19859. ImmutableMap: function ImmutableMap() {
  19860. },
  19861. immutableMapToDartMap_closure: function immutableMapToDartMap_closure(t0) {
  19862. this.dartMap = t0;
  19863. },
  19864. NodeImporter__addSassPath($async$includePaths) {
  19865. return A._makeSyncStarIterable(function() {
  19866. var includePaths = $async$includePaths;
  19867. var $async$goto = 0, $async$handler = 2, $async$currentError, t1, sassPath;
  19868. return function $async$NodeImporter__addSassPath($async$errorCode, $async$result) {
  19869. if ($async$errorCode === 1) {
  19870. $async$currentError = $async$result;
  19871. $async$goto = $async$handler;
  19872. }
  19873. while (true)
  19874. switch ($async$goto) {
  19875. case 0:
  19876. // Function start
  19877. $async$goto = 3;
  19878. return A._IterationMarker_yieldStar(includePaths);
  19879. case 3:
  19880. // after yield
  19881. t1 = J.get$env$x(self.process);
  19882. if (t1 == null)
  19883. t1 = type$.Object._as(t1);
  19884. sassPath = A._asStringQ(t1.SASS_PATH);
  19885. if (sassPath == null) {
  19886. // goto return
  19887. $async$goto = 1;
  19888. break;
  19889. }
  19890. $async$goto = 4;
  19891. return A._IterationMarker_yieldStar(A._setArrayType(sassPath.split(J.$eq$(J.get$platform$x(self.process), "win32") ? ";" : ":"), type$.JSArray_String));
  19892. case 4:
  19893. // after yield
  19894. case 1:
  19895. // return
  19896. return A._IterationMarker_endOfIteration();
  19897. case 2:
  19898. // rethrow
  19899. return A._IterationMarker_uncaughtError($async$currentError);
  19900. }
  19901. };
  19902. }, type$.String);
  19903. },
  19904. NodeImporter: function NodeImporter(t0, t1, t2) {
  19905. this._implementation$_options = t0;
  19906. this._includePaths = t1;
  19907. this._implementation$_importers = t2;
  19908. },
  19909. NodeImporter__tryPath_closure: function NodeImporter__tryPath_closure(t0) {
  19910. this.path = t0;
  19911. },
  19912. NodeImporter__tryPath_closure0: function NodeImporter__tryPath_closure0() {
  19913. },
  19914. ModifiableCssImport0: function ModifiableCssImport0(t0, t1, t2) {
  19915. var _ = this;
  19916. _.url = t0;
  19917. _.modifiers = t1;
  19918. _.span = t2;
  19919. _._node0$_indexInParent = _._node0$_parent = null;
  19920. _.isGroupEnd = false;
  19921. },
  19922. ImportCache$0(importers, loadPaths, logger, packageConfig) {
  19923. var t1 = type$.nullable_Tuple3_Importer_Uri_Uri_2,
  19924. t2 = type$.Uri,
  19925. t3 = A.ImportCache__toImporters0(importers, loadPaths, packageConfig);
  19926. return new A.ImportCache0(t3, logger, A.LinkedHashMap_LinkedHashMap$_empty(type$.Tuple2_Uri_bool, t1), A.LinkedHashMap_LinkedHashMap$_empty(type$.Tuple4_of_Uri_and_bool_and_Importer_and_nullable_Uri_2, t1), A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.nullable_Stylesheet_2), A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.ImporterResult_2));
  19927. },
  19928. ImportCache$none(logger) {
  19929. var t1 = type$.nullable_Tuple3_Importer_Uri_Uri_2,
  19930. t2 = type$.Uri;
  19931. return new A.ImportCache0(B.List_empty23, logger, A.LinkedHashMap_LinkedHashMap$_empty(type$.Tuple2_Uri_bool, t1), A.LinkedHashMap_LinkedHashMap$_empty(type$.Tuple4_of_Uri_and_bool_and_Importer_and_nullable_Uri_2, t1), A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.nullable_Stylesheet_2), A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.ImporterResult_2));
  19932. },
  19933. ImportCache__toImporters0(importers, loadPaths, packageConfig) {
  19934. var sassPath, t2, t3, _i, path, _null = null,
  19935. t1 = J.get$env$x(self.process);
  19936. if (t1 == null)
  19937. t1 = type$.Object._as(t1);
  19938. sassPath = A._asStringQ(t1.SASS_PATH);
  19939. t1 = A._setArrayType([], type$.JSArray_Importer);
  19940. if (importers != null)
  19941. B.JSArray_methods.addAll$1(t1, importers);
  19942. if (loadPaths != null)
  19943. for (t2 = J.get$iterator$ax(loadPaths); t2.moveNext$0();) {
  19944. t3 = t2.get$current(t2);
  19945. t1.push(new A.FilesystemImporter0($.$get$context().absolute$15(t3, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null)));
  19946. }
  19947. if (sassPath != null) {
  19948. t2 = sassPath.split(J.$eq$(J.get$platform$x(self.process), "win32") ? ";" : ":");
  19949. t3 = t2.length;
  19950. _i = 0;
  19951. for (; _i < t3; ++_i) {
  19952. path = t2[_i];
  19953. t1.push(new A.FilesystemImporter0($.$get$context().absolute$15(path, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null)));
  19954. }
  19955. }
  19956. return t1;
  19957. },
  19958. ImportCache0: function ImportCache0(t0, t1, t2, t3, t4, t5) {
  19959. var _ = this;
  19960. _._import_cache$_importers = t0;
  19961. _._import_cache$_logger = t1;
  19962. _._import_cache$_canonicalizeCache = t2;
  19963. _._import_cache$_relativeCanonicalizeCache = t3;
  19964. _._import_cache$_importCache = t4;
  19965. _._import_cache$_resultsCache = t5;
  19966. },
  19967. ImportCache_canonicalize_closure1: function ImportCache_canonicalize_closure1(t0, t1, t2, t3, t4) {
  19968. var _ = this;
  19969. _.$this = t0;
  19970. _.baseUrl = t1;
  19971. _.url = t2;
  19972. _.baseImporter = t3;
  19973. _.forImport = t4;
  19974. },
  19975. ImportCache_canonicalize_closure2: function ImportCache_canonicalize_closure2(t0, t1, t2) {
  19976. this.$this = t0;
  19977. this.url = t1;
  19978. this.forImport = t2;
  19979. },
  19980. ImportCache__canonicalize_closure0: function ImportCache__canonicalize_closure0(t0, t1) {
  19981. this.importer = t0;
  19982. this.url = t1;
  19983. },
  19984. ImportCache_importCanonical_closure0: function ImportCache_importCanonical_closure0(t0, t1, t2, t3, t4) {
  19985. var _ = this;
  19986. _.$this = t0;
  19987. _.importer = t1;
  19988. _.canonicalUrl = t2;
  19989. _.originalUrl = t3;
  19990. _.quiet = t4;
  19991. },
  19992. ImportCache_humanize_closure2: function ImportCache_humanize_closure2(t0) {
  19993. this.canonicalUrl = t0;
  19994. },
  19995. ImportCache_humanize_closure3: function ImportCache_humanize_closure3() {
  19996. },
  19997. ImportCache_humanize_closure4: function ImportCache_humanize_closure4() {
  19998. },
  19999. ImportRule0: function ImportRule0(t0, t1) {
  20000. this.imports = t0;
  20001. this.span = t1;
  20002. },
  20003. NodeImporter0: function NodeImporter0() {
  20004. },
  20005. CanonicalizeOptions: function CanonicalizeOptions() {
  20006. },
  20007. NodeImporterResult0: function NodeImporterResult0() {
  20008. },
  20009. Importer0: function Importer0() {
  20010. },
  20011. NodeImporterResult1: function NodeImporterResult1() {
  20012. },
  20013. IncludeRule0: function IncludeRule0(t0, t1, t2, t3, t4) {
  20014. var _ = this;
  20015. _.namespace = t0;
  20016. _.name = t1;
  20017. _.$arguments = t2;
  20018. _.content = t3;
  20019. _.span = t4;
  20020. },
  20021. InterpolatedFunctionExpression0: function InterpolatedFunctionExpression0(t0, t1, t2) {
  20022. this.name = t0;
  20023. this.$arguments = t1;
  20024. this.span = t2;
  20025. },
  20026. Interpolation$0(contents, span) {
  20027. var t1 = new A.Interpolation0(A.List_List$unmodifiable(contents, type$.Object), span);
  20028. t1.Interpolation$20(contents, span);
  20029. return t1;
  20030. },
  20031. Interpolation0: function Interpolation0(t0, t1) {
  20032. this.contents = t0;
  20033. this.span = t1;
  20034. },
  20035. Interpolation_toString_closure0: function Interpolation_toString_closure0() {
  20036. },
  20037. SupportsInterpolation0: function SupportsInterpolation0(t0, t1) {
  20038. this.expression = t0;
  20039. this.span = t1;
  20040. },
  20041. InterpolationBuffer0: function InterpolationBuffer0(t0, t1) {
  20042. this._interpolation_buffer0$_text = t0;
  20043. this._interpolation_buffer0$_contents = t1;
  20044. },
  20045. _realCasePath0(path) {
  20046. var prefix, t1;
  20047. if (!(J.$eq$(J.get$platform$x(self.process), "win32") || J.$eq$(J.get$platform$x(self.process), "darwin")))
  20048. return path;
  20049. if (J.$eq$(J.get$platform$x(self.process), "win32")) {
  20050. prefix = B.JSString_methods.substring$2(path, 0, $.$get$context().style.rootLength$1(path));
  20051. t1 = prefix.length;
  20052. if (t1 !== 0 && A.isAlphabetic1(B.JSString_methods._codeUnitAt$1(prefix, 0)))
  20053. path = prefix.toUpperCase() + B.JSString_methods.substring$1(path, t1);
  20054. }
  20055. return new A._realCasePath_helper0().call$1(path);
  20056. },
  20057. _realCasePath_helper0: function _realCasePath_helper0() {
  20058. },
  20059. _realCasePath_helper_closure0: function _realCasePath_helper_closure0(t0, t1, t2) {
  20060. this.helper = t0;
  20061. this.dirname = t1;
  20062. this.path = t2;
  20063. },
  20064. _realCasePath_helper__closure0: function _realCasePath_helper__closure0(t0) {
  20065. this.basename = t0;
  20066. },
  20067. ModifiableCssKeyframeBlock$0(selector, span) {
  20068. var t1 = A._setArrayType([], type$.JSArray_ModifiableCssNode_2);
  20069. return new A.ModifiableCssKeyframeBlock0(selector, span, new A.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode_2), t1);
  20070. },
  20071. ModifiableCssKeyframeBlock0: function ModifiableCssKeyframeBlock0(t0, t1, t2, t3) {
  20072. var _ = this;
  20073. _.selector = t0;
  20074. _.span = t1;
  20075. _.children = t2;
  20076. _._node0$_children = t3;
  20077. _._node0$_indexInParent = _._node0$_parent = null;
  20078. _.isGroupEnd = false;
  20079. },
  20080. KeyframeSelectorParser$0(contents, logger) {
  20081. var t1 = A.SpanScanner$(contents, null);
  20082. return new A.KeyframeSelectorParser0(t1, logger);
  20083. },
  20084. KeyframeSelectorParser0: function KeyframeSelectorParser0(t0, t1) {
  20085. this.scanner = t0;
  20086. this.logger = t1;
  20087. },
  20088. KeyframeSelectorParser_parse_closure0: function KeyframeSelectorParser_parse_closure0(t0) {
  20089. this.$this = t0;
  20090. },
  20091. render(options, callback) {
  20092. var fiber = J.get$fiber$x(options);
  20093. if (fiber != null)
  20094. J.run$0$x(fiber.call$1(A.allowInterop(new A.render_closure(callback, options))));
  20095. else
  20096. A._renderAsync(options).then$1$2$onError(0, new A.render_closure0(callback), new A.render_closure1(callback), type$.Null);
  20097. },
  20098. _renderAsync(options) {
  20099. var $async$goto = 0,
  20100. $async$completer = A._makeAsyncAwaitCompleter(type$.RenderResult),
  20101. $async$returnValue, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15, result, start, t1, data, file;
  20102. var $async$_renderAsync = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  20103. if ($async$errorCode === 1)
  20104. return A._asyncRethrow($async$result, $async$completer);
  20105. while (true)
  20106. switch ($async$goto) {
  20107. case 0:
  20108. // Function start
  20109. start = new A.DateTime(Date.now(), false);
  20110. t1 = J.getInterceptor$x(options);
  20111. data = t1.get$data(options);
  20112. file = A.NullableExtension_andThen0(t1.get$file(options), A.path__absolute$closure());
  20113. $async$goto = data != null ? 3 : 5;
  20114. break;
  20115. case 3:
  20116. // then
  20117. t2 = A._parseImporter(options, start);
  20118. t3 = A._parseFunctions(options, start, true);
  20119. t4 = t1.get$indentedSyntax(options);
  20120. t4 = !J.$eq$(t4, false) && t4 != null ? B.Syntax_Sass_sass0 : null;
  20121. t5 = A._parseOutputStyle(t1.get$outputStyle(options));
  20122. t6 = J.$eq$(t1.get$indentType(options), "tab");
  20123. t7 = A._parseIndentWidth(t1.get$indentWidth(options));
  20124. t8 = A._parseLineFeed(t1.get$linefeed(options));
  20125. t9 = file == null ? "stdin" : $.$get$context().toUri$1(file).toString$0(0);
  20126. t10 = t1.get$quietDeps(options);
  20127. if (t10 == null)
  20128. t10 = false;
  20129. t11 = t1.get$verbose(options);
  20130. if (t11 == null)
  20131. t11 = false;
  20132. t12 = t1.get$charset(options);
  20133. if (t12 == null)
  20134. t12 = true;
  20135. t13 = A._enableSourceMaps(options);
  20136. t1 = t1.get$logger(options);
  20137. t14 = J.$eq$(self.process.stdout.isTTY, true);
  20138. t15 = $._glyphs;
  20139. $async$goto = 6;
  20140. return A._asyncAwait(A.compileStringAsync0(data, t12, t3, null, null, t7, t8, new A.NodeToDartLogger(t1, new A.StderrLogger0(t14), t15 === B.C_AsciiGlyphSet), t2, t10, t13, t5, t4, t9, !t6, t11), $async$_renderAsync);
  20141. case 6:
  20142. // returning from await.
  20143. result = $async$result;
  20144. // goto join
  20145. $async$goto = 4;
  20146. break;
  20147. case 5:
  20148. // else
  20149. $async$goto = file != null ? 7 : 9;
  20150. break;
  20151. case 7:
  20152. // then
  20153. t2 = A._parseImporter(options, start);
  20154. t3 = A._parseFunctions(options, start, true);
  20155. t4 = t1.get$indentedSyntax(options);
  20156. t4 = !J.$eq$(t4, false) && t4 != null ? B.Syntax_Sass_sass0 : null;
  20157. t5 = A._parseOutputStyle(t1.get$outputStyle(options));
  20158. t6 = J.$eq$(t1.get$indentType(options), "tab");
  20159. t7 = A._parseIndentWidth(t1.get$indentWidth(options));
  20160. t8 = A._parseLineFeed(t1.get$linefeed(options));
  20161. t9 = t1.get$quietDeps(options);
  20162. if (t9 == null)
  20163. t9 = false;
  20164. t10 = t1.get$verbose(options);
  20165. if (t10 == null)
  20166. t10 = false;
  20167. t11 = t1.get$charset(options);
  20168. if (t11 == null)
  20169. t11 = true;
  20170. t12 = A._enableSourceMaps(options);
  20171. t1 = t1.get$logger(options);
  20172. t13 = J.$eq$(self.process.stdout.isTTY, true);
  20173. t14 = $._glyphs;
  20174. $async$goto = 10;
  20175. return A._asyncAwait(A.compileAsync0(file, t11, t3, null, t7, t8, new A.NodeToDartLogger(t1, new A.StderrLogger0(t13), t14 === B.C_AsciiGlyphSet), t2, t9, t12, t5, t4, !t6, t10), $async$_renderAsync);
  20176. case 10:
  20177. // returning from await.
  20178. result = $async$result;
  20179. // goto join
  20180. $async$goto = 8;
  20181. break;
  20182. case 9:
  20183. // else
  20184. throw A.wrapException(A.ArgumentError$(string$.Either, null));
  20185. case 8:
  20186. // join
  20187. case 4:
  20188. // join
  20189. $async$returnValue = A._newRenderResult(options, result, start);
  20190. // goto return
  20191. $async$goto = 1;
  20192. break;
  20193. case 1:
  20194. // return
  20195. return A._asyncReturn($async$returnValue, $async$completer);
  20196. }
  20197. });
  20198. return A._asyncStartSync($async$_renderAsync, $async$completer);
  20199. },
  20200. renderSync(options) {
  20201. var start, result, data, file, error, stackTrace, error0, stackTrace0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15, exception, _null = null;
  20202. try {
  20203. start = new A.DateTime(Date.now(), false);
  20204. result = null;
  20205. t1 = J.getInterceptor$x(options);
  20206. data = t1.get$data(options);
  20207. file = A.NullableExtension_andThen0(t1.get$file(options), A.path__absolute$closure());
  20208. if (data != null) {
  20209. t2 = A._parseImporter(options, start);
  20210. t3 = A._parseFunctions(options, start, false);
  20211. t4 = t1.get$indentedSyntax(options);
  20212. t4 = !J.$eq$(t4, false) && t4 != null ? B.Syntax_Sass_sass0 : _null;
  20213. t5 = A._parseOutputStyle(t1.get$outputStyle(options));
  20214. t6 = J.$eq$(t1.get$indentType(options), "tab");
  20215. t7 = A._parseIndentWidth(t1.get$indentWidth(options));
  20216. t8 = A._parseLineFeed(t1.get$linefeed(options));
  20217. t9 = file == null ? "stdin" : $.$get$context().toUri$1(file).toString$0(0);
  20218. t10 = t1.get$quietDeps(options);
  20219. if (t10 == null)
  20220. t10 = false;
  20221. t11 = t1.get$verbose(options);
  20222. if (t11 == null)
  20223. t11 = false;
  20224. t12 = t1.get$charset(options);
  20225. if (t12 == null)
  20226. t12 = true;
  20227. t13 = A._enableSourceMaps(options);
  20228. t1 = t1.get$logger(options);
  20229. t14 = J.$eq$(self.process.stdout.isTTY, true);
  20230. t15 = $._glyphs;
  20231. result = A.compileString(data, t12, new A.CastList(t3, A._arrayInstanceType(t3)._eval$1("CastList<1,Callable0>")), _null, _null, t7, t8, new A.NodeToDartLogger(t1, new A.StderrLogger0(t14), t15 === B.C_AsciiGlyphSet), t2, t10, t13, t5, t4, t9, !t6, t11);
  20232. } else if (file != null) {
  20233. t2 = A._parseImporter(options, start);
  20234. t3 = A._parseFunctions(options, start, false);
  20235. t4 = t1.get$indentedSyntax(options);
  20236. t4 = !J.$eq$(t4, false) && t4 != null ? B.Syntax_Sass_sass0 : _null;
  20237. t5 = A._parseOutputStyle(t1.get$outputStyle(options));
  20238. t6 = J.$eq$(t1.get$indentType(options), "tab");
  20239. t7 = A._parseIndentWidth(t1.get$indentWidth(options));
  20240. t8 = A._parseLineFeed(t1.get$linefeed(options));
  20241. t9 = t1.get$quietDeps(options);
  20242. if (t9 == null)
  20243. t9 = false;
  20244. t10 = t1.get$verbose(options);
  20245. if (t10 == null)
  20246. t10 = false;
  20247. t11 = t1.get$charset(options);
  20248. if (t11 == null)
  20249. t11 = true;
  20250. t12 = A._enableSourceMaps(options);
  20251. t1 = t1.get$logger(options);
  20252. t13 = J.$eq$(self.process.stdout.isTTY, true);
  20253. t14 = $._glyphs;
  20254. result = A.compile(file, t11, new A.CastList(t3, A._arrayInstanceType(t3)._eval$1("CastList<1,Callable0>")), _null, t7, t8, new A.NodeToDartLogger(t1, new A.StderrLogger0(t13), t14 === B.C_AsciiGlyphSet), t2, t9, t12, t5, t4, !t6, t10);
  20255. } else {
  20256. t1 = A.ArgumentError$(string$.Either, _null);
  20257. throw A.wrapException(t1);
  20258. }
  20259. t1 = A._newRenderResult(options, result, start);
  20260. return t1;
  20261. } catch (exception) {
  20262. t1 = A.unwrapException(exception);
  20263. if (t1 instanceof A.SassException0) {
  20264. error = t1;
  20265. stackTrace = A.getTraceFromException(exception);
  20266. A.jsThrow(A._wrapException(error, stackTrace));
  20267. } else {
  20268. error0 = t1;
  20269. stackTrace0 = A.getTraceFromException(exception);
  20270. t1 = J.toString$0$(error0);
  20271. t2 = A.getTrace0(error0);
  20272. A.jsThrow(A._newRenderError(t1, t2 == null ? stackTrace0 : t2, _null, _null, _null, 3));
  20273. }
  20274. }
  20275. },
  20276. _wrapException(exception, stackTrace) {
  20277. var file, t2, t3, t4,
  20278. t1 = A.SourceSpanException.prototype.get$span.call(exception, exception),
  20279. url = t1.get$sourceUrl(t1);
  20280. if (url == null)
  20281. file = "stdin";
  20282. else
  20283. file = url.get$scheme() === "file" ? $.$get$context().style.pathFromUri$1(A._parseUri(url)) : url.toString$0(0);
  20284. t1 = B.JSString_methods.replaceFirst$2(exception.toString$0(0), "Error: ", "");
  20285. t2 = A.getTrace0(exception);
  20286. if (t2 == null)
  20287. t2 = stackTrace;
  20288. t3 = A.SourceSpanException.prototype.get$span.call(exception, exception);
  20289. t3 = t3.get$start(t3);
  20290. t3 = t3.file.getLine$1(t3.offset);
  20291. t4 = A.SourceSpanException.prototype.get$span.call(exception, exception);
  20292. t4 = t4.get$start(t4);
  20293. return A._newRenderError(t1, t2, t4.file.getColumn$1(t4.offset) + 1, file, t3 + 1, 1);
  20294. },
  20295. _parseFunctions(options, start, asynch) {
  20296. var result,
  20297. functions = J.get$functions$x(options);
  20298. if (functions == null)
  20299. return B.List_empty24;
  20300. result = A._setArrayType([], type$.JSArray_AsyncCallable_2);
  20301. A.jsForEach(functions, new A._parseFunctions_closure(options, start, result, asynch));
  20302. return result;
  20303. },
  20304. _parseImporter(options, start) {
  20305. var importers, t2, t3, contextOptions, fiber,
  20306. t1 = J.getInterceptor$x(options);
  20307. if (t1.get$importer(options) == null)
  20308. importers = A._setArrayType([], type$.JSArray_JSFunction);
  20309. else {
  20310. t2 = type$.List_nullable_Object;
  20311. t3 = type$.JSFunction;
  20312. importers = t2._is(t1.get$importer(options)) ? J.cast$1$0$ax(t2._as(t1.get$importer(options)), t3) : A._setArrayType([t3._as(t1.get$importer(options))], type$.JSArray_JSFunction);
  20313. }
  20314. t2 = J.getInterceptor$asx(importers);
  20315. contextOptions = t2.get$isNotEmpty(importers) ? A._contextOptions(options, start) : new A.Object();
  20316. fiber = t1.get$fiber(options);
  20317. if (fiber != null) {
  20318. t2 = t2.map$1$1(importers, new A._parseImporter_closure(fiber), type$.JSFunction);
  20319. importers = A.List_List$of(t2, true, t2.$ti._eval$1("ListIterable.E"));
  20320. }
  20321. t1 = t1.get$includePaths(options);
  20322. if (t1 == null)
  20323. t1 = [];
  20324. t2 = type$.String;
  20325. return new A.NodeImporter(contextOptions, A.List_List$unmodifiable(A.NodeImporter__addSassPath(A.List_List$from(t1, true, t2)), t2), A.List_List$unmodifiable(J.cast$1$0$ax(importers, type$.dynamic), type$.JSFunction));
  20326. },
  20327. _contextOptions(options, start) {
  20328. var includePaths, t3, t4, t5, t6, t7,
  20329. t1 = J.getInterceptor$x(options),
  20330. t2 = t1.get$includePaths(options);
  20331. if (t2 == null)
  20332. t2 = [];
  20333. includePaths = A.List_List$from(t2, true, type$.String);
  20334. t2 = t1.get$file(options);
  20335. t3 = t1.get$data(options);
  20336. t4 = A._setArrayType([A.current()], type$.JSArray_String);
  20337. B.JSArray_methods.addAll$1(t4, includePaths);
  20338. t4 = B.JSArray_methods.join$1(t4, J.$eq$(J.get$platform$x(self.process), "win32") ? ";" : ":");
  20339. t5 = J.$eq$(t1.get$indentType(options), "tab") ? 1 : 0;
  20340. t6 = A._parseIndentWidth(t1.get$indentWidth(options));
  20341. if (t6 == null)
  20342. t6 = 2;
  20343. t7 = A._parseLineFeed(t1.get$linefeed(options));
  20344. t1 = t1.get$file(options);
  20345. if (t1 == null)
  20346. t1 = "data";
  20347. return {file: t2, data: t3, includePaths: t4, precision: 10, style: 1, indentType: t5, indentWidth: t6, linefeed: t7.text, result: {stats: {start: start._core$_value, entry: t1}}};
  20348. },
  20349. _parseOutputStyle(style) {
  20350. if (style == null || style === "expanded")
  20351. return B.OutputStyle_00;
  20352. if (style === "compressed")
  20353. return B.OutputStyle_10;
  20354. throw A.wrapException(A.ArgumentError$('Unsupported output style "' + A.S(style) + '".', null));
  20355. },
  20356. _parseIndentWidth(width) {
  20357. if (width == null)
  20358. return null;
  20359. return A._isInt(width) ? width : A.int_parse(J.toString$0$(width), null);
  20360. },
  20361. _parseLineFeed(str) {
  20362. switch (str) {
  20363. case "cr":
  20364. return B.LineFeed_oyU;
  20365. case "crlf":
  20366. return B.LineFeed_gg4;
  20367. case "lfcr":
  20368. return B.LineFeed_t2a;
  20369. default:
  20370. return B.LineFeed_SsD;
  20371. }
  20372. },
  20373. _newRenderResult(options, result, start) {
  20374. var t3, sourceMapOption, sourceMapPath, t4, sourceMapDir, outFile, t5, file, sourceMapDirUrl, i, source, t6, t7, buffer, indices, url, t8, t9, _null = null,
  20375. t1 = Date.now(),
  20376. t2 = result._compile_result$_serialize,
  20377. css = t2.css,
  20378. sourceMapBytes = type$.Null._as(self.undefined);
  20379. if (A._enableSourceMaps(options)) {
  20380. t3 = J.getInterceptor$x(options);
  20381. sourceMapOption = t3.get$sourceMap(options);
  20382. if (typeof sourceMapOption == "string")
  20383. sourceMapPath = sourceMapOption;
  20384. else {
  20385. t4 = t3.get$outFile(options);
  20386. t4.toString;
  20387. sourceMapPath = J.$add$ansx(t4, ".map");
  20388. }
  20389. t4 = $.$get$context();
  20390. sourceMapDir = t4.dirname$1(sourceMapPath);
  20391. t2 = t2.sourceMap;
  20392. t2.toString;
  20393. t2.sourceRoot = t3.get$sourceMapRoot(options);
  20394. outFile = t3.get$outFile(options);
  20395. t5 = outFile == null;
  20396. if (t5) {
  20397. file = t3.get$file(options);
  20398. if (file == null)
  20399. t2.targetUrl = "stdin.css";
  20400. else
  20401. t2.targetUrl = t4.toUri$1(t4.withoutExtension$1(file) + ".css").toString$0(0);
  20402. } else
  20403. t2.targetUrl = t4.toUri$1(t4.relative$2$from(outFile, sourceMapDir)).toString$0(0);
  20404. sourceMapDirUrl = t4.toUri$1(sourceMapDir).toString$0(0);
  20405. for (t4 = t2.urls, i = 0; i < t4.length; ++i) {
  20406. source = t4[i];
  20407. if (source === "stdin")
  20408. continue;
  20409. t6 = $.$get$url();
  20410. t7 = t6.style;
  20411. if (t7.rootLength$1(source) <= 0 || t7.isRootRelative$1(source))
  20412. continue;
  20413. t4[i] = t6.relative$2$from(source, sourceMapDirUrl);
  20414. }
  20415. t4 = t3.get$sourceMapContents(options);
  20416. sourceMapBytes = self.Buffer.from(B.C_JsonCodec.encode$2$toEncodable(t2.toJson$1$includeSourceContents(!J.$eq$(t4, false) && t4 != null), _null), "utf8");
  20417. t2 = t3.get$omitSourceMapUrl(options);
  20418. if (!(!J.$eq$(t2, false) && t2 != null)) {
  20419. t2 = t3.get$sourceMapEmbed(options);
  20420. if (!J.$eq$(t2, false) && t2 != null) {
  20421. buffer = new A.StringBuffer("");
  20422. indices = A._setArrayType([-1], type$.JSArray_int);
  20423. A.UriData__writeUri("application/json", _null, _null, buffer, indices);
  20424. indices.push(buffer._contents.length);
  20425. t2 = buffer._contents += ";base64,";
  20426. indices.push(t2.length - 1);
  20427. t2 = B.C_Base64Encoder.startChunkedConversion$1(new A._StringSinkConversionSink(buffer));
  20428. t3 = sourceMapBytes.length;
  20429. A.RangeError_checkValidRange(0, t3, t3);
  20430. t2._convert$_add$4(sourceMapBytes, 0, t3, true);
  20431. t2 = buffer._contents;
  20432. url = new A.UriData(t2.charCodeAt(0) == 0 ? t2 : t2, indices, _null).get$uri();
  20433. } else {
  20434. if (t5)
  20435. t2 = sourceMapPath;
  20436. else {
  20437. t2 = $.$get$context();
  20438. t2 = t2.relative$2$from(sourceMapPath, t2.dirname$1(outFile));
  20439. }
  20440. url = $.$get$context().toUri$1(t2);
  20441. }
  20442. t2 = url.toString$0(0);
  20443. css += "\n\n/*# sourceMappingURL=" + A.stringReplaceAllUnchecked(t2, "*/", "%2A/") + " */";
  20444. }
  20445. }
  20446. t2 = self.Buffer.from(css, "utf8");
  20447. t3 = J.get$file$x(options);
  20448. if (t3 == null)
  20449. t3 = "data";
  20450. t4 = start._core$_value;
  20451. t1 = new A.DateTime(t1, false)._core$_value;
  20452. t5 = B.JSInt_methods._tdivFast$1(A.Duration$(t1 - t4)._duration, 1000);
  20453. t6 = A._setArrayType([], type$.JSArray_String);
  20454. for (t7 = result._evaluate.loadedUrls, t7 = A._LinkedHashSetIterator$(t7, t7._collection$_modifications), t8 = A._instanceType(t7)._precomputed1; t7.moveNext$0();) {
  20455. t9 = t7._collection$_current;
  20456. if (t9 == null)
  20457. t9 = t8._as(t9);
  20458. if (t9.get$scheme() === "file")
  20459. t6.push($.$get$context().style.pathFromUri$1(A._parseUri(t9)));
  20460. else
  20461. t6.push(t9.toString$0(0));
  20462. }
  20463. return {css: t2, map: sourceMapBytes, stats: {entry: t3, start: t4, end: t1, duration: t5, includedFiles: t6}};
  20464. },
  20465. _enableSourceMaps(options) {
  20466. var t2,
  20467. t1 = J.getInterceptor$x(options);
  20468. if (typeof t1.get$sourceMap(options) != "string") {
  20469. t2 = t1.get$sourceMap(options);
  20470. t1 = !J.$eq$(t2, false) && t2 != null && t1.get$outFile(options) != null;
  20471. } else
  20472. t1 = true;
  20473. return t1;
  20474. },
  20475. _newRenderError(message, stackTrace, column, file, line, $status) {
  20476. var error = new self.Error(message);
  20477. error.formatted = "Error: " + message;
  20478. if (line != null)
  20479. error.line = line;
  20480. if (column != null)
  20481. error.column = column;
  20482. if (file != null)
  20483. error.file = file;
  20484. error.status = $status;
  20485. A.attachJsStack(error, stackTrace);
  20486. return error;
  20487. },
  20488. render_closure: function render_closure(t0, t1) {
  20489. this.callback = t0;
  20490. this.options = t1;
  20491. },
  20492. render_closure0: function render_closure0(t0) {
  20493. this.callback = t0;
  20494. },
  20495. render_closure1: function render_closure1(t0) {
  20496. this.callback = t0;
  20497. },
  20498. _parseFunctions_closure: function _parseFunctions_closure(t0, t1, t2, t3) {
  20499. var _ = this;
  20500. _.options = t0;
  20501. _.start = t1;
  20502. _.result = t2;
  20503. _.asynch = t3;
  20504. },
  20505. _parseFunctions__closure: function _parseFunctions__closure(t0, t1, t2) {
  20506. this.fiber = t0;
  20507. this.callback = t1;
  20508. this.context = t2;
  20509. },
  20510. _parseFunctions___closure0: function _parseFunctions___closure0(t0) {
  20511. this.currentFiber = t0;
  20512. },
  20513. _parseFunctions____closure: function _parseFunctions____closure(t0, t1) {
  20514. this.currentFiber = t0;
  20515. this.result = t1;
  20516. },
  20517. _parseFunctions___closure1: function _parseFunctions___closure1(t0) {
  20518. this.fiber = t0;
  20519. },
  20520. _parseFunctions__closure0: function _parseFunctions__closure0(t0, t1) {
  20521. this.callback = t0;
  20522. this.context = t1;
  20523. },
  20524. _parseFunctions__closure1: function _parseFunctions__closure1(t0, t1) {
  20525. this.callback = t0;
  20526. this.context = t1;
  20527. },
  20528. _parseFunctions___closure: function _parseFunctions___closure(t0) {
  20529. this.completer = t0;
  20530. },
  20531. _parseImporter_closure: function _parseImporter_closure(t0) {
  20532. this.fiber = t0;
  20533. },
  20534. _parseImporter__closure: function _parseImporter__closure(t0, t1) {
  20535. this.fiber = t0;
  20536. this.importer = t1;
  20537. },
  20538. _parseImporter___closure: function _parseImporter___closure(t0) {
  20539. this.currentFiber = t0;
  20540. },
  20541. _parseImporter____closure: function _parseImporter____closure(t0, t1) {
  20542. this.currentFiber = t0;
  20543. this.result = t1;
  20544. },
  20545. _parseImporter___closure0: function _parseImporter___closure0(t0) {
  20546. this.fiber = t0;
  20547. },
  20548. LimitedMapView$blocklist0(_map, blocklist, $K, $V) {
  20549. var t2, key,
  20550. t1 = A.LinkedHashSet_LinkedHashSet$_empty($K);
  20551. for (t2 = J.get$iterator$ax(_map.get$keys(_map)); t2.moveNext$0();) {
  20552. key = t2.get$current(t2);
  20553. if (!blocklist.contains$1(0, key))
  20554. t1.add$1(0, key);
  20555. }
  20556. return new A.LimitedMapView0(_map, t1, $K._eval$1("@<0>")._bind$1($V)._eval$1("LimitedMapView0<1,2>"));
  20557. },
  20558. LimitedMapView0: function LimitedMapView0(t0, t1, t2) {
  20559. this._limited_map_view0$_map = t0;
  20560. this._limited_map_view0$_keys = t1;
  20561. this.$ti = t2;
  20562. },
  20563. ListExpression0: function ListExpression0(t0, t1, t2, t3) {
  20564. var _ = this;
  20565. _.contents = t0;
  20566. _.separator = t1;
  20567. _.hasBrackets = t2;
  20568. _.span = t3;
  20569. },
  20570. ListExpression_toString_closure0: function ListExpression_toString_closure0(t0) {
  20571. this.$this = t0;
  20572. },
  20573. _function10($name, $arguments, callback) {
  20574. return A.BuiltInCallable$function0($name, $arguments, callback, "sass:list");
  20575. },
  20576. _length_closure2: function _length_closure2() {
  20577. },
  20578. _nth_closure0: function _nth_closure0() {
  20579. },
  20580. _setNth_closure0: function _setNth_closure0() {
  20581. },
  20582. _join_closure0: function _join_closure0() {
  20583. },
  20584. _append_closure2: function _append_closure2() {
  20585. },
  20586. _zip_closure0: function _zip_closure0() {
  20587. },
  20588. _zip__closure2: function _zip__closure2() {
  20589. },
  20590. _zip__closure3: function _zip__closure3(t0) {
  20591. this._box_0 = t0;
  20592. },
  20593. _zip__closure4: function _zip__closure4(t0) {
  20594. this._box_0 = t0;
  20595. },
  20596. _index_closure2: function _index_closure2() {
  20597. },
  20598. _separator_closure0: function _separator_closure0() {
  20599. },
  20600. _isBracketed_closure0: function _isBracketed_closure0() {
  20601. },
  20602. _slash_closure0: function _slash_closure0() {
  20603. },
  20604. SelectorList$0(components) {
  20605. var t1 = A.List_List$unmodifiable(components, type$.ComplexSelector_2);
  20606. if (t1.length === 0)
  20607. A.throwExpression(A.ArgumentError$("components may not be empty.", null));
  20608. return new A.SelectorList0(t1);
  20609. },
  20610. SelectorList_SelectorList$parse0(contents, allowParent, allowPlaceholder, logger) {
  20611. return A.SelectorParser$0(contents, allowParent, allowPlaceholder, logger, null).parse$0();
  20612. },
  20613. SelectorList0: function SelectorList0(t0) {
  20614. this.components = t0;
  20615. },
  20616. SelectorList_asSassList_closure0: function SelectorList_asSassList_closure0() {
  20617. },
  20618. SelectorList_resolveParentSelectors_closure0: function SelectorList_resolveParentSelectors_closure0(t0, t1, t2) {
  20619. this.$this = t0;
  20620. this.implicitParent = t1;
  20621. this.parent = t2;
  20622. },
  20623. SelectorList_resolveParentSelectors__closure0: function SelectorList_resolveParentSelectors__closure0(t0) {
  20624. this.complex = t0;
  20625. },
  20626. SelectorList__complexContainsParentSelector_closure0: function SelectorList__complexContainsParentSelector_closure0() {
  20627. },
  20628. SelectorList__complexContainsParentSelector__closure0: function SelectorList__complexContainsParentSelector__closure0() {
  20629. },
  20630. SelectorList__resolveParentSelectorsCompound_closure2: function SelectorList__resolveParentSelectorsCompound_closure2() {
  20631. },
  20632. SelectorList__resolveParentSelectorsCompound_closure3: function SelectorList__resolveParentSelectorsCompound_closure3(t0) {
  20633. this.parent = t0;
  20634. },
  20635. SelectorList__resolveParentSelectorsCompound_closure4: function SelectorList__resolveParentSelectorsCompound_closure4(t0, t1, t2) {
  20636. this.parentSelector = t0;
  20637. this.resolvedSimples = t1;
  20638. this.component = t2;
  20639. },
  20640. SelectorList_withAdditionalCombinators_closure0: function SelectorList_withAdditionalCombinators_closure0(t0) {
  20641. this.combinators = t0;
  20642. },
  20643. _NodeSassList: function _NodeSassList() {
  20644. },
  20645. legacyListClass_closure: function legacyListClass_closure() {
  20646. },
  20647. legacyListClass__closure: function legacyListClass__closure() {
  20648. },
  20649. legacyListClass_closure0: function legacyListClass_closure0() {
  20650. },
  20651. legacyListClass_closure1: function legacyListClass_closure1() {
  20652. },
  20653. legacyListClass_closure2: function legacyListClass_closure2() {
  20654. },
  20655. legacyListClass_closure3: function legacyListClass_closure3() {
  20656. },
  20657. legacyListClass_closure4: function legacyListClass_closure4() {
  20658. },
  20659. listClass_closure: function listClass_closure() {
  20660. },
  20661. listClass__closure: function listClass__closure() {
  20662. },
  20663. listClass__closure0: function listClass__closure0() {
  20664. },
  20665. _ConstructorOptions: function _ConstructorOptions() {
  20666. },
  20667. SassList$0(contents, _separator, brackets) {
  20668. var t1 = new A.SassList0(A.List_List$unmodifiable(contents, type$.Value_2), _separator, brackets);
  20669. t1.SassList$3$brackets0(contents, _separator, brackets);
  20670. return t1;
  20671. },
  20672. SassList0: function SassList0(t0, t1, t2) {
  20673. this._list1$_contents = t0;
  20674. this._list1$_separator = t1;
  20675. this._list1$_hasBrackets = t2;
  20676. },
  20677. SassList_isBlank_closure0: function SassList_isBlank_closure0() {
  20678. },
  20679. ListSeparator0: function ListSeparator0(t0, t1, t2) {
  20680. this._list1$_name = t0;
  20681. this.separator = t1;
  20682. this._name = t2;
  20683. },
  20684. NodeLogger: function NodeLogger() {
  20685. },
  20686. WarnOptions: function WarnOptions() {
  20687. },
  20688. DebugOptions: function DebugOptions() {
  20689. },
  20690. _QuietLogger0: function _QuietLogger0() {
  20691. },
  20692. LoudComment0: function LoudComment0(t0) {
  20693. this.text = t0;
  20694. },
  20695. MapExpression0: function MapExpression0(t0, t1) {
  20696. this.pairs = t0;
  20697. this.span = t1;
  20698. },
  20699. MapExpression_toString_closure0: function MapExpression_toString_closure0() {
  20700. },
  20701. _modify0(map, keys, modify, addNesting) {
  20702. var keyIterator = J.get$iterator$ax(keys);
  20703. return keyIterator.moveNext$0() ? new A._modify_modifyNestedMap0(keyIterator, modify, addNesting).call$1(map) : modify.call$1(map);
  20704. },
  20705. _deepMergeImpl0(map1, map2) {
  20706. var t2, t3, result,
  20707. t1 = map1._map0$_contents;
  20708. if (t1.get$isEmpty(t1))
  20709. return map2;
  20710. t2 = map2._map0$_contents;
  20711. if (t2.get$isEmpty(t2))
  20712. return map1;
  20713. t3 = type$.Value_2;
  20714. result = A.LinkedHashMap_LinkedHashMap$of(t1, t3, t3);
  20715. t2.forEach$1(0, new A._deepMergeImpl_closure0(result));
  20716. return new A.SassMap0(A.ConstantMap_ConstantMap$from(result, t3, t3));
  20717. },
  20718. _function9($name, $arguments, callback) {
  20719. return A.BuiltInCallable$function0($name, $arguments, callback, "sass:map");
  20720. },
  20721. _get_closure0: function _get_closure0() {
  20722. },
  20723. _set_closure1: function _set_closure1() {
  20724. },
  20725. _set__closure2: function _set__closure2(t0) {
  20726. this.$arguments = t0;
  20727. },
  20728. _set_closure2: function _set_closure2() {
  20729. },
  20730. _set__closure1: function _set__closure1(t0) {
  20731. this.args = t0;
  20732. },
  20733. _merge_closure1: function _merge_closure1() {
  20734. },
  20735. _merge_closure2: function _merge_closure2() {
  20736. },
  20737. _merge__closure0: function _merge__closure0(t0) {
  20738. this.map2 = t0;
  20739. },
  20740. _deepMerge_closure0: function _deepMerge_closure0() {
  20741. },
  20742. _deepRemove_closure0: function _deepRemove_closure0() {
  20743. },
  20744. _deepRemove__closure0: function _deepRemove__closure0(t0) {
  20745. this.keys = t0;
  20746. },
  20747. _remove_closure1: function _remove_closure1() {
  20748. },
  20749. _remove_closure2: function _remove_closure2() {
  20750. },
  20751. _keys_closure0: function _keys_closure0() {
  20752. },
  20753. _values_closure0: function _values_closure0() {
  20754. },
  20755. _hasKey_closure0: function _hasKey_closure0() {
  20756. },
  20757. _modify_modifyNestedMap0: function _modify_modifyNestedMap0(t0, t1, t2) {
  20758. this.keyIterator = t0;
  20759. this.modify = t1;
  20760. this.addNesting = t2;
  20761. },
  20762. _deepMergeImpl_closure0: function _deepMergeImpl_closure0(t0) {
  20763. this.result = t0;
  20764. },
  20765. _NodeSassMap: function _NodeSassMap() {
  20766. },
  20767. legacyMapClass_closure: function legacyMapClass_closure() {
  20768. },
  20769. legacyMapClass__closure: function legacyMapClass__closure() {
  20770. },
  20771. legacyMapClass__closure0: function legacyMapClass__closure0() {
  20772. },
  20773. legacyMapClass_closure0: function legacyMapClass_closure0() {
  20774. },
  20775. legacyMapClass_closure1: function legacyMapClass_closure1() {
  20776. },
  20777. legacyMapClass_closure2: function legacyMapClass_closure2() {
  20778. },
  20779. legacyMapClass_closure3: function legacyMapClass_closure3() {
  20780. },
  20781. legacyMapClass_closure4: function legacyMapClass_closure4() {
  20782. },
  20783. mapClass_closure: function mapClass_closure() {
  20784. },
  20785. mapClass__closure: function mapClass__closure() {
  20786. },
  20787. mapClass__closure0: function mapClass__closure0() {
  20788. },
  20789. mapClass__closure1: function mapClass__closure1() {
  20790. },
  20791. SassMap0: function SassMap0(t0) {
  20792. this._map0$_contents = t0;
  20793. },
  20794. SassMap_asList_closure0: function SassMap_asList_closure0(t0) {
  20795. this.result = t0;
  20796. },
  20797. _numberFunction0($name, transform) {
  20798. return A.BuiltInCallable$function0($name, "$number", new A._numberFunction_closure0(transform), "sass:math");
  20799. },
  20800. _function8($name, $arguments, callback) {
  20801. return A.BuiltInCallable$function0($name, $arguments, callback, "sass:math");
  20802. },
  20803. _ceil_closure0: function _ceil_closure0() {
  20804. },
  20805. _clamp_closure0: function _clamp_closure0() {
  20806. },
  20807. _floor_closure0: function _floor_closure0() {
  20808. },
  20809. _max_closure0: function _max_closure0() {
  20810. },
  20811. _min_closure0: function _min_closure0() {
  20812. },
  20813. _round_closure0: function _round_closure0() {
  20814. },
  20815. _abs_closure0: function _abs_closure0() {
  20816. },
  20817. _hypot_closure0: function _hypot_closure0() {
  20818. },
  20819. _hypot__closure0: function _hypot__closure0() {
  20820. },
  20821. _log_closure0: function _log_closure0() {
  20822. },
  20823. _pow_closure0: function _pow_closure0() {
  20824. },
  20825. _sqrt_closure0: function _sqrt_closure0() {
  20826. },
  20827. _acos_closure0: function _acos_closure0() {
  20828. },
  20829. _asin_closure0: function _asin_closure0() {
  20830. },
  20831. _atan_closure0: function _atan_closure0() {
  20832. },
  20833. _atan2_closure0: function _atan2_closure0() {
  20834. },
  20835. _cos_closure0: function _cos_closure0() {
  20836. },
  20837. _sin_closure0: function _sin_closure0() {
  20838. },
  20839. _tan_closure0: function _tan_closure0() {
  20840. },
  20841. _compatible_closure0: function _compatible_closure0() {
  20842. },
  20843. _isUnitless_closure0: function _isUnitless_closure0() {
  20844. },
  20845. _unit_closure0: function _unit_closure0() {
  20846. },
  20847. _percentage_closure0: function _percentage_closure0() {
  20848. },
  20849. _randomFunction_closure0: function _randomFunction_closure0() {
  20850. },
  20851. _div_closure0: function _div_closure0() {
  20852. },
  20853. _numberFunction_closure0: function _numberFunction_closure0(t0) {
  20854. this.transform = t0;
  20855. },
  20856. CssMediaQuery$type0(type, conditions, modifier) {
  20857. return new A.CssMediaQuery0(modifier, type, true, conditions == null ? B.List_empty : A.List_List$unmodifiable(conditions, type$.String));
  20858. },
  20859. CssMediaQuery$condition0(conditions, conjunction) {
  20860. var t1 = A.List_List$unmodifiable(conditions, type$.String);
  20861. if (t1.length > 1 && conjunction == null)
  20862. A.throwExpression(A.ArgumentError$(string$.If_con, null));
  20863. return new A.CssMediaQuery0(null, null, conjunction !== false, t1);
  20864. },
  20865. CssMediaQuery0: function CssMediaQuery0(t0, t1, t2, t3) {
  20866. var _ = this;
  20867. _.modifier = t0;
  20868. _.type = t1;
  20869. _.conjunction = t2;
  20870. _.conditions = t3;
  20871. },
  20872. _SingletonCssMediaQueryMergeResult0: function _SingletonCssMediaQueryMergeResult0(t0) {
  20873. this._media_query0$_name = t0;
  20874. },
  20875. MediaQuerySuccessfulMergeResult0: function MediaQuerySuccessfulMergeResult0(t0) {
  20876. this.query = t0;
  20877. },
  20878. MediaQueryParser0: function MediaQueryParser0(t0, t1) {
  20879. this.scanner = t0;
  20880. this.logger = t1;
  20881. },
  20882. MediaQueryParser_parse_closure0: function MediaQueryParser_parse_closure0(t0) {
  20883. this.$this = t0;
  20884. },
  20885. ModifiableCssMediaRule$0(queries, span) {
  20886. var t1 = A.List_List$unmodifiable(queries, type$.CssMediaQuery_2),
  20887. t2 = A._setArrayType([], type$.JSArray_ModifiableCssNode_2);
  20888. if (J.get$isEmpty$asx(queries))
  20889. A.throwExpression(A.ArgumentError$value(queries, "queries", "may not be empty."));
  20890. return new A.ModifiableCssMediaRule0(t1, span, new A.UnmodifiableListView(t2, type$.UnmodifiableListView_ModifiableCssNode_2), t2);
  20891. },
  20892. ModifiableCssMediaRule0: function ModifiableCssMediaRule0(t0, t1, t2, t3) {
  20893. var _ = this;
  20894. _.queries = t0;
  20895. _.span = t1;
  20896. _.children = t2;
  20897. _._node0$_children = t3;
  20898. _._node0$_indexInParent = _._node0$_parent = null;
  20899. _.isGroupEnd = false;
  20900. },
  20901. MediaRule$0(query, children, span) {
  20902. var t1 = A.List_List$unmodifiable(children, type$.Statement_2),
  20903. t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure0());
  20904. return new A.MediaRule0(query, span, t1, t2);
  20905. },
  20906. MediaRule0: function MediaRule0(t0, t1, t2, t3) {
  20907. var _ = this;
  20908. _.query = t0;
  20909. _.span = t1;
  20910. _.children = t2;
  20911. _.hasDeclarations = t3;
  20912. },
  20913. MergedExtension_merge0(left, right) {
  20914. var t3, t4, t5, t6,
  20915. t1 = left.extender,
  20916. t2 = t1.selector;
  20917. if (!t2.$eq(0, right.extender.selector) || !left.target.$eq(0, right.target))
  20918. throw A.wrapException(A.ArgumentError$(left.toString$0(0) + " and " + right.toString$0(0) + " aren't the same extension.", null));
  20919. t3 = left.mediaContext;
  20920. t4 = t3 == null;
  20921. if (!t4) {
  20922. t5 = right.mediaContext;
  20923. t5 = t5 != null && !B.C_ListEquality.equals$2(0, t3, t5);
  20924. } else
  20925. t5 = false;
  20926. if (t5)
  20927. throw A.wrapException(A.SassException$0("From " + left.span.message$1(0, "") + string$.x0aYou_m, right.span));
  20928. if (right.isOptional && right.mediaContext == null)
  20929. return left;
  20930. if (left.isOptional && t4)
  20931. return right;
  20932. t5 = left.target;
  20933. t6 = left.span;
  20934. if (t4)
  20935. t3 = right.mediaContext;
  20936. t2.get$specificity();
  20937. t1 = new A.Extender0(t2, false, t1.span);
  20938. return t1._extension$_extension = new A.MergedExtension0(left, right, t1, t5, t3, true, t6);
  20939. },
  20940. MergedExtension0: function MergedExtension0(t0, t1, t2, t3, t4, t5, t6) {
  20941. var _ = this;
  20942. _.left = t0;
  20943. _.right = t1;
  20944. _.extender = t2;
  20945. _.target = t3;
  20946. _.mediaContext = t4;
  20947. _.isOptional = t5;
  20948. _.span = t6;
  20949. },
  20950. MergedMapView$0(maps, $K, $V) {
  20951. var t1 = $K._eval$1("@<0>")._bind$1($V);
  20952. t1 = new A.MergedMapView0(A.LinkedHashMap_LinkedHashMap$_empty($K, t1._eval$1("Map<1,2>")), t1._eval$1("MergedMapView0<1,2>"));
  20953. t1.MergedMapView$10(maps, $K, $V);
  20954. return t1;
  20955. },
  20956. MergedMapView0: function MergedMapView0(t0, t1) {
  20957. this._merged_map_view$_mapsByKey = t0;
  20958. this.$ti = t1;
  20959. },
  20960. _function12($name, $arguments, callback) {
  20961. return A.BuiltInCallable$function0($name, $arguments, callback, "sass:meta");
  20962. },
  20963. global_closure57: function global_closure57() {
  20964. },
  20965. global_closure58: function global_closure58() {
  20966. },
  20967. global_closure59: function global_closure59() {
  20968. },
  20969. global_closure60: function global_closure60() {
  20970. },
  20971. local_closure1: function local_closure1() {
  20972. },
  20973. local_closure2: function local_closure2() {
  20974. },
  20975. local__closure0: function local__closure0() {
  20976. },
  20977. MixinRule$0($name, $arguments, children, span, comment) {
  20978. var t1 = A.List_List$unmodifiable(children, type$.Statement_2),
  20979. t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure0());
  20980. return new A.MixinRule0($name, $arguments, span, t1, t2);
  20981. },
  20982. MixinRule0: function MixinRule0(t0, t1, t2, t3, t4) {
  20983. var _ = this;
  20984. _._mixin_rule$__MixinRule_hasContent_FI = $;
  20985. _.name = t0;
  20986. _.$arguments = t1;
  20987. _.span = t2;
  20988. _.children = t3;
  20989. _.hasDeclarations = t4;
  20990. },
  20991. _HasContentVisitor0: function _HasContentVisitor0() {
  20992. },
  20993. __HasContentVisitor_Object_StatementSearchVisitor0: function __HasContentVisitor_Object_StatementSearchVisitor0() {
  20994. },
  20995. ExtendMode0: function ExtendMode0(t0, t1) {
  20996. this.name = t0;
  20997. this._name = t1;
  20998. },
  20999. MultiSpan0: function MultiSpan0(t0, t1, t2) {
  21000. this._multi_span0$_primary = t0;
  21001. this.primaryLabel = t1;
  21002. this.secondarySpans = t2;
  21003. },
  21004. SupportsNegation0: function SupportsNegation0(t0, t1) {
  21005. this.condition = t0;
  21006. this.span = t1;
  21007. },
  21008. NoOpImporter: function NoOpImporter() {
  21009. },
  21010. NoSourceMapBuffer0: function NoSourceMapBuffer0(t0) {
  21011. this._no_source_map_buffer0$_buffer = t0;
  21012. },
  21013. AstNode0: function AstNode0() {
  21014. },
  21015. _FakeAstNode0: function _FakeAstNode0(t0) {
  21016. this._node1$_callback = t0;
  21017. },
  21018. CssNode0: function CssNode0() {
  21019. },
  21020. CssParentNode0: function CssParentNode0() {
  21021. },
  21022. _IsInvisibleVisitor1: function _IsInvisibleVisitor1(t0, t1) {
  21023. this.includeBogus = t0;
  21024. this.includeComments = t1;
  21025. },
  21026. __IsInvisibleVisitor_Object_EveryCssVisitor0: function __IsInvisibleVisitor_Object_EveryCssVisitor0() {
  21027. },
  21028. readFile0(path) {
  21029. var sourceFile, t1, i,
  21030. contents = A._asString(A._readFile0(path, "utf8"));
  21031. if (!B.JSString_methods.contains$1(contents, "\ufffd"))
  21032. return contents;
  21033. sourceFile = A.SourceFile$fromString(contents, $.$get$context().toUri$1(path));
  21034. for (t1 = contents.length, i = 0; i < t1; ++i) {
  21035. if (B.JSString_methods._codeUnitAt$1(contents, i) !== 65533)
  21036. continue;
  21037. throw A.wrapException(A.SassException$0("Invalid UTF-8.", A.FileLocation$_(sourceFile, i).pointSpan$0()));
  21038. }
  21039. return contents;
  21040. },
  21041. _readFile0(path, encoding) {
  21042. return A._systemErrorToFileSystemException0(new A._readFile_closure0(path, encoding));
  21043. },
  21044. fileExists0(path) {
  21045. return A._systemErrorToFileSystemException0(new A.fileExists_closure0(path));
  21046. },
  21047. dirExists0(path) {
  21048. return A._systemErrorToFileSystemException0(new A.dirExists_closure0(path));
  21049. },
  21050. listDir0(path) {
  21051. return A._systemErrorToFileSystemException0(new A.listDir_closure0(false, path));
  21052. },
  21053. _systemErrorToFileSystemException0(callback) {
  21054. var error, t1, exception, t2;
  21055. try {
  21056. t1 = callback.call$0();
  21057. return t1;
  21058. } catch (exception) {
  21059. error = A.unwrapException(exception);
  21060. if (!type$.JsSystemError._is(error))
  21061. throw exception;
  21062. t1 = error;
  21063. t2 = J.getInterceptor$x(t1);
  21064. throw A.wrapException(new A.FileSystemException0(J.substring$2$s(t2.get$message(t1), (A.S(t2.get$code(t1)) + ": ").length, J.get$length$asx(t2.get$message(t1)) - (", " + A.S(t2.get$syscall(t1)) + " '" + A.S(t2.get$path(t1)) + "'").length), J.get$path$x(error)));
  21065. }
  21066. },
  21067. FileSystemException0: function FileSystemException0(t0, t1) {
  21068. this.message = t0;
  21069. this.path = t1;
  21070. },
  21071. Stderr0: function Stderr0(t0) {
  21072. this._node$_stderr = t0;
  21073. },
  21074. _readFile_closure0: function _readFile_closure0(t0, t1) {
  21075. this.path = t0;
  21076. this.encoding = t1;
  21077. },
  21078. fileExists_closure0: function fileExists_closure0(t0) {
  21079. this.path = t0;
  21080. },
  21081. dirExists_closure0: function dirExists_closure0(t0) {
  21082. this.path = t0;
  21083. },
  21084. listDir_closure0: function listDir_closure0(t0, t1) {
  21085. this.recursive = t0;
  21086. this.path = t1;
  21087. },
  21088. listDir__closure1: function listDir__closure1(t0) {
  21089. this.path = t0;
  21090. },
  21091. listDir__closure2: function listDir__closure2() {
  21092. },
  21093. listDir_closure_list0: function listDir_closure_list0() {
  21094. },
  21095. listDir__list_closure0: function listDir__list_closure0(t0, t1) {
  21096. this.parent = t0;
  21097. this.list = t1;
  21098. },
  21099. ModifiableCssNode0: function ModifiableCssNode0() {
  21100. },
  21101. ModifiableCssNode_hasFollowingSibling_closure0: function ModifiableCssNode_hasFollowingSibling_closure0() {
  21102. },
  21103. ModifiableCssParentNode0: function ModifiableCssParentNode0() {
  21104. },
  21105. main() {
  21106. J.set$compile$x(self.exports, A.allowInteropNamed("sass.compile", A.compile__compile$closure()));
  21107. J.set$compileString$x(self.exports, A.allowInteropNamed("sass.compileString", A.compile__compileString$closure()));
  21108. J.set$compileAsync$x(self.exports, A.allowInteropNamed("sass.compileAsync", A.compile__compileAsync$closure()));
  21109. J.set$compileStringAsync$x(self.exports, A.allowInteropNamed("sass.compileStringAsync", A.compile__compileStringAsync$closure()));
  21110. J.set$Value$x(self.exports, $.$get$valueClass());
  21111. J.set$SassBoolean$x(self.exports, $.$get$booleanClass());
  21112. J.set$SassArgumentList$x(self.exports, $.$get$argumentListClass());
  21113. J.set$SassColor$x(self.exports, $.$get$colorClass());
  21114. J.set$SassFunction$x(self.exports, $.$get$functionClass());
  21115. J.set$SassList$x(self.exports, $.$get$listClass());
  21116. J.set$SassMap$x(self.exports, $.$get$mapClass());
  21117. J.set$SassNumber$x(self.exports, $.$get$numberClass());
  21118. J.set$SassString$x(self.exports, $.$get$stringClass());
  21119. J.set$sassNull$x(self.exports, B.C__SassNull0);
  21120. J.set$sassTrue$x(self.exports, B.SassBoolean_true0);
  21121. J.set$sassFalse$x(self.exports, B.SassBoolean_false0);
  21122. J.set$Exception$x(self.exports, $.$get$exceptionClass());
  21123. J.set$Logger$x(self.exports, {silent: {warn: A.allowInteropNamed("sass.Logger.silent.warn", new A.main_closure0()), debug: A.allowInteropNamed("sass.Logger.silent.debug", new A.main_closure1())}});
  21124. J.set$info$x(self.exports, "dart-sass\t1.57.1\t(Sass Compiler)\t[Dart]\ndart2js\t2.18.6\t(Dart Compiler)\t[Dart]");
  21125. A.updateSourceSpanPrototype();
  21126. J.set$render$x(self.exports, A.allowInteropNamed("sass.render", A.legacy__render$closure()));
  21127. J.set$renderSync$x(self.exports, A.allowInteropNamed("sass.renderSync", A.legacy__renderSync$closure()));
  21128. J.set$types$x(self.exports, {Boolean: $.$get$legacyBooleanClass(), Color: $.$get$legacyColorClass(), List: $.$get$legacyListClass(), Map: $.$get$legacyMapClass(), Null: $.$get$legacyNullClass(), Number: $.$get$legacyNumberClass(), String: $.$get$legacyStringClass(), Error: self.Error});
  21129. J.set$NULL$x(self.exports, B.C__SassNull0);
  21130. J.set$TRUE$x(self.exports, B.SassBoolean_true0);
  21131. J.set$FALSE$x(self.exports, B.SassBoolean_false0);
  21132. },
  21133. main_closure0: function main_closure0() {
  21134. },
  21135. main_closure1: function main_closure1() {
  21136. },
  21137. NodeToDartLogger: function NodeToDartLogger(t0, t1, t2) {
  21138. this._node = t0;
  21139. this._fallback = t1;
  21140. this._ascii = t2;
  21141. },
  21142. NodeToDartLogger_warn_closure: function NodeToDartLogger_warn_closure(t0, t1, t2, t3, t4) {
  21143. var _ = this;
  21144. _.$this = t0;
  21145. _.message = t1;
  21146. _.span = t2;
  21147. _.trace = t3;
  21148. _.deprecation = t4;
  21149. },
  21150. NodeToDartLogger_debug_closure: function NodeToDartLogger_debug_closure(t0, t1, t2) {
  21151. this.$this = t0;
  21152. this.message = t1;
  21153. this.span = t2;
  21154. },
  21155. NullExpression0: function NullExpression0(t0) {
  21156. this.span = t0;
  21157. },
  21158. legacyNullClass_closure: function legacyNullClass_closure() {
  21159. },
  21160. legacyNullClass__closure: function legacyNullClass__closure() {
  21161. },
  21162. _SassNull0: function _SassNull0() {
  21163. },
  21164. NumberExpression0: function NumberExpression0(t0, t1, t2) {
  21165. this.value = t0;
  21166. this.unit = t1;
  21167. this.span = t2;
  21168. },
  21169. _parseNumber(value, unit) {
  21170. var invalidUnit, operands, t1, numerator, denominator, numeratorUnits, denominatorUnits;
  21171. if (unit == null || unit.length === 0)
  21172. return A.SassNumber_SassNumber0(value, null);
  21173. if (!J.contains$1$asx(unit, "*") && !B.JSString_methods.contains$1(unit, "/"))
  21174. return A.SassNumber_SassNumber0(value, unit);
  21175. invalidUnit = new A.ArgumentError(true, unit, "unit", "is invalid.");
  21176. operands = unit.split("/");
  21177. t1 = operands.length;
  21178. if (t1 > 2)
  21179. throw A.wrapException(invalidUnit);
  21180. numerator = operands[0];
  21181. denominator = t1 === 1 ? null : operands[1];
  21182. t1 = type$.JSArray_String;
  21183. numeratorUnits = numerator.length === 0 ? A._setArrayType([], t1) : A._setArrayType(numerator.split("*"), t1);
  21184. if (B.JSArray_methods.any$1(numeratorUnits, new A._parseNumber_closure()))
  21185. throw A.wrapException(invalidUnit);
  21186. denominatorUnits = denominator == null ? A._setArrayType([], t1) : A._setArrayType(denominator.split("*"), t1);
  21187. if (B.JSArray_methods.any$1(denominatorUnits, new A._parseNumber_closure0()))
  21188. throw A.wrapException(invalidUnit);
  21189. return A.SassNumber_SassNumber$withUnits0(value, denominatorUnits, numeratorUnits);
  21190. },
  21191. _NodeSassNumber: function _NodeSassNumber() {
  21192. },
  21193. legacyNumberClass_closure: function legacyNumberClass_closure() {
  21194. },
  21195. legacyNumberClass_closure0: function legacyNumberClass_closure0() {
  21196. },
  21197. legacyNumberClass_closure1: function legacyNumberClass_closure1() {
  21198. },
  21199. legacyNumberClass_closure2: function legacyNumberClass_closure2() {
  21200. },
  21201. legacyNumberClass_closure3: function legacyNumberClass_closure3() {
  21202. },
  21203. _parseNumber_closure: function _parseNumber_closure() {
  21204. },
  21205. _parseNumber_closure0: function _parseNumber_closure0() {
  21206. },
  21207. numberClass_closure: function numberClass_closure() {
  21208. },
  21209. numberClass__closure: function numberClass__closure() {
  21210. },
  21211. numberClass__closure0: function numberClass__closure0() {
  21212. },
  21213. numberClass__closure1: function numberClass__closure1() {
  21214. },
  21215. numberClass__closure2: function numberClass__closure2() {
  21216. },
  21217. numberClass__closure3: function numberClass__closure3() {
  21218. },
  21219. numberClass__closure4: function numberClass__closure4() {
  21220. },
  21221. numberClass__closure5: function numberClass__closure5() {
  21222. },
  21223. numberClass__closure6: function numberClass__closure6() {
  21224. },
  21225. numberClass__closure7: function numberClass__closure7() {
  21226. },
  21227. numberClass__closure8: function numberClass__closure8() {
  21228. },
  21229. numberClass__closure9: function numberClass__closure9() {
  21230. },
  21231. numberClass__closure10: function numberClass__closure10() {
  21232. },
  21233. numberClass__closure11: function numberClass__closure11() {
  21234. },
  21235. numberClass__closure12: function numberClass__closure12() {
  21236. },
  21237. numberClass__closure13: function numberClass__closure13() {
  21238. },
  21239. numberClass__closure14: function numberClass__closure14() {
  21240. },
  21241. numberClass__closure15: function numberClass__closure15() {
  21242. },
  21243. numberClass__closure16: function numberClass__closure16() {
  21244. },
  21245. numberClass__closure17: function numberClass__closure17() {
  21246. },
  21247. numberClass__closure18: function numberClass__closure18() {
  21248. },
  21249. numberClass__closure19: function numberClass__closure19() {
  21250. },
  21251. _ConstructorOptions0: function _ConstructorOptions0() {
  21252. },
  21253. conversionFactor0(unit1, unit2) {
  21254. var innerMap;
  21255. if (unit1 === unit2)
  21256. return 1;
  21257. innerMap = B.Map_K2BWj.$index(0, unit1);
  21258. if (innerMap == null)
  21259. return null;
  21260. return innerMap.$index(0, unit2);
  21261. },
  21262. SassNumber_SassNumber0(value, unit) {
  21263. return unit == null ? new A.UnitlessSassNumber0(value, null) : new A.SingleUnitSassNumber0(unit, value, null);
  21264. },
  21265. SassNumber_SassNumber$withUnits0(value, denominatorUnits, numeratorUnits) {
  21266. var t1, numerators, t2, unsimplifiedDenominators, denominators, t3, valueDouble, _i, denominator, simplifiedAway, i, factor, _null = null;
  21267. if (denominatorUnits == null || J.get$isEmpty$asx(denominatorUnits))
  21268. if (numeratorUnits == null || J.get$isEmpty$asx(numeratorUnits))
  21269. return new A.UnitlessSassNumber0(value, _null);
  21270. else {
  21271. t1 = J.getInterceptor$asx(numeratorUnits);
  21272. if (t1.get$length(numeratorUnits) === 1)
  21273. return new A.SingleUnitSassNumber0(t1.$index(numeratorUnits, 0), value, _null);
  21274. else
  21275. return new A.ComplexSassNumber0(A.List_List$unmodifiable(numeratorUnits, type$.String), B.List_empty, value, _null);
  21276. }
  21277. else if (numeratorUnits == null || J.get$isEmpty$asx(numeratorUnits))
  21278. return new A.ComplexSassNumber0(B.List_empty, A.List_List$unmodifiable(denominatorUnits, type$.String), value, _null);
  21279. else {
  21280. t1 = J.getInterceptor$ax(numeratorUnits);
  21281. numerators = t1.toList$0(numeratorUnits);
  21282. t2 = J.getInterceptor$ax(denominatorUnits);
  21283. unsimplifiedDenominators = t2.toList$0(denominatorUnits);
  21284. denominators = A._setArrayType([], type$.JSArray_String);
  21285. for (t3 = unsimplifiedDenominators.length, valueDouble = value, _i = 0; _i < unsimplifiedDenominators.length; unsimplifiedDenominators.length === t3 || (0, A.throwConcurrentModificationError)(unsimplifiedDenominators), ++_i) {
  21286. denominator = unsimplifiedDenominators[_i];
  21287. i = 0;
  21288. while (true) {
  21289. if (!(i < numerators.length)) {
  21290. simplifiedAway = false;
  21291. break;
  21292. }
  21293. c$0: {
  21294. factor = A.conversionFactor0(denominator, numerators[i]);
  21295. if (factor == null)
  21296. break c$0;
  21297. valueDouble *= factor;
  21298. B.JSArray_methods.removeAt$1(numerators, i);
  21299. simplifiedAway = true;
  21300. break;
  21301. }
  21302. ++i;
  21303. }
  21304. if (!simplifiedAway)
  21305. denominators.push(denominator);
  21306. }
  21307. if (t2.get$isEmpty(denominatorUnits))
  21308. if (t1.get$isEmpty(numeratorUnits))
  21309. return new A.UnitlessSassNumber0(valueDouble, _null);
  21310. else if (t1.get$length(numeratorUnits) === 1)
  21311. return new A.SingleUnitSassNumber0(t1.get$single(numeratorUnits), valueDouble, _null);
  21312. t1 = type$.String;
  21313. return new A.ComplexSassNumber0(A.List_List$unmodifiable(numerators, t1), A.List_List$unmodifiable(denominators, t1), valueDouble, _null);
  21314. }
  21315. },
  21316. SassNumber0: function SassNumber0() {
  21317. },
  21318. SassNumber__coerceOrConvertValue_compatibilityException0: function SassNumber__coerceOrConvertValue_compatibilityException0(t0, t1, t2, t3, t4, t5, t6) {
  21319. var _ = this;
  21320. _.$this = t0;
  21321. _.other = t1;
  21322. _.otherName = t2;
  21323. _.otherHasUnits = t3;
  21324. _.name = t4;
  21325. _.newNumerators = t5;
  21326. _.newDenominators = t6;
  21327. },
  21328. SassNumber__coerceOrConvertValue_closure3: function SassNumber__coerceOrConvertValue_closure3(t0, t1) {
  21329. this._box_0 = t0;
  21330. this.newNumerator = t1;
  21331. },
  21332. SassNumber__coerceOrConvertValue_closure4: function SassNumber__coerceOrConvertValue_closure4(t0) {
  21333. this.compatibilityException = t0;
  21334. },
  21335. SassNumber__coerceOrConvertValue_closure5: function SassNumber__coerceOrConvertValue_closure5(t0, t1) {
  21336. this._box_0 = t0;
  21337. this.newDenominator = t1;
  21338. },
  21339. SassNumber__coerceOrConvertValue_closure6: function SassNumber__coerceOrConvertValue_closure6(t0) {
  21340. this.compatibilityException = t0;
  21341. },
  21342. SassNumber_plus_closure0: function SassNumber_plus_closure0() {
  21343. },
  21344. SassNumber_minus_closure0: function SassNumber_minus_closure0() {
  21345. },
  21346. SassNumber_multiplyUnits_closure3: function SassNumber_multiplyUnits_closure3(t0, t1) {
  21347. this._box_0 = t0;
  21348. this.numerator = t1;
  21349. },
  21350. SassNumber_multiplyUnits_closure4: function SassNumber_multiplyUnits_closure4(t0, t1) {
  21351. this.newNumerators = t0;
  21352. this.numerator = t1;
  21353. },
  21354. SassNumber_multiplyUnits_closure5: function SassNumber_multiplyUnits_closure5(t0, t1) {
  21355. this._box_0 = t0;
  21356. this.numerator = t1;
  21357. },
  21358. SassNumber_multiplyUnits_closure6: function SassNumber_multiplyUnits_closure6(t0, t1) {
  21359. this.newNumerators = t0;
  21360. this.numerator = t1;
  21361. },
  21362. SassNumber__areAnyConvertible_closure0: function SassNumber__areAnyConvertible_closure0(t0) {
  21363. this.units2 = t0;
  21364. },
  21365. SassNumber__canonicalizeUnitList_closure0: function SassNumber__canonicalizeUnitList_closure0() {
  21366. },
  21367. SassNumber__canonicalMultiplier_closure0: function SassNumber__canonicalMultiplier_closure0(t0) {
  21368. this.$this = t0;
  21369. },
  21370. SassNumber_unitSuggestion_closure1: function SassNumber_unitSuggestion_closure1() {
  21371. },
  21372. SassNumber_unitSuggestion_closure2: function SassNumber_unitSuggestion_closure2() {
  21373. },
  21374. SupportsOperation0: function SupportsOperation0(t0, t1, t2, t3) {
  21375. var _ = this;
  21376. _.left = t0;
  21377. _.right = t1;
  21378. _.operator = t2;
  21379. _.span = t3;
  21380. },
  21381. ParentSelector0: function ParentSelector0(t0) {
  21382. this.suffix = t0;
  21383. },
  21384. ParentStatement0: function ParentStatement0() {
  21385. },
  21386. ParentStatement_closure0: function ParentStatement_closure0() {
  21387. },
  21388. ParentStatement__closure0: function ParentStatement__closure0() {
  21389. },
  21390. ParenthesizedExpression0: function ParenthesizedExpression0(t0, t1) {
  21391. this.expression = t0;
  21392. this.span = t1;
  21393. },
  21394. Parser_isIdentifier0(text) {
  21395. var t1, t2, exception, logger = null;
  21396. try {
  21397. t1 = logger;
  21398. t2 = A.SpanScanner$(text, null);
  21399. new A.Parser1(t2, t1 == null ? B.StderrLogger_false0 : t1)._parser0$_parseIdentifier$0();
  21400. return true;
  21401. } catch (exception) {
  21402. if (A.unwrapException(exception) instanceof A.SassFormatException0)
  21403. return false;
  21404. else
  21405. throw exception;
  21406. }
  21407. },
  21408. Parser1: function Parser1(t0, t1) {
  21409. this.scanner = t0;
  21410. this.logger = t1;
  21411. },
  21412. Parser__parseIdentifier_closure0: function Parser__parseIdentifier_closure0(t0) {
  21413. this.$this = t0;
  21414. },
  21415. Parser_scanIdentChar_matches0: function Parser_scanIdentChar_matches0(t0, t1) {
  21416. this.caseSensitive = t0;
  21417. this.char = t1;
  21418. },
  21419. PlaceholderSelector0: function PlaceholderSelector0(t0) {
  21420. this.name = t0;
  21421. },
  21422. PlainCssCallable0: function PlainCssCallable0(t0) {
  21423. this.name = t0;
  21424. },
  21425. PrefixedMapView0: function PrefixedMapView0(t0, t1, t2) {
  21426. this._prefixed_map_view0$_map = t0;
  21427. this._prefixed_map_view0$_prefix = t1;
  21428. this.$ti = t2;
  21429. },
  21430. _PrefixedKeys0: function _PrefixedKeys0(t0) {
  21431. this._prefixed_map_view0$_view = t0;
  21432. },
  21433. _PrefixedKeys_iterator_closure0: function _PrefixedKeys_iterator_closure0(t0) {
  21434. this.$this = t0;
  21435. },
  21436. PseudoSelector$0($name, argument, element, selector) {
  21437. var t1 = !element,
  21438. t2 = t1 && !A.PseudoSelector__isFakePseudoElement0($name);
  21439. return new A.PseudoSelector0($name, A.unvendor0($name), t2, t1, argument, selector);
  21440. },
  21441. PseudoSelector__isFakePseudoElement0($name) {
  21442. switch (B.JSString_methods._codeUnitAt$1($name, 0)) {
  21443. case 97:
  21444. case 65:
  21445. return A.equalsIgnoreCase0($name, "after");
  21446. case 98:
  21447. case 66:
  21448. return A.equalsIgnoreCase0($name, "before");
  21449. case 102:
  21450. case 70:
  21451. return A.equalsIgnoreCase0($name, "first-line") || A.equalsIgnoreCase0($name, "first-letter");
  21452. default:
  21453. return false;
  21454. }
  21455. },
  21456. PseudoSelector0: function PseudoSelector0(t0, t1, t2, t3, t4, t5) {
  21457. var _ = this;
  21458. _.name = t0;
  21459. _.normalizedName = t1;
  21460. _.isClass = t2;
  21461. _.isSyntacticClass = t3;
  21462. _.argument = t4;
  21463. _.selector = t5;
  21464. _._pseudo$__PseudoSelector_specificity_FI = $;
  21465. },
  21466. PseudoSelector_specificity_closure0: function PseudoSelector_specificity_closure0(t0) {
  21467. this.$this = t0;
  21468. },
  21469. PseudoSelector_specificity__closure1: function PseudoSelector_specificity__closure1() {
  21470. },
  21471. PseudoSelector_specificity__closure2: function PseudoSelector_specificity__closure2() {
  21472. },
  21473. PseudoSelector_unify_closure0: function PseudoSelector_unify_closure0() {
  21474. },
  21475. PublicMemberMapView0: function PublicMemberMapView0(t0, t1) {
  21476. this._public_member_map_view0$_inner = t0;
  21477. this.$ti = t1;
  21478. },
  21479. QualifiedName0: function QualifiedName0(t0, t1) {
  21480. this.name = t0;
  21481. this.namespace = t1;
  21482. },
  21483. createJSClass($name, $constructor) {
  21484. return type$.JSClass._as(A.allowInteropCaptureThisNamed($name, $constructor));
  21485. },
  21486. JSClassExtension_injectSuperclass(_this, superclass) {
  21487. var t1 = J.getInterceptor$x(superclass),
  21488. t2 = J.getInterceptor$x(_this);
  21489. self.Object.setPrototypeOf(t1.get$$prototype(superclass), J.get$$prototype$x(type$.JSClass._as(self.Object.getPrototypeOf(t2.get$$prototype(_this)).constructor)));
  21490. self.Object.setPrototypeOf(t2.get$$prototype(_this), self.Object.create(t1.get$$prototype(superclass)));
  21491. },
  21492. JSClassExtension_setCustomInspect(_this, inspect) {
  21493. J.get$$prototype$x(_this)[self.util.inspect.custom] = A.allowInteropCaptureThis(new A.JSClassExtension_setCustomInspect_closure(inspect));
  21494. },
  21495. JSClassExtension_get_defineMethod(_this) {
  21496. return new A.JSClassExtension_get_defineMethod_closure(_this);
  21497. },
  21498. JSClassExtension_defineMethods(_this, methods) {
  21499. methods.forEach$1(0, A.JSClassExtension_get_defineMethod(_this));
  21500. },
  21501. JSClassExtension_get_defineGetter(_this) {
  21502. return new A.JSClassExtension_get_defineGetter_closure(_this);
  21503. },
  21504. JSClass0: function JSClass0() {
  21505. },
  21506. JSClassExtension_setCustomInspect_closure: function JSClassExtension_setCustomInspect_closure(t0) {
  21507. this.inspect = t0;
  21508. },
  21509. JSClassExtension_get_defineMethod_closure: function JSClassExtension_get_defineMethod_closure(t0) {
  21510. this._this = t0;
  21511. },
  21512. JSClassExtension_get_defineGetter_closure: function JSClassExtension_get_defineGetter_closure(t0) {
  21513. this._this = t0;
  21514. },
  21515. RenderContext0: function RenderContext0() {
  21516. },
  21517. RenderContextOptions0: function RenderContextOptions0() {
  21518. },
  21519. RenderContextResult0: function RenderContextResult0() {
  21520. },
  21521. RenderContextResultStats0: function RenderContextResultStats0() {
  21522. },
  21523. RenderOptions: function RenderOptions() {
  21524. },
  21525. RenderResult: function RenderResult() {
  21526. },
  21527. RenderResultStats: function RenderResultStats() {
  21528. },
  21529. ImporterResult$(contents, sourceMapUrl, syntax) {
  21530. var t2,
  21531. t1 = syntax == null;
  21532. if (t1)
  21533. t2 = B.Syntax_SCSS_scss0;
  21534. else
  21535. t2 = syntax;
  21536. if ((sourceMapUrl == null ? null : sourceMapUrl.get$scheme()) === "")
  21537. A.throwExpression(A.ArgumentError$value(sourceMapUrl, "sourceMapUrl", "must be absolute"));
  21538. else if (t1 && true)
  21539. A.throwExpression(A.ArgumentError$("The syntax parameter must be passed.", null));
  21540. return new A.ImporterResult0(contents, sourceMapUrl, t2);
  21541. },
  21542. ImporterResult0: function ImporterResult0(t0, t1, t2) {
  21543. this.contents = t0;
  21544. this._result$_sourceMapUrl = t1;
  21545. this.syntax = t2;
  21546. },
  21547. ReturnRule0: function ReturnRule0(t0, t1) {
  21548. this.expression = t0;
  21549. this.span = t1;
  21550. },
  21551. main0(args) {
  21552. return A.main$body(args);
  21553. },
  21554. main$body(args) {
  21555. var $async$goto = 0,
  21556. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  21557. $async$returnValue, $async$handler = 2, $async$currentError, printError, graph, source, destination, error, stackTrace, error0, stackTrace0, path, error1, error2, stackTrace1, buffer, options, t1, t2, t3, exception, t4, t5, _box_0, $async$exception, $async$exception1, $async$temp1;
  21558. var $async$main0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  21559. if ($async$errorCode === 1) {
  21560. $async$currentError = $async$result;
  21561. $async$goto = $async$handler;
  21562. }
  21563. while (true)
  21564. switch ($async$goto) {
  21565. case 0:
  21566. // Function start
  21567. _box_0 = {};
  21568. _box_0.printedError = false;
  21569. printError = new A.main_printError(_box_0);
  21570. _box_0.options = null;
  21571. $async$handler = 4;
  21572. options = A.ExecutableOptions_ExecutableOptions$parse(args);
  21573. _box_0.options = options;
  21574. t1 = options._options;
  21575. $._glyphs = !(t1.wasParsed$1("unicode") ? A._asBool(t1.$index(0, "unicode")) : $._glyphs !== B.C_AsciiGlyphSet) ? B.C_AsciiGlyphSet : B.C_UnicodeGlyphSet;
  21576. $async$goto = A._asBool(_box_0.options._options.$index(0, "version")) ? 7 : 8;
  21577. break;
  21578. case 7:
  21579. // then
  21580. $async$temp1 = A;
  21581. $async$goto = 9;
  21582. return A._asyncAwait(A._loadVersion(), $async$main0);
  21583. case 9:
  21584. // returning from await.
  21585. $async$temp1.print($async$result);
  21586. J.set$exitCode$x(self.process, 0);
  21587. // goto return
  21588. $async$goto = 1;
  21589. break;
  21590. case 8:
  21591. // join
  21592. $async$goto = _box_0.options.get$interactive() ? 10 : 11;
  21593. break;
  21594. case 10:
  21595. // then
  21596. $async$goto = 12;
  21597. return A._asyncAwait(A.repl(_box_0.options), $async$main0);
  21598. case 12:
  21599. // returning from await.
  21600. // goto return
  21601. $async$goto = 1;
  21602. break;
  21603. case 11:
  21604. // join
  21605. t1 = type$.List_String._as(_box_0.options._options.$index(0, "load-path"));
  21606. t2 = _box_0.options;
  21607. t3 = type$.Uri;
  21608. graph = new A.StylesheetGraph(A.LinkedHashMap_LinkedHashMap$_empty(t3, type$.StylesheetNode), A.ImportCache$(t1, A._asBool(t2._options.$index(0, "quiet")) ? $.$get$Logger_quiet() : new A.StderrLogger(t2.get$color())), A.LinkedHashMap_LinkedHashMap$_empty(t3, type$.DateTime));
  21609. $async$goto = A._asBool(_box_0.options._options.$index(0, "watch")) ? 13 : 14;
  21610. break;
  21611. case 13:
  21612. // then
  21613. $async$goto = 15;
  21614. return A._asyncAwait(A.watch(_box_0.options, graph), $async$main0);
  21615. case 15:
  21616. // returning from await.
  21617. // goto return
  21618. $async$goto = 1;
  21619. break;
  21620. case 14:
  21621. // join
  21622. t1 = _box_0.options, t1._ensureSources$0(), t1 = t1._sourcesToDestinations, t1 = J.get$iterator$ax(t1.get$keys(t1));
  21623. case 16:
  21624. // for condition
  21625. if (!t1.moveNext$0()) {
  21626. // goto after for
  21627. $async$goto = 17;
  21628. break;
  21629. }
  21630. source = t1.get$current(t1);
  21631. t2 = _box_0.options;
  21632. t2._ensureSources$0();
  21633. destination = t2._sourcesToDestinations.$index(0, source);
  21634. $async$handler = 19;
  21635. t2 = _box_0.options;
  21636. $async$goto = 22;
  21637. return A._asyncAwait(A.compileStylesheet(t2, graph, source, destination, A._asBool(t2._options.$index(0, "update"))), $async$main0);
  21638. case 22:
  21639. // returning from await.
  21640. $async$handler = 4;
  21641. // goto after finally
  21642. $async$goto = 21;
  21643. break;
  21644. case 19:
  21645. // catch
  21646. $async$handler = 18;
  21647. $async$exception = $async$currentError;
  21648. t2 = A.unwrapException($async$exception);
  21649. if (t2 instanceof A.SassException) {
  21650. error = t2;
  21651. stackTrace = A.getTraceFromException($async$exception);
  21652. new A.main_closure(_box_0, destination).call$0();
  21653. t2 = _box_0.options._options;
  21654. if (!t2._parser.options._map.containsKey$1("color"))
  21655. A.throwExpression(A.ArgumentError$('Could not find an option named "color".', null));
  21656. t2 = t2._parsed.containsKey$1("color") ? A._asBool(t2.$index(0, "color")) : J.$eq$(self.process.stdout.isTTY, true);
  21657. t2 = J.toString$1$color$(error, t2);
  21658. if (A._asBool(_box_0.options._options.$index(0, "trace"))) {
  21659. t3 = error;
  21660. t4 = typeof t3 == "string";
  21661. if (t4 || typeof t3 == "number" || A._isBool(t3))
  21662. t3 = null;
  21663. else {
  21664. t5 = $.$get$_traces();
  21665. if (A._isBool(t3) || typeof t3 == "number" || t4)
  21666. A.throwExpression(A.ArgumentError$value(t3, string$.Expand, null));
  21667. t3 = t5._jsWeakMap.get(t3);
  21668. }
  21669. if (t3 == null)
  21670. t3 = stackTrace;
  21671. } else
  21672. t3 = null;
  21673. printError.call$2(t2, t3);
  21674. if (J.get$exitCode$x(self.process) !== 66)
  21675. J.set$exitCode$x(self.process, 65);
  21676. if (A._asBool(_box_0.options._options.$index(0, "stop-on-error"))) {
  21677. // goto return
  21678. $async$goto = 1;
  21679. break;
  21680. }
  21681. } else if (t2 instanceof A.FileSystemException) {
  21682. error0 = t2;
  21683. stackTrace0 = A.getTraceFromException($async$exception);
  21684. path = error0.path;
  21685. t2 = path == null ? error0.message : "Error reading " + $.$get$context().relative$2$from(path, null) + ": " + error0.message + ".";
  21686. if (A._asBool(_box_0.options._options.$index(0, "trace"))) {
  21687. t3 = error0;
  21688. t4 = typeof t3 == "string";
  21689. if (t4 || typeof t3 == "number" || A._isBool(t3))
  21690. t3 = null;
  21691. else {
  21692. t5 = $.$get$_traces();
  21693. if (A._isBool(t3) || typeof t3 == "number" || t4)
  21694. A.throwExpression(A.ArgumentError$value(t3, string$.Expand, null));
  21695. t3 = t5._jsWeakMap.get(t3);
  21696. }
  21697. if (t3 == null)
  21698. t3 = stackTrace0;
  21699. } else
  21700. t3 = null;
  21701. printError.call$2(t2, t3);
  21702. J.set$exitCode$x(self.process, 66);
  21703. if (A._asBool(_box_0.options._options.$index(0, "stop-on-error"))) {
  21704. // goto return
  21705. $async$goto = 1;
  21706. break;
  21707. }
  21708. } else
  21709. throw $async$exception;
  21710. // goto after finally
  21711. $async$goto = 21;
  21712. break;
  21713. case 18:
  21714. // uncaught
  21715. // goto catch
  21716. $async$goto = 4;
  21717. break;
  21718. case 21:
  21719. // after finally
  21720. // goto for condition
  21721. $async$goto = 16;
  21722. break;
  21723. case 17:
  21724. // after for
  21725. $async$handler = 2;
  21726. // goto after finally
  21727. $async$goto = 6;
  21728. break;
  21729. case 4:
  21730. // catch
  21731. $async$handler = 3;
  21732. $async$exception1 = $async$currentError;
  21733. t1 = A.unwrapException($async$exception1);
  21734. if (t1 instanceof A.UsageException) {
  21735. error1 = t1;
  21736. A.print(error1.message + "\n");
  21737. A.print("Usage: sass <input.scss> [output.css]\n sass <input.scss>:<output.css> <input/>:<output/> <dir/>\n");
  21738. t1 = $.$get$ExecutableOptions__parser();
  21739. A.print(new A._Usage(t1._optionsAndSeparators, new A.StringBuffer(""), t1.usageLineLength).generate$0());
  21740. J.set$exitCode$x(self.process, 64);
  21741. } else {
  21742. error2 = t1;
  21743. stackTrace1 = A.getTraceFromException($async$exception1);
  21744. buffer = new A.StringBuffer("");
  21745. t1 = _box_0.options;
  21746. if (t1 != null && t1.get$color())
  21747. buffer._contents += "\x1b[31m\x1b[1m";
  21748. buffer._contents += "Unexpected exception:";
  21749. t1 = _box_0.options;
  21750. if (t1 != null && t1.get$color())
  21751. buffer._contents += "\x1b[0m";
  21752. buffer._contents += "\n";
  21753. buffer._contents += A.S(error2) + "\n";
  21754. t1 = buffer._contents;
  21755. t2 = A.getTrace(error2);
  21756. if (t2 == null)
  21757. t2 = stackTrace1;
  21758. printError.call$2(t1.charCodeAt(0) == 0 ? t1 : t1, t2);
  21759. J.set$exitCode$x(self.process, 255);
  21760. }
  21761. // goto after finally
  21762. $async$goto = 6;
  21763. break;
  21764. case 3:
  21765. // uncaught
  21766. // goto rethrow
  21767. $async$goto = 2;
  21768. break;
  21769. case 6:
  21770. // after finally
  21771. case 1:
  21772. // return
  21773. return A._asyncReturn($async$returnValue, $async$completer);
  21774. case 2:
  21775. // rethrow
  21776. return A._asyncRethrow($async$currentError, $async$completer);
  21777. }
  21778. });
  21779. return A._asyncStartSync($async$main0, $async$completer);
  21780. },
  21781. _loadVersion() {
  21782. var $async$goto = 0,
  21783. $async$completer = A._makeAsyncAwaitCompleter(type$.String),
  21784. $async$returnValue;
  21785. var $async$_loadVersion = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  21786. if ($async$errorCode === 1)
  21787. return A._asyncRethrow($async$result, $async$completer);
  21788. while (true)
  21789. switch ($async$goto) {
  21790. case 0:
  21791. // Function start
  21792. $async$returnValue = "1.57.1 compiled with dart2js 2.18.6";
  21793. // goto return
  21794. $async$goto = 1;
  21795. break;
  21796. case 1:
  21797. // return
  21798. return A._asyncReturn($async$returnValue, $async$completer);
  21799. }
  21800. });
  21801. return A._asyncStartSync($async$_loadVersion, $async$completer);
  21802. },
  21803. main_printError: function main_printError(t0) {
  21804. this._box_0 = t0;
  21805. },
  21806. main_closure: function main_closure(t0, t1) {
  21807. this._box_0 = t0;
  21808. this.destination = t1;
  21809. },
  21810. SassParser0: function SassParser0(t0, t1, t2) {
  21811. var _ = this;
  21812. _._sass0$_currentIndentation = 0;
  21813. _._sass0$_spaces = _._sass0$_nextIndentationEnd = _._sass0$_nextIndentation = null;
  21814. _._stylesheet0$_isUseAllowed = true;
  21815. _._stylesheet0$_inParentheses = _._stylesheet0$_inStyleRule = _._stylesheet0$_inUnknownAtRule = _._stylesheet0$_inControlDirective = _._stylesheet0$_inContentBlock = _._stylesheet0$_inMixin = false;
  21816. _._stylesheet0$_globalVariables = t0;
  21817. _.lastSilentComment = null;
  21818. _.scanner = t1;
  21819. _.logger = t2;
  21820. },
  21821. SassParser_children_closure0: function SassParser_children_closure0(t0, t1, t2) {
  21822. this.$this = t0;
  21823. this.child = t1;
  21824. this.children = t2;
  21825. },
  21826. _translateReturnValue(val) {
  21827. if (type$.Future_dynamic._is(val))
  21828. return A.futureToPromise(val, type$.dynamic);
  21829. else
  21830. return val;
  21831. },
  21832. main1() {
  21833. new Uint8Array(0);
  21834. A.main();
  21835. J.set$cli_pkg_main_0_$x(self.exports, A._wrapMain(A.sass__main$closure()));
  21836. },
  21837. _wrapMain(main) {
  21838. if (type$.dynamic_Function._is(main))
  21839. return A.allowInterop(new A._wrapMain_closure(main));
  21840. else
  21841. return A.allowInterop(new A._wrapMain_closure0(main));
  21842. },
  21843. _Exports: function _Exports() {
  21844. },
  21845. _wrapMain_closure: function _wrapMain_closure(t0) {
  21846. this.main = t0;
  21847. },
  21848. _wrapMain_closure0: function _wrapMain_closure0(t0) {
  21849. this.main = t0;
  21850. },
  21851. ScssParser$0(contents, logger, url) {
  21852. var t1 = A.SpanScanner$(contents, url),
  21853. t2 = logger == null ? B.StderrLogger_false0 : logger;
  21854. return new A.ScssParser0(A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration_2), t1, t2);
  21855. },
  21856. ScssParser0: function ScssParser0(t0, t1, t2) {
  21857. var _ = this;
  21858. _._stylesheet0$_isUseAllowed = true;
  21859. _._stylesheet0$_inParentheses = _._stylesheet0$_inStyleRule = _._stylesheet0$_inUnknownAtRule = _._stylesheet0$_inControlDirective = _._stylesheet0$_inContentBlock = _._stylesheet0$_inMixin = false;
  21860. _._stylesheet0$_globalVariables = t0;
  21861. _.lastSilentComment = null;
  21862. _.scanner = t1;
  21863. _.logger = t2;
  21864. },
  21865. Selector0: function Selector0() {
  21866. },
  21867. _IsInvisibleVisitor2: function _IsInvisibleVisitor2(t0) {
  21868. this.includeBogus = t0;
  21869. },
  21870. _IsBogusVisitor0: function _IsBogusVisitor0(t0) {
  21871. this.includeLeadingCombinator = t0;
  21872. },
  21873. _IsBogusVisitor_visitComplexSelector_closure0: function _IsBogusVisitor_visitComplexSelector_closure0(t0) {
  21874. this.$this = t0;
  21875. },
  21876. _IsUselessVisitor0: function _IsUselessVisitor0() {
  21877. },
  21878. _IsUselessVisitor_visitComplexSelector_closure0: function _IsUselessVisitor_visitComplexSelector_closure0(t0) {
  21879. this.$this = t0;
  21880. },
  21881. __IsBogusVisitor_Object_AnySelectorVisitor0: function __IsBogusVisitor_Object_AnySelectorVisitor0() {
  21882. },
  21883. __IsInvisibleVisitor_Object_AnySelectorVisitor0: function __IsInvisibleVisitor_Object_AnySelectorVisitor0() {
  21884. },
  21885. __IsUselessVisitor_Object_AnySelectorVisitor0: function __IsUselessVisitor_Object_AnySelectorVisitor0() {
  21886. },
  21887. SelectorExpression0: function SelectorExpression0(t0) {
  21888. this.span = t0;
  21889. },
  21890. _prependParent0(compound) {
  21891. var t2, _null = null,
  21892. t1 = compound.components,
  21893. first = B.JSArray_methods.get$first(t1);
  21894. if (first instanceof A.UniversalSelector0)
  21895. return _null;
  21896. if (first instanceof A.TypeSelector0) {
  21897. t2 = first.name;
  21898. if (t2.namespace != null)
  21899. return _null;
  21900. t2 = A._setArrayType([new A.ParentSelector0(t2.name)], type$.JSArray_SimpleSelector_2);
  21901. B.JSArray_methods.addAll$1(t2, A.SubListIterable$(t1, 1, _null, A._arrayInstanceType(t1)._precomputed1));
  21902. return A.CompoundSelector$0(t2);
  21903. } else {
  21904. t2 = A._setArrayType([new A.ParentSelector0(_null)], type$.JSArray_SimpleSelector_2);
  21905. B.JSArray_methods.addAll$1(t2, t1);
  21906. return A.CompoundSelector$0(t2);
  21907. }
  21908. },
  21909. _function7($name, $arguments, callback) {
  21910. return A.BuiltInCallable$function0($name, $arguments, callback, "sass:selector");
  21911. },
  21912. _nest_closure0: function _nest_closure0() {
  21913. },
  21914. _nest__closure1: function _nest__closure1(t0) {
  21915. this._box_0 = t0;
  21916. },
  21917. _nest__closure2: function _nest__closure2() {
  21918. },
  21919. _append_closure1: function _append_closure1() {
  21920. },
  21921. _append__closure1: function _append__closure1() {
  21922. },
  21923. _append__closure2: function _append__closure2() {
  21924. },
  21925. _append___closure0: function _append___closure0(t0) {
  21926. this.parent = t0;
  21927. },
  21928. _extend_closure0: function _extend_closure0() {
  21929. },
  21930. _replace_closure0: function _replace_closure0() {
  21931. },
  21932. _unify_closure0: function _unify_closure0() {
  21933. },
  21934. _isSuperselector_closure0: function _isSuperselector_closure0() {
  21935. },
  21936. _simpleSelectors_closure0: function _simpleSelectors_closure0() {
  21937. },
  21938. _simpleSelectors__closure0: function _simpleSelectors__closure0() {
  21939. },
  21940. _parse_closure0: function _parse_closure0() {
  21941. },
  21942. SelectorParser$0(contents, allowParent, allowPlaceholder, logger, url) {
  21943. var t1 = A.SpanScanner$(contents, url);
  21944. return new A.SelectorParser0(allowParent, allowPlaceholder, t1, logger == null ? B.StderrLogger_false0 : logger);
  21945. },
  21946. SelectorParser0: function SelectorParser0(t0, t1, t2, t3) {
  21947. var _ = this;
  21948. _._selector$_allowParent = t0;
  21949. _._selector$_allowPlaceholder = t1;
  21950. _.scanner = t2;
  21951. _.logger = t3;
  21952. },
  21953. SelectorParser_parse_closure0: function SelectorParser_parse_closure0(t0) {
  21954. this.$this = t0;
  21955. },
  21956. SelectorParser_parseCompoundSelector_closure0: function SelectorParser_parseCompoundSelector_closure0(t0) {
  21957. this.$this = t0;
  21958. },
  21959. serialize0(node, charset, indentWidth, inspect, lineFeed, sourceMap, style, useSpaces) {
  21960. var t1, css, t2, prefix,
  21961. visitor = A._SerializeVisitor$0(indentWidth == null ? 2 : indentWidth, inspect, lineFeed, true, sourceMap, style, useSpaces);
  21962. node.accept$1(visitor);
  21963. t1 = visitor._serialize0$_buffer;
  21964. css = t1.toString$0(0);
  21965. if (charset) {
  21966. t2 = new A.CodeUnits(css);
  21967. t2 = t2.any$1(t2, new A.serialize_closure0());
  21968. } else
  21969. t2 = false;
  21970. if (t2)
  21971. prefix = style === B.OutputStyle_10 ? "\ufeff" : '@charset "UTF-8";\n';
  21972. else
  21973. prefix = "";
  21974. t1 = sourceMap ? t1.buildSourceMap$1$prefix(prefix) : null;
  21975. return new A.SerializeResult0(prefix + css, t1);
  21976. },
  21977. serializeValue0(value, inspect, quote) {
  21978. var visitor = A._SerializeVisitor$0(null, inspect, null, quote, false, null, true);
  21979. value.accept$1(visitor);
  21980. return visitor._serialize0$_buffer.toString$0(0);
  21981. },
  21982. serializeSelector0(selector, inspect) {
  21983. var visitor = A._SerializeVisitor$0(null, true, null, true, false, null, true);
  21984. selector.accept$1(visitor);
  21985. return visitor._serialize0$_buffer.toString$0(0);
  21986. },
  21987. _SerializeVisitor$0(indentWidth, inspect, lineFeed, quote, sourceMap, style, useSpaces) {
  21988. var t1 = sourceMap ? new A.SourceMapBuffer0(new A.StringBuffer(""), A._setArrayType([], type$.JSArray_Entry)) : new A.NoSourceMapBuffer0(new A.StringBuffer("")),
  21989. t2 = style == null ? B.OutputStyle_00 : style,
  21990. t3 = useSpaces ? 32 : 9,
  21991. t4 = indentWidth == null ? 2 : indentWidth,
  21992. t5 = lineFeed == null ? B.LineFeed_SsD : lineFeed;
  21993. A.RangeError_checkValueInInterval(t4, 0, 10, "indentWidth");
  21994. return new A._SerializeVisitor0(t1, t2, inspect, quote, t3, t4, t5);
  21995. },
  21996. serialize_closure0: function serialize_closure0() {
  21997. },
  21998. _SerializeVisitor0: function _SerializeVisitor0(t0, t1, t2, t3, t4, t5, t6) {
  21999. var _ = this;
  22000. _._serialize0$_buffer = t0;
  22001. _._serialize0$_indentation = 0;
  22002. _._serialize0$_style = t1;
  22003. _._serialize0$_inspect = t2;
  22004. _._serialize0$_quote = t3;
  22005. _._serialize0$_indentCharacter = t4;
  22006. _._serialize0$_indentWidth = t5;
  22007. _._lineFeed = t6;
  22008. },
  22009. _SerializeVisitor_visitCssComment_closure0: function _SerializeVisitor_visitCssComment_closure0(t0, t1) {
  22010. this.$this = t0;
  22011. this.node = t1;
  22012. },
  22013. _SerializeVisitor_visitCssAtRule_closure0: function _SerializeVisitor_visitCssAtRule_closure0(t0, t1) {
  22014. this.$this = t0;
  22015. this.node = t1;
  22016. },
  22017. _SerializeVisitor_visitCssMediaRule_closure0: function _SerializeVisitor_visitCssMediaRule_closure0(t0, t1) {
  22018. this.$this = t0;
  22019. this.node = t1;
  22020. },
  22021. _SerializeVisitor_visitCssImport_closure0: function _SerializeVisitor_visitCssImport_closure0(t0, t1) {
  22022. this.$this = t0;
  22023. this.node = t1;
  22024. },
  22025. _SerializeVisitor_visitCssImport__closure0: function _SerializeVisitor_visitCssImport__closure0(t0, t1) {
  22026. this.$this = t0;
  22027. this.node = t1;
  22028. },
  22029. _SerializeVisitor_visitCssKeyframeBlock_closure0: function _SerializeVisitor_visitCssKeyframeBlock_closure0(t0, t1) {
  22030. this.$this = t0;
  22031. this.node = t1;
  22032. },
  22033. _SerializeVisitor_visitCssStyleRule_closure0: function _SerializeVisitor_visitCssStyleRule_closure0(t0, t1) {
  22034. this.$this = t0;
  22035. this.node = t1;
  22036. },
  22037. _SerializeVisitor_visitCssSupportsRule_closure0: function _SerializeVisitor_visitCssSupportsRule_closure0(t0, t1) {
  22038. this.$this = t0;
  22039. this.node = t1;
  22040. },
  22041. _SerializeVisitor_visitCssDeclaration_closure1: function _SerializeVisitor_visitCssDeclaration_closure1(t0, t1) {
  22042. this.$this = t0;
  22043. this.node = t1;
  22044. },
  22045. _SerializeVisitor_visitCssDeclaration_closure2: function _SerializeVisitor_visitCssDeclaration_closure2(t0, t1) {
  22046. this.$this = t0;
  22047. this.node = t1;
  22048. },
  22049. _SerializeVisitor_visitList_closure2: function _SerializeVisitor_visitList_closure2() {
  22050. },
  22051. _SerializeVisitor_visitList_closure3: function _SerializeVisitor_visitList_closure3(t0, t1) {
  22052. this.$this = t0;
  22053. this.value = t1;
  22054. },
  22055. _SerializeVisitor_visitList_closure4: function _SerializeVisitor_visitList_closure4(t0) {
  22056. this.$this = t0;
  22057. },
  22058. _SerializeVisitor_visitMap_closure0: function _SerializeVisitor_visitMap_closure0(t0) {
  22059. this.$this = t0;
  22060. },
  22061. _SerializeVisitor_visitSelectorList_closure0: function _SerializeVisitor_visitSelectorList_closure0() {
  22062. },
  22063. _SerializeVisitor__write_closure0: function _SerializeVisitor__write_closure0(t0, t1) {
  22064. this.$this = t0;
  22065. this.value = t1;
  22066. },
  22067. _SerializeVisitor__visitChildren_closure1: function _SerializeVisitor__visitChildren_closure1(t0, t1) {
  22068. this.$this = t0;
  22069. this.child = t1;
  22070. },
  22071. _SerializeVisitor__visitChildren_closure2: function _SerializeVisitor__visitChildren_closure2(t0, t1) {
  22072. this.$this = t0;
  22073. this.child = t1;
  22074. },
  22075. OutputStyle0: function OutputStyle0(t0) {
  22076. this._name = t0;
  22077. },
  22078. LineFeed0: function LineFeed0(t0, t1, t2) {
  22079. this.name = t0;
  22080. this.text = t1;
  22081. this._name = t2;
  22082. },
  22083. SerializeResult0: function SerializeResult0(t0, t1) {
  22084. this.css = t0;
  22085. this.sourceMap = t1;
  22086. },
  22087. ShadowedModuleView_ifNecessary0(inner, functions, mixins, variables, $T) {
  22088. return A.ShadowedModuleView__needsBlocklist0(inner.get$variables(), variables) || A.ShadowedModuleView__needsBlocklist0(inner.get$functions(inner), functions) || A.ShadowedModuleView__needsBlocklist0(inner.get$mixins(), mixins) ? new A.ShadowedModuleView0(inner, A.ShadowedModuleView__shadowedMap0(inner.get$variables(), variables, type$.Value_2), A.ShadowedModuleView__shadowedMap0(inner.get$variableNodes(), variables, type$.AstNode_2), A.ShadowedModuleView__shadowedMap0(inner.get$functions(inner), functions, $T), A.ShadowedModuleView__shadowedMap0(inner.get$mixins(), mixins, $T), $T._eval$1("ShadowedModuleView0<0>")) : null;
  22089. },
  22090. ShadowedModuleView__shadowedMap0(map, blocklist, $V) {
  22091. var t1 = A.ShadowedModuleView__needsBlocklist0(map, blocklist);
  22092. return !t1 ? map : A.LimitedMapView$blocklist0(map, blocklist, type$.String, $V);
  22093. },
  22094. ShadowedModuleView__needsBlocklist0(map, blocklist) {
  22095. return map.get$isNotEmpty(map) && blocklist.any$1(0, map.get$containsKey());
  22096. },
  22097. ShadowedModuleView0: function ShadowedModuleView0(t0, t1, t2, t3, t4, t5) {
  22098. var _ = this;
  22099. _._shadowed_view0$_inner = t0;
  22100. _.variables = t1;
  22101. _.variableNodes = t2;
  22102. _.functions = t3;
  22103. _.mixins = t4;
  22104. _.$ti = t5;
  22105. },
  22106. SilentComment0: function SilentComment0(t0, t1) {
  22107. this.text = t0;
  22108. this.span = t1;
  22109. },
  22110. SimpleSelector0: function SimpleSelector0() {
  22111. },
  22112. SimpleSelector_isSuperselector_closure0: function SimpleSelector_isSuperselector_closure0(t0) {
  22113. this.$this = t0;
  22114. },
  22115. SimpleSelector_isSuperselector__closure0: function SimpleSelector_isSuperselector__closure0(t0) {
  22116. this.$this = t0;
  22117. },
  22118. SingleUnitSassNumber0: function SingleUnitSassNumber0(t0, t1, t2) {
  22119. var _ = this;
  22120. _._single_unit$_unit = t0;
  22121. _._number1$_value = t1;
  22122. _.hashCache = null;
  22123. _.asSlash = t2;
  22124. },
  22125. SingleUnitSassNumber__coerceToUnit_closure0: function SingleUnitSassNumber__coerceToUnit_closure0(t0, t1) {
  22126. this.$this = t0;
  22127. this.unit = t1;
  22128. },
  22129. SingleUnitSassNumber__coerceValueToUnit_closure0: function SingleUnitSassNumber__coerceValueToUnit_closure0(t0) {
  22130. this.$this = t0;
  22131. },
  22132. SingleUnitSassNumber_multiplyUnits_closure1: function SingleUnitSassNumber_multiplyUnits_closure1(t0, t1) {
  22133. this._box_0 = t0;
  22134. this.$this = t1;
  22135. },
  22136. SingleUnitSassNumber_multiplyUnits_closure2: function SingleUnitSassNumber_multiplyUnits_closure2(t0, t1) {
  22137. this._box_0 = t0;
  22138. this.$this = t1;
  22139. },
  22140. SourceMapBuffer0: function SourceMapBuffer0(t0, t1) {
  22141. var _ = this;
  22142. _._source_map_buffer0$_buffer = t0;
  22143. _._source_map_buffer0$_entries = t1;
  22144. _._source_map_buffer0$_column = _._source_map_buffer0$_line = 0;
  22145. _._source_map_buffer0$_inSpan = false;
  22146. },
  22147. SourceMapBuffer_buildSourceMap_closure0: function SourceMapBuffer_buildSourceMap_closure0(t0, t1) {
  22148. this._box_0 = t0;
  22149. this.prefixLength = t1;
  22150. },
  22151. updateSourceSpanPrototype() {
  22152. var t3, t4, _i, t5,
  22153. span = A.SourceFile$fromString("", null).span$1(0, 0),
  22154. t1 = type$.SourceSpan,
  22155. t2 = type$.String;
  22156. for (t1 = [span, new A.MultiSpan0(span, "", A.ConstantMap_ConstantMap$from(A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t1, t2))], t3 = type$.JSClass, t4 = type$.Function, _i = 0; _i < 2; ++_i) {
  22157. t5 = t3._as(t1[_i].constructor);
  22158. A.LinkedHashMap_LinkedHashMap$_literal(["start", new A.updateSourceSpanPrototype_closure(), "end", new A.updateSourceSpanPrototype_closure0(), "url", new A.updateSourceSpanPrototype_closure1(), "text", new A.updateSourceSpanPrototype_closure2(), "context", new A.updateSourceSpanPrototype_closure3()], t2, t4).forEach$1(0, A.JSClassExtension_get_defineGetter(t5));
  22159. }
  22160. t1 = t3._as(A.FileLocation$_(span.file, span._file$_start).constructor);
  22161. A.LinkedHashMap_LinkedHashMap$_literal(["line", new A.updateSourceSpanPrototype_closure4(), "column", new A.updateSourceSpanPrototype_closure5()], t2, t4).forEach$1(0, A.JSClassExtension_get_defineGetter(t1));
  22162. },
  22163. updateSourceSpanPrototype_closure: function updateSourceSpanPrototype_closure() {
  22164. },
  22165. updateSourceSpanPrototype_closure0: function updateSourceSpanPrototype_closure0() {
  22166. },
  22167. updateSourceSpanPrototype_closure1: function updateSourceSpanPrototype_closure1() {
  22168. },
  22169. updateSourceSpanPrototype_closure2: function updateSourceSpanPrototype_closure2() {
  22170. },
  22171. updateSourceSpanPrototype_closure3: function updateSourceSpanPrototype_closure3() {
  22172. },
  22173. updateSourceSpanPrototype_closure4: function updateSourceSpanPrototype_closure4() {
  22174. },
  22175. updateSourceSpanPrototype_closure5: function updateSourceSpanPrototype_closure5() {
  22176. },
  22177. _IterableExtension__search0(_this, callback) {
  22178. var t1, value;
  22179. for (t1 = J.get$iterator$ax(_this); t1.moveNext$0();) {
  22180. value = callback.call$1(t1.get$current(t1));
  22181. if (value != null)
  22182. return value;
  22183. }
  22184. return null;
  22185. },
  22186. StatementSearchVisitor0: function StatementSearchVisitor0() {
  22187. },
  22188. StatementSearchVisitor_visitIfRule_closure1: function StatementSearchVisitor_visitIfRule_closure1(t0) {
  22189. this.$this = t0;
  22190. },
  22191. StatementSearchVisitor_visitIfRule__closure2: function StatementSearchVisitor_visitIfRule__closure2(t0) {
  22192. this.$this = t0;
  22193. },
  22194. StatementSearchVisitor_visitIfRule_closure2: function StatementSearchVisitor_visitIfRule_closure2(t0) {
  22195. this.$this = t0;
  22196. },
  22197. StatementSearchVisitor_visitIfRule__closure1: function StatementSearchVisitor_visitIfRule__closure1(t0) {
  22198. this.$this = t0;
  22199. },
  22200. StatementSearchVisitor_visitChildren_closure0: function StatementSearchVisitor_visitChildren_closure0(t0) {
  22201. this.$this = t0;
  22202. },
  22203. StaticImport0: function StaticImport0(t0, t1, t2) {
  22204. this.url = t0;
  22205. this.modifiers = t1;
  22206. this.span = t2;
  22207. },
  22208. StderrLogger0: function StderrLogger0(t0) {
  22209. this.color = t0;
  22210. },
  22211. StringExpression_quoteText0(text) {
  22212. var t1,
  22213. quote = A.StringExpression__bestQuote0(A._setArrayType([text], type$.JSArray_String)),
  22214. buffer = new A.StringBuffer("");
  22215. buffer._contents = "" + A.Primitives_stringFromCharCode(quote);
  22216. A.StringExpression__quoteInnerText0(text, quote, buffer, true);
  22217. t1 = buffer._contents += A.Primitives_stringFromCharCode(quote);
  22218. return t1.charCodeAt(0) == 0 ? t1 : t1;
  22219. },
  22220. StringExpression__quoteInnerText0(text, quote, buffer, $static) {
  22221. var t1, t2, i, codeUnit, next, t3;
  22222. for (t1 = text.length, t2 = t1 - 1, i = 0; i < t1; ++i) {
  22223. codeUnit = B.JSString_methods._codeUnitAt$1(text, i);
  22224. if (codeUnit === 10 || codeUnit === 13 || codeUnit === 12) {
  22225. buffer.writeCharCode$1(92);
  22226. buffer.writeCharCode$1(97);
  22227. if (i !== t2) {
  22228. next = B.JSString_methods._codeUnitAt$1(text, i + 1);
  22229. if (next === 32 || next === 9 || next === 10 || next === 13 || next === 12 || A.isHex0(next))
  22230. buffer.writeCharCode$1(32);
  22231. }
  22232. } else {
  22233. if (codeUnit !== quote)
  22234. if (codeUnit !== 92)
  22235. t3 = $static && codeUnit === 35 && i < t2 && B.JSString_methods._codeUnitAt$1(text, i + 1) === 123;
  22236. else
  22237. t3 = true;
  22238. else
  22239. t3 = true;
  22240. if (t3)
  22241. buffer.writeCharCode$1(92);
  22242. buffer.writeCharCode$1(codeUnit);
  22243. }
  22244. }
  22245. },
  22246. StringExpression__bestQuote0(strings) {
  22247. var t1, containsDoubleQuote, t2, t3, i, codeUnit;
  22248. for (t1 = J.get$iterator$ax(strings), containsDoubleQuote = false; t1.moveNext$0();) {
  22249. t2 = t1.get$current(t1);
  22250. for (t3 = t2.length, i = 0; i < t3; ++i) {
  22251. codeUnit = B.JSString_methods._codeUnitAt$1(t2, i);
  22252. if (codeUnit === 39)
  22253. return 34;
  22254. if (codeUnit === 34)
  22255. containsDoubleQuote = true;
  22256. }
  22257. }
  22258. return containsDoubleQuote ? 39 : 34;
  22259. },
  22260. StringExpression0: function StringExpression0(t0, t1) {
  22261. this.text = t0;
  22262. this.hasQuotes = t1;
  22263. },
  22264. _codepointForIndex0(index, lengthInCodepoints, allowNegative) {
  22265. var result;
  22266. if (index === 0)
  22267. return 0;
  22268. if (index > 0)
  22269. return Math.min(index - 1, lengthInCodepoints);
  22270. result = lengthInCodepoints + index;
  22271. if (result < 0 && !allowNegative)
  22272. return 0;
  22273. return result;
  22274. },
  22275. _function6($name, $arguments, callback) {
  22276. return A.BuiltInCallable$function0($name, $arguments, callback, "sass:string");
  22277. },
  22278. module_closure9: function module_closure9() {
  22279. },
  22280. module__closure2: function module__closure2(t0) {
  22281. this.string = t0;
  22282. },
  22283. module__closure3: function module__closure3(t0) {
  22284. this.string = t0;
  22285. },
  22286. _unquote_closure0: function _unquote_closure0() {
  22287. },
  22288. _quote_closure0: function _quote_closure0() {
  22289. },
  22290. _length_closure1: function _length_closure1() {
  22291. },
  22292. _insert_closure0: function _insert_closure0() {
  22293. },
  22294. _index_closure1: function _index_closure1() {
  22295. },
  22296. _slice_closure0: function _slice_closure0() {
  22297. },
  22298. _toUpperCase_closure0: function _toUpperCase_closure0() {
  22299. },
  22300. _toLowerCase_closure0: function _toLowerCase_closure0() {
  22301. },
  22302. _uniqueId_closure0: function _uniqueId_closure0() {
  22303. },
  22304. _NodeSassString: function _NodeSassString() {
  22305. },
  22306. legacyStringClass_closure: function legacyStringClass_closure() {
  22307. },
  22308. legacyStringClass_closure0: function legacyStringClass_closure0() {
  22309. },
  22310. legacyStringClass_closure1: function legacyStringClass_closure1() {
  22311. },
  22312. stringClass_closure: function stringClass_closure() {
  22313. },
  22314. stringClass__closure: function stringClass__closure() {
  22315. },
  22316. stringClass__closure0: function stringClass__closure0() {
  22317. },
  22318. stringClass__closure1: function stringClass__closure1() {
  22319. },
  22320. stringClass__closure2: function stringClass__closure2() {
  22321. },
  22322. stringClass__closure3: function stringClass__closure3() {
  22323. },
  22324. _ConstructorOptions1: function _ConstructorOptions1() {
  22325. },
  22326. SassString$0(_text, quotes) {
  22327. return new A.SassString0(_text, quotes);
  22328. },
  22329. SassString0: function SassString0(t0, t1) {
  22330. var _ = this;
  22331. _._string0$_text = t0;
  22332. _._string0$_hasQuotes = t1;
  22333. _._string0$__SassString__sassLength_FI = $;
  22334. _._string0$_hashCache = null;
  22335. },
  22336. ModifiableCssStyleRule$0(selector, span, originalSelector) {
  22337. var t1 = A._setArrayType([], type$.JSArray_ModifiableCssNode_2);
  22338. return new A.ModifiableCssStyleRule0(selector, originalSelector, span, new A.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode_2), t1);
  22339. },
  22340. ModifiableCssStyleRule0: function ModifiableCssStyleRule0(t0, t1, t2, t3, t4) {
  22341. var _ = this;
  22342. _.selector = t0;
  22343. _.originalSelector = t1;
  22344. _.span = t2;
  22345. _.children = t3;
  22346. _._node0$_children = t4;
  22347. _._node0$_indexInParent = _._node0$_parent = null;
  22348. _.isGroupEnd = false;
  22349. },
  22350. StyleRule$0(selector, children, span) {
  22351. var t1 = A.List_List$unmodifiable(children, type$.Statement_2),
  22352. t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure0());
  22353. return new A.StyleRule0(selector, span, t1, t2);
  22354. },
  22355. StyleRule0: function StyleRule0(t0, t1, t2, t3) {
  22356. var _ = this;
  22357. _.selector = t0;
  22358. _.span = t1;
  22359. _.children = t2;
  22360. _.hasDeclarations = t3;
  22361. },
  22362. CssStylesheet0: function CssStylesheet0(t0, t1) {
  22363. this.children = t0;
  22364. this.span = t1;
  22365. },
  22366. ModifiableCssStylesheet$0(span) {
  22367. var t1 = A._setArrayType([], type$.JSArray_ModifiableCssNode_2);
  22368. return new A.ModifiableCssStylesheet0(span, new A.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode_2), t1);
  22369. },
  22370. ModifiableCssStylesheet0: function ModifiableCssStylesheet0(t0, t1, t2) {
  22371. var _ = this;
  22372. _.span = t0;
  22373. _.children = t1;
  22374. _._node0$_children = t2;
  22375. _._node0$_indexInParent = _._node0$_parent = null;
  22376. _.isGroupEnd = false;
  22377. },
  22378. StylesheetParser0: function StylesheetParser0() {
  22379. },
  22380. StylesheetParser_parse_closure0: function StylesheetParser_parse_closure0(t0) {
  22381. this.$this = t0;
  22382. },
  22383. StylesheetParser_parse__closure1: function StylesheetParser_parse__closure1(t0) {
  22384. this.$this = t0;
  22385. },
  22386. StylesheetParser_parse__closure2: function StylesheetParser_parse__closure2() {
  22387. },
  22388. StylesheetParser_parseArgumentDeclaration_closure0: function StylesheetParser_parseArgumentDeclaration_closure0(t0) {
  22389. this.$this = t0;
  22390. },
  22391. StylesheetParser__parseSingleProduction_closure0: function StylesheetParser__parseSingleProduction_closure0(t0, t1, t2) {
  22392. this.$this = t0;
  22393. this.production = t1;
  22394. this.T = t2;
  22395. },
  22396. StylesheetParser_parseSignature_closure: function StylesheetParser_parseSignature_closure(t0, t1) {
  22397. this.$this = t0;
  22398. this.requireParens = t1;
  22399. },
  22400. StylesheetParser__statement_closure0: function StylesheetParser__statement_closure0(t0) {
  22401. this.$this = t0;
  22402. },
  22403. StylesheetParser_variableDeclarationWithoutNamespace_closure1: function StylesheetParser_variableDeclarationWithoutNamespace_closure1(t0, t1) {
  22404. this.$this = t0;
  22405. this.start = t1;
  22406. },
  22407. StylesheetParser_variableDeclarationWithoutNamespace_closure2: function StylesheetParser_variableDeclarationWithoutNamespace_closure2(t0) {
  22408. this.declaration = t0;
  22409. },
  22410. StylesheetParser__declarationOrBuffer_closure1: function StylesheetParser__declarationOrBuffer_closure1(t0) {
  22411. this.name = t0;
  22412. },
  22413. StylesheetParser__declarationOrBuffer_closure2: function StylesheetParser__declarationOrBuffer_closure2(t0, t1) {
  22414. this._box_0 = t0;
  22415. this.name = t1;
  22416. },
  22417. StylesheetParser__styleRule_closure0: function StylesheetParser__styleRule_closure0(t0, t1, t2, t3) {
  22418. var _ = this;
  22419. _._box_0 = t0;
  22420. _.$this = t1;
  22421. _.wasInStyleRule = t2;
  22422. _.start = t3;
  22423. },
  22424. StylesheetParser__propertyOrVariableDeclaration_closure1: function StylesheetParser__propertyOrVariableDeclaration_closure1(t0) {
  22425. this._box_0 = t0;
  22426. },
  22427. StylesheetParser__propertyOrVariableDeclaration_closure2: function StylesheetParser__propertyOrVariableDeclaration_closure2(t0, t1) {
  22428. this._box_0 = t0;
  22429. this.value = t1;
  22430. },
  22431. StylesheetParser__atRootRule_closure1: function StylesheetParser__atRootRule_closure1(t0) {
  22432. this.query = t0;
  22433. },
  22434. StylesheetParser__atRootRule_closure2: function StylesheetParser__atRootRule_closure2() {
  22435. },
  22436. StylesheetParser__eachRule_closure0: function StylesheetParser__eachRule_closure0(t0, t1, t2, t3) {
  22437. var _ = this;
  22438. _.$this = t0;
  22439. _.wasInControlDirective = t1;
  22440. _.variables = t2;
  22441. _.list = t3;
  22442. },
  22443. StylesheetParser__functionRule_closure0: function StylesheetParser__functionRule_closure0(t0, t1, t2) {
  22444. this.name = t0;
  22445. this.$arguments = t1;
  22446. this.precedingComment = t2;
  22447. },
  22448. StylesheetParser__forRule_closure1: function StylesheetParser__forRule_closure1(t0, t1) {
  22449. this._box_0 = t0;
  22450. this.$this = t1;
  22451. },
  22452. StylesheetParser__forRule_closure2: function StylesheetParser__forRule_closure2(t0, t1, t2, t3, t4, t5) {
  22453. var _ = this;
  22454. _._box_0 = t0;
  22455. _.$this = t1;
  22456. _.wasInControlDirective = t2;
  22457. _.variable = t3;
  22458. _.from = t4;
  22459. _.to = t5;
  22460. },
  22461. StylesheetParser__memberList_closure0: function StylesheetParser__memberList_closure0(t0, t1, t2) {
  22462. this.$this = t0;
  22463. this.variables = t1;
  22464. this.identifiers = t2;
  22465. },
  22466. StylesheetParser__includeRule_closure0: function StylesheetParser__includeRule_closure0(t0) {
  22467. this.contentArguments_ = t0;
  22468. },
  22469. StylesheetParser_mediaRule_closure0: function StylesheetParser_mediaRule_closure0(t0) {
  22470. this.query = t0;
  22471. },
  22472. StylesheetParser__mixinRule_closure0: function StylesheetParser__mixinRule_closure0(t0, t1, t2, t3) {
  22473. var _ = this;
  22474. _.$this = t0;
  22475. _.name = t1;
  22476. _.$arguments = t2;
  22477. _.precedingComment = t3;
  22478. },
  22479. StylesheetParser_mozDocumentRule_closure0: function StylesheetParser_mozDocumentRule_closure0(t0, t1, t2, t3) {
  22480. var _ = this;
  22481. _._box_0 = t0;
  22482. _.$this = t1;
  22483. _.name = t2;
  22484. _.value = t3;
  22485. },
  22486. StylesheetParser_supportsRule_closure0: function StylesheetParser_supportsRule_closure0(t0) {
  22487. this.condition = t0;
  22488. },
  22489. StylesheetParser__whileRule_closure0: function StylesheetParser__whileRule_closure0(t0, t1, t2) {
  22490. this.$this = t0;
  22491. this.wasInControlDirective = t1;
  22492. this.condition = t2;
  22493. },
  22494. StylesheetParser_unknownAtRule_closure0: function StylesheetParser_unknownAtRule_closure0(t0, t1) {
  22495. this._box_0 = t0;
  22496. this.name = t1;
  22497. },
  22498. StylesheetParser__expression_resetState0: function StylesheetParser__expression_resetState0(t0, t1, t2) {
  22499. this._box_0 = t0;
  22500. this.$this = t1;
  22501. this.start = t2;
  22502. },
  22503. StylesheetParser__expression_resolveOneOperation0: function StylesheetParser__expression_resolveOneOperation0(t0, t1) {
  22504. this._box_0 = t0;
  22505. this.$this = t1;
  22506. },
  22507. StylesheetParser__expression_resolveOperations0: function StylesheetParser__expression_resolveOperations0(t0, t1) {
  22508. this._box_0 = t0;
  22509. this.resolveOneOperation = t1;
  22510. },
  22511. StylesheetParser__expression_addSingleExpression0: function StylesheetParser__expression_addSingleExpression0(t0, t1, t2, t3) {
  22512. var _ = this;
  22513. _._box_0 = t0;
  22514. _.$this = t1;
  22515. _.resetState = t2;
  22516. _.resolveOperations = t3;
  22517. },
  22518. StylesheetParser__expression_addOperator0: function StylesheetParser__expression_addOperator0(t0, t1, t2) {
  22519. this._box_0 = t0;
  22520. this.$this = t1;
  22521. this.resolveOneOperation = t2;
  22522. },
  22523. StylesheetParser__expression_resolveSpaceExpressions0: function StylesheetParser__expression_resolveSpaceExpressions0(t0, t1, t2) {
  22524. this._box_0 = t0;
  22525. this.$this = t1;
  22526. this.resolveOperations = t2;
  22527. },
  22528. StylesheetParser_expressionUntilComma_closure0: function StylesheetParser_expressionUntilComma_closure0(t0) {
  22529. this.$this = t0;
  22530. },
  22531. StylesheetParser__unicodeRange_closure1: function StylesheetParser__unicodeRange_closure1() {
  22532. },
  22533. StylesheetParser__unicodeRange_closure2: function StylesheetParser__unicodeRange_closure2() {
  22534. },
  22535. StylesheetParser_namespacedExpression_closure0: function StylesheetParser_namespacedExpression_closure0(t0, t1) {
  22536. this.$this = t0;
  22537. this.start = t1;
  22538. },
  22539. StylesheetParser_trySpecialFunction_closure0: function StylesheetParser_trySpecialFunction_closure0() {
  22540. },
  22541. StylesheetParser__expressionUntilComparison_closure0: function StylesheetParser__expressionUntilComparison_closure0(t0) {
  22542. this.$this = t0;
  22543. },
  22544. StylesheetParser__publicIdentifier_closure0: function StylesheetParser__publicIdentifier_closure0(t0, t1) {
  22545. this.$this = t0;
  22546. this.start = t1;
  22547. },
  22548. Stylesheet$internal0(children, span, plainCss) {
  22549. var t1 = A._setArrayType([], type$.JSArray_UseRule_2),
  22550. t2 = A._setArrayType([], type$.JSArray_ForwardRule_2),
  22551. t3 = A.List_List$unmodifiable(children, type$.Statement_2),
  22552. t4 = B.JSArray_methods.any$1(t3, new A.ParentStatement_closure0());
  22553. t1 = new A.Stylesheet0(span, plainCss, t1, t2, t3, t4);
  22554. t1.Stylesheet$internal$3$plainCss0(children, span, plainCss);
  22555. return t1;
  22556. },
  22557. Stylesheet_Stylesheet$parse0(contents, syntax, logger, url) {
  22558. var t1, t2;
  22559. switch (syntax) {
  22560. case B.Syntax_Sass_sass0:
  22561. t1 = A.SpanScanner$(contents, url);
  22562. t2 = logger == null ? B.StderrLogger_false0 : logger;
  22563. return new A.SassParser0(A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration_2), t1, t2).parse$0();
  22564. case B.Syntax_SCSS_scss0:
  22565. return A.ScssParser$0(contents, logger, url).parse$0();
  22566. case B.Syntax_CSS_css0:
  22567. t1 = A.SpanScanner$(contents, url);
  22568. t2 = logger == null ? B.StderrLogger_false0 : logger;
  22569. return new A.CssParser0(A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration_2), t1, t2).parse$0();
  22570. default:
  22571. throw A.wrapException(A.ArgumentError$("Unknown syntax " + syntax.toString$0(0) + ".", null));
  22572. }
  22573. },
  22574. Stylesheet0: function Stylesheet0(t0, t1, t2, t3, t4, t5) {
  22575. var _ = this;
  22576. _.span = t0;
  22577. _.plainCss = t1;
  22578. _._stylesheet1$_uses = t2;
  22579. _._stylesheet1$_forwards = t3;
  22580. _.children = t4;
  22581. _.hasDeclarations = t5;
  22582. },
  22583. SupportsExpression0: function SupportsExpression0(t0) {
  22584. this.condition = t0;
  22585. },
  22586. ModifiableCssSupportsRule$0(condition, span) {
  22587. var t1 = A._setArrayType([], type$.JSArray_ModifiableCssNode_2);
  22588. return new A.ModifiableCssSupportsRule0(condition, span, new A.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode_2), t1);
  22589. },
  22590. ModifiableCssSupportsRule0: function ModifiableCssSupportsRule0(t0, t1, t2, t3) {
  22591. var _ = this;
  22592. _.condition = t0;
  22593. _.span = t1;
  22594. _.children = t2;
  22595. _._node0$_children = t3;
  22596. _._node0$_indexInParent = _._node0$_parent = null;
  22597. _.isGroupEnd = false;
  22598. },
  22599. SupportsRule$0(condition, children, span) {
  22600. var t1 = A.List_List$unmodifiable(children, type$.Statement_2),
  22601. t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure0());
  22602. return new A.SupportsRule0(condition, span, t1, t2);
  22603. },
  22604. SupportsRule0: function SupportsRule0(t0, t1, t2, t3) {
  22605. var _ = this;
  22606. _.condition = t0;
  22607. _.span = t1;
  22608. _.children = t2;
  22609. _.hasDeclarations = t3;
  22610. },
  22611. NodeToDartImporter: function NodeToDartImporter(t0, t1) {
  22612. this._sync$_canonicalize = t0;
  22613. this._sync$_load = t1;
  22614. },
  22615. Syntax_forPath0(path) {
  22616. switch (A.ParsedPath_ParsedPath$parse(path, $.$get$context().style)._splitExtension$1(1)[1]) {
  22617. case ".sass":
  22618. return B.Syntax_Sass_sass0;
  22619. case ".css":
  22620. return B.Syntax_CSS_css0;
  22621. default:
  22622. return B.Syntax_SCSS_scss0;
  22623. }
  22624. },
  22625. Syntax0: function Syntax0(t0, t1) {
  22626. this._syntax0$_name = t0;
  22627. this._name = t1;
  22628. },
  22629. TerseLogger0: function TerseLogger0(t0, t1) {
  22630. this._terse$_warningCounts = t0;
  22631. this._terse$_inner = t1;
  22632. },
  22633. TerseLogger_summarize_closure1: function TerseLogger_summarize_closure1() {
  22634. },
  22635. TerseLogger_summarize_closure2: function TerseLogger_summarize_closure2() {
  22636. },
  22637. TypeSelector0: function TypeSelector0(t0) {
  22638. this.name = t0;
  22639. },
  22640. Types: function Types() {
  22641. },
  22642. UnaryOperationExpression0: function UnaryOperationExpression0(t0, t1, t2) {
  22643. this.operator = t0;
  22644. this.operand = t1;
  22645. this.span = t2;
  22646. },
  22647. UnaryOperator0: function UnaryOperator0(t0, t1, t2) {
  22648. this.name = t0;
  22649. this.operator = t1;
  22650. this._name = t2;
  22651. },
  22652. UnitlessSassNumber0: function UnitlessSassNumber0(t0, t1) {
  22653. this._number1$_value = t0;
  22654. this.hashCache = null;
  22655. this.asSlash = t1;
  22656. },
  22657. UniversalSelector0: function UniversalSelector0(t0) {
  22658. this.namespace = t0;
  22659. },
  22660. UnprefixedMapView0: function UnprefixedMapView0(t0, t1, t2) {
  22661. this._unprefixed_map_view0$_map = t0;
  22662. this._unprefixed_map_view0$_prefix = t1;
  22663. this.$ti = t2;
  22664. },
  22665. _UnprefixedKeys0: function _UnprefixedKeys0(t0) {
  22666. this._unprefixed_map_view0$_view = t0;
  22667. },
  22668. _UnprefixedKeys_iterator_closure1: function _UnprefixedKeys_iterator_closure1(t0) {
  22669. this.$this = t0;
  22670. },
  22671. _UnprefixedKeys_iterator_closure2: function _UnprefixedKeys_iterator_closure2(t0) {
  22672. this.$this = t0;
  22673. },
  22674. JSUrl0: function JSUrl0() {
  22675. },
  22676. UseRule0: function UseRule0(t0, t1, t2, t3) {
  22677. var _ = this;
  22678. _.url = t0;
  22679. _.namespace = t1;
  22680. _.configuration = t2;
  22681. _.span = t3;
  22682. },
  22683. UserDefinedCallable0: function UserDefinedCallable0(t0, t1, t2, t3) {
  22684. var _ = this;
  22685. _.declaration = t0;
  22686. _.environment = t1;
  22687. _.inDependency = t2;
  22688. _.$ti = t3;
  22689. },
  22690. fromImport0() {
  22691. var t1 = A._asBoolQ($.Zone__current.$index(0, B.Symbol__inImportRule));
  22692. return t1 === true;
  22693. },
  22694. resolveImportPath0(path) {
  22695. var t1,
  22696. extension = A.ParsedPath_ParsedPath$parse(path, $.$get$context().style)._splitExtension$1(1)[1];
  22697. if (extension === ".sass" || extension === ".scss" || extension === ".css") {
  22698. t1 = A.fromImport0() ? new A.resolveImportPath_closure1(path, extension).call$0() : null;
  22699. return t1 == null ? A._exactlyOne0(A._tryPath0(path)) : t1;
  22700. }
  22701. t1 = A.fromImport0() ? new A.resolveImportPath_closure2(path).call$0() : null;
  22702. if (t1 == null)
  22703. t1 = A._exactlyOne0(A._tryPathWithExtensions0(path));
  22704. return t1 == null ? A._tryPathAsDirectory0(path) : t1;
  22705. },
  22706. _tryPathWithExtensions0(path) {
  22707. var result = A._tryPath0(path + ".sass");
  22708. B.JSArray_methods.addAll$1(result, A._tryPath0(path + ".scss"));
  22709. return result.length !== 0 ? result : A._tryPath0(path + ".css");
  22710. },
  22711. _tryPath0(path) {
  22712. var t1 = $.$get$context(),
  22713. partial = A.join(t1.dirname$1(path), "_" + A.ParsedPath_ParsedPath$parse(path, t1.style).get$basename(), null);
  22714. t1 = A._setArrayType([], type$.JSArray_String);
  22715. if (A.fileExists0(partial))
  22716. t1.push(partial);
  22717. if (A.fileExists0(path))
  22718. t1.push(path);
  22719. return t1;
  22720. },
  22721. _tryPathAsDirectory0(path) {
  22722. var t1;
  22723. if (!A.dirExists0(path))
  22724. return null;
  22725. t1 = A.fromImport0() ? new A._tryPathAsDirectory_closure0(path).call$0() : null;
  22726. return t1 == null ? A._exactlyOne0(A._tryPathWithExtensions0(A.join(path, "index", null))) : t1;
  22727. },
  22728. _exactlyOne0(paths) {
  22729. var t1 = paths.length;
  22730. if (t1 === 0)
  22731. return null;
  22732. if (t1 === 1)
  22733. return B.JSArray_methods.get$first(paths);
  22734. throw A.wrapException(string$.It_s_n + B.JSArray_methods.map$1$1(paths, new A._exactlyOne_closure0(), type$.String).join$1(0, "\n"));
  22735. },
  22736. resolveImportPath_closure1: function resolveImportPath_closure1(t0, t1) {
  22737. this.path = t0;
  22738. this.extension = t1;
  22739. },
  22740. resolveImportPath_closure2: function resolveImportPath_closure2(t0) {
  22741. this.path = t0;
  22742. },
  22743. _tryPathAsDirectory_closure0: function _tryPathAsDirectory_closure0(t0) {
  22744. this.path = t0;
  22745. },
  22746. _exactlyOne_closure0: function _exactlyOne_closure0() {
  22747. },
  22748. jsThrow(error) {
  22749. return type$.Never._as($.$get$_jsThrow().call$1(error));
  22750. },
  22751. attachJsStack(error, trace) {
  22752. var traceString = trace.toString$0(0),
  22753. firstRealLine = B.JSString_methods.indexOf$1(traceString, "\n at");
  22754. if (firstRealLine !== -1)
  22755. traceString = B.JSString_methods.substring$1(traceString, firstRealLine + 1);
  22756. error.stack = "Error: " + A.S(J.get$message$x(error)) + "\n" + traceString;
  22757. },
  22758. jsForEach(object, callback) {
  22759. var t1, t2;
  22760. for (t1 = J.get$iterator$ax(self.Object.keys(object)); t1.moveNext$0();) {
  22761. t2 = t1.get$current(t1);
  22762. callback.call$2(t2, object[t2]);
  22763. }
  22764. },
  22765. jsType(value) {
  22766. var typeOf = A._asString(new self.Function("value", "return typeof value").call$1(value));
  22767. return typeOf !== "object" ? typeOf : A._asString(new self.Function("value", ' if (value && value.constructor && value.constructor.name) {\n return value.constructor.name;\n }\n return "object";\n ').call$1(value));
  22768. },
  22769. defineGetter(object, $name, get, value) {
  22770. self.Object.defineProperty(object, $name, get == null ? {value: value, enumerable: false} : {get: A.allowInteropCaptureThis(get), enumerable: false});
  22771. },
  22772. allowInteropNamed($name, $function) {
  22773. $function = A.allowInterop($function);
  22774. A.defineGetter($function, "name", null, $name);
  22775. A._hideDartProperties($function);
  22776. return $function;
  22777. },
  22778. allowInteropCaptureThisNamed($name, $function) {
  22779. $function = A.allowInteropCaptureThis($function);
  22780. A.defineGetter($function, "name", null, $name);
  22781. A._hideDartProperties($function);
  22782. return $function;
  22783. },
  22784. _hideDartProperties(object) {
  22785. var t1, t2, t3, t4;
  22786. for (t1 = J.cast$1$0$ax(self.Object.getOwnPropertyNames(object), type$.String), t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) {
  22787. t3 = t1.__internal$_current;
  22788. if (t3 == null)
  22789. t3 = t2._as(t3);
  22790. if (B.JSString_methods.startsWith$1(t3, "_")) {
  22791. t4 = {value: object[t3], enumerable: false};
  22792. self.Object.defineProperty(object, t3, t4);
  22793. }
  22794. }
  22795. },
  22796. futureToPromise0(future) {
  22797. return new self.Promise(A.allowInterop(new A.futureToPromise_closure0(future)));
  22798. },
  22799. jsToDartUrl(url) {
  22800. return A.Uri_parse(J.toString$0$(url));
  22801. },
  22802. dartToJSUrl(url) {
  22803. return new self.URL(url.toString$0(0));
  22804. },
  22805. toJSArray(iterable) {
  22806. var t1, t2,
  22807. array = new self.Array();
  22808. for (t1 = J.get$iterator$ax(iterable), t2 = J.getInterceptor$x(array); t1.moveNext$0();)
  22809. t2.push$1(array, t1.get$current(t1));
  22810. return array;
  22811. },
  22812. objectToMap(object) {
  22813. var map = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.nullable_Object);
  22814. A.jsForEach(object, new A.objectToMap_closure(map));
  22815. return map;
  22816. },
  22817. jsToDartSeparator(separator) {
  22818. switch (separator) {
  22819. case " ":
  22820. return B.ListSeparator_EVt0;
  22821. case ",":
  22822. return B.ListSeparator_rXA0;
  22823. case "/":
  22824. return B.ListSeparator_zg90;
  22825. case null:
  22826. return B.ListSeparator_undecided_null_undecided0;
  22827. default:
  22828. A.jsThrow(new self.Error('Unknown separator "' + A.S(separator) + '".'));
  22829. }
  22830. },
  22831. parseSyntax(syntax) {
  22832. if (syntax == null || syntax === "scss")
  22833. return B.Syntax_SCSS_scss0;
  22834. if (syntax === "indented")
  22835. return B.Syntax_Sass_sass0;
  22836. if (syntax === "css")
  22837. return B.Syntax_CSS_css0;
  22838. A.jsThrow(new self.Error('Unknown syntax "' + A.S(syntax) + '".'));
  22839. },
  22840. _PropertyDescriptor0: function _PropertyDescriptor0() {
  22841. },
  22842. futureToPromise_closure0: function futureToPromise_closure0(t0) {
  22843. this.future = t0;
  22844. },
  22845. futureToPromise__closure0: function futureToPromise__closure0(t0) {
  22846. this.resolve = t0;
  22847. },
  22848. futureToPromise__closure1: function futureToPromise__closure1(t0) {
  22849. this.reject = t0;
  22850. },
  22851. objectToMap_closure: function objectToMap_closure(t0) {
  22852. this.map = t0;
  22853. },
  22854. toSentence0(iter, conjunction) {
  22855. var t1 = iter.__internal$_iterable,
  22856. t2 = J.getInterceptor$asx(t1);
  22857. if (t2.get$length(t1) === 1)
  22858. return J.toString$0$(iter._f.call$1(t2.get$first(t1)));
  22859. return A.IterableExtension_get_exceptLast0(iter).join$1(0, ", ") + (" " + conjunction + " " + A.S(iter._f.call$1(t2.get$last(t1))));
  22860. },
  22861. indent0(string, indentation) {
  22862. return new A.MappedListIterable(A._setArrayType(string.split("\n"), type$.JSArray_String), new A.indent_closure0(indentation), type$.MappedListIterable_String_String).join$1(0, "\n");
  22863. },
  22864. pluralize0($name, number, plural) {
  22865. if (number === 1)
  22866. return $name;
  22867. if (plural != null)
  22868. return plural;
  22869. return $name + "s";
  22870. },
  22871. trimAscii0(string, excludeEscape) {
  22872. var t1,
  22873. start = A._firstNonWhitespace0(string);
  22874. if (start == null)
  22875. t1 = "";
  22876. else {
  22877. t1 = A._lastNonWhitespace0(string, true);
  22878. t1.toString;
  22879. t1 = B.JSString_methods.substring$2(string, start, t1 + 1);
  22880. }
  22881. return t1;
  22882. },
  22883. trimAsciiRight0(string, excludeEscape) {
  22884. var end = A._lastNonWhitespace0(string, excludeEscape);
  22885. return end == null ? "" : B.JSString_methods.substring$2(string, 0, end + 1);
  22886. },
  22887. _firstNonWhitespace0(string) {
  22888. var t1, i, t2;
  22889. for (t1 = string.length, i = 0; i < t1; ++i) {
  22890. t2 = B.JSString_methods._codeUnitAt$1(string, i);
  22891. if (!(t2 === 32 || t2 === 9 || t2 === 10 || t2 === 13 || t2 === 12))
  22892. return i;
  22893. }
  22894. return null;
  22895. },
  22896. _lastNonWhitespace0(string, excludeEscape) {
  22897. var t1, i, codeUnit;
  22898. for (t1 = string.length, i = t1 - 1; i >= 0; --i) {
  22899. codeUnit = B.JSString_methods.codeUnitAt$1(string, i);
  22900. if (!(codeUnit === 32 || codeUnit === 9 || codeUnit === 10 || codeUnit === 13 || codeUnit === 12))
  22901. if (excludeEscape && i !== 0 && i !== t1 && codeUnit === 92)
  22902. return i + 1;
  22903. else
  22904. return i;
  22905. }
  22906. return null;
  22907. },
  22908. isPublic0(member) {
  22909. var start = B.JSString_methods._codeUnitAt$1(member, 0);
  22910. return start !== 45 && start !== 95;
  22911. },
  22912. flattenVertically0(iterable, $T) {
  22913. var result,
  22914. t1 = iterable.$ti._eval$1("@<ListIterable.E>")._bind$1($T._eval$1("QueueList<0>"))._eval$1("MappedListIterable<1,2>"),
  22915. queues = A.List_List$of(new A.MappedListIterable(iterable, new A.flattenVertically_closure1($T), t1), true, t1._eval$1("ListIterable.E"));
  22916. if (queues.length === 1)
  22917. return B.JSArray_methods.get$first(queues);
  22918. result = A._setArrayType([], $T._eval$1("JSArray<0>"));
  22919. for (; queues.length !== 0;) {
  22920. if (!!queues.fixed$length)
  22921. A.throwExpression(A.UnsupportedError$("removeWhere"));
  22922. B.JSArray_methods._removeWhere$2(queues, new A.flattenVertically_closure2(result, $T), true);
  22923. }
  22924. return result;
  22925. },
  22926. firstOrNull0(iterable) {
  22927. var iterator = J.get$iterator$ax(iterable);
  22928. return iterator.moveNext$0() ? iterator.get$current(iterator) : null;
  22929. },
  22930. codepointIndexToCodeUnitIndex0(string, codepointIndex) {
  22931. var codeUnitIndex, i, codeUnitIndex0;
  22932. for (codeUnitIndex = 0, i = 0; i < codepointIndex; ++i) {
  22933. codeUnitIndex0 = codeUnitIndex + 1;
  22934. codeUnitIndex = B.JSString_methods._codeUnitAt$1(string, codeUnitIndex) >>> 10 === 54 ? codeUnitIndex0 + 1 : codeUnitIndex0;
  22935. }
  22936. return codeUnitIndex;
  22937. },
  22938. codeUnitIndexToCodepointIndex0(string, codeUnitIndex) {
  22939. var codepointIndex, i;
  22940. for (codepointIndex = 0, i = 0; i < codeUnitIndex; i = (B.JSString_methods._codeUnitAt$1(string, i) >>> 10 === 54 ? i + 1 : i) + 1)
  22941. ++codepointIndex;
  22942. return codepointIndex;
  22943. },
  22944. frameForSpan0(span, member, url) {
  22945. var t2, t3,
  22946. t1 = url == null ? span.get$sourceUrl(span) : url;
  22947. if (t1 == null)
  22948. t1 = $.$get$_noSourceUrl0();
  22949. t2 = span.get$start(span);
  22950. t2 = t2.file.getLine$1(t2.offset);
  22951. t3 = span.get$start(span);
  22952. return new A.Frame(t1, t2 + 1, t3.file.getColumn$1(t3.offset) + 1, member);
  22953. },
  22954. declarationName0(span) {
  22955. var text = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(span.file._decodedChars, span._file$_start, span._end), 0, null);
  22956. return A.trimAsciiRight0(B.JSString_methods.substring$2(text, 0, B.JSString_methods.indexOf$1(text, ":")), false);
  22957. },
  22958. unvendor0($name) {
  22959. var i,
  22960. t1 = $name.length;
  22961. if (t1 < 2)
  22962. return $name;
  22963. if (B.JSString_methods._codeUnitAt$1($name, 0) !== 45)
  22964. return $name;
  22965. if (B.JSString_methods._codeUnitAt$1($name, 1) === 45)
  22966. return $name;
  22967. for (i = 2; i < t1; ++i)
  22968. if (B.JSString_methods._codeUnitAt$1($name, i) === 45)
  22969. return B.JSString_methods.substring$1($name, i + 1);
  22970. return $name;
  22971. },
  22972. equalsIgnoreCase0(string1, string2) {
  22973. var t1, i;
  22974. if (string1 === string2)
  22975. return true;
  22976. if (string1 == null || false)
  22977. return false;
  22978. t1 = string1.length;
  22979. if (t1 !== string2.length)
  22980. return false;
  22981. for (i = 0; i < t1; ++i)
  22982. if (!A.characterEqualsIgnoreCase0(B.JSString_methods._codeUnitAt$1(string1, i), B.JSString_methods._codeUnitAt$1(string2, i)))
  22983. return false;
  22984. return true;
  22985. },
  22986. startsWithIgnoreCase0(string, prefix) {
  22987. var i,
  22988. t1 = prefix.length;
  22989. if (string.length < t1)
  22990. return false;
  22991. for (i = 0; i < t1; ++i)
  22992. if (!A.characterEqualsIgnoreCase0(B.JSString_methods._codeUnitAt$1(string, i), B.JSString_methods._codeUnitAt$1(prefix, i)))
  22993. return false;
  22994. return true;
  22995. },
  22996. mapInPlace0(list, $function) {
  22997. var i;
  22998. for (i = 0; i < list.length; ++i)
  22999. list[i] = $function.call$1(list[i]);
  23000. },
  23001. longestCommonSubsequence0(list1, list2, select, $T) {
  23002. var t1, _i, selections, i, i0, j, selection, j0,
  23003. _length = list1.get$length(list1) + 1,
  23004. lengths = J.JSArray_JSArray$allocateFixed(_length, type$.List_int);
  23005. for (t1 = type$.int, _i = 0; _i < _length; ++_i)
  23006. lengths[_i] = A.List_List$filled(((list2._tail - list2._head & J.get$length$asx(list2._table) - 1) >>> 0) + 1, 0, false, t1);
  23007. _length = list1.get$length(list1);
  23008. selections = J.JSArray_JSArray$allocateFixed(_length, $T._eval$1("List<0?>"));
  23009. for (t1 = $T._eval$1("0?"), _i = 0; _i < _length; ++_i)
  23010. selections[_i] = A.List_List$filled((list2._tail - list2._head & J.get$length$asx(list2._table) - 1) >>> 0, null, false, t1);
  23011. for (i = 0; i < (list1._tail - list1._head & J.get$length$asx(list1._table) - 1) >>> 0; i = i0)
  23012. for (i0 = i + 1, j = 0; j < (list2._tail - list2._head & J.get$length$asx(list2._table) - 1) >>> 0; j = j0) {
  23013. selection = select.call$2(list1.$index(0, i), list2.$index(0, j));
  23014. selections[i][j] = selection;
  23015. t1 = lengths[i0];
  23016. j0 = j + 1;
  23017. t1[j0] = selection == null ? Math.max(t1[j], lengths[i][j0]) : lengths[i][j] + 1;
  23018. }
  23019. return new A.longestCommonSubsequence_backtrack0(selections, lengths, $T).call$2(list1.get$length(list1) - 1, list2.get$length(list2) - 1);
  23020. },
  23021. removeFirstWhere0(list, test, orElse) {
  23022. var i;
  23023. for (i = 0; i < list.length; ++i) {
  23024. if (!test.call$1(list[i]))
  23025. continue;
  23026. B.JSArray_methods.removeAt$1(list, i);
  23027. return;
  23028. }
  23029. orElse.call$0();
  23030. },
  23031. mapAddAll20(destination, source, K1, K2, $V) {
  23032. source.forEach$1(0, new A.mapAddAll2_closure0(destination, K1, K2, $V));
  23033. },
  23034. setAll0(map, keys, value) {
  23035. var t1;
  23036. for (t1 = J.get$iterator$ax(keys); t1.moveNext$0();)
  23037. map.$indexSet(0, t1.get$current(t1), value);
  23038. },
  23039. rotateSlice0(list, start, end) {
  23040. var i, next,
  23041. element = list.$index(0, end - 1);
  23042. for (i = start; i < end; ++i, element = next) {
  23043. next = list.$index(0, i);
  23044. list.$indexSet(0, i, element);
  23045. }
  23046. },
  23047. mapAsync0(iterable, callback, $E, $F) {
  23048. return A.mapAsync$body0(iterable, callback, $E, $F, $F._eval$1("Iterable<0>"));
  23049. },
  23050. mapAsync$body0(iterable, callback, $E, $F, $async$type) {
  23051. var $async$goto = 0,
  23052. $async$completer = A._makeAsyncAwaitCompleter($async$type),
  23053. $async$returnValue, t2, _i, t1, $async$temp1;
  23054. var $async$mapAsync0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  23055. if ($async$errorCode === 1)
  23056. return A._asyncRethrow($async$result, $async$completer);
  23057. while (true)
  23058. switch ($async$goto) {
  23059. case 0:
  23060. // Function start
  23061. t1 = A._setArrayType([], $F._eval$1("JSArray<0>"));
  23062. t2 = iterable.length, _i = 0;
  23063. case 3:
  23064. // for condition
  23065. if (!(_i < t2)) {
  23066. // goto after for
  23067. $async$goto = 5;
  23068. break;
  23069. }
  23070. $async$temp1 = t1;
  23071. $async$goto = 6;
  23072. return A._asyncAwait(callback.call$1(iterable[_i]), $async$mapAsync0);
  23073. case 6:
  23074. // returning from await.
  23075. $async$temp1.push($async$result);
  23076. case 4:
  23077. // for update
  23078. ++_i;
  23079. // goto for condition
  23080. $async$goto = 3;
  23081. break;
  23082. case 5:
  23083. // after for
  23084. $async$returnValue = t1;
  23085. // goto return
  23086. $async$goto = 1;
  23087. break;
  23088. case 1:
  23089. // return
  23090. return A._asyncReturn($async$returnValue, $async$completer);
  23091. }
  23092. });
  23093. return A._asyncStartSync($async$mapAsync0, $async$completer);
  23094. },
  23095. putIfAbsentAsync0(map, key, ifAbsent, $K, $V) {
  23096. return A.putIfAbsentAsync$body0(map, key, ifAbsent, $K, $V, $V);
  23097. },
  23098. putIfAbsentAsync$body0(map, key, ifAbsent, $K, $V, $async$type) {
  23099. var $async$goto = 0,
  23100. $async$completer = A._makeAsyncAwaitCompleter($async$type),
  23101. $async$returnValue, t1, value;
  23102. var $async$putIfAbsentAsync0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  23103. if ($async$errorCode === 1)
  23104. return A._asyncRethrow($async$result, $async$completer);
  23105. while (true)
  23106. switch ($async$goto) {
  23107. case 0:
  23108. // Function start
  23109. if (map.containsKey$1(key)) {
  23110. t1 = map.$index(0, key);
  23111. $async$returnValue = t1 == null ? $V._as(t1) : t1;
  23112. // goto return
  23113. $async$goto = 1;
  23114. break;
  23115. }
  23116. $async$goto = 3;
  23117. return A._asyncAwait(ifAbsent.call$0(), $async$putIfAbsentAsync0);
  23118. case 3:
  23119. // returning from await.
  23120. value = $async$result;
  23121. map.$indexSet(0, key, value);
  23122. $async$returnValue = value;
  23123. // goto return
  23124. $async$goto = 1;
  23125. break;
  23126. case 1:
  23127. // return
  23128. return A._asyncReturn($async$returnValue, $async$completer);
  23129. }
  23130. });
  23131. return A._asyncStartSync($async$putIfAbsentAsync0, $async$completer);
  23132. },
  23133. copyMapOfMap0(map, K1, K2, $V) {
  23134. var t2, t3, t4, t5,
  23135. t1 = A.LinkedHashMap_LinkedHashMap$_empty(K1, K2._eval$1("@<0>")._bind$1($V)._eval$1("Map<1,2>"));
  23136. for (t2 = map.get$entries(map), t2 = t2.get$iterator(t2); t2.moveNext$0();) {
  23137. t3 = t2.get$current(t2);
  23138. t4 = t3.key;
  23139. t3 = t3.value;
  23140. t5 = A.LinkedHashMap_LinkedHashMap(null, null, null, K2, $V);
  23141. t5.addAll$1(0, t3);
  23142. t1.$indexSet(0, t4, t5);
  23143. }
  23144. return t1;
  23145. },
  23146. copyMapOfList0(map, $K, $E) {
  23147. var t2, t3,
  23148. t1 = A.LinkedHashMap_LinkedHashMap$_empty($K, $E._eval$1("List<0>"));
  23149. for (t2 = map.get$entries(map), t2 = t2.get$iterator(t2); t2.moveNext$0();) {
  23150. t3 = t2.get$current(t2);
  23151. t1.$indexSet(0, t3.key, J.toList$0$ax(t3.value));
  23152. }
  23153. return t1;
  23154. },
  23155. consumeEscapedCharacter0(scanner) {
  23156. var first, value, i, next, t1;
  23157. scanner.expectChar$1(92);
  23158. first = scanner.peekChar$0();
  23159. if (first == null)
  23160. return 65533;
  23161. else if (first === 10 || first === 13 || first === 12)
  23162. scanner.error$1(0, "Expected escape sequence.");
  23163. else if (A.isHex0(first)) {
  23164. for (value = 0, i = 0; i < 6; ++i) {
  23165. next = scanner.peekChar$0();
  23166. if (next == null || !A.isHex0(next))
  23167. break;
  23168. value = (value << 4 >>> 0) + A.asHex0(scanner.readChar$0());
  23169. }
  23170. t1 = scanner.peekChar$0();
  23171. if (t1 === 32 || t1 === 9 || t1 === 10 || t1 === 13 || t1 === 12)
  23172. scanner.readChar$0();
  23173. if (value !== 0)
  23174. t1 = value >= 55296 && value <= 57343 || value >= 1114111;
  23175. else
  23176. t1 = true;
  23177. if (t1)
  23178. return 65533;
  23179. else
  23180. return value;
  23181. } else
  23182. return scanner.readChar$0();
  23183. },
  23184. throwWithTrace0(error, trace) {
  23185. A.attachTrace0(error, trace);
  23186. throw A.wrapException(error);
  23187. },
  23188. attachTrace0(error, trace) {
  23189. var t1;
  23190. if (typeof error == "string" || typeof error == "number" || A._isBool(error))
  23191. return;
  23192. if (trace.toString$0(0).length === 0)
  23193. return;
  23194. t1 = $.$get$_traces0();
  23195. A.Expando__checkType(error);
  23196. t1 = t1._jsWeakMap;
  23197. if (t1.get(error) == null)
  23198. t1.set(error, trace);
  23199. },
  23200. getTrace0(error) {
  23201. var t1;
  23202. if (typeof error == "string" || typeof error == "number" || A._isBool(error))
  23203. t1 = null;
  23204. else {
  23205. t1 = $.$get$_traces0();
  23206. A.Expando__checkType(error);
  23207. t1 = t1._jsWeakMap.get(error);
  23208. }
  23209. return t1;
  23210. },
  23211. IterableExtension_get_exceptLast0(_this) {
  23212. var t1 = J.getInterceptor$asx(_this),
  23213. size = t1.get$length(_this) - 1;
  23214. if (size < 0)
  23215. throw A.wrapException(A.StateError$("Iterable may not be empty"));
  23216. return t1.take$1(_this, size);
  23217. },
  23218. parseSignature(signature, requireParens) {
  23219. var error, stackTrace, t1, exception, t2;
  23220. try {
  23221. t1 = A.ScssParser$0(signature, null, null).parseSignature$1$requireParens(requireParens);
  23222. return t1;
  23223. } catch (exception) {
  23224. t1 = A.unwrapException(exception);
  23225. if (t1 instanceof A.SassFormatException0) {
  23226. error = t1;
  23227. stackTrace = A.getTraceFromException(exception);
  23228. t1 = error;
  23229. t2 = J.getInterceptor$z(t1);
  23230. A.throwWithTrace0(new A.SassFormatException0('Invalid signature "' + signature + '": ' + error._span_exception$_message, A.SourceSpanException.prototype.get$span.call(t2, t1)), stackTrace);
  23231. } else
  23232. throw exception;
  23233. }
  23234. },
  23235. indent_closure0: function indent_closure0(t0) {
  23236. this.indentation = t0;
  23237. },
  23238. flattenVertically_closure1: function flattenVertically_closure1(t0) {
  23239. this.T = t0;
  23240. },
  23241. flattenVertically_closure2: function flattenVertically_closure2(t0, t1) {
  23242. this.result = t0;
  23243. this.T = t1;
  23244. },
  23245. longestCommonSubsequence_backtrack0: function longestCommonSubsequence_backtrack0(t0, t1, t2) {
  23246. this.selections = t0;
  23247. this.lengths = t1;
  23248. this.T = t2;
  23249. },
  23250. mapAddAll2_closure0: function mapAddAll2_closure0(t0, t1, t2, t3) {
  23251. var _ = this;
  23252. _.destination = t0;
  23253. _.K1 = t1;
  23254. _.K2 = t2;
  23255. _.V = t3;
  23256. },
  23257. CssValue0: function CssValue0(t0, t1, t2) {
  23258. this.value = t0;
  23259. this.span = t1;
  23260. this.$ti = t2;
  23261. },
  23262. ValueExpression0: function ValueExpression0(t0, t1) {
  23263. this.value = t0;
  23264. this.span = t1;
  23265. },
  23266. ModifiableCssValue0: function ModifiableCssValue0(t0, t1, t2) {
  23267. this.value = t0;
  23268. this.span = t1;
  23269. this.$ti = t2;
  23270. },
  23271. valueClass_closure: function valueClass_closure() {
  23272. },
  23273. valueClass__closure: function valueClass__closure() {
  23274. },
  23275. valueClass__closure0: function valueClass__closure0() {
  23276. },
  23277. valueClass__closure1: function valueClass__closure1() {
  23278. },
  23279. valueClass__closure2: function valueClass__closure2() {
  23280. },
  23281. valueClass__closure3: function valueClass__closure3() {
  23282. },
  23283. valueClass__closure4: function valueClass__closure4() {
  23284. },
  23285. valueClass__closure5: function valueClass__closure5() {
  23286. },
  23287. valueClass__closure6: function valueClass__closure6() {
  23288. },
  23289. valueClass__closure7: function valueClass__closure7() {
  23290. },
  23291. valueClass__closure8: function valueClass__closure8() {
  23292. },
  23293. valueClass__closure9: function valueClass__closure9() {
  23294. },
  23295. valueClass__closure10: function valueClass__closure10() {
  23296. },
  23297. valueClass__closure11: function valueClass__closure11() {
  23298. },
  23299. valueClass__closure12: function valueClass__closure12() {
  23300. },
  23301. valueClass__closure13: function valueClass__closure13() {
  23302. },
  23303. valueClass__closure14: function valueClass__closure14() {
  23304. },
  23305. valueClass__closure15: function valueClass__closure15() {
  23306. },
  23307. valueClass__closure16: function valueClass__closure16() {
  23308. },
  23309. SassApiValue_assertSelector0(_this, allowParent, $name) {
  23310. var error, stackTrace, t1, exception,
  23311. string = _this._value$_selectorString$1($name);
  23312. try {
  23313. t1 = A.SelectorList_SelectorList$parse0(string, allowParent, true, null);
  23314. return t1;
  23315. } catch (exception) {
  23316. t1 = A.unwrapException(exception);
  23317. if (t1 instanceof A.SassFormatException0) {
  23318. error = t1;
  23319. stackTrace = A.getTraceFromException(exception);
  23320. t1 = B.JSString_methods.replaceFirst$2(J.toString$0$(error), "Error: ", "");
  23321. A.throwWithTrace0(new A.SassScriptException0($name == null ? t1 : "$" + $name + ": " + t1), stackTrace);
  23322. } else
  23323. throw exception;
  23324. }
  23325. },
  23326. SassApiValue_assertCompoundSelector0(_this, $name) {
  23327. var error, stackTrace, t1, exception,
  23328. allowParent = false,
  23329. string = _this._value$_selectorString$1($name);
  23330. try {
  23331. t1 = A.SelectorParser$0(string, allowParent, true, null, null).parseCompoundSelector$0();
  23332. return t1;
  23333. } catch (exception) {
  23334. t1 = A.unwrapException(exception);
  23335. if (t1 instanceof A.SassFormatException0) {
  23336. error = t1;
  23337. stackTrace = A.getTraceFromException(exception);
  23338. t1 = B.JSString_methods.replaceFirst$2(J.toString$0$(error), "Error: ", "");
  23339. A.throwWithTrace0(new A.SassScriptException0("$" + $name + ": " + t1), stackTrace);
  23340. } else
  23341. throw exception;
  23342. }
  23343. },
  23344. Value0: function Value0() {
  23345. },
  23346. VariableExpression0: function VariableExpression0(t0, t1, t2) {
  23347. this.namespace = t0;
  23348. this.name = t1;
  23349. this.span = t2;
  23350. },
  23351. VariableDeclaration$0($name, expression, span, comment, global, guarded, namespace) {
  23352. if (namespace != null && global)
  23353. A.throwExpression(A.ArgumentError$(string$.Other_, null));
  23354. return new A.VariableDeclaration0(namespace, $name, expression, guarded, global, span);
  23355. },
  23356. VariableDeclaration0: function VariableDeclaration0(t0, t1, t2, t3, t4, t5) {
  23357. var _ = this;
  23358. _.namespace = t0;
  23359. _.name = t1;
  23360. _.expression = t2;
  23361. _.isGuarded = t3;
  23362. _.isGlobal = t4;
  23363. _.span = t5;
  23364. },
  23365. WarnRule0: function WarnRule0(t0, t1) {
  23366. this.expression = t0;
  23367. this.span = t1;
  23368. },
  23369. WhileRule$0(condition, children, span) {
  23370. var t1 = A.List_List$unmodifiable(children, type$.Statement_2),
  23371. t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure0());
  23372. return new A.WhileRule0(condition, span, t1, t2);
  23373. },
  23374. WhileRule0: function WhileRule0(t0, t1, t2, t3) {
  23375. var _ = this;
  23376. _.condition = t0;
  23377. _.span = t1;
  23378. _.children = t2;
  23379. _.hasDeclarations = t3;
  23380. },
  23381. AsyncCallable_AsyncCallable$fromSignature(signature, callback, requireParens) {
  23382. var tuple = A.parseSignature(signature, requireParens);
  23383. return new A.AsyncBuiltInCallable0(tuple.item1, tuple.item2, callback);
  23384. },
  23385. Callable_Callable$fromSignature(signature, callback, requireParens) {
  23386. var tuple = A.parseSignature(signature, requireParens);
  23387. return new A.BuiltInCallable0(tuple.item1, A._setArrayType([new A.Tuple2(tuple.item2, callback, type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2)], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2));
  23388. },
  23389. printString(string) {
  23390. if (typeof dartPrint == "function") {
  23391. dartPrint(string);
  23392. return;
  23393. }
  23394. if (typeof console == "object" && typeof console.log != "undefined") {
  23395. console.log(string);
  23396. return;
  23397. }
  23398. if (typeof window == "object")
  23399. return;
  23400. if (typeof print == "function") {
  23401. print(string);
  23402. return;
  23403. }
  23404. throw "Unable to print message: " + String(string);
  23405. },
  23406. _convertDartFunctionFast(f) {
  23407. var ret,
  23408. existing = f.$dart_jsFunction;
  23409. if (existing != null)
  23410. return existing;
  23411. ret = function(_call, f) {
  23412. return function() {
  23413. return _call(f, Array.prototype.slice.apply(arguments));
  23414. };
  23415. }(A._callDartFunctionFast, f);
  23416. ret[$.$get$DART_CLOSURE_PROPERTY_NAME()] = f;
  23417. f.$dart_jsFunction = ret;
  23418. return ret;
  23419. },
  23420. _convertDartFunctionFastCaptureThis(f) {
  23421. var ret,
  23422. existing = f._$dart_jsFunctionCaptureThis;
  23423. if (existing != null)
  23424. return existing;
  23425. ret = function(_call, f) {
  23426. return function() {
  23427. return _call(f, this, Array.prototype.slice.apply(arguments));
  23428. };
  23429. }(A._callDartFunctionFastCaptureThis, f);
  23430. ret[$.$get$DART_CLOSURE_PROPERTY_NAME()] = f;
  23431. f._$dart_jsFunctionCaptureThis = ret;
  23432. return ret;
  23433. },
  23434. _callDartFunctionFast(callback, $arguments) {
  23435. return A.Function_apply(callback, $arguments);
  23436. },
  23437. _callDartFunctionFastCaptureThis(callback, $self, $arguments) {
  23438. var t1 = [$self];
  23439. B.JSArray_methods.addAll$1(t1, $arguments);
  23440. return A.Function_apply(callback, t1);
  23441. },
  23442. allowInterop(f) {
  23443. if (typeof f == "function")
  23444. return f;
  23445. else
  23446. return A._convertDartFunctionFast(f);
  23447. },
  23448. allowInteropCaptureThis(f) {
  23449. if (typeof f == "function")
  23450. throw A.wrapException(A.ArgumentError$("Function is already a JS function so cannot capture this.", null));
  23451. else
  23452. return A._convertDartFunctionFastCaptureThis(f);
  23453. },
  23454. mergeMaps(map1, map2, $K, $V) {
  23455. var result = A.LinkedHashMap_LinkedHashMap$of(map1, $K, $V);
  23456. result.addAll$1(0, map2);
  23457. return result;
  23458. },
  23459. groupBy(values, key, $S, $T) {
  23460. var t1, t2, _i, element, t3, t4,
  23461. map = A.LinkedHashMap_LinkedHashMap$_empty($T, $S._eval$1("List<0>"));
  23462. for (t1 = values.length, t2 = $S._eval$1("JSArray<0>"), _i = 0; _i < values.length; values.length === t1 || (0, A.throwConcurrentModificationError)(values), ++_i) {
  23463. element = values[_i];
  23464. t3 = key.call$1(element);
  23465. t4 = map.$index(0, t3);
  23466. if (t4 == null) {
  23467. t4 = A._setArrayType([], t2);
  23468. map.$indexSet(0, t3, t4);
  23469. t3 = t4;
  23470. } else
  23471. t3 = t4;
  23472. J.add$1$ax(t3, element);
  23473. }
  23474. return map;
  23475. },
  23476. minBy(values, orderBy) {
  23477. var t1, t2, minValue, minOrderBy, element, elementOrderBy;
  23478. for (t1 = new A.MappedIterator(J.get$iterator$ax(values.__internal$_iterable), values._f), t2 = A._instanceType(t1)._rest[1], minValue = null, minOrderBy = null; t1.moveNext$0();) {
  23479. element = t1.__internal$_current;
  23480. if (element == null)
  23481. element = t2._as(element);
  23482. elementOrderBy = orderBy.call$1(element);
  23483. if (minOrderBy == null || A.defaultCompare(elementOrderBy, minOrderBy) < 0) {
  23484. minOrderBy = elementOrderBy;
  23485. minValue = element;
  23486. }
  23487. }
  23488. return minValue;
  23489. },
  23490. IterableExtension_get_firstOrNull(_this) {
  23491. var t1,
  23492. iterator = new J.ArrayIterator(_this, _this.length);
  23493. if (iterator.moveNext$0()) {
  23494. t1 = iterator._current;
  23495. return t1 == null ? A._instanceType(iterator)._precomputed1._as(t1) : t1;
  23496. }
  23497. return null;
  23498. },
  23499. IterableNullableExtension_whereNotNull(_this, $T) {
  23500. return A.IterableNullableExtension_whereNotNull$body(_this, $T, $T);
  23501. },
  23502. IterableNullableExtension_whereNotNull$body($async$_this, $async$$T, $async$type) {
  23503. return A._makeSyncStarIterable(function() {
  23504. var _this = $async$_this,
  23505. $T = $async$$T;
  23506. var $async$goto = 0, $async$handler = 1, $async$currentError, t1, element;
  23507. return function $async$IterableNullableExtension_whereNotNull($async$errorCode, $async$result) {
  23508. if ($async$errorCode === 1) {
  23509. $async$currentError = $async$result;
  23510. $async$goto = $async$handler;
  23511. }
  23512. while (true)
  23513. switch ($async$goto) {
  23514. case 0:
  23515. // Function start
  23516. t1 = _this.get$iterator(_this);
  23517. case 2:
  23518. // for condition
  23519. if (!t1.moveNext$0()) {
  23520. // goto after for
  23521. $async$goto = 3;
  23522. break;
  23523. }
  23524. element = t1.get$current(t1);
  23525. $async$goto = element != null ? 4 : 5;
  23526. break;
  23527. case 4:
  23528. // then
  23529. $async$goto = 6;
  23530. return element;
  23531. case 6:
  23532. // after yield
  23533. case 5:
  23534. // join
  23535. // goto for condition
  23536. $async$goto = 2;
  23537. break;
  23538. case 3:
  23539. // after for
  23540. // implicit return
  23541. return A._IterationMarker_endOfIteration();
  23542. case 1:
  23543. // rethrow
  23544. return A._IterationMarker_uncaughtError($async$currentError);
  23545. }
  23546. };
  23547. }, $async$type);
  23548. },
  23549. IterableIntegerExtension_get_maxOrNull(_this) {
  23550. var value, t1, newValue,
  23551. iterator = new A.ListIterator(_this, _this.get$length(_this));
  23552. if (iterator.moveNext$0()) {
  23553. value = iterator.__internal$_current;
  23554. if (value == null)
  23555. value = A._instanceType(iterator)._precomputed1._as(value);
  23556. for (t1 = A._instanceType(iterator)._precomputed1; iterator.moveNext$0();) {
  23557. newValue = iterator.__internal$_current;
  23558. if (newValue == null)
  23559. newValue = t1._as(newValue);
  23560. if (newValue > value)
  23561. value = newValue;
  23562. }
  23563. return value;
  23564. }
  23565. return null;
  23566. },
  23567. IterableIntegerExtension_get_max(_this) {
  23568. var t1 = A.IterableIntegerExtension_get_maxOrNull(_this);
  23569. return t1 == null ? A.throwExpression(A.StateError$("No element")) : t1;
  23570. },
  23571. IterableIntegerExtension_get_sum(_this) {
  23572. var t1, t2, result, t3;
  23573. for (t1 = new A.MappedIterator(J.get$iterator$ax(_this.__internal$_iterable), _this._f), t2 = A._instanceType(t1)._rest[1], result = 0; t1.moveNext$0();) {
  23574. t3 = t1.__internal$_current;
  23575. result += t3 == null ? t2._as(t3) : t3;
  23576. }
  23577. return result;
  23578. },
  23579. ListExtensions_mapIndexed(_this, convert, $E, $R) {
  23580. return A.ListExtensions_mapIndexed$body(_this, convert, $E, $R, $R);
  23581. },
  23582. ListExtensions_mapIndexed$body($async$_this, $async$convert, $async$$E, $async$$R, $async$type) {
  23583. return A._makeSyncStarIterable(function() {
  23584. var _this = $async$_this,
  23585. convert = $async$convert,
  23586. $E = $async$$E,
  23587. $R = $async$$R;
  23588. var $async$goto = 0, $async$handler = 1, $async$currentError, t1, index;
  23589. return function $async$ListExtensions_mapIndexed($async$errorCode, $async$result) {
  23590. if ($async$errorCode === 1) {
  23591. $async$currentError = $async$result;
  23592. $async$goto = $async$handler;
  23593. }
  23594. while (true)
  23595. switch ($async$goto) {
  23596. case 0:
  23597. // Function start
  23598. t1 = _this.length, index = 0;
  23599. case 2:
  23600. // for condition
  23601. if (!(index < t1)) {
  23602. // goto after for
  23603. $async$goto = 4;
  23604. break;
  23605. }
  23606. $async$goto = 5;
  23607. return convert.call$2(index, _this[index]);
  23608. case 5:
  23609. // after yield
  23610. case 3:
  23611. // for update
  23612. ++index;
  23613. // goto for condition
  23614. $async$goto = 2;
  23615. break;
  23616. case 4:
  23617. // after for
  23618. // implicit return
  23619. return A._IterationMarker_endOfIteration();
  23620. case 1:
  23621. // rethrow
  23622. return A._IterationMarker_uncaughtError($async$currentError);
  23623. }
  23624. };
  23625. }, $async$type);
  23626. },
  23627. defaultCompare(value1, value2) {
  23628. return J.compareTo$1$ns(type$.Comparable_nullable_Object._as(value1), value2);
  23629. },
  23630. current() {
  23631. var exception, t1, path, lastIndex, uri = null;
  23632. try {
  23633. uri = A.Uri_base();
  23634. } catch (exception) {
  23635. if (type$.Exception._is(A.unwrapException(exception))) {
  23636. t1 = $._current;
  23637. if (t1 != null)
  23638. return t1;
  23639. throw exception;
  23640. } else
  23641. throw exception;
  23642. }
  23643. if (J.$eq$(uri, $._currentUriBase)) {
  23644. t1 = $._current;
  23645. t1.toString;
  23646. return t1;
  23647. }
  23648. $._currentUriBase = uri;
  23649. if ($.$get$Style_platform() == $.$get$Style_url())
  23650. t1 = $._current = uri.resolve$1(".").toString$0(0);
  23651. else {
  23652. path = uri.toFilePath$0();
  23653. lastIndex = path.length - 1;
  23654. t1 = $._current = lastIndex === 0 ? path : B.JSString_methods.substring$2(path, 0, lastIndex);
  23655. }
  23656. return t1;
  23657. },
  23658. absolute(part1, part2, part3, part4, part5, part6, part7, part8, part9, part10, part11, part12, part13, part14, part15) {
  23659. return $.$get$context().absolute$15(part1, part2, part3, part4, part5, part6, part7, part8, part9, part10, part11, part12, part13, part14, part15);
  23660. },
  23661. join(part1, part2, part3) {
  23662. var _null = null;
  23663. return $.$get$context().join$16(0, part1, part2, part3, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null);
  23664. },
  23665. prettyUri(uri) {
  23666. return $.$get$context().prettyUri$1(uri);
  23667. },
  23668. isAlphabetic(char) {
  23669. var t1;
  23670. if (!(char >= 65 && char <= 90))
  23671. t1 = char >= 97 && char <= 122;
  23672. else
  23673. t1 = true;
  23674. return t1;
  23675. },
  23676. isDriveLetter(path, index) {
  23677. var t1 = path.length,
  23678. t2 = index + 2;
  23679. if (t1 < t2)
  23680. return false;
  23681. if (!A.isAlphabetic(B.JSString_methods.codeUnitAt$1(path, index)))
  23682. return false;
  23683. if (B.JSString_methods.codeUnitAt$1(path, index + 1) !== 58)
  23684. return false;
  23685. if (t1 === t2)
  23686. return true;
  23687. return B.JSString_methods.codeUnitAt$1(path, t2) === 47;
  23688. },
  23689. EvaluationContext_current() {
  23690. var context = $.Zone__current.$index(0, B.Symbol__evaluationContext);
  23691. if (type$.EvaluationContext._is(context))
  23692. return context;
  23693. throw A.wrapException(A.StateError$(string$.No_Sass));
  23694. },
  23695. repl(options) {
  23696. return A.repl$body(options);
  23697. },
  23698. repl$body(options) {
  23699. var $async$goto = 0,
  23700. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  23701. $async$handler = 1, $async$currentError, $async$next = [], repl, logger, evaluator, line, declaration, error, stackTrace, t4, t5, t6, t7, t8, line0, toZone, exception, t1, t2, t3, repl0;
  23702. var $async$repl = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  23703. if ($async$errorCode === 1) {
  23704. $async$currentError = $async$result;
  23705. $async$goto = $async$handler;
  23706. }
  23707. while (true)
  23708. switch ($async$goto) {
  23709. case 0:
  23710. // Function start
  23711. t1 = A._setArrayType([], type$.JSArray_String);
  23712. t2 = B.JSString_methods.$mul(" ", 3);
  23713. t3 = $.$get$alwaysValid();
  23714. repl0 = new A.Repl(">> ", t2, t3, t1);
  23715. repl0.__Repl__adapter_A = new A.ReplAdapter(repl0);
  23716. repl = repl0;
  23717. t1 = options._options;
  23718. logger = new A.TrackingLogger(A._asBool(t1.$index(0, "quiet")) ? $.$get$Logger_quiet() : new A.StderrLogger(options.get$color()));
  23719. t2 = A.absolute(".", null, null, null, null, null, null, null, null, null, null, null, null, null, null);
  23720. evaluator = new A.Evaluator(A._EvaluateVisitor$(null, A.ImportCache$(type$.List_String._as(t1.$index(0, "load-path")), logger), logger, null, false, false), new A.FilesystemImporter(t2));
  23721. t2 = repl.__Repl__adapter_A;
  23722. t2 === $ && A.throwUnnamedLateFieldNI();
  23723. t2 = new A._StreamIterator(A.checkNotNullable(t2.runAsync$0(), "stream", type$.Object));
  23724. $async$handler = 2;
  23725. t1 = type$.Expression, t3 = type$.String, t4 = type$.VariableDeclaration;
  23726. case 5:
  23727. // for condition
  23728. $async$goto = 7;
  23729. return A._asyncAwait(t2.moveNext$0(), $async$repl);
  23730. case 7:
  23731. // returning from await.
  23732. if (!$async$result) {
  23733. // goto after for
  23734. $async$goto = 6;
  23735. break;
  23736. }
  23737. line = t2.get$current(t2);
  23738. if (J.trim$0$s(line).length === 0) {
  23739. // goto for condition
  23740. $async$goto = 5;
  23741. break;
  23742. }
  23743. try {
  23744. if (J.startsWith$1$s(line, "@")) {
  23745. t5 = evaluator;
  23746. t6 = logger;
  23747. t7 = A.SpanScanner$(line, null);
  23748. if (t6 == null)
  23749. t6 = B.StderrLogger_false;
  23750. t6 = new A.ScssParser(A.LinkedHashMap_LinkedHashMap$_empty(t3, t4), t7, t6).parseUseRule$0();
  23751. t5._visitor.runStatement$2(t5._importer, t6);
  23752. // goto for condition
  23753. $async$goto = 5;
  23754. break;
  23755. }
  23756. t5 = A.SpanScanner$(line, null);
  23757. if (new A.Parser(t5, B.StderrLogger_false)._isVariableDeclarationLike$0()) {
  23758. t5 = logger;
  23759. t6 = A.SpanScanner$(line, null);
  23760. if (t5 == null)
  23761. t5 = B.StderrLogger_false;
  23762. declaration = new A.ScssParser(A.LinkedHashMap_LinkedHashMap$_empty(t3, t4), t6, t5).parseVariableDeclaration$0();
  23763. t5 = evaluator;
  23764. t5._visitor.runStatement$2(t5._importer, declaration);
  23765. t5 = evaluator;
  23766. t6 = declaration.name;
  23767. t7 = declaration.span;
  23768. t8 = declaration.namespace;
  23769. line0 = t5._visitor.runExpression$2(t5._importer, new A.VariableExpression(t8, t6, t7)).toString$0(0);
  23770. toZone = $.printToZone;
  23771. if (toZone == null)
  23772. A.printString(line0);
  23773. else
  23774. toZone.call$1(line0);
  23775. } else {
  23776. t5 = evaluator;
  23777. t6 = logger;
  23778. t7 = A.SpanScanner$(line, null);
  23779. if (t6 == null)
  23780. t6 = B.StderrLogger_false;
  23781. t6 = new A.ScssParser(A.LinkedHashMap_LinkedHashMap$_empty(t3, t4), t7, t6);
  23782. t6 = t6._parseSingleProduction$1$1(t6.get$_expression(), t1);
  23783. line0 = t5._visitor.runExpression$2(t5._importer, t6).toString$0(0);
  23784. toZone = $.printToZone;
  23785. if (toZone == null)
  23786. A.printString(line0);
  23787. else
  23788. toZone.call$1(line0);
  23789. }
  23790. } catch (exception) {
  23791. t5 = A.unwrapException(exception);
  23792. if (t5 instanceof A.SassException) {
  23793. error = t5;
  23794. stackTrace = A.getTraceFromException(exception);
  23795. t5 = error;
  23796. t6 = typeof t5 == "string";
  23797. if (t6 || typeof t5 == "number" || A._isBool(t5))
  23798. t5 = null;
  23799. else {
  23800. t7 = $.$get$_traces();
  23801. if (A._isBool(t5) || typeof t5 == "number" || t6)
  23802. A.throwExpression(A.ArgumentError$value(t5, string$.Expand, null));
  23803. t5 = t7._jsWeakMap.get(t5);
  23804. }
  23805. if (t5 == null)
  23806. t5 = stackTrace;
  23807. A._logError(error, t5, line, repl, options, logger);
  23808. } else
  23809. throw exception;
  23810. }
  23811. // goto for condition
  23812. $async$goto = 5;
  23813. break;
  23814. case 6:
  23815. // after for
  23816. $async$next.push(4);
  23817. // goto finally
  23818. $async$goto = 3;
  23819. break;
  23820. case 2:
  23821. // uncaught
  23822. $async$next = [1];
  23823. case 3:
  23824. // finally
  23825. $async$handler = 1;
  23826. $async$goto = 8;
  23827. return A._asyncAwait(t2.cancel$0(), $async$repl);
  23828. case 8:
  23829. // returning from await.
  23830. // goto the next finally handler
  23831. $async$goto = $async$next.pop();
  23832. break;
  23833. case 4:
  23834. // after finally
  23835. // implicit return
  23836. return A._asyncReturn(null, $async$completer);
  23837. case 1:
  23838. // rethrow
  23839. return A._asyncRethrow($async$currentError, $async$completer);
  23840. }
  23841. });
  23842. return A._asyncStartSync($async$repl, $async$completer);
  23843. },
  23844. _logError(error, stackTrace, line, repl, options, logger) {
  23845. var t2, spacesBeforeError, t3,
  23846. t1 = A.SourceSpanException.prototype.get$span.call(error, error);
  23847. if (t1.get$sourceUrl(t1) == null)
  23848. if (!A._asBool(options._options.$index(0, "quiet")))
  23849. t1 = logger._emittedDebug || logger._emittedWarning;
  23850. else
  23851. t1 = false;
  23852. else
  23853. t1 = true;
  23854. if (t1) {
  23855. A.print(error.toString$1$color(0, options.get$color()));
  23856. return;
  23857. }
  23858. t1 = options.get$color() ? "" + "\x1b[31m" : "";
  23859. t2 = A.SourceSpanException.prototype.get$span.call(error, error);
  23860. t2 = t2.get$start(t2);
  23861. spacesBeforeError = repl.prompt.length + t2.file.getColumn$1(t2.offset);
  23862. if (options.get$color()) {
  23863. t2 = A.SourceSpanException.prototype.get$span.call(error, error);
  23864. t2 = t2.get$start(t2);
  23865. t2 = t2.file.getColumn$1(t2.offset) < line.length;
  23866. } else
  23867. t2 = false;
  23868. if (t2)
  23869. t1 = t1 + ("\x1b[1F\x1b[" + spacesBeforeError + "C") + (A.SourceSpanException.prototype.get$span.call(error, error).get$text() + "\n");
  23870. t2 = B.JSString_methods.$mul(" ", spacesBeforeError);
  23871. t3 = A.SourceSpanException.prototype.get$span.call(error, error);
  23872. t3 = t1 + t2 + (B.JSString_methods.$mul("^", Math.max(1, t3.get$length(t3))) + "\n");
  23873. t1 = options.get$color() ? t3 + "\x1b[0m" : t3;
  23874. t1 += "Error: " + error._span_exception$_message + "\n";
  23875. if (A._asBool(options._options.$index(0, "trace")))
  23876. t1 += A.Trace_Trace$from(stackTrace).get$terse().toString$0(0);
  23877. A.print(B.JSString_methods.trimRight$0(t1.charCodeAt(0) == 0 ? t1 : t1));
  23878. },
  23879. isWhitespace(character) {
  23880. return character === 32 || character === 9 || character === 10 || character === 13 || character === 12;
  23881. },
  23882. isNewline(character) {
  23883. return character === 10 || character === 13 || character === 12;
  23884. },
  23885. isAlphabetic0(character) {
  23886. var t1;
  23887. if (!(character >= 97 && character <= 122))
  23888. t1 = character >= 65 && character <= 90;
  23889. else
  23890. t1 = true;
  23891. return t1;
  23892. },
  23893. isDigit(character) {
  23894. return character != null && character >= 48 && character <= 57;
  23895. },
  23896. isHex(character) {
  23897. if (character == null)
  23898. return false;
  23899. if (A.isDigit(character))
  23900. return true;
  23901. if (character >= 97 && character <= 102)
  23902. return true;
  23903. if (character >= 65 && character <= 70)
  23904. return true;
  23905. return false;
  23906. },
  23907. asHex(character) {
  23908. if (character <= 57)
  23909. return character - 48;
  23910. if (character <= 70)
  23911. return 10 + character - 65;
  23912. return 10 + character - 97;
  23913. },
  23914. hexCharFor(number) {
  23915. return number < 10 ? 48 + number : 87 + number;
  23916. },
  23917. opposite(character) {
  23918. switch (character) {
  23919. case 40:
  23920. return 41;
  23921. case 123:
  23922. return 125;
  23923. case 91:
  23924. return 93;
  23925. default:
  23926. throw A.wrapException(A.ArgumentError$('"' + A.String_String$fromCharCode(character) + "\" isn't a brace-like character.", null));
  23927. }
  23928. },
  23929. characterEqualsIgnoreCase(character1, character2) {
  23930. var upperCase1;
  23931. if (character1 === character2)
  23932. return true;
  23933. if ((character1 ^ character2) >>> 0 !== 32)
  23934. return false;
  23935. upperCase1 = (character1 & 4294967263) >>> 0;
  23936. return upperCase1 >= 65 && upperCase1 <= 90;
  23937. },
  23938. NullableExtension_andThen(_this, fn) {
  23939. return _this == null ? null : fn.call$1(_this);
  23940. },
  23941. SetExtension_removeNull(_this, $T) {
  23942. _this.remove$1(0, null);
  23943. return A.Set_castFrom(_this, _this.get$_newSimilarSet(), A._instanceType(_this)._precomputed1, $T);
  23944. },
  23945. fuzzyEquals(number1, number2) {
  23946. var t1;
  23947. if (number1 === number2)
  23948. return true;
  23949. if (Math.abs(number1 - number2) <= $.$get$_epsilon()) {
  23950. t1 = $.$get$_inverseEpsilon();
  23951. t1 = B.JSNumber_methods.round$0(number1 * t1) === B.JSNumber_methods.round$0(number2 * t1);
  23952. } else
  23953. t1 = false;
  23954. return t1;
  23955. },
  23956. fuzzyHashCode(number) {
  23957. if (!isFinite(number))
  23958. return B.JSNumber_methods.get$hashCode(number);
  23959. return B.JSInt_methods.get$hashCode(B.JSNumber_methods.round$0(number * $.$get$_inverseEpsilon()));
  23960. },
  23961. fuzzyLessThan(number1, number2) {
  23962. return number1 < number2 && !A.fuzzyEquals(number1, number2);
  23963. },
  23964. fuzzyLessThanOrEquals(number1, number2) {
  23965. return number1 < number2 || A.fuzzyEquals(number1, number2);
  23966. },
  23967. fuzzyGreaterThan(number1, number2) {
  23968. return number1 > number2 && !A.fuzzyEquals(number1, number2);
  23969. },
  23970. fuzzyGreaterThanOrEquals(number1, number2) {
  23971. return number1 > number2 || A.fuzzyEquals(number1, number2);
  23972. },
  23973. fuzzyAsInt(number) {
  23974. var rounded;
  23975. if (number == 1 / 0 || number == -1 / 0 || isNaN(number))
  23976. return null;
  23977. rounded = B.JSNumber_methods.round$0(number);
  23978. return A.fuzzyEquals(number, rounded) ? rounded : null;
  23979. },
  23980. fuzzyRound(number) {
  23981. var t1;
  23982. if (number > 0) {
  23983. t1 = B.JSNumber_methods.$mod(number, 1);
  23984. return t1 < 0.5 && !A.fuzzyEquals(t1, 0.5) ? B.JSNumber_methods.floor$0(number) : B.JSNumber_methods.ceil$0(number);
  23985. } else {
  23986. t1 = B.JSNumber_methods.$mod(number, 1);
  23987. return t1 < 0.5 || A.fuzzyEquals(t1, 0.5) ? B.JSNumber_methods.floor$0(number) : B.JSNumber_methods.ceil$0(number);
  23988. }
  23989. },
  23990. fuzzyCheckRange(number, min, max) {
  23991. if (A.fuzzyEquals(number, min))
  23992. return min;
  23993. if (A.fuzzyEquals(number, max))
  23994. return max;
  23995. if (number > min && number < max)
  23996. return number;
  23997. return null;
  23998. },
  23999. fuzzyAssertRange(number, min, max, $name) {
  24000. var result = A.fuzzyCheckRange(number, min, max);
  24001. if (result != null)
  24002. return result;
  24003. throw A.wrapException(A.RangeError$range(number, min, max, $name, "must be between " + min + " and " + max));
  24004. },
  24005. moduloLikeSass(num1, num2) {
  24006. var result;
  24007. if (num2 > 0)
  24008. return B.JSNumber_methods.$mod(num1, num2);
  24009. if (num2 === 0)
  24010. return 0 / 0;
  24011. result = B.JSNumber_methods.$mod(num1, num2);
  24012. return result === 0 ? 0 : result + num2;
  24013. },
  24014. SpanExtensions_trimLeft(_this) {
  24015. var t5,
  24016. t1 = _this._file$_start,
  24017. t2 = _this._end,
  24018. t3 = _this.file._decodedChars,
  24019. t4 = t3.length,
  24020. start = 0;
  24021. while (true) {
  24022. t5 = B.JSString_methods._codeUnitAt$1(A.String_String$fromCharCodes(new Uint32Array(t3.subarray(t1, A._checkValidRange(t1, t2, t4))), 0, null), start);
  24023. if (!(t5 === 32 || t5 === 9 || t5 === 10 || t5 === 13 || t5 === 12))
  24024. break;
  24025. ++start;
  24026. }
  24027. return A.FileSpanExtension_subspan(_this, start, null);
  24028. },
  24029. SpanExtensions_trimRight(_this) {
  24030. var t5,
  24031. t1 = _this._file$_start,
  24032. t2 = _this._end,
  24033. t3 = _this.file._decodedChars,
  24034. end = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t3, t1, t2), 0, null).length - 1,
  24035. t4 = t3.length;
  24036. while (true) {
  24037. t5 = B.JSString_methods.codeUnitAt$1(A.String_String$fromCharCodes(new Uint32Array(t3.subarray(t1, A._checkValidRange(t1, t2, t4))), 0, null), end);
  24038. if (!(t5 === 32 || t5 === 9 || t5 === 10 || t5 === 13 || t5 === 12))
  24039. break;
  24040. --end;
  24041. }
  24042. return A.FileSpanExtension_subspan(_this, 0, end + 1);
  24043. },
  24044. encodeVlq(value) {
  24045. var res, signBit, digit, t1;
  24046. if (value < $.$get$minInt32() || value > $.$get$maxInt32())
  24047. throw A.wrapException(A.ArgumentError$("expected 32 bit int, got: " + value, null));
  24048. res = A._setArrayType([], type$.JSArray_String);
  24049. if (value < 0) {
  24050. value = -value;
  24051. signBit = 1;
  24052. } else
  24053. signBit = 0;
  24054. value = value << 1 | signBit;
  24055. do {
  24056. digit = value & 31;
  24057. value = value >>> 5;
  24058. t1 = value > 0;
  24059. res.push(string$.ABCDEF[t1 ? digit | 32 : digit]);
  24060. } while (t1);
  24061. return res;
  24062. },
  24063. isAllTheSame(iter) {
  24064. var firstValue, t1, t2, value;
  24065. if (iter.get$length(iter) === 0)
  24066. return true;
  24067. firstValue = iter.get$first(iter);
  24068. for (t1 = A.SubListIterable$(iter, 1, null, iter.$ti._eval$1("ListIterable.E")), t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) {
  24069. value = t1.__internal$_current;
  24070. if (!J.$eq$(value == null ? t2._as(value) : value, firstValue))
  24071. return false;
  24072. }
  24073. return true;
  24074. },
  24075. replaceFirstNull(list, element) {
  24076. var index = B.JSArray_methods.indexOf$1(list, null);
  24077. if (index < 0)
  24078. throw A.wrapException(A.ArgumentError$(A.S(list) + " contains no null elements.", null));
  24079. list[index] = element;
  24080. },
  24081. replaceWithNull(list, element) {
  24082. var index = B.JSArray_methods.indexOf$1(list, element);
  24083. if (index < 0)
  24084. throw A.wrapException(A.ArgumentError$(A.S(list) + " contains no elements matching " + element.toString$0(0) + ".", null));
  24085. list[index] = null;
  24086. },
  24087. countCodeUnits(string, codeUnit) {
  24088. var t1, t2, count, t3;
  24089. for (t1 = new A.CodeUnits(string), t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = A._instanceType(t1)._precomputed1, count = 0; t1.moveNext$0();) {
  24090. t3 = t1.__internal$_current;
  24091. if ((t3 == null ? t2._as(t3) : t3) === codeUnit)
  24092. ++count;
  24093. }
  24094. return count;
  24095. },
  24096. findLineStart(context, text, column) {
  24097. var beginningOfLine, index, lineStart;
  24098. if (text.length === 0)
  24099. for (beginningOfLine = 0; true;) {
  24100. index = B.JSString_methods.indexOf$2(context, "\n", beginningOfLine);
  24101. if (index === -1)
  24102. return context.length - beginningOfLine >= column ? beginningOfLine : null;
  24103. if (index - beginningOfLine >= column)
  24104. return beginningOfLine;
  24105. beginningOfLine = index + 1;
  24106. }
  24107. index = B.JSString_methods.indexOf$1(context, text);
  24108. for (; index !== -1;) {
  24109. lineStart = index === 0 ? 0 : B.JSString_methods.lastIndexOf$2(context, "\n", index - 1) + 1;
  24110. if (column === index - lineStart)
  24111. return lineStart;
  24112. index = B.JSString_methods.indexOf$2(context, text, index + 1);
  24113. }
  24114. return null;
  24115. },
  24116. validateErrorArgs(string, match, position, $length) {
  24117. var t2,
  24118. t1 = position != null;
  24119. if (t1)
  24120. if (position < 0)
  24121. throw A.wrapException(A.RangeError$("position must be greater than or equal to 0."));
  24122. else if (position > string.length)
  24123. throw A.wrapException(A.RangeError$("position must be less than or equal to the string length."));
  24124. t2 = $length != null;
  24125. if (t2 && $length < 0)
  24126. throw A.wrapException(A.RangeError$("length must be greater than or equal to 0."));
  24127. if (t1 && t2 && position + $length > string.length)
  24128. throw A.wrapException(A.RangeError$("position plus length must not go beyond the end of the string."));
  24129. },
  24130. isWhitespace0(character) {
  24131. return character === 32 || character === 9 || character === 10 || character === 13 || character === 12;
  24132. },
  24133. isNewline0(character) {
  24134. return character === 10 || character === 13 || character === 12;
  24135. },
  24136. isAlphabetic1(character) {
  24137. var t1;
  24138. if (!(character >= 97 && character <= 122))
  24139. t1 = character >= 65 && character <= 90;
  24140. else
  24141. t1 = true;
  24142. return t1;
  24143. },
  24144. isDigit0(character) {
  24145. return character != null && character >= 48 && character <= 57;
  24146. },
  24147. isHex0(character) {
  24148. if (character == null)
  24149. return false;
  24150. if (A.isDigit0(character))
  24151. return true;
  24152. if (character >= 97 && character <= 102)
  24153. return true;
  24154. if (character >= 65 && character <= 70)
  24155. return true;
  24156. return false;
  24157. },
  24158. asHex0(character) {
  24159. if (character <= 57)
  24160. return character - 48;
  24161. if (character <= 70)
  24162. return 10 + character - 65;
  24163. return 10 + character - 97;
  24164. },
  24165. hexCharFor0(number) {
  24166. return number < 10 ? 48 + number : 87 + number;
  24167. },
  24168. opposite0(character) {
  24169. switch (character) {
  24170. case 40:
  24171. return 41;
  24172. case 123:
  24173. return 125;
  24174. case 91:
  24175. return 93;
  24176. default:
  24177. throw A.wrapException(A.ArgumentError$('"' + A.String_String$fromCharCode(character) + "\" isn't a brace-like character.", null));
  24178. }
  24179. },
  24180. characterEqualsIgnoreCase0(character1, character2) {
  24181. var upperCase1;
  24182. if (character1 === character2)
  24183. return true;
  24184. if ((character1 ^ character2) >>> 0 !== 32)
  24185. return false;
  24186. upperCase1 = (character1 & 4294967263) >>> 0;
  24187. return upperCase1 >= 65 && upperCase1 <= 90;
  24188. },
  24189. EvaluationContext_current0() {
  24190. var context = $.Zone__current.$index(0, B.Symbol__evaluationContext);
  24191. if (type$.EvaluationContext_2._is(context))
  24192. return context;
  24193. throw A.wrapException(A.StateError$(string$.No_Sass));
  24194. },
  24195. NullableExtension_andThen0(_this, fn) {
  24196. return _this == null ? null : fn.call$1(_this);
  24197. },
  24198. fuzzyEquals0(number1, number2) {
  24199. var t1;
  24200. if (number1 === number2)
  24201. return true;
  24202. if (Math.abs(number1 - number2) <= $.$get$_epsilon0()) {
  24203. t1 = $.$get$_inverseEpsilon0();
  24204. t1 = B.JSNumber_methods.round$0(number1 * t1) === B.JSNumber_methods.round$0(number2 * t1);
  24205. } else
  24206. t1 = false;
  24207. return t1;
  24208. },
  24209. fuzzyHashCode0(number) {
  24210. if (!isFinite(number))
  24211. return B.JSNumber_methods.get$hashCode(number);
  24212. return B.JSInt_methods.get$hashCode(B.JSNumber_methods.round$0(number * $.$get$_inverseEpsilon0()));
  24213. },
  24214. fuzzyLessThan0(number1, number2) {
  24215. return number1 < number2 && !A.fuzzyEquals0(number1, number2);
  24216. },
  24217. fuzzyLessThanOrEquals0(number1, number2) {
  24218. return number1 < number2 || A.fuzzyEquals0(number1, number2);
  24219. },
  24220. fuzzyGreaterThan0(number1, number2) {
  24221. return number1 > number2 && !A.fuzzyEquals0(number1, number2);
  24222. },
  24223. fuzzyGreaterThanOrEquals0(number1, number2) {
  24224. return number1 > number2 || A.fuzzyEquals0(number1, number2);
  24225. },
  24226. fuzzyIsInt(number) {
  24227. if (number == 1 / 0 || number == -1 / 0 || isNaN(number))
  24228. return false;
  24229. return A.fuzzyEquals0(number, B.JSNumber_methods.round$0(number));
  24230. },
  24231. fuzzyAsInt0(number) {
  24232. var rounded;
  24233. if (number == 1 / 0 || number == -1 / 0 || isNaN(number))
  24234. return null;
  24235. rounded = B.JSNumber_methods.round$0(number);
  24236. return A.fuzzyEquals0(number, rounded) ? rounded : null;
  24237. },
  24238. fuzzyRound0(number) {
  24239. var t1;
  24240. if (number > 0) {
  24241. t1 = B.JSNumber_methods.$mod(number, 1);
  24242. return t1 < 0.5 && !A.fuzzyEquals0(t1, 0.5) ? B.JSNumber_methods.floor$0(number) : B.JSNumber_methods.ceil$0(number);
  24243. } else {
  24244. t1 = B.JSNumber_methods.$mod(number, 1);
  24245. return t1 < 0.5 || A.fuzzyEquals0(t1, 0.5) ? B.JSNumber_methods.floor$0(number) : B.JSNumber_methods.ceil$0(number);
  24246. }
  24247. },
  24248. fuzzyCheckRange0(number, min, max) {
  24249. if (A.fuzzyEquals0(number, min))
  24250. return min;
  24251. if (A.fuzzyEquals0(number, max))
  24252. return max;
  24253. if (number > min && number < max)
  24254. return number;
  24255. return null;
  24256. },
  24257. fuzzyAssertRange0(number, min, max, $name) {
  24258. var result = A.fuzzyCheckRange0(number, min, max);
  24259. if (result != null)
  24260. return result;
  24261. throw A.wrapException(A.RangeError$range(number, min, max, $name, "must be between " + min + " and " + max));
  24262. },
  24263. moduloLikeSass0(num1, num2) {
  24264. var result;
  24265. if (num2 > 0)
  24266. return B.JSNumber_methods.$mod(num1, num2);
  24267. if (num2 === 0)
  24268. return 0 / 0;
  24269. result = B.JSNumber_methods.$mod(num1, num2);
  24270. return result === 0 ? 0 : result + num2;
  24271. },
  24272. SpanExtensions_trimLeft0(_this) {
  24273. var t5,
  24274. t1 = _this._file$_start,
  24275. t2 = _this._end,
  24276. t3 = _this.file._decodedChars,
  24277. t4 = t3.length,
  24278. start = 0;
  24279. while (true) {
  24280. t5 = B.JSString_methods._codeUnitAt$1(A.String_String$fromCharCodes(new Uint32Array(t3.subarray(t1, A._checkValidRange(t1, t2, t4))), 0, null), start);
  24281. if (!(t5 === 32 || t5 === 9 || t5 === 10 || t5 === 13 || t5 === 12))
  24282. break;
  24283. ++start;
  24284. }
  24285. return A.FileSpanExtension_subspan(_this, start, null);
  24286. },
  24287. SpanExtensions_trimRight0(_this) {
  24288. var t5,
  24289. t1 = _this._file$_start,
  24290. t2 = _this._end,
  24291. t3 = _this.file._decodedChars,
  24292. end = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t3, t1, t2), 0, null).length - 1,
  24293. t4 = t3.length;
  24294. while (true) {
  24295. t5 = B.JSString_methods.codeUnitAt$1(A.String_String$fromCharCodes(new Uint32Array(t3.subarray(t1, A._checkValidRange(t1, t2, t4))), 0, null), end);
  24296. if (!(t5 === 32 || t5 === 9 || t5 === 10 || t5 === 13 || t5 === 12))
  24297. break;
  24298. --end;
  24299. }
  24300. return A.FileSpanExtension_subspan(_this, 0, end + 1);
  24301. },
  24302. unwrapValue(object) {
  24303. var value;
  24304. if (object != null) {
  24305. if (object instanceof A.Value0)
  24306. return object;
  24307. value = object.dartValue;
  24308. if (value != null && value instanceof A.Value0)
  24309. return value;
  24310. if (object instanceof self.Error)
  24311. throw A.wrapException(object);
  24312. }
  24313. throw A.wrapException(A.S(object) + " must be a Sass value type.");
  24314. },
  24315. wrapValue(value) {
  24316. var t1;
  24317. if (value instanceof A.SassColor0) {
  24318. t1 = A.callConstructor($.$get$legacyColorClass(), [null, null, null, null, value]);
  24319. return t1;
  24320. }
  24321. if (value instanceof A.SassList0) {
  24322. t1 = A.callConstructor($.$get$legacyListClass(), [null, null, value]);
  24323. return t1;
  24324. }
  24325. if (value instanceof A.SassMap0) {
  24326. t1 = A.callConstructor($.$get$legacyMapClass(), [null, value]);
  24327. return t1;
  24328. }
  24329. if (value instanceof A.SassNumber0) {
  24330. t1 = A.callConstructor($.$get$legacyNumberClass(), [null, null, value]);
  24331. return t1;
  24332. }
  24333. if (value instanceof A.SassString0) {
  24334. t1 = A.callConstructor($.$get$legacyStringClass(), [null, value]);
  24335. return t1;
  24336. }
  24337. return value;
  24338. }
  24339. },
  24340. J = {
  24341. makeDispatchRecord(interceptor, proto, extension, indexability) {
  24342. return {i: interceptor, p: proto, e: extension, x: indexability};
  24343. },
  24344. getNativeInterceptor(object) {
  24345. var proto, objectProto, $constructor, interceptor, t1,
  24346. record = object[init.dispatchPropertyName];
  24347. if (record == null)
  24348. if ($.initNativeDispatchFlag == null) {
  24349. A.initNativeDispatch();
  24350. record = object[init.dispatchPropertyName];
  24351. }
  24352. if (record != null) {
  24353. proto = record.p;
  24354. if (false === proto)
  24355. return record.i;
  24356. if (true === proto)
  24357. return object;
  24358. objectProto = Object.getPrototypeOf(object);
  24359. if (proto === objectProto)
  24360. return record.i;
  24361. if (record.e === objectProto)
  24362. throw A.wrapException(A.UnimplementedError$("Return interceptor for " + A.S(proto(object, record))));
  24363. }
  24364. $constructor = object.constructor;
  24365. if ($constructor == null)
  24366. interceptor = null;
  24367. else {
  24368. t1 = $._JS_INTEROP_INTERCEPTOR_TAG;
  24369. if (t1 == null)
  24370. t1 = $._JS_INTEROP_INTERCEPTOR_TAG = init.getIsolateTag("_$dart_js");
  24371. interceptor = $constructor[t1];
  24372. }
  24373. if (interceptor != null)
  24374. return interceptor;
  24375. interceptor = A.lookupAndCacheInterceptor(object);
  24376. if (interceptor != null)
  24377. return interceptor;
  24378. if (typeof object == "function")
  24379. return B.JavaScriptFunction_methods;
  24380. proto = Object.getPrototypeOf(object);
  24381. if (proto == null)
  24382. return B.PlainJavaScriptObject_methods;
  24383. if (proto === Object.prototype)
  24384. return B.PlainJavaScriptObject_methods;
  24385. if (typeof $constructor == "function") {
  24386. t1 = $._JS_INTEROP_INTERCEPTOR_TAG;
  24387. if (t1 == null)
  24388. t1 = $._JS_INTEROP_INTERCEPTOR_TAG = init.getIsolateTag("_$dart_js");
  24389. Object.defineProperty($constructor, t1, {value: B.UnknownJavaScriptObject_methods, enumerable: false, writable: true, configurable: true});
  24390. return B.UnknownJavaScriptObject_methods;
  24391. }
  24392. return B.UnknownJavaScriptObject_methods;
  24393. },
  24394. JSArray_JSArray$fixed($length, $E) {
  24395. if ($length < 0 || $length > 4294967295)
  24396. throw A.wrapException(A.RangeError$range($length, 0, 4294967295, "length", null));
  24397. return J.JSArray_JSArray$markFixed(new Array($length), $E);
  24398. },
  24399. JSArray_JSArray$allocateFixed($length, $E) {
  24400. if ($length > 4294967295)
  24401. throw A.wrapException(A.RangeError$range($length, 0, 4294967295, "length", null));
  24402. return J.JSArray_JSArray$markFixed(new Array($length), $E);
  24403. },
  24404. JSArray_JSArray$growable($length, $E) {
  24405. if ($length < 0)
  24406. throw A.wrapException(A.ArgumentError$("Length must be a non-negative integer: " + $length, null));
  24407. return A._setArrayType(new Array($length), $E._eval$1("JSArray<0>"));
  24408. },
  24409. JSArray_JSArray$allocateGrowable($length, $E) {
  24410. if ($length < 0)
  24411. throw A.wrapException(A.ArgumentError$("Length must be a non-negative integer: " + $length, null));
  24412. return A._setArrayType(new Array($length), $E._eval$1("JSArray<0>"));
  24413. },
  24414. JSArray_JSArray$markFixed(allocation, $E) {
  24415. return J.JSArray_markFixedList(A._setArrayType(allocation, $E._eval$1("JSArray<0>")));
  24416. },
  24417. JSArray_markFixedList(list) {
  24418. list.fixed$length = Array;
  24419. return list;
  24420. },
  24421. JSArray_markUnmodifiableList(list) {
  24422. list.fixed$length = Array;
  24423. list.immutable$list = Array;
  24424. return list;
  24425. },
  24426. JSArray__compareAny(a, b) {
  24427. return J.compareTo$1$ns(a, b);
  24428. },
  24429. JSString__isWhitespace(codeUnit) {
  24430. if (codeUnit < 256)
  24431. switch (codeUnit) {
  24432. case 9:
  24433. case 10:
  24434. case 11:
  24435. case 12:
  24436. case 13:
  24437. case 32:
  24438. case 133:
  24439. case 160:
  24440. return true;
  24441. default:
  24442. return false;
  24443. }
  24444. switch (codeUnit) {
  24445. case 5760:
  24446. case 8192:
  24447. case 8193:
  24448. case 8194:
  24449. case 8195:
  24450. case 8196:
  24451. case 8197:
  24452. case 8198:
  24453. case 8199:
  24454. case 8200:
  24455. case 8201:
  24456. case 8202:
  24457. case 8232:
  24458. case 8233:
  24459. case 8239:
  24460. case 8287:
  24461. case 12288:
  24462. case 65279:
  24463. return true;
  24464. default:
  24465. return false;
  24466. }
  24467. },
  24468. JSString__skipLeadingWhitespace(string, index) {
  24469. var t1, codeUnit;
  24470. for (t1 = string.length; index < t1;) {
  24471. codeUnit = B.JSString_methods._codeUnitAt$1(string, index);
  24472. if (codeUnit !== 32 && codeUnit !== 13 && !J.JSString__isWhitespace(codeUnit))
  24473. break;
  24474. ++index;
  24475. }
  24476. return index;
  24477. },
  24478. JSString__skipTrailingWhitespace(string, index) {
  24479. var index0, codeUnit;
  24480. for (; index > 0; index = index0) {
  24481. index0 = index - 1;
  24482. codeUnit = B.JSString_methods.codeUnitAt$1(string, index0);
  24483. if (codeUnit !== 32 && codeUnit !== 13 && !J.JSString__isWhitespace(codeUnit))
  24484. break;
  24485. }
  24486. return index;
  24487. },
  24488. getInterceptor$(receiver) {
  24489. if (typeof receiver == "number") {
  24490. if (Math.floor(receiver) == receiver)
  24491. return J.JSInt.prototype;
  24492. return J.JSNumNotInt.prototype;
  24493. }
  24494. if (typeof receiver == "string")
  24495. return J.JSString.prototype;
  24496. if (receiver == null)
  24497. return J.JSNull.prototype;
  24498. if (typeof receiver == "boolean")
  24499. return J.JSBool.prototype;
  24500. if (receiver.constructor == Array)
  24501. return J.JSArray.prototype;
  24502. if (typeof receiver != "object") {
  24503. if (typeof receiver == "function")
  24504. return J.JavaScriptFunction.prototype;
  24505. return receiver;
  24506. }
  24507. if (receiver instanceof A.Object)
  24508. return receiver;
  24509. return J.getNativeInterceptor(receiver);
  24510. },
  24511. getInterceptor$ansx(receiver) {
  24512. if (typeof receiver == "number")
  24513. return J.JSNumber.prototype;
  24514. if (typeof receiver == "string")
  24515. return J.JSString.prototype;
  24516. if (receiver == null)
  24517. return receiver;
  24518. if (receiver.constructor == Array)
  24519. return J.JSArray.prototype;
  24520. if (typeof receiver != "object") {
  24521. if (typeof receiver == "function")
  24522. return J.JavaScriptFunction.prototype;
  24523. return receiver;
  24524. }
  24525. if (receiver instanceof A.Object)
  24526. return receiver;
  24527. return J.getNativeInterceptor(receiver);
  24528. },
  24529. getInterceptor$asx(receiver) {
  24530. if (typeof receiver == "string")
  24531. return J.JSString.prototype;
  24532. if (receiver == null)
  24533. return receiver;
  24534. if (receiver.constructor == Array)
  24535. return J.JSArray.prototype;
  24536. if (typeof receiver != "object") {
  24537. if (typeof receiver == "function")
  24538. return J.JavaScriptFunction.prototype;
  24539. return receiver;
  24540. }
  24541. if (receiver instanceof A.Object)
  24542. return receiver;
  24543. return J.getNativeInterceptor(receiver);
  24544. },
  24545. getInterceptor$ax(receiver) {
  24546. if (receiver == null)
  24547. return receiver;
  24548. if (receiver.constructor == Array)
  24549. return J.JSArray.prototype;
  24550. if (typeof receiver != "object") {
  24551. if (typeof receiver == "function")
  24552. return J.JavaScriptFunction.prototype;
  24553. return receiver;
  24554. }
  24555. if (receiver instanceof A.Object)
  24556. return receiver;
  24557. return J.getNativeInterceptor(receiver);
  24558. },
  24559. getInterceptor$n(receiver) {
  24560. if (typeof receiver == "number")
  24561. return J.JSNumber.prototype;
  24562. if (receiver == null)
  24563. return receiver;
  24564. if (!(receiver instanceof A.Object))
  24565. return J.UnknownJavaScriptObject.prototype;
  24566. return receiver;
  24567. },
  24568. getInterceptor$ns(receiver) {
  24569. if (typeof receiver == "number")
  24570. return J.JSNumber.prototype;
  24571. if (typeof receiver == "string")
  24572. return J.JSString.prototype;
  24573. if (receiver == null)
  24574. return receiver;
  24575. if (!(receiver instanceof A.Object))
  24576. return J.UnknownJavaScriptObject.prototype;
  24577. return receiver;
  24578. },
  24579. getInterceptor$s(receiver) {
  24580. if (typeof receiver == "string")
  24581. return J.JSString.prototype;
  24582. if (receiver == null)
  24583. return receiver;
  24584. if (!(receiver instanceof A.Object))
  24585. return J.UnknownJavaScriptObject.prototype;
  24586. return receiver;
  24587. },
  24588. getInterceptor$u(receiver) {
  24589. if (receiver == null)
  24590. return J.JSNull.prototype;
  24591. if (!(receiver instanceof A.Object))
  24592. return J.UnknownJavaScriptObject.prototype;
  24593. return receiver;
  24594. },
  24595. getInterceptor$x(receiver) {
  24596. if (receiver == null)
  24597. return receiver;
  24598. if (typeof receiver != "object") {
  24599. if (typeof receiver == "function")
  24600. return J.JavaScriptFunction.prototype;
  24601. return receiver;
  24602. }
  24603. if (receiver instanceof A.Object)
  24604. return receiver;
  24605. return J.getNativeInterceptor(receiver);
  24606. },
  24607. getInterceptor$z(receiver) {
  24608. if (receiver == null)
  24609. return receiver;
  24610. if (!(receiver instanceof A.Object))
  24611. return J.UnknownJavaScriptObject.prototype;
  24612. return receiver;
  24613. },
  24614. set$Exception$x(receiver, value) {
  24615. return J.getInterceptor$x(receiver).set$Exception(receiver, value);
  24616. },
  24617. set$FALSE$x(receiver, value) {
  24618. return J.getInterceptor$x(receiver).set$FALSE(receiver, value);
  24619. },
  24620. set$Logger$x(receiver, value) {
  24621. return J.getInterceptor$x(receiver).set$Logger(receiver, value);
  24622. },
  24623. set$NULL$x(receiver, value) {
  24624. return J.getInterceptor$x(receiver).set$NULL(receiver, value);
  24625. },
  24626. set$SassArgumentList$x(receiver, value) {
  24627. return J.getInterceptor$x(receiver).set$SassArgumentList(receiver, value);
  24628. },
  24629. set$SassBoolean$x(receiver, value) {
  24630. return J.getInterceptor$x(receiver).set$SassBoolean(receiver, value);
  24631. },
  24632. set$SassColor$x(receiver, value) {
  24633. return J.getInterceptor$x(receiver).set$SassColor(receiver, value);
  24634. },
  24635. set$SassFunction$x(receiver, value) {
  24636. return J.getInterceptor$x(receiver).set$SassFunction(receiver, value);
  24637. },
  24638. set$SassList$x(receiver, value) {
  24639. return J.getInterceptor$x(receiver).set$SassList(receiver, value);
  24640. },
  24641. set$SassMap$x(receiver, value) {
  24642. return J.getInterceptor$x(receiver).set$SassMap(receiver, value);
  24643. },
  24644. set$SassNumber$x(receiver, value) {
  24645. return J.getInterceptor$x(receiver).set$SassNumber(receiver, value);
  24646. },
  24647. set$SassString$x(receiver, value) {
  24648. return J.getInterceptor$x(receiver).set$SassString(receiver, value);
  24649. },
  24650. set$TRUE$x(receiver, value) {
  24651. return J.getInterceptor$x(receiver).set$TRUE(receiver, value);
  24652. },
  24653. set$Value$x(receiver, value) {
  24654. return J.getInterceptor$x(receiver).set$Value(receiver, value);
  24655. },
  24656. set$cli_pkg_main_0_$x(receiver, value) {
  24657. return J.getInterceptor$x(receiver).set$cli_pkg_main_0_(receiver, value);
  24658. },
  24659. set$compile$x(receiver, value) {
  24660. return J.getInterceptor$x(receiver).set$compile(receiver, value);
  24661. },
  24662. set$compileAsync$x(receiver, value) {
  24663. return J.getInterceptor$x(receiver).set$compileAsync(receiver, value);
  24664. },
  24665. set$compileString$x(receiver, value) {
  24666. return J.getInterceptor$x(receiver).set$compileString(receiver, value);
  24667. },
  24668. set$compileStringAsync$x(receiver, value) {
  24669. return J.getInterceptor$x(receiver).set$compileStringAsync(receiver, value);
  24670. },
  24671. set$context$x(receiver, value) {
  24672. return J.getInterceptor$x(receiver).set$context(receiver, value);
  24673. },
  24674. set$dartValue$x(receiver, value) {
  24675. return J.getInterceptor$x(receiver).set$dartValue(receiver, value);
  24676. },
  24677. set$exitCode$x(receiver, value) {
  24678. return J.getInterceptor$x(receiver).set$exitCode(receiver, value);
  24679. },
  24680. set$info$x(receiver, value) {
  24681. return J.getInterceptor$x(receiver).set$info(receiver, value);
  24682. },
  24683. set$length$asx(receiver, value) {
  24684. return J.getInterceptor$asx(receiver).set$length(receiver, value);
  24685. },
  24686. set$render$x(receiver, value) {
  24687. return J.getInterceptor$x(receiver).set$render(receiver, value);
  24688. },
  24689. set$renderSync$x(receiver, value) {
  24690. return J.getInterceptor$x(receiver).set$renderSync(receiver, value);
  24691. },
  24692. set$sassFalse$x(receiver, value) {
  24693. return J.getInterceptor$x(receiver).set$sassFalse(receiver, value);
  24694. },
  24695. set$sassNull$x(receiver, value) {
  24696. return J.getInterceptor$x(receiver).set$sassNull(receiver, value);
  24697. },
  24698. set$sassTrue$x(receiver, value) {
  24699. return J.getInterceptor$x(receiver).set$sassTrue(receiver, value);
  24700. },
  24701. set$types$x(receiver, value) {
  24702. return J.getInterceptor$x(receiver).set$types(receiver, value);
  24703. },
  24704. get$$prototype$x(receiver) {
  24705. return J.getInterceptor$x(receiver).get$$prototype(receiver);
  24706. },
  24707. get$_dartException$x(receiver) {
  24708. return J.getInterceptor$x(receiver).get$_dartException(receiver);
  24709. },
  24710. get$alertAscii$x(receiver) {
  24711. return J.getInterceptor$x(receiver).get$alertAscii(receiver);
  24712. },
  24713. get$alertColor$x(receiver) {
  24714. return J.getInterceptor$x(receiver).get$alertColor(receiver);
  24715. },
  24716. get$blue$x(receiver) {
  24717. return J.getInterceptor$x(receiver).get$blue(receiver);
  24718. },
  24719. get$brackets$x(receiver) {
  24720. return J.getInterceptor$x(receiver).get$brackets(receiver);
  24721. },
  24722. get$charset$x(receiver) {
  24723. return J.getInterceptor$x(receiver).get$charset(receiver);
  24724. },
  24725. get$code$x(receiver) {
  24726. return J.getInterceptor$x(receiver).get$code(receiver);
  24727. },
  24728. get$current$x(receiver) {
  24729. return J.getInterceptor$x(receiver).get$current(receiver);
  24730. },
  24731. get$dartValue$x(receiver) {
  24732. return J.getInterceptor$x(receiver).get$dartValue(receiver);
  24733. },
  24734. get$debug$x(receiver) {
  24735. return J.getInterceptor$x(receiver).get$debug(receiver);
  24736. },
  24737. get$denominatorUnits$x(receiver) {
  24738. return J.getInterceptor$x(receiver).get$denominatorUnits(receiver);
  24739. },
  24740. get$end$z(receiver) {
  24741. return J.getInterceptor$z(receiver).get$end(receiver);
  24742. },
  24743. get$env$x(receiver) {
  24744. return J.getInterceptor$x(receiver).get$env(receiver);
  24745. },
  24746. get$exitCode$x(receiver) {
  24747. return J.getInterceptor$x(receiver).get$exitCode(receiver);
  24748. },
  24749. get$fiber$x(receiver) {
  24750. return J.getInterceptor$x(receiver).get$fiber(receiver);
  24751. },
  24752. get$file$x(receiver) {
  24753. return J.getInterceptor$x(receiver).get$file(receiver);
  24754. },
  24755. get$first$ax(receiver) {
  24756. return J.getInterceptor$ax(receiver).get$first(receiver);
  24757. },
  24758. get$functions$x(receiver) {
  24759. return J.getInterceptor$x(receiver).get$functions(receiver);
  24760. },
  24761. get$green$x(receiver) {
  24762. return J.getInterceptor$x(receiver).get$green(receiver);
  24763. },
  24764. get$hashCode$(receiver) {
  24765. return J.getInterceptor$(receiver).get$hashCode(receiver);
  24766. },
  24767. get$importer$x(receiver) {
  24768. return J.getInterceptor$x(receiver).get$importer(receiver);
  24769. },
  24770. get$importers$x(receiver) {
  24771. return J.getInterceptor$x(receiver).get$importers(receiver);
  24772. },
  24773. get$isEmpty$asx(receiver) {
  24774. return J.getInterceptor$asx(receiver).get$isEmpty(receiver);
  24775. },
  24776. get$isNotEmpty$asx(receiver) {
  24777. return J.getInterceptor$asx(receiver).get$isNotEmpty(receiver);
  24778. },
  24779. get$isTTY$x(receiver) {
  24780. return J.getInterceptor$x(receiver).get$isTTY(receiver);
  24781. },
  24782. get$iterator$ax(receiver) {
  24783. return J.getInterceptor$ax(receiver).get$iterator(receiver);
  24784. },
  24785. get$keys$z(receiver) {
  24786. return J.getInterceptor$z(receiver).get$keys(receiver);
  24787. },
  24788. get$last$ax(receiver) {
  24789. return J.getInterceptor$ax(receiver).get$last(receiver);
  24790. },
  24791. get$length$asx(receiver) {
  24792. return J.getInterceptor$asx(receiver).get$length(receiver);
  24793. },
  24794. get$loadPaths$x(receiver) {
  24795. return J.getInterceptor$x(receiver).get$loadPaths(receiver);
  24796. },
  24797. get$logger$x(receiver) {
  24798. return J.getInterceptor$x(receiver).get$logger(receiver);
  24799. },
  24800. get$message$x(receiver) {
  24801. return J.getInterceptor$x(receiver).get$message(receiver);
  24802. },
  24803. get$mtime$x(receiver) {
  24804. return J.getInterceptor$x(receiver).get$mtime(receiver);
  24805. },
  24806. get$name$x(receiver) {
  24807. return J.getInterceptor$x(receiver).get$name(receiver);
  24808. },
  24809. get$numeratorUnits$x(receiver) {
  24810. return J.getInterceptor$x(receiver).get$numeratorUnits(receiver);
  24811. },
  24812. get$options$x(receiver) {
  24813. return J.getInterceptor$x(receiver).get$options(receiver);
  24814. },
  24815. get$parent$z(receiver) {
  24816. return J.getInterceptor$z(receiver).get$parent(receiver);
  24817. },
  24818. get$path$x(receiver) {
  24819. return J.getInterceptor$x(receiver).get$path(receiver);
  24820. },
  24821. get$platform$x(receiver) {
  24822. return J.getInterceptor$x(receiver).get$platform(receiver);
  24823. },
  24824. get$quietDeps$x(receiver) {
  24825. return J.getInterceptor$x(receiver).get$quietDeps(receiver);
  24826. },
  24827. get$quotes$x(receiver) {
  24828. return J.getInterceptor$x(receiver).get$quotes(receiver);
  24829. },
  24830. get$red$x(receiver) {
  24831. return J.getInterceptor$x(receiver).get$red(receiver);
  24832. },
  24833. get$reversed$ax(receiver) {
  24834. return J.getInterceptor$ax(receiver).get$reversed(receiver);
  24835. },
  24836. get$runtimeType$u(receiver) {
  24837. return J.getInterceptor$u(receiver).get$runtimeType(receiver);
  24838. },
  24839. get$separator$x(receiver) {
  24840. return J.getInterceptor$x(receiver).get$separator(receiver);
  24841. },
  24842. get$single$ax(receiver) {
  24843. return J.getInterceptor$ax(receiver).get$single(receiver);
  24844. },
  24845. get$sourceMap$x(receiver) {
  24846. return J.getInterceptor$x(receiver).get$sourceMap(receiver);
  24847. },
  24848. get$sourceMapIncludeSources$x(receiver) {
  24849. return J.getInterceptor$x(receiver).get$sourceMapIncludeSources(receiver);
  24850. },
  24851. get$span$z(receiver) {
  24852. return J.getInterceptor$z(receiver).get$span(receiver);
  24853. },
  24854. get$start$z(receiver) {
  24855. return J.getInterceptor$z(receiver).get$start(receiver);
  24856. },
  24857. get$stderr$x(receiver) {
  24858. return J.getInterceptor$x(receiver).get$stderr(receiver);
  24859. },
  24860. get$stdin$x(receiver) {
  24861. return J.getInterceptor$x(receiver).get$stdin(receiver);
  24862. },
  24863. get$style$x(receiver) {
  24864. return J.getInterceptor$x(receiver).get$style(receiver);
  24865. },
  24866. get$syntax$x(receiver) {
  24867. return J.getInterceptor$x(receiver).get$syntax(receiver);
  24868. },
  24869. get$trace$z(receiver) {
  24870. return J.getInterceptor$z(receiver).get$trace(receiver);
  24871. },
  24872. get$url$x(receiver) {
  24873. return J.getInterceptor$x(receiver).get$url(receiver);
  24874. },
  24875. get$values$z(receiver) {
  24876. return J.getInterceptor$z(receiver).get$values(receiver);
  24877. },
  24878. get$verbose$x(receiver) {
  24879. return J.getInterceptor$x(receiver).get$verbose(receiver);
  24880. },
  24881. get$warn$x(receiver) {
  24882. return J.getInterceptor$x(receiver).get$warn(receiver);
  24883. },
  24884. $add$ansx(receiver, a0) {
  24885. if (typeof receiver == "number" && typeof a0 == "number")
  24886. return receiver + a0;
  24887. return J.getInterceptor$ansx(receiver).$add(receiver, a0);
  24888. },
  24889. $eq$(receiver, a0) {
  24890. if (receiver == null)
  24891. return a0 == null;
  24892. if (typeof receiver != "object")
  24893. return a0 != null && receiver === a0;
  24894. return J.getInterceptor$(receiver).$eq(receiver, a0);
  24895. },
  24896. $index$asx(receiver, a0) {
  24897. if (typeof a0 === "number")
  24898. if (receiver.constructor == Array || typeof receiver == "string" || A.isJsIndexable(receiver, receiver[init.dispatchPropertyName]))
  24899. if (a0 >>> 0 === a0 && a0 < receiver.length)
  24900. return receiver[a0];
  24901. return J.getInterceptor$asx(receiver).$index(receiver, a0);
  24902. },
  24903. $indexSet$ax(receiver, a0, a1) {
  24904. if (typeof a0 === "number")
  24905. if ((receiver.constructor == Array || A.isJsIndexable(receiver, receiver[init.dispatchPropertyName])) && !receiver.immutable$list && a0 >>> 0 === a0 && a0 < receiver.length)
  24906. return receiver[a0] = a1;
  24907. return J.getInterceptor$ax(receiver).$indexSet(receiver, a0, a1);
  24908. },
  24909. $set$2$x(receiver, a0, a1) {
  24910. return J.getInterceptor$x(receiver).$set$2(receiver, a0, a1);
  24911. },
  24912. add$1$ax(receiver, a0) {
  24913. return J.getInterceptor$ax(receiver).add$1(receiver, a0);
  24914. },
  24915. addAll$1$ax(receiver, a0) {
  24916. return J.getInterceptor$ax(receiver).addAll$1(receiver, a0);
  24917. },
  24918. allMatches$1$s(receiver, a0) {
  24919. return J.getInterceptor$s(receiver).allMatches$1(receiver, a0);
  24920. },
  24921. allMatches$2$s(receiver, a0, a1) {
  24922. return J.getInterceptor$s(receiver).allMatches$2(receiver, a0, a1);
  24923. },
  24924. any$1$ax(receiver, a0) {
  24925. return J.getInterceptor$ax(receiver).any$1(receiver, a0);
  24926. },
  24927. apply$2$x(receiver, a0, a1) {
  24928. return J.getInterceptor$x(receiver).apply$2(receiver, a0, a1);
  24929. },
  24930. asImmutable$0$x(receiver) {
  24931. return J.getInterceptor$x(receiver).asImmutable$0(receiver);
  24932. },
  24933. asMutable$0$x(receiver) {
  24934. return J.getInterceptor$x(receiver).asMutable$0(receiver);
  24935. },
  24936. canonicalize$4$baseImporter$baseUrl$forImport$x(receiver, a0, a1, a2, a3) {
  24937. return J.getInterceptor$x(receiver).canonicalize$4$baseImporter$baseUrl$forImport(receiver, a0, a1, a2, a3);
  24938. },
  24939. cast$1$0$ax(receiver, $T1) {
  24940. return J.getInterceptor$ax(receiver).cast$1$0(receiver, $T1);
  24941. },
  24942. close$0$x(receiver) {
  24943. return J.getInterceptor$x(receiver).close$0(receiver);
  24944. },
  24945. codeUnitAt$1$s(receiver, a0) {
  24946. return J.getInterceptor$s(receiver).codeUnitAt$1(receiver, a0);
  24947. },
  24948. compareTo$1$ns(receiver, a0) {
  24949. return J.getInterceptor$ns(receiver).compareTo$1(receiver, a0);
  24950. },
  24951. contains$1$asx(receiver, a0) {
  24952. return J.getInterceptor$asx(receiver).contains$1(receiver, a0);
  24953. },
  24954. createInterface$1$x(receiver, a0) {
  24955. return J.getInterceptor$x(receiver).createInterface$1(receiver, a0);
  24956. },
  24957. elementAt$1$ax(receiver, a0) {
  24958. return J.getInterceptor$ax(receiver).elementAt$1(receiver, a0);
  24959. },
  24960. endsWith$1$s(receiver, a0) {
  24961. return J.getInterceptor$s(receiver).endsWith$1(receiver, a0);
  24962. },
  24963. every$1$ax(receiver, a0) {
  24964. return J.getInterceptor$ax(receiver).every$1(receiver, a0);
  24965. },
  24966. existsSync$1$x(receiver, a0) {
  24967. return J.getInterceptor$x(receiver).existsSync$1(receiver, a0);
  24968. },
  24969. expand$1$1$ax(receiver, a0, $T1) {
  24970. return J.getInterceptor$ax(receiver).expand$1$1(receiver, a0, $T1);
  24971. },
  24972. fillRange$3$ax(receiver, a0, a1, a2) {
  24973. return J.getInterceptor$ax(receiver).fillRange$3(receiver, a0, a1, a2);
  24974. },
  24975. fold$2$ax(receiver, a0, a1) {
  24976. return J.getInterceptor$ax(receiver).fold$2(receiver, a0, a1);
  24977. },
  24978. forEach$1$x(receiver, a0) {
  24979. return J.getInterceptor$x(receiver).forEach$1(receiver, a0);
  24980. },
  24981. getTime$0$x(receiver) {
  24982. return J.getInterceptor$x(receiver).getTime$0(receiver);
  24983. },
  24984. isDirectory$0$x(receiver) {
  24985. return J.getInterceptor$x(receiver).isDirectory$0(receiver);
  24986. },
  24987. isFile$0$x(receiver) {
  24988. return J.getInterceptor$x(receiver).isFile$0(receiver);
  24989. },
  24990. join$0$ax(receiver) {
  24991. return J.getInterceptor$ax(receiver).join$0(receiver);
  24992. },
  24993. join$1$ax(receiver, a0) {
  24994. return J.getInterceptor$ax(receiver).join$1(receiver, a0);
  24995. },
  24996. listen$1$z(receiver, a0) {
  24997. return J.getInterceptor$z(receiver).listen$1(receiver, a0);
  24998. },
  24999. map$1$1$ax(receiver, a0, $T1) {
  25000. return J.getInterceptor$ax(receiver).map$1$1(receiver, a0, $T1);
  25001. },
  25002. matchAsPrefix$2$s(receiver, a0, a1) {
  25003. return J.getInterceptor$s(receiver).matchAsPrefix$2(receiver, a0, a1);
  25004. },
  25005. mkdirSync$1$x(receiver, a0) {
  25006. return J.getInterceptor$x(receiver).mkdirSync$1(receiver, a0);
  25007. },
  25008. noSuchMethod$1$(receiver, a0) {
  25009. return J.getInterceptor$(receiver).noSuchMethod$1(receiver, a0);
  25010. },
  25011. on$2$x(receiver, a0, a1) {
  25012. return J.getInterceptor$x(receiver).on$2(receiver, a0, a1);
  25013. },
  25014. readFileSync$2$x(receiver, a0, a1) {
  25015. return J.getInterceptor$x(receiver).readFileSync$2(receiver, a0, a1);
  25016. },
  25017. readdirSync$1$x(receiver, a0) {
  25018. return J.getInterceptor$x(receiver).readdirSync$1(receiver, a0);
  25019. },
  25020. remove$1$z(receiver, a0) {
  25021. return J.getInterceptor$z(receiver).remove$1(receiver, a0);
  25022. },
  25023. run$0$x(receiver) {
  25024. return J.getInterceptor$x(receiver).run$0(receiver);
  25025. },
  25026. run$1$x(receiver, a0) {
  25027. return J.getInterceptor$x(receiver).run$1(receiver, a0);
  25028. },
  25029. setRange$4$ax(receiver, a0, a1, a2, a3) {
  25030. return J.getInterceptor$ax(receiver).setRange$4(receiver, a0, a1, a2, a3);
  25031. },
  25032. skip$1$ax(receiver, a0) {
  25033. return J.getInterceptor$ax(receiver).skip$1(receiver, a0);
  25034. },
  25035. sort$1$ax(receiver, a0) {
  25036. return J.getInterceptor$ax(receiver).sort$1(receiver, a0);
  25037. },
  25038. startsWith$1$s(receiver, a0) {
  25039. return J.getInterceptor$s(receiver).startsWith$1(receiver, a0);
  25040. },
  25041. statSync$1$x(receiver, a0) {
  25042. return J.getInterceptor$x(receiver).statSync$1(receiver, a0);
  25043. },
  25044. substring$1$s(receiver, a0) {
  25045. return J.getInterceptor$s(receiver).substring$1(receiver, a0);
  25046. },
  25047. substring$2$s(receiver, a0, a1) {
  25048. return J.getInterceptor$s(receiver).substring$2(receiver, a0, a1);
  25049. },
  25050. take$1$ax(receiver, a0) {
  25051. return J.getInterceptor$ax(receiver).take$1(receiver, a0);
  25052. },
  25053. then$1$1$x(receiver, a0, $T1) {
  25054. return J.getInterceptor$x(receiver).then$1$1(receiver, a0, $T1);
  25055. },
  25056. then$1$2$onError$x(receiver, a0, a1, $T1) {
  25057. return J.getInterceptor$x(receiver).then$1$2$onError(receiver, a0, a1, $T1);
  25058. },
  25059. then$2$x(receiver, a0, a1) {
  25060. return J.getInterceptor$x(receiver).then$2(receiver, a0, a1);
  25061. },
  25062. toArray$0$x(receiver) {
  25063. return J.getInterceptor$x(receiver).toArray$0(receiver);
  25064. },
  25065. toList$0$ax(receiver) {
  25066. return J.getInterceptor$ax(receiver).toList$0(receiver);
  25067. },
  25068. toList$1$growable$ax(receiver, a0) {
  25069. return J.getInterceptor$ax(receiver).toList$1$growable(receiver, a0);
  25070. },
  25071. toRadixString$1$n(receiver, a0) {
  25072. return J.getInterceptor$n(receiver).toRadixString$1(receiver, a0);
  25073. },
  25074. toSet$0$ax(receiver) {
  25075. return J.getInterceptor$ax(receiver).toSet$0(receiver);
  25076. },
  25077. toString$0$(receiver) {
  25078. return J.getInterceptor$(receiver).toString$0(receiver);
  25079. },
  25080. toString$1$color$(receiver, a0) {
  25081. return J.getInterceptor$(receiver).toString$1$color(receiver, a0);
  25082. },
  25083. trim$0$s(receiver) {
  25084. return J.getInterceptor$s(receiver).trim$0(receiver);
  25085. },
  25086. unlinkSync$1$x(receiver, a0) {
  25087. return J.getInterceptor$x(receiver).unlinkSync$1(receiver, a0);
  25088. },
  25089. watch$2$x(receiver, a0, a1) {
  25090. return J.getInterceptor$x(receiver).watch$2(receiver, a0, a1);
  25091. },
  25092. where$1$ax(receiver, a0) {
  25093. return J.getInterceptor$ax(receiver).where$1(receiver, a0);
  25094. },
  25095. write$1$x(receiver, a0) {
  25096. return J.getInterceptor$x(receiver).write$1(receiver, a0);
  25097. },
  25098. writeFileSync$2$x(receiver, a0, a1) {
  25099. return J.getInterceptor$x(receiver).writeFileSync$2(receiver, a0, a1);
  25100. },
  25101. yield$0$x(receiver) {
  25102. return J.getInterceptor$x(receiver).yield$0(receiver);
  25103. },
  25104. Interceptor: function Interceptor() {
  25105. },
  25106. JSBool: function JSBool() {
  25107. },
  25108. JSNull: function JSNull() {
  25109. },
  25110. JavaScriptObject: function JavaScriptObject() {
  25111. },
  25112. LegacyJavaScriptObject: function LegacyJavaScriptObject() {
  25113. },
  25114. PlainJavaScriptObject: function PlainJavaScriptObject() {
  25115. },
  25116. UnknownJavaScriptObject: function UnknownJavaScriptObject() {
  25117. },
  25118. JavaScriptFunction: function JavaScriptFunction() {
  25119. },
  25120. JSArray: function JSArray(t0) {
  25121. this.$ti = t0;
  25122. },
  25123. JSUnmodifiableArray: function JSUnmodifiableArray(t0) {
  25124. this.$ti = t0;
  25125. },
  25126. ArrayIterator: function ArrayIterator(t0, t1) {
  25127. var _ = this;
  25128. _._iterable = t0;
  25129. _._length = t1;
  25130. _._index = 0;
  25131. _._current = null;
  25132. },
  25133. JSNumber: function JSNumber() {
  25134. },
  25135. JSInt: function JSInt() {
  25136. },
  25137. JSNumNotInt: function JSNumNotInt() {
  25138. },
  25139. JSString: function JSString() {
  25140. }
  25141. },
  25142. B = {};
  25143. var holders = [A, J, B];
  25144. var $ = {};
  25145. A.JS_CONST.prototype = {};
  25146. J.Interceptor.prototype = {
  25147. $eq(receiver, other) {
  25148. return receiver === other;
  25149. },
  25150. get$hashCode(receiver) {
  25151. return A.Primitives_objectHashCode(receiver);
  25152. },
  25153. toString$0(receiver) {
  25154. return "Instance of '" + A.Primitives_objectTypeName(receiver) + "'";
  25155. },
  25156. noSuchMethod$1(receiver, invocation) {
  25157. throw A.wrapException(A.NoSuchMethodError$(receiver, invocation.get$memberName(), invocation.get$positionalArguments(), invocation.get$namedArguments()));
  25158. }
  25159. };
  25160. J.JSBool.prototype = {
  25161. toString$0(receiver) {
  25162. return String(receiver);
  25163. },
  25164. get$hashCode(receiver) {
  25165. return receiver ? 519018 : 218159;
  25166. },
  25167. $isbool: 1
  25168. };
  25169. J.JSNull.prototype = {
  25170. $eq(receiver, other) {
  25171. return null == other;
  25172. },
  25173. toString$0(receiver) {
  25174. return "null";
  25175. },
  25176. get$hashCode(receiver) {
  25177. return 0;
  25178. },
  25179. get$runtimeType(receiver) {
  25180. return B.Type_Null_Yyn;
  25181. },
  25182. $isNull: 1
  25183. };
  25184. J.JavaScriptObject.prototype = {};
  25185. J.LegacyJavaScriptObject.prototype = {
  25186. get$hashCode(receiver) {
  25187. return 0;
  25188. },
  25189. toString$0(receiver) {
  25190. return String(receiver);
  25191. },
  25192. $isPromise: 1,
  25193. $isJsSystemError: 1,
  25194. $is_NodeSassColor: 1,
  25195. $is_Channels: 1,
  25196. $isCompileOptions: 1,
  25197. $isCompileStringOptions: 1,
  25198. $isNodeCompileResult: 1,
  25199. $is_NodeException: 1,
  25200. $isFiber: 1,
  25201. $isJSFunction0: 1,
  25202. $isImmutableList: 1,
  25203. $isImmutableMap: 1,
  25204. $isNodeImporter0: 1,
  25205. $isNodeImporterResult0: 1,
  25206. $isNodeImporterResult1: 1,
  25207. $is_NodeSassList: 1,
  25208. $is_ConstructorOptions: 1,
  25209. $isWarnOptions: 1,
  25210. $isDebugOptions: 1,
  25211. $is_NodeSassMap: 1,
  25212. $is_NodeSassNumber: 1,
  25213. $is_ConstructorOptions0: 1,
  25214. $isJSClass0: 1,
  25215. $isRenderContextOptions0: 1,
  25216. $isRenderOptions: 1,
  25217. $isRenderResult: 1,
  25218. $is_NodeSassString: 1,
  25219. $is_ConstructorOptions1: 1,
  25220. $isJSUrl0: 1,
  25221. get$isTTY(obj) {
  25222. return obj.isTTY;
  25223. },
  25224. get$write(obj) {
  25225. return obj.write;
  25226. },
  25227. write$1(receiver, p0) {
  25228. return receiver.write(p0);
  25229. },
  25230. createInterface$1(receiver, p0) {
  25231. return receiver.createInterface(p0);
  25232. },
  25233. on$2(receiver, p0, p1) {
  25234. return receiver.on(p0, p1);
  25235. },
  25236. get$close(obj) {
  25237. return obj.close;
  25238. },
  25239. close$0(receiver) {
  25240. return receiver.close();
  25241. },
  25242. setPrompt$1(receiver, p0) {
  25243. return receiver.setPrompt(p0);
  25244. },
  25245. get$length(obj) {
  25246. return obj.length;
  25247. },
  25248. toString$0(receiver) {
  25249. return receiver.toString();
  25250. },
  25251. get$debug(obj) {
  25252. return obj.debug;
  25253. },
  25254. debug$2(receiver, p0, p1) {
  25255. return receiver.debug(p0, p1);
  25256. },
  25257. get$warn(obj) {
  25258. return obj.warn;
  25259. },
  25260. warn$1(receiver, p0) {
  25261. return receiver.warn(p0);
  25262. },
  25263. existsSync$1(receiver, p0) {
  25264. return receiver.existsSync(p0);
  25265. },
  25266. mkdirSync$1(receiver, p0) {
  25267. return receiver.mkdirSync(p0);
  25268. },
  25269. readdirSync$1(receiver, p0) {
  25270. return receiver.readdirSync(p0);
  25271. },
  25272. readFileSync$2(receiver, p0, p1) {
  25273. return receiver.readFileSync(p0, p1);
  25274. },
  25275. statSync$1(receiver, p0) {
  25276. return receiver.statSync(p0);
  25277. },
  25278. unlinkSync$1(receiver, p0) {
  25279. return receiver.unlinkSync(p0);
  25280. },
  25281. watch$2(receiver, p0, p1) {
  25282. return receiver.watch(p0, p1);
  25283. },
  25284. writeFileSync$2(receiver, p0, p1) {
  25285. return receiver.writeFileSync(p0, p1);
  25286. },
  25287. get$path(obj) {
  25288. return obj.path;
  25289. },
  25290. isDirectory$0(receiver) {
  25291. return receiver.isDirectory();
  25292. },
  25293. isFile$0(receiver) {
  25294. return receiver.isFile();
  25295. },
  25296. get$mtime(obj) {
  25297. return obj.mtime;
  25298. },
  25299. then$1$1(receiver, p0) {
  25300. return receiver.then(p0);
  25301. },
  25302. then$2(receiver, p0, p1) {
  25303. return receiver.then(p0, p1);
  25304. },
  25305. getTime$0(receiver) {
  25306. return receiver.getTime();
  25307. },
  25308. get$message(obj) {
  25309. return obj.message;
  25310. },
  25311. message$1(receiver, p0) {
  25312. return receiver.message(p0);
  25313. },
  25314. get$code(obj) {
  25315. return obj.code;
  25316. },
  25317. get$syscall(obj) {
  25318. return obj.syscall;
  25319. },
  25320. get$env(obj) {
  25321. return obj.env;
  25322. },
  25323. get$exitCode(obj) {
  25324. return obj.exitCode;
  25325. },
  25326. set$exitCode(obj, v) {
  25327. return obj.exitCode = v;
  25328. },
  25329. get$platform(obj) {
  25330. return obj.platform;
  25331. },
  25332. get$stderr(obj) {
  25333. return obj.stderr;
  25334. },
  25335. get$stdin(obj) {
  25336. return obj.stdin;
  25337. },
  25338. get$name(obj) {
  25339. return obj.name;
  25340. },
  25341. push$1(receiver, p0) {
  25342. return receiver.push(p0);
  25343. },
  25344. call$0(receiver) {
  25345. return receiver.call();
  25346. },
  25347. call$1(receiver, p0) {
  25348. return receiver.call(p0);
  25349. },
  25350. call$2(receiver, p0, p1) {
  25351. return receiver.call(p0, p1);
  25352. },
  25353. call$3$1(receiver, p0) {
  25354. return receiver.call(p0);
  25355. },
  25356. call$2$1(receiver, p0) {
  25357. return receiver.call(p0);
  25358. },
  25359. call$1$1(receiver, p0) {
  25360. return receiver.call(p0);
  25361. },
  25362. call$3(receiver, p0, p1, p2) {
  25363. return receiver.call(p0, p1, p2);
  25364. },
  25365. call$3$3(receiver, p0, p1, p2) {
  25366. return receiver.call(p0, p1, p2);
  25367. },
  25368. call$2$2(receiver, p0, p1) {
  25369. return receiver.call(p0, p1);
  25370. },
  25371. call$1$0(receiver) {
  25372. return receiver.call();
  25373. },
  25374. call$2$0(receiver) {
  25375. return receiver.call();
  25376. },
  25377. call$2$3(receiver, p0, p1, p2) {
  25378. return receiver.call(p0, p1, p2);
  25379. },
  25380. call$1$2(receiver, p0, p1) {
  25381. return receiver.call(p0, p1);
  25382. },
  25383. apply$2(receiver, p0, p1) {
  25384. return receiver.apply(p0, p1);
  25385. },
  25386. get$file(obj) {
  25387. return obj.file;
  25388. },
  25389. get$contents(obj) {
  25390. return obj.contents;
  25391. },
  25392. get$options(obj) {
  25393. return obj.options;
  25394. },
  25395. get$data(obj) {
  25396. return obj.data;
  25397. },
  25398. get$includePaths(obj) {
  25399. return obj.includePaths;
  25400. },
  25401. get$style(obj) {
  25402. return obj.style;
  25403. },
  25404. get$indentType(obj) {
  25405. return obj.indentType;
  25406. },
  25407. get$indentWidth(obj) {
  25408. return obj.indentWidth;
  25409. },
  25410. get$linefeed(obj) {
  25411. return obj.linefeed;
  25412. },
  25413. set$context(obj, v) {
  25414. return obj.context = v;
  25415. },
  25416. get$$prototype(obj) {
  25417. return obj.prototype;
  25418. },
  25419. get$dartValue(obj) {
  25420. return obj.dartValue;
  25421. },
  25422. set$dartValue(obj, v) {
  25423. return obj.dartValue = v;
  25424. },
  25425. get$red(obj) {
  25426. return obj.red;
  25427. },
  25428. get$green(obj) {
  25429. return obj.green;
  25430. },
  25431. get$blue(obj) {
  25432. return obj.blue;
  25433. },
  25434. get$hue(obj) {
  25435. return obj.hue;
  25436. },
  25437. get$saturation(obj) {
  25438. return obj.saturation;
  25439. },
  25440. get$lightness(obj) {
  25441. return obj.lightness;
  25442. },
  25443. get$whiteness(obj) {
  25444. return obj.whiteness;
  25445. },
  25446. get$blackness(obj) {
  25447. return obj.blackness;
  25448. },
  25449. get$alpha(obj) {
  25450. return obj.alpha;
  25451. },
  25452. get$alertAscii(obj) {
  25453. return obj.alertAscii;
  25454. },
  25455. get$alertColor(obj) {
  25456. return obj.alertColor;
  25457. },
  25458. get$loadPaths(obj) {
  25459. return obj.loadPaths;
  25460. },
  25461. get$quietDeps(obj) {
  25462. return obj.quietDeps;
  25463. },
  25464. get$verbose(obj) {
  25465. return obj.verbose;
  25466. },
  25467. get$charset(obj) {
  25468. return obj.charset;
  25469. },
  25470. get$sourceMap(obj) {
  25471. return obj.sourceMap;
  25472. },
  25473. get$sourceMapIncludeSources(obj) {
  25474. return obj.sourceMapIncludeSources;
  25475. },
  25476. get$logger(obj) {
  25477. return obj.logger;
  25478. },
  25479. get$importers(obj) {
  25480. return obj.importers;
  25481. },
  25482. get$functions(obj) {
  25483. return obj.functions;
  25484. },
  25485. get$syntax(obj) {
  25486. return obj.syntax;
  25487. },
  25488. get$url(obj) {
  25489. return obj.url;
  25490. },
  25491. get$importer(obj) {
  25492. return obj.importer;
  25493. },
  25494. get$_dartException(obj) {
  25495. return obj._dartException;
  25496. },
  25497. set$renderSync(obj, v) {
  25498. return obj.renderSync = v;
  25499. },
  25500. set$compileString(obj, v) {
  25501. return obj.compileString = v;
  25502. },
  25503. set$compileStringAsync(obj, v) {
  25504. return obj.compileStringAsync = v;
  25505. },
  25506. set$compile(obj, v) {
  25507. return obj.compile = v;
  25508. },
  25509. set$compileAsync(obj, v) {
  25510. return obj.compileAsync = v;
  25511. },
  25512. set$info(obj, v) {
  25513. return obj.info = v;
  25514. },
  25515. set$Exception(obj, v) {
  25516. return obj.Exception = v;
  25517. },
  25518. set$Logger(obj, v) {
  25519. return obj.Logger = v;
  25520. },
  25521. set$Value(obj, v) {
  25522. return obj.Value = v;
  25523. },
  25524. set$SassArgumentList(obj, v) {
  25525. return obj.SassArgumentList = v;
  25526. },
  25527. set$SassBoolean(obj, v) {
  25528. return obj.SassBoolean = v;
  25529. },
  25530. set$SassColor(obj, v) {
  25531. return obj.SassColor = v;
  25532. },
  25533. set$SassFunction(obj, v) {
  25534. return obj.SassFunction = v;
  25535. },
  25536. set$SassList(obj, v) {
  25537. return obj.SassList = v;
  25538. },
  25539. set$SassMap(obj, v) {
  25540. return obj.SassMap = v;
  25541. },
  25542. set$SassNumber(obj, v) {
  25543. return obj.SassNumber = v;
  25544. },
  25545. set$SassString(obj, v) {
  25546. return obj.SassString = v;
  25547. },
  25548. set$sassNull(obj, v) {
  25549. return obj.sassNull = v;
  25550. },
  25551. set$sassTrue(obj, v) {
  25552. return obj.sassTrue = v;
  25553. },
  25554. set$sassFalse(obj, v) {
  25555. return obj.sassFalse = v;
  25556. },
  25557. set$render(obj, v) {
  25558. return obj.render = v;
  25559. },
  25560. set$types(obj, v) {
  25561. return obj.types = v;
  25562. },
  25563. set$NULL(obj, v) {
  25564. return obj.NULL = v;
  25565. },
  25566. set$TRUE(obj, v) {
  25567. return obj.TRUE = v;
  25568. },
  25569. set$FALSE(obj, v) {
  25570. return obj.FALSE = v;
  25571. },
  25572. get$current(obj) {
  25573. return obj.current;
  25574. },
  25575. yield$0(receiver) {
  25576. return receiver.yield();
  25577. },
  25578. run$1$1(receiver, p0) {
  25579. return receiver.run(p0);
  25580. },
  25581. run$1(receiver, p0) {
  25582. return receiver.run(p0);
  25583. },
  25584. run$0(receiver) {
  25585. return receiver.run();
  25586. },
  25587. toArray$0(receiver) {
  25588. return receiver.toArray();
  25589. },
  25590. asMutable$0(receiver) {
  25591. return receiver.asMutable();
  25592. },
  25593. asImmutable$0(receiver) {
  25594. return receiver.asImmutable();
  25595. },
  25596. $set$2(receiver, p0, p1) {
  25597. return receiver.set(p0, p1);
  25598. },
  25599. forEach$1(receiver, p0) {
  25600. return receiver.forEach(p0);
  25601. },
  25602. get$canonicalize(obj) {
  25603. return obj.canonicalize;
  25604. },
  25605. canonicalize$1(receiver, p0) {
  25606. return receiver.canonicalize(p0);
  25607. },
  25608. get$load(obj) {
  25609. return obj.load;
  25610. },
  25611. load$1(receiver, p0) {
  25612. return receiver.load(p0);
  25613. },
  25614. get$findFileUrl(obj) {
  25615. return obj.findFileUrl;
  25616. },
  25617. get$sourceMapUrl(obj) {
  25618. return obj.sourceMapUrl;
  25619. },
  25620. get$separator(obj) {
  25621. return obj.separator;
  25622. },
  25623. get$brackets(obj) {
  25624. return obj.brackets;
  25625. },
  25626. get$numeratorUnits(obj) {
  25627. return obj.numeratorUnits;
  25628. },
  25629. get$denominatorUnits(obj) {
  25630. return obj.denominatorUnits;
  25631. },
  25632. get$indentedSyntax(obj) {
  25633. return obj.indentedSyntax;
  25634. },
  25635. get$omitSourceMapUrl(obj) {
  25636. return obj.omitSourceMapUrl;
  25637. },
  25638. get$outFile(obj) {
  25639. return obj.outFile;
  25640. },
  25641. get$outputStyle(obj) {
  25642. return obj.outputStyle;
  25643. },
  25644. get$fiber(obj) {
  25645. return obj.fiber;
  25646. },
  25647. get$sourceMapContents(obj) {
  25648. return obj.sourceMapContents;
  25649. },
  25650. get$sourceMapEmbed(obj) {
  25651. return obj.sourceMapEmbed;
  25652. },
  25653. get$sourceMapRoot(obj) {
  25654. return obj.sourceMapRoot;
  25655. },
  25656. set$cli_pkg_main_0_(obj, v) {
  25657. return obj.cli_pkg_main_0_ = v;
  25658. },
  25659. get$quotes(obj) {
  25660. return obj.quotes;
  25661. }
  25662. };
  25663. J.PlainJavaScriptObject.prototype = {};
  25664. J.UnknownJavaScriptObject.prototype = {};
  25665. J.JavaScriptFunction.prototype = {
  25666. toString$0(receiver) {
  25667. var dartClosure = receiver[$.$get$DART_CLOSURE_PROPERTY_NAME()];
  25668. if (dartClosure == null)
  25669. return this.super$LegacyJavaScriptObject$toString(receiver);
  25670. return "JavaScript function for " + A.S(J.toString$0$(dartClosure));
  25671. },
  25672. $isFunction: 1
  25673. };
  25674. J.JSArray.prototype = {
  25675. cast$1$0(receiver, $R) {
  25676. return new A.CastList(receiver, A._arrayInstanceType(receiver)._eval$1("@<1>")._bind$1($R)._eval$1("CastList<1,2>"));
  25677. },
  25678. add$1(receiver, value) {
  25679. if (!!receiver.fixed$length)
  25680. A.throwExpression(A.UnsupportedError$("add"));
  25681. receiver.push(value);
  25682. },
  25683. removeAt$1(receiver, index) {
  25684. var t1;
  25685. if (!!receiver.fixed$length)
  25686. A.throwExpression(A.UnsupportedError$("removeAt"));
  25687. t1 = receiver.length;
  25688. if (index >= t1)
  25689. throw A.wrapException(A.RangeError$value(index, null, null));
  25690. return receiver.splice(index, 1)[0];
  25691. },
  25692. insert$2(receiver, index, value) {
  25693. var t1;
  25694. if (!!receiver.fixed$length)
  25695. A.throwExpression(A.UnsupportedError$("insert"));
  25696. t1 = receiver.length;
  25697. if (index > t1)
  25698. throw A.wrapException(A.RangeError$value(index, null, null));
  25699. receiver.splice(index, 0, value);
  25700. },
  25701. insertAll$2(receiver, index, iterable) {
  25702. var insertionLength, end;
  25703. if (!!receiver.fixed$length)
  25704. A.throwExpression(A.UnsupportedError$("insertAll"));
  25705. A.RangeError_checkValueInInterval(index, 0, receiver.length, "index");
  25706. if (!type$.EfficientLengthIterable_dynamic._is(iterable))
  25707. iterable = J.toList$0$ax(iterable);
  25708. insertionLength = J.get$length$asx(iterable);
  25709. receiver.length = receiver.length + insertionLength;
  25710. end = index + insertionLength;
  25711. this.setRange$4(receiver, end, receiver.length, receiver, index);
  25712. this.setRange$3(receiver, index, end, iterable);
  25713. },
  25714. removeLast$0(receiver) {
  25715. if (!!receiver.fixed$length)
  25716. A.throwExpression(A.UnsupportedError$("removeLast"));
  25717. if (receiver.length === 0)
  25718. throw A.wrapException(A.diagnoseIndexError(receiver, -1));
  25719. return receiver.pop();
  25720. },
  25721. _removeWhere$2(receiver, test, removeMatching) {
  25722. var i, element, t1, retained = [],
  25723. end = receiver.length;
  25724. for (i = 0; i < end; ++i) {
  25725. element = receiver[i];
  25726. if (!test.call$1(element))
  25727. retained.push(element);
  25728. if (receiver.length !== end)
  25729. throw A.wrapException(A.ConcurrentModificationError$(receiver));
  25730. }
  25731. t1 = retained.length;
  25732. if (t1 === end)
  25733. return;
  25734. this.set$length(receiver, t1);
  25735. for (i = 0; i < retained.length; ++i)
  25736. receiver[i] = retained[i];
  25737. },
  25738. where$1(receiver, f) {
  25739. return new A.WhereIterable(receiver, f, A._arrayInstanceType(receiver)._eval$1("WhereIterable<1>"));
  25740. },
  25741. expand$1$1(receiver, f, $T) {
  25742. return new A.ExpandIterable(receiver, f, A._arrayInstanceType(receiver)._eval$1("@<1>")._bind$1($T)._eval$1("ExpandIterable<1,2>"));
  25743. },
  25744. addAll$1(receiver, collection) {
  25745. var t1;
  25746. if (!!receiver.fixed$length)
  25747. A.throwExpression(A.UnsupportedError$("addAll"));
  25748. if (Array.isArray(collection)) {
  25749. this._addAllFromArray$1(receiver, collection);
  25750. return;
  25751. }
  25752. for (t1 = J.get$iterator$ax(collection); t1.moveNext$0();)
  25753. receiver.push(t1.get$current(t1));
  25754. },
  25755. _addAllFromArray$1(receiver, array) {
  25756. var i,
  25757. len = array.length;
  25758. if (len === 0)
  25759. return;
  25760. if (receiver === array)
  25761. throw A.wrapException(A.ConcurrentModificationError$(receiver));
  25762. for (i = 0; i < len; ++i)
  25763. receiver.push(array[i]);
  25764. },
  25765. clear$0(receiver) {
  25766. if (!!receiver.fixed$length)
  25767. A.throwExpression(A.UnsupportedError$("clear"));
  25768. receiver.length = 0;
  25769. },
  25770. map$1$1(receiver, f, $T) {
  25771. return new A.MappedListIterable(receiver, f, A._arrayInstanceType(receiver)._eval$1("@<1>")._bind$1($T)._eval$1("MappedListIterable<1,2>"));
  25772. },
  25773. join$1(receiver, separator) {
  25774. var i,
  25775. list = A.List_List$filled(receiver.length, "", false, type$.String);
  25776. for (i = 0; i < receiver.length; ++i)
  25777. list[i] = A.S(receiver[i]);
  25778. return list.join(separator);
  25779. },
  25780. join$0($receiver) {
  25781. return this.join$1($receiver, "");
  25782. },
  25783. take$1(receiver, n) {
  25784. return A.SubListIterable$(receiver, 0, A.checkNotNullable(n, "count", type$.int), A._arrayInstanceType(receiver)._precomputed1);
  25785. },
  25786. skip$1(receiver, n) {
  25787. return A.SubListIterable$(receiver, n, null, A._arrayInstanceType(receiver)._precomputed1);
  25788. },
  25789. fold$1$2(receiver, initialValue, combine) {
  25790. var value, i,
  25791. $length = receiver.length;
  25792. for (value = initialValue, i = 0; i < $length; ++i) {
  25793. value = combine.call$2(value, receiver[i]);
  25794. if (receiver.length !== $length)
  25795. throw A.wrapException(A.ConcurrentModificationError$(receiver));
  25796. }
  25797. return value;
  25798. },
  25799. fold$2($receiver, initialValue, combine) {
  25800. return this.fold$1$2($receiver, initialValue, combine, type$.dynamic);
  25801. },
  25802. elementAt$1(receiver, index) {
  25803. return receiver[index];
  25804. },
  25805. sublist$2(receiver, start, end) {
  25806. var end0 = receiver.length;
  25807. if (start > end0)
  25808. throw A.wrapException(A.RangeError$range(start, 0, end0, "start", null));
  25809. if (end == null)
  25810. end = end0;
  25811. else if (end < start || end > end0)
  25812. throw A.wrapException(A.RangeError$range(end, start, end0, "end", null));
  25813. if (start === end)
  25814. return A._setArrayType([], A._arrayInstanceType(receiver));
  25815. return A._setArrayType(receiver.slice(start, end), A._arrayInstanceType(receiver));
  25816. },
  25817. sublist$1($receiver, start) {
  25818. return this.sublist$2($receiver, start, null);
  25819. },
  25820. getRange$2(receiver, start, end) {
  25821. A.RangeError_checkValidRange(start, end, receiver.length);
  25822. return A.SubListIterable$(receiver, start, end, A._arrayInstanceType(receiver)._precomputed1);
  25823. },
  25824. get$first(receiver) {
  25825. if (receiver.length > 0)
  25826. return receiver[0];
  25827. throw A.wrapException(A.IterableElementError_noElement());
  25828. },
  25829. get$last(receiver) {
  25830. var t1 = receiver.length;
  25831. if (t1 > 0)
  25832. return receiver[t1 - 1];
  25833. throw A.wrapException(A.IterableElementError_noElement());
  25834. },
  25835. get$single(receiver) {
  25836. var t1 = receiver.length;
  25837. if (t1 === 1)
  25838. return receiver[0];
  25839. if (t1 === 0)
  25840. throw A.wrapException(A.IterableElementError_noElement());
  25841. throw A.wrapException(A.IterableElementError_tooMany());
  25842. },
  25843. removeRange$2(receiver, start, end) {
  25844. if (!!receiver.fixed$length)
  25845. A.throwExpression(A.UnsupportedError$("removeRange"));
  25846. A.RangeError_checkValidRange(start, end, receiver.length);
  25847. receiver.splice(start, end - start);
  25848. },
  25849. setRange$4(receiver, start, end, iterable, skipCount) {
  25850. var $length, otherList, otherStart, t1, i;
  25851. if (!!receiver.immutable$list)
  25852. A.throwExpression(A.UnsupportedError$("setRange"));
  25853. A.RangeError_checkValidRange(start, end, receiver.length);
  25854. $length = end - start;
  25855. if ($length === 0)
  25856. return;
  25857. A.RangeError_checkNotNegative(skipCount, "skipCount");
  25858. if (type$.List_dynamic._is(iterable)) {
  25859. otherList = iterable;
  25860. otherStart = skipCount;
  25861. } else {
  25862. otherList = J.skip$1$ax(iterable, skipCount).toList$1$growable(0, false);
  25863. otherStart = 0;
  25864. }
  25865. t1 = J.getInterceptor$asx(otherList);
  25866. if (otherStart + $length > t1.get$length(otherList))
  25867. throw A.wrapException(A.IterableElementError_tooFew());
  25868. if (otherStart < start)
  25869. for (i = $length - 1; i >= 0; --i)
  25870. receiver[start + i] = t1.$index(otherList, otherStart + i);
  25871. else
  25872. for (i = 0; i < $length; ++i)
  25873. receiver[start + i] = t1.$index(otherList, otherStart + i);
  25874. },
  25875. setRange$3($receiver, start, end, iterable) {
  25876. return this.setRange$4($receiver, start, end, iterable, 0);
  25877. },
  25878. fillRange$3(receiver, start, end, fillValue) {
  25879. var i;
  25880. if (!!receiver.immutable$list)
  25881. A.throwExpression(A.UnsupportedError$("fill range"));
  25882. A.RangeError_checkValidRange(start, end, receiver.length);
  25883. A._arrayInstanceType(receiver)._precomputed1._as(fillValue);
  25884. for (i = start; i < end; ++i)
  25885. receiver[i] = fillValue;
  25886. },
  25887. any$1(receiver, test) {
  25888. var i,
  25889. end = receiver.length;
  25890. for (i = 0; i < end; ++i) {
  25891. if (test.call$1(receiver[i]))
  25892. return true;
  25893. if (receiver.length !== end)
  25894. throw A.wrapException(A.ConcurrentModificationError$(receiver));
  25895. }
  25896. return false;
  25897. },
  25898. every$1(receiver, test) {
  25899. var i,
  25900. end = receiver.length;
  25901. for (i = 0; i < end; ++i) {
  25902. if (!test.call$1(receiver[i]))
  25903. return false;
  25904. if (receiver.length !== end)
  25905. throw A.wrapException(A.ConcurrentModificationError$(receiver));
  25906. }
  25907. return true;
  25908. },
  25909. get$reversed(receiver) {
  25910. return new A.ReversedListIterable(receiver, A._arrayInstanceType(receiver)._eval$1("ReversedListIterable<1>"));
  25911. },
  25912. sort$1(receiver, compare) {
  25913. if (!!receiver.immutable$list)
  25914. A.throwExpression(A.UnsupportedError$("sort"));
  25915. A.Sort_sort(receiver, compare == null ? J._interceptors_JSArray__compareAny$closure() : compare);
  25916. },
  25917. sort$0($receiver) {
  25918. return this.sort$1($receiver, null);
  25919. },
  25920. indexOf$1(receiver, element) {
  25921. var i,
  25922. $length = receiver.length;
  25923. if (0 >= $length)
  25924. return -1;
  25925. for (i = 0; i < $length; ++i)
  25926. if (J.$eq$(receiver[i], element))
  25927. return i;
  25928. return -1;
  25929. },
  25930. contains$1(receiver, other) {
  25931. var i;
  25932. for (i = 0; i < receiver.length; ++i)
  25933. if (J.$eq$(receiver[i], other))
  25934. return true;
  25935. return false;
  25936. },
  25937. get$isEmpty(receiver) {
  25938. return receiver.length === 0;
  25939. },
  25940. get$isNotEmpty(receiver) {
  25941. return receiver.length !== 0;
  25942. },
  25943. toString$0(receiver) {
  25944. return A.IterableBase_iterableToFullString(receiver, "[", "]");
  25945. },
  25946. toList$1$growable(receiver, growable) {
  25947. var t1 = A._setArrayType(receiver.slice(0), A._arrayInstanceType(receiver));
  25948. return t1;
  25949. },
  25950. toList$0($receiver) {
  25951. return this.toList$1$growable($receiver, true);
  25952. },
  25953. toSet$0(receiver) {
  25954. return A.LinkedHashSet_LinkedHashSet$from(receiver, A._arrayInstanceType(receiver)._precomputed1);
  25955. },
  25956. get$iterator(receiver) {
  25957. return new J.ArrayIterator(receiver, receiver.length);
  25958. },
  25959. get$hashCode(receiver) {
  25960. return A.Primitives_objectHashCode(receiver);
  25961. },
  25962. get$length(receiver) {
  25963. return receiver.length;
  25964. },
  25965. set$length(receiver, newLength) {
  25966. if (!!receiver.fixed$length)
  25967. A.throwExpression(A.UnsupportedError$("set length"));
  25968. if (newLength < 0)
  25969. throw A.wrapException(A.RangeError$range(newLength, 0, null, "newLength", null));
  25970. if (newLength > receiver.length)
  25971. A._arrayInstanceType(receiver)._precomputed1._as(null);
  25972. receiver.length = newLength;
  25973. },
  25974. $index(receiver, index) {
  25975. if (!(index >= 0 && index < receiver.length))
  25976. throw A.wrapException(A.diagnoseIndexError(receiver, index));
  25977. return receiver[index];
  25978. },
  25979. $indexSet(receiver, index, value) {
  25980. if (!!receiver.immutable$list)
  25981. A.throwExpression(A.UnsupportedError$("indexed set"));
  25982. if (!(index >= 0 && index < receiver.length))
  25983. throw A.wrapException(A.diagnoseIndexError(receiver, index));
  25984. receiver[index] = value;
  25985. },
  25986. $add(receiver, other) {
  25987. var t1 = A.List_List$of(receiver, true, A._arrayInstanceType(receiver)._precomputed1);
  25988. this.addAll$1(t1, other);
  25989. return t1;
  25990. },
  25991. indexWhere$1(receiver, test) {
  25992. var i;
  25993. if (0 >= receiver.length)
  25994. return -1;
  25995. for (i = 0; i < receiver.length; ++i)
  25996. if (test.call$1(receiver[i]))
  25997. return i;
  25998. return -1;
  25999. },
  26000. $isEfficientLengthIterable: 1,
  26001. $isIterable: 1,
  26002. $isList: 1
  26003. };
  26004. J.JSUnmodifiableArray.prototype = {};
  26005. J.ArrayIterator.prototype = {
  26006. get$current(_) {
  26007. var t1 = this._current;
  26008. return t1 == null ? A._instanceType(this)._precomputed1._as(t1) : t1;
  26009. },
  26010. moveNext$0() {
  26011. var t2, _this = this,
  26012. t1 = _this._iterable,
  26013. $length = t1.length;
  26014. if (_this._length !== $length)
  26015. throw A.wrapException(A.throwConcurrentModificationError(t1));
  26016. t2 = _this._index;
  26017. if (t2 >= $length) {
  26018. _this._current = null;
  26019. return false;
  26020. }
  26021. _this._current = t1[t2];
  26022. _this._index = t2 + 1;
  26023. return true;
  26024. }
  26025. };
  26026. J.JSNumber.prototype = {
  26027. compareTo$1(receiver, b) {
  26028. var bIsNegative;
  26029. if (receiver < b)
  26030. return -1;
  26031. else if (receiver > b)
  26032. return 1;
  26033. else if (receiver === b) {
  26034. if (receiver === 0) {
  26035. bIsNegative = this.get$isNegative(b);
  26036. if (this.get$isNegative(receiver) === bIsNegative)
  26037. return 0;
  26038. if (this.get$isNegative(receiver))
  26039. return -1;
  26040. return 1;
  26041. }
  26042. return 0;
  26043. } else if (isNaN(receiver)) {
  26044. if (isNaN(b))
  26045. return 0;
  26046. return 1;
  26047. } else
  26048. return -1;
  26049. },
  26050. get$isNegative(receiver) {
  26051. return receiver === 0 ? 1 / receiver < 0 : receiver < 0;
  26052. },
  26053. ceil$0(receiver) {
  26054. var truncated, d;
  26055. if (receiver >= 0) {
  26056. if (receiver <= 2147483647) {
  26057. truncated = receiver | 0;
  26058. return receiver === truncated ? truncated : truncated + 1;
  26059. }
  26060. } else if (receiver >= -2147483648)
  26061. return receiver | 0;
  26062. d = Math.ceil(receiver);
  26063. if (isFinite(d))
  26064. return d;
  26065. throw A.wrapException(A.UnsupportedError$("" + receiver + ".ceil()"));
  26066. },
  26067. floor$0(receiver) {
  26068. var truncated, d;
  26069. if (receiver >= 0) {
  26070. if (receiver <= 2147483647)
  26071. return receiver | 0;
  26072. } else if (receiver >= -2147483648) {
  26073. truncated = receiver | 0;
  26074. return receiver === truncated ? truncated : truncated - 1;
  26075. }
  26076. d = Math.floor(receiver);
  26077. if (isFinite(d))
  26078. return d;
  26079. throw A.wrapException(A.UnsupportedError$("" + receiver + ".floor()"));
  26080. },
  26081. round$0(receiver) {
  26082. if (receiver > 0) {
  26083. if (receiver !== 1 / 0)
  26084. return Math.round(receiver);
  26085. } else if (receiver > -1 / 0)
  26086. return 0 - Math.round(0 - receiver);
  26087. throw A.wrapException(A.UnsupportedError$("" + receiver + ".round()"));
  26088. },
  26089. clamp$2(receiver, lowerLimit, upperLimit) {
  26090. if (B.JSInt_methods.compareTo$1(lowerLimit, upperLimit) > 0)
  26091. throw A.wrapException(A.argumentErrorValue(lowerLimit));
  26092. if (this.compareTo$1(receiver, lowerLimit) < 0)
  26093. return lowerLimit;
  26094. if (this.compareTo$1(receiver, upperLimit) > 0)
  26095. return upperLimit;
  26096. return receiver;
  26097. },
  26098. toRadixString$1(receiver, radix) {
  26099. var result, match, exponent, t1;
  26100. if (radix < 2 || radix > 36)
  26101. throw A.wrapException(A.RangeError$range(radix, 2, 36, "radix", null));
  26102. result = receiver.toString(radix);
  26103. if (B.JSString_methods.codeUnitAt$1(result, result.length - 1) !== 41)
  26104. return result;
  26105. match = /^([\da-z]+)(?:\.([\da-z]+))?\(e\+(\d+)\)$/.exec(result);
  26106. if (match == null)
  26107. A.throwExpression(A.UnsupportedError$("Unexpected toString result: " + result));
  26108. result = match[1];
  26109. exponent = +match[3];
  26110. t1 = match[2];
  26111. if (t1 != null) {
  26112. result += t1;
  26113. exponent -= t1.length;
  26114. }
  26115. return result + B.JSString_methods.$mul("0", exponent);
  26116. },
  26117. toString$0(receiver) {
  26118. if (receiver === 0 && 1 / receiver < 0)
  26119. return "-0.0";
  26120. else
  26121. return "" + receiver;
  26122. },
  26123. get$hashCode(receiver) {
  26124. var absolute, floorLog2, factor, scaled,
  26125. intValue = receiver | 0;
  26126. if (receiver === intValue)
  26127. return intValue & 536870911;
  26128. absolute = Math.abs(receiver);
  26129. floorLog2 = Math.log(absolute) / 0.6931471805599453 | 0;
  26130. factor = Math.pow(2, floorLog2);
  26131. scaled = absolute < 1 ? absolute / factor : factor / absolute;
  26132. return ((scaled * 9007199254740992 | 0) + (scaled * 3542243181176521 | 0)) * 599197 + floorLog2 * 1259 & 536870911;
  26133. },
  26134. $add(receiver, other) {
  26135. return receiver + other;
  26136. },
  26137. $mod(receiver, other) {
  26138. var result = receiver % other;
  26139. if (result === 0)
  26140. return 0;
  26141. if (result > 0)
  26142. return result;
  26143. if (other < 0)
  26144. return result - other;
  26145. else
  26146. return result + other;
  26147. },
  26148. $tdiv(receiver, other) {
  26149. if ((receiver | 0) === receiver)
  26150. if (other >= 1 || other < -1)
  26151. return receiver / other | 0;
  26152. return this._tdivSlow$1(receiver, other);
  26153. },
  26154. _tdivFast$1(receiver, other) {
  26155. return (receiver | 0) === receiver ? receiver / other | 0 : this._tdivSlow$1(receiver, other);
  26156. },
  26157. _tdivSlow$1(receiver, other) {
  26158. var quotient = receiver / other;
  26159. if (quotient >= -2147483648 && quotient <= 2147483647)
  26160. return quotient | 0;
  26161. if (quotient > 0) {
  26162. if (quotient !== 1 / 0)
  26163. return Math.floor(quotient);
  26164. } else if (quotient > -1 / 0)
  26165. return Math.ceil(quotient);
  26166. throw A.wrapException(A.UnsupportedError$("Result of truncating division is " + A.S(quotient) + ": " + A.S(receiver) + " ~/ " + other));
  26167. },
  26168. _shrOtherPositive$1(receiver, other) {
  26169. var t1;
  26170. if (receiver > 0)
  26171. t1 = this._shrBothPositive$1(receiver, other);
  26172. else {
  26173. t1 = other > 31 ? 31 : other;
  26174. t1 = receiver >> t1 >>> 0;
  26175. }
  26176. return t1;
  26177. },
  26178. _shrReceiverPositive$1(receiver, other) {
  26179. if (0 > other)
  26180. throw A.wrapException(A.argumentErrorValue(other));
  26181. return this._shrBothPositive$1(receiver, other);
  26182. },
  26183. _shrBothPositive$1(receiver, other) {
  26184. return other > 31 ? 0 : receiver >>> other;
  26185. },
  26186. $isComparable: 1,
  26187. $isdouble: 1,
  26188. $isnum: 1
  26189. };
  26190. J.JSInt.prototype = {$isint: 1};
  26191. J.JSNumNotInt.prototype = {};
  26192. J.JSString.prototype = {
  26193. codeUnitAt$1(receiver, index) {
  26194. if (index < 0)
  26195. throw A.wrapException(A.diagnoseIndexError(receiver, index));
  26196. if (index >= receiver.length)
  26197. A.throwExpression(A.diagnoseIndexError(receiver, index));
  26198. return receiver.charCodeAt(index);
  26199. },
  26200. _codeUnitAt$1(receiver, index) {
  26201. if (index >= receiver.length)
  26202. throw A.wrapException(A.diagnoseIndexError(receiver, index));
  26203. return receiver.charCodeAt(index);
  26204. },
  26205. allMatches$2(receiver, string, start) {
  26206. var t1 = string.length;
  26207. if (start > t1)
  26208. throw A.wrapException(A.RangeError$range(start, 0, t1, null, null));
  26209. return new A._StringAllMatchesIterable(string, receiver, start);
  26210. },
  26211. allMatches$1($receiver, string) {
  26212. return this.allMatches$2($receiver, string, 0);
  26213. },
  26214. matchAsPrefix$2(receiver, string, start) {
  26215. var t1, i, _null = null;
  26216. if (start < 0 || start > string.length)
  26217. throw A.wrapException(A.RangeError$range(start, 0, string.length, _null, _null));
  26218. t1 = receiver.length;
  26219. if (start + t1 > string.length)
  26220. return _null;
  26221. for (i = 0; i < t1; ++i)
  26222. if (this.codeUnitAt$1(string, start + i) !== this._codeUnitAt$1(receiver, i))
  26223. return _null;
  26224. return new A.StringMatch(start, receiver);
  26225. },
  26226. $add(receiver, other) {
  26227. return receiver + other;
  26228. },
  26229. endsWith$1(receiver, other) {
  26230. var otherLength = other.length,
  26231. t1 = receiver.length;
  26232. if (otherLength > t1)
  26233. return false;
  26234. return other === this.substring$1(receiver, t1 - otherLength);
  26235. },
  26236. replaceFirst$2(receiver, from, to) {
  26237. A.RangeError_checkValueInInterval(0, 0, receiver.length, "startIndex");
  26238. return A.stringReplaceFirstUnchecked(receiver, from, to, 0);
  26239. },
  26240. split$1(receiver, pattern) {
  26241. if (typeof pattern == "string")
  26242. return A._setArrayType(receiver.split(pattern), type$.JSArray_String);
  26243. else if (pattern instanceof A.JSSyntaxRegExp && pattern.get$_nativeAnchoredVersion().exec("").length - 2 === 0)
  26244. return A._setArrayType(receiver.split(pattern._nativeRegExp), type$.JSArray_String);
  26245. else
  26246. return this._defaultSplit$1(receiver, pattern);
  26247. },
  26248. replaceRange$3(receiver, start, end, replacement) {
  26249. var e = A.RangeError_checkValidRange(start, end, receiver.length);
  26250. return A.stringReplaceRangeUnchecked(receiver, start, e, replacement);
  26251. },
  26252. _defaultSplit$1(receiver, pattern) {
  26253. var t1, start, $length, match, matchStart, matchEnd,
  26254. result = A._setArrayType([], type$.JSArray_String);
  26255. for (t1 = J.allMatches$1$s(pattern, receiver), t1 = t1.get$iterator(t1), start = 0, $length = 1; t1.moveNext$0();) {
  26256. match = t1.get$current(t1);
  26257. matchStart = match.get$start(match);
  26258. matchEnd = match.get$end(match);
  26259. $length = matchEnd - matchStart;
  26260. if ($length === 0 && start === matchStart)
  26261. continue;
  26262. result.push(this.substring$2(receiver, start, matchStart));
  26263. start = matchEnd;
  26264. }
  26265. if (start < receiver.length || $length > 0)
  26266. result.push(this.substring$1(receiver, start));
  26267. return result;
  26268. },
  26269. startsWith$2(receiver, pattern, index) {
  26270. var endIndex;
  26271. if (index < 0 || index > receiver.length)
  26272. throw A.wrapException(A.RangeError$range(index, 0, receiver.length, null, null));
  26273. if (typeof pattern == "string") {
  26274. endIndex = index + pattern.length;
  26275. if (endIndex > receiver.length)
  26276. return false;
  26277. return pattern === receiver.substring(index, endIndex);
  26278. }
  26279. return J.matchAsPrefix$2$s(pattern, receiver, index) != null;
  26280. },
  26281. startsWith$1($receiver, pattern) {
  26282. return this.startsWith$2($receiver, pattern, 0);
  26283. },
  26284. substring$2(receiver, start, end) {
  26285. return receiver.substring(start, A.RangeError_checkValidRange(start, end, receiver.length));
  26286. },
  26287. substring$1($receiver, start) {
  26288. return this.substring$2($receiver, start, null);
  26289. },
  26290. trim$0(receiver) {
  26291. var startIndex, t1, endIndex0,
  26292. result = receiver.trim(),
  26293. endIndex = result.length;
  26294. if (endIndex === 0)
  26295. return result;
  26296. if (this._codeUnitAt$1(result, 0) === 133) {
  26297. startIndex = J.JSString__skipLeadingWhitespace(result, 1);
  26298. if (startIndex === endIndex)
  26299. return "";
  26300. } else
  26301. startIndex = 0;
  26302. t1 = endIndex - 1;
  26303. endIndex0 = this.codeUnitAt$1(result, t1) === 133 ? J.JSString__skipTrailingWhitespace(result, t1) : endIndex;
  26304. if (startIndex === 0 && endIndex0 === endIndex)
  26305. return result;
  26306. return result.substring(startIndex, endIndex0);
  26307. },
  26308. trimLeft$0(receiver) {
  26309. var result, startIndex;
  26310. if (typeof receiver.trimLeft != "undefined") {
  26311. result = receiver.trimLeft();
  26312. if (result.length === 0)
  26313. return result;
  26314. startIndex = this._codeUnitAt$1(result, 0) === 133 ? J.JSString__skipLeadingWhitespace(result, 1) : 0;
  26315. } else {
  26316. startIndex = J.JSString__skipLeadingWhitespace(receiver, 0);
  26317. result = receiver;
  26318. }
  26319. if (startIndex === 0)
  26320. return result;
  26321. if (startIndex === result.length)
  26322. return "";
  26323. return result.substring(startIndex);
  26324. },
  26325. trimRight$0(receiver) {
  26326. var result, endIndex, t1;
  26327. if (typeof receiver.trimRight != "undefined") {
  26328. result = receiver.trimRight();
  26329. endIndex = result.length;
  26330. if (endIndex === 0)
  26331. return result;
  26332. t1 = endIndex - 1;
  26333. if (this.codeUnitAt$1(result, t1) === 133)
  26334. endIndex = J.JSString__skipTrailingWhitespace(result, t1);
  26335. } else {
  26336. endIndex = J.JSString__skipTrailingWhitespace(receiver, receiver.length);
  26337. result = receiver;
  26338. }
  26339. if (endIndex === result.length)
  26340. return result;
  26341. if (endIndex === 0)
  26342. return "";
  26343. return result.substring(0, endIndex);
  26344. },
  26345. $mul(receiver, times) {
  26346. var s, result;
  26347. if (0 >= times)
  26348. return "";
  26349. if (times === 1 || receiver.length === 0)
  26350. return receiver;
  26351. if (times !== times >>> 0)
  26352. throw A.wrapException(B.C_OutOfMemoryError);
  26353. for (s = receiver, result = ""; true;) {
  26354. if ((times & 1) === 1)
  26355. result = s + result;
  26356. times = times >>> 1;
  26357. if (times === 0)
  26358. break;
  26359. s += s;
  26360. }
  26361. return result;
  26362. },
  26363. padLeft$2(receiver, width, padding) {
  26364. var delta = width - receiver.length;
  26365. if (delta <= 0)
  26366. return receiver;
  26367. return this.$mul(padding, delta) + receiver;
  26368. },
  26369. padRight$1(receiver, width) {
  26370. var delta = width - receiver.length;
  26371. if (delta <= 0)
  26372. return receiver;
  26373. return receiver + this.$mul(" ", delta);
  26374. },
  26375. indexOf$2(receiver, pattern, start) {
  26376. var t1;
  26377. if (start < 0 || start > receiver.length)
  26378. throw A.wrapException(A.RangeError$range(start, 0, receiver.length, null, null));
  26379. t1 = receiver.indexOf(pattern, start);
  26380. return t1;
  26381. },
  26382. indexOf$1($receiver, pattern) {
  26383. return this.indexOf$2($receiver, pattern, 0);
  26384. },
  26385. lastIndexOf$2(receiver, pattern, start) {
  26386. var t1, t2, i;
  26387. if (start == null)
  26388. start = receiver.length;
  26389. else if (start < 0 || start > receiver.length)
  26390. throw A.wrapException(A.RangeError$range(start, 0, receiver.length, null, null));
  26391. if (typeof pattern == "string") {
  26392. t1 = pattern.length;
  26393. t2 = receiver.length;
  26394. if (start + t1 > t2)
  26395. start = t2 - t1;
  26396. return receiver.lastIndexOf(pattern, start);
  26397. }
  26398. for (t1 = J.getInterceptor$s(pattern), i = start; i >= 0; --i)
  26399. if (t1.matchAsPrefix$2(pattern, receiver, i) != null)
  26400. return i;
  26401. return -1;
  26402. },
  26403. lastIndexOf$1($receiver, pattern) {
  26404. return this.lastIndexOf$2($receiver, pattern, null);
  26405. },
  26406. contains$2(receiver, other, startIndex) {
  26407. var t1 = receiver.length;
  26408. if (startIndex > t1)
  26409. throw A.wrapException(A.RangeError$range(startIndex, 0, t1, null, null));
  26410. return A.stringContainsUnchecked(receiver, other, startIndex);
  26411. },
  26412. contains$1($receiver, other) {
  26413. return this.contains$2($receiver, other, 0);
  26414. },
  26415. get$isNotEmpty(receiver) {
  26416. return receiver.length !== 0;
  26417. },
  26418. compareTo$1(receiver, other) {
  26419. var t1;
  26420. if (receiver === other)
  26421. t1 = 0;
  26422. else
  26423. t1 = receiver < other ? -1 : 1;
  26424. return t1;
  26425. },
  26426. toString$0(receiver) {
  26427. return receiver;
  26428. },
  26429. get$hashCode(receiver) {
  26430. var t1, hash, i;
  26431. for (t1 = receiver.length, hash = 0, i = 0; i < t1; ++i) {
  26432. hash = hash + receiver.charCodeAt(i) & 536870911;
  26433. hash = hash + ((hash & 524287) << 10) & 536870911;
  26434. hash ^= hash >> 6;
  26435. }
  26436. hash = hash + ((hash & 67108863) << 3) & 536870911;
  26437. hash ^= hash >> 11;
  26438. return hash + ((hash & 16383) << 15) & 536870911;
  26439. },
  26440. get$length(receiver) {
  26441. return receiver.length;
  26442. },
  26443. $isComparable: 1,
  26444. $isString: 1
  26445. };
  26446. A._CastIterableBase.prototype = {
  26447. get$iterator(_) {
  26448. var t1 = A._instanceType(this);
  26449. return new A.CastIterator(J.get$iterator$ax(this.get$_source()), t1._eval$1("@<1>")._bind$1(t1._rest[1])._eval$1("CastIterator<1,2>"));
  26450. },
  26451. get$length(_) {
  26452. return J.get$length$asx(this.get$_source());
  26453. },
  26454. get$isEmpty(_) {
  26455. return J.get$isEmpty$asx(this.get$_source());
  26456. },
  26457. get$isNotEmpty(_) {
  26458. return J.get$isNotEmpty$asx(this.get$_source());
  26459. },
  26460. skip$1(_, count) {
  26461. var t1 = A._instanceType(this);
  26462. return A.CastIterable_CastIterable(J.skip$1$ax(this.get$_source(), count), t1._precomputed1, t1._rest[1]);
  26463. },
  26464. take$1(_, count) {
  26465. var t1 = A._instanceType(this);
  26466. return A.CastIterable_CastIterable(J.take$1$ax(this.get$_source(), count), t1._precomputed1, t1._rest[1]);
  26467. },
  26468. elementAt$1(_, index) {
  26469. return A._instanceType(this)._rest[1]._as(J.elementAt$1$ax(this.get$_source(), index));
  26470. },
  26471. get$first(_) {
  26472. return A._instanceType(this)._rest[1]._as(J.get$first$ax(this.get$_source()));
  26473. },
  26474. get$last(_) {
  26475. return A._instanceType(this)._rest[1]._as(J.get$last$ax(this.get$_source()));
  26476. },
  26477. get$single(_) {
  26478. return A._instanceType(this)._rest[1]._as(J.get$single$ax(this.get$_source()));
  26479. },
  26480. contains$1(_, other) {
  26481. return J.contains$1$asx(this.get$_source(), other);
  26482. },
  26483. toString$0(_) {
  26484. return J.toString$0$(this.get$_source());
  26485. }
  26486. };
  26487. A.CastIterator.prototype = {
  26488. moveNext$0() {
  26489. return this._source.moveNext$0();
  26490. },
  26491. get$current(_) {
  26492. var t1 = this._source;
  26493. return this.$ti._rest[1]._as(t1.get$current(t1));
  26494. }
  26495. };
  26496. A.CastIterable.prototype = {
  26497. get$_source() {
  26498. return this._source;
  26499. }
  26500. };
  26501. A._EfficientLengthCastIterable.prototype = {$isEfficientLengthIterable: 1};
  26502. A._CastListBase.prototype = {
  26503. $index(_, index) {
  26504. return this.$ti._rest[1]._as(J.$index$asx(this._source, index));
  26505. },
  26506. $indexSet(_, index, value) {
  26507. J.$indexSet$ax(this._source, index, this.$ti._precomputed1._as(value));
  26508. },
  26509. set$length(_, $length) {
  26510. J.set$length$asx(this._source, $length);
  26511. },
  26512. add$1(_, value) {
  26513. J.add$1$ax(this._source, this.$ti._precomputed1._as(value));
  26514. },
  26515. sort$1(_, compare) {
  26516. var t1 = compare == null ? null : new A._CastListBase_sort_closure(this, compare);
  26517. J.sort$1$ax(this._source, t1);
  26518. },
  26519. setRange$4(_, start, end, iterable, skipCount) {
  26520. var t1 = this.$ti;
  26521. J.setRange$4$ax(this._source, start, end, A.CastIterable_CastIterable(iterable, t1._rest[1], t1._precomputed1), skipCount);
  26522. },
  26523. fillRange$3(_, start, end, fillValue) {
  26524. J.fillRange$3$ax(this._source, start, end, this.$ti._precomputed1._as(fillValue));
  26525. },
  26526. $isEfficientLengthIterable: 1,
  26527. $isList: 1
  26528. };
  26529. A._CastListBase_sort_closure.prototype = {
  26530. call$2(v1, v2) {
  26531. var t1 = this.$this.$ti._rest[1];
  26532. return this.compare.call$2(t1._as(v1), t1._as(v2));
  26533. },
  26534. $signature() {
  26535. return this.$this.$ti._eval$1("int(1,1)");
  26536. }
  26537. };
  26538. A.CastList.prototype = {
  26539. cast$1$0(_, $R) {
  26540. return new A.CastList(this._source, this.$ti._eval$1("@<1>")._bind$1($R)._eval$1("CastList<1,2>"));
  26541. },
  26542. get$_source() {
  26543. return this._source;
  26544. }
  26545. };
  26546. A.CastSet.prototype = {
  26547. add$1(_, value) {
  26548. return this._source.add$1(0, this.$ti._precomputed1._as(value));
  26549. },
  26550. addAll$1(_, elements) {
  26551. var t1 = this.$ti;
  26552. this._source.addAll$1(0, A.CastIterable_CastIterable(elements, t1._rest[1], t1._precomputed1));
  26553. },
  26554. difference$1(other) {
  26555. var t1, _this = this;
  26556. if (_this._emptySet != null)
  26557. return _this._conditionalAdd$2(other, false);
  26558. t1 = _this.$ti;
  26559. return new A.CastSet(_this._source.difference$1(other), null, t1._eval$1("@<1>")._bind$1(t1._rest[1])._eval$1("CastSet<1,2>"));
  26560. },
  26561. _conditionalAdd$2(other, otherContains) {
  26562. var t3, castElement,
  26563. emptySet = this._emptySet,
  26564. t1 = this.$ti,
  26565. t2 = t1._rest[1],
  26566. result = emptySet == null ? A.LinkedHashSet_LinkedHashSet(t2) : emptySet.call$1$0(t2);
  26567. for (t2 = this._source, t2 = t2.get$iterator(t2), t3 = other._source, t1 = t1._rest[1]; t2.moveNext$0();) {
  26568. castElement = t1._as(t2.get$current(t2));
  26569. if (otherContains === t3.contains$1(0, castElement))
  26570. result.add$1(0, castElement);
  26571. }
  26572. return result;
  26573. },
  26574. toSet$0(_) {
  26575. var emptySet = this._emptySet,
  26576. t1 = this.$ti._rest[1],
  26577. result = emptySet == null ? A.LinkedHashSet_LinkedHashSet(t1) : emptySet.call$1$0(t1);
  26578. result.addAll$1(0, this);
  26579. return result;
  26580. },
  26581. $isEfficientLengthIterable: 1,
  26582. $isSet: 1,
  26583. get$_source() {
  26584. return this._source;
  26585. }
  26586. };
  26587. A.CastMap.prototype = {
  26588. cast$2$0(_, RK, RV) {
  26589. var t1 = this.$ti;
  26590. return new A.CastMap(this._source, t1._eval$1("@<1>")._bind$1(t1._rest[1])._bind$1(RK)._bind$1(RV)._eval$1("CastMap<1,2,3,4>"));
  26591. },
  26592. containsKey$1(key) {
  26593. return this._source.containsKey$1(key);
  26594. },
  26595. $index(_, key) {
  26596. return this.$ti._eval$1("4?")._as(this._source.$index(0, key));
  26597. },
  26598. $indexSet(_, key, value) {
  26599. var t1 = this.$ti;
  26600. this._source.$indexSet(0, t1._precomputed1._as(key), t1._rest[1]._as(value));
  26601. },
  26602. addAll$1(_, other) {
  26603. var t1 = this.$ti;
  26604. this._source.addAll$1(0, new A.CastMap(other, t1._eval$1("@<3>")._bind$1(t1._rest[3])._bind$1(t1._precomputed1)._bind$1(t1._rest[1])._eval$1("CastMap<1,2,3,4>")));
  26605. },
  26606. remove$1(_, key) {
  26607. return this.$ti._eval$1("4?")._as(this._source.remove$1(0, key));
  26608. },
  26609. forEach$1(_, f) {
  26610. this._source.forEach$1(0, new A.CastMap_forEach_closure(this, f));
  26611. },
  26612. get$keys(_) {
  26613. var t1 = this._source,
  26614. t2 = this.$ti;
  26615. return A.CastIterable_CastIterable(t1.get$keys(t1), t2._precomputed1, t2._rest[2]);
  26616. },
  26617. get$values(_) {
  26618. var t1 = this._source,
  26619. t2 = this.$ti;
  26620. return A.CastIterable_CastIterable(t1.get$values(t1), t2._rest[1], t2._rest[3]);
  26621. },
  26622. get$length(_) {
  26623. var t1 = this._source;
  26624. return t1.get$length(t1);
  26625. },
  26626. get$isEmpty(_) {
  26627. var t1 = this._source;
  26628. return t1.get$isEmpty(t1);
  26629. },
  26630. get$isNotEmpty(_) {
  26631. var t1 = this._source;
  26632. return t1.get$isNotEmpty(t1);
  26633. },
  26634. get$entries(_) {
  26635. var t1 = this._source;
  26636. return t1.get$entries(t1).map$1$1(0, new A.CastMap_entries_closure(this), this.$ti._eval$1("MapEntry<3,4>"));
  26637. }
  26638. };
  26639. A.CastMap_forEach_closure.prototype = {
  26640. call$2(key, value) {
  26641. var t1 = this.$this.$ti;
  26642. this.f.call$2(t1._rest[2]._as(key), t1._rest[3]._as(value));
  26643. },
  26644. $signature() {
  26645. return this.$this.$ti._eval$1("~(1,2)");
  26646. }
  26647. };
  26648. A.CastMap_entries_closure.prototype = {
  26649. call$1(e) {
  26650. var t1 = this.$this.$ti,
  26651. t2 = t1._rest[3];
  26652. return new A.MapEntry(t1._rest[2]._as(e.key), t2._as(e.value), t1._eval$1("@<3>")._bind$1(t2)._eval$1("MapEntry<1,2>"));
  26653. },
  26654. $signature() {
  26655. return this.$this.$ti._eval$1("MapEntry<3,4>(MapEntry<1,2>)");
  26656. }
  26657. };
  26658. A.LateError.prototype = {
  26659. toString$0(_) {
  26660. return "LateInitializationError: " + this._message;
  26661. }
  26662. };
  26663. A.CodeUnits.prototype = {
  26664. get$length(_) {
  26665. return this.__internal$_string.length;
  26666. },
  26667. $index(_, i) {
  26668. return B.JSString_methods.codeUnitAt$1(this.__internal$_string, i);
  26669. }
  26670. };
  26671. A.nullFuture_closure.prototype = {
  26672. call$0() {
  26673. return A.Future_Future$value(null, type$.Null);
  26674. },
  26675. $signature: 2
  26676. };
  26677. A.SentinelValue.prototype = {};
  26678. A.EfficientLengthIterable.prototype = {};
  26679. A.ListIterable.prototype = {
  26680. get$iterator(_) {
  26681. return new A.ListIterator(this, this.get$length(this));
  26682. },
  26683. get$isEmpty(_) {
  26684. return this.get$length(this) === 0;
  26685. },
  26686. get$first(_) {
  26687. if (this.get$length(this) === 0)
  26688. throw A.wrapException(A.IterableElementError_noElement());
  26689. return this.elementAt$1(0, 0);
  26690. },
  26691. get$last(_) {
  26692. var _this = this;
  26693. if (_this.get$length(_this) === 0)
  26694. throw A.wrapException(A.IterableElementError_noElement());
  26695. return _this.elementAt$1(0, _this.get$length(_this) - 1);
  26696. },
  26697. get$single(_) {
  26698. var _this = this;
  26699. if (_this.get$length(_this) === 0)
  26700. throw A.wrapException(A.IterableElementError_noElement());
  26701. if (_this.get$length(_this) > 1)
  26702. throw A.wrapException(A.IterableElementError_tooMany());
  26703. return _this.elementAt$1(0, 0);
  26704. },
  26705. contains$1(_, element) {
  26706. var i, _this = this,
  26707. $length = _this.get$length(_this);
  26708. for (i = 0; i < $length; ++i) {
  26709. if (J.$eq$(_this.elementAt$1(0, i), element))
  26710. return true;
  26711. if ($length !== _this.get$length(_this))
  26712. throw A.wrapException(A.ConcurrentModificationError$(_this));
  26713. }
  26714. return false;
  26715. },
  26716. every$1(_, test) {
  26717. var i, _this = this,
  26718. $length = _this.get$length(_this);
  26719. for (i = 0; i < $length; ++i) {
  26720. if (!test.call$1(_this.elementAt$1(0, i)))
  26721. return false;
  26722. if ($length !== _this.get$length(_this))
  26723. throw A.wrapException(A.ConcurrentModificationError$(_this));
  26724. }
  26725. return true;
  26726. },
  26727. any$1(_, test) {
  26728. var i, _this = this,
  26729. $length = _this.get$length(_this);
  26730. for (i = 0; i < $length; ++i) {
  26731. if (test.call$1(_this.elementAt$1(0, i)))
  26732. return true;
  26733. if ($length !== _this.get$length(_this))
  26734. throw A.wrapException(A.ConcurrentModificationError$(_this));
  26735. }
  26736. return false;
  26737. },
  26738. join$1(_, separator) {
  26739. var first, t1, i, _this = this,
  26740. $length = _this.get$length(_this);
  26741. if (separator.length !== 0) {
  26742. if ($length === 0)
  26743. return "";
  26744. first = A.S(_this.elementAt$1(0, 0));
  26745. if ($length !== _this.get$length(_this))
  26746. throw A.wrapException(A.ConcurrentModificationError$(_this));
  26747. for (t1 = first, i = 1; i < $length; ++i) {
  26748. t1 = t1 + separator + A.S(_this.elementAt$1(0, i));
  26749. if ($length !== _this.get$length(_this))
  26750. throw A.wrapException(A.ConcurrentModificationError$(_this));
  26751. }
  26752. return t1.charCodeAt(0) == 0 ? t1 : t1;
  26753. } else {
  26754. for (i = 0, t1 = ""; i < $length; ++i) {
  26755. t1 += A.S(_this.elementAt$1(0, i));
  26756. if ($length !== _this.get$length(_this))
  26757. throw A.wrapException(A.ConcurrentModificationError$(_this));
  26758. }
  26759. return t1.charCodeAt(0) == 0 ? t1 : t1;
  26760. }
  26761. },
  26762. join$0($receiver) {
  26763. return this.join$1($receiver, "");
  26764. },
  26765. where$1(_, test) {
  26766. return this.super$Iterable$where(0, test);
  26767. },
  26768. map$1$1(_, toElement, $T) {
  26769. return new A.MappedListIterable(this, toElement, A._instanceType(this)._eval$1("@<ListIterable.E>")._bind$1($T)._eval$1("MappedListIterable<1,2>"));
  26770. },
  26771. reduce$1(_, combine) {
  26772. var value, i, _this = this,
  26773. $length = _this.get$length(_this);
  26774. if ($length === 0)
  26775. throw A.wrapException(A.IterableElementError_noElement());
  26776. value = _this.elementAt$1(0, 0);
  26777. for (i = 1; i < $length; ++i) {
  26778. value = combine.call$2(value, _this.elementAt$1(0, i));
  26779. if ($length !== _this.get$length(_this))
  26780. throw A.wrapException(A.ConcurrentModificationError$(_this));
  26781. }
  26782. return value;
  26783. },
  26784. fold$1$2(_, initialValue, combine) {
  26785. var value, i, _this = this,
  26786. $length = _this.get$length(_this);
  26787. for (value = initialValue, i = 0; i < $length; ++i) {
  26788. value = combine.call$2(value, _this.elementAt$1(0, i));
  26789. if ($length !== _this.get$length(_this))
  26790. throw A.wrapException(A.ConcurrentModificationError$(_this));
  26791. }
  26792. return value;
  26793. },
  26794. fold$2($receiver, initialValue, combine) {
  26795. return this.fold$1$2($receiver, initialValue, combine, type$.dynamic);
  26796. },
  26797. skip$1(_, count) {
  26798. return A.SubListIterable$(this, count, null, A._instanceType(this)._eval$1("ListIterable.E"));
  26799. },
  26800. take$1(_, count) {
  26801. return A.SubListIterable$(this, 0, A.checkNotNullable(count, "count", type$.int), A._instanceType(this)._eval$1("ListIterable.E"));
  26802. },
  26803. toList$1$growable(_, growable) {
  26804. return A.List_List$of(this, true, A._instanceType(this)._eval$1("ListIterable.E"));
  26805. },
  26806. toList$0($receiver) {
  26807. return this.toList$1$growable($receiver, true);
  26808. },
  26809. toSet$0(_) {
  26810. var i, _this = this,
  26811. result = A.LinkedHashSet_LinkedHashSet(A._instanceType(_this)._eval$1("ListIterable.E"));
  26812. for (i = 0; i < _this.get$length(_this); ++i)
  26813. result.add$1(0, _this.elementAt$1(0, i));
  26814. return result;
  26815. }
  26816. };
  26817. A.SubListIterable.prototype = {
  26818. SubListIterable$3(_iterable, _start, _endOrLength, $E) {
  26819. var endOrLength,
  26820. t1 = this.__internal$_start;
  26821. A.RangeError_checkNotNegative(t1, "start");
  26822. endOrLength = this._endOrLength;
  26823. if (endOrLength != null) {
  26824. A.RangeError_checkNotNegative(endOrLength, "end");
  26825. if (t1 > endOrLength)
  26826. throw A.wrapException(A.RangeError$range(t1, 0, endOrLength, "start", null));
  26827. }
  26828. },
  26829. get$_endIndex() {
  26830. var $length = J.get$length$asx(this.__internal$_iterable),
  26831. endOrLength = this._endOrLength;
  26832. if (endOrLength == null || endOrLength > $length)
  26833. return $length;
  26834. return endOrLength;
  26835. },
  26836. get$_startIndex() {
  26837. var $length = J.get$length$asx(this.__internal$_iterable),
  26838. t1 = this.__internal$_start;
  26839. if (t1 > $length)
  26840. return $length;
  26841. return t1;
  26842. },
  26843. get$length(_) {
  26844. var endOrLength,
  26845. $length = J.get$length$asx(this.__internal$_iterable),
  26846. t1 = this.__internal$_start;
  26847. if (t1 >= $length)
  26848. return 0;
  26849. endOrLength = this._endOrLength;
  26850. if (endOrLength == null || endOrLength >= $length)
  26851. return $length - t1;
  26852. return endOrLength - t1;
  26853. },
  26854. elementAt$1(_, index) {
  26855. var _this = this,
  26856. realIndex = _this.get$_startIndex() + index;
  26857. if (index < 0 || realIndex >= _this.get$_endIndex())
  26858. throw A.wrapException(A.IndexError$(index, _this, "index", null, null));
  26859. return J.elementAt$1$ax(_this.__internal$_iterable, realIndex);
  26860. },
  26861. skip$1(_, count) {
  26862. var newStart, endOrLength, _this = this;
  26863. A.RangeError_checkNotNegative(count, "count");
  26864. newStart = _this.__internal$_start + count;
  26865. endOrLength = _this._endOrLength;
  26866. if (endOrLength != null && newStart >= endOrLength)
  26867. return new A.EmptyIterable(_this.$ti._eval$1("EmptyIterable<1>"));
  26868. return A.SubListIterable$(_this.__internal$_iterable, newStart, endOrLength, _this.$ti._precomputed1);
  26869. },
  26870. take$1(_, count) {
  26871. var endOrLength, t1, newEnd, _this = this;
  26872. A.RangeError_checkNotNegative(count, "count");
  26873. endOrLength = _this._endOrLength;
  26874. t1 = _this.__internal$_start;
  26875. newEnd = t1 + count;
  26876. if (endOrLength == null)
  26877. return A.SubListIterable$(_this.__internal$_iterable, t1, newEnd, _this.$ti._precomputed1);
  26878. else {
  26879. if (endOrLength < newEnd)
  26880. return _this;
  26881. return A.SubListIterable$(_this.__internal$_iterable, t1, newEnd, _this.$ti._precomputed1);
  26882. }
  26883. },
  26884. toList$1$growable(_, growable) {
  26885. var $length, result, i, _this = this,
  26886. start = _this.__internal$_start,
  26887. t1 = _this.__internal$_iterable,
  26888. t2 = J.getInterceptor$asx(t1),
  26889. end = t2.get$length(t1),
  26890. endOrLength = _this._endOrLength;
  26891. if (endOrLength != null && endOrLength < end)
  26892. end = endOrLength;
  26893. $length = end - start;
  26894. if ($length <= 0) {
  26895. t1 = _this.$ti._precomputed1;
  26896. return growable ? J.JSArray_JSArray$growable(0, t1) : J.JSArray_JSArray$fixed(0, t1);
  26897. }
  26898. result = A.List_List$filled($length, t2.elementAt$1(t1, start), growable, _this.$ti._precomputed1);
  26899. for (i = 1; i < $length; ++i) {
  26900. result[i] = t2.elementAt$1(t1, start + i);
  26901. if (t2.get$length(t1) < end)
  26902. throw A.wrapException(A.ConcurrentModificationError$(_this));
  26903. }
  26904. return result;
  26905. },
  26906. toList$0($receiver) {
  26907. return this.toList$1$growable($receiver, true);
  26908. }
  26909. };
  26910. A.ListIterator.prototype = {
  26911. get$current(_) {
  26912. var t1 = this.__internal$_current;
  26913. return t1 == null ? A._instanceType(this)._precomputed1._as(t1) : t1;
  26914. },
  26915. moveNext$0() {
  26916. var t3, _this = this,
  26917. t1 = _this.__internal$_iterable,
  26918. t2 = J.getInterceptor$asx(t1),
  26919. $length = t2.get$length(t1);
  26920. if (_this.__internal$_length !== $length)
  26921. throw A.wrapException(A.ConcurrentModificationError$(t1));
  26922. t3 = _this.__internal$_index;
  26923. if (t3 >= $length) {
  26924. _this.__internal$_current = null;
  26925. return false;
  26926. }
  26927. _this.__internal$_current = t2.elementAt$1(t1, t3);
  26928. ++_this.__internal$_index;
  26929. return true;
  26930. }
  26931. };
  26932. A.MappedIterable.prototype = {
  26933. get$iterator(_) {
  26934. return new A.MappedIterator(J.get$iterator$ax(this.__internal$_iterable), this._f);
  26935. },
  26936. get$length(_) {
  26937. return J.get$length$asx(this.__internal$_iterable);
  26938. },
  26939. get$isEmpty(_) {
  26940. return J.get$isEmpty$asx(this.__internal$_iterable);
  26941. },
  26942. get$first(_) {
  26943. return this._f.call$1(J.get$first$ax(this.__internal$_iterable));
  26944. },
  26945. get$last(_) {
  26946. return this._f.call$1(J.get$last$ax(this.__internal$_iterable));
  26947. },
  26948. get$single(_) {
  26949. return this._f.call$1(J.get$single$ax(this.__internal$_iterable));
  26950. },
  26951. elementAt$1(_, index) {
  26952. return this._f.call$1(J.elementAt$1$ax(this.__internal$_iterable, index));
  26953. }
  26954. };
  26955. A.EfficientLengthMappedIterable.prototype = {$isEfficientLengthIterable: 1};
  26956. A.MappedIterator.prototype = {
  26957. moveNext$0() {
  26958. var _this = this,
  26959. t1 = _this._iterator;
  26960. if (t1.moveNext$0()) {
  26961. _this.__internal$_current = _this._f.call$1(t1.get$current(t1));
  26962. return true;
  26963. }
  26964. _this.__internal$_current = null;
  26965. return false;
  26966. },
  26967. get$current(_) {
  26968. var t1 = this.__internal$_current;
  26969. return t1 == null ? A._instanceType(this)._rest[1]._as(t1) : t1;
  26970. }
  26971. };
  26972. A.MappedListIterable.prototype = {
  26973. get$length(_) {
  26974. return J.get$length$asx(this._source);
  26975. },
  26976. elementAt$1(_, index) {
  26977. return this._f.call$1(J.elementAt$1$ax(this._source, index));
  26978. }
  26979. };
  26980. A.WhereIterable.prototype = {
  26981. get$iterator(_) {
  26982. return new A.WhereIterator(J.get$iterator$ax(this.__internal$_iterable), this._f);
  26983. },
  26984. map$1$1(_, toElement, $T) {
  26985. return new A.MappedIterable(this, toElement, this.$ti._eval$1("@<1>")._bind$1($T)._eval$1("MappedIterable<1,2>"));
  26986. }
  26987. };
  26988. A.WhereIterator.prototype = {
  26989. moveNext$0() {
  26990. var t1, t2;
  26991. for (t1 = this._iterator, t2 = this._f; t1.moveNext$0();)
  26992. if (t2.call$1(t1.get$current(t1)))
  26993. return true;
  26994. return false;
  26995. },
  26996. get$current(_) {
  26997. var t1 = this._iterator;
  26998. return t1.get$current(t1);
  26999. }
  27000. };
  27001. A.ExpandIterable.prototype = {
  27002. get$iterator(_) {
  27003. return new A.ExpandIterator(J.get$iterator$ax(this.__internal$_iterable), this._f, B.C_EmptyIterator);
  27004. }
  27005. };
  27006. A.ExpandIterator.prototype = {
  27007. get$current(_) {
  27008. var t1 = this.__internal$_current;
  27009. return t1 == null ? A._instanceType(this)._rest[1]._as(t1) : t1;
  27010. },
  27011. moveNext$0() {
  27012. var t2, t3, _this = this,
  27013. t1 = _this._currentExpansion;
  27014. if (t1 == null)
  27015. return false;
  27016. for (t2 = _this._iterator, t3 = _this._f; !t1.moveNext$0();) {
  27017. _this.__internal$_current = null;
  27018. if (t2.moveNext$0()) {
  27019. _this._currentExpansion = null;
  27020. t1 = J.get$iterator$ax(t3.call$1(t2.get$current(t2)));
  27021. _this._currentExpansion = t1;
  27022. } else
  27023. return false;
  27024. }
  27025. t1 = _this._currentExpansion;
  27026. _this.__internal$_current = t1.get$current(t1);
  27027. return true;
  27028. }
  27029. };
  27030. A.TakeIterable.prototype = {
  27031. get$iterator(_) {
  27032. return new A.TakeIterator(J.get$iterator$ax(this.__internal$_iterable), this._takeCount);
  27033. }
  27034. };
  27035. A.EfficientLengthTakeIterable.prototype = {
  27036. get$length(_) {
  27037. var iterableLength = J.get$length$asx(this.__internal$_iterable),
  27038. t1 = this._takeCount;
  27039. if (iterableLength > t1)
  27040. return t1;
  27041. return iterableLength;
  27042. },
  27043. $isEfficientLengthIterable: 1
  27044. };
  27045. A.TakeIterator.prototype = {
  27046. moveNext$0() {
  27047. if (--this._remaining >= 0)
  27048. return this._iterator.moveNext$0();
  27049. this._remaining = -1;
  27050. return false;
  27051. },
  27052. get$current(_) {
  27053. var t1;
  27054. if (this._remaining < 0) {
  27055. A._instanceType(this)._precomputed1._as(null);
  27056. return null;
  27057. }
  27058. t1 = this._iterator;
  27059. return t1.get$current(t1);
  27060. }
  27061. };
  27062. A.SkipIterable.prototype = {
  27063. skip$1(_, count) {
  27064. A.ArgumentError_checkNotNull(count, "count");
  27065. A.RangeError_checkNotNegative(count, "count");
  27066. return new A.SkipIterable(this.__internal$_iterable, this._skipCount + count, A._instanceType(this)._eval$1("SkipIterable<1>"));
  27067. },
  27068. get$iterator(_) {
  27069. return new A.SkipIterator(J.get$iterator$ax(this.__internal$_iterable), this._skipCount);
  27070. }
  27071. };
  27072. A.EfficientLengthSkipIterable.prototype = {
  27073. get$length(_) {
  27074. var $length = J.get$length$asx(this.__internal$_iterable) - this._skipCount;
  27075. if ($length >= 0)
  27076. return $length;
  27077. return 0;
  27078. },
  27079. skip$1(_, count) {
  27080. A.ArgumentError_checkNotNull(count, "count");
  27081. A.RangeError_checkNotNegative(count, "count");
  27082. return new A.EfficientLengthSkipIterable(this.__internal$_iterable, this._skipCount + count, this.$ti);
  27083. },
  27084. $isEfficientLengthIterable: 1
  27085. };
  27086. A.SkipIterator.prototype = {
  27087. moveNext$0() {
  27088. var t1, i;
  27089. for (t1 = this._iterator, i = 0; i < this._skipCount; ++i)
  27090. t1.moveNext$0();
  27091. this._skipCount = 0;
  27092. return t1.moveNext$0();
  27093. },
  27094. get$current(_) {
  27095. var t1 = this._iterator;
  27096. return t1.get$current(t1);
  27097. }
  27098. };
  27099. A.SkipWhileIterable.prototype = {
  27100. get$iterator(_) {
  27101. return new A.SkipWhileIterator(J.get$iterator$ax(this.__internal$_iterable), this._f);
  27102. }
  27103. };
  27104. A.SkipWhileIterator.prototype = {
  27105. moveNext$0() {
  27106. var t1, t2, _this = this;
  27107. if (!_this._hasSkipped) {
  27108. _this._hasSkipped = true;
  27109. for (t1 = _this._iterator, t2 = _this._f; t1.moveNext$0();)
  27110. if (!t2.call$1(t1.get$current(t1)))
  27111. return true;
  27112. }
  27113. return _this._iterator.moveNext$0();
  27114. },
  27115. get$current(_) {
  27116. var t1 = this._iterator;
  27117. return t1.get$current(t1);
  27118. }
  27119. };
  27120. A.EmptyIterable.prototype = {
  27121. get$iterator(_) {
  27122. return B.C_EmptyIterator;
  27123. },
  27124. get$isEmpty(_) {
  27125. return true;
  27126. },
  27127. get$length(_) {
  27128. return 0;
  27129. },
  27130. get$first(_) {
  27131. throw A.wrapException(A.IterableElementError_noElement());
  27132. },
  27133. get$last(_) {
  27134. throw A.wrapException(A.IterableElementError_noElement());
  27135. },
  27136. get$single(_) {
  27137. throw A.wrapException(A.IterableElementError_noElement());
  27138. },
  27139. elementAt$1(_, index) {
  27140. throw A.wrapException(A.RangeError$range(index, 0, 0, "index", null));
  27141. },
  27142. contains$1(_, element) {
  27143. return false;
  27144. },
  27145. every$1(_, test) {
  27146. return true;
  27147. },
  27148. join$1(_, separator) {
  27149. return "";
  27150. },
  27151. join$0($receiver) {
  27152. return this.join$1($receiver, "");
  27153. },
  27154. where$1(_, test) {
  27155. return this;
  27156. },
  27157. map$1$1(_, toElement, $T) {
  27158. return new A.EmptyIterable($T._eval$1("EmptyIterable<0>"));
  27159. },
  27160. skip$1(_, count) {
  27161. A.RangeError_checkNotNegative(count, "count");
  27162. return this;
  27163. },
  27164. take$1(_, count) {
  27165. A.RangeError_checkNotNegative(count, "count");
  27166. return this;
  27167. },
  27168. toList$1$growable(_, growable) {
  27169. var t1 = J.JSArray_JSArray$growable(0, this.$ti._precomputed1);
  27170. return t1;
  27171. },
  27172. toList$0($receiver) {
  27173. return this.toList$1$growable($receiver, true);
  27174. },
  27175. toSet$0(_) {
  27176. return A.LinkedHashSet_LinkedHashSet(this.$ti._precomputed1);
  27177. }
  27178. };
  27179. A.EmptyIterator.prototype = {
  27180. moveNext$0() {
  27181. return false;
  27182. },
  27183. get$current(_) {
  27184. throw A.wrapException(A.IterableElementError_noElement());
  27185. }
  27186. };
  27187. A.FollowedByIterable.prototype = {
  27188. get$iterator(_) {
  27189. return new A.FollowedByIterator(J.get$iterator$ax(this.__internal$_first), this._second);
  27190. },
  27191. get$length(_) {
  27192. var t1 = this._second;
  27193. return J.get$length$asx(this.__internal$_first) + t1.get$length(t1);
  27194. },
  27195. get$isEmpty(_) {
  27196. var t1;
  27197. if (J.get$isEmpty$asx(this.__internal$_first)) {
  27198. t1 = this._second;
  27199. t1 = t1.get$isEmpty(t1);
  27200. } else
  27201. t1 = false;
  27202. return t1;
  27203. },
  27204. get$isNotEmpty(_) {
  27205. var t1;
  27206. if (!J.get$isNotEmpty$asx(this.__internal$_first)) {
  27207. t1 = this._second;
  27208. t1 = t1.get$isNotEmpty(t1);
  27209. } else
  27210. t1 = true;
  27211. return t1;
  27212. },
  27213. contains$1(_, value) {
  27214. return J.contains$1$asx(this.__internal$_first, value) || this._second.contains$1(0, value);
  27215. },
  27216. get$first(_) {
  27217. var t1,
  27218. iterator = J.get$iterator$ax(this.__internal$_first);
  27219. if (iterator.moveNext$0())
  27220. return iterator.get$current(iterator);
  27221. t1 = this._second;
  27222. return t1.get$first(t1);
  27223. },
  27224. get$last(_) {
  27225. var last,
  27226. t1 = this._second,
  27227. iterator = t1.get$iterator(t1);
  27228. if (iterator.moveNext$0()) {
  27229. last = iterator.get$current(iterator);
  27230. for (; iterator.moveNext$0();)
  27231. last = iterator.get$current(iterator);
  27232. return last;
  27233. }
  27234. return J.get$last$ax(this.__internal$_first);
  27235. }
  27236. };
  27237. A.EfficientLengthFollowedByIterable.prototype = {
  27238. elementAt$1(_, index) {
  27239. var t1 = this.__internal$_first,
  27240. t2 = J.getInterceptor$asx(t1),
  27241. firstLength = t2.get$length(t1);
  27242. if (index < firstLength)
  27243. return t2.elementAt$1(t1, index);
  27244. return this._second.elementAt$1(0, index - firstLength);
  27245. },
  27246. get$first(_) {
  27247. var t1 = this.__internal$_first,
  27248. t2 = J.getInterceptor$asx(t1);
  27249. if (t2.get$isNotEmpty(t1))
  27250. return t2.get$first(t1);
  27251. t1 = this._second;
  27252. return t1.get$first(t1);
  27253. },
  27254. get$last(_) {
  27255. var t1 = this._second;
  27256. if (t1.get$isNotEmpty(t1))
  27257. return t1.get$last(t1);
  27258. return J.get$last$ax(this.__internal$_first);
  27259. },
  27260. $isEfficientLengthIterable: 1
  27261. };
  27262. A.FollowedByIterator.prototype = {
  27263. moveNext$0() {
  27264. var t1, _this = this;
  27265. if (_this._currentIterator.moveNext$0())
  27266. return true;
  27267. t1 = _this._nextIterable;
  27268. if (t1 != null) {
  27269. t1 = t1.get$iterator(t1);
  27270. _this._currentIterator = t1;
  27271. _this._nextIterable = null;
  27272. return t1.moveNext$0();
  27273. }
  27274. return false;
  27275. },
  27276. get$current(_) {
  27277. var t1 = this._currentIterator;
  27278. return t1.get$current(t1);
  27279. }
  27280. };
  27281. A.WhereTypeIterable.prototype = {
  27282. get$iterator(_) {
  27283. return new A.WhereTypeIterator(J.get$iterator$ax(this._source), this.$ti._eval$1("WhereTypeIterator<1>"));
  27284. }
  27285. };
  27286. A.WhereTypeIterator.prototype = {
  27287. moveNext$0() {
  27288. var t1, t2;
  27289. for (t1 = this._source, t2 = this.$ti._precomputed1; t1.moveNext$0();)
  27290. if (t2._is(t1.get$current(t1)))
  27291. return true;
  27292. return false;
  27293. },
  27294. get$current(_) {
  27295. var t1 = this._source;
  27296. return this.$ti._precomputed1._as(t1.get$current(t1));
  27297. }
  27298. };
  27299. A.FixedLengthListMixin.prototype = {
  27300. set$length(receiver, newLength) {
  27301. throw A.wrapException(A.UnsupportedError$("Cannot change the length of a fixed-length list"));
  27302. },
  27303. add$1(receiver, value) {
  27304. throw A.wrapException(A.UnsupportedError$("Cannot add to a fixed-length list"));
  27305. }
  27306. };
  27307. A.UnmodifiableListMixin.prototype = {
  27308. $indexSet(_, index, value) {
  27309. throw A.wrapException(A.UnsupportedError$("Cannot modify an unmodifiable list"));
  27310. },
  27311. set$length(_, newLength) {
  27312. throw A.wrapException(A.UnsupportedError$("Cannot change the length of an unmodifiable list"));
  27313. },
  27314. add$1(_, value) {
  27315. throw A.wrapException(A.UnsupportedError$("Cannot add to an unmodifiable list"));
  27316. },
  27317. sort$1(_, compare) {
  27318. throw A.wrapException(A.UnsupportedError$("Cannot modify an unmodifiable list"));
  27319. },
  27320. setRange$4(_, start, end, iterable, skipCount) {
  27321. throw A.wrapException(A.UnsupportedError$("Cannot modify an unmodifiable list"));
  27322. },
  27323. fillRange$3(_, start, end, fillValue) {
  27324. throw A.wrapException(A.UnsupportedError$("Cannot modify an unmodifiable list"));
  27325. }
  27326. };
  27327. A.UnmodifiableListBase.prototype = {};
  27328. A.ReversedListIterable.prototype = {
  27329. get$length(_) {
  27330. return J.get$length$asx(this._source);
  27331. },
  27332. elementAt$1(_, index) {
  27333. var t1 = this._source,
  27334. t2 = J.getInterceptor$asx(t1);
  27335. return t2.elementAt$1(t1, t2.get$length(t1) - 1 - index);
  27336. }
  27337. };
  27338. A.Symbol.prototype = {
  27339. get$hashCode(_) {
  27340. var hash = this._hashCode;
  27341. if (hash != null)
  27342. return hash;
  27343. hash = 664597 * J.get$hashCode$(this.__internal$_name) & 536870911;
  27344. this._hashCode = hash;
  27345. return hash;
  27346. },
  27347. toString$0(_) {
  27348. return 'Symbol("' + A.S(this.__internal$_name) + '")';
  27349. },
  27350. $eq(_, other) {
  27351. if (other == null)
  27352. return false;
  27353. return other instanceof A.Symbol && this.__internal$_name == other.__internal$_name;
  27354. },
  27355. $isSymbol0: 1
  27356. };
  27357. A.__CastListBase__CastIterableBase_ListMixin.prototype = {};
  27358. A.ConstantMapView.prototype = {};
  27359. A.ConstantMap.prototype = {
  27360. cast$2$0(_, RK, RV) {
  27361. var t1 = A._instanceType(this);
  27362. return A.Map_castFrom(this, t1._precomputed1, t1._rest[1], RK, RV);
  27363. },
  27364. get$isEmpty(_) {
  27365. return this.get$length(this) === 0;
  27366. },
  27367. get$isNotEmpty(_) {
  27368. return this.get$length(this) !== 0;
  27369. },
  27370. toString$0(_) {
  27371. return A.MapBase_mapToString(this);
  27372. },
  27373. $indexSet(_, key, val) {
  27374. A.ConstantMap__throwUnmodifiable();
  27375. },
  27376. remove$1(_, key) {
  27377. A.ConstantMap__throwUnmodifiable();
  27378. },
  27379. addAll$1(_, other) {
  27380. A.ConstantMap__throwUnmodifiable();
  27381. },
  27382. get$entries(_) {
  27383. return this.entries$body$ConstantMap(0, A._instanceType(this)._eval$1("MapEntry<1,2>"));
  27384. },
  27385. entries$body$ConstantMap($async$_, $async$type) {
  27386. var $async$self = this;
  27387. return A._makeSyncStarIterable(function() {
  27388. var _ = $async$_;
  27389. var $async$goto = 0, $async$handler = 1, $async$currentError, t1, t2, key;
  27390. return function $async$get$entries($async$errorCode, $async$result) {
  27391. if ($async$errorCode === 1) {
  27392. $async$currentError = $async$result;
  27393. $async$goto = $async$handler;
  27394. }
  27395. while (true)
  27396. switch ($async$goto) {
  27397. case 0:
  27398. // Function start
  27399. t1 = $async$self.get$keys($async$self), t1 = t1.get$iterator(t1), t2 = A._instanceType($async$self), t2 = t2._eval$1("@<1>")._bind$1(t2._rest[1])._eval$1("MapEntry<1,2>");
  27400. case 2:
  27401. // for condition
  27402. if (!t1.moveNext$0()) {
  27403. // goto after for
  27404. $async$goto = 3;
  27405. break;
  27406. }
  27407. key = t1.get$current(t1);
  27408. $async$goto = 4;
  27409. return new A.MapEntry(key, $async$self.$index(0, key), t2);
  27410. case 4:
  27411. // after yield
  27412. // goto for condition
  27413. $async$goto = 2;
  27414. break;
  27415. case 3:
  27416. // after for
  27417. // implicit return
  27418. return A._IterationMarker_endOfIteration();
  27419. case 1:
  27420. // rethrow
  27421. return A._IterationMarker_uncaughtError($async$currentError);
  27422. }
  27423. };
  27424. }, $async$type);
  27425. },
  27426. $isMap: 1
  27427. };
  27428. A.ConstantStringMap.prototype = {
  27429. get$length(_) {
  27430. return this.__js_helper$_length;
  27431. },
  27432. containsKey$1(key) {
  27433. if (typeof key != "string")
  27434. return false;
  27435. if ("__proto__" === key)
  27436. return false;
  27437. return this._jsObject.hasOwnProperty(key);
  27438. },
  27439. $index(_, key) {
  27440. if (!this.containsKey$1(key))
  27441. return null;
  27442. return this._jsObject[key];
  27443. },
  27444. forEach$1(_, f) {
  27445. var t1, t2, i, key,
  27446. keys = this.__js_helper$_keys;
  27447. for (t1 = keys.length, t2 = this._jsObject, i = 0; i < t1; ++i) {
  27448. key = keys[i];
  27449. f.call$2(key, t2[key]);
  27450. }
  27451. },
  27452. get$keys(_) {
  27453. return new A._ConstantMapKeyIterable(this, this.$ti._eval$1("_ConstantMapKeyIterable<1>"));
  27454. },
  27455. get$values(_) {
  27456. var t1 = this.$ti;
  27457. return A.MappedIterable_MappedIterable(this.__js_helper$_keys, new A.ConstantStringMap_values_closure(this), t1._precomputed1, t1._rest[1]);
  27458. }
  27459. };
  27460. A.ConstantStringMap_values_closure.prototype = {
  27461. call$1(key) {
  27462. return this.$this._jsObject[key];
  27463. },
  27464. $signature() {
  27465. return this.$this.$ti._eval$1("2(1)");
  27466. }
  27467. };
  27468. A._ConstantMapKeyIterable.prototype = {
  27469. get$iterator(_) {
  27470. var t1 = this.__js_helper$_map.__js_helper$_keys;
  27471. return new J.ArrayIterator(t1, t1.length);
  27472. },
  27473. get$length(_) {
  27474. return this.__js_helper$_map.__js_helper$_keys.length;
  27475. }
  27476. };
  27477. A.GeneralConstantMap.prototype = {
  27478. _getMap$0() {
  27479. var t1, t2, t3, _this = this,
  27480. backingMap = _this.$map;
  27481. if (backingMap == null) {
  27482. t1 = _this.$ti;
  27483. t2 = t1._precomputed1;
  27484. t3 = A.GeneralConstantMap__typeTest(t2);
  27485. backingMap = A.LinkedHashMap_LinkedHashMap(null, A._js_helper_GeneralConstantMap__constantMapHashCode$closure(), t3, t2, t1._rest[1]);
  27486. A.fillLiteralMap(_this._jsData, backingMap);
  27487. _this.$map = backingMap;
  27488. }
  27489. return backingMap;
  27490. },
  27491. containsKey$1(key) {
  27492. return this._getMap$0().containsKey$1(key);
  27493. },
  27494. $index(_, key) {
  27495. return this._getMap$0().$index(0, key);
  27496. },
  27497. forEach$1(_, f) {
  27498. this._getMap$0().forEach$1(0, f);
  27499. },
  27500. get$keys(_) {
  27501. var t1 = this._getMap$0();
  27502. return new A.LinkedHashMapKeyIterable(t1, A._instanceType(t1)._eval$1("LinkedHashMapKeyIterable<1>"));
  27503. },
  27504. get$values(_) {
  27505. var t1 = this._getMap$0();
  27506. return t1.get$values(t1);
  27507. },
  27508. get$length(_) {
  27509. return this._getMap$0().__js_helper$_length;
  27510. }
  27511. };
  27512. A.GeneralConstantMap__typeTest_closure.prototype = {
  27513. call$1(o) {
  27514. return this.T._is(o);
  27515. },
  27516. $signature: 9
  27517. };
  27518. A.Instantiation.prototype = {
  27519. Instantiation$1(_genericClosure) {
  27520. if (false)
  27521. A.instantiatedGenericFunctionType(0, 0);
  27522. },
  27523. $eq(_, other) {
  27524. if (other == null)
  27525. return false;
  27526. return other instanceof A.Instantiation && this._genericClosure.$eq(0, other._genericClosure) && A.getRuntimeType(this) === A.getRuntimeType(other);
  27527. },
  27528. get$hashCode(_) {
  27529. return A.Object_hash(this._genericClosure, A.getRuntimeType(this), B.C_SentinelValue, B.C_SentinelValue);
  27530. },
  27531. toString$0(_) {
  27532. var t1 = B.JSArray_methods.join$1(this.get$_types(), ", ");
  27533. return this._genericClosure.toString$0(0) + " with " + ("<" + t1 + ">");
  27534. }
  27535. };
  27536. A.Instantiation1.prototype = {
  27537. get$_types() {
  27538. return [A.createRuntimeType(this.$ti._precomputed1)];
  27539. },
  27540. call$0() {
  27541. return this._genericClosure.call$1$0(this.$ti._rest[0]);
  27542. },
  27543. call$2(a0, a1) {
  27544. return this._genericClosure.call$1$2(a0, a1, this.$ti._rest[0]);
  27545. },
  27546. call$3(a0, a1, a2) {
  27547. return this._genericClosure.call$1$3(a0, a1, a2, this.$ti._rest[0]);
  27548. },
  27549. call$4(a0, a1, a2, a3) {
  27550. return this._genericClosure.call$1$4(a0, a1, a2, a3, this.$ti._rest[0]);
  27551. },
  27552. $signature() {
  27553. return A.instantiatedGenericFunctionType(A.closureFunctionType(this._genericClosure), this.$ti);
  27554. }
  27555. };
  27556. A.JSInvocationMirror.prototype = {
  27557. get$memberName() {
  27558. var t1 = this.__js_helper$_memberName;
  27559. return t1;
  27560. },
  27561. get$positionalArguments() {
  27562. var t1, argumentCount, list, index, _this = this;
  27563. if (_this.__js_helper$_kind === 1)
  27564. return B.List_empty11;
  27565. t1 = _this._arguments;
  27566. argumentCount = t1.length - _this._namedArgumentNames.length - _this._typeArgumentCount;
  27567. if (argumentCount === 0)
  27568. return B.List_empty11;
  27569. list = [];
  27570. for (index = 0; index < argumentCount; ++index)
  27571. list.push(t1[index]);
  27572. return J.JSArray_markUnmodifiableList(list);
  27573. },
  27574. get$namedArguments() {
  27575. var t1, namedArgumentCount, t2, namedArgumentsStartIndex, map, i, _this = this;
  27576. if (_this.__js_helper$_kind !== 0)
  27577. return B.Map_empty4;
  27578. t1 = _this._namedArgumentNames;
  27579. namedArgumentCount = t1.length;
  27580. t2 = _this._arguments;
  27581. namedArgumentsStartIndex = t2.length - namedArgumentCount - _this._typeArgumentCount;
  27582. if (namedArgumentCount === 0)
  27583. return B.Map_empty4;
  27584. map = new A.JsLinkedHashMap(type$.JsLinkedHashMap_Symbol_dynamic);
  27585. for (i = 0; i < namedArgumentCount; ++i)
  27586. map.$indexSet(0, new A.Symbol(t1[i]), t2[namedArgumentsStartIndex + i]);
  27587. return new A.ConstantMapView(map, type$.ConstantMapView_Symbol_dynamic);
  27588. }
  27589. };
  27590. A.Primitives_functionNoSuchMethod_closure.prototype = {
  27591. call$2($name, argument) {
  27592. var t1 = this._box_0;
  27593. t1.names = t1.names + "$" + $name;
  27594. this.namedArgumentList.push($name);
  27595. this.$arguments.push(argument);
  27596. ++t1.argumentCount;
  27597. },
  27598. $signature: 231
  27599. };
  27600. A.TypeErrorDecoder.prototype = {
  27601. matchTypeError$1(message) {
  27602. var result, t1, _this = this,
  27603. match = new RegExp(_this._pattern).exec(message);
  27604. if (match == null)
  27605. return null;
  27606. result = Object.create(null);
  27607. t1 = _this._arguments;
  27608. if (t1 !== -1)
  27609. result.arguments = match[t1 + 1];
  27610. t1 = _this._argumentsExpr;
  27611. if (t1 !== -1)
  27612. result.argumentsExpr = match[t1 + 1];
  27613. t1 = _this._expr;
  27614. if (t1 !== -1)
  27615. result.expr = match[t1 + 1];
  27616. t1 = _this._method;
  27617. if (t1 !== -1)
  27618. result.method = match[t1 + 1];
  27619. t1 = _this._receiver;
  27620. if (t1 !== -1)
  27621. result.receiver = match[t1 + 1];
  27622. return result;
  27623. }
  27624. };
  27625. A.NullError.prototype = {
  27626. toString$0(_) {
  27627. var t1 = this._method;
  27628. if (t1 == null)
  27629. return "NoSuchMethodError: " + this.__js_helper$_message;
  27630. return "NoSuchMethodError: method not found: '" + t1 + "' on null";
  27631. }
  27632. };
  27633. A.JsNoSuchMethodError.prototype = {
  27634. toString$0(_) {
  27635. var t2, _this = this,
  27636. _s38_ = "NoSuchMethodError: method not found: '",
  27637. t1 = _this._method;
  27638. if (t1 == null)
  27639. return "NoSuchMethodError: " + _this.__js_helper$_message;
  27640. t2 = _this._receiver;
  27641. if (t2 == null)
  27642. return _s38_ + t1 + "' (" + _this.__js_helper$_message + ")";
  27643. return _s38_ + t1 + "' on '" + t2 + "' (" + _this.__js_helper$_message + ")";
  27644. }
  27645. };
  27646. A.UnknownJsTypeError.prototype = {
  27647. toString$0(_) {
  27648. var t1 = this.__js_helper$_message;
  27649. return t1.length === 0 ? "Error" : "Error: " + t1;
  27650. }
  27651. };
  27652. A.NullThrownFromJavaScriptException.prototype = {
  27653. toString$0(_) {
  27654. return "Throw of null ('" + (this._irritant === null ? "null" : "undefined") + "' from JavaScript)";
  27655. },
  27656. $isException: 1
  27657. };
  27658. A.ExceptionAndStackTrace.prototype = {};
  27659. A._StackTrace.prototype = {
  27660. toString$0(_) {
  27661. var trace,
  27662. t1 = this._trace;
  27663. if (t1 != null)
  27664. return t1;
  27665. t1 = this._exception;
  27666. trace = t1 !== null && typeof t1 === "object" ? t1.stack : null;
  27667. return this._trace = trace == null ? "" : trace;
  27668. },
  27669. $isStackTrace: 1
  27670. };
  27671. A.Closure.prototype = {
  27672. toString$0(_) {
  27673. var $constructor = this.constructor,
  27674. $name = $constructor == null ? null : $constructor.name;
  27675. return "Closure '" + A.unminifyOrTag($name == null ? "unknown" : $name) + "'";
  27676. },
  27677. $isFunction: 1,
  27678. get$$call() {
  27679. return this;
  27680. },
  27681. "call*": "call$1",
  27682. $requiredArgCount: 1,
  27683. $defaultValues: null
  27684. };
  27685. A.Closure0Args.prototype = {"call*": "call$0", $requiredArgCount: 0};
  27686. A.Closure2Args.prototype = {"call*": "call$2", $requiredArgCount: 2};
  27687. A.TearOffClosure.prototype = {};
  27688. A.StaticClosure.prototype = {
  27689. toString$0(_) {
  27690. var $name = this.$static_name;
  27691. if ($name == null)
  27692. return "Closure of unknown static method";
  27693. return "Closure '" + A.unminifyOrTag($name) + "'";
  27694. }
  27695. };
  27696. A.BoundClosure.prototype = {
  27697. $eq(_, other) {
  27698. if (other == null)
  27699. return false;
  27700. if (this === other)
  27701. return true;
  27702. if (!(other instanceof A.BoundClosure))
  27703. return false;
  27704. return this.$_target === other.$_target && this._receiver === other._receiver;
  27705. },
  27706. get$hashCode(_) {
  27707. return (A.objectHashCode(this._receiver) ^ A.Primitives_objectHashCode(this.$_target)) >>> 0;
  27708. },
  27709. toString$0(_) {
  27710. return "Closure '" + this.$_name + "' of " + ("Instance of '" + A.Primitives_objectTypeName(this._receiver) + "'");
  27711. }
  27712. };
  27713. A.RuntimeError.prototype = {
  27714. toString$0(_) {
  27715. return "RuntimeError: " + this.message;
  27716. },
  27717. get$message(receiver) {
  27718. return this.message;
  27719. }
  27720. };
  27721. A._Required.prototype = {};
  27722. A.JsLinkedHashMap.prototype = {
  27723. get$length(_) {
  27724. return this.__js_helper$_length;
  27725. },
  27726. get$isEmpty(_) {
  27727. return this.__js_helper$_length === 0;
  27728. },
  27729. get$isNotEmpty(_) {
  27730. return this.__js_helper$_length !== 0;
  27731. },
  27732. get$keys(_) {
  27733. return new A.LinkedHashMapKeyIterable(this, A._instanceType(this)._eval$1("LinkedHashMapKeyIterable<1>"));
  27734. },
  27735. get$values(_) {
  27736. var t1 = A._instanceType(this);
  27737. return A.MappedIterable_MappedIterable(new A.LinkedHashMapKeyIterable(this, t1._eval$1("LinkedHashMapKeyIterable<1>")), new A.JsLinkedHashMap_values_closure(this), t1._precomputed1, t1._rest[1]);
  27738. },
  27739. containsKey$1(key) {
  27740. var strings, nums;
  27741. if (typeof key == "string") {
  27742. strings = this._strings;
  27743. if (strings == null)
  27744. return false;
  27745. return strings[key] != null;
  27746. } else if (typeof key == "number" && (key & 0x3fffffff) === key) {
  27747. nums = this._nums;
  27748. if (nums == null)
  27749. return false;
  27750. return nums[key] != null;
  27751. } else
  27752. return this.internalContainsKey$1(key);
  27753. },
  27754. internalContainsKey$1(key) {
  27755. var rest = this.__js_helper$_rest;
  27756. if (rest == null)
  27757. return false;
  27758. return this.internalFindBucketIndex$2(rest[this.internalComputeHashCode$1(key)], key) >= 0;
  27759. },
  27760. addAll$1(_, other) {
  27761. other.forEach$1(0, new A.JsLinkedHashMap_addAll_closure(this));
  27762. },
  27763. $index(_, key) {
  27764. var strings, cell, t1, nums, _null = null;
  27765. if (typeof key == "string") {
  27766. strings = this._strings;
  27767. if (strings == null)
  27768. return _null;
  27769. cell = strings[key];
  27770. t1 = cell == null ? _null : cell.hashMapCellValue;
  27771. return t1;
  27772. } else if (typeof key == "number" && (key & 0x3fffffff) === key) {
  27773. nums = this._nums;
  27774. if (nums == null)
  27775. return _null;
  27776. cell = nums[key];
  27777. t1 = cell == null ? _null : cell.hashMapCellValue;
  27778. return t1;
  27779. } else
  27780. return this.internalGet$1(key);
  27781. },
  27782. internalGet$1(key) {
  27783. var bucket, index,
  27784. rest = this.__js_helper$_rest;
  27785. if (rest == null)
  27786. return null;
  27787. bucket = rest[this.internalComputeHashCode$1(key)];
  27788. index = this.internalFindBucketIndex$2(bucket, key);
  27789. if (index < 0)
  27790. return null;
  27791. return bucket[index].hashMapCellValue;
  27792. },
  27793. $indexSet(_, key, value) {
  27794. var strings, nums, _this = this;
  27795. if (typeof key == "string") {
  27796. strings = _this._strings;
  27797. _this._addHashTableEntry$3(strings == null ? _this._strings = _this._newHashTable$0() : strings, key, value);
  27798. } else if (typeof key == "number" && (key & 0x3fffffff) === key) {
  27799. nums = _this._nums;
  27800. _this._addHashTableEntry$3(nums == null ? _this._nums = _this._newHashTable$0() : nums, key, value);
  27801. } else
  27802. _this.internalSet$2(key, value);
  27803. },
  27804. internalSet$2(key, value) {
  27805. var hash, bucket, index, _this = this,
  27806. rest = _this.__js_helper$_rest;
  27807. if (rest == null)
  27808. rest = _this.__js_helper$_rest = _this._newHashTable$0();
  27809. hash = _this.internalComputeHashCode$1(key);
  27810. bucket = rest[hash];
  27811. if (bucket == null)
  27812. rest[hash] = [_this._newLinkedCell$2(key, value)];
  27813. else {
  27814. index = _this.internalFindBucketIndex$2(bucket, key);
  27815. if (index >= 0)
  27816. bucket[index].hashMapCellValue = value;
  27817. else
  27818. bucket.push(_this._newLinkedCell$2(key, value));
  27819. }
  27820. },
  27821. putIfAbsent$2(key, ifAbsent) {
  27822. var t1, value, _this = this;
  27823. if (_this.containsKey$1(key)) {
  27824. t1 = _this.$index(0, key);
  27825. return t1 == null ? A._instanceType(_this)._rest[1]._as(t1) : t1;
  27826. }
  27827. value = ifAbsent.call$0();
  27828. _this.$indexSet(0, key, value);
  27829. return value;
  27830. },
  27831. remove$1(_, key) {
  27832. var _this = this;
  27833. if (typeof key == "string")
  27834. return _this.__js_helper$_removeHashTableEntry$2(_this._strings, key);
  27835. else if (typeof key == "number" && (key & 0x3fffffff) === key)
  27836. return _this.__js_helper$_removeHashTableEntry$2(_this._nums, key);
  27837. else
  27838. return _this.internalRemove$1(key);
  27839. },
  27840. internalRemove$1(key) {
  27841. var hash, bucket, index, cell, _this = this,
  27842. rest = _this.__js_helper$_rest;
  27843. if (rest == null)
  27844. return null;
  27845. hash = _this.internalComputeHashCode$1(key);
  27846. bucket = rest[hash];
  27847. index = _this.internalFindBucketIndex$2(bucket, key);
  27848. if (index < 0)
  27849. return null;
  27850. cell = bucket.splice(index, 1)[0];
  27851. _this.__js_helper$_unlinkCell$1(cell);
  27852. if (bucket.length === 0)
  27853. delete rest[hash];
  27854. return cell.hashMapCellValue;
  27855. },
  27856. clear$0(_) {
  27857. var _this = this;
  27858. if (_this.__js_helper$_length > 0) {
  27859. _this._strings = _this._nums = _this.__js_helper$_rest = _this._first = _this._last = null;
  27860. _this.__js_helper$_length = 0;
  27861. _this._modified$0();
  27862. }
  27863. },
  27864. forEach$1(_, action) {
  27865. var _this = this,
  27866. cell = _this._first,
  27867. modifications = _this._modifications;
  27868. for (; cell != null;) {
  27869. action.call$2(cell.hashMapCellKey, cell.hashMapCellValue);
  27870. if (modifications !== _this._modifications)
  27871. throw A.wrapException(A.ConcurrentModificationError$(_this));
  27872. cell = cell._next;
  27873. }
  27874. },
  27875. _addHashTableEntry$3(table, key, value) {
  27876. var cell = table[key];
  27877. if (cell == null)
  27878. table[key] = this._newLinkedCell$2(key, value);
  27879. else
  27880. cell.hashMapCellValue = value;
  27881. },
  27882. __js_helper$_removeHashTableEntry$2(table, key) {
  27883. var cell;
  27884. if (table == null)
  27885. return null;
  27886. cell = table[key];
  27887. if (cell == null)
  27888. return null;
  27889. this.__js_helper$_unlinkCell$1(cell);
  27890. delete table[key];
  27891. return cell.hashMapCellValue;
  27892. },
  27893. _modified$0() {
  27894. this._modifications = this._modifications + 1 & 1073741823;
  27895. },
  27896. _newLinkedCell$2(key, value) {
  27897. var t1, _this = this,
  27898. cell = new A.LinkedHashMapCell(key, value);
  27899. if (_this._first == null)
  27900. _this._first = _this._last = cell;
  27901. else {
  27902. t1 = _this._last;
  27903. t1.toString;
  27904. cell._previous = t1;
  27905. _this._last = t1._next = cell;
  27906. }
  27907. ++_this.__js_helper$_length;
  27908. _this._modified$0();
  27909. return cell;
  27910. },
  27911. __js_helper$_unlinkCell$1(cell) {
  27912. var _this = this,
  27913. previous = cell._previous,
  27914. next = cell._next;
  27915. if (previous == null)
  27916. _this._first = next;
  27917. else
  27918. previous._next = next;
  27919. if (next == null)
  27920. _this._last = previous;
  27921. else
  27922. next._previous = previous;
  27923. --_this.__js_helper$_length;
  27924. _this._modified$0();
  27925. },
  27926. internalComputeHashCode$1(key) {
  27927. return J.get$hashCode$(key) & 0x3fffffff;
  27928. },
  27929. internalFindBucketIndex$2(bucket, key) {
  27930. var $length, i;
  27931. if (bucket == null)
  27932. return -1;
  27933. $length = bucket.length;
  27934. for (i = 0; i < $length; ++i)
  27935. if (J.$eq$(bucket[i].hashMapCellKey, key))
  27936. return i;
  27937. return -1;
  27938. },
  27939. toString$0(_) {
  27940. return A.MapBase_mapToString(this);
  27941. },
  27942. _newHashTable$0() {
  27943. var table = Object.create(null);
  27944. table["<non-identifier-key>"] = table;
  27945. delete table["<non-identifier-key>"];
  27946. return table;
  27947. }
  27948. };
  27949. A.JsLinkedHashMap_values_closure.prototype = {
  27950. call$1(each) {
  27951. var t1 = this.$this,
  27952. t2 = t1.$index(0, each);
  27953. return t2 == null ? A._instanceType(t1)._rest[1]._as(t2) : t2;
  27954. },
  27955. $signature() {
  27956. return A._instanceType(this.$this)._eval$1("2(1)");
  27957. }
  27958. };
  27959. A.JsLinkedHashMap_addAll_closure.prototype = {
  27960. call$2(key, value) {
  27961. this.$this.$indexSet(0, key, value);
  27962. },
  27963. $signature() {
  27964. return A._instanceType(this.$this)._eval$1("~(1,2)");
  27965. }
  27966. };
  27967. A.LinkedHashMapCell.prototype = {};
  27968. A.LinkedHashMapKeyIterable.prototype = {
  27969. get$length(_) {
  27970. return this.__js_helper$_map.__js_helper$_length;
  27971. },
  27972. get$isEmpty(_) {
  27973. return this.__js_helper$_map.__js_helper$_length === 0;
  27974. },
  27975. get$iterator(_) {
  27976. var t1 = this.__js_helper$_map,
  27977. t2 = new A.LinkedHashMapKeyIterator(t1, t1._modifications);
  27978. t2._cell = t1._first;
  27979. return t2;
  27980. },
  27981. contains$1(_, element) {
  27982. return this.__js_helper$_map.containsKey$1(element);
  27983. }
  27984. };
  27985. A.LinkedHashMapKeyIterator.prototype = {
  27986. get$current(_) {
  27987. return this.__js_helper$_current;
  27988. },
  27989. moveNext$0() {
  27990. var cell, _this = this,
  27991. t1 = _this.__js_helper$_map;
  27992. if (_this._modifications !== t1._modifications)
  27993. throw A.wrapException(A.ConcurrentModificationError$(t1));
  27994. cell = _this._cell;
  27995. if (cell == null) {
  27996. _this.__js_helper$_current = null;
  27997. return false;
  27998. } else {
  27999. _this.__js_helper$_current = cell.hashMapCellKey;
  28000. _this._cell = cell._next;
  28001. return true;
  28002. }
  28003. }
  28004. };
  28005. A.initHooks_closure.prototype = {
  28006. call$1(o) {
  28007. return this.getTag(o);
  28008. },
  28009. $signature: 98
  28010. };
  28011. A.initHooks_closure0.prototype = {
  28012. call$2(o, tag) {
  28013. return this.getUnknownTag(o, tag);
  28014. },
  28015. $signature: 289
  28016. };
  28017. A.initHooks_closure1.prototype = {
  28018. call$1(tag) {
  28019. return this.prototypeForTag(tag);
  28020. },
  28021. $signature: 391
  28022. };
  28023. A.JSSyntaxRegExp.prototype = {
  28024. toString$0(_) {
  28025. return "RegExp/" + this.pattern + "/" + this._nativeRegExp.flags;
  28026. },
  28027. get$_nativeGlobalVersion() {
  28028. var _this = this,
  28029. t1 = _this._nativeGlobalRegExp;
  28030. if (t1 != null)
  28031. return t1;
  28032. t1 = _this._nativeRegExp;
  28033. return _this._nativeGlobalRegExp = A.JSSyntaxRegExp_makeNative(_this.pattern, t1.multiline, !t1.ignoreCase, t1.unicode, t1.dotAll, true);
  28034. },
  28035. get$_nativeAnchoredVersion() {
  28036. var _this = this,
  28037. t1 = _this._nativeAnchoredRegExp;
  28038. if (t1 != null)
  28039. return t1;
  28040. t1 = _this._nativeRegExp;
  28041. return _this._nativeAnchoredRegExp = A.JSSyntaxRegExp_makeNative(_this.pattern + "|()", t1.multiline, !t1.ignoreCase, t1.unicode, t1.dotAll, true);
  28042. },
  28043. firstMatch$1(string) {
  28044. var m = this._nativeRegExp.exec(string);
  28045. if (m == null)
  28046. return null;
  28047. return new A._MatchImplementation(m);
  28048. },
  28049. allMatches$2(_, string, start) {
  28050. var t1 = string.length;
  28051. if (start > t1)
  28052. throw A.wrapException(A.RangeError$range(start, 0, t1, null, null));
  28053. return new A._AllMatchesIterable(this, string, start);
  28054. },
  28055. allMatches$1($receiver, string) {
  28056. return this.allMatches$2($receiver, string, 0);
  28057. },
  28058. _execGlobal$2(string, start) {
  28059. var match,
  28060. regexp = this.get$_nativeGlobalVersion();
  28061. regexp.lastIndex = start;
  28062. match = regexp.exec(string);
  28063. if (match == null)
  28064. return null;
  28065. return new A._MatchImplementation(match);
  28066. },
  28067. _execAnchored$2(string, start) {
  28068. var match,
  28069. regexp = this.get$_nativeAnchoredVersion();
  28070. regexp.lastIndex = start;
  28071. match = regexp.exec(string);
  28072. if (match == null)
  28073. return null;
  28074. if (match.pop() != null)
  28075. return null;
  28076. return new A._MatchImplementation(match);
  28077. },
  28078. matchAsPrefix$2(_, string, start) {
  28079. if (start < 0 || start > string.length)
  28080. throw A.wrapException(A.RangeError$range(start, 0, string.length, null, null));
  28081. return this._execAnchored$2(string, start);
  28082. }
  28083. };
  28084. A._MatchImplementation.prototype = {
  28085. get$start(_) {
  28086. return this._match.index;
  28087. },
  28088. get$end(_) {
  28089. var t1 = this._match;
  28090. return t1.index + t1[0].length;
  28091. },
  28092. $isMatch: 1,
  28093. $isRegExpMatch: 1
  28094. };
  28095. A._AllMatchesIterable.prototype = {
  28096. get$iterator(_) {
  28097. return new A._AllMatchesIterator(this._re, this._string, this._start);
  28098. }
  28099. };
  28100. A._AllMatchesIterator.prototype = {
  28101. get$current(_) {
  28102. var t1 = this.__js_helper$_current;
  28103. return t1 == null ? type$.RegExpMatch._as(t1) : t1;
  28104. },
  28105. moveNext$0() {
  28106. var t1, t2, t3, match, nextIndex, _this = this,
  28107. string = _this._string;
  28108. if (string == null)
  28109. return false;
  28110. t1 = _this._nextIndex;
  28111. t2 = string.length;
  28112. if (t1 <= t2) {
  28113. t3 = _this._regExp;
  28114. match = t3._execGlobal$2(string, t1);
  28115. if (match != null) {
  28116. _this.__js_helper$_current = match;
  28117. nextIndex = match.get$end(match);
  28118. if (match._match.index === nextIndex) {
  28119. if (t3._nativeRegExp.unicode) {
  28120. t1 = _this._nextIndex;
  28121. t3 = t1 + 1;
  28122. if (t3 < t2) {
  28123. t1 = B.JSString_methods.codeUnitAt$1(string, t1);
  28124. if (t1 >= 55296 && t1 <= 56319) {
  28125. t1 = B.JSString_methods.codeUnitAt$1(string, t3);
  28126. t1 = t1 >= 56320 && t1 <= 57343;
  28127. } else
  28128. t1 = false;
  28129. } else
  28130. t1 = false;
  28131. } else
  28132. t1 = false;
  28133. nextIndex = (t1 ? nextIndex + 1 : nextIndex) + 1;
  28134. }
  28135. _this._nextIndex = nextIndex;
  28136. return true;
  28137. }
  28138. }
  28139. _this._string = _this.__js_helper$_current = null;
  28140. return false;
  28141. }
  28142. };
  28143. A.StringMatch.prototype = {
  28144. get$end(_) {
  28145. return this.start + this.pattern.length;
  28146. },
  28147. $isMatch: 1,
  28148. get$start(receiver) {
  28149. return this.start;
  28150. }
  28151. };
  28152. A._StringAllMatchesIterable.prototype = {
  28153. get$iterator(_) {
  28154. return new A._StringAllMatchesIterator(this._input, this._pattern, this.__js_helper$_index);
  28155. },
  28156. get$first(_) {
  28157. var t1 = this._pattern,
  28158. index = this._input.indexOf(t1, this.__js_helper$_index);
  28159. if (index >= 0)
  28160. return new A.StringMatch(index, t1);
  28161. throw A.wrapException(A.IterableElementError_noElement());
  28162. }
  28163. };
  28164. A._StringAllMatchesIterator.prototype = {
  28165. moveNext$0() {
  28166. var index, end, _this = this,
  28167. t1 = _this.__js_helper$_index,
  28168. t2 = _this._pattern,
  28169. t3 = t2.length,
  28170. t4 = _this._input,
  28171. t5 = t4.length;
  28172. if (t1 + t3 > t5) {
  28173. _this.__js_helper$_current = null;
  28174. return false;
  28175. }
  28176. index = t4.indexOf(t2, t1);
  28177. if (index < 0) {
  28178. _this.__js_helper$_index = t5 + 1;
  28179. _this.__js_helper$_current = null;
  28180. return false;
  28181. }
  28182. end = index + t3;
  28183. _this.__js_helper$_current = new A.StringMatch(index, t2);
  28184. _this.__js_helper$_index = end === _this.__js_helper$_index ? end + 1 : end;
  28185. return true;
  28186. },
  28187. get$current(_) {
  28188. var t1 = this.__js_helper$_current;
  28189. t1.toString;
  28190. return t1;
  28191. }
  28192. };
  28193. A._Cell.prototype = {
  28194. readLocal$1$0() {
  28195. var t1 = this._value;
  28196. if (t1 === this)
  28197. A.throwExpression(new A.LateError("Local '" + this.__late_helper$_name + "' has not been initialized."));
  28198. return t1;
  28199. },
  28200. readLocal$0() {
  28201. return this.readLocal$1$0(type$.dynamic);
  28202. },
  28203. _readLocal$0() {
  28204. var t1 = this._value;
  28205. if (t1 === this)
  28206. throw A.wrapException(new A.LateError("Local '" + this.__late_helper$_name + "' has not been initialized."));
  28207. return t1;
  28208. }
  28209. };
  28210. A.NativeTypedData.prototype = {
  28211. _invalidPosition$3(receiver, position, $length, $name) {
  28212. var t1 = A.RangeError$range(position, 0, $length, $name, null);
  28213. throw A.wrapException(t1);
  28214. },
  28215. _checkPosition$3(receiver, position, $length, $name) {
  28216. if (position >>> 0 !== position || position > $length)
  28217. this._invalidPosition$3(receiver, position, $length, $name);
  28218. }
  28219. };
  28220. A.NativeTypedArray.prototype = {
  28221. get$length(receiver) {
  28222. return receiver.length;
  28223. },
  28224. _setRangeFast$4(receiver, start, end, source, skipCount) {
  28225. var count, sourceLength,
  28226. targetLength = receiver.length;
  28227. this._checkPosition$3(receiver, start, targetLength, "start");
  28228. this._checkPosition$3(receiver, end, targetLength, "end");
  28229. if (start > end)
  28230. throw A.wrapException(A.RangeError$range(start, 0, end, null, null));
  28231. count = end - start;
  28232. if (skipCount < 0)
  28233. throw A.wrapException(A.ArgumentError$(skipCount, null));
  28234. sourceLength = source.length;
  28235. if (sourceLength - skipCount < count)
  28236. throw A.wrapException(A.StateError$("Not enough elements"));
  28237. if (skipCount !== 0 || sourceLength !== count)
  28238. source = source.subarray(skipCount, skipCount + count);
  28239. receiver.set(source, start);
  28240. },
  28241. $isJavaScriptIndexingBehavior: 1
  28242. };
  28243. A.NativeTypedArrayOfDouble.prototype = {
  28244. $index(receiver, index) {
  28245. A._checkValidIndex(index, receiver, receiver.length);
  28246. return receiver[index];
  28247. },
  28248. $indexSet(receiver, index, value) {
  28249. A._checkValidIndex(index, receiver, receiver.length);
  28250. receiver[index] = value;
  28251. },
  28252. setRange$4(receiver, start, end, iterable, skipCount) {
  28253. if (type$.NativeTypedArrayOfDouble._is(iterable)) {
  28254. this._setRangeFast$4(receiver, start, end, iterable, skipCount);
  28255. return;
  28256. }
  28257. this.super$ListMixin$setRange(receiver, start, end, iterable, skipCount);
  28258. },
  28259. $isEfficientLengthIterable: 1,
  28260. $isIterable: 1,
  28261. $isList: 1
  28262. };
  28263. A.NativeTypedArrayOfInt.prototype = {
  28264. $indexSet(receiver, index, value) {
  28265. A._checkValidIndex(index, receiver, receiver.length);
  28266. receiver[index] = value;
  28267. },
  28268. setRange$4(receiver, start, end, iterable, skipCount) {
  28269. if (type$.NativeTypedArrayOfInt._is(iterable)) {
  28270. this._setRangeFast$4(receiver, start, end, iterable, skipCount);
  28271. return;
  28272. }
  28273. this.super$ListMixin$setRange(receiver, start, end, iterable, skipCount);
  28274. },
  28275. $isEfficientLengthIterable: 1,
  28276. $isIterable: 1,
  28277. $isList: 1
  28278. };
  28279. A.NativeInt16List.prototype = {
  28280. $index(receiver, index) {
  28281. A._checkValidIndex(index, receiver, receiver.length);
  28282. return receiver[index];
  28283. }
  28284. };
  28285. A.NativeInt32List.prototype = {
  28286. $index(receiver, index) {
  28287. A._checkValidIndex(index, receiver, receiver.length);
  28288. return receiver[index];
  28289. }
  28290. };
  28291. A.NativeInt8List.prototype = {
  28292. $index(receiver, index) {
  28293. A._checkValidIndex(index, receiver, receiver.length);
  28294. return receiver[index];
  28295. }
  28296. };
  28297. A.NativeUint16List.prototype = {
  28298. $index(receiver, index) {
  28299. A._checkValidIndex(index, receiver, receiver.length);
  28300. return receiver[index];
  28301. }
  28302. };
  28303. A.NativeUint32List.prototype = {
  28304. $index(receiver, index) {
  28305. A._checkValidIndex(index, receiver, receiver.length);
  28306. return receiver[index];
  28307. },
  28308. sublist$2(receiver, start, end) {
  28309. return new Uint32Array(receiver.subarray(start, A._checkValidRange(start, end, receiver.length)));
  28310. }
  28311. };
  28312. A.NativeUint8ClampedList.prototype = {
  28313. get$length(receiver) {
  28314. return receiver.length;
  28315. },
  28316. $index(receiver, index) {
  28317. A._checkValidIndex(index, receiver, receiver.length);
  28318. return receiver[index];
  28319. }
  28320. };
  28321. A.NativeUint8List.prototype = {
  28322. get$length(receiver) {
  28323. return receiver.length;
  28324. },
  28325. $index(receiver, index) {
  28326. A._checkValidIndex(index, receiver, receiver.length);
  28327. return receiver[index];
  28328. },
  28329. $isNativeUint8List: 1,
  28330. $isUint8List: 1
  28331. };
  28332. A._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin.prototype = {};
  28333. A._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin.prototype = {};
  28334. A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin.prototype = {};
  28335. A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin.prototype = {};
  28336. A.Rti.prototype = {
  28337. _eval$1(recipe) {
  28338. return A._Universe_evalInEnvironment(init.typeUniverse, this, recipe);
  28339. },
  28340. _bind$1(typeOrTuple) {
  28341. return A._Universe_bind(init.typeUniverse, this, typeOrTuple);
  28342. }
  28343. };
  28344. A._FunctionParameters.prototype = {};
  28345. A._Type.prototype = {
  28346. toString$0(_) {
  28347. return A._rtiToString(this._rti, null);
  28348. },
  28349. $isType: 1
  28350. };
  28351. A._Error.prototype = {
  28352. toString$0(_) {
  28353. return this.__rti$_message;
  28354. }
  28355. };
  28356. A._TypeError.prototype = {
  28357. get$message(_) {
  28358. return this.__rti$_message;
  28359. },
  28360. $isTypeError: 1
  28361. };
  28362. A._AsyncRun__initializeScheduleImmediate_internalCallback.prototype = {
  28363. call$1(_) {
  28364. var t1 = this._box_0,
  28365. f = t1.storedCallback;
  28366. t1.storedCallback = null;
  28367. f.call$0();
  28368. },
  28369. $signature: 66
  28370. };
  28371. A._AsyncRun__initializeScheduleImmediate_closure.prototype = {
  28372. call$1(callback) {
  28373. var t1, t2;
  28374. this._box_0.storedCallback = callback;
  28375. t1 = this.div;
  28376. t2 = this.span;
  28377. t1.firstChild ? t1.removeChild(t2) : t1.appendChild(t2);
  28378. },
  28379. $signature: 28
  28380. };
  28381. A._AsyncRun__scheduleImmediateJsOverride_internalCallback.prototype = {
  28382. call$0() {
  28383. this.callback.call$0();
  28384. },
  28385. $signature: 1
  28386. };
  28387. A._AsyncRun__scheduleImmediateWithSetImmediate_internalCallback.prototype = {
  28388. call$0() {
  28389. this.callback.call$0();
  28390. },
  28391. $signature: 1
  28392. };
  28393. A._TimerImpl.prototype = {
  28394. _TimerImpl$2(milliseconds, callback) {
  28395. if (self.setTimeout != null)
  28396. this._handle = self.setTimeout(A.convertDartClosureToJS(new A._TimerImpl_internalCallback(this, callback), 0), milliseconds);
  28397. else
  28398. throw A.wrapException(A.UnsupportedError$("`setTimeout()` not found."));
  28399. },
  28400. _TimerImpl$periodic$2(milliseconds, callback) {
  28401. if (self.setTimeout != null)
  28402. this._handle = self.setInterval(A.convertDartClosureToJS(new A._TimerImpl$periodic_closure(this, milliseconds, Date.now(), callback), 0), milliseconds);
  28403. else
  28404. throw A.wrapException(A.UnsupportedError$("Periodic timer."));
  28405. },
  28406. cancel$0() {
  28407. if (self.setTimeout != null) {
  28408. var t1 = this._handle;
  28409. if (t1 == null)
  28410. return;
  28411. if (this._once)
  28412. self.clearTimeout(t1);
  28413. else
  28414. self.clearInterval(t1);
  28415. this._handle = null;
  28416. } else
  28417. throw A.wrapException(A.UnsupportedError$("Canceling a timer."));
  28418. }
  28419. };
  28420. A._TimerImpl_internalCallback.prototype = {
  28421. call$0() {
  28422. var t1 = this.$this;
  28423. t1._handle = null;
  28424. t1._tick = 1;
  28425. this.callback.call$0();
  28426. },
  28427. $signature: 0
  28428. };
  28429. A._TimerImpl$periodic_closure.prototype = {
  28430. call$0() {
  28431. var duration, _this = this,
  28432. t1 = _this.$this,
  28433. tick = t1._tick + 1,
  28434. t2 = _this.milliseconds;
  28435. if (t2 > 0) {
  28436. duration = Date.now() - _this.start;
  28437. if (duration > (tick + 1) * t2)
  28438. tick = B.JSInt_methods.$tdiv(duration, t2);
  28439. }
  28440. t1._tick = tick;
  28441. _this.callback.call$1(t1);
  28442. },
  28443. $signature: 1
  28444. };
  28445. A._AsyncAwaitCompleter.prototype = {
  28446. complete$1(value) {
  28447. var t1, _this = this;
  28448. if (value == null)
  28449. _this.$ti._precomputed1._as(value);
  28450. if (!_this.isSync)
  28451. _this._future._asyncComplete$1(value);
  28452. else {
  28453. t1 = _this._future;
  28454. if (_this.$ti._eval$1("Future<1>")._is(value))
  28455. t1._chainFuture$1(value);
  28456. else
  28457. t1._completeWithValue$1(value);
  28458. }
  28459. },
  28460. completeError$2(e, st) {
  28461. var t1 = this._future;
  28462. if (this.isSync)
  28463. t1._completeError$2(e, st);
  28464. else
  28465. t1._asyncCompleteError$2(e, st);
  28466. }
  28467. };
  28468. A._awaitOnObject_closure.prototype = {
  28469. call$1(result) {
  28470. return this.bodyFunction.call$2(0, result);
  28471. },
  28472. $signature: 111
  28473. };
  28474. A._awaitOnObject_closure0.prototype = {
  28475. call$2(error, stackTrace) {
  28476. this.bodyFunction.call$2(1, new A.ExceptionAndStackTrace(error, stackTrace));
  28477. },
  28478. $signature: 357
  28479. };
  28480. A._wrapJsFunctionForAsync_closure.prototype = {
  28481. call$2(errorCode, result) {
  28482. this.$protected(errorCode, result);
  28483. },
  28484. $signature: 358
  28485. };
  28486. A._IterationMarker.prototype = {
  28487. toString$0(_) {
  28488. return "IterationMarker(" + this.state + ", " + A.S(this.value) + ")";
  28489. }
  28490. };
  28491. A._SyncStarIterator.prototype = {
  28492. get$current(_) {
  28493. var nested = this._nestedIterator;
  28494. if (nested == null)
  28495. return this._async$_current;
  28496. return nested.get$current(nested);
  28497. },
  28498. moveNext$0() {
  28499. var t1, value, state, suspendedBodies, inner, _this = this;
  28500. for (; true;) {
  28501. t1 = _this._nestedIterator;
  28502. if (t1 != null)
  28503. if (t1.moveNext$0())
  28504. return true;
  28505. else
  28506. _this._nestedIterator = null;
  28507. value = function(body, SUCCESS, ERROR) {
  28508. var errorValue,
  28509. errorCode = SUCCESS;
  28510. while (true)
  28511. try {
  28512. return body(errorCode, errorValue);
  28513. } catch (error) {
  28514. errorValue = error;
  28515. errorCode = ERROR;
  28516. }
  28517. }(_this._body, 0, 1);
  28518. if (value instanceof A._IterationMarker) {
  28519. state = value.state;
  28520. if (state === 2) {
  28521. suspendedBodies = _this._suspendedBodies;
  28522. if (suspendedBodies == null || suspendedBodies.length === 0) {
  28523. _this._async$_current = null;
  28524. return false;
  28525. }
  28526. _this._body = suspendedBodies.pop();
  28527. continue;
  28528. } else {
  28529. t1 = value.value;
  28530. if (state === 3)
  28531. throw t1;
  28532. else {
  28533. inner = J.get$iterator$ax(t1);
  28534. if (inner instanceof A._SyncStarIterator) {
  28535. t1 = _this._suspendedBodies;
  28536. if (t1 == null)
  28537. t1 = _this._suspendedBodies = [];
  28538. t1.push(_this._body);
  28539. _this._body = inner._body;
  28540. continue;
  28541. } else {
  28542. _this._nestedIterator = inner;
  28543. continue;
  28544. }
  28545. }
  28546. }
  28547. } else {
  28548. _this._async$_current = value;
  28549. return true;
  28550. }
  28551. }
  28552. return false;
  28553. }
  28554. };
  28555. A._SyncStarIterable.prototype = {
  28556. get$iterator(_) {
  28557. return new A._SyncStarIterator(this._outerHelper());
  28558. }
  28559. };
  28560. A.AsyncError.prototype = {
  28561. toString$0(_) {
  28562. return A.S(this.error);
  28563. },
  28564. $isError: 1,
  28565. get$stackTrace() {
  28566. return this.stackTrace;
  28567. }
  28568. };
  28569. A.Future_wait_handleError.prototype = {
  28570. call$2(theError, theStackTrace) {
  28571. var _this = this,
  28572. t1 = _this._box_0,
  28573. t2 = --t1.remaining;
  28574. if (t1.values != null) {
  28575. t1.values = null;
  28576. if (t1.remaining === 0 || _this.eagerError)
  28577. _this._future._completeError$2(theError, theStackTrace);
  28578. else {
  28579. _this.error._value = theError;
  28580. _this.stackTrace._value = theStackTrace;
  28581. }
  28582. } else if (t2 === 0 && !_this.eagerError)
  28583. _this._future._completeError$2(_this.error._readLocal$0(), _this.stackTrace._readLocal$0());
  28584. },
  28585. $signature: 72
  28586. };
  28587. A.Future_wait_closure.prototype = {
  28588. call$1(value) {
  28589. var valueList, _this = this,
  28590. t1 = _this._box_0;
  28591. --t1.remaining;
  28592. valueList = t1.values;
  28593. if (valueList != null) {
  28594. J.$indexSet$ax(valueList, _this.pos, value);
  28595. if (t1.remaining === 0)
  28596. _this._future._completeWithValue$1(A.List_List$from(valueList, true, _this.T));
  28597. } else if (t1.remaining === 0 && !_this.eagerError)
  28598. _this._future._completeError$2(_this.error._readLocal$0(), _this.stackTrace._readLocal$0());
  28599. },
  28600. $signature() {
  28601. return this.T._eval$1("Null(0)");
  28602. }
  28603. };
  28604. A._Completer.prototype = {
  28605. completeError$2(error, stackTrace) {
  28606. var replacement;
  28607. A.checkNotNullable(error, "error", type$.Object);
  28608. if ((this.future._state & 30) !== 0)
  28609. throw A.wrapException(A.StateError$("Future already completed"));
  28610. replacement = $.Zone__current.errorCallback$2(error, stackTrace);
  28611. if (replacement != null) {
  28612. error = replacement.error;
  28613. stackTrace = replacement.stackTrace;
  28614. } else if (stackTrace == null)
  28615. stackTrace = A.AsyncError_defaultStackTrace(error);
  28616. this._completeError$2(error, stackTrace);
  28617. },
  28618. completeError$1(error) {
  28619. return this.completeError$2(error, null);
  28620. }
  28621. };
  28622. A._AsyncCompleter.prototype = {
  28623. complete$1(value) {
  28624. var t1 = this.future;
  28625. if ((t1._state & 30) !== 0)
  28626. throw A.wrapException(A.StateError$("Future already completed"));
  28627. t1._asyncComplete$1(value);
  28628. },
  28629. complete$0() {
  28630. return this.complete$1(null);
  28631. },
  28632. _completeError$2(error, stackTrace) {
  28633. this.future._asyncCompleteError$2(error, stackTrace);
  28634. }
  28635. };
  28636. A._SyncCompleter.prototype = {
  28637. complete$1(value) {
  28638. var t1 = this.future;
  28639. if ((t1._state & 30) !== 0)
  28640. throw A.wrapException(A.StateError$("Future already completed"));
  28641. t1._complete$1(value);
  28642. },
  28643. _completeError$2(error, stackTrace) {
  28644. this.future._completeError$2(error, stackTrace);
  28645. }
  28646. };
  28647. A._FutureListener.prototype = {
  28648. matchesErrorTest$1(asyncError) {
  28649. if ((this.state & 15) !== 6)
  28650. return true;
  28651. return this.result._zone.runUnary$2$2(this.callback, asyncError.error, type$.bool, type$.Object);
  28652. },
  28653. handleError$1(asyncError) {
  28654. var exception,
  28655. errorCallback = this.errorCallback,
  28656. result = null,
  28657. t1 = type$.dynamic,
  28658. t2 = type$.Object,
  28659. t3 = asyncError.error,
  28660. t4 = this.result._zone;
  28661. if (type$.dynamic_Function_Object_StackTrace._is(errorCallback))
  28662. result = t4.runBinary$3$3(errorCallback, t3, asyncError.stackTrace, t1, t2, type$.StackTrace);
  28663. else
  28664. result = t4.runUnary$2$2(errorCallback, t3, t1, t2);
  28665. try {
  28666. t1 = result;
  28667. return t1;
  28668. } catch (exception) {
  28669. if (type$.TypeError._is(A.unwrapException(exception))) {
  28670. if ((this.state & 1) !== 0)
  28671. throw A.wrapException(A.ArgumentError$("The error handler of Future.then must return a value of the returned future's type", "onError"));
  28672. throw A.wrapException(A.ArgumentError$("The error handler of Future.catchError must return a value of the future's type", "onError"));
  28673. } else
  28674. throw exception;
  28675. }
  28676. }
  28677. };
  28678. A._Future.prototype = {
  28679. then$1$2$onError(_, f, onError, $R) {
  28680. var result, t1,
  28681. currentZone = $.Zone__current;
  28682. if (currentZone === B.C__RootZone) {
  28683. if (onError != null && !type$.dynamic_Function_Object_StackTrace._is(onError) && !type$.dynamic_Function_Object._is(onError))
  28684. throw A.wrapException(A.ArgumentError$value(onError, "onError", string$.Error_));
  28685. } else {
  28686. f = currentZone.registerUnaryCallback$2$1(f, $R._eval$1("0/"), this.$ti._precomputed1);
  28687. if (onError != null)
  28688. onError = A._registerErrorHandler(onError, currentZone);
  28689. }
  28690. result = new A._Future($.Zone__current, $R._eval$1("_Future<0>"));
  28691. t1 = onError == null ? 1 : 3;
  28692. this._addListener$1(new A._FutureListener(result, t1, f, onError, this.$ti._eval$1("@<1>")._bind$1($R)._eval$1("_FutureListener<1,2>")));
  28693. return result;
  28694. },
  28695. then$1$1($receiver, f, $R) {
  28696. return this.then$1$2$onError($receiver, f, null, $R);
  28697. },
  28698. _thenAwait$1$2(f, onError, $E) {
  28699. var result = new A._Future($.Zone__current, $E._eval$1("_Future<0>"));
  28700. this._addListener$1(new A._FutureListener(result, 3, f, onError, this.$ti._eval$1("@<1>")._bind$1($E)._eval$1("_FutureListener<1,2>")));
  28701. return result;
  28702. },
  28703. whenComplete$1(action) {
  28704. var t1 = this.$ti,
  28705. t2 = $.Zone__current,
  28706. result = new A._Future(t2, t1);
  28707. if (t2 !== B.C__RootZone)
  28708. action = t2.registerCallback$1$1(action, type$.dynamic);
  28709. this._addListener$1(new A._FutureListener(result, 8, action, null, t1._eval$1("@<1>")._bind$1(t1._precomputed1)._eval$1("_FutureListener<1,2>")));
  28710. return result;
  28711. },
  28712. _setErrorObject$1(error) {
  28713. this._state = this._state & 1 | 16;
  28714. this._resultOrListeners = error;
  28715. },
  28716. _cloneResult$1(source) {
  28717. this._state = source._state & 30 | this._state & 1;
  28718. this._resultOrListeners = source._resultOrListeners;
  28719. },
  28720. _addListener$1(listener) {
  28721. var _this = this,
  28722. t1 = _this._state;
  28723. if (t1 <= 3) {
  28724. listener._nextListener = _this._resultOrListeners;
  28725. _this._resultOrListeners = listener;
  28726. } else {
  28727. if ((t1 & 4) !== 0) {
  28728. t1 = _this._resultOrListeners;
  28729. if ((t1._state & 24) === 0) {
  28730. t1._addListener$1(listener);
  28731. return;
  28732. }
  28733. _this._cloneResult$1(t1);
  28734. }
  28735. _this._zone.scheduleMicrotask$1(new A._Future__addListener_closure(_this, listener));
  28736. }
  28737. },
  28738. _prependListeners$1(listeners) {
  28739. var t1, existingListeners, next, cursor, next0, _this = this, _box_0 = {};
  28740. _box_0.listeners = listeners;
  28741. if (listeners == null)
  28742. return;
  28743. t1 = _this._state;
  28744. if (t1 <= 3) {
  28745. existingListeners = _this._resultOrListeners;
  28746. _this._resultOrListeners = listeners;
  28747. if (existingListeners != null) {
  28748. next = listeners._nextListener;
  28749. for (cursor = listeners; next != null; cursor = next, next = next0)
  28750. next0 = next._nextListener;
  28751. cursor._nextListener = existingListeners;
  28752. }
  28753. } else {
  28754. if ((t1 & 4) !== 0) {
  28755. t1 = _this._resultOrListeners;
  28756. if ((t1._state & 24) === 0) {
  28757. t1._prependListeners$1(listeners);
  28758. return;
  28759. }
  28760. _this._cloneResult$1(t1);
  28761. }
  28762. _box_0.listeners = _this._reverseListeners$1(listeners);
  28763. _this._zone.scheduleMicrotask$1(new A._Future__prependListeners_closure(_box_0, _this));
  28764. }
  28765. },
  28766. _removeListeners$0() {
  28767. var current = this._resultOrListeners;
  28768. this._resultOrListeners = null;
  28769. return this._reverseListeners$1(current);
  28770. },
  28771. _reverseListeners$1(listeners) {
  28772. var current, prev, next;
  28773. for (current = listeners, prev = null; current != null; prev = current, current = next) {
  28774. next = current._nextListener;
  28775. current._nextListener = prev;
  28776. }
  28777. return prev;
  28778. },
  28779. _chainForeignFuture$1(source) {
  28780. var e, s, exception, _this = this;
  28781. _this._state ^= 2;
  28782. try {
  28783. source.then$1$2$onError(0, new A._Future__chainForeignFuture_closure(_this), new A._Future__chainForeignFuture_closure0(_this), type$.Null);
  28784. } catch (exception) {
  28785. e = A.unwrapException(exception);
  28786. s = A.getTraceFromException(exception);
  28787. A.scheduleMicrotask(new A._Future__chainForeignFuture_closure1(_this, e, s));
  28788. }
  28789. },
  28790. _complete$1(value) {
  28791. var listeners, _this = this,
  28792. t1 = _this.$ti;
  28793. if (t1._eval$1("Future<1>")._is(value))
  28794. if (t1._is(value))
  28795. A._Future__chainCoreFuture(value, _this);
  28796. else
  28797. _this._chainForeignFuture$1(value);
  28798. else {
  28799. listeners = _this._removeListeners$0();
  28800. _this._state = 8;
  28801. _this._resultOrListeners = value;
  28802. A._Future__propagateToListeners(_this, listeners);
  28803. }
  28804. },
  28805. _completeWithValue$1(value) {
  28806. var _this = this,
  28807. listeners = _this._removeListeners$0();
  28808. _this._state = 8;
  28809. _this._resultOrListeners = value;
  28810. A._Future__propagateToListeners(_this, listeners);
  28811. },
  28812. _completeError$2(error, stackTrace) {
  28813. var listeners = this._removeListeners$0();
  28814. this._setErrorObject$1(A.AsyncError$(error, stackTrace));
  28815. A._Future__propagateToListeners(this, listeners);
  28816. },
  28817. _asyncComplete$1(value) {
  28818. if (this.$ti._eval$1("Future<1>")._is(value)) {
  28819. this._chainFuture$1(value);
  28820. return;
  28821. }
  28822. this._asyncCompleteWithValue$1(value);
  28823. },
  28824. _asyncCompleteWithValue$1(value) {
  28825. this._state ^= 2;
  28826. this._zone.scheduleMicrotask$1(new A._Future__asyncCompleteWithValue_closure(this, value));
  28827. },
  28828. _chainFuture$1(value) {
  28829. var _this = this;
  28830. if (_this.$ti._is(value)) {
  28831. if ((value._state & 16) !== 0) {
  28832. _this._state ^= 2;
  28833. _this._zone.scheduleMicrotask$1(new A._Future__chainFuture_closure(_this, value));
  28834. } else
  28835. A._Future__chainCoreFuture(value, _this);
  28836. return;
  28837. }
  28838. _this._chainForeignFuture$1(value);
  28839. },
  28840. _asyncCompleteError$2(error, stackTrace) {
  28841. this._state ^= 2;
  28842. this._zone.scheduleMicrotask$1(new A._Future__asyncCompleteError_closure(this, error, stackTrace));
  28843. },
  28844. $isFuture: 1
  28845. };
  28846. A._Future__addListener_closure.prototype = {
  28847. call$0() {
  28848. A._Future__propagateToListeners(this.$this, this.listener);
  28849. },
  28850. $signature: 0
  28851. };
  28852. A._Future__prependListeners_closure.prototype = {
  28853. call$0() {
  28854. A._Future__propagateToListeners(this.$this, this._box_0.listeners);
  28855. },
  28856. $signature: 0
  28857. };
  28858. A._Future__chainForeignFuture_closure.prototype = {
  28859. call$1(value) {
  28860. var error, stackTrace, exception,
  28861. t1 = this.$this;
  28862. t1._state ^= 2;
  28863. try {
  28864. t1._completeWithValue$1(t1.$ti._precomputed1._as(value));
  28865. } catch (exception) {
  28866. error = A.unwrapException(exception);
  28867. stackTrace = A.getTraceFromException(exception);
  28868. t1._completeError$2(error, stackTrace);
  28869. }
  28870. },
  28871. $signature: 66
  28872. };
  28873. A._Future__chainForeignFuture_closure0.prototype = {
  28874. call$2(error, stackTrace) {
  28875. this.$this._completeError$2(error, stackTrace);
  28876. },
  28877. $signature: 64
  28878. };
  28879. A._Future__chainForeignFuture_closure1.prototype = {
  28880. call$0() {
  28881. this.$this._completeError$2(this.e, this.s);
  28882. },
  28883. $signature: 0
  28884. };
  28885. A._Future__asyncCompleteWithValue_closure.prototype = {
  28886. call$0() {
  28887. this.$this._completeWithValue$1(this.value);
  28888. },
  28889. $signature: 0
  28890. };
  28891. A._Future__chainFuture_closure.prototype = {
  28892. call$0() {
  28893. A._Future__chainCoreFuture(this.value, this.$this);
  28894. },
  28895. $signature: 0
  28896. };
  28897. A._Future__asyncCompleteError_closure.prototype = {
  28898. call$0() {
  28899. this.$this._completeError$2(this.error, this.stackTrace);
  28900. },
  28901. $signature: 0
  28902. };
  28903. A._Future__propagateToListeners_handleWhenCompleteCallback.prototype = {
  28904. call$0() {
  28905. var e, s, t1, exception, t2, originalSource, _this = this, completeResult = null;
  28906. try {
  28907. t1 = _this._box_0.listener;
  28908. completeResult = t1.result._zone.run$1$1(0, t1.callback, type$.dynamic);
  28909. } catch (exception) {
  28910. e = A.unwrapException(exception);
  28911. s = A.getTraceFromException(exception);
  28912. t1 = _this.hasError && _this._box_1.source._resultOrListeners.error === e;
  28913. t2 = _this._box_0;
  28914. if (t1)
  28915. t2.listenerValueOrError = _this._box_1.source._resultOrListeners;
  28916. else
  28917. t2.listenerValueOrError = A.AsyncError$(e, s);
  28918. t2.listenerHasError = true;
  28919. return;
  28920. }
  28921. if (completeResult instanceof A._Future && (completeResult._state & 24) !== 0) {
  28922. if ((completeResult._state & 16) !== 0) {
  28923. t1 = _this._box_0;
  28924. t1.listenerValueOrError = completeResult._resultOrListeners;
  28925. t1.listenerHasError = true;
  28926. }
  28927. return;
  28928. }
  28929. if (type$.Future_dynamic._is(completeResult)) {
  28930. originalSource = _this._box_1.source;
  28931. t1 = _this._box_0;
  28932. t1.listenerValueOrError = J.then$1$1$x(completeResult, new A._Future__propagateToListeners_handleWhenCompleteCallback_closure(originalSource), type$.dynamic);
  28933. t1.listenerHasError = false;
  28934. }
  28935. },
  28936. $signature: 0
  28937. };
  28938. A._Future__propagateToListeners_handleWhenCompleteCallback_closure.prototype = {
  28939. call$1(_) {
  28940. return this.originalSource;
  28941. },
  28942. $signature: 495
  28943. };
  28944. A._Future__propagateToListeners_handleValueCallback.prototype = {
  28945. call$0() {
  28946. var e, s, t1, t2, t3, exception;
  28947. try {
  28948. t1 = this._box_0;
  28949. t2 = t1.listener;
  28950. t3 = t2.$ti;
  28951. t1.listenerValueOrError = t2.result._zone.runUnary$2$2(t2.callback, this.sourceResult, t3._eval$1("2/"), t3._precomputed1);
  28952. } catch (exception) {
  28953. e = A.unwrapException(exception);
  28954. s = A.getTraceFromException(exception);
  28955. t1 = this._box_0;
  28956. t1.listenerValueOrError = A.AsyncError$(e, s);
  28957. t1.listenerHasError = true;
  28958. }
  28959. },
  28960. $signature: 0
  28961. };
  28962. A._Future__propagateToListeners_handleError.prototype = {
  28963. call$0() {
  28964. var asyncError, e, s, t1, exception, t2, _this = this;
  28965. try {
  28966. asyncError = _this._box_1.source._resultOrListeners;
  28967. t1 = _this._box_0;
  28968. if (t1.listener.matchesErrorTest$1(asyncError) && t1.listener.errorCallback != null) {
  28969. t1.listenerValueOrError = t1.listener.handleError$1(asyncError);
  28970. t1.listenerHasError = false;
  28971. }
  28972. } catch (exception) {
  28973. e = A.unwrapException(exception);
  28974. s = A.getTraceFromException(exception);
  28975. t1 = _this._box_1.source._resultOrListeners;
  28976. t2 = _this._box_0;
  28977. if (t1.error === e)
  28978. t2.listenerValueOrError = t1;
  28979. else
  28980. t2.listenerValueOrError = A.AsyncError$(e, s);
  28981. t2.listenerHasError = true;
  28982. }
  28983. },
  28984. $signature: 0
  28985. };
  28986. A._AsyncCallbackEntry.prototype = {};
  28987. A.Stream.prototype = {
  28988. get$isBroadcast() {
  28989. return false;
  28990. },
  28991. get$length(_) {
  28992. var t1 = {},
  28993. future = new A._Future($.Zone__current, type$._Future_int);
  28994. t1.count = 0;
  28995. this.listen$4$cancelOnError$onDone$onError(0, new A.Stream_length_closure(t1, this), true, new A.Stream_length_closure0(t1, future), future.get$_completeError());
  28996. return future;
  28997. }
  28998. };
  28999. A.Stream_Stream$fromFuture_closure.prototype = {
  29000. call$1(value) {
  29001. var t1 = this.controller;
  29002. t1._async$_add$1(value);
  29003. t1._closeUnchecked$0();
  29004. },
  29005. $signature() {
  29006. return this.T._eval$1("Null(0)");
  29007. }
  29008. };
  29009. A.Stream_Stream$fromFuture_closure0.prototype = {
  29010. call$2(error, stackTrace) {
  29011. var t1 = this.controller;
  29012. t1._addError$2(error, stackTrace);
  29013. t1._closeUnchecked$0();
  29014. },
  29015. $signature: 393
  29016. };
  29017. A.Stream_length_closure.prototype = {
  29018. call$1(_) {
  29019. ++this._box_0.count;
  29020. },
  29021. $signature() {
  29022. return A._instanceType(this.$this)._eval$1("~(Stream.T)");
  29023. }
  29024. };
  29025. A.Stream_length_closure0.prototype = {
  29026. call$0() {
  29027. this.future._complete$1(this._box_0.count);
  29028. },
  29029. $signature: 0
  29030. };
  29031. A.StreamTransformerBase.prototype = {};
  29032. A._StreamController.prototype = {
  29033. get$stream() {
  29034. return new A._ControllerStream(this, A._instanceType(this)._eval$1("_ControllerStream<1>"));
  29035. },
  29036. get$_pendingEvents() {
  29037. if ((this._state & 8) === 0)
  29038. return this._varData;
  29039. return this._varData.varData;
  29040. },
  29041. _ensurePendingEvents$0() {
  29042. var events, state, _this = this;
  29043. if ((_this._state & 8) === 0) {
  29044. events = _this._varData;
  29045. return events == null ? _this._varData = new A._PendingEvents() : events;
  29046. }
  29047. state = _this._varData;
  29048. events = state.varData;
  29049. return events == null ? state.varData = new A._PendingEvents() : events;
  29050. },
  29051. get$_subscription() {
  29052. var varData = this._varData;
  29053. return (this._state & 8) !== 0 ? varData.varData : varData;
  29054. },
  29055. _badEventState$0() {
  29056. if ((this._state & 4) !== 0)
  29057. return new A.StateError("Cannot add event after closing");
  29058. return new A.StateError("Cannot add event while adding a stream");
  29059. },
  29060. addStream$2$cancelOnError(source, cancelOnError) {
  29061. var t2, t3, t4, _this = this,
  29062. t1 = _this._state;
  29063. if (t1 >= 4)
  29064. throw A.wrapException(_this._badEventState$0());
  29065. if ((t1 & 2) !== 0) {
  29066. t1 = new A._Future($.Zone__current, type$._Future_dynamic);
  29067. t1._asyncComplete$1(null);
  29068. return t1;
  29069. }
  29070. t1 = _this._varData;
  29071. t2 = new A._Future($.Zone__current, type$._Future_dynamic);
  29072. t3 = source.listen$4$cancelOnError$onDone$onError(0, _this.get$_async$_add(), false, _this.get$_close(), _this.get$_addError());
  29073. t4 = _this._state;
  29074. if ((t4 & 1) !== 0 ? (_this.get$_subscription()._state & 4) !== 0 : (t4 & 2) === 0)
  29075. t3.pause$0(0);
  29076. _this._varData = new A._StreamControllerAddStreamState(t1, t2, t3);
  29077. _this._state |= 8;
  29078. return t2;
  29079. },
  29080. _ensureDoneFuture$0() {
  29081. var t1 = this._doneFuture;
  29082. if (t1 == null)
  29083. t1 = this._doneFuture = (this._state & 2) !== 0 ? $.$get$Future__nullFuture() : new A._Future($.Zone__current, type$._Future_void);
  29084. return t1;
  29085. },
  29086. add$1(_, value) {
  29087. if (this._state >= 4)
  29088. throw A.wrapException(this._badEventState$0());
  29089. this._async$_add$1(value);
  29090. },
  29091. addError$2(error, stackTrace) {
  29092. var replacement;
  29093. A.checkNotNullable(error, "error", type$.Object);
  29094. if (this._state >= 4)
  29095. throw A.wrapException(this._badEventState$0());
  29096. replacement = $.Zone__current.errorCallback$2(error, stackTrace);
  29097. if (replacement != null) {
  29098. error = replacement.error;
  29099. stackTrace = replacement.stackTrace;
  29100. } else if (stackTrace == null)
  29101. stackTrace = A.AsyncError_defaultStackTrace(error);
  29102. this._addError$2(error, stackTrace);
  29103. },
  29104. addError$1(error) {
  29105. return this.addError$2(error, null);
  29106. },
  29107. close$0(_) {
  29108. var _this = this,
  29109. t1 = _this._state;
  29110. if ((t1 & 4) !== 0)
  29111. return _this._ensureDoneFuture$0();
  29112. if (t1 >= 4)
  29113. throw A.wrapException(_this._badEventState$0());
  29114. _this._closeUnchecked$0();
  29115. return _this._ensureDoneFuture$0();
  29116. },
  29117. _closeUnchecked$0() {
  29118. var t1 = this._state |= 4;
  29119. if ((t1 & 1) !== 0)
  29120. this._sendDone$0();
  29121. else if ((t1 & 3) === 0)
  29122. this._ensurePendingEvents$0().add$1(0, B.C__DelayedDone);
  29123. },
  29124. _async$_add$1(value) {
  29125. var t1 = this._state;
  29126. if ((t1 & 1) !== 0)
  29127. this._sendData$1(value);
  29128. else if ((t1 & 3) === 0)
  29129. this._ensurePendingEvents$0().add$1(0, new A._DelayedData(value));
  29130. },
  29131. _addError$2(error, stackTrace) {
  29132. var t1 = this._state;
  29133. if ((t1 & 1) !== 0)
  29134. this._sendError$2(error, stackTrace);
  29135. else if ((t1 & 3) === 0)
  29136. this._ensurePendingEvents$0().add$1(0, new A._DelayedError(error, stackTrace));
  29137. },
  29138. _close$0() {
  29139. var addState = this._varData;
  29140. this._varData = addState.varData;
  29141. this._state &= 4294967287;
  29142. addState.addStreamFuture._asyncComplete$1(null);
  29143. },
  29144. _subscribe$4(onData, onError, onDone, cancelOnError) {
  29145. var subscription, pendingEvents, t1, addState, _this = this;
  29146. if ((_this._state & 3) !== 0)
  29147. throw A.wrapException(A.StateError$("Stream has already been listened to."));
  29148. subscription = A._ControllerSubscription$(_this, onData, onError, onDone, cancelOnError, A._instanceType(_this)._precomputed1);
  29149. pendingEvents = _this.get$_pendingEvents();
  29150. t1 = _this._state |= 1;
  29151. if ((t1 & 8) !== 0) {
  29152. addState = _this._varData;
  29153. addState.varData = subscription;
  29154. addState.addSubscription.resume$0(0);
  29155. } else
  29156. _this._varData = subscription;
  29157. subscription._setPendingEvents$1(pendingEvents);
  29158. subscription._guardCallback$1(new A._StreamController__subscribe_closure(_this));
  29159. return subscription;
  29160. },
  29161. _recordCancel$1(subscription) {
  29162. var onCancel, cancelResult, e, s, exception, result0, t1, _this = this, result = null;
  29163. if ((_this._state & 8) !== 0)
  29164. result = _this._varData.cancel$0();
  29165. _this._varData = null;
  29166. _this._state = _this._state & 4294967286 | 2;
  29167. onCancel = _this.onCancel;
  29168. if (onCancel != null)
  29169. if (result == null)
  29170. try {
  29171. cancelResult = onCancel.call$0();
  29172. if (type$.Future_void._is(cancelResult))
  29173. result = cancelResult;
  29174. } catch (exception) {
  29175. e = A.unwrapException(exception);
  29176. s = A.getTraceFromException(exception);
  29177. result0 = new A._Future($.Zone__current, type$._Future_void);
  29178. result0._asyncCompleteError$2(e, s);
  29179. result = result0;
  29180. }
  29181. else
  29182. result = result.whenComplete$1(onCancel);
  29183. t1 = new A._StreamController__recordCancel_complete(_this);
  29184. if (result != null)
  29185. result = result.whenComplete$1(t1);
  29186. else
  29187. t1.call$0();
  29188. return result;
  29189. },
  29190. _recordPause$1(subscription) {
  29191. if ((this._state & 8) !== 0)
  29192. this._varData.addSubscription.pause$0(0);
  29193. A._runGuarded(this.onPause);
  29194. },
  29195. _recordResume$1(subscription) {
  29196. if ((this._state & 8) !== 0)
  29197. this._varData.addSubscription.resume$0(0);
  29198. A._runGuarded(this.onResume);
  29199. },
  29200. $isEventSink: 1,
  29201. set$onPause(val) {
  29202. return this.onPause = val;
  29203. },
  29204. set$onResume(val) {
  29205. return this.onResume = val;
  29206. },
  29207. set$onCancel(val) {
  29208. return this.onCancel = val;
  29209. }
  29210. };
  29211. A._StreamController__subscribe_closure.prototype = {
  29212. call$0() {
  29213. A._runGuarded(this.$this.onListen);
  29214. },
  29215. $signature: 0
  29216. };
  29217. A._StreamController__recordCancel_complete.prototype = {
  29218. call$0() {
  29219. var doneFuture = this.$this._doneFuture;
  29220. if (doneFuture != null && (doneFuture._state & 30) === 0)
  29221. doneFuture._asyncComplete$1(null);
  29222. },
  29223. $signature: 0
  29224. };
  29225. A._SyncStreamControllerDispatch.prototype = {
  29226. _sendData$1(data) {
  29227. this.get$_subscription()._async$_add$1(data);
  29228. },
  29229. _sendError$2(error, stackTrace) {
  29230. this.get$_subscription()._addError$2(error, stackTrace);
  29231. },
  29232. _sendDone$0() {
  29233. this.get$_subscription()._close$0();
  29234. }
  29235. };
  29236. A._AsyncStreamControllerDispatch.prototype = {
  29237. _sendData$1(data) {
  29238. this.get$_subscription()._addPending$1(new A._DelayedData(data));
  29239. },
  29240. _sendError$2(error, stackTrace) {
  29241. this.get$_subscription()._addPending$1(new A._DelayedError(error, stackTrace));
  29242. },
  29243. _sendDone$0() {
  29244. this.get$_subscription()._addPending$1(B.C__DelayedDone);
  29245. }
  29246. };
  29247. A._AsyncStreamController.prototype = {};
  29248. A._SyncStreamController.prototype = {};
  29249. A._ControllerStream.prototype = {
  29250. get$hashCode(_) {
  29251. return (A.Primitives_objectHashCode(this._controller) ^ 892482866) >>> 0;
  29252. },
  29253. $eq(_, other) {
  29254. if (other == null)
  29255. return false;
  29256. if (this === other)
  29257. return true;
  29258. return other instanceof A._ControllerStream && other._controller === this._controller;
  29259. }
  29260. };
  29261. A._ControllerSubscription.prototype = {
  29262. _async$_onCancel$0() {
  29263. return this._controller._recordCancel$1(this);
  29264. },
  29265. _async$_onPause$0() {
  29266. this._controller._recordPause$1(this);
  29267. },
  29268. _async$_onResume$0() {
  29269. this._controller._recordResume$1(this);
  29270. }
  29271. };
  29272. A._AddStreamState.prototype = {
  29273. cancel$0() {
  29274. var cancel = this.addSubscription.cancel$0();
  29275. return cancel.whenComplete$1(new A._AddStreamState_cancel_closure(this));
  29276. }
  29277. };
  29278. A._AddStreamState_cancel_closure.prototype = {
  29279. call$0() {
  29280. this.$this.addStreamFuture._asyncComplete$1(null);
  29281. },
  29282. $signature: 1
  29283. };
  29284. A._StreamControllerAddStreamState.prototype = {};
  29285. A._BufferingStreamSubscription.prototype = {
  29286. _setPendingEvents$1(pendingEvents) {
  29287. var _this = this;
  29288. if (pendingEvents == null)
  29289. return;
  29290. _this._pending = pendingEvents;
  29291. if (pendingEvents.lastPendingEvent != null) {
  29292. _this._state = (_this._state | 64) >>> 0;
  29293. pendingEvents.schedule$1(_this);
  29294. }
  29295. },
  29296. pause$1(_, resumeSignal) {
  29297. var t2, t3, _this = this,
  29298. t1 = _this._state;
  29299. if ((t1 & 8) !== 0)
  29300. return;
  29301. t2 = (t1 + 128 | 4) >>> 0;
  29302. _this._state = t2;
  29303. if (t1 < 128) {
  29304. t3 = _this._pending;
  29305. if (t3 != null)
  29306. if (t3._state === 1)
  29307. t3._state = 3;
  29308. }
  29309. if ((t1 & 4) === 0 && (t2 & 32) === 0)
  29310. _this._guardCallback$1(_this.get$_async$_onPause());
  29311. },
  29312. pause$0($receiver) {
  29313. return this.pause$1($receiver, null);
  29314. },
  29315. resume$0(_) {
  29316. var _this = this,
  29317. t1 = _this._state;
  29318. if ((t1 & 8) !== 0)
  29319. return;
  29320. if (t1 >= 128) {
  29321. t1 = _this._state = t1 - 128;
  29322. if (t1 < 128)
  29323. if ((t1 & 64) !== 0 && _this._pending.lastPendingEvent != null)
  29324. _this._pending.schedule$1(_this);
  29325. else {
  29326. t1 = (t1 & 4294967291) >>> 0;
  29327. _this._state = t1;
  29328. if ((t1 & 32) === 0)
  29329. _this._guardCallback$1(_this.get$_async$_onResume());
  29330. }
  29331. }
  29332. },
  29333. cancel$0() {
  29334. var _this = this,
  29335. t1 = (_this._state & 4294967279) >>> 0;
  29336. _this._state = t1;
  29337. if ((t1 & 8) === 0)
  29338. _this._cancel$0();
  29339. t1 = _this._cancelFuture;
  29340. return t1 == null ? $.$get$Future__nullFuture() : t1;
  29341. },
  29342. _cancel$0() {
  29343. var t2, _this = this,
  29344. t1 = _this._state = (_this._state | 8) >>> 0;
  29345. if ((t1 & 64) !== 0) {
  29346. t2 = _this._pending;
  29347. if (t2._state === 1)
  29348. t2._state = 3;
  29349. }
  29350. if ((t1 & 32) === 0)
  29351. _this._pending = null;
  29352. _this._cancelFuture = _this._async$_onCancel$0();
  29353. },
  29354. _async$_add$1(data) {
  29355. var t1 = this._state;
  29356. if ((t1 & 8) !== 0)
  29357. return;
  29358. if (t1 < 32)
  29359. this._sendData$1(data);
  29360. else
  29361. this._addPending$1(new A._DelayedData(data));
  29362. },
  29363. _addError$2(error, stackTrace) {
  29364. var t1 = this._state;
  29365. if ((t1 & 8) !== 0)
  29366. return;
  29367. if (t1 < 32)
  29368. this._sendError$2(error, stackTrace);
  29369. else
  29370. this._addPending$1(new A._DelayedError(error, stackTrace));
  29371. },
  29372. _close$0() {
  29373. var _this = this,
  29374. t1 = _this._state;
  29375. if ((t1 & 8) !== 0)
  29376. return;
  29377. t1 = (t1 | 2) >>> 0;
  29378. _this._state = t1;
  29379. if (t1 < 32)
  29380. _this._sendDone$0();
  29381. else
  29382. _this._addPending$1(B.C__DelayedDone);
  29383. },
  29384. _async$_onPause$0() {
  29385. },
  29386. _async$_onResume$0() {
  29387. },
  29388. _async$_onCancel$0() {
  29389. return null;
  29390. },
  29391. _addPending$1($event) {
  29392. var t1, _this = this,
  29393. pending = _this._pending;
  29394. if (pending == null)
  29395. pending = _this._pending = new A._PendingEvents();
  29396. pending.add$1(0, $event);
  29397. t1 = _this._state;
  29398. if ((t1 & 64) === 0) {
  29399. t1 = (t1 | 64) >>> 0;
  29400. _this._state = t1;
  29401. if (t1 < 128)
  29402. pending.schedule$1(_this);
  29403. }
  29404. },
  29405. _sendData$1(data) {
  29406. var _this = this,
  29407. t1 = _this._state;
  29408. _this._state = (t1 | 32) >>> 0;
  29409. _this._zone.runUnaryGuarded$1$2(_this._onData, data, A._instanceType(_this)._eval$1("_BufferingStreamSubscription.T"));
  29410. _this._state = (_this._state & 4294967263) >>> 0;
  29411. _this._checkState$1((t1 & 4) !== 0);
  29412. },
  29413. _sendError$2(error, stackTrace) {
  29414. var cancelFuture, _this = this,
  29415. t1 = _this._state,
  29416. t2 = new A._BufferingStreamSubscription__sendError_sendError(_this, error, stackTrace);
  29417. if ((t1 & 1) !== 0) {
  29418. _this._state = (t1 | 16) >>> 0;
  29419. _this._cancel$0();
  29420. cancelFuture = _this._cancelFuture;
  29421. if (cancelFuture != null && cancelFuture !== $.$get$Future__nullFuture())
  29422. cancelFuture.whenComplete$1(t2);
  29423. else
  29424. t2.call$0();
  29425. } else {
  29426. t2.call$0();
  29427. _this._checkState$1((t1 & 4) !== 0);
  29428. }
  29429. },
  29430. _sendDone$0() {
  29431. var cancelFuture, _this = this,
  29432. t1 = new A._BufferingStreamSubscription__sendDone_sendDone(_this);
  29433. _this._cancel$0();
  29434. _this._state = (_this._state | 16) >>> 0;
  29435. cancelFuture = _this._cancelFuture;
  29436. if (cancelFuture != null && cancelFuture !== $.$get$Future__nullFuture())
  29437. cancelFuture.whenComplete$1(t1);
  29438. else
  29439. t1.call$0();
  29440. },
  29441. _guardCallback$1(callback) {
  29442. var _this = this,
  29443. t1 = _this._state;
  29444. _this._state = (t1 | 32) >>> 0;
  29445. callback.call$0();
  29446. _this._state = (_this._state & 4294967263) >>> 0;
  29447. _this._checkState$1((t1 & 4) !== 0);
  29448. },
  29449. _checkState$1(wasInputPaused) {
  29450. var t2, isInputPaused, _this = this,
  29451. t1 = _this._state;
  29452. if ((t1 & 64) !== 0 && _this._pending.lastPendingEvent == null) {
  29453. t1 = _this._state = (t1 & 4294967231) >>> 0;
  29454. if ((t1 & 4) !== 0)
  29455. if (t1 < 128) {
  29456. t2 = _this._pending;
  29457. t2 = t2 == null ? null : t2.lastPendingEvent == null;
  29458. t2 = t2 !== false;
  29459. } else
  29460. t2 = false;
  29461. else
  29462. t2 = false;
  29463. if (t2) {
  29464. t1 = (t1 & 4294967291) >>> 0;
  29465. _this._state = t1;
  29466. }
  29467. }
  29468. for (; true; wasInputPaused = isInputPaused) {
  29469. if ((t1 & 8) !== 0) {
  29470. _this._pending = null;
  29471. return;
  29472. }
  29473. isInputPaused = (t1 & 4) !== 0;
  29474. if (wasInputPaused === isInputPaused)
  29475. break;
  29476. _this._state = (t1 ^ 32) >>> 0;
  29477. if (isInputPaused)
  29478. _this._async$_onPause$0();
  29479. else
  29480. _this._async$_onResume$0();
  29481. t1 = (_this._state & 4294967263) >>> 0;
  29482. _this._state = t1;
  29483. }
  29484. if ((t1 & 64) !== 0 && t1 < 128)
  29485. _this._pending.schedule$1(_this);
  29486. },
  29487. $isStreamSubscription: 1
  29488. };
  29489. A._BufferingStreamSubscription__sendError_sendError.prototype = {
  29490. call$0() {
  29491. var onError, t3, t4,
  29492. t1 = this.$this,
  29493. t2 = t1._state;
  29494. if ((t2 & 8) !== 0 && (t2 & 16) === 0)
  29495. return;
  29496. t1._state = (t2 | 32) >>> 0;
  29497. onError = t1._onError;
  29498. t2 = this.error;
  29499. t3 = type$.Object;
  29500. t4 = t1._zone;
  29501. if (type$.void_Function_Object_StackTrace._is(onError))
  29502. t4.runBinaryGuarded$2$3(onError, t2, this.stackTrace, t3, type$.StackTrace);
  29503. else
  29504. t4.runUnaryGuarded$1$2(onError, t2, t3);
  29505. t1._state = (t1._state & 4294967263) >>> 0;
  29506. },
  29507. $signature: 0
  29508. };
  29509. A._BufferingStreamSubscription__sendDone_sendDone.prototype = {
  29510. call$0() {
  29511. var t1 = this.$this,
  29512. t2 = t1._state;
  29513. if ((t2 & 16) === 0)
  29514. return;
  29515. t1._state = (t2 | 42) >>> 0;
  29516. t1._zone.runGuarded$1(t1._onDone);
  29517. t1._state = (t1._state & 4294967263) >>> 0;
  29518. },
  29519. $signature: 0
  29520. };
  29521. A._StreamImpl.prototype = {
  29522. listen$4$cancelOnError$onDone$onError(_, onData, cancelOnError, onDone, onError) {
  29523. return this._controller._subscribe$4(onData, onError, onDone, cancelOnError === true);
  29524. },
  29525. listen$1($receiver, onData) {
  29526. return this.listen$4$cancelOnError$onDone$onError($receiver, onData, null, null, null);
  29527. },
  29528. listen$3$onDone$onError($receiver, onData, onDone, onError) {
  29529. return this.listen$4$cancelOnError$onDone$onError($receiver, onData, null, onDone, onError);
  29530. }
  29531. };
  29532. A._DelayedEvent.prototype = {
  29533. get$next() {
  29534. return this.next;
  29535. },
  29536. set$next(val) {
  29537. return this.next = val;
  29538. }
  29539. };
  29540. A._DelayedData.prototype = {
  29541. perform$1(dispatch) {
  29542. dispatch._sendData$1(this.value);
  29543. }
  29544. };
  29545. A._DelayedError.prototype = {
  29546. perform$1(dispatch) {
  29547. dispatch._sendError$2(this.error, this.stackTrace);
  29548. }
  29549. };
  29550. A._DelayedDone.prototype = {
  29551. perform$1(dispatch) {
  29552. dispatch._sendDone$0();
  29553. },
  29554. get$next() {
  29555. return null;
  29556. },
  29557. set$next(_) {
  29558. throw A.wrapException(A.StateError$("No events after a done."));
  29559. }
  29560. };
  29561. A._PendingEvents.prototype = {
  29562. schedule$1(dispatch) {
  29563. var _this = this,
  29564. t1 = _this._state;
  29565. if (t1 === 1)
  29566. return;
  29567. if (t1 >= 1) {
  29568. _this._state = 1;
  29569. return;
  29570. }
  29571. A.scheduleMicrotask(new A._PendingEvents_schedule_closure(_this, dispatch));
  29572. _this._state = 1;
  29573. },
  29574. add$1(_, $event) {
  29575. var _this = this,
  29576. lastEvent = _this.lastPendingEvent;
  29577. if (lastEvent == null)
  29578. _this.firstPendingEvent = _this.lastPendingEvent = $event;
  29579. else {
  29580. lastEvent.set$next($event);
  29581. _this.lastPendingEvent = $event;
  29582. }
  29583. }
  29584. };
  29585. A._PendingEvents_schedule_closure.prototype = {
  29586. call$0() {
  29587. var $event, nextEvent,
  29588. t1 = this.$this,
  29589. oldState = t1._state;
  29590. t1._state = 0;
  29591. if (oldState === 3)
  29592. return;
  29593. $event = t1.firstPendingEvent;
  29594. nextEvent = $event.get$next();
  29595. t1.firstPendingEvent = nextEvent;
  29596. if (nextEvent == null)
  29597. t1.lastPendingEvent = null;
  29598. $event.perform$1(this.dispatch);
  29599. },
  29600. $signature: 0
  29601. };
  29602. A._StreamIterator.prototype = {
  29603. get$current(_) {
  29604. if (this._async$_hasValue)
  29605. return this._stateData;
  29606. return null;
  29607. },
  29608. moveNext$0() {
  29609. var future, _this = this,
  29610. subscription = _this._subscription;
  29611. if (subscription != null) {
  29612. if (_this._async$_hasValue) {
  29613. future = new A._Future($.Zone__current, type$._Future_bool);
  29614. _this._stateData = future;
  29615. _this._async$_hasValue = false;
  29616. subscription.resume$0(0);
  29617. return future;
  29618. }
  29619. throw A.wrapException(A.StateError$("Already waiting for next."));
  29620. }
  29621. return _this._initializeOrDone$0();
  29622. },
  29623. _initializeOrDone$0() {
  29624. var future, subscription, _this = this,
  29625. stateData = _this._stateData;
  29626. if (stateData != null) {
  29627. future = new A._Future($.Zone__current, type$._Future_bool);
  29628. _this._stateData = future;
  29629. subscription = stateData.listen$4$cancelOnError$onDone$onError(0, _this.get$_onData(), true, _this.get$_onDone(), _this.get$_onError());
  29630. if (_this._stateData != null)
  29631. _this._subscription = subscription;
  29632. return future;
  29633. }
  29634. return $.$get$Future__falseFuture();
  29635. },
  29636. cancel$0() {
  29637. var _this = this,
  29638. subscription = _this._subscription,
  29639. stateData = _this._stateData;
  29640. _this._stateData = null;
  29641. if (subscription != null) {
  29642. _this._subscription = null;
  29643. if (!_this._async$_hasValue)
  29644. stateData._asyncComplete$1(false);
  29645. else
  29646. _this._async$_hasValue = false;
  29647. return subscription.cancel$0();
  29648. }
  29649. return $.$get$Future__nullFuture();
  29650. },
  29651. _onData$1(data) {
  29652. var moveNextFuture, t1, _this = this;
  29653. if (_this._subscription == null)
  29654. return;
  29655. moveNextFuture = _this._stateData;
  29656. _this._stateData = data;
  29657. _this._async$_hasValue = true;
  29658. moveNextFuture._complete$1(true);
  29659. if (_this._async$_hasValue) {
  29660. t1 = _this._subscription;
  29661. if (t1 != null)
  29662. t1.pause$0(0);
  29663. }
  29664. },
  29665. _onError$2(error, stackTrace) {
  29666. var _this = this,
  29667. subscription = _this._subscription,
  29668. moveNextFuture = _this._stateData;
  29669. _this._stateData = _this._subscription = null;
  29670. if (subscription != null)
  29671. moveNextFuture._completeError$2(error, stackTrace);
  29672. else
  29673. moveNextFuture._asyncCompleteError$2(error, stackTrace);
  29674. },
  29675. _onDone$0() {
  29676. var _this = this,
  29677. subscription = _this._subscription,
  29678. moveNextFuture = _this._stateData;
  29679. _this._stateData = _this._subscription = null;
  29680. if (subscription != null)
  29681. moveNextFuture._completeWithValue$1(false);
  29682. else
  29683. moveNextFuture._asyncCompleteWithValue$1(false);
  29684. }
  29685. };
  29686. A._ForwardingStream.prototype = {
  29687. get$isBroadcast() {
  29688. return this._async$_source.get$isBroadcast();
  29689. },
  29690. listen$4$cancelOnError$onDone$onError(_, onData, cancelOnError, onDone, onError) {
  29691. var t1 = this.$ti,
  29692. t2 = t1._rest[1],
  29693. t3 = $.Zone__current,
  29694. t4 = cancelOnError === true ? 1 : 0,
  29695. t5 = A._BufferingStreamSubscription__registerDataHandler(t3, onData, t2),
  29696. t6 = A._BufferingStreamSubscription__registerErrorHandler(t3, onError),
  29697. t7 = onDone == null ? A.async___nullDoneHandler$closure() : onDone;
  29698. t2 = new A._ForwardingStreamSubscription(this, t5, t6, t3.registerCallback$1$1(t7, type$.void), t3, t4, t1._eval$1("@<1>")._bind$1(t2)._eval$1("_ForwardingStreamSubscription<1,2>"));
  29699. t2._subscription = this._async$_source.listen$3$onDone$onError(0, t2.get$_handleData(), t2.get$_handleDone(), t2.get$_handleError());
  29700. return t2;
  29701. },
  29702. listen$1($receiver, onData) {
  29703. return this.listen$4$cancelOnError$onDone$onError($receiver, onData, null, null, null);
  29704. },
  29705. listen$3$onDone$onError($receiver, onData, onDone, onError) {
  29706. return this.listen$4$cancelOnError$onDone$onError($receiver, onData, null, onDone, onError);
  29707. }
  29708. };
  29709. A._ForwardingStreamSubscription.prototype = {
  29710. _async$_add$1(data) {
  29711. if ((this._state & 2) !== 0)
  29712. return;
  29713. this.super$_BufferingStreamSubscription$_add(data);
  29714. },
  29715. _addError$2(error, stackTrace) {
  29716. if ((this._state & 2) !== 0)
  29717. return;
  29718. this.super$_BufferingStreamSubscription$_addError(error, stackTrace);
  29719. },
  29720. _async$_onPause$0() {
  29721. var t1 = this._subscription;
  29722. if (t1 != null)
  29723. t1.pause$0(0);
  29724. },
  29725. _async$_onResume$0() {
  29726. var t1 = this._subscription;
  29727. if (t1 != null)
  29728. t1.resume$0(0);
  29729. },
  29730. _async$_onCancel$0() {
  29731. var subscription = this._subscription;
  29732. if (subscription != null) {
  29733. this._subscription = null;
  29734. return subscription.cancel$0();
  29735. }
  29736. return null;
  29737. },
  29738. _handleData$1(data) {
  29739. this._stream._handleData$2(data, this);
  29740. },
  29741. _handleError$2(error, stackTrace) {
  29742. this._addError$2(error, stackTrace);
  29743. },
  29744. _handleDone$0() {
  29745. this._close$0();
  29746. }
  29747. };
  29748. A._ExpandStream.prototype = {
  29749. _handleData$2(inputEvent, sink) {
  29750. var value, e, s, t1, exception, error, stackTrace, replacement;
  29751. try {
  29752. for (t1 = J.get$iterator$ax(this._expand.call$1(inputEvent)); t1.moveNext$0();) {
  29753. value = t1.get$current(t1);
  29754. sink._async$_add$1(value);
  29755. }
  29756. } catch (exception) {
  29757. e = A.unwrapException(exception);
  29758. s = A.getTraceFromException(exception);
  29759. error = e;
  29760. stackTrace = s;
  29761. replacement = $.Zone__current.errorCallback$2(error, stackTrace);
  29762. if (replacement != null) {
  29763. error = replacement.error;
  29764. stackTrace = replacement.stackTrace;
  29765. }
  29766. sink._addError$2(error, stackTrace);
  29767. }
  29768. }
  29769. };
  29770. A._ZoneFunction.prototype = {};
  29771. A._ZoneSpecification.prototype = {$isZoneSpecification: 1};
  29772. A._ZoneDelegate.prototype = {$isZoneDelegate: 1};
  29773. A._Zone.prototype = {
  29774. _processUncaughtError$3(zone, error, stackTrace) {
  29775. var handler, parentDelegate, parentZone, currentZone, e, s, t1, exception,
  29776. implementation = this.get$_handleUncaughtError(),
  29777. implZone = implementation.zone;
  29778. if (implZone === B.C__RootZone) {
  29779. A._rootHandleError(error, stackTrace);
  29780. return;
  29781. }
  29782. handler = implementation.$function;
  29783. parentDelegate = implZone.get$_parentDelegate();
  29784. t1 = J.get$parent$z(implZone);
  29785. t1.toString;
  29786. parentZone = t1;
  29787. currentZone = $.Zone__current;
  29788. try {
  29789. $.Zone__current = parentZone;
  29790. handler.call$5(implZone, parentDelegate, zone, error, stackTrace);
  29791. $.Zone__current = currentZone;
  29792. } catch (exception) {
  29793. e = A.unwrapException(exception);
  29794. s = A.getTraceFromException(exception);
  29795. $.Zone__current = currentZone;
  29796. t1 = error === e ? stackTrace : s;
  29797. parentZone._processUncaughtError$3(implZone, e, t1);
  29798. }
  29799. },
  29800. $isZone: 1
  29801. };
  29802. A._CustomZone.prototype = {
  29803. get$_delegate() {
  29804. var t1 = this._delegateCache;
  29805. return t1 == null ? this._delegateCache = new A._ZoneDelegate(this) : t1;
  29806. },
  29807. get$_parentDelegate() {
  29808. return this.parent.get$_delegate();
  29809. },
  29810. get$errorZone() {
  29811. return this._handleUncaughtError.zone;
  29812. },
  29813. runGuarded$1(f) {
  29814. var e, s, exception;
  29815. try {
  29816. this.run$1$1(0, f, type$.void);
  29817. } catch (exception) {
  29818. e = A.unwrapException(exception);
  29819. s = A.getTraceFromException(exception);
  29820. this._processUncaughtError$3(this, e, s);
  29821. }
  29822. },
  29823. runUnaryGuarded$1$2(f, arg, $T) {
  29824. var e, s, exception;
  29825. try {
  29826. this.runUnary$2$2(f, arg, type$.void, $T);
  29827. } catch (exception) {
  29828. e = A.unwrapException(exception);
  29829. s = A.getTraceFromException(exception);
  29830. this._processUncaughtError$3(this, e, s);
  29831. }
  29832. },
  29833. runBinaryGuarded$2$3(f, arg1, arg2, T1, T2) {
  29834. var e, s, exception;
  29835. try {
  29836. this.runBinary$3$3(f, arg1, arg2, type$.void, T1, T2);
  29837. } catch (exception) {
  29838. e = A.unwrapException(exception);
  29839. s = A.getTraceFromException(exception);
  29840. this._processUncaughtError$3(this, e, s);
  29841. }
  29842. },
  29843. bindCallback$1$1(f, $R) {
  29844. return new A._CustomZone_bindCallback_closure(this, this.registerCallback$1$1(f, $R), $R);
  29845. },
  29846. bindUnaryCallback$2$1(f, $R, $T) {
  29847. return new A._CustomZone_bindUnaryCallback_closure(this, this.registerUnaryCallback$2$1(f, $R, $T), $T, $R);
  29848. },
  29849. bindCallbackGuarded$1(f) {
  29850. return new A._CustomZone_bindCallbackGuarded_closure(this, this.registerCallback$1$1(f, type$.void));
  29851. },
  29852. $index(_, key) {
  29853. var value,
  29854. t1 = this._async$_map,
  29855. result = t1.$index(0, key);
  29856. if (result != null || t1.containsKey$1(key))
  29857. return result;
  29858. value = this.parent.$index(0, key);
  29859. if (value != null)
  29860. t1.$indexSet(0, key, value);
  29861. return value;
  29862. },
  29863. handleUncaughtError$2(error, stackTrace) {
  29864. this._processUncaughtError$3(this, error, stackTrace);
  29865. },
  29866. fork$2$specification$zoneValues(specification, zoneValues) {
  29867. var implementation = this._fork,
  29868. t1 = implementation.zone;
  29869. return implementation.$function.call$5(t1, t1.get$_parentDelegate(), this, specification, zoneValues);
  29870. },
  29871. run$1$1(_, f) {
  29872. var implementation = this._run,
  29873. t1 = implementation.zone;
  29874. return implementation.$function.call$4(t1, t1.get$_parentDelegate(), this, f);
  29875. },
  29876. runUnary$2$2(f, arg) {
  29877. var implementation = this._runUnary,
  29878. t1 = implementation.zone;
  29879. return implementation.$function.call$5(t1, t1.get$_parentDelegate(), this, f, arg);
  29880. },
  29881. runBinary$3$3(f, arg1, arg2) {
  29882. var implementation = this._runBinary,
  29883. t1 = implementation.zone;
  29884. return implementation.$function.call$6(t1, t1.get$_parentDelegate(), this, f, arg1, arg2);
  29885. },
  29886. registerCallback$1$1(callback) {
  29887. var implementation = this._registerCallback,
  29888. t1 = implementation.zone;
  29889. return implementation.$function.call$4(t1, t1.get$_parentDelegate(), this, callback);
  29890. },
  29891. registerUnaryCallback$2$1(callback) {
  29892. var implementation = this._registerUnaryCallback,
  29893. t1 = implementation.zone;
  29894. return implementation.$function.call$4(t1, t1.get$_parentDelegate(), this, callback);
  29895. },
  29896. registerBinaryCallback$3$1(callback) {
  29897. var implementation = this._registerBinaryCallback,
  29898. t1 = implementation.zone;
  29899. return implementation.$function.call$4(t1, t1.get$_parentDelegate(), this, callback);
  29900. },
  29901. errorCallback$2(error, stackTrace) {
  29902. var implementation, implementationZone;
  29903. A.checkNotNullable(error, "error", type$.Object);
  29904. implementation = this._errorCallback;
  29905. implementationZone = implementation.zone;
  29906. if (implementationZone === B.C__RootZone)
  29907. return null;
  29908. return implementation.$function.call$5(implementationZone, implementationZone.get$_parentDelegate(), this, error, stackTrace);
  29909. },
  29910. scheduleMicrotask$1(f) {
  29911. var implementation = this._scheduleMicrotask,
  29912. t1 = implementation.zone;
  29913. return implementation.$function.call$4(t1, t1.get$_parentDelegate(), this, f);
  29914. },
  29915. createTimer$2(duration, f) {
  29916. var implementation = this._createTimer,
  29917. t1 = implementation.zone;
  29918. return implementation.$function.call$5(t1, t1.get$_parentDelegate(), this, duration, f);
  29919. },
  29920. print$1(line) {
  29921. var implementation = this._print,
  29922. t1 = implementation.zone;
  29923. return implementation.$function.call$4(t1, t1.get$_parentDelegate(), this, line);
  29924. },
  29925. get$_run() {
  29926. return this._run;
  29927. },
  29928. get$_runUnary() {
  29929. return this._runUnary;
  29930. },
  29931. get$_runBinary() {
  29932. return this._runBinary;
  29933. },
  29934. get$_registerCallback() {
  29935. return this._registerCallback;
  29936. },
  29937. get$_registerUnaryCallback() {
  29938. return this._registerUnaryCallback;
  29939. },
  29940. get$_registerBinaryCallback() {
  29941. return this._registerBinaryCallback;
  29942. },
  29943. get$_errorCallback() {
  29944. return this._errorCallback;
  29945. },
  29946. get$_scheduleMicrotask() {
  29947. return this._scheduleMicrotask;
  29948. },
  29949. get$_createTimer() {
  29950. return this._createTimer;
  29951. },
  29952. get$_createPeriodicTimer() {
  29953. return this._createPeriodicTimer;
  29954. },
  29955. get$_print() {
  29956. return this._print;
  29957. },
  29958. get$_fork() {
  29959. return this._fork;
  29960. },
  29961. get$_handleUncaughtError() {
  29962. return this._handleUncaughtError;
  29963. },
  29964. get$parent(receiver) {
  29965. return this.parent;
  29966. },
  29967. get$_async$_map() {
  29968. return this._async$_map;
  29969. }
  29970. };
  29971. A._CustomZone_bindCallback_closure.prototype = {
  29972. call$0() {
  29973. return this.$this.run$1$1(0, this.registered, this.R);
  29974. },
  29975. $signature() {
  29976. return this.R._eval$1("0()");
  29977. }
  29978. };
  29979. A._CustomZone_bindUnaryCallback_closure.prototype = {
  29980. call$1(arg) {
  29981. var _this = this;
  29982. return _this.$this.runUnary$2$2(_this.registered, arg, _this.R, _this.T);
  29983. },
  29984. $signature() {
  29985. return this.R._eval$1("@<0>")._bind$1(this.T)._eval$1("1(2)");
  29986. }
  29987. };
  29988. A._CustomZone_bindCallbackGuarded_closure.prototype = {
  29989. call$0() {
  29990. return this.$this.runGuarded$1(this.registered);
  29991. },
  29992. $signature: 0
  29993. };
  29994. A._rootHandleError_closure.prototype = {
  29995. call$0() {
  29996. var t1 = this.error,
  29997. t2 = this.stackTrace;
  29998. A.checkNotNullable(t1, "error", type$.Object);
  29999. A.checkNotNullable(t2, "stackTrace", type$.StackTrace);
  30000. A.Error__throw(t1, t2);
  30001. },
  30002. $signature: 0
  30003. };
  30004. A._RootZone.prototype = {
  30005. get$_run() {
  30006. return B._ZoneFunction__RootZone__rootRun;
  30007. },
  30008. get$_runUnary() {
  30009. return B._ZoneFunction__RootZone__rootRunUnary;
  30010. },
  30011. get$_runBinary() {
  30012. return B._ZoneFunction__RootZone__rootRunBinary;
  30013. },
  30014. get$_registerCallback() {
  30015. return B._ZoneFunction__RootZone__rootRegisterCallback;
  30016. },
  30017. get$_registerUnaryCallback() {
  30018. return B._ZoneFunction_Eeh;
  30019. },
  30020. get$_registerBinaryCallback() {
  30021. return B._ZoneFunction_7G2;
  30022. },
  30023. get$_errorCallback() {
  30024. return B._ZoneFunction__RootZone__rootErrorCallback;
  30025. },
  30026. get$_scheduleMicrotask() {
  30027. return B._ZoneFunction__RootZone__rootScheduleMicrotask;
  30028. },
  30029. get$_createTimer() {
  30030. return B._ZoneFunction__RootZone__rootCreateTimer;
  30031. },
  30032. get$_createPeriodicTimer() {
  30033. return B._ZoneFunction_3bB;
  30034. },
  30035. get$_print() {
  30036. return B._ZoneFunction__RootZone__rootPrint;
  30037. },
  30038. get$_fork() {
  30039. return B._ZoneFunction__RootZone__rootFork;
  30040. },
  30041. get$_handleUncaughtError() {
  30042. return B._ZoneFunction_NMc;
  30043. },
  30044. get$parent(_) {
  30045. return null;
  30046. },
  30047. get$_async$_map() {
  30048. return $.$get$_RootZone__rootMap();
  30049. },
  30050. get$_delegate() {
  30051. var t1 = $._RootZone__rootDelegate;
  30052. return t1 == null ? $._RootZone__rootDelegate = new A._ZoneDelegate(this) : t1;
  30053. },
  30054. get$_parentDelegate() {
  30055. var t1 = $._RootZone__rootDelegate;
  30056. return t1 == null ? $._RootZone__rootDelegate = new A._ZoneDelegate(this) : t1;
  30057. },
  30058. get$errorZone() {
  30059. return this;
  30060. },
  30061. runGuarded$1(f) {
  30062. var e, s, exception;
  30063. try {
  30064. if (B.C__RootZone === $.Zone__current) {
  30065. f.call$0();
  30066. return;
  30067. }
  30068. A._rootRun(null, null, this, f);
  30069. } catch (exception) {
  30070. e = A.unwrapException(exception);
  30071. s = A.getTraceFromException(exception);
  30072. A._rootHandleError(e, s);
  30073. }
  30074. },
  30075. runUnaryGuarded$1$2(f, arg) {
  30076. var e, s, exception;
  30077. try {
  30078. if (B.C__RootZone === $.Zone__current) {
  30079. f.call$1(arg);
  30080. return;
  30081. }
  30082. A._rootRunUnary(null, null, this, f, arg);
  30083. } catch (exception) {
  30084. e = A.unwrapException(exception);
  30085. s = A.getTraceFromException(exception);
  30086. A._rootHandleError(e, s);
  30087. }
  30088. },
  30089. runBinaryGuarded$2$3(f, arg1, arg2) {
  30090. var e, s, exception;
  30091. try {
  30092. if (B.C__RootZone === $.Zone__current) {
  30093. f.call$2(arg1, arg2);
  30094. return;
  30095. }
  30096. A._rootRunBinary(null, null, this, f, arg1, arg2);
  30097. } catch (exception) {
  30098. e = A.unwrapException(exception);
  30099. s = A.getTraceFromException(exception);
  30100. A._rootHandleError(e, s);
  30101. }
  30102. },
  30103. bindCallback$1$1(f, $R) {
  30104. return new A._RootZone_bindCallback_closure(this, f, $R);
  30105. },
  30106. bindUnaryCallback$2$1(f, $R, $T) {
  30107. return new A._RootZone_bindUnaryCallback_closure(this, f, $T, $R);
  30108. },
  30109. bindCallbackGuarded$1(f) {
  30110. return new A._RootZone_bindCallbackGuarded_closure(this, f);
  30111. },
  30112. $index(_, key) {
  30113. return null;
  30114. },
  30115. handleUncaughtError$2(error, stackTrace) {
  30116. A._rootHandleError(error, stackTrace);
  30117. },
  30118. fork$2$specification$zoneValues(specification, zoneValues) {
  30119. return A._rootFork(null, null, this, specification, zoneValues);
  30120. },
  30121. run$1$1(_, f) {
  30122. if ($.Zone__current === B.C__RootZone)
  30123. return f.call$0();
  30124. return A._rootRun(null, null, this, f);
  30125. },
  30126. runUnary$2$2(f, arg) {
  30127. if ($.Zone__current === B.C__RootZone)
  30128. return f.call$1(arg);
  30129. return A._rootRunUnary(null, null, this, f, arg);
  30130. },
  30131. runBinary$3$3(f, arg1, arg2) {
  30132. if ($.Zone__current === B.C__RootZone)
  30133. return f.call$2(arg1, arg2);
  30134. return A._rootRunBinary(null, null, this, f, arg1, arg2);
  30135. },
  30136. registerCallback$1$1(f) {
  30137. return f;
  30138. },
  30139. registerUnaryCallback$2$1(f) {
  30140. return f;
  30141. },
  30142. registerBinaryCallback$3$1(f) {
  30143. return f;
  30144. },
  30145. errorCallback$2(error, stackTrace) {
  30146. return null;
  30147. },
  30148. scheduleMicrotask$1(f) {
  30149. A._rootScheduleMicrotask(null, null, this, f);
  30150. },
  30151. createTimer$2(duration, f) {
  30152. return A.Timer__createTimer(duration, f);
  30153. },
  30154. print$1(line) {
  30155. A.printString(line);
  30156. }
  30157. };
  30158. A._RootZone_bindCallback_closure.prototype = {
  30159. call$0() {
  30160. return this.$this.run$1$1(0, this.f, this.R);
  30161. },
  30162. $signature() {
  30163. return this.R._eval$1("0()");
  30164. }
  30165. };
  30166. A._RootZone_bindUnaryCallback_closure.prototype = {
  30167. call$1(arg) {
  30168. var _this = this;
  30169. return _this.$this.runUnary$2$2(_this.f, arg, _this.R, _this.T);
  30170. },
  30171. $signature() {
  30172. return this.R._eval$1("@<0>")._bind$1(this.T)._eval$1("1(2)");
  30173. }
  30174. };
  30175. A._RootZone_bindCallbackGuarded_closure.prototype = {
  30176. call$0() {
  30177. return this.$this.runGuarded$1(this.f);
  30178. },
  30179. $signature: 0
  30180. };
  30181. A._HashMap.prototype = {
  30182. get$length(_) {
  30183. return this._collection$_length;
  30184. },
  30185. get$isEmpty(_) {
  30186. return this._collection$_length === 0;
  30187. },
  30188. get$isNotEmpty(_) {
  30189. return this._collection$_length !== 0;
  30190. },
  30191. get$keys(_) {
  30192. return new A._HashMapKeyIterable(this, A._instanceType(this)._eval$1("_HashMapKeyIterable<1>"));
  30193. },
  30194. get$values(_) {
  30195. var t1 = A._instanceType(this);
  30196. return A.MappedIterable_MappedIterable(new A._HashMapKeyIterable(this, t1._eval$1("_HashMapKeyIterable<1>")), new A._HashMap_values_closure(this), t1._precomputed1, t1._rest[1]);
  30197. },
  30198. containsKey$1(key) {
  30199. var strings, nums;
  30200. if (typeof key == "string" && key !== "__proto__") {
  30201. strings = this._collection$_strings;
  30202. return strings == null ? false : strings[key] != null;
  30203. } else if (typeof key == "number" && (key & 1073741823) === key) {
  30204. nums = this._collection$_nums;
  30205. return nums == null ? false : nums[key] != null;
  30206. } else
  30207. return this._containsKey$1(key);
  30208. },
  30209. _containsKey$1(key) {
  30210. var rest = this._collection$_rest;
  30211. if (rest == null)
  30212. return false;
  30213. return this._findBucketIndex$2(this._getBucket$2(rest, key), key) >= 0;
  30214. },
  30215. addAll$1(_, other) {
  30216. other.forEach$1(0, new A._HashMap_addAll_closure(this));
  30217. },
  30218. $index(_, key) {
  30219. var strings, t1, nums;
  30220. if (typeof key == "string" && key !== "__proto__") {
  30221. strings = this._collection$_strings;
  30222. t1 = strings == null ? null : A._HashMap__getTableEntry(strings, key);
  30223. return t1;
  30224. } else if (typeof key == "number" && (key & 1073741823) === key) {
  30225. nums = this._collection$_nums;
  30226. t1 = nums == null ? null : A._HashMap__getTableEntry(nums, key);
  30227. return t1;
  30228. } else
  30229. return this._get$1(key);
  30230. },
  30231. _get$1(key) {
  30232. var bucket, index,
  30233. rest = this._collection$_rest;
  30234. if (rest == null)
  30235. return null;
  30236. bucket = this._getBucket$2(rest, key);
  30237. index = this._findBucketIndex$2(bucket, key);
  30238. return index < 0 ? null : bucket[index + 1];
  30239. },
  30240. $indexSet(_, key, value) {
  30241. var strings, nums, _this = this;
  30242. if (typeof key == "string" && key !== "__proto__") {
  30243. strings = _this._collection$_strings;
  30244. _this._collection$_addHashTableEntry$3(strings == null ? _this._collection$_strings = A._HashMap__newHashTable() : strings, key, value);
  30245. } else if (typeof key == "number" && (key & 1073741823) === key) {
  30246. nums = _this._collection$_nums;
  30247. _this._collection$_addHashTableEntry$3(nums == null ? _this._collection$_nums = A._HashMap__newHashTable() : nums, key, value);
  30248. } else
  30249. _this._set$2(key, value);
  30250. },
  30251. _set$2(key, value) {
  30252. var hash, bucket, index, _this = this,
  30253. rest = _this._collection$_rest;
  30254. if (rest == null)
  30255. rest = _this._collection$_rest = A._HashMap__newHashTable();
  30256. hash = _this._computeHashCode$1(key);
  30257. bucket = rest[hash];
  30258. if (bucket == null) {
  30259. A._HashMap__setTableEntry(rest, hash, [key, value]);
  30260. ++_this._collection$_length;
  30261. _this._keys = null;
  30262. } else {
  30263. index = _this._findBucketIndex$2(bucket, key);
  30264. if (index >= 0)
  30265. bucket[index + 1] = value;
  30266. else {
  30267. bucket.push(key, value);
  30268. ++_this._collection$_length;
  30269. _this._keys = null;
  30270. }
  30271. }
  30272. },
  30273. remove$1(_, key) {
  30274. var t1;
  30275. if (typeof key == "string" && key !== "__proto__")
  30276. return this._removeHashTableEntry$2(this._collection$_strings, key);
  30277. else {
  30278. t1 = this._remove$1(key);
  30279. return t1;
  30280. }
  30281. },
  30282. _remove$1(key) {
  30283. var hash, bucket, index, result, _this = this,
  30284. rest = _this._collection$_rest;
  30285. if (rest == null)
  30286. return null;
  30287. hash = _this._computeHashCode$1(key);
  30288. bucket = rest[hash];
  30289. index = _this._findBucketIndex$2(bucket, key);
  30290. if (index < 0)
  30291. return null;
  30292. --_this._collection$_length;
  30293. _this._keys = null;
  30294. result = bucket.splice(index, 2)[1];
  30295. if (0 === bucket.length)
  30296. delete rest[hash];
  30297. return result;
  30298. },
  30299. forEach$1(_, action) {
  30300. var $length, t1, i, key, t2, _this = this,
  30301. keys = _this._computeKeys$0();
  30302. for ($length = keys.length, t1 = A._instanceType(_this)._rest[1], i = 0; i < $length; ++i) {
  30303. key = keys[i];
  30304. t2 = _this.$index(0, key);
  30305. action.call$2(key, t2 == null ? t1._as(t2) : t2);
  30306. if (keys !== _this._keys)
  30307. throw A.wrapException(A.ConcurrentModificationError$(_this));
  30308. }
  30309. },
  30310. _computeKeys$0() {
  30311. var strings, names, entries, index, i, nums, rest, bucket, $length, i0, _this = this,
  30312. result = _this._keys;
  30313. if (result != null)
  30314. return result;
  30315. result = A.List_List$filled(_this._collection$_length, null, false, type$.dynamic);
  30316. strings = _this._collection$_strings;
  30317. if (strings != null) {
  30318. names = Object.getOwnPropertyNames(strings);
  30319. entries = names.length;
  30320. for (index = 0, i = 0; i < entries; ++i) {
  30321. result[index] = names[i];
  30322. ++index;
  30323. }
  30324. } else
  30325. index = 0;
  30326. nums = _this._collection$_nums;
  30327. if (nums != null) {
  30328. names = Object.getOwnPropertyNames(nums);
  30329. entries = names.length;
  30330. for (i = 0; i < entries; ++i) {
  30331. result[index] = +names[i];
  30332. ++index;
  30333. }
  30334. }
  30335. rest = _this._collection$_rest;
  30336. if (rest != null) {
  30337. names = Object.getOwnPropertyNames(rest);
  30338. entries = names.length;
  30339. for (i = 0; i < entries; ++i) {
  30340. bucket = rest[names[i]];
  30341. $length = bucket.length;
  30342. for (i0 = 0; i0 < $length; i0 += 2) {
  30343. result[index] = bucket[i0];
  30344. ++index;
  30345. }
  30346. }
  30347. }
  30348. return _this._keys = result;
  30349. },
  30350. _collection$_addHashTableEntry$3(table, key, value) {
  30351. if (table[key] == null) {
  30352. ++this._collection$_length;
  30353. this._keys = null;
  30354. }
  30355. A._HashMap__setTableEntry(table, key, value);
  30356. },
  30357. _removeHashTableEntry$2(table, key) {
  30358. var value;
  30359. if (table != null && table[key] != null) {
  30360. value = A._HashMap__getTableEntry(table, key);
  30361. delete table[key];
  30362. --this._collection$_length;
  30363. this._keys = null;
  30364. return value;
  30365. } else
  30366. return null;
  30367. },
  30368. _computeHashCode$1(key) {
  30369. return J.get$hashCode$(key) & 1073741823;
  30370. },
  30371. _getBucket$2(table, key) {
  30372. return table[this._computeHashCode$1(key)];
  30373. },
  30374. _findBucketIndex$2(bucket, key) {
  30375. var $length, i;
  30376. if (bucket == null)
  30377. return -1;
  30378. $length = bucket.length;
  30379. for (i = 0; i < $length; i += 2)
  30380. if (J.$eq$(bucket[i], key))
  30381. return i;
  30382. return -1;
  30383. }
  30384. };
  30385. A._HashMap_values_closure.prototype = {
  30386. call$1(each) {
  30387. var t1 = this.$this,
  30388. t2 = t1.$index(0, each);
  30389. return t2 == null ? A._instanceType(t1)._rest[1]._as(t2) : t2;
  30390. },
  30391. $signature() {
  30392. return A._instanceType(this.$this)._eval$1("2(1)");
  30393. }
  30394. };
  30395. A._HashMap_addAll_closure.prototype = {
  30396. call$2(key, value) {
  30397. this.$this.$indexSet(0, key, value);
  30398. },
  30399. $signature() {
  30400. return A._instanceType(this.$this)._eval$1("~(1,2)");
  30401. }
  30402. };
  30403. A._IdentityHashMap.prototype = {
  30404. _computeHashCode$1(key) {
  30405. return A.objectHashCode(key) & 1073741823;
  30406. },
  30407. _findBucketIndex$2(bucket, key) {
  30408. var $length, i, t1;
  30409. if (bucket == null)
  30410. return -1;
  30411. $length = bucket.length;
  30412. for (i = 0; i < $length; i += 2) {
  30413. t1 = bucket[i];
  30414. if (t1 == null ? key == null : t1 === key)
  30415. return i;
  30416. }
  30417. return -1;
  30418. }
  30419. };
  30420. A._HashMapKeyIterable.prototype = {
  30421. get$length(_) {
  30422. return this._map._collection$_length;
  30423. },
  30424. get$isEmpty(_) {
  30425. return this._map._collection$_length === 0;
  30426. },
  30427. get$iterator(_) {
  30428. var t1 = this._map;
  30429. return new A._HashMapKeyIterator(t1, t1._computeKeys$0());
  30430. },
  30431. contains$1(_, element) {
  30432. return this._map.containsKey$1(element);
  30433. }
  30434. };
  30435. A._HashMapKeyIterator.prototype = {
  30436. get$current(_) {
  30437. var t1 = this._collection$_current;
  30438. return t1 == null ? A._instanceType(this)._precomputed1._as(t1) : t1;
  30439. },
  30440. moveNext$0() {
  30441. var _this = this,
  30442. keys = _this._keys,
  30443. offset = _this._offset,
  30444. t1 = _this._map;
  30445. if (keys !== t1._keys)
  30446. throw A.wrapException(A.ConcurrentModificationError$(t1));
  30447. else if (offset >= keys.length) {
  30448. _this._collection$_current = null;
  30449. return false;
  30450. } else {
  30451. _this._collection$_current = keys[offset];
  30452. _this._offset = offset + 1;
  30453. return true;
  30454. }
  30455. }
  30456. };
  30457. A._LinkedIdentityHashMap.prototype = {
  30458. internalComputeHashCode$1(key) {
  30459. return A.objectHashCode(key) & 1073741823;
  30460. },
  30461. internalFindBucketIndex$2(bucket, key) {
  30462. var $length, i, t1;
  30463. if (bucket == null)
  30464. return -1;
  30465. $length = bucket.length;
  30466. for (i = 0; i < $length; ++i) {
  30467. t1 = bucket[i].hashMapCellKey;
  30468. if (t1 == null ? key == null : t1 === key)
  30469. return i;
  30470. }
  30471. return -1;
  30472. }
  30473. };
  30474. A._LinkedCustomHashMap.prototype = {
  30475. $index(_, key) {
  30476. if (!this._validKey.call$1(key))
  30477. return null;
  30478. return this.super$JsLinkedHashMap$internalGet(key);
  30479. },
  30480. $indexSet(_, key, value) {
  30481. this.super$JsLinkedHashMap$internalSet(key, value);
  30482. },
  30483. containsKey$1(key) {
  30484. if (!this._validKey.call$1(key))
  30485. return false;
  30486. return this.super$JsLinkedHashMap$internalContainsKey(key);
  30487. },
  30488. remove$1(_, key) {
  30489. if (!this._validKey.call$1(key))
  30490. return null;
  30491. return this.super$JsLinkedHashMap$internalRemove(key);
  30492. },
  30493. internalComputeHashCode$1(key) {
  30494. return this._hashCode.call$1(key) & 1073741823;
  30495. },
  30496. internalFindBucketIndex$2(bucket, key) {
  30497. var $length, t1, i;
  30498. if (bucket == null)
  30499. return -1;
  30500. $length = bucket.length;
  30501. for (t1 = this._equals, i = 0; i < $length; ++i)
  30502. if (t1.call$2(bucket[i].hashMapCellKey, key))
  30503. return i;
  30504. return -1;
  30505. }
  30506. };
  30507. A._LinkedCustomHashMap_closure.prototype = {
  30508. call$1(v) {
  30509. return this.K._is(v);
  30510. },
  30511. $signature: 115
  30512. };
  30513. A._LinkedHashSet.prototype = {
  30514. _newSet$0() {
  30515. return new A._LinkedHashSet(A._instanceType(this)._eval$1("_LinkedHashSet<1>"));
  30516. },
  30517. _newSimilarSet$1$0($R) {
  30518. return new A._LinkedHashSet($R._eval$1("_LinkedHashSet<0>"));
  30519. },
  30520. _newSimilarSet$0() {
  30521. return this._newSimilarSet$1$0(type$.dynamic);
  30522. },
  30523. get$iterator(_) {
  30524. var t1 = new A._LinkedHashSetIterator(this, this._collection$_modifications);
  30525. t1._collection$_cell = this._collection$_first;
  30526. return t1;
  30527. },
  30528. get$length(_) {
  30529. return this._collection$_length;
  30530. },
  30531. get$isEmpty(_) {
  30532. return this._collection$_length === 0;
  30533. },
  30534. get$isNotEmpty(_) {
  30535. return this._collection$_length !== 0;
  30536. },
  30537. contains$1(_, object) {
  30538. var strings, nums;
  30539. if (typeof object == "string" && object !== "__proto__") {
  30540. strings = this._collection$_strings;
  30541. if (strings == null)
  30542. return false;
  30543. return strings[object] != null;
  30544. } else if (typeof object == "number" && (object & 1073741823) === object) {
  30545. nums = this._collection$_nums;
  30546. if (nums == null)
  30547. return false;
  30548. return nums[object] != null;
  30549. } else
  30550. return this._contains$1(object);
  30551. },
  30552. _contains$1(object) {
  30553. var rest = this._collection$_rest;
  30554. if (rest == null)
  30555. return false;
  30556. return this._findBucketIndex$2(rest[this._computeHashCode$1(object)], object) >= 0;
  30557. },
  30558. get$first(_) {
  30559. var first = this._collection$_first;
  30560. if (first == null)
  30561. throw A.wrapException(A.StateError$("No elements"));
  30562. return first._element;
  30563. },
  30564. get$last(_) {
  30565. var last = this._collection$_last;
  30566. if (last == null)
  30567. throw A.wrapException(A.StateError$("No elements"));
  30568. return last._element;
  30569. },
  30570. add$1(_, element) {
  30571. var strings, nums, _this = this;
  30572. if (typeof element == "string" && element !== "__proto__") {
  30573. strings = _this._collection$_strings;
  30574. return _this._collection$_addHashTableEntry$2(strings == null ? _this._collection$_strings = A._LinkedHashSet__newHashTable() : strings, element);
  30575. } else if (typeof element == "number" && (element & 1073741823) === element) {
  30576. nums = _this._collection$_nums;
  30577. return _this._collection$_addHashTableEntry$2(nums == null ? _this._collection$_nums = A._LinkedHashSet__newHashTable() : nums, element);
  30578. } else
  30579. return _this._add$1(element);
  30580. },
  30581. _add$1(element) {
  30582. var hash, bucket, _this = this,
  30583. rest = _this._collection$_rest;
  30584. if (rest == null)
  30585. rest = _this._collection$_rest = A._LinkedHashSet__newHashTable();
  30586. hash = _this._computeHashCode$1(element);
  30587. bucket = rest[hash];
  30588. if (bucket == null)
  30589. rest[hash] = [_this._collection$_newLinkedCell$1(element)];
  30590. else {
  30591. if (_this._findBucketIndex$2(bucket, element) >= 0)
  30592. return false;
  30593. bucket.push(_this._collection$_newLinkedCell$1(element));
  30594. }
  30595. return true;
  30596. },
  30597. remove$1(_, object) {
  30598. var _this = this;
  30599. if (typeof object == "string" && object !== "__proto__")
  30600. return _this._removeHashTableEntry$2(_this._collection$_strings, object);
  30601. else if (typeof object == "number" && (object & 1073741823) === object)
  30602. return _this._removeHashTableEntry$2(_this._collection$_nums, object);
  30603. else
  30604. return _this._remove$1(object);
  30605. },
  30606. _remove$1(object) {
  30607. var hash, bucket, index, cell, _this = this,
  30608. rest = _this._collection$_rest;
  30609. if (rest == null)
  30610. return false;
  30611. hash = _this._computeHashCode$1(object);
  30612. bucket = rest[hash];
  30613. index = _this._findBucketIndex$2(bucket, object);
  30614. if (index < 0)
  30615. return false;
  30616. cell = bucket.splice(index, 1)[0];
  30617. if (0 === bucket.length)
  30618. delete rest[hash];
  30619. _this._unlinkCell$1(cell);
  30620. return true;
  30621. },
  30622. _collection$_addHashTableEntry$2(table, element) {
  30623. if (table[element] != null)
  30624. return false;
  30625. table[element] = this._collection$_newLinkedCell$1(element);
  30626. return true;
  30627. },
  30628. _removeHashTableEntry$2(table, element) {
  30629. var cell;
  30630. if (table == null)
  30631. return false;
  30632. cell = table[element];
  30633. if (cell == null)
  30634. return false;
  30635. this._unlinkCell$1(cell);
  30636. delete table[element];
  30637. return true;
  30638. },
  30639. _collection$_modified$0() {
  30640. this._collection$_modifications = this._collection$_modifications + 1 & 1073741823;
  30641. },
  30642. _collection$_newLinkedCell$1(element) {
  30643. var t1, _this = this,
  30644. cell = new A._LinkedHashSetCell(element);
  30645. if (_this._collection$_first == null)
  30646. _this._collection$_first = _this._collection$_last = cell;
  30647. else {
  30648. t1 = _this._collection$_last;
  30649. t1.toString;
  30650. cell._collection$_previous = t1;
  30651. _this._collection$_last = t1._collection$_next = cell;
  30652. }
  30653. ++_this._collection$_length;
  30654. _this._collection$_modified$0();
  30655. return cell;
  30656. },
  30657. _unlinkCell$1(cell) {
  30658. var _this = this,
  30659. previous = cell._collection$_previous,
  30660. next = cell._collection$_next;
  30661. if (previous == null)
  30662. _this._collection$_first = next;
  30663. else
  30664. previous._collection$_next = next;
  30665. if (next == null)
  30666. _this._collection$_last = previous;
  30667. else
  30668. next._collection$_previous = previous;
  30669. --_this._collection$_length;
  30670. _this._collection$_modified$0();
  30671. },
  30672. _computeHashCode$1(element) {
  30673. return J.get$hashCode$(element) & 1073741823;
  30674. },
  30675. _findBucketIndex$2(bucket, element) {
  30676. var $length, i;
  30677. if (bucket == null)
  30678. return -1;
  30679. $length = bucket.length;
  30680. for (i = 0; i < $length; ++i)
  30681. if (J.$eq$(bucket[i]._element, element))
  30682. return i;
  30683. return -1;
  30684. }
  30685. };
  30686. A._LinkedIdentityHashSet.prototype = {
  30687. _newSet$0() {
  30688. return new A._LinkedIdentityHashSet(this.$ti);
  30689. },
  30690. _newSimilarSet$1$0($R) {
  30691. return new A._LinkedIdentityHashSet($R._eval$1("_LinkedIdentityHashSet<0>"));
  30692. },
  30693. _newSimilarSet$0() {
  30694. return this._newSimilarSet$1$0(type$.dynamic);
  30695. },
  30696. _computeHashCode$1(key) {
  30697. return A.objectHashCode(key) & 1073741823;
  30698. },
  30699. _findBucketIndex$2(bucket, element) {
  30700. var $length, i, t1;
  30701. if (bucket == null)
  30702. return -1;
  30703. $length = bucket.length;
  30704. for (i = 0; i < $length; ++i) {
  30705. t1 = bucket[i]._element;
  30706. if (t1 == null ? element == null : t1 === element)
  30707. return i;
  30708. }
  30709. return -1;
  30710. }
  30711. };
  30712. A._LinkedHashSetCell.prototype = {};
  30713. A._LinkedHashSetIterator.prototype = {
  30714. get$current(_) {
  30715. var t1 = this._collection$_current;
  30716. return t1 == null ? A._instanceType(this)._precomputed1._as(t1) : t1;
  30717. },
  30718. moveNext$0() {
  30719. var _this = this,
  30720. cell = _this._collection$_cell,
  30721. t1 = _this._set;
  30722. if (_this._collection$_modifications !== t1._collection$_modifications)
  30723. throw A.wrapException(A.ConcurrentModificationError$(t1));
  30724. else if (cell == null) {
  30725. _this._collection$_current = null;
  30726. return false;
  30727. } else {
  30728. _this._collection$_current = cell._element;
  30729. _this._collection$_cell = cell._collection$_next;
  30730. return true;
  30731. }
  30732. }
  30733. };
  30734. A.UnmodifiableListView.prototype = {
  30735. cast$1$0(_, $R) {
  30736. return new A.UnmodifiableListView(J.cast$1$0$ax(this._collection$_source, $R), $R._eval$1("UnmodifiableListView<0>"));
  30737. },
  30738. get$length(_) {
  30739. return J.get$length$asx(this._collection$_source);
  30740. },
  30741. $index(_, index) {
  30742. return J.elementAt$1$ax(this._collection$_source, index);
  30743. }
  30744. };
  30745. A.HashMap_HashMap$from_closure.prototype = {
  30746. call$2(k, v) {
  30747. this.result.$indexSet(0, this.K._as(k), this.V._as(v));
  30748. },
  30749. $signature: 146
  30750. };
  30751. A.IterableBase.prototype = {};
  30752. A.LinkedHashMap_LinkedHashMap$from_closure.prototype = {
  30753. call$2(k, v) {
  30754. this.result.$indexSet(0, this.K._as(k), this.V._as(v));
  30755. },
  30756. $signature: 146
  30757. };
  30758. A.ListBase.prototype = {$isEfficientLengthIterable: 1, $isIterable: 1, $isList: 1};
  30759. A.ListMixin.prototype = {
  30760. get$iterator(receiver) {
  30761. return new A.ListIterator(receiver, this.get$length(receiver));
  30762. },
  30763. elementAt$1(receiver, index) {
  30764. return this.$index(receiver, index);
  30765. },
  30766. get$isEmpty(receiver) {
  30767. return this.get$length(receiver) === 0;
  30768. },
  30769. get$isNotEmpty(receiver) {
  30770. return !this.get$isEmpty(receiver);
  30771. },
  30772. get$first(receiver) {
  30773. if (this.get$length(receiver) === 0)
  30774. throw A.wrapException(A.IterableElementError_noElement());
  30775. return this.$index(receiver, 0);
  30776. },
  30777. get$last(receiver) {
  30778. if (this.get$length(receiver) === 0)
  30779. throw A.wrapException(A.IterableElementError_noElement());
  30780. return this.$index(receiver, this.get$length(receiver) - 1);
  30781. },
  30782. get$single(receiver) {
  30783. if (this.get$length(receiver) === 0)
  30784. throw A.wrapException(A.IterableElementError_noElement());
  30785. if (this.get$length(receiver) > 1)
  30786. throw A.wrapException(A.IterableElementError_tooMany());
  30787. return this.$index(receiver, 0);
  30788. },
  30789. contains$1(receiver, element) {
  30790. var i,
  30791. $length = this.get$length(receiver);
  30792. for (i = 0; i < $length; ++i) {
  30793. if (J.$eq$(this.$index(receiver, i), element))
  30794. return true;
  30795. if ($length !== this.get$length(receiver))
  30796. throw A.wrapException(A.ConcurrentModificationError$(receiver));
  30797. }
  30798. return false;
  30799. },
  30800. every$1(receiver, test) {
  30801. var i,
  30802. $length = this.get$length(receiver);
  30803. for (i = 0; i < $length; ++i) {
  30804. if (!test.call$1(this.$index(receiver, i)))
  30805. return false;
  30806. if ($length !== this.get$length(receiver))
  30807. throw A.wrapException(A.ConcurrentModificationError$(receiver));
  30808. }
  30809. return true;
  30810. },
  30811. any$1(receiver, test) {
  30812. var i,
  30813. $length = this.get$length(receiver);
  30814. for (i = 0; i < $length; ++i) {
  30815. if (test.call$1(this.$index(receiver, i)))
  30816. return true;
  30817. if ($length !== this.get$length(receiver))
  30818. throw A.wrapException(A.ConcurrentModificationError$(receiver));
  30819. }
  30820. return false;
  30821. },
  30822. lastWhere$2$orElse(receiver, test, orElse) {
  30823. var i, element,
  30824. $length = this.get$length(receiver);
  30825. for (i = $length - 1; i >= 0; --i) {
  30826. element = this.$index(receiver, i);
  30827. if (test.call$1(element))
  30828. return element;
  30829. if ($length !== this.get$length(receiver))
  30830. throw A.wrapException(A.ConcurrentModificationError$(receiver));
  30831. }
  30832. if (orElse != null)
  30833. return orElse.call$0();
  30834. throw A.wrapException(A.IterableElementError_noElement());
  30835. },
  30836. join$1(receiver, separator) {
  30837. var t1;
  30838. if (this.get$length(receiver) === 0)
  30839. return "";
  30840. t1 = A.StringBuffer__writeAll("", receiver, separator);
  30841. return t1.charCodeAt(0) == 0 ? t1 : t1;
  30842. },
  30843. join$0($receiver) {
  30844. return this.join$1($receiver, "");
  30845. },
  30846. where$1(receiver, test) {
  30847. return new A.WhereIterable(receiver, test, A.instanceType(receiver)._eval$1("WhereIterable<ListMixin.E>"));
  30848. },
  30849. map$1$1(receiver, f, $T) {
  30850. return new A.MappedListIterable(receiver, f, A.instanceType(receiver)._eval$1("@<ListMixin.E>")._bind$1($T)._eval$1("MappedListIterable<1,2>"));
  30851. },
  30852. expand$1$1(receiver, f, $T) {
  30853. return new A.ExpandIterable(receiver, f, A.instanceType(receiver)._eval$1("@<ListMixin.E>")._bind$1($T)._eval$1("ExpandIterable<1,2>"));
  30854. },
  30855. skip$1(receiver, count) {
  30856. return A.SubListIterable$(receiver, count, null, A.instanceType(receiver)._eval$1("ListMixin.E"));
  30857. },
  30858. take$1(receiver, count) {
  30859. return A.SubListIterable$(receiver, 0, A.checkNotNullable(count, "count", type$.int), A.instanceType(receiver)._eval$1("ListMixin.E"));
  30860. },
  30861. toList$1$growable(receiver, growable) {
  30862. var t1, first, result, i, _this = this;
  30863. if (_this.get$isEmpty(receiver)) {
  30864. t1 = J.JSArray_JSArray$growable(0, A.instanceType(receiver)._eval$1("ListMixin.E"));
  30865. return t1;
  30866. }
  30867. first = _this.$index(receiver, 0);
  30868. result = A.List_List$filled(_this.get$length(receiver), first, true, A.instanceType(receiver)._eval$1("ListMixin.E"));
  30869. for (i = 1; i < _this.get$length(receiver); ++i)
  30870. result[i] = _this.$index(receiver, i);
  30871. return result;
  30872. },
  30873. toList$0($receiver) {
  30874. return this.toList$1$growable($receiver, true);
  30875. },
  30876. toSet$0(receiver) {
  30877. var i,
  30878. result = A.LinkedHashSet_LinkedHashSet(A.instanceType(receiver)._eval$1("ListMixin.E"));
  30879. for (i = 0; i < this.get$length(receiver); ++i)
  30880. result.add$1(0, this.$index(receiver, i));
  30881. return result;
  30882. },
  30883. add$1(receiver, element) {
  30884. var t1 = this.get$length(receiver);
  30885. this.set$length(receiver, t1 + 1);
  30886. this.$indexSet(receiver, t1, element);
  30887. },
  30888. cast$1$0(receiver, $R) {
  30889. return new A.CastList(receiver, A.instanceType(receiver)._eval$1("@<ListMixin.E>")._bind$1($R)._eval$1("CastList<1,2>"));
  30890. },
  30891. sort$1(receiver, compare) {
  30892. A.Sort_sort(receiver, compare == null ? A.collection_ListMixin__compareAny$closure() : compare);
  30893. },
  30894. getRange$2(receiver, start, end) {
  30895. A.RangeError_checkValidRange(start, end, this.get$length(receiver));
  30896. return A.SubListIterable$(receiver, start, end, A.instanceType(receiver)._eval$1("ListMixin.E"));
  30897. },
  30898. fillRange$3(receiver, start, end, fill) {
  30899. var i,
  30900. value = fill == null ? A.instanceType(receiver)._eval$1("ListMixin.E")._as(fill) : fill;
  30901. A.RangeError_checkValidRange(start, end, this.get$length(receiver));
  30902. for (i = start; i < end; ++i)
  30903. this.$indexSet(receiver, i, value);
  30904. },
  30905. setRange$4(receiver, start, end, iterable, skipCount) {
  30906. var $length, otherStart, otherList, t1, i;
  30907. A.RangeError_checkValidRange(start, end, this.get$length(receiver));
  30908. $length = end - start;
  30909. if ($length === 0)
  30910. return;
  30911. A.RangeError_checkNotNegative(skipCount, "skipCount");
  30912. if (A.instanceType(receiver)._eval$1("List<ListMixin.E>")._is(iterable)) {
  30913. otherStart = skipCount;
  30914. otherList = iterable;
  30915. } else {
  30916. otherList = J.skip$1$ax(iterable, skipCount).toList$1$growable(0, false);
  30917. otherStart = 0;
  30918. }
  30919. t1 = J.getInterceptor$asx(otherList);
  30920. if (otherStart + $length > t1.get$length(otherList))
  30921. throw A.wrapException(A.IterableElementError_tooFew());
  30922. if (otherStart < start)
  30923. for (i = $length - 1; i >= 0; --i)
  30924. this.$indexSet(receiver, start + i, t1.$index(otherList, otherStart + i));
  30925. else
  30926. for (i = 0; i < $length; ++i)
  30927. this.$indexSet(receiver, start + i, t1.$index(otherList, otherStart + i));
  30928. },
  30929. get$reversed(receiver) {
  30930. return new A.ReversedListIterable(receiver, A.instanceType(receiver)._eval$1("ReversedListIterable<ListMixin.E>"));
  30931. },
  30932. toString$0(receiver) {
  30933. return A.IterableBase_iterableToFullString(receiver, "[", "]");
  30934. }
  30935. };
  30936. A.MapBase.prototype = {};
  30937. A.MapBase_mapToString_closure.prototype = {
  30938. call$2(k, v) {
  30939. var t2,
  30940. t1 = this._box_0;
  30941. if (!t1.first)
  30942. this.result._contents += ", ";
  30943. t1.first = false;
  30944. t1 = this.result;
  30945. t2 = t1._contents += A.S(k);
  30946. t1._contents = t2 + ": ";
  30947. t1._contents += A.S(v);
  30948. },
  30949. $signature: 160
  30950. };
  30951. A.MapMixin.prototype = {
  30952. cast$2$0(_, RK, RV) {
  30953. var t1 = A._instanceType(this);
  30954. return A.Map_castFrom(this, t1._eval$1("MapMixin.K"), t1._eval$1("MapMixin.V"), RK, RV);
  30955. },
  30956. forEach$1(_, action) {
  30957. var t1, t2, key, t3, _this = this;
  30958. for (t1 = J.get$iterator$ax(_this.get$keys(_this)), t2 = A._instanceType(_this)._eval$1("MapMixin.V"); t1.moveNext$0();) {
  30959. key = t1.get$current(t1);
  30960. t3 = _this.$index(0, key);
  30961. action.call$2(key, t3 == null ? t2._as(t3) : t3);
  30962. }
  30963. },
  30964. addAll$1(_, other) {
  30965. other.forEach$1(0, new A.MapMixin_addAll_closure(this));
  30966. },
  30967. get$entries(_) {
  30968. var _this = this;
  30969. return J.map$1$1$ax(_this.get$keys(_this), new A.MapMixin_entries_closure(_this), A._instanceType(_this)._eval$1("MapEntry<MapMixin.K,MapMixin.V>"));
  30970. },
  30971. containsKey$1(key) {
  30972. return J.contains$1$asx(this.get$keys(this), key);
  30973. },
  30974. get$length(_) {
  30975. return J.get$length$asx(this.get$keys(this));
  30976. },
  30977. get$isEmpty(_) {
  30978. return J.get$isEmpty$asx(this.get$keys(this));
  30979. },
  30980. get$isNotEmpty(_) {
  30981. return J.get$isNotEmpty$asx(this.get$keys(this));
  30982. },
  30983. get$values(_) {
  30984. var t1 = A._instanceType(this);
  30985. return new A._MapBaseValueIterable(this, t1._eval$1("@<MapMixin.K>")._bind$1(t1._eval$1("MapMixin.V"))._eval$1("_MapBaseValueIterable<1,2>"));
  30986. },
  30987. toString$0(_) {
  30988. return A.MapBase_mapToString(this);
  30989. },
  30990. $isMap: 1
  30991. };
  30992. A.MapMixin_addAll_closure.prototype = {
  30993. call$2(key, value) {
  30994. this.$this.$indexSet(0, key, value);
  30995. },
  30996. $signature() {
  30997. return A._instanceType(this.$this)._eval$1("~(MapMixin.K,MapMixin.V)");
  30998. }
  30999. };
  31000. A.MapMixin_entries_closure.prototype = {
  31001. call$1(key) {
  31002. var t1 = this.$this,
  31003. t2 = t1.$index(0, key);
  31004. if (t2 == null)
  31005. t2 = A._instanceType(t1)._eval$1("MapMixin.V")._as(t2);
  31006. t1 = A._instanceType(t1);
  31007. return new A.MapEntry(key, t2, t1._eval$1("@<MapMixin.K>")._bind$1(t1._eval$1("MapMixin.V"))._eval$1("MapEntry<1,2>"));
  31008. },
  31009. $signature() {
  31010. return A._instanceType(this.$this)._eval$1("MapEntry<MapMixin.K,MapMixin.V>(MapMixin.K)");
  31011. }
  31012. };
  31013. A.UnmodifiableMapBase.prototype = {};
  31014. A._MapBaseValueIterable.prototype = {
  31015. get$length(_) {
  31016. var t1 = this._map;
  31017. return t1.get$length(t1);
  31018. },
  31019. get$isEmpty(_) {
  31020. var t1 = this._map;
  31021. return t1.get$isEmpty(t1);
  31022. },
  31023. get$isNotEmpty(_) {
  31024. var t1 = this._map;
  31025. return t1.get$isNotEmpty(t1);
  31026. },
  31027. get$first(_) {
  31028. var t1 = this._map;
  31029. t1 = t1.$index(0, J.get$first$ax(t1.get$keys(t1)));
  31030. return t1 == null ? this.$ti._rest[1]._as(t1) : t1;
  31031. },
  31032. get$single(_) {
  31033. var t1 = this._map;
  31034. t1 = t1.$index(0, J.get$single$ax(t1.get$keys(t1)));
  31035. return t1 == null ? this.$ti._rest[1]._as(t1) : t1;
  31036. },
  31037. get$last(_) {
  31038. var t1 = this._map;
  31039. t1 = t1.$index(0, J.get$last$ax(t1.get$keys(t1)));
  31040. return t1 == null ? this.$ti._rest[1]._as(t1) : t1;
  31041. },
  31042. get$iterator(_) {
  31043. var t1 = this._map;
  31044. return new A._MapBaseValueIterator(J.get$iterator$ax(t1.get$keys(t1)), t1);
  31045. }
  31046. };
  31047. A._MapBaseValueIterator.prototype = {
  31048. moveNext$0() {
  31049. var _this = this,
  31050. t1 = _this._keys;
  31051. if (t1.moveNext$0()) {
  31052. _this._collection$_current = _this._map.$index(0, t1.get$current(t1));
  31053. return true;
  31054. }
  31055. _this._collection$_current = null;
  31056. return false;
  31057. },
  31058. get$current(_) {
  31059. var t1 = this._collection$_current;
  31060. return t1 == null ? A._instanceType(this)._rest[1]._as(t1) : t1;
  31061. }
  31062. };
  31063. A._UnmodifiableMapMixin.prototype = {
  31064. $indexSet(_, key, value) {
  31065. throw A.wrapException(A.UnsupportedError$("Cannot modify unmodifiable map"));
  31066. },
  31067. addAll$1(_, other) {
  31068. throw A.wrapException(A.UnsupportedError$("Cannot modify unmodifiable map"));
  31069. },
  31070. remove$1(_, key) {
  31071. throw A.wrapException(A.UnsupportedError$("Cannot modify unmodifiable map"));
  31072. }
  31073. };
  31074. A.MapView.prototype = {
  31075. cast$2$0(_, RK, RV) {
  31076. return this._map.cast$2$0(0, RK, RV);
  31077. },
  31078. $index(_, key) {
  31079. return this._map.$index(0, key);
  31080. },
  31081. $indexSet(_, key, value) {
  31082. this._map.$indexSet(0, key, value);
  31083. },
  31084. addAll$1(_, other) {
  31085. this._map.addAll$1(0, other);
  31086. },
  31087. containsKey$1(key) {
  31088. return this._map.containsKey$1(key);
  31089. },
  31090. forEach$1(_, action) {
  31091. this._map.forEach$1(0, action);
  31092. },
  31093. get$isEmpty(_) {
  31094. var t1 = this._map;
  31095. return t1.get$isEmpty(t1);
  31096. },
  31097. get$isNotEmpty(_) {
  31098. var t1 = this._map;
  31099. return t1.get$isNotEmpty(t1);
  31100. },
  31101. get$length(_) {
  31102. var t1 = this._map;
  31103. return t1.get$length(t1);
  31104. },
  31105. get$keys(_) {
  31106. var t1 = this._map;
  31107. return t1.get$keys(t1);
  31108. },
  31109. remove$1(_, key) {
  31110. return this._map.remove$1(0, key);
  31111. },
  31112. toString$0(_) {
  31113. return this._map.toString$0(0);
  31114. },
  31115. get$values(_) {
  31116. var t1 = this._map;
  31117. return t1.get$values(t1);
  31118. },
  31119. get$entries(_) {
  31120. var t1 = this._map;
  31121. return t1.get$entries(t1);
  31122. },
  31123. $isMap: 1
  31124. };
  31125. A.UnmodifiableMapView.prototype = {
  31126. cast$2$0(_, RK, RV) {
  31127. return new A.UnmodifiableMapView(this._map.cast$2$0(0, RK, RV), RK._eval$1("@<0>")._bind$1(RV)._eval$1("UnmodifiableMapView<1,2>"));
  31128. }
  31129. };
  31130. A.ListQueue.prototype = {
  31131. get$iterator(_) {
  31132. var _this = this;
  31133. return new A._ListQueueIterator(_this, _this._collection$_tail, _this._modificationCount, _this._collection$_head);
  31134. },
  31135. get$isEmpty(_) {
  31136. return this._collection$_head === this._collection$_tail;
  31137. },
  31138. get$length(_) {
  31139. return (this._collection$_tail - this._collection$_head & this._collection$_table.length - 1) >>> 0;
  31140. },
  31141. get$first(_) {
  31142. var _this = this,
  31143. t1 = _this._collection$_head;
  31144. if (t1 === _this._collection$_tail)
  31145. throw A.wrapException(A.IterableElementError_noElement());
  31146. t1 = _this._collection$_table[t1];
  31147. return t1 == null ? _this.$ti._precomputed1._as(t1) : t1;
  31148. },
  31149. get$last(_) {
  31150. var _this = this,
  31151. t1 = _this._collection$_head,
  31152. t2 = _this._collection$_tail;
  31153. if (t1 === t2)
  31154. throw A.wrapException(A.IterableElementError_noElement());
  31155. t1 = _this._collection$_table;
  31156. t1 = t1[(t2 - 1 & t1.length - 1) >>> 0];
  31157. return t1 == null ? _this.$ti._precomputed1._as(t1) : t1;
  31158. },
  31159. get$single(_) {
  31160. var t1, _this = this;
  31161. if (_this._collection$_head === _this._collection$_tail)
  31162. throw A.wrapException(A.IterableElementError_noElement());
  31163. if (_this.get$length(_this) > 1)
  31164. throw A.wrapException(A.IterableElementError_tooMany());
  31165. t1 = _this._collection$_table[_this._collection$_head];
  31166. return t1 == null ? _this.$ti._precomputed1._as(t1) : t1;
  31167. },
  31168. elementAt$1(_, index) {
  31169. var t1, _this = this;
  31170. A.RangeError_checkValidIndex(index, _this, null);
  31171. t1 = _this._collection$_table;
  31172. t1 = t1[(_this._collection$_head + index & t1.length - 1) >>> 0];
  31173. return t1 == null ? _this.$ti._precomputed1._as(t1) : t1;
  31174. },
  31175. toList$1$growable(_, growable) {
  31176. var t1, list, t2, t3, i, t4, _this = this,
  31177. mask = _this._collection$_table.length - 1,
  31178. $length = (_this._collection$_tail - _this._collection$_head & mask) >>> 0;
  31179. if ($length === 0) {
  31180. t1 = J.JSArray_JSArray$growable(0, _this.$ti._precomputed1);
  31181. return t1;
  31182. }
  31183. t1 = _this.$ti._precomputed1;
  31184. list = A.List_List$filled($length, _this.get$first(_this), true, t1);
  31185. for (t2 = _this._collection$_table, t3 = _this._collection$_head, i = 0; i < $length; ++i) {
  31186. t4 = t2[(t3 + i & mask) >>> 0];
  31187. list[i] = t4 == null ? t1._as(t4) : t4;
  31188. }
  31189. return list;
  31190. },
  31191. toList$0($receiver) {
  31192. return this.toList$1$growable($receiver, true);
  31193. },
  31194. add$1(_, value) {
  31195. this._add$1(value);
  31196. },
  31197. addAll$1(_, elements) {
  31198. var addCount, $length, t2, t3, t4, newTable, endSpace, preSpace, _this = this,
  31199. t1 = _this.$ti;
  31200. if (t1._eval$1("List<1>")._is(elements)) {
  31201. addCount = J.get$length$asx(elements);
  31202. $length = _this.get$length(_this);
  31203. t2 = $length + addCount;
  31204. t3 = _this._collection$_table;
  31205. t4 = t3.length;
  31206. if (t2 >= t4) {
  31207. newTable = A.List_List$filled(A.ListQueue__nextPowerOf2(t2 + B.JSInt_methods._shrOtherPositive$1(t2, 1)), null, false, t1._eval$1("1?"));
  31208. _this._collection$_tail = _this._collection$_writeToList$1(newTable);
  31209. _this._collection$_table = newTable;
  31210. _this._collection$_head = 0;
  31211. B.JSArray_methods.setRange$4(newTable, $length, t2, elements, 0);
  31212. _this._collection$_tail += addCount;
  31213. } else {
  31214. t1 = _this._collection$_tail;
  31215. endSpace = t4 - t1;
  31216. if (addCount < endSpace) {
  31217. B.JSArray_methods.setRange$4(t3, t1, t1 + addCount, elements, 0);
  31218. _this._collection$_tail += addCount;
  31219. } else {
  31220. preSpace = addCount - endSpace;
  31221. B.JSArray_methods.setRange$4(t3, t1, t1 + endSpace, elements, 0);
  31222. B.JSArray_methods.setRange$4(_this._collection$_table, 0, preSpace, elements, endSpace);
  31223. _this._collection$_tail = preSpace;
  31224. }
  31225. }
  31226. ++_this._modificationCount;
  31227. } else
  31228. for (t1 = J.get$iterator$ax(elements); t1.moveNext$0();)
  31229. _this._add$1(t1.get$current(t1));
  31230. },
  31231. clear$0(_) {
  31232. var t2, t3, _this = this,
  31233. i = _this._collection$_head,
  31234. t1 = _this._collection$_tail;
  31235. if (i !== t1) {
  31236. for (t2 = _this._collection$_table, t3 = t2.length - 1; i !== t1; i = (i + 1 & t3) >>> 0)
  31237. t2[i] = null;
  31238. _this._collection$_head = _this._collection$_tail = 0;
  31239. ++_this._modificationCount;
  31240. }
  31241. },
  31242. toString$0(_) {
  31243. return A.IterableBase_iterableToFullString(this, "{", "}");
  31244. },
  31245. addFirst$1(value) {
  31246. var _this = this,
  31247. t1 = _this._collection$_head,
  31248. t2 = _this._collection$_table;
  31249. t1 = _this._collection$_head = (t1 - 1 & t2.length - 1) >>> 0;
  31250. t2[t1] = value;
  31251. if (t1 === _this._collection$_tail)
  31252. _this._collection$_grow$0();
  31253. ++_this._modificationCount;
  31254. },
  31255. removeFirst$0() {
  31256. var t2, result, _this = this,
  31257. t1 = _this._collection$_head;
  31258. if (t1 === _this._collection$_tail)
  31259. throw A.wrapException(A.IterableElementError_noElement());
  31260. ++_this._modificationCount;
  31261. t2 = _this._collection$_table;
  31262. result = t2[t1];
  31263. if (result == null)
  31264. result = _this.$ti._precomputed1._as(result);
  31265. t2[t1] = null;
  31266. _this._collection$_head = (t1 + 1 & t2.length - 1) >>> 0;
  31267. return result;
  31268. },
  31269. removeLast$0(_) {
  31270. var result, _this = this,
  31271. t1 = _this._collection$_head,
  31272. t2 = _this._collection$_tail;
  31273. if (t1 === t2)
  31274. throw A.wrapException(A.IterableElementError_noElement());
  31275. ++_this._modificationCount;
  31276. t1 = _this._collection$_table;
  31277. t2 = _this._collection$_tail = (t2 - 1 & t1.length - 1) >>> 0;
  31278. result = t1[t2];
  31279. if (result == null)
  31280. result = _this.$ti._precomputed1._as(result);
  31281. t1[t2] = null;
  31282. return result;
  31283. },
  31284. _add$1(element) {
  31285. var _this = this,
  31286. t1 = _this._collection$_table,
  31287. t2 = _this._collection$_tail;
  31288. t1[t2] = element;
  31289. t1 = (t2 + 1 & t1.length - 1) >>> 0;
  31290. _this._collection$_tail = t1;
  31291. if (_this._collection$_head === t1)
  31292. _this._collection$_grow$0();
  31293. ++_this._modificationCount;
  31294. },
  31295. _collection$_grow$0() {
  31296. var _this = this,
  31297. newTable = A.List_List$filled(_this._collection$_table.length * 2, null, false, _this.$ti._eval$1("1?")),
  31298. t1 = _this._collection$_table,
  31299. t2 = _this._collection$_head,
  31300. split = t1.length - t2;
  31301. B.JSArray_methods.setRange$4(newTable, 0, split, t1, t2);
  31302. B.JSArray_methods.setRange$4(newTable, split, split + _this._collection$_head, _this._collection$_table, 0);
  31303. _this._collection$_head = 0;
  31304. _this._collection$_tail = _this._collection$_table.length;
  31305. _this._collection$_table = newTable;
  31306. },
  31307. _collection$_writeToList$1(target) {
  31308. var $length, firstPartSize, _this = this,
  31309. t1 = _this._collection$_head,
  31310. t2 = _this._collection$_tail,
  31311. t3 = _this._collection$_table;
  31312. if (t1 <= t2) {
  31313. $length = t2 - t1;
  31314. B.JSArray_methods.setRange$4(target, 0, $length, t3, t1);
  31315. return $length;
  31316. } else {
  31317. firstPartSize = t3.length - t1;
  31318. B.JSArray_methods.setRange$4(target, 0, firstPartSize, t3, t1);
  31319. B.JSArray_methods.setRange$4(target, firstPartSize, firstPartSize + _this._collection$_tail, _this._collection$_table, 0);
  31320. return _this._collection$_tail + firstPartSize;
  31321. }
  31322. },
  31323. $isQueue: 1
  31324. };
  31325. A._ListQueueIterator.prototype = {
  31326. get$current(_) {
  31327. var t1 = this._collection$_current;
  31328. return t1 == null ? A._instanceType(this)._precomputed1._as(t1) : t1;
  31329. },
  31330. moveNext$0() {
  31331. var t2, _this = this,
  31332. t1 = _this._queue;
  31333. if (_this._modificationCount !== t1._modificationCount)
  31334. A.throwExpression(A.ConcurrentModificationError$(t1));
  31335. t2 = _this._collection$_position;
  31336. if (t2 === _this._collection$_end) {
  31337. _this._collection$_current = null;
  31338. return false;
  31339. }
  31340. t1 = t1._collection$_table;
  31341. _this._collection$_current = t1[t2];
  31342. _this._collection$_position = (t2 + 1 & t1.length - 1) >>> 0;
  31343. return true;
  31344. }
  31345. };
  31346. A.SetMixin.prototype = {
  31347. get$isEmpty(_) {
  31348. return this.get$length(this) === 0;
  31349. },
  31350. get$isNotEmpty(_) {
  31351. return this.get$length(this) !== 0;
  31352. },
  31353. addAll$1(_, elements) {
  31354. var t1;
  31355. for (t1 = J.get$iterator$ax(elements); t1.moveNext$0();)
  31356. this.add$1(0, t1.get$current(t1));
  31357. },
  31358. removeAll$1(elements) {
  31359. var t1;
  31360. for (t1 = J.get$iterator$ax(elements); t1.moveNext$0();)
  31361. this.remove$1(0, t1.get$current(t1));
  31362. },
  31363. toList$1$growable(_, growable) {
  31364. return A.List_List$of(this, true, A._instanceType(this)._precomputed1);
  31365. },
  31366. toList$0($receiver) {
  31367. return this.toList$1$growable($receiver, true);
  31368. },
  31369. map$1$1(_, f, $T) {
  31370. return new A.EfficientLengthMappedIterable(this, f, A._instanceType(this)._eval$1("@<1>")._bind$1($T)._eval$1("EfficientLengthMappedIterable<1,2>"));
  31371. },
  31372. get$single(_) {
  31373. var it, _this = this;
  31374. if (_this.get$length(_this) > 1)
  31375. throw A.wrapException(A.IterableElementError_tooMany());
  31376. it = _this.get$iterator(_this);
  31377. if (!it.moveNext$0())
  31378. throw A.wrapException(A.IterableElementError_noElement());
  31379. return it.get$current(it);
  31380. },
  31381. toString$0(_) {
  31382. return A.IterableBase_iterableToFullString(this, "{", "}");
  31383. },
  31384. where$1(_, f) {
  31385. return new A.WhereIterable(this, f, A._instanceType(this)._eval$1("WhereIterable<1>"));
  31386. },
  31387. join$1(_, separator) {
  31388. var t1,
  31389. iterator = this.get$iterator(this);
  31390. if (!iterator.moveNext$0())
  31391. return "";
  31392. if (separator === "") {
  31393. t1 = "";
  31394. do
  31395. t1 += A.S(iterator.get$current(iterator));
  31396. while (iterator.moveNext$0());
  31397. } else {
  31398. t1 = "" + A.S(iterator.get$current(iterator));
  31399. for (; iterator.moveNext$0();)
  31400. t1 = t1 + separator + A.S(iterator.get$current(iterator));
  31401. }
  31402. return t1.charCodeAt(0) == 0 ? t1 : t1;
  31403. },
  31404. join$0($receiver) {
  31405. return this.join$1($receiver, "");
  31406. },
  31407. any$1(_, test) {
  31408. var t1;
  31409. for (t1 = this.get$iterator(this); t1.moveNext$0();)
  31410. if (test.call$1(t1.get$current(t1)))
  31411. return true;
  31412. return false;
  31413. },
  31414. take$1(_, n) {
  31415. return A.TakeIterable_TakeIterable(this, n, A._instanceType(this)._precomputed1);
  31416. },
  31417. skip$1(_, n) {
  31418. return A.SkipIterable_SkipIterable(this, n, A._instanceType(this)._precomputed1);
  31419. },
  31420. get$first(_) {
  31421. var it = this.get$iterator(this);
  31422. if (!it.moveNext$0())
  31423. throw A.wrapException(A.IterableElementError_noElement());
  31424. return it.get$current(it);
  31425. },
  31426. get$last(_) {
  31427. var result,
  31428. it = this.get$iterator(this);
  31429. if (!it.moveNext$0())
  31430. throw A.wrapException(A.IterableElementError_noElement());
  31431. do
  31432. result = it.get$current(it);
  31433. while (it.moveNext$0());
  31434. return result;
  31435. },
  31436. elementAt$1(_, index) {
  31437. var t1, elementIndex, element, _s5_ = "index";
  31438. A.checkNotNullable(index, _s5_, type$.int);
  31439. A.RangeError_checkNotNegative(index, _s5_);
  31440. for (t1 = this.get$iterator(this), elementIndex = 0; t1.moveNext$0();) {
  31441. element = t1.get$current(t1);
  31442. if (index === elementIndex)
  31443. return element;
  31444. ++elementIndex;
  31445. }
  31446. throw A.wrapException(A.IndexError$(index, this, _s5_, null, elementIndex));
  31447. }
  31448. };
  31449. A._SetBase.prototype = {
  31450. difference$1(other) {
  31451. var t1, t2, element,
  31452. result = this._newSet$0();
  31453. for (t1 = this.get$iterator(this), t2 = other._source; t1.moveNext$0();) {
  31454. element = t1.get$current(t1);
  31455. if (!t2.contains$1(0, element))
  31456. result.add$1(0, element);
  31457. }
  31458. return result;
  31459. },
  31460. intersection$1(other) {
  31461. var t1, t2, element,
  31462. result = this._newSet$0();
  31463. for (t1 = this.get$iterator(this), t2 = other._baseMap; t1.moveNext$0();) {
  31464. element = t1.get$current(t1);
  31465. if (t2.containsKey$1(element))
  31466. result.add$1(0, element);
  31467. }
  31468. return result;
  31469. },
  31470. toSet$0(_) {
  31471. var t1 = this._newSet$0();
  31472. t1.addAll$1(0, this);
  31473. return t1;
  31474. },
  31475. $isEfficientLengthIterable: 1,
  31476. $isIterable: 1,
  31477. $isSet: 1
  31478. };
  31479. A._UnmodifiableSetMixin.prototype = {
  31480. add$1(_, value) {
  31481. return A._UnmodifiableSetMixin__throwUnmodifiable();
  31482. },
  31483. addAll$1(_, elements) {
  31484. return A._UnmodifiableSetMixin__throwUnmodifiable();
  31485. },
  31486. remove$1(_, value) {
  31487. return A._UnmodifiableSetMixin__throwUnmodifiable();
  31488. }
  31489. };
  31490. A._UnmodifiableSet.prototype = {
  31491. _newSet$0() {
  31492. return A.LinkedHashSet_LinkedHashSet(this.$ti._precomputed1);
  31493. },
  31494. contains$1(_, element) {
  31495. return this._map.containsKey$1(element);
  31496. },
  31497. get$iterator(_) {
  31498. var t1 = this._map;
  31499. return J.get$iterator$ax(t1.get$keys(t1));
  31500. },
  31501. get$length(_) {
  31502. var t1 = this._map;
  31503. return t1.get$length(t1);
  31504. }
  31505. };
  31506. A._ListBase_Object_ListMixin.prototype = {};
  31507. A._UnmodifiableMapView_MapView__UnmodifiableMapMixin.prototype = {};
  31508. A.__SetBase_Object_SetMixin.prototype = {};
  31509. A.__UnmodifiableSet__SetBase__UnmodifiableSetMixin.prototype = {};
  31510. A.Utf8Decoder__decoder_closure.prototype = {
  31511. call$0() {
  31512. var t1, exception;
  31513. try {
  31514. t1 = new TextDecoder("utf-8", {fatal: true});
  31515. return t1;
  31516. } catch (exception) {
  31517. }
  31518. return null;
  31519. },
  31520. $signature: 86
  31521. };
  31522. A.Utf8Decoder__decoderNonfatal_closure.prototype = {
  31523. call$0() {
  31524. var t1, exception;
  31525. try {
  31526. t1 = new TextDecoder("utf-8", {fatal: false});
  31527. return t1;
  31528. } catch (exception) {
  31529. }
  31530. return null;
  31531. },
  31532. $signature: 86
  31533. };
  31534. A.AsciiCodec.prototype = {
  31535. encode$1(source) {
  31536. return B.AsciiEncoder_127.convert$1(source);
  31537. },
  31538. get$encoder() {
  31539. return B.AsciiEncoder_127;
  31540. }
  31541. };
  31542. A._UnicodeSubsetEncoder.prototype = {
  31543. convert$1(string) {
  31544. var t1, i, codeUnit,
  31545. $length = A.RangeError_checkValidRange(0, null, string.length) - 0,
  31546. result = new Uint8Array($length);
  31547. for (t1 = ~this._subsetMask, i = 0; i < $length; ++i) {
  31548. codeUnit = B.JSString_methods._codeUnitAt$1(string, i);
  31549. if ((codeUnit & t1) !== 0)
  31550. throw A.wrapException(A.ArgumentError$value(string, "string", "Contains invalid characters."));
  31551. result[i] = codeUnit;
  31552. }
  31553. return result;
  31554. }
  31555. };
  31556. A.AsciiEncoder.prototype = {};
  31557. A.Base64Codec.prototype = {
  31558. get$encoder() {
  31559. return B.C_Base64Encoder;
  31560. },
  31561. normalize$3(source, start, end) {
  31562. var inverseAlphabet, i, sliceStart, buffer, firstPadding, firstPaddingSourceIndex, paddingCount, i0, char, i1, digit1, digit2, char0, value, t1, t2, endLength, $length,
  31563. _s31_ = "Invalid base64 encoding length ";
  31564. end = A.RangeError_checkValidRange(start, end, source.length);
  31565. inverseAlphabet = $.$get$_Base64Decoder__inverseAlphabet();
  31566. for (i = start, sliceStart = i, buffer = null, firstPadding = -1, firstPaddingSourceIndex = -1, paddingCount = 0; i < end; i = i0) {
  31567. i0 = i + 1;
  31568. char = B.JSString_methods._codeUnitAt$1(source, i);
  31569. if (char === 37) {
  31570. i1 = i0 + 2;
  31571. if (i1 <= end) {
  31572. digit1 = A.hexDigitValue(B.JSString_methods._codeUnitAt$1(source, i0));
  31573. digit2 = A.hexDigitValue(B.JSString_methods._codeUnitAt$1(source, i0 + 1));
  31574. char0 = digit1 * 16 + digit2 - (digit2 & 256);
  31575. if (char0 === 37)
  31576. char0 = -1;
  31577. i0 = i1;
  31578. } else
  31579. char0 = -1;
  31580. } else
  31581. char0 = char;
  31582. if (0 <= char0 && char0 <= 127) {
  31583. value = inverseAlphabet[char0];
  31584. if (value >= 0) {
  31585. char0 = B.JSString_methods.codeUnitAt$1(string$.ABCDEF, value);
  31586. if (char0 === char)
  31587. continue;
  31588. char = char0;
  31589. } else {
  31590. if (value === -1) {
  31591. if (firstPadding < 0) {
  31592. t1 = buffer == null ? null : buffer._contents.length;
  31593. if (t1 == null)
  31594. t1 = 0;
  31595. firstPadding = t1 + (i - sliceStart);
  31596. firstPaddingSourceIndex = i;
  31597. }
  31598. ++paddingCount;
  31599. if (char === 61)
  31600. continue;
  31601. }
  31602. char = char0;
  31603. }
  31604. if (value !== -2) {
  31605. if (buffer == null) {
  31606. buffer = new A.StringBuffer("");
  31607. t1 = buffer;
  31608. } else
  31609. t1 = buffer;
  31610. t2 = t1._contents += B.JSString_methods.substring$2(source, sliceStart, i);
  31611. t1._contents = t2 + A.Primitives_stringFromCharCode(char);
  31612. sliceStart = i0;
  31613. continue;
  31614. }
  31615. }
  31616. throw A.wrapException(A.FormatException$("Invalid base64 data", source, i));
  31617. }
  31618. if (buffer != null) {
  31619. t1 = buffer._contents += B.JSString_methods.substring$2(source, sliceStart, end);
  31620. t2 = t1.length;
  31621. if (firstPadding >= 0)
  31622. A.Base64Codec__checkPadding(source, firstPaddingSourceIndex, end, firstPadding, paddingCount, t2);
  31623. else {
  31624. endLength = B.JSInt_methods.$mod(t2 - 1, 4) + 1;
  31625. if (endLength === 1)
  31626. throw A.wrapException(A.FormatException$(_s31_, source, end));
  31627. for (; endLength < 4;) {
  31628. t1 += "=";
  31629. buffer._contents = t1;
  31630. ++endLength;
  31631. }
  31632. }
  31633. t1 = buffer._contents;
  31634. return B.JSString_methods.replaceRange$3(source, start, end, t1.charCodeAt(0) == 0 ? t1 : t1);
  31635. }
  31636. $length = end - start;
  31637. if (firstPadding >= 0)
  31638. A.Base64Codec__checkPadding(source, firstPaddingSourceIndex, end, firstPadding, paddingCount, $length);
  31639. else {
  31640. endLength = B.JSInt_methods.$mod($length, 4);
  31641. if (endLength === 1)
  31642. throw A.wrapException(A.FormatException$(_s31_, source, end));
  31643. if (endLength > 1)
  31644. source = B.JSString_methods.replaceRange$3(source, end, end, endLength === 2 ? "==" : "=");
  31645. }
  31646. return source;
  31647. }
  31648. };
  31649. A.Base64Encoder.prototype = {
  31650. convert$1(input) {
  31651. var t1 = J.getInterceptor$asx(input);
  31652. if (t1.get$isEmpty(input))
  31653. return "";
  31654. t1 = new A._Base64Encoder(string$.ABCDEF).encode$4(input, 0, t1.get$length(input), true);
  31655. t1.toString;
  31656. return A.String_String$fromCharCodes(t1, 0, null);
  31657. },
  31658. startChunkedConversion$1(sink) {
  31659. return new A._Utf8Base64EncoderSink(new A._Utf8StringSinkAdapter(new A._Utf8Decoder(false), sink, sink._stringSink), new A._Base64Encoder(string$.ABCDEF));
  31660. }
  31661. };
  31662. A._Base64Encoder.prototype = {
  31663. createBuffer$1(bufferLength) {
  31664. return new Uint8Array(bufferLength);
  31665. },
  31666. encode$4(bytes, start, end, isLast) {
  31667. var output, _this = this,
  31668. byteCount = (_this._convert$_state & 3) + (end - start),
  31669. fullChunks = B.JSInt_methods._tdivFast$1(byteCount, 3),
  31670. bufferLength = fullChunks * 4;
  31671. if (isLast && byteCount - fullChunks * 3 > 0)
  31672. bufferLength += 4;
  31673. output = _this.createBuffer$1(bufferLength);
  31674. _this._convert$_state = A._Base64Encoder_encodeChunk(_this._alphabet, bytes, start, end, isLast, output, 0, _this._convert$_state);
  31675. if (bufferLength > 0)
  31676. return output;
  31677. return null;
  31678. }
  31679. };
  31680. A._Base64EncoderSink.prototype = {
  31681. add$1(_, source) {
  31682. this._convert$_add$4(source, 0, source.get$length(source), false);
  31683. }
  31684. };
  31685. A._Utf8Base64EncoderSink.prototype = {
  31686. _convert$_add$4(source, start, end, isLast) {
  31687. var buffer = this._encoder.encode$4(source, start, end, isLast);
  31688. if (buffer != null)
  31689. this._sink.addSlice$4(buffer, 0, buffer.length, isLast);
  31690. }
  31691. };
  31692. A.ByteConversionSink.prototype = {};
  31693. A.ByteConversionSinkBase.prototype = {};
  31694. A.ChunkedConversionSink.prototype = {};
  31695. A.Codec.prototype = {
  31696. encode$1(input) {
  31697. return this.get$encoder().convert$1(input);
  31698. }
  31699. };
  31700. A.Converter.prototype = {};
  31701. A.Encoding.prototype = {};
  31702. A.JsonUnsupportedObjectError.prototype = {
  31703. toString$0(_) {
  31704. var safeString = A.Error_safeToString(this.unsupportedObject);
  31705. return (this.cause != null ? "Converting object to an encodable object failed:" : "Converting object did not return an encodable object:") + " " + safeString;
  31706. }
  31707. };
  31708. A.JsonCyclicError.prototype = {
  31709. toString$0(_) {
  31710. return "Cyclic error in JSON stringify";
  31711. }
  31712. };
  31713. A.JsonCodec.prototype = {
  31714. encode$2$toEncodable(value, toEncodable) {
  31715. var t1 = A._JsonStringStringifier_stringify(value, this.get$encoder()._toEncodable, null);
  31716. return t1;
  31717. },
  31718. get$encoder() {
  31719. return B.JsonEncoder_null;
  31720. }
  31721. };
  31722. A.JsonEncoder.prototype = {
  31723. convert$1(object) {
  31724. var t1,
  31725. output = new A.StringBuffer(""),
  31726. stringifier = A._JsonStringStringifier$(output, this._toEncodable);
  31727. stringifier.writeObject$1(object);
  31728. t1 = output._contents;
  31729. return t1.charCodeAt(0) == 0 ? t1 : t1;
  31730. }
  31731. };
  31732. A._JsonStringifier.prototype = {
  31733. writeStringContent$1(s) {
  31734. var offset, i, charCode, t1, t2, _this = this,
  31735. $length = s.length;
  31736. for (offset = 0, i = 0; i < $length; ++i) {
  31737. charCode = B.JSString_methods._codeUnitAt$1(s, i);
  31738. if (charCode > 92) {
  31739. if (charCode >= 55296) {
  31740. t1 = charCode & 64512;
  31741. if (t1 === 55296) {
  31742. t2 = i + 1;
  31743. t2 = !(t2 < $length && (B.JSString_methods._codeUnitAt$1(s, t2) & 64512) === 56320);
  31744. } else
  31745. t2 = false;
  31746. if (!t2)
  31747. if (t1 === 56320) {
  31748. t1 = i - 1;
  31749. t1 = !(t1 >= 0 && (B.JSString_methods.codeUnitAt$1(s, t1) & 64512) === 55296);
  31750. } else
  31751. t1 = false;
  31752. else
  31753. t1 = true;
  31754. if (t1) {
  31755. if (i > offset)
  31756. _this.writeStringSlice$3(s, offset, i);
  31757. offset = i + 1;
  31758. _this.writeCharCode$1(92);
  31759. _this.writeCharCode$1(117);
  31760. _this.writeCharCode$1(100);
  31761. t1 = charCode >>> 8 & 15;
  31762. _this.writeCharCode$1(t1 < 10 ? 48 + t1 : 87 + t1);
  31763. t1 = charCode >>> 4 & 15;
  31764. _this.writeCharCode$1(t1 < 10 ? 48 + t1 : 87 + t1);
  31765. t1 = charCode & 15;
  31766. _this.writeCharCode$1(t1 < 10 ? 48 + t1 : 87 + t1);
  31767. }
  31768. }
  31769. continue;
  31770. }
  31771. if (charCode < 32) {
  31772. if (i > offset)
  31773. _this.writeStringSlice$3(s, offset, i);
  31774. offset = i + 1;
  31775. _this.writeCharCode$1(92);
  31776. switch (charCode) {
  31777. case 8:
  31778. _this.writeCharCode$1(98);
  31779. break;
  31780. case 9:
  31781. _this.writeCharCode$1(116);
  31782. break;
  31783. case 10:
  31784. _this.writeCharCode$1(110);
  31785. break;
  31786. case 12:
  31787. _this.writeCharCode$1(102);
  31788. break;
  31789. case 13:
  31790. _this.writeCharCode$1(114);
  31791. break;
  31792. default:
  31793. _this.writeCharCode$1(117);
  31794. _this.writeCharCode$1(48);
  31795. _this.writeCharCode$1(48);
  31796. t1 = charCode >>> 4 & 15;
  31797. _this.writeCharCode$1(t1 < 10 ? 48 + t1 : 87 + t1);
  31798. t1 = charCode & 15;
  31799. _this.writeCharCode$1(t1 < 10 ? 48 + t1 : 87 + t1);
  31800. break;
  31801. }
  31802. } else if (charCode === 34 || charCode === 92) {
  31803. if (i > offset)
  31804. _this.writeStringSlice$3(s, offset, i);
  31805. offset = i + 1;
  31806. _this.writeCharCode$1(92);
  31807. _this.writeCharCode$1(charCode);
  31808. }
  31809. }
  31810. if (offset === 0)
  31811. _this.writeString$1(s);
  31812. else if (offset < $length)
  31813. _this.writeStringSlice$3(s, offset, $length);
  31814. },
  31815. _checkCycle$1(object) {
  31816. var t1, t2, i, t3;
  31817. for (t1 = this._seen, t2 = t1.length, i = 0; i < t2; ++i) {
  31818. t3 = t1[i];
  31819. if (object == null ? t3 == null : object === t3)
  31820. throw A.wrapException(new A.JsonCyclicError(object, null));
  31821. }
  31822. t1.push(object);
  31823. },
  31824. writeObject$1(object) {
  31825. var customJson, e, t1, exception, _this = this;
  31826. if (_this.writeJsonValue$1(object))
  31827. return;
  31828. _this._checkCycle$1(object);
  31829. try {
  31830. customJson = _this._toEncodable.call$1(object);
  31831. if (!_this.writeJsonValue$1(customJson)) {
  31832. t1 = A.JsonUnsupportedObjectError$(object, null, _this.get$_partialResult());
  31833. throw A.wrapException(t1);
  31834. }
  31835. _this._seen.pop();
  31836. } catch (exception) {
  31837. e = A.unwrapException(exception);
  31838. t1 = A.JsonUnsupportedObjectError$(object, e, _this.get$_partialResult());
  31839. throw A.wrapException(t1);
  31840. }
  31841. },
  31842. writeJsonValue$1(object) {
  31843. var success, _this = this;
  31844. if (typeof object == "number") {
  31845. if (!isFinite(object))
  31846. return false;
  31847. _this.writeNumber$1(object);
  31848. return true;
  31849. } else if (object === true) {
  31850. _this.writeString$1("true");
  31851. return true;
  31852. } else if (object === false) {
  31853. _this.writeString$1("false");
  31854. return true;
  31855. } else if (object == null) {
  31856. _this.writeString$1("null");
  31857. return true;
  31858. } else if (typeof object == "string") {
  31859. _this.writeString$1('"');
  31860. _this.writeStringContent$1(object);
  31861. _this.writeString$1('"');
  31862. return true;
  31863. } else if (type$.List_dynamic._is(object)) {
  31864. _this._checkCycle$1(object);
  31865. _this.writeList$1(object);
  31866. _this._seen.pop();
  31867. return true;
  31868. } else if (type$.Map_dynamic_dynamic._is(object)) {
  31869. _this._checkCycle$1(object);
  31870. success = _this.writeMap$1(object);
  31871. _this._seen.pop();
  31872. return success;
  31873. } else
  31874. return false;
  31875. },
  31876. writeList$1(list) {
  31877. var t1, i, _this = this;
  31878. _this.writeString$1("[");
  31879. t1 = J.getInterceptor$asx(list);
  31880. if (t1.get$isNotEmpty(list)) {
  31881. _this.writeObject$1(t1.$index(list, 0));
  31882. for (i = 1; i < t1.get$length(list); ++i) {
  31883. _this.writeString$1(",");
  31884. _this.writeObject$1(t1.$index(list, i));
  31885. }
  31886. }
  31887. _this.writeString$1("]");
  31888. },
  31889. writeMap$1(map) {
  31890. var t1, keyValueList, i, separator, _this = this, _box_0 = {};
  31891. if (map.get$isEmpty(map)) {
  31892. _this.writeString$1("{}");
  31893. return true;
  31894. }
  31895. t1 = map.get$length(map) * 2;
  31896. keyValueList = A.List_List$filled(t1, null, false, type$.nullable_Object);
  31897. i = _box_0.i = 0;
  31898. _box_0.allStringKeys = true;
  31899. map.forEach$1(0, new A._JsonStringifier_writeMap_closure(_box_0, keyValueList));
  31900. if (!_box_0.allStringKeys)
  31901. return false;
  31902. _this.writeString$1("{");
  31903. for (separator = '"'; i < t1; i += 2, separator = ',"') {
  31904. _this.writeString$1(separator);
  31905. _this.writeStringContent$1(A._asString(keyValueList[i]));
  31906. _this.writeString$1('":');
  31907. _this.writeObject$1(keyValueList[i + 1]);
  31908. }
  31909. _this.writeString$1("}");
  31910. return true;
  31911. }
  31912. };
  31913. A._JsonStringifier_writeMap_closure.prototype = {
  31914. call$2(key, value) {
  31915. var t1, t2, t3, i;
  31916. if (typeof key != "string")
  31917. this._box_0.allStringKeys = false;
  31918. t1 = this.keyValueList;
  31919. t2 = this._box_0;
  31920. t3 = t2.i;
  31921. i = t2.i = t3 + 1;
  31922. t1[t3] = key;
  31923. t2.i = i + 1;
  31924. t1[i] = value;
  31925. },
  31926. $signature: 160
  31927. };
  31928. A._JsonStringStringifier.prototype = {
  31929. get$_partialResult() {
  31930. var t1 = this._sink._contents;
  31931. return t1.charCodeAt(0) == 0 ? t1 : t1;
  31932. },
  31933. writeNumber$1(number) {
  31934. this._sink._contents += B.JSNumber_methods.toString$0(number);
  31935. },
  31936. writeString$1(string) {
  31937. this._sink._contents += string;
  31938. },
  31939. writeStringSlice$3(string, start, end) {
  31940. this._sink._contents += B.JSString_methods.substring$2(string, start, end);
  31941. },
  31942. writeCharCode$1(charCode) {
  31943. this._sink._contents += A.Primitives_stringFromCharCode(charCode);
  31944. }
  31945. };
  31946. A.StringConversionSinkBase.prototype = {};
  31947. A.StringConversionSinkMixin.prototype = {
  31948. add$1(_, str) {
  31949. this.addSlice$4(str, 0, str.length, false);
  31950. }
  31951. };
  31952. A._StringSinkConversionSink.prototype = {
  31953. close$0(_) {
  31954. },
  31955. addSlice$4(str, start, end, isLast) {
  31956. var t1, i;
  31957. if (start !== 0 || end !== str.length)
  31958. for (t1 = this._stringSink, i = start; i < end; ++i)
  31959. t1._contents += A.Primitives_stringFromCharCode(B.JSString_methods._codeUnitAt$1(str, i));
  31960. else
  31961. this._stringSink._contents += str;
  31962. if (isLast)
  31963. this.close$0(0);
  31964. },
  31965. add$1(_, str) {
  31966. this._stringSink._contents += str;
  31967. }
  31968. };
  31969. A._StringCallbackSink.prototype = {
  31970. close$0(_) {
  31971. var t1 = this._stringSink,
  31972. t2 = t1._contents;
  31973. t1._contents = "";
  31974. this._convert$_callback.call$1(t2.charCodeAt(0) == 0 ? t2 : t2);
  31975. },
  31976. asUtf8Sink$1(allowMalformed) {
  31977. return new A._Utf8StringSinkAdapter(new A._Utf8Decoder(allowMalformed), this, this._stringSink);
  31978. }
  31979. };
  31980. A._Utf8StringSinkAdapter.prototype = {
  31981. close$0(_) {
  31982. this._decoder.flush$1(this._stringSink);
  31983. this._sink.close$0(0);
  31984. },
  31985. add$1(_, chunk) {
  31986. this.addSlice$4(chunk, 0, J.get$length$asx(chunk), false);
  31987. },
  31988. addSlice$4(codeUnits, startIndex, endIndex, isLast) {
  31989. this._stringSink._contents += this._decoder.convertGeneral$4(codeUnits, startIndex, endIndex, false);
  31990. if (isLast)
  31991. this.close$0(0);
  31992. }
  31993. };
  31994. A.Utf8Codec.prototype = {
  31995. get$encoder() {
  31996. return B.C_Utf8Encoder;
  31997. }
  31998. };
  31999. A.Utf8Encoder.prototype = {
  32000. convert$1(string) {
  32001. var t1, t2, encoder,
  32002. end = A.RangeError_checkValidRange(0, null, string.length),
  32003. $length = end - 0;
  32004. if ($length === 0)
  32005. return new Uint8Array(0);
  32006. t1 = $length * 3;
  32007. t2 = new Uint8Array(t1);
  32008. encoder = new A._Utf8Encoder(t2);
  32009. if (encoder._fillBuffer$3(string, 0, end) !== end) {
  32010. B.JSString_methods.codeUnitAt$1(string, end - 1);
  32011. encoder._writeReplacementCharacter$0();
  32012. }
  32013. return new Uint8Array(t2.subarray(0, A._checkValidRange(0, encoder._bufferIndex, t1)));
  32014. }
  32015. };
  32016. A._Utf8Encoder.prototype = {
  32017. _writeReplacementCharacter$0() {
  32018. var _this = this,
  32019. t1 = _this._convert$_buffer,
  32020. t2 = _this._bufferIndex,
  32021. t3 = _this._bufferIndex = t2 + 1;
  32022. t1[t2] = 239;
  32023. t2 = _this._bufferIndex = t3 + 1;
  32024. t1[t3] = 191;
  32025. _this._bufferIndex = t2 + 1;
  32026. t1[t2] = 189;
  32027. },
  32028. _writeSurrogate$2(leadingSurrogate, nextCodeUnit) {
  32029. var rune, t1, t2, t3, _this = this;
  32030. if ((nextCodeUnit & 64512) === 56320) {
  32031. rune = 65536 + ((leadingSurrogate & 1023) << 10) | nextCodeUnit & 1023;
  32032. t1 = _this._convert$_buffer;
  32033. t2 = _this._bufferIndex;
  32034. t3 = _this._bufferIndex = t2 + 1;
  32035. t1[t2] = rune >>> 18 | 240;
  32036. t2 = _this._bufferIndex = t3 + 1;
  32037. t1[t3] = rune >>> 12 & 63 | 128;
  32038. t3 = _this._bufferIndex = t2 + 1;
  32039. t1[t2] = rune >>> 6 & 63 | 128;
  32040. _this._bufferIndex = t3 + 1;
  32041. t1[t3] = rune & 63 | 128;
  32042. return true;
  32043. } else {
  32044. _this._writeReplacementCharacter$0();
  32045. return false;
  32046. }
  32047. },
  32048. _fillBuffer$3(str, start, end) {
  32049. var t1, t2, stringIndex, codeUnit, t3, stringIndex0, t4, _this = this;
  32050. if (start !== end && (B.JSString_methods.codeUnitAt$1(str, end - 1) & 64512) === 55296)
  32051. --end;
  32052. for (t1 = _this._convert$_buffer, t2 = t1.length, stringIndex = start; stringIndex < end; ++stringIndex) {
  32053. codeUnit = B.JSString_methods._codeUnitAt$1(str, stringIndex);
  32054. if (codeUnit <= 127) {
  32055. t3 = _this._bufferIndex;
  32056. if (t3 >= t2)
  32057. break;
  32058. _this._bufferIndex = t3 + 1;
  32059. t1[t3] = codeUnit;
  32060. } else {
  32061. t3 = codeUnit & 64512;
  32062. if (t3 === 55296) {
  32063. if (_this._bufferIndex + 4 > t2)
  32064. break;
  32065. stringIndex0 = stringIndex + 1;
  32066. if (_this._writeSurrogate$2(codeUnit, B.JSString_methods._codeUnitAt$1(str, stringIndex0)))
  32067. stringIndex = stringIndex0;
  32068. } else if (t3 === 56320) {
  32069. if (_this._bufferIndex + 3 > t2)
  32070. break;
  32071. _this._writeReplacementCharacter$0();
  32072. } else if (codeUnit <= 2047) {
  32073. t3 = _this._bufferIndex;
  32074. t4 = t3 + 1;
  32075. if (t4 >= t2)
  32076. break;
  32077. _this._bufferIndex = t4;
  32078. t1[t3] = codeUnit >>> 6 | 192;
  32079. _this._bufferIndex = t4 + 1;
  32080. t1[t4] = codeUnit & 63 | 128;
  32081. } else {
  32082. t3 = _this._bufferIndex;
  32083. if (t3 + 2 >= t2)
  32084. break;
  32085. t4 = _this._bufferIndex = t3 + 1;
  32086. t1[t3] = codeUnit >>> 12 | 224;
  32087. t3 = _this._bufferIndex = t4 + 1;
  32088. t1[t4] = codeUnit >>> 6 & 63 | 128;
  32089. _this._bufferIndex = t3 + 1;
  32090. t1[t3] = codeUnit & 63 | 128;
  32091. }
  32092. }
  32093. }
  32094. return stringIndex;
  32095. }
  32096. };
  32097. A.Utf8Decoder.prototype = {
  32098. convert$1(codeUnits) {
  32099. var t1 = this._allowMalformed,
  32100. result = A.Utf8Decoder__convertIntercepted(t1, codeUnits, 0, null);
  32101. if (result != null)
  32102. return result;
  32103. return new A._Utf8Decoder(t1).convertGeneral$4(codeUnits, 0, null, true);
  32104. }
  32105. };
  32106. A._Utf8Decoder.prototype = {
  32107. convertGeneral$4(codeUnits, start, maybeEnd, single) {
  32108. var bytes, errorOffset, result, t1, message, _this = this,
  32109. end = A.RangeError_checkValidRange(start, maybeEnd, J.get$length$asx(codeUnits));
  32110. if (start === end)
  32111. return "";
  32112. if (type$.Uint8List._is(codeUnits)) {
  32113. bytes = codeUnits;
  32114. errorOffset = 0;
  32115. } else {
  32116. bytes = A._Utf8Decoder__makeUint8List(codeUnits, start, end);
  32117. end -= start;
  32118. errorOffset = start;
  32119. start = 0;
  32120. }
  32121. result = _this._convertRecursive$4(bytes, start, end, single);
  32122. t1 = _this._convert$_state;
  32123. if ((t1 & 1) !== 0) {
  32124. message = A._Utf8Decoder_errorDescription(t1);
  32125. _this._convert$_state = 0;
  32126. throw A.wrapException(A.FormatException$(message, codeUnits, errorOffset + _this._charOrIndex));
  32127. }
  32128. return result;
  32129. },
  32130. _convertRecursive$4(bytes, start, end, single) {
  32131. var mid, s1, _this = this;
  32132. if (end - start > 1000) {
  32133. mid = B.JSInt_methods._tdivFast$1(start + end, 2);
  32134. s1 = _this._convertRecursive$4(bytes, start, mid, false);
  32135. if ((_this._convert$_state & 1) !== 0)
  32136. return s1;
  32137. return s1 + _this._convertRecursive$4(bytes, mid, end, single);
  32138. }
  32139. return _this.decodeGeneral$4(bytes, start, end, single);
  32140. },
  32141. flush$1(sink) {
  32142. var state = this._convert$_state;
  32143. this._convert$_state = 0;
  32144. if (state <= 32)
  32145. return;
  32146. if (this.allowMalformed)
  32147. sink._contents += A.Primitives_stringFromCharCode(65533);
  32148. else
  32149. throw A.wrapException(A.FormatException$(A._Utf8Decoder_errorDescription(77), null, null));
  32150. },
  32151. decodeGeneral$4(bytes, start, end, single) {
  32152. var t1, type, t2, i0, markEnd, i1, m, _this = this, _65533 = 65533,
  32153. state = _this._convert$_state,
  32154. char = _this._charOrIndex,
  32155. buffer = new A.StringBuffer(""),
  32156. i = start + 1,
  32157. byte = bytes[start];
  32158. $label0$0:
  32159. for (t1 = _this.allowMalformed; true;) {
  32160. for (; true; i = i0) {
  32161. type = B.JSString_methods._codeUnitAt$1("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFFFFFFFFFFFFFFFFGGGGGGGGGGGGGGGGHHHHHHHHHHHHHHHHHHHHHHHHHHHIHHHJEEBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBKCCCCCCCCCCCCDCLONNNMEEEEEEEEEEE", byte) & 31;
  32162. char = state <= 32 ? byte & 61694 >>> type : (byte & 63 | char << 6) >>> 0;
  32163. state = B.JSString_methods._codeUnitAt$1(" \x000:XECCCCCN:lDb \x000:XECCCCCNvlDb \x000:XECCCCCN:lDb AAAAA\x00\x00\x00\x00\x00AAAAA00000AAAAA:::::AAAAAGG000AAAAA00KKKAAAAAG::::AAAAA:IIIIAAAAA000\x800AAAAA\x00\x00\x00\x00 AAAAA", state + type);
  32164. if (state === 0) {
  32165. buffer._contents += A.Primitives_stringFromCharCode(char);
  32166. if (i === end)
  32167. break $label0$0;
  32168. break;
  32169. } else if ((state & 1) !== 0) {
  32170. if (t1)
  32171. switch (state) {
  32172. case 69:
  32173. case 67:
  32174. buffer._contents += A.Primitives_stringFromCharCode(_65533);
  32175. break;
  32176. case 65:
  32177. buffer._contents += A.Primitives_stringFromCharCode(_65533);
  32178. --i;
  32179. break;
  32180. default:
  32181. t2 = buffer._contents += A.Primitives_stringFromCharCode(_65533);
  32182. buffer._contents = t2 + A.Primitives_stringFromCharCode(_65533);
  32183. break;
  32184. }
  32185. else {
  32186. _this._convert$_state = state;
  32187. _this._charOrIndex = i - 1;
  32188. return "";
  32189. }
  32190. state = 0;
  32191. }
  32192. if (i === end)
  32193. break $label0$0;
  32194. i0 = i + 1;
  32195. byte = bytes[i];
  32196. }
  32197. i0 = i + 1;
  32198. byte = bytes[i];
  32199. if (byte < 128) {
  32200. while (true) {
  32201. if (!(i0 < end)) {
  32202. markEnd = end;
  32203. break;
  32204. }
  32205. i1 = i0 + 1;
  32206. byte = bytes[i0];
  32207. if (byte >= 128) {
  32208. markEnd = i1 - 1;
  32209. i0 = i1;
  32210. break;
  32211. }
  32212. i0 = i1;
  32213. }
  32214. if (markEnd - i < 20)
  32215. for (m = i; m < markEnd; ++m)
  32216. buffer._contents += A.Primitives_stringFromCharCode(bytes[m]);
  32217. else
  32218. buffer._contents += A.String_String$fromCharCodes(bytes, i, markEnd);
  32219. if (markEnd === end)
  32220. break $label0$0;
  32221. i = i0;
  32222. } else
  32223. i = i0;
  32224. }
  32225. if (single && state > 32)
  32226. if (t1)
  32227. buffer._contents += A.Primitives_stringFromCharCode(_65533);
  32228. else {
  32229. _this._convert$_state = 77;
  32230. _this._charOrIndex = end;
  32231. return "";
  32232. }
  32233. _this._convert$_state = state;
  32234. _this._charOrIndex = char;
  32235. t1 = buffer._contents;
  32236. return t1.charCodeAt(0) == 0 ? t1 : t1;
  32237. }
  32238. };
  32239. A.NoSuchMethodError_toString_closure.prototype = {
  32240. call$2(key, value) {
  32241. var t1 = this.sb,
  32242. t2 = this._box_0,
  32243. t3 = t1._contents += t2.comma;
  32244. t3 += key.__internal$_name;
  32245. t1._contents = t3;
  32246. t1._contents = t3 + ": ";
  32247. t1._contents += A.Error_safeToString(value);
  32248. t2.comma = ", ";
  32249. },
  32250. $signature: 348
  32251. };
  32252. A.DateTime.prototype = {
  32253. add$1(_, duration) {
  32254. return A.DateTime$_withValue(B.JSInt_methods.$add(this._core$_value, duration.get$inMilliseconds()), false);
  32255. },
  32256. $eq(_, other) {
  32257. if (other == null)
  32258. return false;
  32259. return other instanceof A.DateTime && this._core$_value === other._core$_value && true;
  32260. },
  32261. compareTo$1(_, other) {
  32262. return B.JSInt_methods.compareTo$1(this._core$_value, other._core$_value);
  32263. },
  32264. get$hashCode(_) {
  32265. var t1 = this._core$_value;
  32266. return (t1 ^ B.JSInt_methods._shrOtherPositive$1(t1, 30)) & 1073741823;
  32267. },
  32268. toString$0(_) {
  32269. var _this = this,
  32270. y = A.DateTime__fourDigits(A.Primitives_getYear(_this)),
  32271. m = A.DateTime__twoDigits(A.Primitives_getMonth(_this)),
  32272. d = A.DateTime__twoDigits(A.Primitives_getDay(_this)),
  32273. h = A.DateTime__twoDigits(A.Primitives_getHours(_this)),
  32274. min = A.DateTime__twoDigits(A.Primitives_getMinutes(_this)),
  32275. sec = A.DateTime__twoDigits(A.Primitives_getSeconds(_this)),
  32276. ms = A.DateTime__threeDigits(A.Primitives_getMilliseconds(_this));
  32277. return y + "-" + m + "-" + d + " " + h + ":" + min + ":" + sec + "." + ms;
  32278. },
  32279. $isComparable: 1
  32280. };
  32281. A.Duration.prototype = {
  32282. $eq(_, other) {
  32283. if (other == null)
  32284. return false;
  32285. return other instanceof A.Duration && this._duration === other._duration;
  32286. },
  32287. get$hashCode(_) {
  32288. return B.JSInt_methods.get$hashCode(this._duration);
  32289. },
  32290. compareTo$1(_, other) {
  32291. return B.JSInt_methods.compareTo$1(this._duration, other._duration);
  32292. },
  32293. toString$0(_) {
  32294. var minutes, minutesPadding, seconds, secondsPadding,
  32295. microseconds = this._duration,
  32296. sign = microseconds < 0 ? "-" : "",
  32297. hours = B.JSInt_methods._tdivFast$1(microseconds, 3600000000);
  32298. microseconds %= 3600000000;
  32299. if (microseconds < 0)
  32300. microseconds = -microseconds;
  32301. minutes = B.JSInt_methods._tdivFast$1(microseconds, 60000000);
  32302. microseconds %= 60000000;
  32303. minutesPadding = minutes < 10 ? "0" : "";
  32304. seconds = B.JSInt_methods._tdivFast$1(microseconds, 1000000);
  32305. secondsPadding = seconds < 10 ? "0" : "";
  32306. return sign + Math.abs(hours) + ":" + minutesPadding + minutes + ":" + secondsPadding + seconds + "." + B.JSString_methods.padLeft$2(B.JSInt_methods.toString$0(microseconds % 1000000), 6, "0");
  32307. },
  32308. $isComparable: 1
  32309. };
  32310. A._Enum.prototype = {};
  32311. A.Error.prototype = {
  32312. get$stackTrace() {
  32313. return A.getTraceFromException(this.$thrownJsError);
  32314. }
  32315. };
  32316. A.AssertionError.prototype = {
  32317. toString$0(_) {
  32318. var t1 = this.message;
  32319. if (t1 != null)
  32320. return "Assertion failed: " + A.Error_safeToString(t1);
  32321. return "Assertion failed";
  32322. },
  32323. get$message(receiver) {
  32324. return this.message;
  32325. }
  32326. };
  32327. A.TypeError.prototype = {};
  32328. A.NullThrownError.prototype = {
  32329. toString$0(_) {
  32330. return "Throw of null.";
  32331. }
  32332. };
  32333. A.ArgumentError.prototype = {
  32334. get$_errorName() {
  32335. return "Invalid argument" + (!this._hasValue ? "(s)" : "");
  32336. },
  32337. get$_errorExplanation() {
  32338. return "";
  32339. },
  32340. toString$0(_) {
  32341. var _this = this,
  32342. $name = _this.name,
  32343. nameString = $name == null ? "" : " (" + $name + ")",
  32344. message = _this.message,
  32345. messageString = message == null ? "" : ": " + A.S(message),
  32346. prefix = _this.get$_errorName() + nameString + messageString;
  32347. if (!_this._hasValue)
  32348. return prefix;
  32349. return prefix + _this.get$_errorExplanation() + ": " + A.Error_safeToString(_this.invalidValue);
  32350. },
  32351. get$message(receiver) {
  32352. return this.message;
  32353. }
  32354. };
  32355. A.RangeError.prototype = {
  32356. get$_errorName() {
  32357. return "RangeError";
  32358. },
  32359. get$_errorExplanation() {
  32360. var explanation,
  32361. start = this.start,
  32362. end = this.end;
  32363. if (start == null)
  32364. explanation = end != null ? ": Not less than or equal to " + A.S(end) : "";
  32365. else if (end == null)
  32366. explanation = ": Not greater than or equal to " + A.S(start);
  32367. else if (end > start)
  32368. explanation = ": Not in inclusive range " + A.S(start) + ".." + A.S(end);
  32369. else
  32370. explanation = end < start ? ": Valid value range is empty" : ": Only valid value is " + A.S(start);
  32371. return explanation;
  32372. }
  32373. };
  32374. A.IndexError.prototype = {
  32375. get$_errorName() {
  32376. return "RangeError";
  32377. },
  32378. get$_errorExplanation() {
  32379. if (this.invalidValue < 0)
  32380. return ": index must not be negative";
  32381. var t1 = this.length;
  32382. if (t1 === 0)
  32383. return ": no indices are valid";
  32384. return ": index should be less than " + t1;
  32385. },
  32386. $isRangeError: 1,
  32387. get$length(receiver) {
  32388. return this.length;
  32389. }
  32390. };
  32391. A.NoSuchMethodError.prototype = {
  32392. toString$0(_) {
  32393. var $arguments, t1, _i, t2, t3, argument, receiverText, actualParameters, _this = this, _box_0 = {},
  32394. sb = new A.StringBuffer("");
  32395. _box_0.comma = "";
  32396. $arguments = _this._core$_arguments;
  32397. for (t1 = $arguments.length, _i = 0, t2 = "", t3 = ""; _i < t1; ++_i, t3 = ", ") {
  32398. argument = $arguments[_i];
  32399. sb._contents = t2 + t3;
  32400. t2 = sb._contents += A.Error_safeToString(argument);
  32401. _box_0.comma = ", ";
  32402. }
  32403. _this._namedArguments.forEach$1(0, new A.NoSuchMethodError_toString_closure(_box_0, sb));
  32404. receiverText = A.Error_safeToString(_this._core$_receiver);
  32405. actualParameters = sb.toString$0(0);
  32406. return "NoSuchMethodError: method not found: '" + _this._memberName.__internal$_name + "'\nReceiver: " + receiverText + "\nArguments: [" + actualParameters + "]";
  32407. }
  32408. };
  32409. A.UnsupportedError.prototype = {
  32410. toString$0(_) {
  32411. return "Unsupported operation: " + this.message;
  32412. },
  32413. get$message(receiver) {
  32414. return this.message;
  32415. }
  32416. };
  32417. A.UnimplementedError.prototype = {
  32418. toString$0(_) {
  32419. return "UnimplementedError: " + this.message;
  32420. },
  32421. get$message(receiver) {
  32422. return this.message;
  32423. }
  32424. };
  32425. A.StateError.prototype = {
  32426. toString$0(_) {
  32427. return "Bad state: " + this.message;
  32428. },
  32429. get$message(receiver) {
  32430. return this.message;
  32431. }
  32432. };
  32433. A.ConcurrentModificationError.prototype = {
  32434. toString$0(_) {
  32435. var t1 = this.modifiedObject;
  32436. if (t1 == null)
  32437. return "Concurrent modification during iteration.";
  32438. return "Concurrent modification during iteration: " + A.Error_safeToString(t1) + ".";
  32439. }
  32440. };
  32441. A.OutOfMemoryError.prototype = {
  32442. toString$0(_) {
  32443. return "Out of Memory";
  32444. },
  32445. get$stackTrace() {
  32446. return null;
  32447. },
  32448. $isError: 1
  32449. };
  32450. A.StackOverflowError.prototype = {
  32451. toString$0(_) {
  32452. return "Stack Overflow";
  32453. },
  32454. get$stackTrace() {
  32455. return null;
  32456. },
  32457. $isError: 1
  32458. };
  32459. A.CyclicInitializationError.prototype = {
  32460. toString$0(_) {
  32461. return "Reading static variable '" + this.variableName + "' during its initialization";
  32462. }
  32463. };
  32464. A._Exception.prototype = {
  32465. toString$0(_) {
  32466. return "Exception: " + this.message;
  32467. },
  32468. $isException: 1,
  32469. get$message(receiver) {
  32470. return this.message;
  32471. }
  32472. };
  32473. A.FormatException.prototype = {
  32474. toString$0(_) {
  32475. var t1, lineNum, lineStart, previousCharWasCR, i, char, lineEnd, end, start, prefix, postfix,
  32476. message = this.message,
  32477. report = "" !== message ? "FormatException: " + message : "FormatException",
  32478. offset = this.offset,
  32479. source = this.source;
  32480. if (typeof source == "string") {
  32481. if (offset != null)
  32482. t1 = offset < 0 || offset > source.length;
  32483. else
  32484. t1 = false;
  32485. if (t1)
  32486. offset = null;
  32487. if (offset == null) {
  32488. if (source.length > 78)
  32489. source = B.JSString_methods.substring$2(source, 0, 75) + "...";
  32490. return report + "\n" + source;
  32491. }
  32492. for (lineNum = 1, lineStart = 0, previousCharWasCR = false, i = 0; i < offset; ++i) {
  32493. char = B.JSString_methods._codeUnitAt$1(source, i);
  32494. if (char === 10) {
  32495. if (lineStart !== i || !previousCharWasCR)
  32496. ++lineNum;
  32497. lineStart = i + 1;
  32498. previousCharWasCR = false;
  32499. } else if (char === 13) {
  32500. ++lineNum;
  32501. lineStart = i + 1;
  32502. previousCharWasCR = true;
  32503. }
  32504. }
  32505. report = lineNum > 1 ? report + (" (at line " + lineNum + ", character " + (offset - lineStart + 1) + ")\n") : report + (" (at character " + (offset + 1) + ")\n");
  32506. lineEnd = source.length;
  32507. for (i = offset; i < lineEnd; ++i) {
  32508. char = B.JSString_methods.codeUnitAt$1(source, i);
  32509. if (char === 10 || char === 13) {
  32510. lineEnd = i;
  32511. break;
  32512. }
  32513. }
  32514. if (lineEnd - lineStart > 78)
  32515. if (offset - lineStart < 75) {
  32516. end = lineStart + 75;
  32517. start = lineStart;
  32518. prefix = "";
  32519. postfix = "...";
  32520. } else {
  32521. if (lineEnd - offset < 75) {
  32522. start = lineEnd - 75;
  32523. end = lineEnd;
  32524. postfix = "";
  32525. } else {
  32526. start = offset - 36;
  32527. end = offset + 36;
  32528. postfix = "...";
  32529. }
  32530. prefix = "...";
  32531. }
  32532. else {
  32533. end = lineEnd;
  32534. start = lineStart;
  32535. prefix = "";
  32536. postfix = "";
  32537. }
  32538. return report + prefix + B.JSString_methods.substring$2(source, start, end) + postfix + "\n" + B.JSString_methods.$mul(" ", offset - start + prefix.length) + "^\n";
  32539. } else
  32540. return offset != null ? report + (" (at offset " + A.S(offset) + ")") : report;
  32541. },
  32542. $isException: 1,
  32543. get$message(receiver) {
  32544. return this.message;
  32545. }
  32546. };
  32547. A.Iterable.prototype = {
  32548. cast$1$0(_, $R) {
  32549. return A.CastIterable_CastIterable(this, A._instanceType(this)._eval$1("Iterable.E"), $R);
  32550. },
  32551. followedBy$1(_, other) {
  32552. var _this = this,
  32553. t1 = A._instanceType(_this);
  32554. if (t1._eval$1("EfficientLengthIterable<Iterable.E>")._is(_this))
  32555. return A.FollowedByIterable_FollowedByIterable$firstEfficient(_this, other, t1._eval$1("Iterable.E"));
  32556. return new A.FollowedByIterable(_this, other, t1._eval$1("FollowedByIterable<Iterable.E>"));
  32557. },
  32558. map$1$1(_, toElement, $T) {
  32559. return A.MappedIterable_MappedIterable(this, toElement, A._instanceType(this)._eval$1("Iterable.E"), $T);
  32560. },
  32561. where$1(_, test) {
  32562. return new A.WhereIterable(this, test, A._instanceType(this)._eval$1("WhereIterable<Iterable.E>"));
  32563. },
  32564. expand$1$1(_, toElements, $T) {
  32565. return new A.ExpandIterable(this, toElements, A._instanceType(this)._eval$1("@<Iterable.E>")._bind$1($T)._eval$1("ExpandIterable<1,2>"));
  32566. },
  32567. contains$1(_, element) {
  32568. var t1;
  32569. for (t1 = this.get$iterator(this); t1.moveNext$0();)
  32570. if (J.$eq$(t1.get$current(t1), element))
  32571. return true;
  32572. return false;
  32573. },
  32574. fold$1$2(_, initialValue, combine) {
  32575. var t1, value;
  32576. for (t1 = this.get$iterator(this), value = initialValue; t1.moveNext$0();)
  32577. value = combine.call$2(value, t1.get$current(t1));
  32578. return value;
  32579. },
  32580. fold$2($receiver, initialValue, combine) {
  32581. return this.fold$1$2($receiver, initialValue, combine, type$.dynamic);
  32582. },
  32583. join$1(_, separator) {
  32584. var t1,
  32585. iterator = this.get$iterator(this);
  32586. if (!iterator.moveNext$0())
  32587. return "";
  32588. if (separator === "") {
  32589. t1 = "";
  32590. do
  32591. t1 += A.S(J.toString$0$(iterator.get$current(iterator)));
  32592. while (iterator.moveNext$0());
  32593. } else {
  32594. t1 = "" + A.S(J.toString$0$(iterator.get$current(iterator)));
  32595. for (; iterator.moveNext$0();)
  32596. t1 = t1 + separator + A.S(J.toString$0$(iterator.get$current(iterator)));
  32597. }
  32598. return t1.charCodeAt(0) == 0 ? t1 : t1;
  32599. },
  32600. join$0($receiver) {
  32601. return this.join$1($receiver, "");
  32602. },
  32603. any$1(_, test) {
  32604. var t1;
  32605. for (t1 = this.get$iterator(this); t1.moveNext$0();)
  32606. if (test.call$1(t1.get$current(t1)))
  32607. return true;
  32608. return false;
  32609. },
  32610. toList$1$growable(_, growable) {
  32611. return A.List_List$of(this, growable, A._instanceType(this)._eval$1("Iterable.E"));
  32612. },
  32613. toList$0($receiver) {
  32614. return this.toList$1$growable($receiver, true);
  32615. },
  32616. toSet$0(_) {
  32617. return A.LinkedHashSet_LinkedHashSet$of(this, A._instanceType(this)._eval$1("Iterable.E"));
  32618. },
  32619. get$length(_) {
  32620. var count,
  32621. it = this.get$iterator(this);
  32622. for (count = 0; it.moveNext$0();)
  32623. ++count;
  32624. return count;
  32625. },
  32626. get$isEmpty(_) {
  32627. return !this.get$iterator(this).moveNext$0();
  32628. },
  32629. get$isNotEmpty(_) {
  32630. return !this.get$isEmpty(this);
  32631. },
  32632. take$1(_, count) {
  32633. return A.TakeIterable_TakeIterable(this, count, A._instanceType(this)._eval$1("Iterable.E"));
  32634. },
  32635. skip$1(_, count) {
  32636. return A.SkipIterable_SkipIterable(this, count, A._instanceType(this)._eval$1("Iterable.E"));
  32637. },
  32638. skipWhile$1(_, test) {
  32639. return new A.SkipWhileIterable(this, test, A._instanceType(this)._eval$1("SkipWhileIterable<Iterable.E>"));
  32640. },
  32641. get$first(_) {
  32642. var it = this.get$iterator(this);
  32643. if (!it.moveNext$0())
  32644. throw A.wrapException(A.IterableElementError_noElement());
  32645. return it.get$current(it);
  32646. },
  32647. get$last(_) {
  32648. var result,
  32649. it = this.get$iterator(this);
  32650. if (!it.moveNext$0())
  32651. throw A.wrapException(A.IterableElementError_noElement());
  32652. do
  32653. result = it.get$current(it);
  32654. while (it.moveNext$0());
  32655. return result;
  32656. },
  32657. get$single(_) {
  32658. var result,
  32659. it = this.get$iterator(this);
  32660. if (!it.moveNext$0())
  32661. throw A.wrapException(A.IterableElementError_noElement());
  32662. result = it.get$current(it);
  32663. if (it.moveNext$0())
  32664. throw A.wrapException(A.IterableElementError_tooMany());
  32665. return result;
  32666. },
  32667. elementAt$1(_, index) {
  32668. var t1, elementIndex, element;
  32669. A.RangeError_checkNotNegative(index, "index");
  32670. for (t1 = this.get$iterator(this), elementIndex = 0; t1.moveNext$0();) {
  32671. element = t1.get$current(t1);
  32672. if (index === elementIndex)
  32673. return element;
  32674. ++elementIndex;
  32675. }
  32676. throw A.wrapException(A.IndexError$(index, this, "index", null, elementIndex));
  32677. },
  32678. toString$0(_) {
  32679. return A.IterableBase_iterableToShortString(this, "(", ")");
  32680. }
  32681. };
  32682. A._GeneratorIterable.prototype = {
  32683. elementAt$1(_, index) {
  32684. A.RangeError_checkValidIndex(index, this, null);
  32685. return this._generator.call$1(index);
  32686. },
  32687. get$length(receiver) {
  32688. return this.length;
  32689. }
  32690. };
  32691. A.Iterator.prototype = {};
  32692. A.MapEntry.prototype = {
  32693. toString$0(_) {
  32694. return "MapEntry(" + A.S(this.key) + ": " + A.S(this.value) + ")";
  32695. }
  32696. };
  32697. A.Null.prototype = {
  32698. get$hashCode(_) {
  32699. return A.Object.prototype.get$hashCode.call(this, this);
  32700. },
  32701. toString$0(_) {
  32702. return "null";
  32703. }
  32704. };
  32705. A.Object.prototype = {$isObject: 1,
  32706. $eq(_, other) {
  32707. return this === other;
  32708. },
  32709. get$hashCode(_) {
  32710. return A.Primitives_objectHashCode(this);
  32711. },
  32712. toString$0(_) {
  32713. return "Instance of '" + A.Primitives_objectTypeName(this) + "'";
  32714. },
  32715. noSuchMethod$1(_, invocation) {
  32716. throw A.wrapException(A.NoSuchMethodError$(this, invocation.get$memberName(), invocation.get$positionalArguments(), invocation.get$namedArguments()));
  32717. },
  32718. get$runtimeType(_) {
  32719. var rti = this instanceof A.Closure ? A.closureFunctionType(this) : null;
  32720. return A.createRuntimeType(rti == null ? A.instanceType(this) : rti);
  32721. },
  32722. toString() {
  32723. return this.toString$0(this);
  32724. }
  32725. };
  32726. A._StringStackTrace.prototype = {
  32727. toString$0(_) {
  32728. return this._stackTrace;
  32729. },
  32730. $isStackTrace: 1
  32731. };
  32732. A.Runes.prototype = {
  32733. get$iterator(_) {
  32734. return new A.RuneIterator(this.string);
  32735. },
  32736. get$last(_) {
  32737. var code, previousCode,
  32738. t1 = this.string,
  32739. t2 = t1.length;
  32740. if (t2 === 0)
  32741. throw A.wrapException(A.StateError$("No elements."));
  32742. code = B.JSString_methods.codeUnitAt$1(t1, t2 - 1);
  32743. if ((code & 64512) === 56320 && t2 > 1) {
  32744. previousCode = B.JSString_methods.codeUnitAt$1(t1, t2 - 2);
  32745. if ((previousCode & 64512) === 55296)
  32746. return A._combineSurrogatePair(previousCode, code);
  32747. }
  32748. return code;
  32749. }
  32750. };
  32751. A.RuneIterator.prototype = {
  32752. get$current(_) {
  32753. return this._currentCodePoint;
  32754. },
  32755. moveNext$0() {
  32756. var codeUnit, nextPosition, nextCodeUnit, _this = this,
  32757. t1 = _this._position = _this._nextPosition,
  32758. t2 = _this.string,
  32759. t3 = t2.length;
  32760. if (t1 === t3) {
  32761. _this._currentCodePoint = -1;
  32762. return false;
  32763. }
  32764. codeUnit = B.JSString_methods._codeUnitAt$1(t2, t1);
  32765. nextPosition = t1 + 1;
  32766. if ((codeUnit & 64512) === 55296 && nextPosition < t3) {
  32767. nextCodeUnit = B.JSString_methods._codeUnitAt$1(t2, nextPosition);
  32768. if ((nextCodeUnit & 64512) === 56320) {
  32769. _this._nextPosition = nextPosition + 1;
  32770. _this._currentCodePoint = A._combineSurrogatePair(codeUnit, nextCodeUnit);
  32771. return true;
  32772. }
  32773. }
  32774. _this._nextPosition = nextPosition;
  32775. _this._currentCodePoint = codeUnit;
  32776. return true;
  32777. }
  32778. };
  32779. A.StringBuffer.prototype = {
  32780. get$length(_) {
  32781. return this._contents.length;
  32782. },
  32783. write$1(_, obj) {
  32784. this._contents += A.S(obj);
  32785. },
  32786. writeCharCode$1(charCode) {
  32787. this._contents += A.Primitives_stringFromCharCode(charCode);
  32788. },
  32789. toString$0(_) {
  32790. var t1 = this._contents;
  32791. return t1.charCodeAt(0) == 0 ? t1 : t1;
  32792. }
  32793. };
  32794. A.Uri__parseIPv4Address_error.prototype = {
  32795. call$2(msg, position) {
  32796. throw A.wrapException(A.FormatException$("Illegal IPv4 address, " + msg, this.host, position));
  32797. },
  32798. $signature: 346
  32799. };
  32800. A.Uri_parseIPv6Address_error.prototype = {
  32801. call$2(msg, position) {
  32802. throw A.wrapException(A.FormatException$("Illegal IPv6 address, " + msg, this.host, position));
  32803. },
  32804. $signature: 334
  32805. };
  32806. A.Uri_parseIPv6Address_parseHex.prototype = {
  32807. call$2(start, end) {
  32808. var value;
  32809. if (end - start > 4)
  32810. this.error.call$2("an IPv6 part can only contain a maximum of 4 hex digits", start);
  32811. value = A.int_parse(B.JSString_methods.substring$2(this.host, start, end), 16);
  32812. if (value < 0 || value > 65535)
  32813. this.error.call$2("each part must be in the range of `0x0..0xFFFF`", start);
  32814. return value;
  32815. },
  32816. $signature: 320
  32817. };
  32818. A._Uri.prototype = {
  32819. get$_text() {
  32820. var t1, t2, t3, t4, _this = this,
  32821. value = _this.___Uri__text_FI;
  32822. if (value === $) {
  32823. t1 = _this.scheme;
  32824. t2 = t1.length !== 0 ? "" + t1 + ":" : "";
  32825. t3 = _this._host;
  32826. t4 = t3 == null;
  32827. if (!t4 || t1 === "file") {
  32828. t1 = t2 + "//";
  32829. t2 = _this._userInfo;
  32830. if (t2.length !== 0)
  32831. t1 = t1 + t2 + "@";
  32832. if (!t4)
  32833. t1 += t3;
  32834. t2 = _this._port;
  32835. if (t2 != null)
  32836. t1 = t1 + ":" + A.S(t2);
  32837. } else
  32838. t1 = t2;
  32839. t1 += _this.path;
  32840. t2 = _this._query;
  32841. if (t2 != null)
  32842. t1 = t1 + "?" + t2;
  32843. t2 = _this._fragment;
  32844. if (t2 != null)
  32845. t1 = t1 + "#" + t2;
  32846. value !== $ && A.throwUnnamedLateFieldADI();
  32847. value = _this.___Uri__text_FI = t1.charCodeAt(0) == 0 ? t1 : t1;
  32848. }
  32849. return value;
  32850. },
  32851. get$pathSegments() {
  32852. var pathToSplit, result, _this = this,
  32853. value = _this.___Uri_pathSegments_FI;
  32854. if (value === $) {
  32855. pathToSplit = _this.path;
  32856. if (pathToSplit.length !== 0 && B.JSString_methods._codeUnitAt$1(pathToSplit, 0) === 47)
  32857. pathToSplit = B.JSString_methods.substring$1(pathToSplit, 1);
  32858. result = pathToSplit.length === 0 ? B.List_empty : A.List_List$unmodifiable(new A.MappedListIterable(A._setArrayType(pathToSplit.split("/"), type$.JSArray_String), A.core_Uri_decodeComponent$closure(), type$.MappedListIterable_String_dynamic), type$.String);
  32859. _this.___Uri_pathSegments_FI !== $ && A.throwUnnamedLateFieldADI();
  32860. value = _this.___Uri_pathSegments_FI = result;
  32861. }
  32862. return value;
  32863. },
  32864. get$hashCode(_) {
  32865. var result, _this = this,
  32866. value = _this.___Uri_hashCode_FI;
  32867. if (value === $) {
  32868. result = B.JSString_methods.get$hashCode(_this.get$_text());
  32869. _this.___Uri_hashCode_FI !== $ && A.throwUnnamedLateFieldADI();
  32870. _this.___Uri_hashCode_FI = result;
  32871. value = result;
  32872. }
  32873. return value;
  32874. },
  32875. get$userInfo() {
  32876. return this._userInfo;
  32877. },
  32878. get$host() {
  32879. var host = this._host;
  32880. if (host == null)
  32881. return "";
  32882. if (B.JSString_methods.startsWith$1(host, "["))
  32883. return B.JSString_methods.substring$2(host, 1, host.length - 1);
  32884. return host;
  32885. },
  32886. get$port(_) {
  32887. var t1 = this._port;
  32888. return t1 == null ? A._Uri__defaultPort(this.scheme) : t1;
  32889. },
  32890. get$query() {
  32891. var t1 = this._query;
  32892. return t1 == null ? "" : t1;
  32893. },
  32894. get$fragment() {
  32895. var t1 = this._fragment;
  32896. return t1 == null ? "" : t1;
  32897. },
  32898. isScheme$1(scheme) {
  32899. var thisScheme = this.scheme;
  32900. if (scheme.length !== thisScheme.length)
  32901. return false;
  32902. return A._caseInsensitiveCompareStart(scheme, thisScheme, 0) >= 0;
  32903. },
  32904. _mergePaths$2(base, reference) {
  32905. var backCount, refStart, baseEnd, newEnd, delta, t1;
  32906. for (backCount = 0, refStart = 0; B.JSString_methods.startsWith$2(reference, "../", refStart);) {
  32907. refStart += 3;
  32908. ++backCount;
  32909. }
  32910. baseEnd = B.JSString_methods.lastIndexOf$1(base, "/");
  32911. while (true) {
  32912. if (!(baseEnd > 0 && backCount > 0))
  32913. break;
  32914. newEnd = B.JSString_methods.lastIndexOf$2(base, "/", baseEnd - 1);
  32915. if (newEnd < 0)
  32916. break;
  32917. delta = baseEnd - newEnd;
  32918. t1 = delta !== 2;
  32919. if (!t1 || delta === 3)
  32920. if (B.JSString_methods.codeUnitAt$1(base, newEnd + 1) === 46)
  32921. t1 = !t1 || B.JSString_methods.codeUnitAt$1(base, newEnd + 2) === 46;
  32922. else
  32923. t1 = false;
  32924. else
  32925. t1 = false;
  32926. if (t1)
  32927. break;
  32928. --backCount;
  32929. baseEnd = newEnd;
  32930. }
  32931. return B.JSString_methods.replaceRange$3(base, baseEnd + 1, null, B.JSString_methods.substring$1(reference, refStart - 3 * backCount));
  32932. },
  32933. resolve$1(reference) {
  32934. return this.resolveUri$1(A.Uri_parse(reference));
  32935. },
  32936. resolveUri$1(reference) {
  32937. var targetScheme, targetUserInfo, targetHost, targetPort, targetPath, targetQuery, packageNameEnd, packageName, mergedPath, t1, _this = this, _null = null;
  32938. if (reference.get$scheme().length !== 0) {
  32939. targetScheme = reference.get$scheme();
  32940. if (reference.get$hasAuthority()) {
  32941. targetUserInfo = reference.get$userInfo();
  32942. targetHost = reference.get$host();
  32943. targetPort = reference.get$hasPort() ? reference.get$port(reference) : _null;
  32944. } else {
  32945. targetPort = _null;
  32946. targetHost = targetPort;
  32947. targetUserInfo = "";
  32948. }
  32949. targetPath = A._Uri__removeDotSegments(reference.get$path(reference));
  32950. targetQuery = reference.get$hasQuery() ? reference.get$query() : _null;
  32951. } else {
  32952. targetScheme = _this.scheme;
  32953. if (reference.get$hasAuthority()) {
  32954. targetUserInfo = reference.get$userInfo();
  32955. targetHost = reference.get$host();
  32956. targetPort = A._Uri__makePort(reference.get$hasPort() ? reference.get$port(reference) : _null, targetScheme);
  32957. targetPath = A._Uri__removeDotSegments(reference.get$path(reference));
  32958. targetQuery = reference.get$hasQuery() ? reference.get$query() : _null;
  32959. } else {
  32960. targetUserInfo = _this._userInfo;
  32961. targetHost = _this._host;
  32962. targetPort = _this._port;
  32963. targetPath = _this.path;
  32964. if (reference.get$path(reference) === "")
  32965. targetQuery = reference.get$hasQuery() ? reference.get$query() : _this._query;
  32966. else {
  32967. packageNameEnd = A._Uri__packageNameEnd(_this, targetPath);
  32968. if (packageNameEnd > 0) {
  32969. packageName = B.JSString_methods.substring$2(targetPath, 0, packageNameEnd);
  32970. targetPath = reference.get$hasAbsolutePath() ? packageName + A._Uri__removeDotSegments(reference.get$path(reference)) : packageName + A._Uri__removeDotSegments(_this._mergePaths$2(B.JSString_methods.substring$1(targetPath, packageName.length), reference.get$path(reference)));
  32971. } else if (reference.get$hasAbsolutePath())
  32972. targetPath = A._Uri__removeDotSegments(reference.get$path(reference));
  32973. else if (targetPath.length === 0)
  32974. if (targetHost == null)
  32975. targetPath = targetScheme.length === 0 ? reference.get$path(reference) : A._Uri__removeDotSegments(reference.get$path(reference));
  32976. else
  32977. targetPath = A._Uri__removeDotSegments("/" + reference.get$path(reference));
  32978. else {
  32979. mergedPath = _this._mergePaths$2(targetPath, reference.get$path(reference));
  32980. t1 = targetScheme.length === 0;
  32981. if (!t1 || targetHost != null || B.JSString_methods.startsWith$1(targetPath, "/"))
  32982. targetPath = A._Uri__removeDotSegments(mergedPath);
  32983. else
  32984. targetPath = A._Uri__normalizeRelativePath(mergedPath, !t1 || targetHost != null);
  32985. }
  32986. targetQuery = reference.get$hasQuery() ? reference.get$query() : _null;
  32987. }
  32988. }
  32989. }
  32990. return A._Uri$_internal(targetScheme, targetUserInfo, targetHost, targetPort, targetPath, targetQuery, reference.get$hasFragment() ? reference.get$fragment() : _null);
  32991. },
  32992. get$hasAuthority() {
  32993. return this._host != null;
  32994. },
  32995. get$hasPort() {
  32996. return this._port != null;
  32997. },
  32998. get$hasQuery() {
  32999. return this._query != null;
  33000. },
  33001. get$hasFragment() {
  33002. return this._fragment != null;
  33003. },
  33004. get$hasAbsolutePath() {
  33005. return B.JSString_methods.startsWith$1(this.path, "/");
  33006. },
  33007. toFilePath$0() {
  33008. var pathSegments, _this = this,
  33009. t1 = _this.scheme;
  33010. if (t1 !== "" && t1 !== "file")
  33011. throw A.wrapException(A.UnsupportedError$("Cannot extract a file path from a " + t1 + " URI"));
  33012. t1 = _this._query;
  33013. if ((t1 == null ? "" : t1) !== "")
  33014. throw A.wrapException(A.UnsupportedError$(string$.Cannotfq));
  33015. t1 = _this._fragment;
  33016. if ((t1 == null ? "" : t1) !== "")
  33017. throw A.wrapException(A.UnsupportedError$(string$.Cannotff));
  33018. t1 = $.$get$_Uri__isWindowsCached();
  33019. if (t1)
  33020. t1 = A._Uri__toWindowsFilePath(_this);
  33021. else {
  33022. if (_this._host != null && _this.get$host() !== "")
  33023. A.throwExpression(A.UnsupportedError$(string$.Cannotn));
  33024. pathSegments = _this.get$pathSegments();
  33025. A._Uri__checkNonWindowsPathReservedCharacters(pathSegments, false);
  33026. t1 = A.StringBuffer__writeAll(B.JSString_methods.startsWith$1(_this.path, "/") ? "" + "/" : "", pathSegments, "/");
  33027. t1 = t1.charCodeAt(0) == 0 ? t1 : t1;
  33028. }
  33029. return t1;
  33030. },
  33031. toString$0(_) {
  33032. return this.get$_text();
  33033. },
  33034. $eq(_, other) {
  33035. var t1, t2, _this = this;
  33036. if (other == null)
  33037. return false;
  33038. if (_this === other)
  33039. return true;
  33040. if (type$.Uri._is(other))
  33041. if (_this.scheme === other.get$scheme())
  33042. if (_this._host != null === other.get$hasAuthority())
  33043. if (_this._userInfo === other.get$userInfo())
  33044. if (_this.get$host() === other.get$host())
  33045. if (_this.get$port(_this) === other.get$port(other))
  33046. if (_this.path === other.get$path(other)) {
  33047. t1 = _this._query;
  33048. t2 = t1 == null;
  33049. if (!t2 === other.get$hasQuery()) {
  33050. if (t2)
  33051. t1 = "";
  33052. if (t1 === other.get$query()) {
  33053. t1 = _this._fragment;
  33054. t2 = t1 == null;
  33055. if (!t2 === other.get$hasFragment()) {
  33056. if (t2)
  33057. t1 = "";
  33058. t1 = t1 === other.get$fragment();
  33059. } else
  33060. t1 = false;
  33061. } else
  33062. t1 = false;
  33063. } else
  33064. t1 = false;
  33065. } else
  33066. t1 = false;
  33067. else
  33068. t1 = false;
  33069. else
  33070. t1 = false;
  33071. else
  33072. t1 = false;
  33073. else
  33074. t1 = false;
  33075. else
  33076. t1 = false;
  33077. else
  33078. t1 = false;
  33079. return t1;
  33080. },
  33081. $isUri: 1,
  33082. get$scheme() {
  33083. return this.scheme;
  33084. },
  33085. get$path(receiver) {
  33086. return this.path;
  33087. }
  33088. };
  33089. A._Uri__makePath_closure.prototype = {
  33090. call$1(s) {
  33091. return A._Uri__uriEncode(B.List_qg40, s, B.C_Utf8Codec, false);
  33092. },
  33093. $signature: 5
  33094. };
  33095. A.UriData.prototype = {
  33096. get$uri() {
  33097. var t2, queryIndex, end, query, _this = this, _null = null,
  33098. t1 = _this._uriCache;
  33099. if (t1 == null) {
  33100. t1 = _this._text;
  33101. t2 = _this._separatorIndices[0] + 1;
  33102. queryIndex = B.JSString_methods.indexOf$2(t1, "?", t2);
  33103. end = t1.length;
  33104. if (queryIndex >= 0) {
  33105. query = A._Uri__normalizeOrSubstring(t1, queryIndex + 1, end, B.List_CVk, false, false);
  33106. end = queryIndex;
  33107. } else
  33108. query = _null;
  33109. t1 = _this._uriCache = new A._DataUri("data", "", _null, _null, A._Uri__normalizeOrSubstring(t1, t2, end, B.List_qg4, false, false), query, _null);
  33110. }
  33111. return t1;
  33112. },
  33113. toString$0(_) {
  33114. var t1 = this._text;
  33115. return this._separatorIndices[0] === -1 ? "data:" + t1 : t1;
  33116. }
  33117. };
  33118. A._createTables_build.prototype = {
  33119. call$2(state, defaultTransition) {
  33120. var t1 = this.tables[state];
  33121. B.NativeUint8List_methods.fillRange$3(t1, 0, 96, defaultTransition);
  33122. return t1;
  33123. },
  33124. $signature: 307
  33125. };
  33126. A._createTables_setChars.prototype = {
  33127. call$3(target, chars, transition) {
  33128. var t1, i;
  33129. for (t1 = chars.length, i = 0; i < t1; ++i)
  33130. target[B.JSString_methods._codeUnitAt$1(chars, i) ^ 96] = transition;
  33131. },
  33132. $signature: 223
  33133. };
  33134. A._createTables_setRange.prototype = {
  33135. call$3(target, range, transition) {
  33136. var i, n;
  33137. for (i = B.JSString_methods._codeUnitAt$1(range, 0), n = B.JSString_methods._codeUnitAt$1(range, 1); i <= n; ++i)
  33138. target[(i ^ 96) >>> 0] = transition;
  33139. },
  33140. $signature: 223
  33141. };
  33142. A._SimpleUri.prototype = {
  33143. get$hasAuthority() {
  33144. return this._hostStart > 0;
  33145. },
  33146. get$hasPort() {
  33147. return this._hostStart > 0 && this._portStart + 1 < this._pathStart;
  33148. },
  33149. get$hasQuery() {
  33150. return this._queryStart < this._fragmentStart;
  33151. },
  33152. get$hasFragment() {
  33153. return this._fragmentStart < this._uri.length;
  33154. },
  33155. get$hasAbsolutePath() {
  33156. return B.JSString_methods.startsWith$2(this._uri, "/", this._pathStart);
  33157. },
  33158. get$scheme() {
  33159. var t1 = this._schemeCache;
  33160. return t1 == null ? this._schemeCache = this._computeScheme$0() : t1;
  33161. },
  33162. _computeScheme$0() {
  33163. var t2, _this = this,
  33164. t1 = _this._schemeEnd;
  33165. if (t1 <= 0)
  33166. return "";
  33167. t2 = t1 === 4;
  33168. if (t2 && B.JSString_methods.startsWith$1(_this._uri, "http"))
  33169. return "http";
  33170. if (t1 === 5 && B.JSString_methods.startsWith$1(_this._uri, "https"))
  33171. return "https";
  33172. if (t2 && B.JSString_methods.startsWith$1(_this._uri, "file"))
  33173. return "file";
  33174. if (t1 === 7 && B.JSString_methods.startsWith$1(_this._uri, "package"))
  33175. return "package";
  33176. return B.JSString_methods.substring$2(_this._uri, 0, t1);
  33177. },
  33178. get$userInfo() {
  33179. var t1 = this._hostStart,
  33180. t2 = this._schemeEnd + 3;
  33181. return t1 > t2 ? B.JSString_methods.substring$2(this._uri, t2, t1 - 1) : "";
  33182. },
  33183. get$host() {
  33184. var t1 = this._hostStart;
  33185. return t1 > 0 ? B.JSString_methods.substring$2(this._uri, t1, this._portStart) : "";
  33186. },
  33187. get$port(_) {
  33188. var t1, _this = this;
  33189. if (_this.get$hasPort())
  33190. return A.int_parse(B.JSString_methods.substring$2(_this._uri, _this._portStart + 1, _this._pathStart), null);
  33191. t1 = _this._schemeEnd;
  33192. if (t1 === 4 && B.JSString_methods.startsWith$1(_this._uri, "http"))
  33193. return 80;
  33194. if (t1 === 5 && B.JSString_methods.startsWith$1(_this._uri, "https"))
  33195. return 443;
  33196. return 0;
  33197. },
  33198. get$path(_) {
  33199. return B.JSString_methods.substring$2(this._uri, this._pathStart, this._queryStart);
  33200. },
  33201. get$query() {
  33202. var t1 = this._queryStart,
  33203. t2 = this._fragmentStart;
  33204. return t1 < t2 ? B.JSString_methods.substring$2(this._uri, t1 + 1, t2) : "";
  33205. },
  33206. get$fragment() {
  33207. var t1 = this._fragmentStart,
  33208. t2 = this._uri;
  33209. return t1 < t2.length ? B.JSString_methods.substring$1(t2, t1 + 1) : "";
  33210. },
  33211. get$pathSegments() {
  33212. var parts, i,
  33213. start = this._pathStart,
  33214. end = this._queryStart,
  33215. t1 = this._uri;
  33216. if (B.JSString_methods.startsWith$2(t1, "/", start))
  33217. ++start;
  33218. if (start === end)
  33219. return B.List_empty;
  33220. parts = A._setArrayType([], type$.JSArray_String);
  33221. for (i = start; i < end; ++i)
  33222. if (B.JSString_methods.codeUnitAt$1(t1, i) === 47) {
  33223. parts.push(B.JSString_methods.substring$2(t1, start, i));
  33224. start = i + 1;
  33225. }
  33226. parts.push(B.JSString_methods.substring$2(t1, start, end));
  33227. return A.List_List$unmodifiable(parts, type$.String);
  33228. },
  33229. _isPort$1(port) {
  33230. var portDigitStart = this._portStart + 1;
  33231. return portDigitStart + port.length === this._pathStart && B.JSString_methods.startsWith$2(this._uri, port, portDigitStart);
  33232. },
  33233. removeFragment$0() {
  33234. var _this = this,
  33235. t1 = _this._fragmentStart,
  33236. t2 = _this._uri;
  33237. if (t1 >= t2.length)
  33238. return _this;
  33239. return new A._SimpleUri(B.JSString_methods.substring$2(t2, 0, t1), _this._schemeEnd, _this._hostStart, _this._portStart, _this._pathStart, _this._queryStart, t1, _this._schemeCache);
  33240. },
  33241. resolve$1(reference) {
  33242. return this.resolveUri$1(A.Uri_parse(reference));
  33243. },
  33244. resolveUri$1(reference) {
  33245. if (reference instanceof A._SimpleUri)
  33246. return this._simpleMerge$2(this, reference);
  33247. return this._toNonSimple$0().resolveUri$1(reference);
  33248. },
  33249. _simpleMerge$2(base, ref) {
  33250. var t2, t3, t4, isSimple, delta, refStart, basePathStart, packageNameEnd, basePathStart0, baseStart, baseEnd, baseUri, baseStart0, backCount, refStart0, insert,
  33251. t1 = ref._schemeEnd;
  33252. if (t1 > 0)
  33253. return ref;
  33254. t2 = ref._hostStart;
  33255. if (t2 > 0) {
  33256. t3 = base._schemeEnd;
  33257. if (t3 <= 0)
  33258. return ref;
  33259. t4 = t3 === 4;
  33260. if (t4 && B.JSString_methods.startsWith$1(base._uri, "file"))
  33261. isSimple = ref._pathStart !== ref._queryStart;
  33262. else if (t4 && B.JSString_methods.startsWith$1(base._uri, "http"))
  33263. isSimple = !ref._isPort$1("80");
  33264. else
  33265. isSimple = !(t3 === 5 && B.JSString_methods.startsWith$1(base._uri, "https")) || !ref._isPort$1("443");
  33266. if (isSimple) {
  33267. delta = t3 + 1;
  33268. return new A._SimpleUri(B.JSString_methods.substring$2(base._uri, 0, delta) + B.JSString_methods.substring$1(ref._uri, t1 + 1), t3, t2 + delta, ref._portStart + delta, ref._pathStart + delta, ref._queryStart + delta, ref._fragmentStart + delta, base._schemeCache);
  33269. } else
  33270. return this._toNonSimple$0().resolveUri$1(ref);
  33271. }
  33272. refStart = ref._pathStart;
  33273. t1 = ref._queryStart;
  33274. if (refStart === t1) {
  33275. t2 = ref._fragmentStart;
  33276. if (t1 < t2) {
  33277. t3 = base._queryStart;
  33278. delta = t3 - t1;
  33279. return new A._SimpleUri(B.JSString_methods.substring$2(base._uri, 0, t3) + B.JSString_methods.substring$1(ref._uri, t1), base._schemeEnd, base._hostStart, base._portStart, base._pathStart, t1 + delta, t2 + delta, base._schemeCache);
  33280. }
  33281. t1 = ref._uri;
  33282. if (t2 < t1.length) {
  33283. t3 = base._fragmentStart;
  33284. return new A._SimpleUri(B.JSString_methods.substring$2(base._uri, 0, t3) + B.JSString_methods.substring$1(t1, t2), base._schemeEnd, base._hostStart, base._portStart, base._pathStart, base._queryStart, t2 + (t3 - t2), base._schemeCache);
  33285. }
  33286. return base.removeFragment$0();
  33287. }
  33288. t2 = ref._uri;
  33289. if (B.JSString_methods.startsWith$2(t2, "/", refStart)) {
  33290. basePathStart = base._pathStart;
  33291. packageNameEnd = A._SimpleUri__packageNameEnd(this);
  33292. basePathStart0 = packageNameEnd > 0 ? packageNameEnd : basePathStart;
  33293. delta = basePathStart0 - refStart;
  33294. return new A._SimpleUri(B.JSString_methods.substring$2(base._uri, 0, basePathStart0) + B.JSString_methods.substring$1(t2, refStart), base._schemeEnd, base._hostStart, base._portStart, basePathStart, t1 + delta, ref._fragmentStart + delta, base._schemeCache);
  33295. }
  33296. baseStart = base._pathStart;
  33297. baseEnd = base._queryStart;
  33298. if (baseStart === baseEnd && base._hostStart > 0) {
  33299. for (; B.JSString_methods.startsWith$2(t2, "../", refStart);)
  33300. refStart += 3;
  33301. delta = baseStart - refStart + 1;
  33302. return new A._SimpleUri(B.JSString_methods.substring$2(base._uri, 0, baseStart) + "/" + B.JSString_methods.substring$1(t2, refStart), base._schemeEnd, base._hostStart, base._portStart, baseStart, t1 + delta, ref._fragmentStart + delta, base._schemeCache);
  33303. }
  33304. baseUri = base._uri;
  33305. packageNameEnd = A._SimpleUri__packageNameEnd(this);
  33306. if (packageNameEnd >= 0)
  33307. baseStart0 = packageNameEnd;
  33308. else
  33309. for (baseStart0 = baseStart; B.JSString_methods.startsWith$2(baseUri, "../", baseStart0);)
  33310. baseStart0 += 3;
  33311. backCount = 0;
  33312. while (true) {
  33313. refStart0 = refStart + 3;
  33314. if (!(refStart0 <= t1 && B.JSString_methods.startsWith$2(t2, "../", refStart)))
  33315. break;
  33316. ++backCount;
  33317. refStart = refStart0;
  33318. }
  33319. for (insert = ""; baseEnd > baseStart0;) {
  33320. --baseEnd;
  33321. if (B.JSString_methods.codeUnitAt$1(baseUri, baseEnd) === 47) {
  33322. if (backCount === 0) {
  33323. insert = "/";
  33324. break;
  33325. }
  33326. --backCount;
  33327. insert = "/";
  33328. }
  33329. }
  33330. if (baseEnd === baseStart0 && base._schemeEnd <= 0 && !B.JSString_methods.startsWith$2(baseUri, "/", baseStart)) {
  33331. refStart -= backCount * 3;
  33332. insert = "";
  33333. }
  33334. delta = baseEnd - refStart + insert.length;
  33335. return new A._SimpleUri(B.JSString_methods.substring$2(baseUri, 0, baseEnd) + insert + B.JSString_methods.substring$1(t2, refStart), base._schemeEnd, base._hostStart, base._portStart, baseStart, t1 + delta, ref._fragmentStart + delta, base._schemeCache);
  33336. },
  33337. toFilePath$0() {
  33338. var t2, t3, _this = this,
  33339. t1 = _this._schemeEnd;
  33340. if (t1 >= 0) {
  33341. t2 = !(t1 === 4 && B.JSString_methods.startsWith$1(_this._uri, "file"));
  33342. t1 = t2;
  33343. } else
  33344. t1 = false;
  33345. if (t1)
  33346. throw A.wrapException(A.UnsupportedError$("Cannot extract a file path from a " + _this.get$scheme() + " URI"));
  33347. t1 = _this._queryStart;
  33348. t2 = _this._uri;
  33349. if (t1 < t2.length) {
  33350. if (t1 < _this._fragmentStart)
  33351. throw A.wrapException(A.UnsupportedError$(string$.Cannotfq));
  33352. throw A.wrapException(A.UnsupportedError$(string$.Cannotff));
  33353. }
  33354. t3 = $.$get$_Uri__isWindowsCached();
  33355. if (t3)
  33356. t1 = A._Uri__toWindowsFilePath(_this);
  33357. else {
  33358. if (_this._hostStart < _this._portStart)
  33359. A.throwExpression(A.UnsupportedError$(string$.Cannotn));
  33360. t1 = B.JSString_methods.substring$2(t2, _this._pathStart, t1);
  33361. }
  33362. return t1;
  33363. },
  33364. get$hashCode(_) {
  33365. var t1 = this._hashCodeCache;
  33366. return t1 == null ? this._hashCodeCache = B.JSString_methods.get$hashCode(this._uri) : t1;
  33367. },
  33368. $eq(_, other) {
  33369. if (other == null)
  33370. return false;
  33371. if (this === other)
  33372. return true;
  33373. return type$.Uri._is(other) && this._uri === other.toString$0(0);
  33374. },
  33375. _toNonSimple$0() {
  33376. var _this = this, _null = null,
  33377. t1 = _this.get$scheme(),
  33378. t2 = _this.get$userInfo(),
  33379. t3 = _this._hostStart > 0 ? _this.get$host() : _null,
  33380. t4 = _this.get$hasPort() ? _this.get$port(_this) : _null,
  33381. t5 = _this._uri,
  33382. t6 = _this._queryStart,
  33383. t7 = B.JSString_methods.substring$2(t5, _this._pathStart, t6),
  33384. t8 = _this._fragmentStart;
  33385. t6 = t6 < t8 ? _this.get$query() : _null;
  33386. return A._Uri$_internal(t1, t2, t3, t4, t7, t6, t8 < t5.length ? _this.get$fragment() : _null);
  33387. },
  33388. toString$0(_) {
  33389. return this._uri;
  33390. },
  33391. $isUri: 1
  33392. };
  33393. A._DataUri.prototype = {};
  33394. A.Expando.prototype = {
  33395. toString$0(_) {
  33396. return "Expando:null";
  33397. }
  33398. };
  33399. A._convertDataTree__convert.prototype = {
  33400. call$1(o) {
  33401. var convertedMap, key, convertedList,
  33402. t1 = this._convertedObjects;
  33403. if (t1.containsKey$1(o))
  33404. return t1.$index(0, o);
  33405. if (type$.Map_dynamic_dynamic._is(o)) {
  33406. convertedMap = {};
  33407. t1.$indexSet(0, o, convertedMap);
  33408. for (t1 = J.get$iterator$ax(o.get$keys(o)); t1.moveNext$0();) {
  33409. key = t1.get$current(t1);
  33410. convertedMap[key] = this.call$1(o.$index(0, key));
  33411. }
  33412. return convertedMap;
  33413. } else if (type$.Iterable_dynamic._is(o)) {
  33414. convertedList = [];
  33415. t1.$indexSet(0, o, convertedList);
  33416. B.JSArray_methods.addAll$1(convertedList, J.map$1$1$ax(o, this, type$.dynamic));
  33417. return convertedList;
  33418. } else
  33419. return o;
  33420. },
  33421. $signature: 288
  33422. };
  33423. A._JSRandom.prototype = {
  33424. nextInt$1(max) {
  33425. if (max <= 0 || max > 4294967296)
  33426. throw A.wrapException(A.RangeError$("max must be in range 0 < max \u2264 2^32, was " + max));
  33427. return Math.random() * max >>> 0;
  33428. },
  33429. nextDouble$0() {
  33430. return Math.random();
  33431. }
  33432. };
  33433. A.ArgParser.prototype = {
  33434. addFlag$6$abbr$defaultsTo$help$hide$negatable($name, abbr, defaultsTo, help, hide, negatable) {
  33435. var _null = null;
  33436. this._addOption$12$aliases$hide$negatable($name, abbr, help, _null, _null, _null, defaultsTo, _null, B.OptionType_nMZ, B.List_empty, hide, negatable);
  33437. },
  33438. addFlag$2$hide($name, hide) {
  33439. return this.addFlag$6$abbr$defaultsTo$help$hide$negatable($name, null, false, null, hide, true);
  33440. },
  33441. addFlag$2$help($name, help) {
  33442. return this.addFlag$6$abbr$defaultsTo$help$hide$negatable($name, null, false, help, false, true);
  33443. },
  33444. addFlag$3$defaultsTo$help($name, defaultsTo, help) {
  33445. return this.addFlag$6$abbr$defaultsTo$help$hide$negatable($name, null, defaultsTo, help, false, true);
  33446. },
  33447. addFlag$3$help$negatable($name, help, negatable) {
  33448. return this.addFlag$6$abbr$defaultsTo$help$hide$negatable($name, null, false, help, false, negatable);
  33449. },
  33450. addFlag$4$abbr$help$negatable($name, abbr, help, negatable) {
  33451. return this.addFlag$6$abbr$defaultsTo$help$hide$negatable($name, abbr, false, help, false, negatable);
  33452. },
  33453. addFlag$3$abbr$help($name, abbr, help) {
  33454. return this.addFlag$6$abbr$defaultsTo$help$hide$negatable($name, abbr, false, help, false, true);
  33455. },
  33456. addOption$7$abbr$allowed$defaultsTo$help$hide$valueHelp($name, abbr, allowed, defaultsTo, help, hide, valueHelp) {
  33457. this._addOption$12$aliases$hide$mandatory($name, abbr, help, valueHelp, allowed, null, defaultsTo, null, B.OptionType_YwU, B.List_empty, hide, false);
  33458. },
  33459. addOption$2$hide($name, hide) {
  33460. return this.addOption$7$abbr$allowed$defaultsTo$help$hide$valueHelp($name, null, null, null, null, hide, null);
  33461. },
  33462. addOption$6$abbr$allowed$defaultsTo$help$valueHelp($name, abbr, allowed, defaultsTo, help, valueHelp) {
  33463. return this.addOption$7$abbr$allowed$defaultsTo$help$hide$valueHelp($name, abbr, allowed, defaultsTo, help, false, valueHelp);
  33464. },
  33465. addOption$4$allowed$defaultsTo$help($name, allowed, defaultsTo, help) {
  33466. return this.addOption$7$abbr$allowed$defaultsTo$help$hide$valueHelp($name, null, allowed, defaultsTo, help, false, null);
  33467. },
  33468. addMultiOption$5$abbr$help$splitCommas$valueHelp($name, abbr, help, splitCommas, valueHelp) {
  33469. var t1 = A._setArrayType([], type$.JSArray_String);
  33470. this._addOption$12$aliases$hide$splitCommas($name, abbr, help, valueHelp, null, null, t1, null, B.OptionType_qyr, B.List_empty, false, false);
  33471. },
  33472. _addOption$14$aliases$hide$mandatory$negatable$splitCommas($name, abbr, help, valueHelp, allowed, allowedHelp, defaultsTo, callback, type, aliases, hide, mandatory, negatable, splitCommas) {
  33473. var existing, t2, option, _i, _this = this, _null = null,
  33474. t1 = A._setArrayType([$name], type$.JSArray_String);
  33475. B.JSArray_methods.addAll$1(t1, aliases);
  33476. if (B.JSArray_methods.any$1(t1, new A.ArgParser__addOption_closure(_this)))
  33477. throw A.wrapException(A.ArgumentError$('Duplicate option or alias "' + $name + '".', _null));
  33478. t1 = abbr != null;
  33479. if (t1) {
  33480. existing = _this.findByAbbreviation$1(abbr);
  33481. if (existing != null)
  33482. throw A.wrapException(A.ArgumentError$('Abbreviation "' + abbr + '" is already used by "' + existing.name + '".', _null));
  33483. }
  33484. t2 = allowed == null ? _null : A.List_List$unmodifiable(allowed, type$.String);
  33485. option = new A.Option($name, abbr, help, valueHelp, t2, _null, defaultsTo, negatable, callback, type, splitCommas == null ? type === B.OptionType_qyr : splitCommas, false, hide);
  33486. if ($name.length === 0)
  33487. A.throwExpression(A.ArgumentError$("Name cannot be empty.", _null));
  33488. else if (B.JSString_methods.startsWith$1($name, "-"))
  33489. A.throwExpression(A.ArgumentError$("Name " + $name + ' cannot start with "-".', _null));
  33490. t2 = $.$get$Option__invalidChars()._nativeRegExp;
  33491. if (t2.test($name))
  33492. A.throwExpression(A.ArgumentError$('Name "' + $name + '" contains invalid characters.', _null));
  33493. if (t1) {
  33494. if (abbr.length !== 1)
  33495. A.throwExpression(A.ArgumentError$("Abbreviation must be null or have length 1.", _null));
  33496. else if (abbr === "-")
  33497. A.throwExpression(A.ArgumentError$('Abbreviation cannot be "-".', _null));
  33498. if (t2.test(abbr))
  33499. A.throwExpression(A.ArgumentError$("Abbreviation is an invalid character.", _null));
  33500. }
  33501. _this._arg_parser$_options.$indexSet(0, $name, option);
  33502. _this._optionsAndSeparators.push(option);
  33503. for (t1 = _this._aliases, _i = 0; false; ++_i)
  33504. t1.$indexSet(0, aliases[_i], $name);
  33505. },
  33506. _addOption$12$aliases$hide$mandatory($name, abbr, help, valueHelp, allowed, allowedHelp, defaultsTo, callback, type, aliases, hide, mandatory) {
  33507. return this._addOption$14$aliases$hide$mandatory$negatable$splitCommas($name, abbr, help, valueHelp, allowed, allowedHelp, defaultsTo, callback, type, aliases, hide, mandatory, false, null);
  33508. },
  33509. _addOption$12$aliases$hide$negatable($name, abbr, help, valueHelp, allowed, allowedHelp, defaultsTo, callback, type, aliases, hide, negatable) {
  33510. return this._addOption$14$aliases$hide$mandatory$negatable$splitCommas($name, abbr, help, valueHelp, allowed, allowedHelp, defaultsTo, callback, type, aliases, hide, false, negatable, null);
  33511. },
  33512. _addOption$12$aliases$hide$splitCommas($name, abbr, help, valueHelp, allowed, allowedHelp, defaultsTo, callback, type, aliases, hide, splitCommas) {
  33513. return this._addOption$14$aliases$hide$mandatory$negatable$splitCommas($name, abbr, help, valueHelp, allowed, allowedHelp, defaultsTo, callback, type, aliases, hide, false, false, splitCommas);
  33514. },
  33515. findByAbbreviation$1(abbr) {
  33516. var t1, t2;
  33517. for (t1 = this.options._map, t1 = t1.get$values(t1), t1 = t1.get$iterator(t1); t1.moveNext$0();) {
  33518. t2 = t1.get$current(t1);
  33519. if (t2.abbr === abbr)
  33520. return t2;
  33521. }
  33522. return null;
  33523. },
  33524. findByNameOrAlias$1($name) {
  33525. var t1 = this._aliases.$index(0, $name);
  33526. if (t1 == null)
  33527. t1 = $name;
  33528. return this.options._map.$index(0, t1);
  33529. }
  33530. };
  33531. A.ArgParser__addOption_closure.prototype = {
  33532. call$1($name) {
  33533. return this.$this.findByNameOrAlias$1($name) != null;
  33534. },
  33535. $signature: 8
  33536. };
  33537. A.ArgParserException.prototype = {};
  33538. A.ArgResults.prototype = {
  33539. $index(_, $name) {
  33540. var t1 = this._parser.options._map;
  33541. if (!t1.containsKey$1($name))
  33542. throw A.wrapException(A.ArgumentError$('Could not find an option named "' + $name + '".', null));
  33543. t1 = t1.$index(0, $name);
  33544. t1.toString;
  33545. return t1.valueOrDefault$1(this._parsed.$index(0, $name));
  33546. },
  33547. wasParsed$1($name) {
  33548. if (!this._parser.options._map.containsKey$1($name))
  33549. throw A.wrapException(A.ArgumentError$('Could not find an option named "' + $name + '".', null));
  33550. return this._parsed.containsKey$1($name);
  33551. }
  33552. };
  33553. A.Option.prototype = {
  33554. valueOrDefault$1(value) {
  33555. var t1;
  33556. if (value != null)
  33557. return value;
  33558. if (this.type === B.OptionType_qyr) {
  33559. t1 = this.defaultsTo;
  33560. return t1 == null ? A._setArrayType([], type$.JSArray_String) : t1;
  33561. }
  33562. return this.defaultsTo;
  33563. }
  33564. };
  33565. A.OptionType.prototype = {};
  33566. A.Parser0.prototype = {
  33567. parse$0() {
  33568. var commandResults, commandName, commandParser, error, t1, t3, t4, t5, t6, t7, t8, command, exception, _this = this,
  33569. t2 = _this._args;
  33570. t2.toList$0(0);
  33571. commandResults = null;
  33572. for (t3 = _this._parser$_rest, t4 = _this._grammar, t5 = t4.commands, t6 = t2.$ti._precomputed1; !t2.get$isEmpty(t2);) {
  33573. t7 = t2._collection$_head;
  33574. if (t7 === t2._collection$_tail)
  33575. A.throwExpression(A.IterableElementError_noElement());
  33576. t7 = t2._collection$_table[t7];
  33577. t8 = t7 == null;
  33578. if ((t8 ? t6._as(t7) : t7) === "--") {
  33579. t2.removeFirst$0();
  33580. break;
  33581. }
  33582. if (t8)
  33583. t7 = t6._as(t7);
  33584. command = t5._map.$index(0, t7);
  33585. if (command != null) {
  33586. if (t3.length !== 0)
  33587. A.throwExpression(A.ArgParserException$("Cannot specify arguments before a command.", null));
  33588. commandName = t2.removeFirst$0();
  33589. t5 = type$.JSArray_String;
  33590. t6 = A._setArrayType([], t5);
  33591. B.JSArray_methods.addAll$1(t6, t3);
  33592. commandParser = new A.Parser0(commandName, _this, command, t2, t6, A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.dynamic));
  33593. try {
  33594. commandResults = commandParser.parse$0();
  33595. } catch (exception) {
  33596. t2 = A.unwrapException(exception);
  33597. if (t2 instanceof A.ArgParserException) {
  33598. error = t2;
  33599. t2 = error.message;
  33600. t1 = A._setArrayType([commandName], t5);
  33601. J.addAll$1$ax(t1, error.commands);
  33602. throw A.wrapException(A.ArgParserException$(t2, t1));
  33603. } else
  33604. throw exception;
  33605. }
  33606. B.JSArray_methods.clear$0(t3);
  33607. break;
  33608. }
  33609. if (_this._parseSoloOption$0())
  33610. continue;
  33611. if (_this._parseAbbreviation$1(_this))
  33612. continue;
  33613. if (_this._parseLongOption$0())
  33614. continue;
  33615. t3.push(t2.removeFirst$0());
  33616. }
  33617. t4.options._map.forEach$1(0, new A.Parser_parse_closure(_this));
  33618. B.JSArray_methods.addAll$1(t3, t2);
  33619. t2.clear$0(0);
  33620. return new A.ArgResults(t4, _this._results, _this._commandName, new A.UnmodifiableListView(t3, type$.UnmodifiableListView_String));
  33621. },
  33622. _readNextArgAsValue$1(option) {
  33623. var t1 = this._args;
  33624. if (t1.get$isEmpty(t1))
  33625. A.throwExpression(A.ArgParserException$('Missing argument for "' + option.name + '".', null));
  33626. this._setOption$3(this._results, option, t1.get$first(t1));
  33627. t1.removeFirst$0();
  33628. },
  33629. _parseSoloOption$0() {
  33630. var opt,
  33631. t1 = this._args;
  33632. if (t1.get$first(t1).length !== 2)
  33633. return false;
  33634. if (!B.JSString_methods.startsWith$1(t1.get$first(t1), "-"))
  33635. return false;
  33636. opt = t1.get$first(t1)[1];
  33637. if (!A._isLetterOrDigit(B.JSString_methods._codeUnitAt$1(opt, 0)))
  33638. return false;
  33639. this._handleSoloOption$1(opt);
  33640. return true;
  33641. },
  33642. _handleSoloOption$1(opt) {
  33643. var t1, _this = this,
  33644. option = _this._grammar.findByAbbreviation$1(opt);
  33645. if (option == null) {
  33646. t1 = _this._parser$_parent;
  33647. if (t1 == null)
  33648. A.throwExpression(A.ArgParserException$('Could not find an option or flag "-' + opt + '".', null));
  33649. t1._handleSoloOption$1(opt);
  33650. return true;
  33651. }
  33652. _this._args.removeFirst$0();
  33653. if (option.type === B.OptionType_nMZ)
  33654. _this._results.$indexSet(0, option.name, true);
  33655. else
  33656. _this._readNextArgAsValue$1(option);
  33657. return true;
  33658. },
  33659. _parseAbbreviation$1(innermostCommand) {
  33660. var t2, index, t3, t4, lettersAndDigits, rest,
  33661. t1 = this._args;
  33662. if (t1.get$first(t1).length < 2)
  33663. return false;
  33664. if (!B.JSString_methods.startsWith$1(t1.get$first(t1), "-"))
  33665. return false;
  33666. t2 = t1.$ti._precomputed1;
  33667. index = 1;
  33668. while (true) {
  33669. t3 = t1._collection$_head;
  33670. if (t3 === t1._collection$_tail)
  33671. A.throwExpression(A.IterableElementError_noElement());
  33672. t3 = t1._collection$_table[t3];
  33673. t4 = t3 == null;
  33674. if (index < (t4 ? t2._as(t3) : t3).length) {
  33675. t3 = B.JSString_methods._codeUnitAt$1(t4 ? t2._as(t3) : t3, index);
  33676. if (!(t3 >= 65 && t3 <= 90))
  33677. if (!(t3 >= 97 && t3 <= 122))
  33678. t3 = t3 >= 48 && t3 <= 57;
  33679. else
  33680. t3 = true;
  33681. else
  33682. t3 = true;
  33683. } else
  33684. t3 = false;
  33685. if (!t3)
  33686. break;
  33687. ++index;
  33688. }
  33689. if (index === 1)
  33690. return false;
  33691. lettersAndDigits = B.JSString_methods.substring$2(t1.get$first(t1), 1, index);
  33692. rest = B.JSString_methods.substring$1(t1.get$first(t1), index);
  33693. if (B.JSString_methods.contains$1(rest, "\n") || B.JSString_methods.contains$1(rest, "\r"))
  33694. return false;
  33695. this._handleAbbreviation$3(lettersAndDigits, rest, innermostCommand);
  33696. return true;
  33697. },
  33698. _handleAbbreviation$3(lettersAndDigits, rest, innermostCommand) {
  33699. var t1, i, i0, _this = this,
  33700. c = B.JSString_methods.substring$2(lettersAndDigits, 0, 1),
  33701. first = _this._grammar.findByAbbreviation$1(c);
  33702. if (first == null) {
  33703. t1 = _this._parser$_parent;
  33704. if (t1 == null)
  33705. A.throwExpression(A.ArgParserException$(string$.Could_ + c + '".', null));
  33706. t1._handleAbbreviation$3(lettersAndDigits, rest, innermostCommand);
  33707. return true;
  33708. } else if (first.type !== B.OptionType_nMZ)
  33709. _this._setOption$3(_this._results, first, B.JSString_methods.substring$1(lettersAndDigits, 1) + rest);
  33710. else {
  33711. t1 = B.JSString_methods.substring$1(lettersAndDigits, 1);
  33712. if (rest !== "")
  33713. A.throwExpression(A.ArgParserException$('Option "-' + c + '" is a flag and cannot handle value "' + t1 + rest + '".', null));
  33714. for (t1 = lettersAndDigits.length, i = 0; i < t1; i = i0) {
  33715. i0 = i + 1;
  33716. innermostCommand._parseShortFlag$1(B.JSString_methods.substring$2(lettersAndDigits, i, i0));
  33717. }
  33718. }
  33719. _this._args.removeFirst$0();
  33720. return true;
  33721. },
  33722. _parseShortFlag$1(c) {
  33723. var t1,
  33724. option = this._grammar.findByAbbreviation$1(c);
  33725. if (option == null) {
  33726. t1 = this._parser$_parent;
  33727. if (t1 == null)
  33728. A.throwExpression(A.ArgParserException$(string$.Could_ + c + '".', null));
  33729. t1._parseShortFlag$1(c);
  33730. return;
  33731. }
  33732. if (option.type !== B.OptionType_nMZ)
  33733. A.throwExpression(A.ArgParserException$('Option "-' + c + '" must be a flag to be in a collapsed "-".', null));
  33734. this._results.$indexSet(0, option.name, true);
  33735. },
  33736. _parseLongOption$0() {
  33737. var index, t2, $name, t3, i, t4, t5, value,
  33738. t1 = this._args;
  33739. if (!B.JSString_methods.startsWith$1(t1.get$first(t1), "--"))
  33740. return false;
  33741. index = B.JSString_methods.indexOf$1(t1.get$first(t1), "=");
  33742. t2 = index === -1;
  33743. $name = t2 ? B.JSString_methods.substring$1(t1.get$first(t1), 2) : B.JSString_methods.substring$2(t1.get$first(t1), 2, index);
  33744. for (t3 = $name.length, i = 0; i !== t3; ++i) {
  33745. t4 = B.JSString_methods._codeUnitAt$1($name, i);
  33746. if (!(t4 >= 65 && t4 <= 90))
  33747. if (!(t4 >= 97 && t4 <= 122))
  33748. t5 = t4 >= 48 && t4 <= 57;
  33749. else
  33750. t5 = true;
  33751. else
  33752. t5 = true;
  33753. if (!(t5 || t4 === 45 || t4 === 95))
  33754. return false;
  33755. }
  33756. value = t2 ? null : B.JSString_methods.substring$1(t1.get$first(t1), index + 1);
  33757. if (value != null)
  33758. t1 = B.JSString_methods.contains$1(value, "\n") || B.JSString_methods.contains$1(value, "\r");
  33759. else
  33760. t1 = false;
  33761. if (t1)
  33762. return false;
  33763. this._handleLongOption$2($name, value);
  33764. return true;
  33765. },
  33766. _handleLongOption$2($name, value) {
  33767. var _this = this, _null = null,
  33768. _s32_ = 'Could not find an option named "',
  33769. t1 = _this._grammar,
  33770. option = t1.findByNameOrAlias$1($name);
  33771. if (option != null) {
  33772. _this._args.removeFirst$0();
  33773. if (option.type === B.OptionType_nMZ) {
  33774. if (value != null)
  33775. A.throwExpression(A.ArgParserException$('Flag option "' + $name + '" should not be given a value.', _null));
  33776. _this._results.$indexSet(0, option.name, true);
  33777. } else if (value != null)
  33778. _this._setOption$3(_this._results, option, value);
  33779. else
  33780. _this._readNextArgAsValue$1(option);
  33781. } else if (B.JSString_methods.startsWith$1($name, "no-")) {
  33782. option = t1.findByNameOrAlias$1(B.JSString_methods.substring$1($name, 3));
  33783. if (option == null) {
  33784. t1 = _this._parser$_parent;
  33785. if (t1 == null)
  33786. A.throwExpression(A.ArgParserException$(_s32_ + $name + '".', _null));
  33787. t1._handleLongOption$2($name, value);
  33788. return true;
  33789. }
  33790. _this._args.removeFirst$0();
  33791. if (option.type !== B.OptionType_nMZ)
  33792. A.throwExpression(A.ArgParserException$('Cannot negate non-flag option "' + $name + '".', _null));
  33793. if (!option.negatable)
  33794. A.throwExpression(A.ArgParserException$('Cannot negate option "' + $name + '".', _null));
  33795. _this._results.$indexSet(0, option.name, false);
  33796. } else {
  33797. t1 = _this._parser$_parent;
  33798. if (t1 == null)
  33799. A.throwExpression(A.ArgParserException$(_s32_ + $name + '".', _null));
  33800. t1._handleLongOption$2($name, value);
  33801. return true;
  33802. }
  33803. return true;
  33804. },
  33805. _setOption$3(results, option, value) {
  33806. var list, t1, t2, t3, _i, element;
  33807. if (option.type !== B.OptionType_qyr) {
  33808. this._validateAllowed$2(option, value);
  33809. results.$indexSet(0, option.name, value);
  33810. return;
  33811. }
  33812. list = results.putIfAbsent$2(option.name, new A.Parser__setOption_closure());
  33813. if (option.splitCommas)
  33814. for (t1 = value.split(","), t2 = t1.length, t3 = J.getInterceptor$ax(list), _i = 0; _i < t2; ++_i) {
  33815. element = t1[_i];
  33816. this._validateAllowed$2(option, element);
  33817. t3.add$1(list, element);
  33818. }
  33819. else {
  33820. this._validateAllowed$2(option, value);
  33821. J.add$1$ax(list, value);
  33822. }
  33823. },
  33824. _validateAllowed$2(option, value) {
  33825. var t1 = option.allowed;
  33826. if (t1 == null)
  33827. return;
  33828. if (!B.JSArray_methods.contains$1(t1, value))
  33829. A.throwExpression(A.ArgParserException$('"' + value + '" is not an allowed value for option "' + option.name + '".', null));
  33830. }
  33831. };
  33832. A.Parser_parse_closure.prototype = {
  33833. call$2($name, option) {
  33834. var parsedOption = this.$this._results.$index(0, $name),
  33835. callback = option.callback;
  33836. if (callback == null)
  33837. return;
  33838. callback.call$1(option.valueOrDefault$1(parsedOption));
  33839. },
  33840. $signature: 282
  33841. };
  33842. A.Parser__setOption_closure.prototype = {
  33843. call$0() {
  33844. return A._setArrayType([], type$.JSArray_String);
  33845. },
  33846. $signature: 50
  33847. };
  33848. A._Usage.prototype = {
  33849. get$_columnWidths() {
  33850. var result, _this = this,
  33851. value = _this.___Usage__columnWidths_FI;
  33852. if (value === $) {
  33853. result = _this._calculateColumnWidths$0();
  33854. _this.___Usage__columnWidths_FI !== $ && A.throwUnnamedLateFieldADI();
  33855. _this.___Usage__columnWidths_FI = result;
  33856. value = result;
  33857. }
  33858. return value;
  33859. },
  33860. generate$0() {
  33861. var t1, t2, t3, t4, _i, optionOrSeparator, t5, _this = this;
  33862. for (t1 = _this._usage$_optionsAndSeparators, t2 = t1.length, t3 = type$.Option, t4 = _this._buffer, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
  33863. optionOrSeparator = t1[_i];
  33864. if (typeof optionOrSeparator == "string") {
  33865. t5 = t4._contents;
  33866. t4._contents = (t5.length !== 0 ? t4._contents = t5 + "\n\n" : t5) + optionOrSeparator;
  33867. _this._newlinesNeeded = 1;
  33868. continue;
  33869. }
  33870. t3._as(optionOrSeparator);
  33871. if (optionOrSeparator.hide)
  33872. continue;
  33873. _this._writeOption$1(optionOrSeparator);
  33874. }
  33875. t1 = t4._contents;
  33876. return t1.charCodeAt(0) == 0 ? t1 : t1;
  33877. },
  33878. _writeOption$1(option) {
  33879. var allowedNames, t2, t3, t4, _i, $name, t5, _this = this,
  33880. t1 = option.abbr;
  33881. _this._write$2(0, t1 == null ? "" : "-" + t1 + ", ");
  33882. t1 = _this._longOption$1(option);
  33883. _this._write$2(1, t1);
  33884. t1 = option.help;
  33885. if (t1 != null)
  33886. _this._write$2(2, t1);
  33887. t1 = option.allowedHelp;
  33888. if (t1 != null) {
  33889. allowedNames = J.toList$0$ax(t1.get$keys(t1));
  33890. B.JSArray_methods.sort$0(allowedNames);
  33891. _this._newline$0();
  33892. for (t2 = allowedNames.length, t3 = option.defaultsTo, t4 = type$.List_dynamic._is(t3), _i = 0; _i < allowedNames.length; allowedNames.length === t2 || (0, A.throwConcurrentModificationError)(allowedNames), ++_i) {
  33893. $name = allowedNames[_i];
  33894. t5 = (t4 ? B.JSArray_methods.contains$1(t3, $name) : t3 === $name) ? " (default)" : "";
  33895. _this._write$2(1, " [" + $name + "]" + t5);
  33896. t5 = t1.$index(0, $name);
  33897. t5.toString;
  33898. _this._write$2(2, t5);
  33899. }
  33900. _this._newline$0();
  33901. } else if (option.allowed != null)
  33902. _this._write$2(2, _this._buildAllowedList$1(option));
  33903. else {
  33904. t1 = option.type;
  33905. if (t1 === B.OptionType_nMZ) {
  33906. if (option.defaultsTo === true)
  33907. _this._write$2(2, "(defaults to on)");
  33908. } else if (t1 === B.OptionType_qyr) {
  33909. t1 = option.defaultsTo;
  33910. if (t1 != null && J.get$isNotEmpty$asx(t1)) {
  33911. type$.List_dynamic._as(t1);
  33912. _this._write$2(2, "(defaults to " + new A.MappedListIterable(t1, new A._Usage__writeOption_closure(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$1(0, ", ") + ")");
  33913. }
  33914. } else {
  33915. t1 = option.defaultsTo;
  33916. if (t1 != null)
  33917. _this._write$2(2, '(defaults to "' + A.S(t1) + '")');
  33918. }
  33919. }
  33920. },
  33921. _longOption$1(option) {
  33922. var t1 = option.name,
  33923. result = option.negatable ? "--[no-]" + t1 : "--" + t1;
  33924. t1 = option.valueHelp;
  33925. return t1 != null ? result + ("=<" + t1 + ">") : result;
  33926. },
  33927. _calculateColumnWidths$0() {
  33928. var t1, t2, t3, abbr, title, _i, option, t4, t5, t6, t7, t8;
  33929. for (t1 = this._usage$_optionsAndSeparators, t2 = t1.length, t3 = type$.List_dynamic, abbr = 0, title = 0, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
  33930. option = t1[_i];
  33931. if (!(option instanceof A.Option))
  33932. continue;
  33933. if (option.hide)
  33934. continue;
  33935. t4 = option.abbr;
  33936. abbr = Math.max(abbr, (t4 == null ? "" : "-" + t4 + ", ").length);
  33937. t4 = this._longOption$1(option);
  33938. title = Math.max(title, t4.length);
  33939. t4 = option.allowedHelp;
  33940. if (t4 != null)
  33941. for (t4 = J.get$iterator$ax(t4.get$keys(t4)), t5 = option.defaultsTo, t6 = t3._is(t5); t4.moveNext$0();) {
  33942. t7 = t4.get$current(t4);
  33943. t8 = (t6 ? B.JSArray_methods.contains$1(t5, t7) : t5 === t7) ? " (default)" : "";
  33944. title = Math.max(title, (" [" + t7 + "]" + t8).length);
  33945. }
  33946. }
  33947. return A._setArrayType([abbr, title + 4], type$.JSArray_int);
  33948. },
  33949. _newline$0() {
  33950. ++this._newlinesNeeded;
  33951. this._currentColumn = 0;
  33952. },
  33953. _write$2(column, text) {
  33954. var t1, _i,
  33955. lines = A._setArrayType(text.split("\n"), type$.JSArray_String);
  33956. this.get$_columnWidths();
  33957. while (true) {
  33958. if (!(lines.length !== 0 && J.trim$0$s(B.JSArray_methods.get$first(lines)) === ""))
  33959. break;
  33960. B.JSArray_methods.removeAt$1(lines, 0);
  33961. }
  33962. while (true) {
  33963. if (!(lines.length !== 0 && J.trim$0$s(B.JSArray_methods.get$last(lines)) === ""))
  33964. break;
  33965. lines.pop();
  33966. }
  33967. for (t1 = lines.length, _i = 0; _i < lines.length; lines.length === t1 || (0, A.throwConcurrentModificationError)(lines), ++_i)
  33968. this._writeLine$2(column, lines[_i]);
  33969. },
  33970. _writeLine$2(column, text) {
  33971. var t1, t2, _this = this;
  33972. for (t1 = _this._buffer; t2 = _this._newlinesNeeded, t2 > 0;) {
  33973. t1._contents += "\n";
  33974. _this._newlinesNeeded = t2 - 1;
  33975. }
  33976. for (; t2 = _this._currentColumn, t2 !== column;) {
  33977. if (t2 < 2)
  33978. t1._contents += B.JSString_methods.$mul(" ", _this.get$_columnWidths()[_this._currentColumn]);
  33979. else
  33980. t1._contents += "\n";
  33981. _this._currentColumn = (_this._currentColumn + 1) % 3;
  33982. }
  33983. _this.get$_columnWidths();
  33984. if (column < 2)
  33985. t1._contents += B.JSString_methods.padRight$1(text, _this.get$_columnWidths()[column]);
  33986. else
  33987. t1._contents += text;
  33988. _this._currentColumn = (_this._currentColumn + 1) % 3;
  33989. if (column === 2)
  33990. ++_this._newlinesNeeded;
  33991. },
  33992. _buildAllowedList$1(option) {
  33993. var t2, t3, first, _i, allowed,
  33994. t1 = option.defaultsTo,
  33995. isDefault = type$.List_dynamic._is(t1) ? B.JSArray_methods.get$contains(t1) : new A._Usage__buildAllowedList_closure(option);
  33996. t1 = "" + "[";
  33997. for (t2 = option.allowed, t3 = t2.length, first = true, _i = 0; _i < t3; ++_i, first = false) {
  33998. allowed = t2[_i];
  33999. if (!first)
  34000. t1 += ", ";
  34001. t1 += A.S(allowed);
  34002. if (isDefault.call$1(allowed))
  34003. t1 += " (default)";
  34004. }
  34005. t1 += "]";
  34006. return t1.charCodeAt(0) == 0 ? t1 : t1;
  34007. }
  34008. };
  34009. A._Usage__writeOption_closure.prototype = {
  34010. call$1(value) {
  34011. return '"' + A.S(value) + '"';
  34012. },
  34013. $signature: 100
  34014. };
  34015. A._Usage__buildAllowedList_closure.prototype = {
  34016. call$1(value) {
  34017. return value === this.option.defaultsTo;
  34018. },
  34019. $signature: 115
  34020. };
  34021. A.ErrorResult.prototype = {
  34022. complete$1(completer) {
  34023. completer.completeError$2(this.error, this.stackTrace);
  34024. },
  34025. get$hashCode(_) {
  34026. return (J.get$hashCode$(this.error) ^ A.Primitives_objectHashCode(this.stackTrace) ^ 492929599) >>> 0;
  34027. },
  34028. $eq(_, other) {
  34029. if (other == null)
  34030. return false;
  34031. return other instanceof A.ErrorResult && J.$eq$(this.error, other.error) && this.stackTrace === other.stackTrace;
  34032. },
  34033. $isResult: 1
  34034. };
  34035. A.ValueResult.prototype = {
  34036. complete$1(completer) {
  34037. completer.complete$1(this.value);
  34038. },
  34039. get$hashCode(_) {
  34040. return (J.get$hashCode$(this.value) ^ 842997089) >>> 0;
  34041. },
  34042. $eq(_, other) {
  34043. if (other == null)
  34044. return false;
  34045. return other instanceof A.ValueResult && J.$eq$(this.value, other.value);
  34046. },
  34047. $isResult: 1
  34048. };
  34049. A.StreamCompleter.prototype = {
  34050. setSourceStream$1(sourceStream) {
  34051. var t1 = this._stream_completer$_stream;
  34052. if (t1._sourceStream != null)
  34053. throw A.wrapException(A.StateError$("Source stream already set"));
  34054. t1._sourceStream = sourceStream;
  34055. if (t1._stream_completer$_controller != null)
  34056. t1._linkStreamToController$0();
  34057. },
  34058. setError$2(error, stackTrace) {
  34059. var t1 = this.$ti._precomputed1;
  34060. this.setSourceStream$1(A.Stream_Stream$fromFuture(A.Future_Future$error(error, stackTrace, t1), t1));
  34061. },
  34062. setError$1(error) {
  34063. return this.setError$2(error, null);
  34064. }
  34065. };
  34066. A._CompleterStream.prototype = {
  34067. listen$4$cancelOnError$onDone$onError(_, onData, cancelOnError, onDone, onError) {
  34068. var sourceStream, t1, _this = this, _null = null;
  34069. if (_this._stream_completer$_controller == null) {
  34070. sourceStream = _this._sourceStream;
  34071. if (sourceStream != null && !sourceStream.get$isBroadcast())
  34072. return sourceStream.listen$4$cancelOnError$onDone$onError(0, onData, cancelOnError, onDone, onError);
  34073. if (_this._stream_completer$_controller == null)
  34074. _this._stream_completer$_controller = A.StreamController_StreamController(_null, _null, _null, _null, true, _this.$ti._precomputed1);
  34075. if (_this._sourceStream != null)
  34076. _this._linkStreamToController$0();
  34077. }
  34078. t1 = _this._stream_completer$_controller;
  34079. t1.toString;
  34080. return new A._ControllerStream(t1, A._instanceType(t1)._eval$1("_ControllerStream<1>")).listen$4$cancelOnError$onDone$onError(0, onData, cancelOnError, onDone, onError);
  34081. },
  34082. listen$1($receiver, onData) {
  34083. return this.listen$4$cancelOnError$onDone$onError($receiver, onData, null, null, null);
  34084. },
  34085. listen$3$onDone$onError($receiver, onData, onDone, onError) {
  34086. return this.listen$4$cancelOnError$onDone$onError($receiver, onData, null, onDone, onError);
  34087. },
  34088. _linkStreamToController$0() {
  34089. var t2,
  34090. t1 = this._stream_completer$_controller;
  34091. t1.toString;
  34092. t2 = this._sourceStream;
  34093. t2.toString;
  34094. t1.addStream$2$cancelOnError(t2, false).whenComplete$1(t1.get$close(t1));
  34095. }
  34096. };
  34097. A.StreamGroup.prototype = {
  34098. add$1(_, stream) {
  34099. var t1, _this = this;
  34100. if (_this._closed)
  34101. throw A.wrapException(A.StateError$("Can't add a Stream to a closed StreamGroup."));
  34102. t1 = _this._stream_group$_state;
  34103. if (t1 === B._StreamGroupState_dormant)
  34104. _this._subscriptions.putIfAbsent$2(stream, new A.StreamGroup_add_closure());
  34105. else if (t1 === B._StreamGroupState_canceled)
  34106. return stream.listen$1(0, null).cancel$0();
  34107. else
  34108. _this._subscriptions.putIfAbsent$2(stream, new A.StreamGroup_add_closure0(_this, stream));
  34109. return null;
  34110. },
  34111. remove$1(_, stream) {
  34112. var t1 = this._subscriptions,
  34113. subscription = t1.remove$1(0, stream),
  34114. future = subscription == null ? null : subscription.cancel$0();
  34115. if (t1.__js_helper$_length === 0)
  34116. if (this._closed) {
  34117. t1 = this.__StreamGroup__controller_A;
  34118. t1 === $ && A.throwUnnamedLateFieldNI();
  34119. A.scheduleMicrotask(t1.get$close(t1));
  34120. }
  34121. return future;
  34122. },
  34123. _onListen$0() {
  34124. var stream, t1, t2, t3, _i, entry, exception, onError, _this = this;
  34125. _this._stream_group$_state = B._StreamGroupState_listening;
  34126. for (t1 = _this._subscriptions, t2 = A.List_List$of(t1.get$entries(t1), true, _this.$ti._eval$1("MapEntry<Stream<1>,StreamSubscription<1>?>")), t3 = t2.length, _i = 0; _i < t3; ++_i) {
  34127. entry = t2[_i];
  34128. if (entry.value != null)
  34129. continue;
  34130. stream = entry.key;
  34131. try {
  34132. t1.$indexSet(0, stream, _this._listenToStream$1(stream));
  34133. } catch (exception) {
  34134. t1 = _this._onCancel$0();
  34135. if (t1 != null) {
  34136. onError = new A.StreamGroup__onListen_closure();
  34137. t2 = t1.$ti;
  34138. t3 = $.Zone__current;
  34139. if (t3 !== B.C__RootZone)
  34140. onError = A._registerErrorHandler(onError, t3);
  34141. t1._addListener$1(new A._FutureListener(new A._Future(t3, t2), 2, null, onError, t2._eval$1("@<1>")._bind$1(t2._precomputed1)._eval$1("_FutureListener<1,2>")));
  34142. }
  34143. throw exception;
  34144. }
  34145. }
  34146. },
  34147. _onPause$0() {
  34148. var t1, t2, t3;
  34149. this._stream_group$_state = B._StreamGroupState_paused;
  34150. for (t1 = this._subscriptions, t1 = t1.get$values(t1), t1 = new A.MappedIterator(J.get$iterator$ax(t1.__internal$_iterable), t1._f), t2 = A._instanceType(t1)._rest[1]; t1.moveNext$0();) {
  34151. t3 = t1.__internal$_current;
  34152. (t3 == null ? t2._as(t3) : t3).pause$0(0);
  34153. }
  34154. },
  34155. _onResume$0() {
  34156. var t1, t2, t3;
  34157. this._stream_group$_state = B._StreamGroupState_listening;
  34158. for (t1 = this._subscriptions, t1 = t1.get$values(t1), t1 = new A.MappedIterator(J.get$iterator$ax(t1.__internal$_iterable), t1._f), t2 = A._instanceType(t1)._rest[1]; t1.moveNext$0();) {
  34159. t3 = t1.__internal$_current;
  34160. (t3 == null ? t2._as(t3) : t3).resume$0(0);
  34161. }
  34162. },
  34163. _onCancel$0() {
  34164. var t1, t2, futures;
  34165. this._stream_group$_state = B._StreamGroupState_canceled;
  34166. t1 = this._subscriptions;
  34167. t2 = A.IterableNullableExtension_whereNotNull(t1.get$entries(t1).map$1$1(0, new A.StreamGroup__onCancel_closure(this), type$.nullable_Future_void), type$.Future_void);
  34168. futures = A.List_List$of(t2, true, t2.$ti._eval$1("Iterable.E"));
  34169. t1.clear$0(0);
  34170. return futures.length === 0 ? null : A.Future_wait(futures, type$.void);
  34171. },
  34172. _listenToStream$1(stream) {
  34173. var subscription,
  34174. t1 = this.__StreamGroup__controller_A;
  34175. t1 === $ && A.throwUnnamedLateFieldNI();
  34176. subscription = stream.listen$3$onDone$onError(0, t1.get$add(t1), new A.StreamGroup__listenToStream_closure(this, stream), t1.get$addError());
  34177. if (this._stream_group$_state === B._StreamGroupState_paused)
  34178. subscription.pause$0(0);
  34179. return subscription;
  34180. }
  34181. };
  34182. A.StreamGroup_add_closure.prototype = {
  34183. call$0() {
  34184. return null;
  34185. },
  34186. $signature: 1
  34187. };
  34188. A.StreamGroup_add_closure0.prototype = {
  34189. call$0() {
  34190. return this.$this._listenToStream$1(this.stream);
  34191. },
  34192. $signature() {
  34193. return this.$this.$ti._eval$1("StreamSubscription<1>()");
  34194. }
  34195. };
  34196. A.StreamGroup__onListen_closure.prototype = {
  34197. call$1(_) {
  34198. },
  34199. $signature: 66
  34200. };
  34201. A.StreamGroup__onCancel_closure.prototype = {
  34202. call$1(entry) {
  34203. var t1, exception,
  34204. subscription = entry.value;
  34205. try {
  34206. if (subscription != null) {
  34207. t1 = subscription.cancel$0();
  34208. return t1;
  34209. }
  34210. t1 = J.listen$1$z(entry.key, null).cancel$0();
  34211. return t1;
  34212. } catch (exception) {
  34213. return null;
  34214. }
  34215. },
  34216. $signature() {
  34217. return this.$this.$ti._eval$1("Future<~>?(MapEntry<Stream<1>,StreamSubscription<1>?>)");
  34218. }
  34219. };
  34220. A.StreamGroup__listenToStream_closure.prototype = {
  34221. call$0() {
  34222. return this.$this.remove$1(0, this.stream);
  34223. },
  34224. $signature: 0
  34225. };
  34226. A._StreamGroupState.prototype = {
  34227. toString$0(_) {
  34228. return this.name;
  34229. }
  34230. };
  34231. A.StreamQueue.prototype = {
  34232. _updateRequests$0() {
  34233. var t1, t2, t3, t4, _this = this;
  34234. for (t1 = _this._requestQueue, t2 = _this._eventQueue, t3 = t1.$ti._precomputed1; !t1.get$isEmpty(t1);) {
  34235. t4 = t1._collection$_head;
  34236. if (t4 === t1._collection$_tail)
  34237. A.throwExpression(A.IterableElementError_noElement());
  34238. t4 = t1._collection$_table[t4];
  34239. if (t4 == null)
  34240. t4 = t3._as(t4);
  34241. if (t4.update$2(t2, _this._isDone))
  34242. t1.removeFirst$0();
  34243. else
  34244. return;
  34245. }
  34246. if (!_this._isDone)
  34247. _this._stream_queue$_subscription.pause$0(0);
  34248. },
  34249. _ensureListening$0() {
  34250. var t1, _this = this;
  34251. if (_this._isDone)
  34252. return;
  34253. t1 = _this._stream_queue$_subscription;
  34254. if (t1 == null)
  34255. _this._stream_queue$_subscription = _this._stream_queue$_source.listen$3$onDone$onError(0, new A.StreamQueue__ensureListening_closure(_this), new A.StreamQueue__ensureListening_closure0(_this), new A.StreamQueue__ensureListening_closure1(_this));
  34256. else
  34257. t1.resume$0(0);
  34258. },
  34259. _addResult$1(result) {
  34260. ++this._eventsReceived;
  34261. this._eventQueue._queue_list$_add$1(result);
  34262. this._updateRequests$0();
  34263. },
  34264. _addRequest$1(request) {
  34265. var _this = this,
  34266. t1 = _this._requestQueue;
  34267. if (t1._collection$_head === t1._collection$_tail) {
  34268. if (request.update$2(_this._eventQueue, _this._isDone))
  34269. return;
  34270. _this._ensureListening$0();
  34271. }
  34272. t1._add$1(request);
  34273. }
  34274. };
  34275. A.StreamQueue__ensureListening_closure.prototype = {
  34276. call$1(data) {
  34277. var t1 = this.$this;
  34278. t1._addResult$1(new A.ValueResult(data, t1.$ti._eval$1("ValueResult<1>")));
  34279. },
  34280. $signature() {
  34281. return this.$this.$ti._eval$1("~(1)");
  34282. }
  34283. };
  34284. A.StreamQueue__ensureListening_closure1.prototype = {
  34285. call$2(error, stackTrace) {
  34286. this.$this._addResult$1(new A.ErrorResult(error, stackTrace));
  34287. },
  34288. $signature: 64
  34289. };
  34290. A.StreamQueue__ensureListening_closure0.prototype = {
  34291. call$0() {
  34292. var t1 = this.$this;
  34293. t1._stream_queue$_subscription = null;
  34294. t1._isDone = true;
  34295. t1._updateRequests$0();
  34296. },
  34297. $signature: 0
  34298. };
  34299. A._NextRequest.prototype = {
  34300. update$2(events, isDone) {
  34301. if (!events.get$isEmpty(events)) {
  34302. events.removeFirst$0().complete$1(this._completer);
  34303. return true;
  34304. }
  34305. if (isDone) {
  34306. this._completer.completeError$2(new A.StateError("No elements"), A.StackTrace_current());
  34307. return true;
  34308. }
  34309. return false;
  34310. },
  34311. $is_EventRequest: 1
  34312. };
  34313. A.Repl.prototype = {};
  34314. A.alwaysValid_closure.prototype = {
  34315. call$1(text) {
  34316. return true;
  34317. },
  34318. $signature: 8
  34319. };
  34320. A.ReplAdapter.prototype = {
  34321. runAsync$0() {
  34322. var rl, runController, _this = this, t1 = {},
  34323. t2 = J.get$isTTY$x(self.process.stdin),
  34324. output = (t2 == null ? false : t2) ? self.process.stdout : null;
  34325. t2 = _this.repl.prompt;
  34326. rl = J.createInterface$1$x($.$get$readline(), {input: self.process.stdin, output: output, prompt: t2});
  34327. _this.rl = rl;
  34328. t1.statement = "";
  34329. t1.prompt = t2;
  34330. runController = A._Cell$();
  34331. runController._value = A.StreamController_StreamController(_this.get$exit(_this), new A.ReplAdapter_runAsync_closure(t1, _this, rl, runController), null, null, false, type$.String);
  34332. return runController._readLocal$0().get$stream();
  34333. },
  34334. exit$0(_) {
  34335. var t1 = this.rl;
  34336. if (t1 != null)
  34337. J.close$0$x(t1);
  34338. this.rl = null;
  34339. }
  34340. };
  34341. A.ReplAdapter_runAsync_closure.prototype = {
  34342. call$0() {
  34343. var $async$goto = 0,
  34344. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  34345. $async$handler = 1, $async$currentError, $async$self = this, lineController, lineQueue, line, error, stackTrace, t1, t2, t3, t4, $prompt, prompt0, t5, t6, t7, t8, t9, line0, toZone, statement, exception, $async$exception;
  34346. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  34347. if ($async$errorCode === 1) {
  34348. $async$currentError = $async$result;
  34349. $async$goto = $async$handler;
  34350. }
  34351. while (true)
  34352. switch ($async$goto) {
  34353. case 0:
  34354. // Function start
  34355. $async$handler = 3;
  34356. lineController = A.StreamController_StreamController(null, null, null, null, false, type$.String);
  34357. t1 = lineController;
  34358. t2 = A.QueueList$(null, type$.Result_String);
  34359. t3 = A.ListQueue$(type$._EventRequest_dynamic);
  34360. lineQueue = new A.StreamQueue(new A._ControllerStream(t1, A.instanceType(t1)._eval$1("_ControllerStream<1>")), t2, t3, type$.StreamQueue_String);
  34361. t1 = $async$self.rl;
  34362. t2 = J.getInterceptor$x(t1);
  34363. t2.on$2(t1, "line", A.allowInterop(new A.ReplAdapter_runAsync__closure(lineController)));
  34364. t3 = $async$self._box_0, t4 = $async$self.$this.repl, $prompt = t4.continuation, prompt0 = t4.prompt, t5 = $async$self.runController, t6 = t5.__late_helper$_name;
  34365. case 6:
  34366. // for condition
  34367. // trivial condition
  34368. t7 = J.get$isTTY$x(self.process.stdin);
  34369. if (t7 == null ? false : t7)
  34370. J.write$1$x(self.process.stdout, t3.prompt);
  34371. t7 = lineQueue;
  34372. t8 = A.instanceType(t7);
  34373. t9 = new A._Future($.Zone__current, t8._eval$1("_Future<1>"));
  34374. t7._addRequest$1(new A._NextRequest(new A._AsyncCompleter(t9, t8._eval$1("_AsyncCompleter<1>")), t8._eval$1("_NextRequest<1>")));
  34375. $async$goto = 8;
  34376. return A._asyncAwait(t9, $async$call$0);
  34377. case 8:
  34378. // returning from await.
  34379. line = $async$result;
  34380. t7 = J.get$isTTY$x(self.process.stdin);
  34381. if (!(t7 == null ? false : t7)) {
  34382. line0 = t3.prompt + A.S(line);
  34383. toZone = $.printToZone;
  34384. if (toZone == null)
  34385. A.printString(line0);
  34386. else
  34387. toZone.call$1(line0);
  34388. }
  34389. statement = B.JSString_methods.$add(t3.statement, line);
  34390. t3.statement = statement;
  34391. if (t4.validator.call$1(statement)) {
  34392. t7 = t5._value;
  34393. if (t7 === t5)
  34394. A.throwExpression(A.LateError$localNI(t6));
  34395. J.add$1$ax(t7, t3.statement);
  34396. t3.statement = "";
  34397. t3.prompt = prompt0;
  34398. t2.setPrompt$1(t1, prompt0);
  34399. } else {
  34400. t3.statement += "\n";
  34401. t3.prompt = $prompt;
  34402. t2.setPrompt$1(t1, $prompt);
  34403. }
  34404. // goto for condition
  34405. $async$goto = 6;
  34406. break;
  34407. case 7:
  34408. // after for
  34409. $async$handler = 1;
  34410. // goto after finally
  34411. $async$goto = 5;
  34412. break;
  34413. case 3:
  34414. // catch
  34415. $async$handler = 2;
  34416. $async$exception = $async$currentError;
  34417. error = A.unwrapException($async$exception);
  34418. stackTrace = A.getTraceFromException($async$exception);
  34419. t1 = $async$self.runController;
  34420. t1._readLocal$0().addError$2(error, stackTrace);
  34421. $async$goto = 9;
  34422. return A._asyncAwait($async$self.$this.exit$0(0), $async$call$0);
  34423. case 9:
  34424. // returning from await.
  34425. J.close$0$x(t1._readLocal$0());
  34426. // goto after finally
  34427. $async$goto = 5;
  34428. break;
  34429. case 2:
  34430. // uncaught
  34431. // goto rethrow
  34432. $async$goto = 1;
  34433. break;
  34434. case 5:
  34435. // after finally
  34436. // implicit return
  34437. return A._asyncReturn(null, $async$completer);
  34438. case 1:
  34439. // rethrow
  34440. return A._asyncRethrow($async$currentError, $async$completer);
  34441. }
  34442. });
  34443. return A._asyncStartSync($async$call$0, $async$completer);
  34444. },
  34445. $signature: 38
  34446. };
  34447. A.ReplAdapter_runAsync__closure.prototype = {
  34448. call$1(value) {
  34449. return this.lineController.add$1(0, A._asString(value));
  34450. },
  34451. $signature: 111
  34452. };
  34453. A.Stdin.prototype = {};
  34454. A.Stdout.prototype = {};
  34455. A.ReadlineModule.prototype = {};
  34456. A.ReadlineOptions.prototype = {};
  34457. A.ReadlineInterface.prototype = {};
  34458. A.EmptyUnmodifiableSet.prototype = {
  34459. get$iterator(_) {
  34460. return B.C_EmptyIterator;
  34461. },
  34462. get$length(_) {
  34463. return 0;
  34464. },
  34465. contains$1(_, element) {
  34466. return false;
  34467. },
  34468. toSet$0(_) {
  34469. return A.LinkedHashSet_LinkedHashSet$_empty(this.$ti._precomputed1);
  34470. },
  34471. $isEfficientLengthIterable: 1,
  34472. $isSet: 1
  34473. };
  34474. A._EmptyUnmodifiableSet_IterableBase_UnmodifiableSetMixin.prototype = {};
  34475. A.DefaultEquality.prototype = {};
  34476. A.IterableEquality.prototype = {
  34477. equals$2(_, elements1, elements2) {
  34478. var it1, it2, hasNext;
  34479. if (elements1 === elements2)
  34480. return true;
  34481. it1 = J.get$iterator$ax(elements1);
  34482. it2 = J.get$iterator$ax(elements2);
  34483. for (; true;) {
  34484. hasNext = it1.moveNext$0();
  34485. if (hasNext !== it2.moveNext$0())
  34486. return false;
  34487. if (!hasNext)
  34488. return true;
  34489. if (!J.$eq$(it1.get$current(it1), it2.get$current(it2)))
  34490. return false;
  34491. }
  34492. }
  34493. };
  34494. A.ListEquality.prototype = {
  34495. equals$2(_, list1, list2) {
  34496. var t1, $length, t2, i;
  34497. if (list1 == null ? list2 == null : list1 === list2)
  34498. return true;
  34499. if (list1 == null || list2 == null)
  34500. return false;
  34501. t1 = J.getInterceptor$asx(list1);
  34502. $length = t1.get$length(list1);
  34503. t2 = J.getInterceptor$asx(list2);
  34504. if ($length !== t2.get$length(list2))
  34505. return false;
  34506. for (i = 0; i < $length; ++i)
  34507. if (!J.$eq$(t1.$index(list1, i), t2.$index(list2, i)))
  34508. return false;
  34509. return true;
  34510. },
  34511. hash$1(list) {
  34512. var hash, i;
  34513. for (hash = 0, i = 0; i < list.length; ++i) {
  34514. hash = hash + J.get$hashCode$(list[i]) & 2147483647;
  34515. hash = hash + (hash << 10 >>> 0) & 2147483647;
  34516. hash ^= hash >>> 6;
  34517. }
  34518. hash = hash + (hash << 3 >>> 0) & 2147483647;
  34519. hash ^= hash >>> 11;
  34520. return hash + (hash << 15 >>> 0) & 2147483647;
  34521. }
  34522. };
  34523. A._MapEntry.prototype = {
  34524. get$hashCode(_) {
  34525. return 3 * J.get$hashCode$(this.key) + 7 * J.get$hashCode$(this.value) & 2147483647;
  34526. },
  34527. $eq(_, other) {
  34528. if (other == null)
  34529. return false;
  34530. return other instanceof A._MapEntry && J.$eq$(this.key, other.key) && J.$eq$(this.value, other.value);
  34531. }
  34532. };
  34533. A.MapEquality.prototype = {
  34534. equals$2(_, map1, map2) {
  34535. var equalElementCounts, t1, key, entry, count;
  34536. if (map1 === map2)
  34537. return true;
  34538. if (map1.get$length(map1) !== map2.get$length(map2))
  34539. return false;
  34540. equalElementCounts = A.HashMap_HashMap(type$._MapEntry, type$.int);
  34541. for (t1 = J.get$iterator$ax(map1.get$keys(map1)); t1.moveNext$0();) {
  34542. key = t1.get$current(t1);
  34543. entry = new A._MapEntry(this, key, map1.$index(0, key));
  34544. count = equalElementCounts.$index(0, entry);
  34545. equalElementCounts.$indexSet(0, entry, (count == null ? 0 : count) + 1);
  34546. }
  34547. for (t1 = J.get$iterator$ax(map2.get$keys(map2)); t1.moveNext$0();) {
  34548. key = t1.get$current(t1);
  34549. entry = new A._MapEntry(this, key, map2.$index(0, key));
  34550. count = equalElementCounts.$index(0, entry);
  34551. if (count == null || count === 0)
  34552. return false;
  34553. equalElementCounts.$indexSet(0, entry, count - 1);
  34554. }
  34555. return true;
  34556. },
  34557. hash$1(map) {
  34558. var t1, t2, hash, key, keyHash, t3;
  34559. for (t1 = J.get$iterator$ax(map.get$keys(map)), t2 = A._instanceType(this)._rest[1], hash = 0; t1.moveNext$0();) {
  34560. key = t1.get$current(t1);
  34561. keyHash = J.get$hashCode$(key);
  34562. t3 = map.$index(0, key);
  34563. hash = hash + 3 * keyHash + 7 * J.get$hashCode$(t3 == null ? t2._as(t3) : t3) & 2147483647;
  34564. }
  34565. hash = hash + (hash << 3 >>> 0) & 2147483647;
  34566. hash ^= hash >>> 11;
  34567. return hash + (hash << 15 >>> 0) & 2147483647;
  34568. }
  34569. };
  34570. A.QueueList.prototype = {
  34571. add$1(_, element) {
  34572. this._queue_list$_add$1(element);
  34573. },
  34574. addAll$1(_, iterable) {
  34575. var addCount, $length, t1, endSpace, t2, preSpace, _this = this;
  34576. if (type$.List_dynamic._is(iterable)) {
  34577. addCount = J.get$length$asx(iterable);
  34578. $length = _this.get$length(_this);
  34579. t1 = $length + addCount;
  34580. if (t1 >= J.get$length$asx(_this._table)) {
  34581. _this._preGrow$1(t1);
  34582. J.setRange$4$ax(_this._table, $length, t1, iterable, 0);
  34583. _this.set$_tail(_this.get$_tail() + addCount);
  34584. } else {
  34585. endSpace = J.get$length$asx(_this._table) - _this.get$_tail();
  34586. t1 = _this._table;
  34587. t2 = J.getInterceptor$ax(t1);
  34588. if (addCount < endSpace) {
  34589. t2.setRange$4(t1, _this.get$_tail(), _this.get$_tail() + addCount, iterable, 0);
  34590. _this.set$_tail(_this.get$_tail() + addCount);
  34591. } else {
  34592. preSpace = addCount - endSpace;
  34593. t2.setRange$4(t1, _this.get$_tail(), _this.get$_tail() + endSpace, iterable, 0);
  34594. J.setRange$4$ax(_this._table, 0, preSpace, iterable, endSpace);
  34595. _this.set$_tail(preSpace);
  34596. }
  34597. }
  34598. } else
  34599. for (t1 = J.get$iterator$ax(iterable); t1.moveNext$0();)
  34600. _this._queue_list$_add$1(t1.get$current(t1));
  34601. },
  34602. cast$1$0(_, $T) {
  34603. return new A._CastQueueList(this, J.cast$1$0$ax(this._table, $T), -1, -1, A._instanceType(this)._eval$1("@<QueueList.E>")._bind$1($T)._eval$1("_CastQueueList<1,2>"));
  34604. },
  34605. toString$0(_) {
  34606. return A.IterableBase_iterableToFullString(this, "{", "}");
  34607. },
  34608. addFirst$1(element) {
  34609. var _this = this;
  34610. _this.set$_head((_this.get$_head() - 1 & J.get$length$asx(_this._table) - 1) >>> 0);
  34611. J.$indexSet$ax(_this._table, _this.get$_head(), element);
  34612. if (_this.get$_head() === _this.get$_tail())
  34613. _this._grow$0();
  34614. },
  34615. removeFirst$0() {
  34616. var result, _this = this;
  34617. if (_this.get$_head() === _this.get$_tail())
  34618. throw A.wrapException(A.StateError$("No element"));
  34619. result = J.$index$asx(_this._table, _this.get$_head());
  34620. if (result == null)
  34621. result = A._instanceType(_this)._eval$1("QueueList.E")._as(result);
  34622. J.$indexSet$ax(_this._table, _this.get$_head(), null);
  34623. _this.set$_head((_this.get$_head() + 1 & J.get$length$asx(_this._table) - 1) >>> 0);
  34624. return result;
  34625. },
  34626. get$length(_) {
  34627. return (this.get$_tail() - this.get$_head() & J.get$length$asx(this._table) - 1) >>> 0;
  34628. },
  34629. set$length(_, value) {
  34630. var delta, newTail, t1, t2, _this = this;
  34631. if (value < 0)
  34632. throw A.wrapException(A.RangeError$("Length " + value + " may not be negative."));
  34633. if (value > _this.get$length(_this) && !A._instanceType(_this)._eval$1("QueueList.E")._is(null))
  34634. throw A.wrapException(A.UnsupportedError$("The length can only be increased when the element type is nullable, but the current element type is `" + A.createRuntimeType(A._instanceType(_this)._eval$1("QueueList.E")).toString$0(0) + "`."));
  34635. delta = value - _this.get$length(_this);
  34636. if (delta >= 0) {
  34637. if (J.get$length$asx(_this._table) <= value)
  34638. _this._preGrow$1(value);
  34639. _this.set$_tail((_this.get$_tail() + delta & J.get$length$asx(_this._table) - 1) >>> 0);
  34640. return;
  34641. }
  34642. newTail = _this.get$_tail() + delta;
  34643. t1 = _this._table;
  34644. if (newTail >= 0)
  34645. J.fillRange$3$ax(t1, newTail, _this.get$_tail(), null);
  34646. else {
  34647. newTail += J.get$length$asx(t1);
  34648. J.fillRange$3$ax(_this._table, 0, _this.get$_tail(), null);
  34649. t1 = _this._table;
  34650. t2 = J.getInterceptor$asx(t1);
  34651. t2.fillRange$3(t1, newTail, t2.get$length(t1), null);
  34652. }
  34653. _this.set$_tail(newTail);
  34654. },
  34655. $index(_, index) {
  34656. var t1, _this = this;
  34657. if (index < 0 || index >= _this.get$length(_this))
  34658. throw A.wrapException(A.RangeError$("Index " + index + " must be in the range [0.." + _this.get$length(_this) + ")."));
  34659. t1 = J.$index$asx(_this._table, (_this.get$_head() + index & J.get$length$asx(_this._table) - 1) >>> 0);
  34660. return t1 == null ? A._instanceType(_this)._eval$1("QueueList.E")._as(t1) : t1;
  34661. },
  34662. $indexSet(_, index, value) {
  34663. var _this = this;
  34664. if (index < 0 || index >= _this.get$length(_this))
  34665. throw A.wrapException(A.RangeError$("Index " + index + " must be in the range [0.." + _this.get$length(_this) + ")."));
  34666. J.$indexSet$ax(_this._table, (_this.get$_head() + index & J.get$length$asx(_this._table) - 1) >>> 0, value);
  34667. },
  34668. _queue_list$_add$1(element) {
  34669. var _this = this;
  34670. J.$indexSet$ax(_this._table, _this.get$_tail(), element);
  34671. _this.set$_tail((_this.get$_tail() + 1 & J.get$length$asx(_this._table) - 1) >>> 0);
  34672. if (_this.get$_head() === _this.get$_tail())
  34673. _this._grow$0();
  34674. },
  34675. _grow$0() {
  34676. var _this = this,
  34677. newTable = A.List_List$filled(J.get$length$asx(_this._table) * 2, null, false, A._instanceType(_this)._eval$1("QueueList.E?")),
  34678. split = J.get$length$asx(_this._table) - _this.get$_head();
  34679. B.JSArray_methods.setRange$4(newTable, 0, split, _this._table, _this.get$_head());
  34680. B.JSArray_methods.setRange$4(newTable, split, split + _this.get$_head(), _this._table, 0);
  34681. _this.set$_head(0);
  34682. _this.set$_tail(J.get$length$asx(_this._table));
  34683. _this._table = newTable;
  34684. },
  34685. _writeToList$1(target) {
  34686. var $length, firstPartSize, _this = this;
  34687. if (_this.get$_head() <= _this.get$_tail()) {
  34688. $length = _this.get$_tail() - _this.get$_head();
  34689. B.JSArray_methods.setRange$4(target, 0, $length, _this._table, _this.get$_head());
  34690. return $length;
  34691. } else {
  34692. firstPartSize = J.get$length$asx(_this._table) - _this.get$_head();
  34693. B.JSArray_methods.setRange$4(target, 0, firstPartSize, _this._table, _this.get$_head());
  34694. B.JSArray_methods.setRange$4(target, firstPartSize, firstPartSize + _this.get$_tail(), _this._table, 0);
  34695. return _this.get$_tail() + firstPartSize;
  34696. }
  34697. },
  34698. _preGrow$1(newElementCount) {
  34699. var _this = this,
  34700. newTable = A.List_List$filled(A.QueueList__nextPowerOf2(newElementCount + B.JSInt_methods._shrOtherPositive$1(newElementCount, 1)), null, false, A._instanceType(_this)._eval$1("QueueList.E?"));
  34701. _this.set$_tail(_this._writeToList$1(newTable));
  34702. _this._table = newTable;
  34703. _this.set$_head(0);
  34704. },
  34705. $isEfficientLengthIterable: 1,
  34706. $isQueue: 1,
  34707. $isIterable: 1,
  34708. $isList: 1,
  34709. get$_head() {
  34710. return this._head;
  34711. },
  34712. get$_tail() {
  34713. return this._tail;
  34714. },
  34715. set$_head(val) {
  34716. return this._head = val;
  34717. },
  34718. set$_tail(val) {
  34719. return this._tail = val;
  34720. }
  34721. };
  34722. A._CastQueueList.prototype = {
  34723. get$_head() {
  34724. return this._queue_list$_delegate.get$_head();
  34725. },
  34726. set$_head(value) {
  34727. this._queue_list$_delegate.set$_head(value);
  34728. },
  34729. get$_tail() {
  34730. return this._queue_list$_delegate.get$_tail();
  34731. },
  34732. set$_tail(value) {
  34733. this._queue_list$_delegate.set$_tail(value);
  34734. }
  34735. };
  34736. A._QueueList_Object_ListMixin.prototype = {};
  34737. A.UnmodifiableSetView.prototype = {};
  34738. A.UnmodifiableSetMixin.prototype = {
  34739. add$1(_, value) {
  34740. return A.UnmodifiableSetMixin__throw();
  34741. },
  34742. addAll$1(_, elements) {
  34743. return A.UnmodifiableSetMixin__throw();
  34744. }
  34745. };
  34746. A._UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin.prototype = {};
  34747. A._DelegatingIterableBase.prototype = {
  34748. contains$1(_, element) {
  34749. return J.contains$1$asx(this.get$_base(), element);
  34750. },
  34751. elementAt$1(_, index) {
  34752. return J.elementAt$1$ax(this.get$_base(), index);
  34753. },
  34754. get$first(_) {
  34755. return J.get$first$ax(this.get$_base());
  34756. },
  34757. get$isEmpty(_) {
  34758. return J.get$isEmpty$asx(this.get$_base());
  34759. },
  34760. get$isNotEmpty(_) {
  34761. return J.get$isNotEmpty$asx(this.get$_base());
  34762. },
  34763. get$iterator(_) {
  34764. return J.get$iterator$ax(this.get$_base());
  34765. },
  34766. join$1(_, separator) {
  34767. return J.join$1$ax(this.get$_base(), separator);
  34768. },
  34769. join$0($receiver) {
  34770. return this.join$1($receiver, "");
  34771. },
  34772. get$last(_) {
  34773. return J.get$last$ax(this.get$_base());
  34774. },
  34775. get$length(_) {
  34776. return J.get$length$asx(this.get$_base());
  34777. },
  34778. map$1$1(_, f, $T) {
  34779. return J.map$1$1$ax(this.get$_base(), f, $T);
  34780. },
  34781. get$single(_) {
  34782. return J.get$single$ax(this.get$_base());
  34783. },
  34784. skip$1(_, n) {
  34785. return J.skip$1$ax(this.get$_base(), n);
  34786. },
  34787. take$1(_, n) {
  34788. return J.take$1$ax(this.get$_base(), n);
  34789. },
  34790. toList$1$growable(_, growable) {
  34791. return J.toList$1$growable$ax(this.get$_base(), true);
  34792. },
  34793. toList$0($receiver) {
  34794. return this.toList$1$growable($receiver, true);
  34795. },
  34796. toSet$0(_) {
  34797. return J.toSet$0$ax(this.get$_base());
  34798. },
  34799. where$1(_, test) {
  34800. return J.where$1$ax(this.get$_base(), test);
  34801. },
  34802. toString$0(_) {
  34803. return J.toString$0$(this.get$_base());
  34804. },
  34805. $isIterable: 1
  34806. };
  34807. A.DelegatingSet.prototype = {
  34808. add$1(_, value) {
  34809. return this._base.add$1(0, value);
  34810. },
  34811. addAll$1(_, elements) {
  34812. this._base.addAll$1(0, elements);
  34813. },
  34814. toSet$0(_) {
  34815. return new A.DelegatingSet(this._base.toSet$0(0), A._instanceType(this)._eval$1("DelegatingSet<1>"));
  34816. },
  34817. $isEfficientLengthIterable: 1,
  34818. $isSet: 1,
  34819. get$_base() {
  34820. return this._base;
  34821. }
  34822. };
  34823. A.MapKeySet.prototype = {
  34824. get$_base() {
  34825. var t1 = this._baseMap;
  34826. return t1.get$keys(t1);
  34827. },
  34828. contains$1(_, element) {
  34829. return this._baseMap.containsKey$1(element);
  34830. },
  34831. get$isEmpty(_) {
  34832. var t1 = this._baseMap;
  34833. return t1.get$isEmpty(t1);
  34834. },
  34835. get$isNotEmpty(_) {
  34836. var t1 = this._baseMap;
  34837. return t1.get$isNotEmpty(t1);
  34838. },
  34839. get$length(_) {
  34840. var t1 = this._baseMap;
  34841. return t1.get$length(t1);
  34842. },
  34843. toString$0(_) {
  34844. return A.IterableBase_iterableToFullString(this, "{", "}");
  34845. },
  34846. difference$1(other) {
  34847. return J.where$1$ax(this.get$_base(), new A.MapKeySet_difference_closure(this, other)).toSet$0(0);
  34848. },
  34849. $isEfficientLengthIterable: 1,
  34850. $isSet: 1
  34851. };
  34852. A.MapKeySet_difference_closure.prototype = {
  34853. call$1(element) {
  34854. return !this.other._source.contains$1(0, element);
  34855. },
  34856. $signature() {
  34857. return this.$this.$ti._eval$1("bool(1)");
  34858. }
  34859. };
  34860. A._MapKeySet__DelegatingIterableBase_UnmodifiableSetMixin.prototype = {};
  34861. A.BufferModule.prototype = {};
  34862. A.BufferConstants.prototype = {};
  34863. A.Buffer.prototype = {};
  34864. A.ConsoleModule.prototype = {};
  34865. A.Console.prototype = {};
  34866. A.EventEmitter.prototype = {};
  34867. A.FS.prototype = {};
  34868. A.FSConstants.prototype = {};
  34869. A.FSWatcher.prototype = {};
  34870. A.ReadStream.prototype = {};
  34871. A.ReadStreamOptions.prototype = {};
  34872. A.WriteStream.prototype = {};
  34873. A.WriteStreamOptions.prototype = {};
  34874. A.FileOptions.prototype = {};
  34875. A.StatOptions.prototype = {};
  34876. A.MkdirOptions.prototype = {};
  34877. A.RmdirOptions.prototype = {};
  34878. A.WatchOptions.prototype = {};
  34879. A.WatchFileOptions.prototype = {};
  34880. A.Stats.prototype = {};
  34881. A.Promise.prototype = {};
  34882. A.Date.prototype = {};
  34883. A.JsError.prototype = {};
  34884. A.Atomics.prototype = {};
  34885. A.Modules.prototype = {};
  34886. A.Module1.prototype = {};
  34887. A.Net.prototype = {};
  34888. A.Socket.prototype = {};
  34889. A.NetAddress.prototype = {};
  34890. A.NetServer.prototype = {};
  34891. A.NodeJsError.prototype = {};
  34892. A.JsAssertionError.prototype = {};
  34893. A.JsRangeError.prototype = {};
  34894. A.JsReferenceError.prototype = {};
  34895. A.JsSyntaxError.prototype = {};
  34896. A.JsTypeError.prototype = {};
  34897. A.JsSystemError.prototype = {};
  34898. A.Process.prototype = {};
  34899. A.CPUUsage.prototype = {};
  34900. A.Release.prototype = {};
  34901. A.StreamModule.prototype = {};
  34902. A.Readable.prototype = {};
  34903. A.Writable.prototype = {};
  34904. A.Duplex.prototype = {};
  34905. A.Transform.prototype = {};
  34906. A.WritableOptions.prototype = {};
  34907. A.ReadableOptions.prototype = {};
  34908. A.Immediate.prototype = {};
  34909. A.Timeout.prototype = {};
  34910. A.TTY.prototype = {};
  34911. A.TTYReadStream.prototype = {};
  34912. A.TTYWriteStream.prototype = {};
  34913. A.Util.prototype = {};
  34914. A.promiseToFuture_closure.prototype = {
  34915. call$1(value) {
  34916. this.completer.complete$1(value);
  34917. },
  34918. $signature: 66
  34919. };
  34920. A.promiseToFuture_closure0.prototype = {
  34921. call$1(error) {
  34922. this.completer.completeError$1(error);
  34923. },
  34924. $signature: 66
  34925. };
  34926. A.futureToPromise_closure.prototype = {
  34927. call$2(resolve, reject) {
  34928. this.future.then$1$2$onError(0, new A.futureToPromise__closure(resolve, this.T), reject, type$.dynamic);
  34929. },
  34930. $signature: 290
  34931. };
  34932. A.futureToPromise__closure.prototype = {
  34933. call$1(result) {
  34934. return this.resolve.call$1(result);
  34935. },
  34936. $signature() {
  34937. return this.T._eval$1("@(0)");
  34938. }
  34939. };
  34940. A.Context.prototype = {
  34941. absolute$15(part1, part2, part3, part4, part5, part6, part7, part8, part9, part10, part11, part12, part13, part14, part15) {
  34942. var t1;
  34943. A._validateArgList("absolute", A._setArrayType([part1, part2, part3, part4, part5, part6, part7, part8, part9, part10, part11, part12, part13, part14, part15], type$.JSArray_nullable_String));
  34944. if (part2 == null) {
  34945. t1 = this.style;
  34946. t1 = t1.rootLength$1(part1) > 0 && !t1.isRootRelative$1(part1);
  34947. } else
  34948. t1 = false;
  34949. if (t1)
  34950. return part1;
  34951. t1 = this._context$_current;
  34952. return this.join$16(0, t1 == null ? A.current() : t1, part1, part2, part3, part4, part5, part6, part7, part8, part9, part10, part11, part12, part13, part14, part15);
  34953. },
  34954. absolute$1(part1) {
  34955. return this.absolute$15(part1, null, null, null, null, null, null, null, null, null, null, null, null, null, null);
  34956. },
  34957. dirname$1(path) {
  34958. var t1, t2,
  34959. parsed = A.ParsedPath_ParsedPath$parse(path, this.style);
  34960. parsed.removeTrailingSeparators$0();
  34961. t1 = parsed.parts;
  34962. t2 = t1.length;
  34963. if (t2 === 0) {
  34964. t1 = parsed.root;
  34965. return t1 == null ? "." : t1;
  34966. }
  34967. if (t2 === 1) {
  34968. t1 = parsed.root;
  34969. return t1 == null ? "." : t1;
  34970. }
  34971. B.JSArray_methods.removeLast$0(t1);
  34972. parsed.separators.pop();
  34973. parsed.removeTrailingSeparators$0();
  34974. return parsed.toString$0(0);
  34975. },
  34976. join$16(_, part1, part2, part3, part4, part5, part6, part7, part8, part9, part10, part11, part12, part13, part14, part15, part16) {
  34977. var parts = A._setArrayType([part1, part2, part3, part4, part5, part6, part7, part8, part9, part10, part11, part12, part13, part14, part15, part16], type$.JSArray_nullable_String);
  34978. A._validateArgList("join", parts);
  34979. return this.joinAll$1(new A.WhereTypeIterable(parts, type$.WhereTypeIterable_String));
  34980. },
  34981. join$2($receiver, part1, part2) {
  34982. return this.join$16($receiver, part1, part2, null, null, null, null, null, null, null, null, null, null, null, null, null, null);
  34983. },
  34984. joinAll$1(parts) {
  34985. var t1, t2, t3, needsSeparator, isAbsoluteAndNotRootRelative, t4, t5, parsed, path;
  34986. for (t1 = parts.get$iterator(parts), t2 = new A.WhereIterator(t1, new A.Context_joinAll_closure()), t3 = this.style, needsSeparator = false, isAbsoluteAndNotRootRelative = false, t4 = ""; t2.moveNext$0();) {
  34987. t5 = t1.get$current(t1);
  34988. if (t3.isRootRelative$1(t5) && isAbsoluteAndNotRootRelative) {
  34989. parsed = A.ParsedPath_ParsedPath$parse(t5, t3);
  34990. path = t4.charCodeAt(0) == 0 ? t4 : t4;
  34991. t4 = B.JSString_methods.substring$2(path, 0, t3.rootLength$2$withDrive(path, true));
  34992. parsed.root = t4;
  34993. if (t3.needsSeparator$1(t4))
  34994. parsed.separators[0] = t3.get$separator(t3);
  34995. t4 = "" + parsed.toString$0(0);
  34996. } else if (t3.rootLength$1(t5) > 0) {
  34997. isAbsoluteAndNotRootRelative = !t3.isRootRelative$1(t5);
  34998. t4 = "" + t5;
  34999. } else {
  35000. if (!(t5.length !== 0 && t3.containsSeparator$1(t5[0])))
  35001. if (needsSeparator)
  35002. t4 += t3.get$separator(t3);
  35003. t4 += t5;
  35004. }
  35005. needsSeparator = t3.needsSeparator$1(t5);
  35006. }
  35007. return t4.charCodeAt(0) == 0 ? t4 : t4;
  35008. },
  35009. split$1(_, path) {
  35010. var parsed = A.ParsedPath_ParsedPath$parse(path, this.style),
  35011. t1 = parsed.parts,
  35012. t2 = A._arrayInstanceType(t1)._eval$1("WhereIterable<1>");
  35013. t2 = A.List_List$of(new A.WhereIterable(t1, new A.Context_split_closure(), t2), true, t2._eval$1("Iterable.E"));
  35014. parsed.parts = t2;
  35015. t1 = parsed.root;
  35016. if (t1 != null)
  35017. B.JSArray_methods.insert$2(t2, 0, t1);
  35018. return parsed.parts;
  35019. },
  35020. canonicalize$1(_, path) {
  35021. var t1, parsed;
  35022. path = this.absolute$1(path);
  35023. t1 = this.style;
  35024. if (t1 !== $.$get$Style_windows() && !this._needsNormalization$1(path))
  35025. return path;
  35026. parsed = A.ParsedPath_ParsedPath$parse(path, t1);
  35027. parsed.normalize$1$canonicalize(true);
  35028. return parsed.toString$0(0);
  35029. },
  35030. normalize$1(path) {
  35031. var parsed;
  35032. if (!this._needsNormalization$1(path))
  35033. return path;
  35034. parsed = A.ParsedPath_ParsedPath$parse(path, this.style);
  35035. parsed.normalize$0();
  35036. return parsed.toString$0(0);
  35037. },
  35038. _needsNormalization$1(path) {
  35039. var i, start, previous, t2, t3, previousPrevious, codeUnit, t4,
  35040. t1 = this.style,
  35041. root = t1.rootLength$1(path);
  35042. if (root !== 0) {
  35043. if (t1 === $.$get$Style_windows())
  35044. for (i = 0; i < root; ++i)
  35045. if (B.JSString_methods._codeUnitAt$1(path, i) === 47)
  35046. return true;
  35047. start = root;
  35048. previous = 47;
  35049. } else {
  35050. start = 0;
  35051. previous = null;
  35052. }
  35053. for (t2 = new A.CodeUnits(path).__internal$_string, t3 = t2.length, i = start, previousPrevious = null; i < t3; ++i, previousPrevious = previous, previous = codeUnit) {
  35054. codeUnit = B.JSString_methods.codeUnitAt$1(t2, i);
  35055. if (t1.isSeparator$1(codeUnit)) {
  35056. if (t1 === $.$get$Style_windows() && codeUnit === 47)
  35057. return true;
  35058. if (previous != null && t1.isSeparator$1(previous))
  35059. return true;
  35060. if (previous === 46)
  35061. t4 = previousPrevious == null || previousPrevious === 46 || t1.isSeparator$1(previousPrevious);
  35062. else
  35063. t4 = false;
  35064. if (t4)
  35065. return true;
  35066. }
  35067. }
  35068. if (previous == null)
  35069. return true;
  35070. if (t1.isSeparator$1(previous))
  35071. return true;
  35072. if (previous === 46)
  35073. t1 = previousPrevious == null || t1.isSeparator$1(previousPrevious) || previousPrevious === 46;
  35074. else
  35075. t1 = false;
  35076. if (t1)
  35077. return true;
  35078. return false;
  35079. },
  35080. relative$2$from(path, from) {
  35081. var fromParsed, pathParsed, t2, t3, _this = this,
  35082. _s26_ = 'Unable to find a path to "',
  35083. t1 = from == null;
  35084. if (t1 && _this.style.rootLength$1(path) <= 0)
  35085. return _this.normalize$1(path);
  35086. if (t1) {
  35087. t1 = _this._context$_current;
  35088. from = t1 == null ? A.current() : t1;
  35089. } else
  35090. from = _this.absolute$1(from);
  35091. t1 = _this.style;
  35092. if (t1.rootLength$1(from) <= 0 && t1.rootLength$1(path) > 0)
  35093. return _this.normalize$1(path);
  35094. if (t1.rootLength$1(path) <= 0 || t1.isRootRelative$1(path))
  35095. path = _this.absolute$1(path);
  35096. if (t1.rootLength$1(path) <= 0 && t1.rootLength$1(from) > 0)
  35097. throw A.wrapException(A.PathException$(_s26_ + path + '" from "' + from + '".'));
  35098. fromParsed = A.ParsedPath_ParsedPath$parse(from, t1);
  35099. fromParsed.normalize$0();
  35100. pathParsed = A.ParsedPath_ParsedPath$parse(path, t1);
  35101. pathParsed.normalize$0();
  35102. t2 = fromParsed.parts;
  35103. if (t2.length !== 0 && J.$eq$(t2[0], "."))
  35104. return pathParsed.toString$0(0);
  35105. t2 = fromParsed.root;
  35106. t3 = pathParsed.root;
  35107. if (t2 != t3)
  35108. t2 = t2 == null || t3 == null || !t1.pathsEqual$2(t2, t3);
  35109. else
  35110. t2 = false;
  35111. if (t2)
  35112. return pathParsed.toString$0(0);
  35113. while (true) {
  35114. t2 = fromParsed.parts;
  35115. if (t2.length !== 0) {
  35116. t3 = pathParsed.parts;
  35117. t2 = t3.length !== 0 && t1.pathsEqual$2(t2[0], t3[0]);
  35118. } else
  35119. t2 = false;
  35120. if (!t2)
  35121. break;
  35122. B.JSArray_methods.removeAt$1(fromParsed.parts, 0);
  35123. B.JSArray_methods.removeAt$1(fromParsed.separators, 1);
  35124. B.JSArray_methods.removeAt$1(pathParsed.parts, 0);
  35125. B.JSArray_methods.removeAt$1(pathParsed.separators, 1);
  35126. }
  35127. t2 = fromParsed.parts;
  35128. if (t2.length !== 0 && J.$eq$(t2[0], ".."))
  35129. throw A.wrapException(A.PathException$(_s26_ + path + '" from "' + from + '".'));
  35130. t2 = type$.String;
  35131. B.JSArray_methods.insertAll$2(pathParsed.parts, 0, A.List_List$filled(fromParsed.parts.length, "..", false, t2));
  35132. t3 = pathParsed.separators;
  35133. t3[0] = "";
  35134. B.JSArray_methods.insertAll$2(t3, 1, A.List_List$filled(fromParsed.parts.length, t1.get$separator(t1), false, t2));
  35135. t1 = pathParsed.parts;
  35136. t2 = t1.length;
  35137. if (t2 === 0)
  35138. return ".";
  35139. if (t2 > 1 && J.$eq$(B.JSArray_methods.get$last(t1), ".")) {
  35140. B.JSArray_methods.removeLast$0(pathParsed.parts);
  35141. t1 = pathParsed.separators;
  35142. t1.pop();
  35143. t1.pop();
  35144. t1.push("");
  35145. }
  35146. pathParsed.root = "";
  35147. pathParsed.removeTrailingSeparators$0();
  35148. return pathParsed.toString$0(0);
  35149. },
  35150. relative$1(path) {
  35151. return this.relative$2$from(path, null);
  35152. },
  35153. _isWithinOrEquals$2($parent, child) {
  35154. var relative, t1, parentIsAbsolute, childIsAbsolute, childIsRootRelative, parentIsRootRelative, result, exception, _this = this;
  35155. $parent = $parent;
  35156. child = child;
  35157. t1 = _this.style;
  35158. parentIsAbsolute = t1.rootLength$1($parent) > 0;
  35159. childIsAbsolute = t1.rootLength$1(child) > 0;
  35160. if (parentIsAbsolute && !childIsAbsolute) {
  35161. child = _this.absolute$1(child);
  35162. if (t1.isRootRelative$1($parent))
  35163. $parent = _this.absolute$1($parent);
  35164. } else if (childIsAbsolute && !parentIsAbsolute) {
  35165. $parent = _this.absolute$1($parent);
  35166. if (t1.isRootRelative$1(child))
  35167. child = _this.absolute$1(child);
  35168. } else if (childIsAbsolute && parentIsAbsolute) {
  35169. childIsRootRelative = t1.isRootRelative$1(child);
  35170. parentIsRootRelative = t1.isRootRelative$1($parent);
  35171. if (childIsRootRelative && !parentIsRootRelative)
  35172. child = _this.absolute$1(child);
  35173. else if (parentIsRootRelative && !childIsRootRelative)
  35174. $parent = _this.absolute$1($parent);
  35175. }
  35176. result = _this._isWithinOrEqualsFast$2($parent, child);
  35177. if (result !== B._PathRelation_inconclusive)
  35178. return result;
  35179. relative = null;
  35180. try {
  35181. relative = _this.relative$2$from(child, $parent);
  35182. } catch (exception) {
  35183. if (A.unwrapException(exception) instanceof A.PathException)
  35184. return B._PathRelation_different;
  35185. else
  35186. throw exception;
  35187. }
  35188. if (t1.rootLength$1(relative) > 0)
  35189. return B._PathRelation_different;
  35190. if (J.$eq$(relative, "."))
  35191. return B._PathRelation_equal;
  35192. if (J.$eq$(relative, ".."))
  35193. return B._PathRelation_different;
  35194. return J.get$length$asx(relative) >= 3 && J.startsWith$1$s(relative, "..") && t1.isSeparator$1(J.codeUnitAt$1$s(relative, 2)) ? B._PathRelation_different : B._PathRelation_within;
  35195. },
  35196. _isWithinOrEqualsFast$2($parent, child) {
  35197. var t1, parentRootLength, childRootLength, i, t2, t3, childIndex, parentIndex, lastCodeUnit, lastParentSeparator, parentCodeUnit, childCodeUnit, parentIndex0, direction, _this = this;
  35198. if ($parent === ".")
  35199. $parent = "";
  35200. t1 = _this.style;
  35201. parentRootLength = t1.rootLength$1($parent);
  35202. childRootLength = t1.rootLength$1(child);
  35203. if (parentRootLength !== childRootLength)
  35204. return B._PathRelation_different;
  35205. for (i = 0; i < parentRootLength; ++i)
  35206. if (!t1.codeUnitsEqual$2(B.JSString_methods._codeUnitAt$1($parent, i), B.JSString_methods._codeUnitAt$1(child, i)))
  35207. return B._PathRelation_different;
  35208. t2 = child.length;
  35209. t3 = $parent.length;
  35210. childIndex = childRootLength;
  35211. parentIndex = parentRootLength;
  35212. lastCodeUnit = 47;
  35213. lastParentSeparator = null;
  35214. while (true) {
  35215. if (!(parentIndex < t3 && childIndex < t2))
  35216. break;
  35217. c$0: {
  35218. parentCodeUnit = B.JSString_methods.codeUnitAt$1($parent, parentIndex);
  35219. childCodeUnit = B.JSString_methods.codeUnitAt$1(child, childIndex);
  35220. if (t1.codeUnitsEqual$2(parentCodeUnit, childCodeUnit)) {
  35221. if (t1.isSeparator$1(parentCodeUnit))
  35222. lastParentSeparator = parentIndex;
  35223. ++parentIndex;
  35224. ++childIndex;
  35225. lastCodeUnit = parentCodeUnit;
  35226. break c$0;
  35227. }
  35228. if (t1.isSeparator$1(parentCodeUnit) && t1.isSeparator$1(lastCodeUnit)) {
  35229. parentIndex0 = parentIndex + 1;
  35230. lastParentSeparator = parentIndex;
  35231. parentIndex = parentIndex0;
  35232. break c$0;
  35233. } else if (t1.isSeparator$1(childCodeUnit) && t1.isSeparator$1(lastCodeUnit)) {
  35234. ++childIndex;
  35235. break c$0;
  35236. }
  35237. if (parentCodeUnit === 46 && t1.isSeparator$1(lastCodeUnit)) {
  35238. ++parentIndex;
  35239. if (parentIndex === t3)
  35240. break;
  35241. parentCodeUnit = B.JSString_methods.codeUnitAt$1($parent, parentIndex);
  35242. if (t1.isSeparator$1(parentCodeUnit)) {
  35243. parentIndex0 = parentIndex + 1;
  35244. lastParentSeparator = parentIndex;
  35245. parentIndex = parentIndex0;
  35246. break c$0;
  35247. }
  35248. if (parentCodeUnit === 46) {
  35249. ++parentIndex;
  35250. if (parentIndex === t3 || t1.isSeparator$1(B.JSString_methods.codeUnitAt$1($parent, parentIndex)))
  35251. return B._PathRelation_inconclusive;
  35252. }
  35253. }
  35254. if (childCodeUnit === 46 && t1.isSeparator$1(lastCodeUnit)) {
  35255. ++childIndex;
  35256. if (childIndex === t2)
  35257. break;
  35258. childCodeUnit = B.JSString_methods.codeUnitAt$1(child, childIndex);
  35259. if (t1.isSeparator$1(childCodeUnit)) {
  35260. ++childIndex;
  35261. break c$0;
  35262. }
  35263. if (childCodeUnit === 46) {
  35264. ++childIndex;
  35265. if (childIndex === t2 || t1.isSeparator$1(B.JSString_methods.codeUnitAt$1(child, childIndex)))
  35266. return B._PathRelation_inconclusive;
  35267. }
  35268. }
  35269. if (_this._pathDirection$2(child, childIndex) !== B._PathDirection_988)
  35270. return B._PathRelation_inconclusive;
  35271. if (_this._pathDirection$2($parent, parentIndex) !== B._PathDirection_988)
  35272. return B._PathRelation_inconclusive;
  35273. return B._PathRelation_different;
  35274. }
  35275. }
  35276. if (childIndex === t2) {
  35277. if (parentIndex === t3 || t1.isSeparator$1(B.JSString_methods.codeUnitAt$1($parent, parentIndex)))
  35278. lastParentSeparator = parentIndex;
  35279. else if (lastParentSeparator == null)
  35280. lastParentSeparator = Math.max(0, parentRootLength - 1);
  35281. direction = _this._pathDirection$2($parent, lastParentSeparator);
  35282. if (direction === B._PathDirection_8Gl)
  35283. return B._PathRelation_equal;
  35284. return direction === B._PathDirection_ZGD ? B._PathRelation_inconclusive : B._PathRelation_different;
  35285. }
  35286. direction = _this._pathDirection$2(child, childIndex);
  35287. if (direction === B._PathDirection_8Gl)
  35288. return B._PathRelation_equal;
  35289. if (direction === B._PathDirection_ZGD)
  35290. return B._PathRelation_inconclusive;
  35291. return t1.isSeparator$1(B.JSString_methods.codeUnitAt$1(child, childIndex)) || t1.isSeparator$1(lastCodeUnit) ? B._PathRelation_within : B._PathRelation_different;
  35292. },
  35293. _pathDirection$2(path, index) {
  35294. var t1, t2, i, depth, reachedRoot, i0, t3;
  35295. for (t1 = path.length, t2 = this.style, i = index, depth = 0, reachedRoot = false; i < t1;) {
  35296. while (true) {
  35297. if (!(i < t1 && t2.isSeparator$1(B.JSString_methods.codeUnitAt$1(path, i))))
  35298. break;
  35299. ++i;
  35300. }
  35301. if (i === t1)
  35302. break;
  35303. i0 = i;
  35304. while (true) {
  35305. if (!(i0 < t1 && !t2.isSeparator$1(B.JSString_methods.codeUnitAt$1(path, i0))))
  35306. break;
  35307. ++i0;
  35308. }
  35309. t3 = i0 - i;
  35310. if (!(t3 === 1 && B.JSString_methods.codeUnitAt$1(path, i) === 46))
  35311. if (t3 === 2 && B.JSString_methods.codeUnitAt$1(path, i) === 46 && B.JSString_methods.codeUnitAt$1(path, i + 1) === 46) {
  35312. --depth;
  35313. if (depth < 0)
  35314. break;
  35315. if (depth === 0)
  35316. reachedRoot = true;
  35317. } else
  35318. ++depth;
  35319. if (i0 === t1)
  35320. break;
  35321. i = i0 + 1;
  35322. }
  35323. if (depth < 0)
  35324. return B._PathDirection_ZGD;
  35325. if (depth === 0)
  35326. return B._PathDirection_8Gl;
  35327. if (reachedRoot)
  35328. return B._PathDirection_FIw;
  35329. return B._PathDirection_988;
  35330. },
  35331. hash$1(path) {
  35332. var result, parsed, t1, _this = this;
  35333. path = _this.absolute$1(path);
  35334. result = _this._hashFast$1(path);
  35335. if (result != null)
  35336. return result;
  35337. parsed = A.ParsedPath_ParsedPath$parse(path, _this.style);
  35338. parsed.normalize$0();
  35339. t1 = _this._hashFast$1(parsed.toString$0(0));
  35340. t1.toString;
  35341. return t1;
  35342. },
  35343. _hashFast$1(path) {
  35344. var t1, t2, hash, beginning, wasSeparator, i, codeUnit, t3, next;
  35345. for (t1 = path.length, t2 = this.style, hash = 4603, beginning = true, wasSeparator = true, i = 0; i < t1; ++i) {
  35346. codeUnit = t2.canonicalizeCodeUnit$1(B.JSString_methods._codeUnitAt$1(path, i));
  35347. if (t2.isSeparator$1(codeUnit)) {
  35348. wasSeparator = true;
  35349. continue;
  35350. }
  35351. if (codeUnit === 46 && wasSeparator) {
  35352. t3 = i + 1;
  35353. if (t3 === t1)
  35354. break;
  35355. next = B.JSString_methods._codeUnitAt$1(path, t3);
  35356. if (t2.isSeparator$1(next))
  35357. continue;
  35358. if (!beginning)
  35359. if (next === 46) {
  35360. t3 = i + 2;
  35361. t3 = t3 === t1 || t2.isSeparator$1(B.JSString_methods._codeUnitAt$1(path, t3));
  35362. } else
  35363. t3 = false;
  35364. else
  35365. t3 = false;
  35366. if (t3)
  35367. return null;
  35368. }
  35369. hash = ((hash & 67108863) * 33 ^ codeUnit) >>> 0;
  35370. beginning = false;
  35371. wasSeparator = false;
  35372. }
  35373. return hash;
  35374. },
  35375. withoutExtension$1(path) {
  35376. var i,
  35377. parsed = A.ParsedPath_ParsedPath$parse(path, this.style);
  35378. for (i = parsed.parts.length - 1; i >= 0; --i)
  35379. if (J.get$length$asx(parsed.parts[i]) !== 0) {
  35380. parsed.parts[i] = parsed._splitExtension$0()[0];
  35381. break;
  35382. }
  35383. return parsed.toString$0(0);
  35384. },
  35385. toUri$1(path) {
  35386. var t2,
  35387. t1 = this.style;
  35388. if (t1.rootLength$1(path) <= 0)
  35389. return t1.relativePathToUri$1(path);
  35390. else {
  35391. t2 = this._context$_current;
  35392. return t1.absolutePathToUri$1(this.join$2(0, t2 == null ? A.current() : t2, path));
  35393. }
  35394. },
  35395. prettyUri$1(uri) {
  35396. var path, rel, _this = this,
  35397. typedUri = A._parseUri(uri);
  35398. if (typedUri.get$scheme() === "file" && _this.style === $.$get$Style_url())
  35399. return typedUri.toString$0(0);
  35400. else if (typedUri.get$scheme() !== "file" && typedUri.get$scheme() !== "" && _this.style !== $.$get$Style_url())
  35401. return typedUri.toString$0(0);
  35402. path = _this.normalize$1(_this.style.pathFromUri$1(A._parseUri(typedUri)));
  35403. rel = _this.relative$1(path);
  35404. return _this.split$1(0, rel).length > _this.split$1(0, path).length ? path : rel;
  35405. }
  35406. };
  35407. A.Context_joinAll_closure.prototype = {
  35408. call$1(part) {
  35409. return part !== "";
  35410. },
  35411. $signature: 8
  35412. };
  35413. A.Context_split_closure.prototype = {
  35414. call$1(part) {
  35415. return part.length !== 0;
  35416. },
  35417. $signature: 8
  35418. };
  35419. A._validateArgList_closure.prototype = {
  35420. call$1(arg) {
  35421. return arg == null ? "null" : '"' + arg + '"';
  35422. },
  35423. $signature: 292
  35424. };
  35425. A._PathDirection.prototype = {
  35426. toString$0(_) {
  35427. return this.name;
  35428. }
  35429. };
  35430. A._PathRelation.prototype = {
  35431. toString$0(_) {
  35432. return this.name;
  35433. }
  35434. };
  35435. A.InternalStyle.prototype = {
  35436. getRoot$1(path) {
  35437. var $length = this.rootLength$1(path);
  35438. if ($length > 0)
  35439. return B.JSString_methods.substring$2(path, 0, $length);
  35440. return this.isRootRelative$1(path) ? path[0] : null;
  35441. },
  35442. relativePathToUri$1(path) {
  35443. var segments, _null = null,
  35444. t1 = path.length;
  35445. if (t1 === 0)
  35446. return A._Uri__Uri(_null, _null, _null, _null);
  35447. segments = A.Context_Context(this).split$1(0, path);
  35448. if (this.isSeparator$1(B.JSString_methods.codeUnitAt$1(path, t1 - 1)))
  35449. B.JSArray_methods.add$1(segments, "");
  35450. return A._Uri__Uri(_null, _null, segments, _null);
  35451. },
  35452. codeUnitsEqual$2(codeUnit1, codeUnit2) {
  35453. return codeUnit1 === codeUnit2;
  35454. },
  35455. pathsEqual$2(path1, path2) {
  35456. return path1 === path2;
  35457. },
  35458. canonicalizeCodeUnit$1(codeUnit) {
  35459. return codeUnit;
  35460. },
  35461. canonicalizePart$1(part) {
  35462. return part;
  35463. }
  35464. };
  35465. A.ParsedPath.prototype = {
  35466. get$basename() {
  35467. var _this = this,
  35468. t1 = type$.String,
  35469. copy = new A.ParsedPath(_this.style, _this.root, _this.isRootRelative, A.List_List$from(_this.parts, true, t1), A.List_List$from(_this.separators, true, t1));
  35470. copy.removeTrailingSeparators$0();
  35471. t1 = copy.parts;
  35472. if (t1.length === 0) {
  35473. t1 = _this.root;
  35474. return t1 == null ? "" : t1;
  35475. }
  35476. return B.JSArray_methods.get$last(t1);
  35477. },
  35478. get$hasTrailingSeparator() {
  35479. var t1 = this.parts;
  35480. if (t1.length !== 0)
  35481. t1 = J.$eq$(B.JSArray_methods.get$last(t1), "") || !J.$eq$(B.JSArray_methods.get$last(this.separators), "");
  35482. else
  35483. t1 = false;
  35484. return t1;
  35485. },
  35486. removeTrailingSeparators$0() {
  35487. var t1, t2, _this = this;
  35488. while (true) {
  35489. t1 = _this.parts;
  35490. if (!(t1.length !== 0 && J.$eq$(B.JSArray_methods.get$last(t1), "")))
  35491. break;
  35492. B.JSArray_methods.removeLast$0(_this.parts);
  35493. _this.separators.pop();
  35494. }
  35495. t1 = _this.separators;
  35496. t2 = t1.length;
  35497. if (t2 !== 0)
  35498. t1[t2 - 1] = "";
  35499. },
  35500. normalize$1$canonicalize(canonicalize) {
  35501. var t1, t2, t3, leadingDoubles, _i, part, t4, _this = this,
  35502. newParts = A._setArrayType([], type$.JSArray_String);
  35503. for (t1 = _this.parts, t2 = t1.length, t3 = _this.style, leadingDoubles = 0, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
  35504. part = t1[_i];
  35505. t4 = J.getInterceptor$(part);
  35506. if (!(t4.$eq(part, ".") || t4.$eq(part, "")))
  35507. if (t4.$eq(part, ".."))
  35508. if (newParts.length !== 0)
  35509. newParts.pop();
  35510. else
  35511. ++leadingDoubles;
  35512. else
  35513. newParts.push(canonicalize ? t3.canonicalizePart$1(part) : part);
  35514. }
  35515. if (_this.root == null)
  35516. B.JSArray_methods.insertAll$2(newParts, 0, A.List_List$filled(leadingDoubles, "..", false, type$.String));
  35517. if (newParts.length === 0 && _this.root == null)
  35518. newParts.push(".");
  35519. _this.parts = newParts;
  35520. _this.separators = A.List_List$filled(newParts.length + 1, t3.get$separator(t3), true, type$.String);
  35521. t1 = _this.root;
  35522. if (t1 == null || newParts.length === 0 || !t3.needsSeparator$1(t1))
  35523. _this.separators[0] = "";
  35524. t1 = _this.root;
  35525. if (t1 != null && t3 === $.$get$Style_windows()) {
  35526. if (canonicalize)
  35527. t1 = _this.root = t1.toLowerCase();
  35528. t1.toString;
  35529. _this.root = A.stringReplaceAllUnchecked(t1, "/", "\\");
  35530. }
  35531. _this.removeTrailingSeparators$0();
  35532. },
  35533. normalize$0() {
  35534. return this.normalize$1$canonicalize(false);
  35535. },
  35536. toString$0(_) {
  35537. var i, _this = this,
  35538. t1 = _this.root;
  35539. t1 = t1 != null ? "" + t1 : "";
  35540. for (i = 0; i < _this.parts.length; ++i)
  35541. t1 = t1 + A.S(_this.separators[i]) + A.S(_this.parts[i]);
  35542. t1 += A.S(B.JSArray_methods.get$last(_this.separators));
  35543. return t1.charCodeAt(0) == 0 ? t1 : t1;
  35544. },
  35545. _kthLastIndexOf$3(path, character, k) {
  35546. var index, count, leftMostIndexedCharacter;
  35547. for (index = path.length - 1, count = 0, leftMostIndexedCharacter = 0; index >= 0; --index)
  35548. if (path[index] === character) {
  35549. ++count;
  35550. if (count === k)
  35551. return index;
  35552. leftMostIndexedCharacter = index;
  35553. }
  35554. return leftMostIndexedCharacter;
  35555. },
  35556. _splitExtension$1(level) {
  35557. var t1, file, lastDot;
  35558. if (level <= 0)
  35559. throw A.wrapException(A.RangeError$value(level, "level", "level's value must be greater than 0"));
  35560. t1 = this.parts;
  35561. t1 = new A.CastList(t1, A._arrayInstanceType(t1)._eval$1("CastList<1,String?>"));
  35562. file = t1.lastWhere$2$orElse(t1, new A.ParsedPath__splitExtension_closure(), new A.ParsedPath__splitExtension_closure0());
  35563. if (file == null)
  35564. return A._setArrayType(["", ""], type$.JSArray_String);
  35565. if (file === "..")
  35566. return A._setArrayType(["..", ""], type$.JSArray_String);
  35567. lastDot = this._kthLastIndexOf$3(file, ".", level);
  35568. if (lastDot <= 0)
  35569. return A._setArrayType([file, ""], type$.JSArray_String);
  35570. return A._setArrayType([B.JSString_methods.substring$2(file, 0, lastDot), B.JSString_methods.substring$1(file, lastDot)], type$.JSArray_String);
  35571. },
  35572. _splitExtension$0() {
  35573. return this._splitExtension$1(1);
  35574. }
  35575. };
  35576. A.ParsedPath__splitExtension_closure.prototype = {
  35577. call$1(p) {
  35578. return p !== "";
  35579. },
  35580. $signature: 209
  35581. };
  35582. A.ParsedPath__splitExtension_closure0.prototype = {
  35583. call$0() {
  35584. return null;
  35585. },
  35586. $signature: 1
  35587. };
  35588. A.PathException.prototype = {
  35589. toString$0(_) {
  35590. return "PathException: " + this.message;
  35591. },
  35592. $isException: 1,
  35593. get$message(receiver) {
  35594. return this.message;
  35595. }
  35596. };
  35597. A.PathMap.prototype = {};
  35598. A.PathMap__create_closure.prototype = {
  35599. call$2(path1, path2) {
  35600. if (path1 == null)
  35601. return path2 == null;
  35602. if (path2 == null)
  35603. return false;
  35604. return this._box_0.context._isWithinOrEquals$2(path1, path2) === B._PathRelation_equal;
  35605. },
  35606. $signature: 309
  35607. };
  35608. A.PathMap__create_closure0.prototype = {
  35609. call$1(path) {
  35610. return path == null ? 0 : this._box_0.context.hash$1(path);
  35611. },
  35612. $signature: 313
  35613. };
  35614. A.PathMap__create_closure1.prototype = {
  35615. call$1(path) {
  35616. return typeof path == "string" || path == null;
  35617. },
  35618. $signature: 115
  35619. };
  35620. A.Style.prototype = {
  35621. toString$0(_) {
  35622. return this.get$name(this);
  35623. }
  35624. };
  35625. A.PosixStyle.prototype = {
  35626. containsSeparator$1(path) {
  35627. return B.JSString_methods.contains$1(path, "/");
  35628. },
  35629. isSeparator$1(codeUnit) {
  35630. return codeUnit === 47;
  35631. },
  35632. needsSeparator$1(path) {
  35633. var t1 = path.length;
  35634. return t1 !== 0 && B.JSString_methods.codeUnitAt$1(path, t1 - 1) !== 47;
  35635. },
  35636. rootLength$2$withDrive(path, withDrive) {
  35637. if (path.length !== 0 && B.JSString_methods._codeUnitAt$1(path, 0) === 47)
  35638. return 1;
  35639. return 0;
  35640. },
  35641. rootLength$1(path) {
  35642. return this.rootLength$2$withDrive(path, false);
  35643. },
  35644. isRootRelative$1(path) {
  35645. return false;
  35646. },
  35647. pathFromUri$1(uri) {
  35648. var t1;
  35649. if (uri.get$scheme() === "" || uri.get$scheme() === "file") {
  35650. t1 = uri.get$path(uri);
  35651. return A._Uri__uriDecode(t1, 0, t1.length, B.C_Utf8Codec, false);
  35652. }
  35653. throw A.wrapException(A.ArgumentError$("Uri " + uri.toString$0(0) + " must have scheme 'file:'.", null));
  35654. },
  35655. absolutePathToUri$1(path) {
  35656. var parsed = A.ParsedPath_ParsedPath$parse(path, this),
  35657. t1 = parsed.parts;
  35658. if (t1.length === 0)
  35659. B.JSArray_methods.addAll$1(t1, A._setArrayType(["", ""], type$.JSArray_String));
  35660. else if (parsed.get$hasTrailingSeparator())
  35661. B.JSArray_methods.add$1(parsed.parts, "");
  35662. return A._Uri__Uri(null, null, parsed.parts, "file");
  35663. },
  35664. get$name() {
  35665. return "posix";
  35666. },
  35667. get$separator() {
  35668. return "/";
  35669. }
  35670. };
  35671. A.UrlStyle.prototype = {
  35672. containsSeparator$1(path) {
  35673. return B.JSString_methods.contains$1(path, "/");
  35674. },
  35675. isSeparator$1(codeUnit) {
  35676. return codeUnit === 47;
  35677. },
  35678. needsSeparator$1(path) {
  35679. var t1 = path.length;
  35680. if (t1 === 0)
  35681. return false;
  35682. if (B.JSString_methods.codeUnitAt$1(path, t1 - 1) !== 47)
  35683. return true;
  35684. return B.JSString_methods.endsWith$1(path, "://") && this.rootLength$1(path) === t1;
  35685. },
  35686. rootLength$2$withDrive(path, withDrive) {
  35687. var i, codeUnit, index, t2,
  35688. t1 = path.length;
  35689. if (t1 === 0)
  35690. return 0;
  35691. if (B.JSString_methods._codeUnitAt$1(path, 0) === 47)
  35692. return 1;
  35693. for (i = 0; i < t1; ++i) {
  35694. codeUnit = B.JSString_methods._codeUnitAt$1(path, i);
  35695. if (codeUnit === 47)
  35696. return 0;
  35697. if (codeUnit === 58) {
  35698. if (i === 0)
  35699. return 0;
  35700. index = B.JSString_methods.indexOf$2(path, "/", B.JSString_methods.startsWith$2(path, "//", i + 1) ? i + 3 : i);
  35701. if (index <= 0)
  35702. return t1;
  35703. if (!withDrive || t1 < index + 3)
  35704. return index;
  35705. if (!B.JSString_methods.startsWith$1(path, "file://"))
  35706. return index;
  35707. if (!A.isDriveLetter(path, index + 1))
  35708. return index;
  35709. t2 = index + 3;
  35710. return t1 === t2 ? t2 : index + 4;
  35711. }
  35712. }
  35713. return 0;
  35714. },
  35715. rootLength$1(path) {
  35716. return this.rootLength$2$withDrive(path, false);
  35717. },
  35718. isRootRelative$1(path) {
  35719. return path.length !== 0 && B.JSString_methods._codeUnitAt$1(path, 0) === 47;
  35720. },
  35721. pathFromUri$1(uri) {
  35722. return uri.toString$0(0);
  35723. },
  35724. relativePathToUri$1(path) {
  35725. return A.Uri_parse(path);
  35726. },
  35727. absolutePathToUri$1(path) {
  35728. return A.Uri_parse(path);
  35729. },
  35730. get$name() {
  35731. return "url";
  35732. },
  35733. get$separator() {
  35734. return "/";
  35735. }
  35736. };
  35737. A.WindowsStyle.prototype = {
  35738. containsSeparator$1(path) {
  35739. return B.JSString_methods.contains$1(path, "/");
  35740. },
  35741. isSeparator$1(codeUnit) {
  35742. return codeUnit === 47 || codeUnit === 92;
  35743. },
  35744. needsSeparator$1(path) {
  35745. var t1 = path.length;
  35746. if (t1 === 0)
  35747. return false;
  35748. t1 = B.JSString_methods.codeUnitAt$1(path, t1 - 1);
  35749. return !(t1 === 47 || t1 === 92);
  35750. },
  35751. rootLength$2$withDrive(path, withDrive) {
  35752. var t2, index,
  35753. t1 = path.length;
  35754. if (t1 === 0)
  35755. return 0;
  35756. t2 = B.JSString_methods._codeUnitAt$1(path, 0);
  35757. if (t2 === 47)
  35758. return 1;
  35759. if (t2 === 92) {
  35760. if (t1 < 2 || B.JSString_methods._codeUnitAt$1(path, 1) !== 92)
  35761. return 1;
  35762. index = B.JSString_methods.indexOf$2(path, "\\", 2);
  35763. if (index > 0) {
  35764. index = B.JSString_methods.indexOf$2(path, "\\", index + 1);
  35765. if (index > 0)
  35766. return index;
  35767. }
  35768. return t1;
  35769. }
  35770. if (t1 < 3)
  35771. return 0;
  35772. if (!A.isAlphabetic(t2))
  35773. return 0;
  35774. if (B.JSString_methods._codeUnitAt$1(path, 1) !== 58)
  35775. return 0;
  35776. t1 = B.JSString_methods._codeUnitAt$1(path, 2);
  35777. if (!(t1 === 47 || t1 === 92))
  35778. return 0;
  35779. return 3;
  35780. },
  35781. rootLength$1(path) {
  35782. return this.rootLength$2$withDrive(path, false);
  35783. },
  35784. isRootRelative$1(path) {
  35785. return this.rootLength$1(path) === 1;
  35786. },
  35787. pathFromUri$1(uri) {
  35788. var path, t1;
  35789. if (uri.get$scheme() !== "" && uri.get$scheme() !== "file")
  35790. throw A.wrapException(A.ArgumentError$("Uri " + uri.toString$0(0) + " must have scheme 'file:'.", null));
  35791. path = uri.get$path(uri);
  35792. if (uri.get$host() === "") {
  35793. if (path.length >= 3 && B.JSString_methods.startsWith$1(path, "/") && A.isDriveLetter(path, 1))
  35794. path = B.JSString_methods.replaceFirst$2(path, "/", "");
  35795. } else
  35796. path = "\\\\" + uri.get$host() + path;
  35797. t1 = A.stringReplaceAllUnchecked(path, "/", "\\");
  35798. return A._Uri__uriDecode(t1, 0, t1.length, B.C_Utf8Codec, false);
  35799. },
  35800. absolutePathToUri$1(path) {
  35801. var rootParts, t2,
  35802. parsed = A.ParsedPath_ParsedPath$parse(path, this),
  35803. t1 = parsed.root;
  35804. t1.toString;
  35805. if (B.JSString_methods.startsWith$1(t1, "\\\\")) {
  35806. rootParts = new A.WhereIterable(A._setArrayType(t1.split("\\"), type$.JSArray_String), new A.WindowsStyle_absolutePathToUri_closure(), type$.WhereIterable_String);
  35807. B.JSArray_methods.insert$2(parsed.parts, 0, rootParts.get$last(rootParts));
  35808. if (parsed.get$hasTrailingSeparator())
  35809. B.JSArray_methods.add$1(parsed.parts, "");
  35810. return A._Uri__Uri(rootParts.get$first(rootParts), null, parsed.parts, "file");
  35811. } else {
  35812. if (parsed.parts.length === 0 || parsed.get$hasTrailingSeparator())
  35813. B.JSArray_methods.add$1(parsed.parts, "");
  35814. t1 = parsed.parts;
  35815. t2 = parsed.root;
  35816. t2.toString;
  35817. t2 = A.stringReplaceAllUnchecked(t2, "/", "");
  35818. B.JSArray_methods.insert$2(t1, 0, A.stringReplaceAllUnchecked(t2, "\\", ""));
  35819. return A._Uri__Uri(null, null, parsed.parts, "file");
  35820. }
  35821. },
  35822. codeUnitsEqual$2(codeUnit1, codeUnit2) {
  35823. var upperCase1;
  35824. if (codeUnit1 === codeUnit2)
  35825. return true;
  35826. if (codeUnit1 === 47)
  35827. return codeUnit2 === 92;
  35828. if (codeUnit1 === 92)
  35829. return codeUnit2 === 47;
  35830. if ((codeUnit1 ^ codeUnit2) !== 32)
  35831. return false;
  35832. upperCase1 = codeUnit1 | 32;
  35833. return upperCase1 >= 97 && upperCase1 <= 122;
  35834. },
  35835. pathsEqual$2(path1, path2) {
  35836. var t1, i;
  35837. if (path1 === path2)
  35838. return true;
  35839. t1 = path1.length;
  35840. if (t1 !== path2.length)
  35841. return false;
  35842. for (i = 0; i < t1; ++i)
  35843. if (!this.codeUnitsEqual$2(B.JSString_methods._codeUnitAt$1(path1, i), B.JSString_methods._codeUnitAt$1(path2, i)))
  35844. return false;
  35845. return true;
  35846. },
  35847. canonicalizeCodeUnit$1(codeUnit) {
  35848. if (codeUnit === 47)
  35849. return 92;
  35850. if (codeUnit < 65)
  35851. return codeUnit;
  35852. if (codeUnit > 90)
  35853. return codeUnit;
  35854. return codeUnit | 32;
  35855. },
  35856. canonicalizePart$1(part) {
  35857. return part.toLowerCase();
  35858. },
  35859. get$name() {
  35860. return "windows";
  35861. },
  35862. get$separator() {
  35863. return "\\";
  35864. }
  35865. };
  35866. A.WindowsStyle_absolutePathToUri_closure.prototype = {
  35867. call$1(part) {
  35868. return part !== "";
  35869. },
  35870. $signature: 8
  35871. };
  35872. A.CssMediaQuery.prototype = {
  35873. merge$1(other) {
  35874. var t1, ourModifier, t2, t3, ourType, t4, theirModifier, t5, t6, theirType, t7, t8, negativeConditions, conditions, type, modifier, fewerConditions, fewerConditions0, moreConditions, _this = this, _null = null, _s3_ = "all";
  35875. if (!_this.conjunction || !other.conjunction)
  35876. return B._SingletonCssMediaQueryMergeResult_unrepresentable;
  35877. t1 = _this.modifier;
  35878. ourModifier = t1 == null ? _null : t1.toLowerCase();
  35879. t2 = _this.type;
  35880. t3 = t2 == null;
  35881. ourType = t3 ? _null : t2.toLowerCase();
  35882. t4 = other.modifier;
  35883. theirModifier = t4 == null ? _null : t4.toLowerCase();
  35884. t5 = other.type;
  35885. t6 = t5 == null;
  35886. theirType = t6 ? _null : t5.toLowerCase();
  35887. t7 = ourType == null;
  35888. if (t7 && theirType == null) {
  35889. t1 = A.List_List$of(_this.conditions, true, type$.String);
  35890. B.JSArray_methods.addAll$1(t1, other.conditions);
  35891. return new A.MediaQuerySuccessfulMergeResult(A.CssMediaQuery$condition(t1, true));
  35892. }
  35893. t8 = ourModifier === "not";
  35894. if (t8 !== (theirModifier === "not")) {
  35895. if (ourType == theirType) {
  35896. negativeConditions = t8 ? _this.conditions : other.conditions;
  35897. if (B.JSArray_methods.every$1(negativeConditions, B.JSArray_methods.get$contains(t8 ? other.conditions : _this.conditions)))
  35898. return B._SingletonCssMediaQueryMergeResult_empty;
  35899. else
  35900. return B._SingletonCssMediaQueryMergeResult_unrepresentable;
  35901. } else if (t3 || A.equalsIgnoreCase(t2, _s3_) || t6 || A.equalsIgnoreCase(t5, _s3_))
  35902. return B._SingletonCssMediaQueryMergeResult_unrepresentable;
  35903. if (t8) {
  35904. conditions = other.conditions;
  35905. type = theirType;
  35906. modifier = theirModifier;
  35907. } else {
  35908. conditions = _this.conditions;
  35909. type = ourType;
  35910. modifier = ourModifier;
  35911. }
  35912. } else if (t8) {
  35913. if (ourType != theirType)
  35914. return B._SingletonCssMediaQueryMergeResult_unrepresentable;
  35915. fewerConditions = _this.conditions;
  35916. fewerConditions0 = other.conditions;
  35917. t3 = fewerConditions.length > fewerConditions0.length;
  35918. moreConditions = t3 ? fewerConditions : fewerConditions0;
  35919. if (t3)
  35920. fewerConditions = fewerConditions0;
  35921. if (!B.JSArray_methods.every$1(fewerConditions, B.JSArray_methods.get$contains(moreConditions)))
  35922. return B._SingletonCssMediaQueryMergeResult_unrepresentable;
  35923. conditions = moreConditions;
  35924. type = ourType;
  35925. modifier = ourModifier;
  35926. } else if (t3 || A.equalsIgnoreCase(t2, _s3_)) {
  35927. type = (t6 || A.equalsIgnoreCase(t5, _s3_)) && t7 ? _null : theirType;
  35928. t3 = A.List_List$of(_this.conditions, true, type$.String);
  35929. B.JSArray_methods.addAll$1(t3, other.conditions);
  35930. conditions = t3;
  35931. modifier = theirModifier;
  35932. } else {
  35933. if (t6 || A.equalsIgnoreCase(t5, _s3_)) {
  35934. t3 = A.List_List$of(_this.conditions, true, type$.String);
  35935. B.JSArray_methods.addAll$1(t3, other.conditions);
  35936. conditions = t3;
  35937. modifier = ourModifier;
  35938. } else {
  35939. if (ourType != theirType)
  35940. return B._SingletonCssMediaQueryMergeResult_empty;
  35941. else {
  35942. modifier = ourModifier == null ? theirModifier : ourModifier;
  35943. t3 = A.List_List$of(_this.conditions, true, type$.String);
  35944. B.JSArray_methods.addAll$1(t3, other.conditions);
  35945. }
  35946. conditions = t3;
  35947. }
  35948. type = ourType;
  35949. }
  35950. t2 = type == ourType ? t2 : t5;
  35951. return new A.MediaQuerySuccessfulMergeResult(A.CssMediaQuery$type(t2, conditions, modifier == ourModifier ? t1 : t4));
  35952. },
  35953. $eq(_, other) {
  35954. if (other == null)
  35955. return false;
  35956. return other instanceof A.CssMediaQuery && other.modifier == this.modifier && other.type == this.type && B.C_ListEquality.equals$2(0, other.conditions, this.conditions);
  35957. },
  35958. get$hashCode(_) {
  35959. return J.get$hashCode$(this.modifier) ^ J.get$hashCode$(this.type) ^ B.C_ListEquality0.hash$1(this.conditions);
  35960. },
  35961. toString$0(_) {
  35962. var t2, _this = this,
  35963. t1 = _this.modifier;
  35964. t1 = t1 != null ? "" + (t1 + " ") : "";
  35965. t2 = _this.type;
  35966. if (t2 != null) {
  35967. t1 += t2;
  35968. if (_this.conditions.length !== 0)
  35969. t1 += " and ";
  35970. }
  35971. t2 = _this.conjunction ? " and " : " or ";
  35972. t2 = t1 + B.JSArray_methods.join$1(_this.conditions, t2);
  35973. return t2.charCodeAt(0) == 0 ? t2 : t2;
  35974. }
  35975. };
  35976. A._SingletonCssMediaQueryMergeResult.prototype = {
  35977. toString$0(_) {
  35978. return this._media_query$_name;
  35979. }
  35980. };
  35981. A.MediaQuerySuccessfulMergeResult.prototype = {
  35982. toString$0(_) {
  35983. return this.query.toString$0(0);
  35984. }
  35985. };
  35986. A.ModifiableCssAtRule.prototype = {
  35987. accept$1$1(visitor) {
  35988. return visitor.visitCssAtRule$1(this);
  35989. },
  35990. accept$1(visitor) {
  35991. return this.accept$1$1(visitor, type$.dynamic);
  35992. },
  35993. copyWithoutChildren$0() {
  35994. var _this = this;
  35995. return A.ModifiableCssAtRule$(_this.name, _this.span, _this.isChildless, _this.value);
  35996. },
  35997. addChild$1(child) {
  35998. this.super$ModifiableCssParentNode$addChild(child);
  35999. },
  36000. $isCssAtRule: 1,
  36001. get$isChildless() {
  36002. return this.isChildless;
  36003. },
  36004. get$span(receiver) {
  36005. return this.span;
  36006. }
  36007. };
  36008. A.ModifiableCssComment.prototype = {
  36009. accept$1$1(visitor) {
  36010. return visitor.visitCssComment$1(this);
  36011. },
  36012. accept$1(visitor) {
  36013. return this.accept$1$1(visitor, type$.dynamic);
  36014. },
  36015. $isCssComment: 1,
  36016. get$span(receiver) {
  36017. return this.span;
  36018. }
  36019. };
  36020. A.ModifiableCssDeclaration.prototype = {
  36021. accept$1$1(visitor) {
  36022. return visitor.visitCssDeclaration$1(this);
  36023. },
  36024. accept$1(visitor) {
  36025. return this.accept$1$1(visitor, type$.dynamic);
  36026. },
  36027. toString$0(_) {
  36028. return this.name.toString$0(0) + ": " + this.value.toString$0(0) + ";";
  36029. },
  36030. get$span(receiver) {
  36031. return this.span;
  36032. }
  36033. };
  36034. A.ModifiableCssImport.prototype = {
  36035. accept$1$1(visitor) {
  36036. return visitor.visitCssImport$1(this);
  36037. },
  36038. accept$1(visitor) {
  36039. return this.accept$1$1(visitor, type$.dynamic);
  36040. },
  36041. $isCssImport: 1,
  36042. get$span(receiver) {
  36043. return this.span;
  36044. }
  36045. };
  36046. A.ModifiableCssKeyframeBlock.prototype = {
  36047. accept$1$1(visitor) {
  36048. return visitor.visitCssKeyframeBlock$1(this);
  36049. },
  36050. accept$1(visitor) {
  36051. return this.accept$1$1(visitor, type$.dynamic);
  36052. },
  36053. copyWithoutChildren$0() {
  36054. return A.ModifiableCssKeyframeBlock$(this.selector, this.span);
  36055. },
  36056. get$span(receiver) {
  36057. return this.span;
  36058. }
  36059. };
  36060. A.ModifiableCssMediaRule.prototype = {
  36061. accept$1$1(visitor) {
  36062. return visitor.visitCssMediaRule$1(this);
  36063. },
  36064. accept$1(visitor) {
  36065. return this.accept$1$1(visitor, type$.dynamic);
  36066. },
  36067. copyWithoutChildren$0() {
  36068. return A.ModifiableCssMediaRule$(this.queries, this.span);
  36069. },
  36070. $isCssMediaRule: 1,
  36071. get$span(receiver) {
  36072. return this.span;
  36073. }
  36074. };
  36075. A.ModifiableCssNode.prototype = {
  36076. get$hasFollowingSibling() {
  36077. var t2,
  36078. t1 = this._parent;
  36079. if (t1 == null)
  36080. t1 = null;
  36081. else {
  36082. t1 = t1.children;
  36083. t2 = this._indexInParent;
  36084. t2.toString;
  36085. t1 = A.SubListIterable$(t1, t2 + 1, null, t1.$ti._eval$1("ListMixin.E")).any$1(0, new A.ModifiableCssNode_hasFollowingSibling_closure());
  36086. }
  36087. return t1 === true;
  36088. },
  36089. get$isGroupEnd() {
  36090. return this.isGroupEnd;
  36091. }
  36092. };
  36093. A.ModifiableCssNode_hasFollowingSibling_closure.prototype = {
  36094. call$1(sibling) {
  36095. return !sibling.accept$1(B._IsInvisibleVisitor_true_false);
  36096. },
  36097. $signature: 129
  36098. };
  36099. A.ModifiableCssParentNode.prototype = {
  36100. get$isChildless() {
  36101. return false;
  36102. },
  36103. addChild$1(child) {
  36104. var t1;
  36105. child._parent = this;
  36106. t1 = this._children;
  36107. child._indexInParent = t1.length;
  36108. t1.push(child);
  36109. },
  36110. $isCssParentNode: 1,
  36111. get$children(receiver) {
  36112. return this.children;
  36113. }
  36114. };
  36115. A.ModifiableCssStyleRule.prototype = {
  36116. accept$1$1(visitor) {
  36117. return visitor.visitCssStyleRule$1(this);
  36118. },
  36119. accept$1(visitor) {
  36120. return this.accept$1$1(visitor, type$.dynamic);
  36121. },
  36122. copyWithoutChildren$0() {
  36123. return A.ModifiableCssStyleRule$(this.selector, this.span, this.originalSelector);
  36124. },
  36125. $isCssStyleRule: 1,
  36126. get$span(receiver) {
  36127. return this.span;
  36128. }
  36129. };
  36130. A.ModifiableCssStylesheet.prototype = {
  36131. accept$1$1(visitor) {
  36132. return visitor.visitCssStylesheet$1(this);
  36133. },
  36134. accept$1(visitor) {
  36135. return this.accept$1$1(visitor, type$.dynamic);
  36136. },
  36137. copyWithoutChildren$0() {
  36138. return A.ModifiableCssStylesheet$(this.span);
  36139. },
  36140. $isCssStylesheet: 1,
  36141. get$span(receiver) {
  36142. return this.span;
  36143. }
  36144. };
  36145. A.ModifiableCssSupportsRule.prototype = {
  36146. accept$1$1(visitor) {
  36147. return visitor.visitCssSupportsRule$1(this);
  36148. },
  36149. accept$1(visitor) {
  36150. return this.accept$1$1(visitor, type$.dynamic);
  36151. },
  36152. copyWithoutChildren$0() {
  36153. return A.ModifiableCssSupportsRule$(this.condition, this.span);
  36154. },
  36155. $isCssSupportsRule: 1,
  36156. get$span(receiver) {
  36157. return this.span;
  36158. }
  36159. };
  36160. A.ModifiableCssValue.prototype = {
  36161. toString$0(_) {
  36162. return A.serializeSelector(this.value, true);
  36163. },
  36164. $isCssValue: 1,
  36165. $isAstNode: 1,
  36166. get$value(receiver) {
  36167. return this.value;
  36168. },
  36169. get$span(receiver) {
  36170. return this.span;
  36171. }
  36172. };
  36173. A.CssNode.prototype = {
  36174. toString$0(_) {
  36175. return A.serialize(this, true, null, true, null, false, null, true).css;
  36176. }
  36177. };
  36178. A.CssParentNode.prototype = {};
  36179. A._IsInvisibleVisitor.prototype = {
  36180. visitCssAtRule$1(rule) {
  36181. return false;
  36182. },
  36183. visitCssComment$1(comment) {
  36184. return this.includeComments && B.JSString_methods._codeUnitAt$1(comment.text, 2) !== 33;
  36185. },
  36186. visitCssStyleRule$1(rule) {
  36187. var t1 = rule.selector.value;
  36188. return (this.includeBogus ? t1.accept$1(B._IsInvisibleVisitor_true) : t1.accept$1(B._IsInvisibleVisitor_false)) || this.super$EveryCssVisitor$visitCssStyleRule(rule);
  36189. }
  36190. };
  36191. A.__IsInvisibleVisitor_Object_EveryCssVisitor.prototype = {};
  36192. A.CssStylesheet.prototype = {
  36193. get$isGroupEnd() {
  36194. return false;
  36195. },
  36196. get$isChildless() {
  36197. return false;
  36198. },
  36199. accept$1$1(visitor) {
  36200. return visitor.visitCssStylesheet$1(this);
  36201. },
  36202. accept$1(visitor) {
  36203. return this.accept$1$1(visitor, type$.dynamic);
  36204. },
  36205. get$children(receiver) {
  36206. return this.children;
  36207. },
  36208. get$span(receiver) {
  36209. return this.span;
  36210. }
  36211. };
  36212. A.CssValue.prototype = {
  36213. toString$0(_) {
  36214. return J.toString$0$(this.value);
  36215. },
  36216. $isAstNode: 1,
  36217. get$value(receiver) {
  36218. return this.value;
  36219. },
  36220. get$span(receiver) {
  36221. return this.span;
  36222. }
  36223. };
  36224. A.AstNode.prototype = {};
  36225. A._FakeAstNode.prototype = {
  36226. get$span(_) {
  36227. return this._callback.call$0();
  36228. },
  36229. $isAstNode: 1
  36230. };
  36231. A.Argument.prototype = {
  36232. toString$0(_) {
  36233. var t1 = this.defaultValue,
  36234. t2 = this.name;
  36235. return t1 == null ? t2 : t2 + ": " + t1.toString$0(0);
  36236. },
  36237. $isAstNode: 1,
  36238. get$span(receiver) {
  36239. return this.span;
  36240. }
  36241. };
  36242. A.ArgumentDeclaration.prototype = {
  36243. get$spanWithName() {
  36244. var t3, t4,
  36245. t1 = this.span,
  36246. t2 = t1.file,
  36247. text = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t2._decodedChars, 0, null), 0, null),
  36248. i = A.FileLocation$_(t2, t1._file$_start).offset - 1;
  36249. while (true) {
  36250. if (i > 0) {
  36251. t3 = B.JSString_methods.codeUnitAt$1(text, i);
  36252. t3 = t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12;
  36253. } else
  36254. t3 = false;
  36255. if (!t3)
  36256. break;
  36257. --i;
  36258. }
  36259. t3 = B.JSString_methods.codeUnitAt$1(text, i);
  36260. if (!(t3 === 95 || A.isAlphabetic0(t3) || t3 >= 128 || A.isDigit(t3) || t3 === 45))
  36261. return t1;
  36262. --i;
  36263. while (true) {
  36264. if (i >= 0) {
  36265. t3 = B.JSString_methods.codeUnitAt$1(text, i);
  36266. if (t3 !== 95) {
  36267. if (!(t3 >= 97 && t3 <= 122))
  36268. t4 = t3 >= 65 && t3 <= 90;
  36269. else
  36270. t4 = true;
  36271. t4 = t4 || t3 >= 128;
  36272. } else
  36273. t4 = true;
  36274. if (!t4)
  36275. t3 = t3 >= 48 && t3 <= 57 || t3 === 45;
  36276. else
  36277. t3 = true;
  36278. } else
  36279. t3 = false;
  36280. if (!t3)
  36281. break;
  36282. --i;
  36283. }
  36284. t3 = i + 1;
  36285. t4 = B.JSString_methods.codeUnitAt$1(text, t3);
  36286. if (!(t4 === 95 || A.isAlphabetic0(t4) || t4 >= 128))
  36287. return t1;
  36288. return A.SpanExtensions_trimRight(A.SpanExtensions_trimLeft(t2.span$2(0, t3, A.FileLocation$_(t2, t1._end).offset)));
  36289. },
  36290. verify$2(positional, names) {
  36291. var t1, t2, t3, namedUsed, i, argument, t4, unknownNames, _this = this,
  36292. _s10_ = "invocation",
  36293. _s8_ = "argument";
  36294. for (t1 = _this.$arguments, t2 = t1.length, t3 = names._baseMap, namedUsed = 0, i = 0; i < t2; ++i) {
  36295. argument = t1[i];
  36296. if (i < positional) {
  36297. t4 = argument.name;
  36298. if (t3.containsKey$1(t4))
  36299. throw A.wrapException(A.SassScriptException$("Argument " + _this._originalArgumentName$1(t4) + string$.x20was_p, null));
  36300. } else {
  36301. t4 = argument.name;
  36302. if (t3.containsKey$1(t4))
  36303. ++namedUsed;
  36304. else if (argument.defaultValue == null)
  36305. throw A.wrapException(A.MultiSpanSassScriptException$("Missing argument " + _this._originalArgumentName$1(t4) + ".", _s10_, A.LinkedHashMap_LinkedHashMap$_literal([_this.get$spanWithName(), "declaration"], type$.FileSpan, type$.String)));
  36306. }
  36307. }
  36308. if (_this.restArgument != null)
  36309. return;
  36310. if (positional > t2) {
  36311. t1 = names.get$isEmpty(names) ? "" : "positional ";
  36312. throw A.wrapException(A.MultiSpanSassScriptException$("Only " + t2 + " " + t1 + A.pluralize(_s8_, t2, null) + " allowed, but " + positional + " " + A.pluralize("was", positional, "were") + " passed.", _s10_, A.LinkedHashMap_LinkedHashMap$_literal([_this.get$spanWithName(), "declaration"], type$.FileSpan, type$.String)));
  36313. }
  36314. if (namedUsed < t3.get$length(t3)) {
  36315. t2 = type$.String;
  36316. unknownNames = A.LinkedHashSet_LinkedHashSet$of(names, t2);
  36317. unknownNames.removeAll$1(new A.MappedListIterable(t1, new A.ArgumentDeclaration_verify_closure(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Object?>")));
  36318. throw A.wrapException(A.MultiSpanSassScriptException$("No " + A.pluralize(_s8_, unknownNames._collection$_length, null) + " named " + A.S(A.toSentence(unknownNames.map$1$1(0, new A.ArgumentDeclaration_verify_closure0(), type$.Object), "or")) + ".", _s10_, A.LinkedHashMap_LinkedHashMap$_literal([_this.get$spanWithName(), "declaration"], type$.FileSpan, t2)));
  36319. }
  36320. },
  36321. _originalArgumentName$1($name) {
  36322. var t1, text, t2, _i, argument, t3, t4, end, _null = null;
  36323. if ($name === this.restArgument) {
  36324. t1 = this.span;
  36325. text = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t1.file._decodedChars, t1._file$_start, t1._end), 0, _null);
  36326. return B.JSString_methods.substring$2(B.JSString_methods.substring$1(text, B.JSString_methods.lastIndexOf$1(text, "$")), 0, B.JSString_methods.indexOf$1(text, "."));
  36327. }
  36328. for (t1 = this.$arguments, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  36329. argument = t1[_i];
  36330. if (argument.name === $name) {
  36331. t1 = argument.defaultValue;
  36332. t2 = argument.span;
  36333. t3 = t2.file;
  36334. t4 = t2._file$_start;
  36335. t2 = t2._end;
  36336. if (t1 == null) {
  36337. t1 = t3._decodedChars;
  36338. t1 = A.String_String$fromCharCodes(new Uint32Array(t1.subarray(t4, A._checkValidRange(t4, t2, t1.length))), 0, _null);
  36339. } else {
  36340. t1 = t3._decodedChars;
  36341. text = A.String_String$fromCharCodes(new Uint32Array(t1.subarray(t4, A._checkValidRange(t4, t2, t1.length))), 0, _null);
  36342. t1 = B.JSString_methods.substring$2(text, 0, B.JSString_methods.indexOf$1(text, ":"));
  36343. end = A._lastNonWhitespace(t1, false);
  36344. t1 = end == null ? "" : B.JSString_methods.substring$2(t1, 0, end + 1);
  36345. }
  36346. return t1;
  36347. }
  36348. }
  36349. throw A.wrapException(A.ArgumentError$(string$.This_d + $name + '".', _null));
  36350. },
  36351. matches$2(positional, names) {
  36352. var t1, t2, t3, namedUsed, i, argument;
  36353. for (t1 = this.$arguments, t2 = t1.length, t3 = names._baseMap, namedUsed = 0, i = 0; i < t2; ++i) {
  36354. argument = t1[i];
  36355. if (i < positional) {
  36356. if (t3.containsKey$1(argument.name))
  36357. return false;
  36358. } else if (t3.containsKey$1(argument.name))
  36359. ++namedUsed;
  36360. else if (argument.defaultValue == null)
  36361. return false;
  36362. }
  36363. if (this.restArgument != null)
  36364. return true;
  36365. if (positional > t2)
  36366. return false;
  36367. if (namedUsed < t3.get$length(t3))
  36368. return false;
  36369. return true;
  36370. },
  36371. toString$0(_) {
  36372. var t2, t3, _i,
  36373. t1 = A._setArrayType([], type$.JSArray_String);
  36374. for (t2 = this.$arguments, t3 = t2.length, _i = 0; _i < t3; ++_i)
  36375. t1.push("$" + A.S(t2[_i]));
  36376. t2 = this.restArgument;
  36377. if (t2 != null)
  36378. t1.push("$" + t2 + "...");
  36379. return B.JSArray_methods.join$1(t1, ", ");
  36380. },
  36381. $isAstNode: 1,
  36382. get$span(receiver) {
  36383. return this.span;
  36384. }
  36385. };
  36386. A.ArgumentDeclaration_verify_closure.prototype = {
  36387. call$1(argument) {
  36388. return argument.name;
  36389. },
  36390. $signature: 326
  36391. };
  36392. A.ArgumentDeclaration_verify_closure0.prototype = {
  36393. call$1($name) {
  36394. return "$" + $name;
  36395. },
  36396. $signature: 5
  36397. };
  36398. A.ArgumentInvocation.prototype = {
  36399. get$isEmpty(_) {
  36400. var t1;
  36401. if (this.positional.length === 0) {
  36402. t1 = this.named;
  36403. t1 = t1.get$isEmpty(t1) && this.rest == null;
  36404. } else
  36405. t1 = false;
  36406. return t1;
  36407. },
  36408. toString$0(_) {
  36409. var t2, t3, t4, _this = this,
  36410. t1 = A.List_List$of(_this.positional, true, type$.Object);
  36411. for (t2 = _this.named, t3 = J.get$iterator$ax(t2.get$keys(t2)); t3.moveNext$0();) {
  36412. t4 = t3.get$current(t3);
  36413. t1.push("$" + t4 + ": " + A.S(t2.$index(0, t4)));
  36414. }
  36415. t2 = _this.rest;
  36416. if (t2 != null)
  36417. t1.push(t2.toString$0(0) + "...");
  36418. t2 = _this.keywordRest;
  36419. if (t2 != null)
  36420. t1.push(t2.toString$0(0) + "...");
  36421. return "(" + B.JSArray_methods.join$1(t1, ", ") + ")";
  36422. },
  36423. $isAstNode: 1,
  36424. get$span(receiver) {
  36425. return this.span;
  36426. }
  36427. };
  36428. A.AtRootQuery.prototype = {
  36429. excludes$1(node) {
  36430. var t1, _this = this;
  36431. if (_this._all)
  36432. return !_this.include;
  36433. if (type$.CssStyleRule._is(node))
  36434. return _this._at_root_query$_rule !== _this.include;
  36435. if (type$.CssMediaRule._is(node))
  36436. return _this.excludesName$1("media");
  36437. if (type$.CssSupportsRule._is(node))
  36438. return _this.excludesName$1("supports");
  36439. if (type$.CssAtRule._is(node)) {
  36440. t1 = node.name;
  36441. return _this.excludesName$1(t1.get$value(t1).toLowerCase());
  36442. }
  36443. return false;
  36444. },
  36445. excludesName$1($name) {
  36446. var t1 = this._all || this.names.contains$1(0, $name);
  36447. return t1 !== this.include;
  36448. }
  36449. };
  36450. A.ConfiguredVariable.prototype = {
  36451. toString$0(_) {
  36452. var t1 = this.expression.toString$0(0),
  36453. t2 = this.isGuarded ? " !default" : "";
  36454. return "$" + this.name + ": " + t1 + t2;
  36455. },
  36456. $isAstNode: 1,
  36457. get$span(receiver) {
  36458. return this.span;
  36459. }
  36460. };
  36461. A.BinaryOperationExpression.prototype = {
  36462. get$span(_) {
  36463. var right,
  36464. left = this.left;
  36465. for (; left instanceof A.BinaryOperationExpression;)
  36466. left = left.left;
  36467. right = this.right;
  36468. for (; right instanceof A.BinaryOperationExpression;)
  36469. right = right.right;
  36470. return left.get$span(left).expand$1(0, right.get$span(right));
  36471. },
  36472. accept$1$1(visitor) {
  36473. return visitor.visitBinaryOperationExpression$1(this);
  36474. },
  36475. accept$1(visitor) {
  36476. return this.accept$1$1(visitor, type$.dynamic);
  36477. },
  36478. toString$0(_) {
  36479. var t2, right, rightNeedsParens, _this = this,
  36480. left = _this.left,
  36481. leftNeedsParens = left instanceof A.BinaryOperationExpression && left.operator.precedence < _this.operator.precedence,
  36482. t1 = leftNeedsParens ? "" + A.Primitives_stringFromCharCode(40) : "";
  36483. t1 += left.toString$0(0);
  36484. if (leftNeedsParens)
  36485. t1 += A.Primitives_stringFromCharCode(41);
  36486. t2 = _this.operator;
  36487. t1 = t1 + A.Primitives_stringFromCharCode(32) + t2.operator + A.Primitives_stringFromCharCode(32);
  36488. right = _this.right;
  36489. rightNeedsParens = right instanceof A.BinaryOperationExpression && right.operator.precedence <= t2.precedence;
  36490. if (rightNeedsParens)
  36491. t1 += A.Primitives_stringFromCharCode(40);
  36492. t1 += right.toString$0(0);
  36493. if (rightNeedsParens)
  36494. t1 += A.Primitives_stringFromCharCode(41);
  36495. return t1.charCodeAt(0) == 0 ? t1 : t1;
  36496. },
  36497. $isAstNode: 1,
  36498. $isExpression: 1
  36499. };
  36500. A.BinaryOperator.prototype = {
  36501. toString$0(_) {
  36502. return this.name;
  36503. }
  36504. };
  36505. A.BooleanExpression.prototype = {
  36506. accept$1$1(visitor) {
  36507. return visitor.visitBooleanExpression$1(this);
  36508. },
  36509. accept$1(visitor) {
  36510. return this.accept$1$1(visitor, type$.dynamic);
  36511. },
  36512. toString$0(_) {
  36513. return String(this.value);
  36514. },
  36515. $isAstNode: 1,
  36516. $isExpression: 1,
  36517. get$span(receiver) {
  36518. return this.span;
  36519. }
  36520. };
  36521. A.CalculationExpression.prototype = {
  36522. accept$1$1(visitor) {
  36523. return visitor.visitCalculationExpression$1(this);
  36524. },
  36525. accept$1(visitor) {
  36526. return this.accept$1$1(visitor, type$.dynamic);
  36527. },
  36528. toString$0(_) {
  36529. return this.name + "(" + B.JSArray_methods.join$1(this.$arguments, ", ") + ")";
  36530. },
  36531. $isAstNode: 1,
  36532. $isExpression: 1,
  36533. get$span(receiver) {
  36534. return this.span;
  36535. }
  36536. };
  36537. A.CalculationExpression__verifyArguments_closure.prototype = {
  36538. call$1(arg) {
  36539. A.CalculationExpression__verify(arg);
  36540. return arg;
  36541. },
  36542. $signature: 328
  36543. };
  36544. A.ColorExpression.prototype = {
  36545. accept$1$1(visitor) {
  36546. return visitor.visitColorExpression$1(this);
  36547. },
  36548. accept$1(visitor) {
  36549. return this.accept$1$1(visitor, type$.dynamic);
  36550. },
  36551. toString$0(_) {
  36552. return A.serializeValue(this.value, true, true);
  36553. },
  36554. $isAstNode: 1,
  36555. $isExpression: 1,
  36556. get$span(receiver) {
  36557. return this.span;
  36558. }
  36559. };
  36560. A.FunctionExpression.prototype = {
  36561. accept$1$1(visitor) {
  36562. return visitor.visitFunctionExpression$1(this);
  36563. },
  36564. accept$1(visitor) {
  36565. return this.accept$1$1(visitor, type$.dynamic);
  36566. },
  36567. toString$0(_) {
  36568. var t1 = this.namespace;
  36569. t1 = t1 != null ? "" + (t1 + ".") : "";
  36570. t1 += this.originalName + this.$arguments.toString$0(0);
  36571. return t1.charCodeAt(0) == 0 ? t1 : t1;
  36572. },
  36573. $isAstNode: 1,
  36574. $isExpression: 1,
  36575. get$span(receiver) {
  36576. return this.span;
  36577. }
  36578. };
  36579. A.IfExpression.prototype = {
  36580. accept$1$1(visitor) {
  36581. return visitor.visitIfExpression$1(this);
  36582. },
  36583. accept$1(visitor) {
  36584. return this.accept$1$1(visitor, type$.dynamic);
  36585. },
  36586. toString$0(_) {
  36587. return "if" + this.$arguments.toString$0(0);
  36588. },
  36589. $isAstNode: 1,
  36590. $isExpression: 1,
  36591. get$span(receiver) {
  36592. return this.span;
  36593. }
  36594. };
  36595. A.InterpolatedFunctionExpression.prototype = {
  36596. accept$1$1(visitor) {
  36597. return visitor.visitInterpolatedFunctionExpression$1(this);
  36598. },
  36599. accept$1(visitor) {
  36600. return this.accept$1$1(visitor, type$.dynamic);
  36601. },
  36602. toString$0(_) {
  36603. return this.name.toString$0(0) + this.$arguments.toString$0(0);
  36604. },
  36605. $isAstNode: 1,
  36606. $isExpression: 1,
  36607. get$span(receiver) {
  36608. return this.span;
  36609. }
  36610. };
  36611. A.ListExpression.prototype = {
  36612. accept$1$1(visitor) {
  36613. return visitor.visitListExpression$1(this);
  36614. },
  36615. accept$1(visitor) {
  36616. return this.accept$1$1(visitor, type$.dynamic);
  36617. },
  36618. toString$0(_) {
  36619. var _this = this,
  36620. t1 = _this.hasBrackets,
  36621. t2 = t1 ? "" + A.Primitives_stringFromCharCode(91) : "",
  36622. t3 = _this.contents,
  36623. t4 = _this.separator === B.ListSeparator_rXA ? ", " : " ";
  36624. t4 = t2 + new A.MappedListIterable(t3, new A.ListExpression_toString_closure(_this), A._arrayInstanceType(t3)._eval$1("MappedListIterable<1,String>")).join$1(0, t4);
  36625. t1 = t1 ? t4 + A.Primitives_stringFromCharCode(93) : t4;
  36626. return t1.charCodeAt(0) == 0 ? t1 : t1;
  36627. },
  36628. _list0$_elementNeedsParens$1(expression) {
  36629. var t1;
  36630. if (expression instanceof A.ListExpression) {
  36631. if (expression.contents.length < 2)
  36632. return false;
  36633. if (expression.hasBrackets)
  36634. return false;
  36635. t1 = expression.separator;
  36636. return this.separator === B.ListSeparator_rXA ? t1 === B.ListSeparator_rXA : t1 !== B.ListSeparator_undecided_null_undecided;
  36637. }
  36638. if (this.separator !== B.ListSeparator_EVt)
  36639. return false;
  36640. if (expression instanceof A.UnaryOperationExpression) {
  36641. t1 = expression.operator;
  36642. return t1 === B.UnaryOperator_gg4 || t1 === B.UnaryOperator_TLI;
  36643. }
  36644. return false;
  36645. },
  36646. $isAstNode: 1,
  36647. $isExpression: 1,
  36648. get$span(receiver) {
  36649. return this.span;
  36650. }
  36651. };
  36652. A.ListExpression_toString_closure.prototype = {
  36653. call$1(element) {
  36654. return this.$this._list0$_elementNeedsParens$1(element) ? "(" + element.toString$0(0) + ")" : element.toString$0(0);
  36655. },
  36656. $signature: 123
  36657. };
  36658. A.MapExpression.prototype = {
  36659. accept$1$1(visitor) {
  36660. return visitor.visitMapExpression$1(this);
  36661. },
  36662. accept$1(visitor) {
  36663. return this.accept$1$1(visitor, type$.dynamic);
  36664. },
  36665. toString$0(_) {
  36666. var t1 = this.pairs;
  36667. return "(" + new A.MappedListIterable(t1, new A.MapExpression_toString_closure(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$1(0, ", ") + ")";
  36668. },
  36669. $isAstNode: 1,
  36670. $isExpression: 1,
  36671. get$span(receiver) {
  36672. return this.span;
  36673. }
  36674. };
  36675. A.MapExpression_toString_closure.prototype = {
  36676. call$1(pair) {
  36677. return A.S(pair.item1) + ": " + A.S(pair.item2);
  36678. },
  36679. $signature: 340
  36680. };
  36681. A.NullExpression.prototype = {
  36682. accept$1$1(visitor) {
  36683. return visitor.visitNullExpression$1(this);
  36684. },
  36685. accept$1(visitor) {
  36686. return this.accept$1$1(visitor, type$.dynamic);
  36687. },
  36688. toString$0(_) {
  36689. return "null";
  36690. },
  36691. $isAstNode: 1,
  36692. $isExpression: 1,
  36693. get$span(receiver) {
  36694. return this.span;
  36695. }
  36696. };
  36697. A.NumberExpression.prototype = {
  36698. accept$1$1(visitor) {
  36699. return visitor.visitNumberExpression$1(this);
  36700. },
  36701. accept$1(visitor) {
  36702. return this.accept$1$1(visitor, type$.dynamic);
  36703. },
  36704. toString$0(_) {
  36705. return A.serializeValue(A.SassNumber_SassNumber(this.value, this.unit), true, true);
  36706. },
  36707. $isAstNode: 1,
  36708. $isExpression: 1,
  36709. get$span(receiver) {
  36710. return this.span;
  36711. }
  36712. };
  36713. A.ParenthesizedExpression.prototype = {
  36714. accept$1$1(visitor) {
  36715. return visitor.visitParenthesizedExpression$1(this);
  36716. },
  36717. accept$1(visitor) {
  36718. return this.accept$1$1(visitor, type$.dynamic);
  36719. },
  36720. toString$0(_) {
  36721. return "(" + this.expression.toString$0(0) + ")";
  36722. },
  36723. $isAstNode: 1,
  36724. $isExpression: 1,
  36725. get$span(receiver) {
  36726. return this.span;
  36727. }
  36728. };
  36729. A.SelectorExpression.prototype = {
  36730. accept$1$1(visitor) {
  36731. return visitor.visitSelectorExpression$1(this);
  36732. },
  36733. accept$1(visitor) {
  36734. return this.accept$1$1(visitor, type$.dynamic);
  36735. },
  36736. toString$0(_) {
  36737. return "&";
  36738. },
  36739. $isAstNode: 1,
  36740. $isExpression: 1,
  36741. get$span(receiver) {
  36742. return this.span;
  36743. }
  36744. };
  36745. A.StringExpression.prototype = {
  36746. get$span(_) {
  36747. return this.text.span;
  36748. },
  36749. accept$1$1(visitor) {
  36750. return visitor.visitStringExpression$1(this);
  36751. },
  36752. accept$1(visitor) {
  36753. return this.accept$1$1(visitor, type$.dynamic);
  36754. },
  36755. asInterpolation$1$static($static) {
  36756. var t1, t2, quote, t3, t4, buffer, t5, t6, _i, value;
  36757. if (!this.hasQuotes)
  36758. return this.text;
  36759. t1 = this.text;
  36760. t2 = t1.contents;
  36761. quote = A.StringExpression__bestQuote(new A.WhereTypeIterable(t2, type$.WhereTypeIterable_String));
  36762. t3 = new A.StringBuffer("");
  36763. t4 = A._setArrayType([], type$.JSArray_Object);
  36764. buffer = new A.InterpolationBuffer(t3, t4);
  36765. t3._contents = "" + A.Primitives_stringFromCharCode(quote);
  36766. for (t5 = t2.length, t6 = type$.Expression, _i = 0; _i < t5; ++_i) {
  36767. value = t2[_i];
  36768. if (t6._is(value)) {
  36769. buffer._flushText$0();
  36770. t4.push(value);
  36771. } else if (typeof value == "string")
  36772. A.StringExpression__quoteInnerText(value, quote, buffer, $static);
  36773. }
  36774. t3._contents += A.Primitives_stringFromCharCode(quote);
  36775. return buffer.interpolation$1(t1.span);
  36776. },
  36777. asInterpolation$0() {
  36778. return this.asInterpolation$1$static(false);
  36779. },
  36780. toString$0(_) {
  36781. return this.asInterpolation$0().toString$0(0);
  36782. },
  36783. $isAstNode: 1,
  36784. $isExpression: 1
  36785. };
  36786. A.SupportsExpression.prototype = {
  36787. get$span(_) {
  36788. var t1 = this.condition;
  36789. return t1.get$span(t1);
  36790. },
  36791. accept$1$1(visitor) {
  36792. return visitor.visitSupportsExpression$1(this);
  36793. },
  36794. accept$1(visitor) {
  36795. return this.accept$1$1(visitor, type$.dynamic);
  36796. },
  36797. toString$0(_) {
  36798. return this.condition.toString$0(0);
  36799. },
  36800. $isAstNode: 1,
  36801. $isExpression: 1
  36802. };
  36803. A.UnaryOperationExpression.prototype = {
  36804. accept$1$1(visitor) {
  36805. return visitor.visitUnaryOperationExpression$1(this);
  36806. },
  36807. accept$1(visitor) {
  36808. return this.accept$1$1(visitor, type$.dynamic);
  36809. },
  36810. toString$0(_) {
  36811. var t1 = this.operator,
  36812. t2 = t1.operator;
  36813. t1 = t1 === B.UnaryOperator_not_not_not ? t2 + A.Primitives_stringFromCharCode(32) : t2;
  36814. t1 += this.operand.toString$0(0);
  36815. return t1.charCodeAt(0) == 0 ? t1 : t1;
  36816. },
  36817. $isAstNode: 1,
  36818. $isExpression: 1,
  36819. get$span(receiver) {
  36820. return this.span;
  36821. }
  36822. };
  36823. A.UnaryOperator.prototype = {
  36824. toString$0(_) {
  36825. return this.name;
  36826. }
  36827. };
  36828. A.ValueExpression.prototype = {
  36829. accept$1$1(visitor) {
  36830. return visitor.visitValueExpression$1(this);
  36831. },
  36832. accept$1(visitor) {
  36833. return this.accept$1$1(visitor, type$.dynamic);
  36834. },
  36835. toString$0(_) {
  36836. return A.serializeValue(this.value, true, true);
  36837. },
  36838. $isAstNode: 1,
  36839. $isExpression: 1,
  36840. get$span(receiver) {
  36841. return this.span;
  36842. }
  36843. };
  36844. A.VariableExpression.prototype = {
  36845. accept$1$1(visitor) {
  36846. return visitor.visitVariableExpression$1(this);
  36847. },
  36848. accept$1(visitor) {
  36849. return this.accept$1$1(visitor, type$.dynamic);
  36850. },
  36851. toString$0(_) {
  36852. var t1 = this.namespace,
  36853. t2 = this.name;
  36854. return t1 == null ? "$" + t2 : t1 + ".$" + t2;
  36855. },
  36856. $isAstNode: 1,
  36857. $isExpression: 1,
  36858. get$span(receiver) {
  36859. return this.span;
  36860. }
  36861. };
  36862. A.DynamicImport.prototype = {
  36863. toString$0(_) {
  36864. return A.StringExpression_quoteText(this.urlString);
  36865. },
  36866. $isAstNode: 1,
  36867. $isImport: 1,
  36868. get$span(receiver) {
  36869. return this.span;
  36870. }
  36871. };
  36872. A.StaticImport.prototype = {
  36873. toString$0(_) {
  36874. var t1 = this.url.toString$0(0),
  36875. t2 = this.modifiers;
  36876. return t1 + (t2 == null ? "" : " " + t2.toString$0(0));
  36877. },
  36878. $isAstNode: 1,
  36879. $isImport: 1,
  36880. get$span(receiver) {
  36881. return this.span;
  36882. }
  36883. };
  36884. A.Interpolation.prototype = {
  36885. get$asPlain() {
  36886. var first,
  36887. t1 = this.contents,
  36888. t2 = t1.length;
  36889. if (t2 === 0)
  36890. return "";
  36891. if (t2 > 1)
  36892. return null;
  36893. first = B.JSArray_methods.get$first(t1);
  36894. return typeof first == "string" ? first : null;
  36895. },
  36896. get$initialPlain() {
  36897. var first = B.JSArray_methods.get$first(this.contents);
  36898. return typeof first == "string" ? first : "";
  36899. },
  36900. Interpolation$2(contents, span) {
  36901. var t1, t2, t3, i, t4, t5,
  36902. _s8_ = "contents";
  36903. for (t1 = this.contents, t2 = t1.length, t3 = type$.Expression, i = 0; i < t2; ++i) {
  36904. t4 = t1[i];
  36905. t5 = typeof t4 == "string";
  36906. if (!t5 && !t3._is(t4))
  36907. throw A.wrapException(A.ArgumentError$value(t1, _s8_, string$.May_on));
  36908. if (i !== 0 && typeof t1[i - 1] == "string" && t5)
  36909. throw A.wrapException(A.ArgumentError$value(t1, _s8_, "May not contain adjacent Strings."));
  36910. }
  36911. },
  36912. toString$0(_) {
  36913. var t1 = this.contents;
  36914. return new A.MappedListIterable(t1, new A.Interpolation_toString_closure(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$0(0);
  36915. },
  36916. $isAstNode: 1,
  36917. get$span(receiver) {
  36918. return this.span;
  36919. }
  36920. };
  36921. A.Interpolation_toString_closure.prototype = {
  36922. call$1(value) {
  36923. return typeof value == "string" ? value : "#{" + A.S(value) + "}";
  36924. },
  36925. $signature: 46
  36926. };
  36927. A.AtRootRule.prototype = {
  36928. accept$1$1(visitor) {
  36929. return visitor.visitAtRootRule$1(this);
  36930. },
  36931. accept$1(visitor) {
  36932. return this.accept$1$1(visitor, type$.dynamic);
  36933. },
  36934. toString$0(_) {
  36935. var buffer = new A.StringBuffer("@at-root "),
  36936. t1 = this.query;
  36937. if (t1 != null)
  36938. buffer._contents = "@at-root " + (t1.toString$0(0) + " ");
  36939. t1 = this.children;
  36940. return buffer.toString$0(0) + " {" + (t1 && B.JSArray_methods).join$1(t1, " ") + "}";
  36941. },
  36942. get$span(receiver) {
  36943. return this.span;
  36944. }
  36945. };
  36946. A.AtRule.prototype = {
  36947. accept$1$1(visitor) {
  36948. return visitor.visitAtRule$1(this);
  36949. },
  36950. accept$1(visitor) {
  36951. return this.accept$1$1(visitor, type$.dynamic);
  36952. },
  36953. toString$0(_) {
  36954. var children,
  36955. t1 = "@" + this.name.toString$0(0),
  36956. buffer = new A.StringBuffer(t1),
  36957. t2 = this.value;
  36958. if (t2 != null)
  36959. buffer._contents = t1 + (" " + t2.toString$0(0));
  36960. children = this.children;
  36961. return children == null ? buffer.toString$0(0) + ";" : buffer.toString$0(0) + " {" + B.JSArray_methods.join$1(children, " ") + "}";
  36962. },
  36963. get$span(receiver) {
  36964. return this.span;
  36965. }
  36966. };
  36967. A.CallableDeclaration.prototype = {
  36968. get$span(receiver) {
  36969. return this.span;
  36970. }
  36971. };
  36972. A.ContentBlock.prototype = {
  36973. accept$1$1(visitor) {
  36974. return visitor.visitContentBlock$1(this);
  36975. },
  36976. accept$1(visitor) {
  36977. return this.accept$1$1(visitor, type$.dynamic);
  36978. },
  36979. toString$0(_) {
  36980. var t2,
  36981. t1 = this.$arguments;
  36982. t1 = t1.$arguments.length === 0 && t1.restArgument == null ? "" : " using (" + t1.toString$0(0) + ")";
  36983. t2 = this.children;
  36984. return t1 + (" {" + (t2 && B.JSArray_methods).join$1(t2, " ") + "}");
  36985. }
  36986. };
  36987. A.ContentRule.prototype = {
  36988. accept$1$1(visitor) {
  36989. return visitor.visitContentRule$1(this);
  36990. },
  36991. accept$1(visitor) {
  36992. return this.accept$1$1(visitor, type$.dynamic);
  36993. },
  36994. toString$0(_) {
  36995. var t1 = this.$arguments;
  36996. return t1.get$isEmpty(t1) ? "@content;" : "@content(" + t1.toString$0(0) + ");";
  36997. },
  36998. $isAstNode: 1,
  36999. $isStatement: 1,
  37000. get$span(receiver) {
  37001. return this.span;
  37002. }
  37003. };
  37004. A.DebugRule.prototype = {
  37005. accept$1$1(visitor) {
  37006. return visitor.visitDebugRule$1(this);
  37007. },
  37008. accept$1(visitor) {
  37009. return this.accept$1$1(visitor, type$.dynamic);
  37010. },
  37011. toString$0(_) {
  37012. return "@debug " + this.expression.toString$0(0) + ";";
  37013. },
  37014. $isAstNode: 1,
  37015. $isStatement: 1,
  37016. get$span(receiver) {
  37017. return this.span;
  37018. }
  37019. };
  37020. A.Declaration.prototype = {
  37021. accept$1$1(visitor) {
  37022. return visitor.visitDeclaration$1(this);
  37023. },
  37024. accept$1(visitor) {
  37025. return this.accept$1$1(visitor, type$.dynamic);
  37026. },
  37027. toString$0(_) {
  37028. var t3, children,
  37029. buffer = new A.StringBuffer(""),
  37030. t1 = this.name,
  37031. t2 = "" + t1.toString$0(0);
  37032. buffer._contents = t2;
  37033. t2 = buffer._contents = t2 + A.Primitives_stringFromCharCode(58);
  37034. t3 = this.value;
  37035. if (t3 != null) {
  37036. t1 = !B.JSString_methods.startsWith$1(t1.get$initialPlain(), "--") ? buffer._contents = t2 + A.Primitives_stringFromCharCode(32) : t2;
  37037. buffer._contents = t1 + t3.toString$0(0);
  37038. }
  37039. children = this.children;
  37040. return children == null ? buffer.toString$0(0) + ";" : buffer.toString$0(0) + " {" + B.JSArray_methods.join$1(children, " ") + "}";
  37041. },
  37042. get$span(receiver) {
  37043. return this.span;
  37044. }
  37045. };
  37046. A.EachRule.prototype = {
  37047. accept$1$1(visitor) {
  37048. return visitor.visitEachRule$1(this);
  37049. },
  37050. accept$1(visitor) {
  37051. return this.accept$1$1(visitor, type$.dynamic);
  37052. },
  37053. toString$0(_) {
  37054. var t1 = this.variables,
  37055. t2 = this.children;
  37056. return "@each " + new A.MappedListIterable(t1, new A.EachRule_toString_closure(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$1(0, ", ") + " in " + this.list.toString$0(0) + " {" + (t2 && B.JSArray_methods).join$1(t2, " ") + "}";
  37057. },
  37058. get$span(receiver) {
  37059. return this.span;
  37060. }
  37061. };
  37062. A.EachRule_toString_closure.prototype = {
  37063. call$1(variable) {
  37064. return "$" + variable;
  37065. },
  37066. $signature: 5
  37067. };
  37068. A.ErrorRule.prototype = {
  37069. accept$1$1(visitor) {
  37070. return visitor.visitErrorRule$1(this);
  37071. },
  37072. accept$1(visitor) {
  37073. return this.accept$1$1(visitor, type$.dynamic);
  37074. },
  37075. toString$0(_) {
  37076. return "@error " + this.expression.toString$0(0) + ";";
  37077. },
  37078. $isAstNode: 1,
  37079. $isStatement: 1,
  37080. get$span(receiver) {
  37081. return this.span;
  37082. }
  37083. };
  37084. A.ExtendRule.prototype = {
  37085. accept$1$1(visitor) {
  37086. return visitor.visitExtendRule$1(this);
  37087. },
  37088. accept$1(visitor) {
  37089. return this.accept$1$1(visitor, type$.dynamic);
  37090. },
  37091. toString$0(_) {
  37092. var t1 = this.selector.toString$0(0),
  37093. t2 = this.isOptional ? " !optional" : "";
  37094. return "@extend " + t1 + t2 + ";";
  37095. },
  37096. $isAstNode: 1,
  37097. $isStatement: 1,
  37098. get$span(receiver) {
  37099. return this.span;
  37100. }
  37101. };
  37102. A.ForRule.prototype = {
  37103. accept$1$1(visitor) {
  37104. return visitor.visitForRule$1(this);
  37105. },
  37106. accept$1(visitor) {
  37107. return this.accept$1$1(visitor, type$.dynamic);
  37108. },
  37109. toString$0(_) {
  37110. var _this = this,
  37111. t1 = _this.from.toString$0(0),
  37112. t2 = _this.isExclusive ? "to" : "through",
  37113. t3 = _this.children;
  37114. return "@for $" + _this.variable + " from " + t1 + " " + t2 + " " + _this.to.toString$0(0) + " {" + (t3 && B.JSArray_methods).join$1(t3, " ") + "}";
  37115. },
  37116. get$span(receiver) {
  37117. return this.span;
  37118. }
  37119. };
  37120. A.ForwardRule.prototype = {
  37121. accept$1$1(visitor) {
  37122. return visitor.visitForwardRule$1(this);
  37123. },
  37124. accept$1(visitor) {
  37125. return this.accept$1$1(visitor, type$.dynamic);
  37126. },
  37127. toString$0(_) {
  37128. var t2, prefix, _this = this,
  37129. t1 = "@forward " + A.StringExpression_quoteText(_this.url.toString$0(0)),
  37130. shownMixinsAndFunctions = _this.shownMixinsAndFunctions,
  37131. hiddenMixinsAndFunctions = _this.hiddenMixinsAndFunctions;
  37132. if (shownMixinsAndFunctions != null) {
  37133. t2 = _this.shownVariables;
  37134. t2.toString;
  37135. t2 = t1 + " show " + _this._forward_rule$_memberList$2(shownMixinsAndFunctions, t2);
  37136. t1 = t2;
  37137. } else {
  37138. if (hiddenMixinsAndFunctions != null) {
  37139. t2 = hiddenMixinsAndFunctions._base;
  37140. t2 = t2.get$isNotEmpty(t2);
  37141. } else
  37142. t2 = false;
  37143. if (t2) {
  37144. t2 = _this.hiddenVariables;
  37145. t2.toString;
  37146. t2 = t1 + " hide " + _this._forward_rule$_memberList$2(hiddenMixinsAndFunctions, t2);
  37147. t1 = t2;
  37148. }
  37149. }
  37150. prefix = _this.prefix;
  37151. if (prefix != null)
  37152. t1 += " as " + prefix + "*";
  37153. t2 = _this.configuration;
  37154. t1 = (t2.length !== 0 ? t1 + (" with (" + B.JSArray_methods.join$1(t2, ", ") + ")") : t1) + ";";
  37155. return t1.charCodeAt(0) == 0 ? t1 : t1;
  37156. },
  37157. _forward_rule$_memberList$2(mixinsAndFunctions, variables) {
  37158. var t2,
  37159. t1 = A.List_List$of(mixinsAndFunctions, true, type$.String);
  37160. for (t2 = variables._base, t2 = t2.get$iterator(t2); t2.moveNext$0();)
  37161. t1.push("$" + t2.get$current(t2));
  37162. return B.JSArray_methods.join$1(t1, ", ");
  37163. },
  37164. $isAstNode: 1,
  37165. $isStatement: 1,
  37166. get$span(receiver) {
  37167. return this.span;
  37168. }
  37169. };
  37170. A.FunctionRule.prototype = {
  37171. accept$1$1(visitor) {
  37172. return visitor.visitFunctionRule$1(this);
  37173. },
  37174. accept$1(visitor) {
  37175. return this.accept$1$1(visitor, type$.dynamic);
  37176. },
  37177. toString$0(_) {
  37178. var t1 = this.children;
  37179. return "@function " + this.name + "(" + this.$arguments.toString$0(0) + ") {" + (t1 && B.JSArray_methods).join$1(t1, " ") + "}";
  37180. }
  37181. };
  37182. A.IfRule.prototype = {
  37183. accept$1$1(visitor) {
  37184. return visitor.visitIfRule$1(this);
  37185. },
  37186. accept$1(visitor) {
  37187. return this.accept$1$1(visitor, type$.dynamic);
  37188. },
  37189. toString$0(_) {
  37190. var result = A.ListExtensions_mapIndexed(this.clauses, new A.IfRule_toString_closure(), type$.IfClause, type$.String).join$1(0, " "),
  37191. lastClause = this.lastClause;
  37192. return lastClause != null ? result + (" " + lastClause.toString$0(0)) : result;
  37193. },
  37194. $isAstNode: 1,
  37195. $isStatement: 1,
  37196. get$span(receiver) {
  37197. return this.span;
  37198. }
  37199. };
  37200. A.IfRule_toString_closure.prototype = {
  37201. call$2(index, clause) {
  37202. var t1 = index === 0 ? "if" : "else if";
  37203. return "@" + t1 + " " + clause.expression.toString$0(0) + " {" + B.JSArray_methods.join$1(clause.children, " ") + "}";
  37204. },
  37205. $signature: 344
  37206. };
  37207. A.IfRuleClause.prototype = {};
  37208. A.IfRuleClause$__closure.prototype = {
  37209. call$1(child) {
  37210. var t1;
  37211. if (!(child instanceof A.VariableDeclaration))
  37212. if (!(child instanceof A.FunctionRule))
  37213. if (!(child instanceof A.MixinRule))
  37214. t1 = child instanceof A.ImportRule && B.JSArray_methods.any$1(child.imports, new A.IfRuleClause$___closure());
  37215. else
  37216. t1 = true;
  37217. else
  37218. t1 = true;
  37219. else
  37220. t1 = true;
  37221. return t1;
  37222. },
  37223. $signature: 157
  37224. };
  37225. A.IfRuleClause$___closure.prototype = {
  37226. call$1($import) {
  37227. return $import instanceof A.DynamicImport;
  37228. },
  37229. $signature: 153
  37230. };
  37231. A.IfClause.prototype = {
  37232. toString$0(_) {
  37233. return "@if " + this.expression.toString$0(0) + " {" + B.JSArray_methods.join$1(this.children, " ") + "}";
  37234. }
  37235. };
  37236. A.ElseClause.prototype = {
  37237. toString$0(_) {
  37238. return "@else {" + B.JSArray_methods.join$1(this.children, " ") + "}";
  37239. }
  37240. };
  37241. A.ImportRule.prototype = {
  37242. accept$1$1(visitor) {
  37243. return visitor.visitImportRule$1(this);
  37244. },
  37245. accept$1(visitor) {
  37246. return this.accept$1$1(visitor, type$.dynamic);
  37247. },
  37248. toString$0(_) {
  37249. return "@import " + B.JSArray_methods.join$1(this.imports, ", ") + ";";
  37250. },
  37251. $isAstNode: 1,
  37252. $isStatement: 1,
  37253. get$span(receiver) {
  37254. return this.span;
  37255. }
  37256. };
  37257. A.IncludeRule.prototype = {
  37258. get$spanWithoutContent() {
  37259. var t2, t3,
  37260. t1 = this.span;
  37261. if (!(this.content == null)) {
  37262. t2 = t1.file;
  37263. t3 = this.$arguments.span;
  37264. t3 = A.SpanExtensions_trimRight(A.SpanExtensions_trimLeft(t2.span$2(0, A.FileLocation$_(t2, t1._file$_start).offset, t3.get$end(t3).offset)));
  37265. t1 = t3;
  37266. }
  37267. return t1;
  37268. },
  37269. accept$1$1(visitor) {
  37270. return visitor.visitIncludeRule$1(this);
  37271. },
  37272. accept$1(visitor) {
  37273. return this.accept$1$1(visitor, type$.dynamic);
  37274. },
  37275. toString$0(_) {
  37276. var t2, _this = this,
  37277. t1 = _this.namespace;
  37278. t1 = t1 != null ? "@include " + (t1 + ".") : "@include ";
  37279. t1 += _this.name;
  37280. t2 = _this.$arguments;
  37281. if (!t2.get$isEmpty(t2))
  37282. t1 += "(" + t2.toString$0(0) + ")";
  37283. t2 = _this.content;
  37284. t1 += t2 == null ? ";" : " " + t2.toString$0(0);
  37285. return t1.charCodeAt(0) == 0 ? t1 : t1;
  37286. },
  37287. $isAstNode: 1,
  37288. $isStatement: 1,
  37289. get$span(receiver) {
  37290. return this.span;
  37291. }
  37292. };
  37293. A.LoudComment.prototype = {
  37294. get$span(_) {
  37295. return this.text.span;
  37296. },
  37297. accept$1$1(visitor) {
  37298. return visitor.visitLoudComment$1(this);
  37299. },
  37300. accept$1(visitor) {
  37301. return this.accept$1$1(visitor, type$.dynamic);
  37302. },
  37303. toString$0(_) {
  37304. return this.text.toString$0(0);
  37305. },
  37306. $isAstNode: 1,
  37307. $isStatement: 1
  37308. };
  37309. A.MediaRule.prototype = {
  37310. accept$1$1(visitor) {
  37311. return visitor.visitMediaRule$1(this);
  37312. },
  37313. accept$1(visitor) {
  37314. return this.accept$1$1(visitor, type$.dynamic);
  37315. },
  37316. toString$0(_) {
  37317. var t1 = this.children;
  37318. return "@media " + this.query.toString$0(0) + " {" + (t1 && B.JSArray_methods).join$1(t1, " ") + "}";
  37319. },
  37320. get$span(receiver) {
  37321. return this.span;
  37322. }
  37323. };
  37324. A.MixinRule.prototype = {
  37325. get$hasContent() {
  37326. var result, _this = this,
  37327. value = _this.__MixinRule_hasContent_FI;
  37328. if (value === $) {
  37329. result = J.$eq$(B.C__HasContentVisitor.visitChildren$1(_this.children), true);
  37330. _this.__MixinRule_hasContent_FI !== $ && A.throwUnnamedLateFieldADI();
  37331. _this.__MixinRule_hasContent_FI = result;
  37332. value = result;
  37333. }
  37334. return value;
  37335. },
  37336. accept$1$1(visitor) {
  37337. return visitor.visitMixinRule$1(this);
  37338. },
  37339. accept$1(visitor) {
  37340. return this.accept$1$1(visitor, type$.dynamic);
  37341. },
  37342. toString$0(_) {
  37343. var t1 = "@mixin " + this.name,
  37344. t2 = this.$arguments;
  37345. if (!(t2.$arguments.length === 0 && t2.restArgument == null))
  37346. t1 += "(" + t2.toString$0(0) + ")";
  37347. t2 = this.children;
  37348. t2 = t1 + (" {" + (t2 && B.JSArray_methods).join$1(t2, " ") + "}");
  37349. return t2.charCodeAt(0) == 0 ? t2 : t2;
  37350. }
  37351. };
  37352. A._HasContentVisitor.prototype = {
  37353. visitContentRule$1(_) {
  37354. return true;
  37355. }
  37356. };
  37357. A.__HasContentVisitor_Object_StatementSearchVisitor.prototype = {};
  37358. A.ParentStatement.prototype = {$isAstNode: 1, $isStatement: 1};
  37359. A.ParentStatement_closure.prototype = {
  37360. call$1(child) {
  37361. var t1;
  37362. if (!(child instanceof A.VariableDeclaration))
  37363. if (!(child instanceof A.FunctionRule))
  37364. if (!(child instanceof A.MixinRule))
  37365. t1 = child instanceof A.ImportRule && B.JSArray_methods.any$1(child.imports, new A.ParentStatement__closure());
  37366. else
  37367. t1 = true;
  37368. else
  37369. t1 = true;
  37370. else
  37371. t1 = true;
  37372. return t1;
  37373. },
  37374. $signature: 157
  37375. };
  37376. A.ParentStatement__closure.prototype = {
  37377. call$1($import) {
  37378. return $import instanceof A.DynamicImport;
  37379. },
  37380. $signature: 153
  37381. };
  37382. A.ReturnRule.prototype = {
  37383. accept$1$1(visitor) {
  37384. return visitor.visitReturnRule$1(this);
  37385. },
  37386. accept$1(visitor) {
  37387. return this.accept$1$1(visitor, type$.dynamic);
  37388. },
  37389. toString$0(_) {
  37390. return "@return " + this.expression.toString$0(0) + ";";
  37391. },
  37392. $isAstNode: 1,
  37393. $isStatement: 1,
  37394. get$span(receiver) {
  37395. return this.span;
  37396. }
  37397. };
  37398. A.SilentComment.prototype = {
  37399. accept$1$1(visitor) {
  37400. return visitor.visitSilentComment$1(this);
  37401. },
  37402. accept$1(visitor) {
  37403. return this.accept$1$1(visitor, type$.dynamic);
  37404. },
  37405. toString$0(_) {
  37406. return this.text;
  37407. },
  37408. $isAstNode: 1,
  37409. $isStatement: 1,
  37410. get$span(receiver) {
  37411. return this.span;
  37412. }
  37413. };
  37414. A.StyleRule.prototype = {
  37415. accept$1$1(visitor) {
  37416. return visitor.visitStyleRule$1(this);
  37417. },
  37418. accept$1(visitor) {
  37419. return this.accept$1$1(visitor, type$.dynamic);
  37420. },
  37421. toString$0(_) {
  37422. var t1 = this.children;
  37423. return this.selector.toString$0(0) + " {" + (t1 && B.JSArray_methods).join$1(t1, " ") + "}";
  37424. },
  37425. get$span(receiver) {
  37426. return this.span;
  37427. }
  37428. };
  37429. A.Stylesheet.prototype = {
  37430. Stylesheet$internal$3$plainCss(children, span, plainCss) {
  37431. var t1, t2, t3, t4, _i, child;
  37432. for (t1 = this.children, t2 = t1.length, t3 = this._forwards, t4 = this._uses, _i = 0; _i < t2; ++_i) {
  37433. child = t1[_i];
  37434. if (child instanceof A.UseRule)
  37435. t4.push(child);
  37436. else if (child instanceof A.ForwardRule)
  37437. t3.push(child);
  37438. else if (!(child instanceof A.SilentComment) && !(child instanceof A.LoudComment) && !(child instanceof A.VariableDeclaration))
  37439. break;
  37440. }
  37441. },
  37442. accept$1$1(visitor) {
  37443. return visitor.visitStylesheet$1(this);
  37444. },
  37445. accept$1(visitor) {
  37446. return this.accept$1$1(visitor, type$.dynamic);
  37447. },
  37448. toString$0(_) {
  37449. var t1 = this.children;
  37450. return (t1 && B.JSArray_methods).join$1(t1, " ");
  37451. },
  37452. get$span(receiver) {
  37453. return this.span;
  37454. }
  37455. };
  37456. A.SupportsRule.prototype = {
  37457. accept$1$1(visitor) {
  37458. return visitor.visitSupportsRule$1(this);
  37459. },
  37460. accept$1(visitor) {
  37461. return this.accept$1$1(visitor, type$.dynamic);
  37462. },
  37463. toString$0(_) {
  37464. var t1 = this.children;
  37465. return "@supports " + this.condition.toString$0(0) + " {" + (t1 && B.JSArray_methods).join$1(t1, " ") + "}";
  37466. },
  37467. get$span(receiver) {
  37468. return this.span;
  37469. }
  37470. };
  37471. A.UseRule.prototype = {
  37472. UseRule$4$configuration(url, namespace, span, configuration) {
  37473. var t1, t2, _i, variable;
  37474. for (t1 = this.configuration, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  37475. variable = t1[_i];
  37476. if (variable.isGuarded)
  37477. throw A.wrapException(A.ArgumentError$value(variable, "configured variable", "can't be guarded in a @use rule."));
  37478. }
  37479. },
  37480. accept$1$1(visitor) {
  37481. return visitor.visitUseRule$1(this);
  37482. },
  37483. accept$1(visitor) {
  37484. return this.accept$1$1(visitor, type$.dynamic);
  37485. },
  37486. toString$0(_) {
  37487. var t1 = this.url,
  37488. t2 = "@use " + A.StringExpression_quoteText(t1.toString$0(0)),
  37489. basename = t1.get$pathSegments().length === 0 ? "" : B.JSArray_methods.get$last(t1.get$pathSegments()),
  37490. dot = B.JSString_methods.indexOf$1(basename, ".");
  37491. t1 = this.namespace;
  37492. if (t1 !== B.JSString_methods.substring$2(basename, 0, dot === -1 ? basename.length : dot))
  37493. t1 = t2 + (" as " + (t1 == null ? "*" : t1));
  37494. else
  37495. t1 = t2;
  37496. t2 = this.configuration;
  37497. t1 = (t2.length !== 0 ? t1 + (" with (" + B.JSArray_methods.join$1(t2, ", ") + ")") : t1) + ";";
  37498. return t1.charCodeAt(0) == 0 ? t1 : t1;
  37499. },
  37500. $isAstNode: 1,
  37501. $isStatement: 1,
  37502. get$span(receiver) {
  37503. return this.span;
  37504. }
  37505. };
  37506. A.VariableDeclaration.prototype = {
  37507. accept$1$1(visitor) {
  37508. return visitor.visitVariableDeclaration$1(this);
  37509. },
  37510. accept$1(visitor) {
  37511. return this.accept$1$1(visitor, type$.dynamic);
  37512. },
  37513. toString$0(_) {
  37514. var t1 = this.namespace;
  37515. t1 = t1 != null ? "" + (t1 + ".") : "";
  37516. t1 += "$" + this.name + ": " + this.expression.toString$0(0) + ";";
  37517. return t1.charCodeAt(0) == 0 ? t1 : t1;
  37518. },
  37519. $isAstNode: 1,
  37520. $isStatement: 1,
  37521. get$span(receiver) {
  37522. return this.span;
  37523. }
  37524. };
  37525. A.WarnRule.prototype = {
  37526. accept$1$1(visitor) {
  37527. return visitor.visitWarnRule$1(this);
  37528. },
  37529. accept$1(visitor) {
  37530. return this.accept$1$1(visitor, type$.dynamic);
  37531. },
  37532. toString$0(_) {
  37533. return "@warn " + this.expression.toString$0(0) + ";";
  37534. },
  37535. $isAstNode: 1,
  37536. $isStatement: 1,
  37537. get$span(receiver) {
  37538. return this.span;
  37539. }
  37540. };
  37541. A.WhileRule.prototype = {
  37542. accept$1$1(visitor) {
  37543. return visitor.visitWhileRule$1(this);
  37544. },
  37545. accept$1(visitor) {
  37546. return this.accept$1$1(visitor, type$.dynamic);
  37547. },
  37548. toString$0(_) {
  37549. var t1 = this.children;
  37550. return "@while " + this.condition.toString$0(0) + " {" + (t1 && B.JSArray_methods).join$1(t1, " ") + "}";
  37551. },
  37552. get$span(receiver) {
  37553. return this.span;
  37554. }
  37555. };
  37556. A.SupportsAnything.prototype = {
  37557. toString$0(_) {
  37558. return "(" + this.contents.toString$0(0) + ")";
  37559. },
  37560. $isAstNode: 1,
  37561. get$span(receiver) {
  37562. return this.span;
  37563. }
  37564. };
  37565. A.SupportsDeclaration.prototype = {
  37566. get$isCustomProperty() {
  37567. var $name = this.name;
  37568. return $name instanceof A.StringExpression && !$name.hasQuotes && B.JSString_methods.startsWith$1($name.text.get$initialPlain(), "--");
  37569. },
  37570. toString$0(_) {
  37571. return "(" + this.name.toString$0(0) + ": " + this.value.toString$0(0) + ")";
  37572. },
  37573. $isAstNode: 1,
  37574. get$span(receiver) {
  37575. return this.span;
  37576. }
  37577. };
  37578. A.SupportsFunction.prototype = {
  37579. toString$0(_) {
  37580. return this.name.toString$0(0) + "(" + this.$arguments.toString$0(0) + ")";
  37581. },
  37582. $isAstNode: 1,
  37583. get$span(receiver) {
  37584. return this.span;
  37585. }
  37586. };
  37587. A.SupportsInterpolation.prototype = {
  37588. toString$0(_) {
  37589. return "#{" + this.expression.toString$0(0) + "}";
  37590. },
  37591. $isAstNode: 1,
  37592. get$span(receiver) {
  37593. return this.span;
  37594. }
  37595. };
  37596. A.SupportsNegation.prototype = {
  37597. toString$0(_) {
  37598. var t1 = this.condition;
  37599. if (t1 instanceof A.SupportsNegation || t1 instanceof A.SupportsOperation)
  37600. return "not (" + t1.toString$0(0) + ")";
  37601. else
  37602. return "not " + t1.toString$0(0);
  37603. },
  37604. $isAstNode: 1,
  37605. get$span(receiver) {
  37606. return this.span;
  37607. }
  37608. };
  37609. A.SupportsOperation.prototype = {
  37610. toString$0(_) {
  37611. var _this = this;
  37612. return _this._operation$_parenthesize$1(_this.left) + " " + _this.operator + " " + _this._operation$_parenthesize$1(_this.right);
  37613. },
  37614. _operation$_parenthesize$1(condition) {
  37615. var t1;
  37616. if (!(condition instanceof A.SupportsNegation))
  37617. t1 = condition instanceof A.SupportsOperation && condition.operator === this.operator;
  37618. else
  37619. t1 = true;
  37620. return t1 ? "(" + condition.toString$0(0) + ")" : condition.toString$0(0);
  37621. },
  37622. $isAstNode: 1,
  37623. get$span(receiver) {
  37624. return this.span;
  37625. }
  37626. };
  37627. A.Selector.prototype = {
  37628. assertNotBogus$1$name($name) {
  37629. var t1;
  37630. if (!this.accept$1(B._IsBogusVisitor_true))
  37631. return;
  37632. t1 = this.toString$0(0);
  37633. A.EvaluationContext_current().warn$2$deprecation(0, "$" + $name + ": " + (t1 + string$.x20is_nov), true);
  37634. },
  37635. toString$0(_) {
  37636. var visitor = A._SerializeVisitor$(null, true, null, true, false, null, true);
  37637. this.accept$1(visitor);
  37638. return visitor._serialize$_buffer.toString$0(0);
  37639. }
  37640. };
  37641. A._IsInvisibleVisitor0.prototype = {
  37642. visitSelectorList$1(list) {
  37643. return B.JSArray_methods.every$1(list.components, this.get$visitComplexSelector());
  37644. },
  37645. visitComplexSelector$1(complex) {
  37646. var t1;
  37647. if (!this.super$AnySelectorVisitor$visitComplexSelector(complex))
  37648. t1 = this.includeBogus && complex.accept$1(B._IsBogusVisitor_false);
  37649. else
  37650. t1 = true;
  37651. return t1;
  37652. },
  37653. visitPlaceholderSelector$1(placeholder) {
  37654. return true;
  37655. },
  37656. visitPseudoSelector$1(pseudo) {
  37657. var t1,
  37658. selector = pseudo.selector;
  37659. if (selector == null)
  37660. return false;
  37661. if (pseudo.name === "not")
  37662. t1 = this.includeBogus && selector.accept$1(B._IsBogusVisitor_true);
  37663. else
  37664. t1 = this.visitSelectorList$1(selector);
  37665. return t1;
  37666. }
  37667. };
  37668. A._IsBogusVisitor.prototype = {
  37669. visitComplexSelector$1(complex) {
  37670. var t2, t3,
  37671. t1 = complex.components;
  37672. if (t1.length === 0)
  37673. return complex.leadingCombinators.length !== 0;
  37674. else {
  37675. t2 = complex.leadingCombinators;
  37676. t3 = this.includeLeadingCombinator ? 0 : 1;
  37677. return t2.length > t3 || B.JSArray_methods.get$last(t1).combinators.length !== 0 || B.JSArray_methods.any$1(t1, new A._IsBogusVisitor_visitComplexSelector_closure(this));
  37678. }
  37679. },
  37680. visitPseudoSelector$1(pseudo) {
  37681. var selector = pseudo.selector;
  37682. if (selector == null)
  37683. return false;
  37684. return pseudo.name === "has" ? selector.accept$1(B._IsBogusVisitor_false) : selector.accept$1(B._IsBogusVisitor_true);
  37685. }
  37686. };
  37687. A._IsBogusVisitor_visitComplexSelector_closure.prototype = {
  37688. call$1(component) {
  37689. return component.combinators.length > 1 || this.$this.visitCompoundSelector$1(component.selector);
  37690. },
  37691. $signature: 48
  37692. };
  37693. A._IsUselessVisitor.prototype = {
  37694. visitComplexSelector$1(complex) {
  37695. return complex.leadingCombinators.length > 1 || B.JSArray_methods.any$1(complex.components, new A._IsUselessVisitor_visitComplexSelector_closure(this));
  37696. },
  37697. visitPseudoSelector$1(pseudo) {
  37698. return pseudo.accept$1(B._IsBogusVisitor_true);
  37699. }
  37700. };
  37701. A._IsUselessVisitor_visitComplexSelector_closure.prototype = {
  37702. call$1(component) {
  37703. return component.combinators.length > 1 || this.$this.visitCompoundSelector$1(component.selector);
  37704. },
  37705. $signature: 48
  37706. };
  37707. A.__IsBogusVisitor_Object_AnySelectorVisitor.prototype = {};
  37708. A.__IsInvisibleVisitor_Object_AnySelectorVisitor.prototype = {};
  37709. A.__IsUselessVisitor_Object_AnySelectorVisitor.prototype = {};
  37710. A.AttributeSelector.prototype = {
  37711. accept$1$1(visitor) {
  37712. return visitor.visitAttributeSelector$1(this);
  37713. },
  37714. accept$1(visitor) {
  37715. return this.accept$1$1(visitor, type$.dynamic);
  37716. },
  37717. $eq(_, other) {
  37718. var _this = this;
  37719. if (other == null)
  37720. return false;
  37721. return other instanceof A.AttributeSelector && other.name.$eq(0, _this.name) && other.op == _this.op && other.value == _this.value && other.modifier == _this.modifier;
  37722. },
  37723. get$hashCode(_) {
  37724. var _this = this,
  37725. t1 = _this.name;
  37726. return (B.JSString_methods.get$hashCode(t1.name) ^ J.get$hashCode$(t1.namespace) ^ J.get$hashCode$(_this.op) ^ J.get$hashCode$(_this.value) ^ J.get$hashCode$(_this.modifier)) >>> 0;
  37727. }
  37728. };
  37729. A.AttributeOperator.prototype = {
  37730. toString$0(_) {
  37731. return this._attribute$_text;
  37732. }
  37733. };
  37734. A.ClassSelector.prototype = {
  37735. $eq(_, other) {
  37736. if (other == null)
  37737. return false;
  37738. return other instanceof A.ClassSelector && other.name === this.name;
  37739. },
  37740. accept$1$1(visitor) {
  37741. return visitor.visitClassSelector$1(this);
  37742. },
  37743. accept$1(visitor) {
  37744. return this.accept$1$1(visitor, type$.dynamic);
  37745. },
  37746. addSuffix$1(suffix) {
  37747. return new A.ClassSelector(this.name + suffix);
  37748. },
  37749. get$hashCode(_) {
  37750. return B.JSString_methods.get$hashCode(this.name);
  37751. }
  37752. };
  37753. A.Combinator.prototype = {
  37754. toString$0(_) {
  37755. return this._combinator$_text;
  37756. }
  37757. };
  37758. A.ComplexSelector.prototype = {
  37759. get$specificity() {
  37760. var result, _this = this,
  37761. value = _this.__ComplexSelector_specificity_FI;
  37762. if (value === $) {
  37763. result = B.JSArray_methods.fold$2(_this.components, 0, new A.ComplexSelector_specificity_closure());
  37764. _this.__ComplexSelector_specificity_FI !== $ && A.throwUnnamedLateFieldADI();
  37765. _this.__ComplexSelector_specificity_FI = result;
  37766. value = result;
  37767. }
  37768. return value;
  37769. },
  37770. get$singleCompound() {
  37771. if (this.leadingCombinators.length === 0) {
  37772. var t1 = this.components;
  37773. t1 = t1.length === 1 && B.JSArray_methods.get$first(t1).combinators.length === 0;
  37774. } else
  37775. t1 = false;
  37776. return t1 ? B.JSArray_methods.get$first(this.components).selector : null;
  37777. },
  37778. accept$1$1(visitor) {
  37779. return visitor.visitComplexSelector$1(this);
  37780. },
  37781. accept$1(visitor) {
  37782. return this.accept$1$1(visitor, type$.dynamic);
  37783. },
  37784. isSuperselector$1(other) {
  37785. return this.leadingCombinators.length === 0 && other.leadingCombinators.length === 0 && A.complexIsSuperselector(this.components, other.components);
  37786. },
  37787. withAdditionalCombinators$1(combinators) {
  37788. var t1, t2, t3, _this = this;
  37789. if (combinators.length === 0)
  37790. return _this;
  37791. else {
  37792. t1 = _this.components;
  37793. t2 = _this.leadingCombinators;
  37794. if (t1.length === 0) {
  37795. t1 = A.List_List$of(t2, true, type$.Combinator);
  37796. B.JSArray_methods.addAll$1(t1, combinators);
  37797. return A.ComplexSelector$(t1, B.List_empty2, _this.lineBreak || false);
  37798. } else {
  37799. t3 = A.List_List$of(A.IterableExtension_get_exceptLast(t1), true, type$.ComplexSelectorComponent);
  37800. t3.push(B.JSArray_methods.get$last(t1).withAdditionalCombinators$1(combinators));
  37801. return A.ComplexSelector$(t2, t3, _this.lineBreak || false);
  37802. }
  37803. }
  37804. },
  37805. concatenate$2$forceLineBreak(child, forceLineBreak) {
  37806. var t2, t3, t4, t5, _this = this,
  37807. t1 = child.leadingCombinators;
  37808. if (t1.length === 0) {
  37809. t1 = A.List_List$of(_this.components, true, type$.ComplexSelectorComponent);
  37810. B.JSArray_methods.addAll$1(t1, child.components);
  37811. t2 = _this.lineBreak || child.lineBreak || forceLineBreak;
  37812. return A.ComplexSelector$(_this.leadingCombinators, t1, t2);
  37813. } else {
  37814. t2 = _this.components;
  37815. t3 = _this.leadingCombinators;
  37816. t4 = child.components;
  37817. if (t2.length === 0) {
  37818. t2 = A.List_List$of(t3, true, type$.Combinator);
  37819. B.JSArray_methods.addAll$1(t2, t1);
  37820. return A.ComplexSelector$(t2, t4, _this.lineBreak || child.lineBreak || forceLineBreak);
  37821. } else {
  37822. t5 = A.List_List$of(A.IterableExtension_get_exceptLast(t2), true, type$.ComplexSelectorComponent);
  37823. t5.push(B.JSArray_methods.get$last(t2).withAdditionalCombinators$1(t1));
  37824. B.JSArray_methods.addAll$1(t5, t4);
  37825. return A.ComplexSelector$(t3, t5, _this.lineBreak || child.lineBreak || forceLineBreak);
  37826. }
  37827. }
  37828. },
  37829. concatenate$1(child) {
  37830. return this.concatenate$2$forceLineBreak(child, false);
  37831. },
  37832. get$hashCode(_) {
  37833. return B.C_ListEquality0.hash$1(this.leadingCombinators) ^ B.C_ListEquality0.hash$1(this.components);
  37834. },
  37835. $eq(_, other) {
  37836. if (other == null)
  37837. return false;
  37838. return other instanceof A.ComplexSelector && B.C_ListEquality.equals$2(0, this.leadingCombinators, other.leadingCombinators) && B.C_ListEquality.equals$2(0, this.components, other.components);
  37839. }
  37840. };
  37841. A.ComplexSelector_specificity_closure.prototype = {
  37842. call$2(sum, component) {
  37843. return sum + component.selector.get$specificity();
  37844. },
  37845. $signature: 359
  37846. };
  37847. A.ComplexSelectorComponent.prototype = {
  37848. withAdditionalCombinators$1(combinators) {
  37849. var t1, t2;
  37850. if (combinators.length === 0)
  37851. t1 = this;
  37852. else {
  37853. t1 = type$.Combinator;
  37854. t2 = A.List_List$of(this.combinators, true, t1);
  37855. B.JSArray_methods.addAll$1(t2, combinators);
  37856. t1 = new A.ComplexSelectorComponent(this.selector, A.List_List$unmodifiable(t2, t1));
  37857. }
  37858. return t1;
  37859. },
  37860. get$hashCode(_) {
  37861. return B.C_ListEquality0.hash$1(this.selector.components) ^ B.C_ListEquality0.hash$1(this.combinators);
  37862. },
  37863. $eq(_, other) {
  37864. var t1;
  37865. if (other == null)
  37866. return false;
  37867. if (other instanceof A.ComplexSelectorComponent) {
  37868. t1 = B.C_ListEquality.equals$2(0, this.selector.components, other.selector.components);
  37869. t1 = t1 && B.C_ListEquality.equals$2(0, this.combinators, other.combinators);
  37870. } else
  37871. t1 = false;
  37872. return t1;
  37873. },
  37874. toString$0(_) {
  37875. var t1 = this.combinators;
  37876. return A.serializeSelector(this.selector, true) + new A.MappedListIterable(t1, new A.ComplexSelectorComponent_toString_closure(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$1(0, "");
  37877. }
  37878. };
  37879. A.ComplexSelectorComponent_toString_closure.prototype = {
  37880. call$1(combinator) {
  37881. return " " + combinator.toString$0(0);
  37882. },
  37883. $signature: 370
  37884. };
  37885. A.CompoundSelector.prototype = {
  37886. get$specificity() {
  37887. var result, _this = this,
  37888. value = _this.__CompoundSelector_specificity_FI;
  37889. if (value === $) {
  37890. result = B.JSArray_methods.fold$2(_this.components, 0, new A.CompoundSelector_specificity_closure());
  37891. _this.__CompoundSelector_specificity_FI !== $ && A.throwUnnamedLateFieldADI();
  37892. _this.__CompoundSelector_specificity_FI = result;
  37893. value = result;
  37894. }
  37895. return value;
  37896. },
  37897. accept$1$1(visitor) {
  37898. return visitor.visitCompoundSelector$1(this);
  37899. },
  37900. accept$1(visitor) {
  37901. return this.accept$1$1(visitor, type$.dynamic);
  37902. },
  37903. get$hashCode(_) {
  37904. return B.C_ListEquality0.hash$1(this.components);
  37905. },
  37906. $eq(_, other) {
  37907. if (other == null)
  37908. return false;
  37909. return other instanceof A.CompoundSelector && B.C_ListEquality.equals$2(0, this.components, other.components);
  37910. }
  37911. };
  37912. A.CompoundSelector_specificity_closure.prototype = {
  37913. call$2(sum, component) {
  37914. return sum + component.get$specificity();
  37915. },
  37916. $signature: 445
  37917. };
  37918. A.IDSelector.prototype = {
  37919. get$specificity() {
  37920. return A._asInt(Math.pow(A.SimpleSelector.prototype.get$specificity.call(this), 2));
  37921. },
  37922. accept$1$1(visitor) {
  37923. return visitor.visitIDSelector$1(this);
  37924. },
  37925. accept$1(visitor) {
  37926. return this.accept$1$1(visitor, type$.dynamic);
  37927. },
  37928. addSuffix$1(suffix) {
  37929. return new A.IDSelector(this.name + suffix);
  37930. },
  37931. unify$1(compound) {
  37932. if (B.JSArray_methods.any$1(compound, new A.IDSelector_unify_closure(this)))
  37933. return null;
  37934. return this.super$SimpleSelector$unify(compound);
  37935. },
  37936. $eq(_, other) {
  37937. if (other == null)
  37938. return false;
  37939. return other instanceof A.IDSelector && other.name === this.name;
  37940. },
  37941. get$hashCode(_) {
  37942. return B.JSString_methods.get$hashCode(this.name);
  37943. }
  37944. };
  37945. A.IDSelector_unify_closure.prototype = {
  37946. call$1(simple) {
  37947. var t1;
  37948. if (simple instanceof A.IDSelector) {
  37949. t1 = simple.name;
  37950. t1 = this.$this.name !== t1;
  37951. } else
  37952. t1 = false;
  37953. return t1;
  37954. },
  37955. $signature: 14
  37956. };
  37957. A.SelectorList.prototype = {
  37958. get$asSassList() {
  37959. var t1 = this.components;
  37960. return A.SassList$(new A.MappedListIterable(t1, new A.SelectorList_asSassList_closure(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value>")), B.ListSeparator_rXA, false);
  37961. },
  37962. accept$1$1(visitor) {
  37963. return visitor.visitSelectorList$1(this);
  37964. },
  37965. accept$1(visitor) {
  37966. return this.accept$1$1(visitor, type$.dynamic);
  37967. },
  37968. unify$1(other) {
  37969. var t3, t4, t5, t6, _i, complex1, _i0, t7,
  37970. t1 = type$.JSArray_ComplexSelector,
  37971. t2 = A._setArrayType([], t1);
  37972. for (t3 = this.components, t4 = t3.length, t5 = other.components, t6 = t5.length, _i = 0; _i < t4; ++_i) {
  37973. complex1 = t3[_i];
  37974. for (_i0 = 0; _i0 < t6; ++_i0) {
  37975. t7 = A.unifyComplex(A._setArrayType([complex1, t5[_i0]], t1));
  37976. if (t7 != null)
  37977. B.JSArray_methods.addAll$1(t2, t7);
  37978. }
  37979. }
  37980. return t2.length === 0 ? null : A.SelectorList$(t2);
  37981. },
  37982. resolveParentSelectors$2$implicitParent($parent, implicitParent) {
  37983. var t1, _this = this;
  37984. if ($parent == null) {
  37985. if (!B.JSArray_methods.any$1(_this.components, _this.get$_complexContainsParentSelector()))
  37986. return _this;
  37987. throw A.wrapException(A.SassScriptException$(string$.Top_le, null));
  37988. }
  37989. t1 = _this.components;
  37990. return A.SelectorList$(A.flattenVertically(new A.MappedListIterable(t1, new A.SelectorList_resolveParentSelectors_closure(_this, implicitParent, $parent), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Iterable<ComplexSelector>>")), type$.ComplexSelector));
  37991. },
  37992. resolveParentSelectors$1($parent) {
  37993. return this.resolveParentSelectors$2$implicitParent($parent, true);
  37994. },
  37995. _complexContainsParentSelector$1(complex) {
  37996. return B.JSArray_methods.any$1(complex.components, new A.SelectorList__complexContainsParentSelector_closure());
  37997. },
  37998. _resolveParentSelectorsCompound$2(component, $parent) {
  37999. var resolvedSimples, parentSelector, t1,
  38000. simples = component.selector.components,
  38001. containsSelectorPseudo = B.JSArray_methods.any$1(simples, new A.SelectorList__resolveParentSelectorsCompound_closure());
  38002. if (!containsSelectorPseudo && !(B.JSArray_methods.get$first(simples) instanceof A.ParentSelector))
  38003. return null;
  38004. resolvedSimples = containsSelectorPseudo ? new A.MappedListIterable(simples, new A.SelectorList__resolveParentSelectorsCompound_closure0($parent), A._arrayInstanceType(simples)._eval$1("MappedListIterable<1,SimpleSelector>")) : simples;
  38005. parentSelector = B.JSArray_methods.get$first(simples);
  38006. if (!(parentSelector instanceof A.ParentSelector))
  38007. return A._setArrayType([A.ComplexSelector$(B.List_empty0, A._setArrayType([new A.ComplexSelectorComponent(A.CompoundSelector$(resolvedSimples), A.List_List$unmodifiable(component.combinators, type$.Combinator))], type$.JSArray_ComplexSelectorComponent), false)], type$.JSArray_ComplexSelector);
  38008. else if (simples.length === 1 && parentSelector.suffix == null)
  38009. return $parent.withAdditionalCombinators$1(component.combinators).components;
  38010. t1 = $parent.components;
  38011. return new A.MappedListIterable(t1, new A.SelectorList__resolveParentSelectorsCompound_closure1(parentSelector, resolvedSimples, component), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector>"));
  38012. },
  38013. isSuperselector$1(other) {
  38014. return A.listIsSuperselector(this.components, other.components);
  38015. },
  38016. withAdditionalCombinators$1(combinators) {
  38017. var t1;
  38018. if (combinators.length === 0)
  38019. t1 = this;
  38020. else {
  38021. t1 = this.components;
  38022. t1 = A.SelectorList$(new A.MappedListIterable(t1, new A.SelectorList_withAdditionalCombinators_closure(combinators), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector>")));
  38023. }
  38024. return t1;
  38025. },
  38026. get$hashCode(_) {
  38027. return B.C_ListEquality0.hash$1(this.components);
  38028. },
  38029. $eq(_, other) {
  38030. if (other == null)
  38031. return false;
  38032. return other instanceof A.SelectorList && B.C_ListEquality.equals$2(0, this.components, other.components);
  38033. }
  38034. };
  38035. A.SelectorList_asSassList_closure.prototype = {
  38036. call$1(complex) {
  38037. var t3, t4, _i, component, t5, visitor, t6, t7, _i0,
  38038. t1 = type$.JSArray_Value,
  38039. t2 = A._setArrayType([], t1);
  38040. for (t3 = complex.leadingCombinators, t4 = t3.length, _i = 0; _i < t4; ++_i)
  38041. t2.push(new A.SassString(t3[_i]._combinator$_text, false));
  38042. for (t3 = complex.components, t4 = t3.length, _i = 0; _i < t4; ++_i) {
  38043. component = t3[_i];
  38044. t5 = component.selector;
  38045. visitor = A._SerializeVisitor$(null, true, null, true, false, null, true);
  38046. t5.accept$1(visitor);
  38047. t5 = A._setArrayType([new A.SassString(visitor._serialize$_buffer.toString$0(0), false)], t1);
  38048. for (t6 = component.combinators, t7 = t6.length, _i0 = 0; _i0 < t7; ++_i0)
  38049. t5.push(new A.SassString(t6[_i0]._combinator$_text, false));
  38050. B.JSArray_methods.addAll$1(t2, t5);
  38051. }
  38052. return A.SassList$(t2, B.ListSeparator_EVt, false);
  38053. },
  38054. $signature: 591
  38055. };
  38056. A.SelectorList_resolveParentSelectors_closure.prototype = {
  38057. call$1(complex) {
  38058. var t2, newComplexes, t3, t4, t5, t6, t7, t8, t9, _i, component, resolved, t10, result, t11, i, t12, _i0, newComplex, t13, _this = this,
  38059. _s56_ = string$.leadin,
  38060. t1 = _this.$this;
  38061. if (!t1._complexContainsParentSelector$1(complex)) {
  38062. if (!_this.implicitParent)
  38063. return A._setArrayType([complex], type$.JSArray_ComplexSelector);
  38064. t1 = _this.parent.components;
  38065. return new A.MappedListIterable(t1, new A.SelectorList_resolveParentSelectors__closure(complex), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector>"));
  38066. }
  38067. t2 = type$.JSArray_ComplexSelector;
  38068. newComplexes = A._setArrayType([], t2);
  38069. for (t3 = complex.components, t4 = t3.length, t5 = _this.parent, t6 = type$.Combinator, t7 = type$.ComplexSelectorComponent, t8 = complex.leadingCombinators, t9 = type$.JSArray_ComplexSelectorComponent, _i = 0; _i < t4; ++_i) {
  38070. component = t3[_i];
  38071. resolved = t1._resolveParentSelectorsCompound$2(component, t5);
  38072. if (resolved == null)
  38073. if (newComplexes.length === 0) {
  38074. t10 = A._setArrayType([component], t9);
  38075. result = A.List_List$from(t8, false, t6);
  38076. result.fixed$length = Array;
  38077. result.immutable$list = Array;
  38078. t11 = result;
  38079. result = A.List_List$from(t10, false, t7);
  38080. result.fixed$length = Array;
  38081. result.immutable$list = Array;
  38082. t10 = result;
  38083. if (t11.length === 0 && t10.length === 0)
  38084. A.throwExpression(A.ArgumentError$(_s56_, null));
  38085. newComplexes.push(new A.ComplexSelector(t11, t10, false));
  38086. } else
  38087. for (i = 0; i < newComplexes.length; ++i) {
  38088. t10 = newComplexes[i];
  38089. t11 = t10.leadingCombinators;
  38090. t12 = A.List_List$of(t10.components, true, t7);
  38091. t12.push(component);
  38092. t10 = t10.lineBreak || false;
  38093. result = A.List_List$from(t11, false, t6);
  38094. result.fixed$length = Array;
  38095. result.immutable$list = Array;
  38096. t11 = result;
  38097. result = A.List_List$from(t12, false, t7);
  38098. result.fixed$length = Array;
  38099. result.immutable$list = Array;
  38100. t12 = result;
  38101. if (t11.length === 0 && t12.length === 0)
  38102. A.throwExpression(A.ArgumentError$(_s56_, null));
  38103. newComplexes[i] = new A.ComplexSelector(t11, t12, t10);
  38104. }
  38105. else if (newComplexes.length === 0)
  38106. B.JSArray_methods.addAll$1(newComplexes, resolved);
  38107. else {
  38108. t10 = A._setArrayType([], t2);
  38109. for (t11 = newComplexes.length, t12 = J.getInterceptor$ax(resolved), _i0 = 0; _i0 < newComplexes.length; newComplexes.length === t11 || (0, A.throwConcurrentModificationError)(newComplexes), ++_i0) {
  38110. newComplex = newComplexes[_i0];
  38111. for (t13 = t12.get$iterator(resolved); t13.moveNext$0();)
  38112. t10.push(newComplex.concatenate$1(t13.get$current(t13)));
  38113. }
  38114. newComplexes = t10;
  38115. }
  38116. }
  38117. return newComplexes;
  38118. },
  38119. $signature: 576
  38120. };
  38121. A.SelectorList_resolveParentSelectors__closure.prototype = {
  38122. call$1(parentComplex) {
  38123. return parentComplex.concatenate$1(this.complex);
  38124. },
  38125. $signature: 63
  38126. };
  38127. A.SelectorList__complexContainsParentSelector_closure.prototype = {
  38128. call$1(component) {
  38129. return B.JSArray_methods.any$1(component.selector.components, new A.SelectorList__complexContainsParentSelector__closure());
  38130. },
  38131. $signature: 48
  38132. };
  38133. A.SelectorList__complexContainsParentSelector__closure.prototype = {
  38134. call$1(simple) {
  38135. var selector;
  38136. if (simple instanceof A.ParentSelector)
  38137. return true;
  38138. if (!(simple instanceof A.PseudoSelector))
  38139. return false;
  38140. selector = simple.selector;
  38141. return selector != null && B.JSArray_methods.any$1(selector.components, selector.get$_complexContainsParentSelector());
  38142. },
  38143. $signature: 14
  38144. };
  38145. A.SelectorList__resolveParentSelectorsCompound_closure.prototype = {
  38146. call$1(simple) {
  38147. var selector;
  38148. if (!(simple instanceof A.PseudoSelector))
  38149. return false;
  38150. selector = simple.selector;
  38151. return selector != null && B.JSArray_methods.any$1(selector.components, selector.get$_complexContainsParentSelector());
  38152. },
  38153. $signature: 14
  38154. };
  38155. A.SelectorList__resolveParentSelectorsCompound_closure0.prototype = {
  38156. call$1(simple) {
  38157. var selector, t1, t2, t3;
  38158. if (!(simple instanceof A.PseudoSelector))
  38159. return simple;
  38160. selector = simple.selector;
  38161. if (selector == null)
  38162. return simple;
  38163. if (!B.JSArray_methods.any$1(selector.components, selector.get$_complexContainsParentSelector()))
  38164. return simple;
  38165. t1 = selector.resolveParentSelectors$2$implicitParent(this.parent, false);
  38166. t2 = simple.name;
  38167. t3 = simple.isClass;
  38168. return A.PseudoSelector$(t2, simple.argument, !t3, t1);
  38169. },
  38170. $signature: 575
  38171. };
  38172. A.SelectorList__resolveParentSelectorsCompound_closure1.prototype = {
  38173. call$1(complex) {
  38174. var suffix, lastSimples, t2, t3, t4, last,
  38175. t1 = complex.components,
  38176. lastComponent = B.JSArray_methods.get$last(t1);
  38177. if (lastComponent.combinators.length !== 0)
  38178. throw A.wrapException(A.SassScriptException$('Parent "' + complex.toString$0(0) + '" is incompatible with this selector.', null));
  38179. suffix = this.parentSelector.suffix;
  38180. lastSimples = lastComponent.selector.components;
  38181. t2 = type$.SimpleSelector;
  38182. t3 = this.resolvedSimples;
  38183. t4 = J.getInterceptor$ax(t3);
  38184. if (suffix == null) {
  38185. t2 = A.List_List$of(lastSimples, true, t2);
  38186. B.JSArray_methods.addAll$1(t2, t4.skip$1(t3, 1));
  38187. } else {
  38188. t2 = A.List_List$of(A.IterableExtension_get_exceptLast(lastSimples), true, t2);
  38189. t2.push(B.JSArray_methods.get$last(lastSimples).addSuffix$1(suffix));
  38190. B.JSArray_methods.addAll$1(t2, t4.skip$1(t3, 1));
  38191. }
  38192. last = A.CompoundSelector$(t2);
  38193. t2 = complex.leadingCombinators;
  38194. t1 = A.List_List$of(A.IterableExtension_get_exceptLast(t1), true, type$.ComplexSelectorComponent);
  38195. t1.push(new A.ComplexSelectorComponent(last, A.List_List$unmodifiable(this.component.combinators, type$.Combinator)));
  38196. return A.ComplexSelector$(t2, t1, complex.lineBreak);
  38197. },
  38198. $signature: 63
  38199. };
  38200. A.SelectorList_withAdditionalCombinators_closure.prototype = {
  38201. call$1(complex) {
  38202. return complex.withAdditionalCombinators$1(this.combinators);
  38203. },
  38204. $signature: 63
  38205. };
  38206. A.ParentSelector.prototype = {
  38207. accept$1$1(visitor) {
  38208. return visitor.visitParentSelector$1(this);
  38209. },
  38210. accept$1(visitor) {
  38211. return this.accept$1$1(visitor, type$.dynamic);
  38212. },
  38213. unify$1(compound) {
  38214. return A.throwExpression(A.UnsupportedError$("& doesn't support unification."));
  38215. }
  38216. };
  38217. A.PlaceholderSelector.prototype = {
  38218. accept$1$1(visitor) {
  38219. return visitor.visitPlaceholderSelector$1(this);
  38220. },
  38221. accept$1(visitor) {
  38222. return this.accept$1$1(visitor, type$.dynamic);
  38223. },
  38224. addSuffix$1(suffix) {
  38225. return new A.PlaceholderSelector(this.name + suffix);
  38226. },
  38227. $eq(_, other) {
  38228. if (other == null)
  38229. return false;
  38230. return other instanceof A.PlaceholderSelector && other.name === this.name;
  38231. },
  38232. get$hashCode(_) {
  38233. return B.JSString_methods.get$hashCode(this.name);
  38234. }
  38235. };
  38236. A.PseudoSelector.prototype = {
  38237. get$isHostContext() {
  38238. return this.isClass && this.name === "host-context" && this.selector != null;
  38239. },
  38240. get$specificity() {
  38241. var result, _this = this,
  38242. value = _this.__PseudoSelector_specificity_FI;
  38243. if (value === $) {
  38244. result = new A.PseudoSelector_specificity_closure(_this).call$0();
  38245. _this.__PseudoSelector_specificity_FI !== $ && A.throwUnnamedLateFieldADI();
  38246. _this.__PseudoSelector_specificity_FI = result;
  38247. value = result;
  38248. }
  38249. return value;
  38250. },
  38251. addSuffix$1(suffix) {
  38252. var _this = this;
  38253. if (_this.argument != null || _this.selector != null)
  38254. _this.super$SimpleSelector$addSuffix(suffix);
  38255. return A.PseudoSelector$(_this.name + suffix, null, !_this.isClass, null);
  38256. },
  38257. unify$1(compound) {
  38258. var other, result, t2, addedThis, _i, simple, _this = this,
  38259. t1 = _this.name;
  38260. if (t1 === "host" || t1 === "host-context") {
  38261. if (!B.JSArray_methods.every$1(compound, new A.PseudoSelector_unify_closure()))
  38262. return null;
  38263. } else if (compound.length === 1) {
  38264. other = B.JSArray_methods.get$first(compound);
  38265. if (!(other instanceof A.UniversalSelector))
  38266. if (other instanceof A.PseudoSelector)
  38267. t1 = other.isClass && other.name === "host" || other.get$isHostContext();
  38268. else
  38269. t1 = false;
  38270. else
  38271. t1 = true;
  38272. if (t1)
  38273. return other.unify$1(A._setArrayType([_this], type$.JSArray_SimpleSelector));
  38274. }
  38275. if (B.JSArray_methods.contains$1(compound, _this))
  38276. return compound;
  38277. result = A._setArrayType([], type$.JSArray_SimpleSelector);
  38278. for (t1 = compound.length, t2 = !_this.isClass, addedThis = false, _i = 0; _i < compound.length; compound.length === t1 || (0, A.throwConcurrentModificationError)(compound), ++_i) {
  38279. simple = compound[_i];
  38280. if (simple instanceof A.PseudoSelector && !simple.isClass) {
  38281. if (t2)
  38282. return null;
  38283. result.push(_this);
  38284. addedThis = true;
  38285. }
  38286. result.push(simple);
  38287. }
  38288. if (!addedThis)
  38289. result.push(_this);
  38290. return result;
  38291. },
  38292. isSuperselector$1(other) {
  38293. var selector, t1, _this = this;
  38294. if (_this.super$SimpleSelector$isSuperselector(other))
  38295. return true;
  38296. selector = _this.selector;
  38297. if (selector == null)
  38298. return _this.$eq(0, other);
  38299. if (other instanceof A.PseudoSelector && !_this.isClass && !other.isClass && _this.normalizedName === "slotted" && other.name === _this.name) {
  38300. t1 = A.NullableExtension_andThen(other.selector, selector.get$isSuperselector());
  38301. return t1 == null ? false : t1;
  38302. }
  38303. t1 = type$.JSArray_SimpleSelector;
  38304. return A.compoundIsSuperselector(A.CompoundSelector$(A._setArrayType([_this], t1)), A.CompoundSelector$(A._setArrayType([other], t1)), null);
  38305. },
  38306. accept$1$1(visitor) {
  38307. return visitor.visitPseudoSelector$1(this);
  38308. },
  38309. accept$1(visitor) {
  38310. return this.accept$1$1(visitor, type$.dynamic);
  38311. },
  38312. $eq(_, other) {
  38313. var _this = this;
  38314. if (other == null)
  38315. return false;
  38316. return other instanceof A.PseudoSelector && other.name === _this.name && other.isClass === _this.isClass && other.argument == _this.argument && J.$eq$(other.selector, _this.selector);
  38317. },
  38318. get$hashCode(_) {
  38319. var _this = this,
  38320. t1 = B.JSString_methods.get$hashCode(_this.name),
  38321. t2 = !_this.isClass ? 519018 : 218159;
  38322. return (t1 ^ t2 ^ J.get$hashCode$(_this.argument) ^ J.get$hashCode$(_this.selector)) >>> 0;
  38323. }
  38324. };
  38325. A.PseudoSelector_specificity_closure.prototype = {
  38326. call$0() {
  38327. var selector, t2,
  38328. t1 = this.$this;
  38329. if (!t1.isClass)
  38330. return 1;
  38331. selector = t1.selector;
  38332. if (selector == null)
  38333. return A.SimpleSelector.prototype.get$specificity.call(t1);
  38334. switch (t1.normalizedName) {
  38335. case "where":
  38336. return 0;
  38337. case "is":
  38338. case "not":
  38339. case "has":
  38340. case "matches":
  38341. t1 = selector.components;
  38342. return A.IterableIntegerExtension_get_max(new A.MappedListIterable(t1, new A.PseudoSelector_specificity__closure(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,int>")));
  38343. case "nth-child":
  38344. case "nth-last-child":
  38345. t1 = A.SimpleSelector.prototype.get$specificity.call(t1);
  38346. t2 = selector.components;
  38347. return t1 + A.IterableIntegerExtension_get_max(new A.MappedListIterable(t2, new A.PseudoSelector_specificity__closure0(), A._arrayInstanceType(t2)._eval$1("MappedListIterable<1,int>")));
  38348. default:
  38349. return A.SimpleSelector.prototype.get$specificity.call(t1);
  38350. }
  38351. },
  38352. $signature: 12
  38353. };
  38354. A.PseudoSelector_specificity__closure.prototype = {
  38355. call$1(component) {
  38356. return component.get$specificity();
  38357. },
  38358. $signature: 239
  38359. };
  38360. A.PseudoSelector_specificity__closure0.prototype = {
  38361. call$1(component) {
  38362. return component.get$specificity();
  38363. },
  38364. $signature: 239
  38365. };
  38366. A.PseudoSelector_unify_closure.prototype = {
  38367. call$1(simple) {
  38368. var t1;
  38369. if (simple instanceof A.PseudoSelector)
  38370. t1 = simple.isClass && simple.name === "host" || simple.selector != null;
  38371. else
  38372. t1 = false;
  38373. return t1;
  38374. },
  38375. $signature: 14
  38376. };
  38377. A.QualifiedName.prototype = {
  38378. $eq(_, other) {
  38379. if (other == null)
  38380. return false;
  38381. return other instanceof A.QualifiedName && other.name === this.name && other.namespace == this.namespace;
  38382. },
  38383. get$hashCode(_) {
  38384. return B.JSString_methods.get$hashCode(this.name) ^ J.get$hashCode$(this.namespace);
  38385. },
  38386. toString$0(_) {
  38387. var t1 = this.namespace,
  38388. t2 = this.name;
  38389. return t1 == null ? t2 : t1 + "|" + t2;
  38390. }
  38391. };
  38392. A.SimpleSelector.prototype = {
  38393. get$specificity() {
  38394. return 1000;
  38395. },
  38396. addSuffix$1(suffix) {
  38397. return A.throwExpression(A.SassScriptException$('Invalid parent selector "' + this.toString$0(0) + '"', null));
  38398. },
  38399. unify$1(compound) {
  38400. var other, t1, result, addedThis, _i, simple, _this = this;
  38401. if (compound.length === 1) {
  38402. other = B.JSArray_methods.get$first(compound);
  38403. if (!(other instanceof A.UniversalSelector))
  38404. if (other instanceof A.PseudoSelector)
  38405. t1 = other.isClass && other.name === "host" || other.get$isHostContext();
  38406. else
  38407. t1 = false;
  38408. else
  38409. t1 = true;
  38410. if (t1)
  38411. return other.unify$1(A._setArrayType([_this], type$.JSArray_SimpleSelector));
  38412. }
  38413. if (B.JSArray_methods.contains$1(compound, _this))
  38414. return compound;
  38415. result = A._setArrayType([], type$.JSArray_SimpleSelector);
  38416. for (t1 = compound.length, addedThis = false, _i = 0; _i < compound.length; compound.length === t1 || (0, A.throwConcurrentModificationError)(compound), ++_i) {
  38417. simple = compound[_i];
  38418. if (!addedThis && simple instanceof A.PseudoSelector) {
  38419. result.push(_this);
  38420. addedThis = true;
  38421. }
  38422. result.push(simple);
  38423. }
  38424. if (!addedThis)
  38425. result.push(_this);
  38426. return result;
  38427. },
  38428. isSuperselector$1(other) {
  38429. var list;
  38430. if (this.$eq(0, other))
  38431. return true;
  38432. if (other instanceof A.PseudoSelector && other.isClass) {
  38433. list = other.selector;
  38434. if (list != null && $._subselectorPseudos.contains$1(0, other.normalizedName))
  38435. return B.JSArray_methods.every$1(list.components, new A.SimpleSelector_isSuperselector_closure(this));
  38436. }
  38437. return false;
  38438. }
  38439. };
  38440. A.SimpleSelector_isSuperselector_closure.prototype = {
  38441. call$1(complex) {
  38442. var t1 = complex.components;
  38443. return t1.length !== 0 && B.JSArray_methods.any$1(B.JSArray_methods.get$last(t1).selector.components, new A.SimpleSelector_isSuperselector__closure(this.$this));
  38444. },
  38445. $signature: 16
  38446. };
  38447. A.SimpleSelector_isSuperselector__closure.prototype = {
  38448. call$1(simple) {
  38449. return this.$this.isSuperselector$1(simple);
  38450. },
  38451. $signature: 14
  38452. };
  38453. A.TypeSelector.prototype = {
  38454. get$specificity() {
  38455. return 1;
  38456. },
  38457. accept$1$1(visitor) {
  38458. return visitor.visitTypeSelector$1(this);
  38459. },
  38460. accept$1(visitor) {
  38461. return this.accept$1$1(visitor, type$.dynamic);
  38462. },
  38463. addSuffix$1(suffix) {
  38464. var t1 = this.name;
  38465. return new A.TypeSelector(new A.QualifiedName(t1.name + suffix, t1.namespace));
  38466. },
  38467. unify$1(compound) {
  38468. var unified, t1;
  38469. if (B.JSArray_methods.get$first(compound) instanceof A.UniversalSelector || B.JSArray_methods.get$first(compound) instanceof A.TypeSelector) {
  38470. unified = A.unifyUniversalAndElement(this, B.JSArray_methods.get$first(compound));
  38471. if (unified == null)
  38472. return null;
  38473. t1 = A._setArrayType([unified], type$.JSArray_SimpleSelector);
  38474. B.JSArray_methods.addAll$1(t1, A.SubListIterable$(compound, 1, null, A._arrayInstanceType(compound)._precomputed1));
  38475. return t1;
  38476. } else {
  38477. t1 = A._setArrayType([this], type$.JSArray_SimpleSelector);
  38478. B.JSArray_methods.addAll$1(t1, compound);
  38479. return t1;
  38480. }
  38481. },
  38482. isSuperselector$1(other) {
  38483. var t1, t2;
  38484. if (!this.super$SimpleSelector$isSuperselector(other))
  38485. if (other instanceof A.TypeSelector) {
  38486. t1 = this.name;
  38487. t2 = other.name;
  38488. if (t1.name === t2.name) {
  38489. t1 = t1.namespace;
  38490. t1 = t1 === "*" || t1 == t2.namespace;
  38491. } else
  38492. t1 = false;
  38493. } else
  38494. t1 = false;
  38495. else
  38496. t1 = true;
  38497. return t1;
  38498. },
  38499. $eq(_, other) {
  38500. if (other == null)
  38501. return false;
  38502. return other instanceof A.TypeSelector && other.name.$eq(0, this.name);
  38503. },
  38504. get$hashCode(_) {
  38505. var t1 = this.name;
  38506. return B.JSString_methods.get$hashCode(t1.name) ^ J.get$hashCode$(t1.namespace);
  38507. }
  38508. };
  38509. A.UniversalSelector.prototype = {
  38510. get$specificity() {
  38511. return 0;
  38512. },
  38513. accept$1$1(visitor) {
  38514. return visitor.visitUniversalSelector$1(this);
  38515. },
  38516. accept$1(visitor) {
  38517. return this.accept$1$1(visitor, type$.dynamic);
  38518. },
  38519. unify$1(compound) {
  38520. var unified, t1, _this = this,
  38521. first = B.JSArray_methods.get$first(compound);
  38522. if (first instanceof A.UniversalSelector || first instanceof A.TypeSelector) {
  38523. unified = A.unifyUniversalAndElement(_this, first);
  38524. if (unified == null)
  38525. return null;
  38526. t1 = A._setArrayType([unified], type$.JSArray_SimpleSelector);
  38527. B.JSArray_methods.addAll$1(t1, A.SubListIterable$(compound, 1, null, A._arrayInstanceType(compound)._precomputed1));
  38528. return t1;
  38529. } else {
  38530. if (compound.length === 1)
  38531. if (first instanceof A.PseudoSelector)
  38532. t1 = first.isClass && first.name === "host" || first.get$isHostContext();
  38533. else
  38534. t1 = false;
  38535. else
  38536. t1 = false;
  38537. if (t1)
  38538. return null;
  38539. }
  38540. t1 = _this.namespace;
  38541. if (t1 != null && t1 !== "*") {
  38542. t1 = A._setArrayType([_this], type$.JSArray_SimpleSelector);
  38543. B.JSArray_methods.addAll$1(t1, compound);
  38544. return t1;
  38545. }
  38546. if (compound.length !== 0)
  38547. return compound;
  38548. return A._setArrayType([_this], type$.JSArray_SimpleSelector);
  38549. },
  38550. isSuperselector$1(other) {
  38551. var t1 = this.namespace;
  38552. if (t1 === "*")
  38553. return true;
  38554. if (other instanceof A.TypeSelector)
  38555. return t1 == other.name.namespace;
  38556. if (other instanceof A.UniversalSelector)
  38557. return t1 == other.namespace;
  38558. return t1 == null || this.super$SimpleSelector$isSuperselector(other);
  38559. },
  38560. $eq(_, other) {
  38561. if (other == null)
  38562. return false;
  38563. return other instanceof A.UniversalSelector && other.namespace == this.namespace;
  38564. },
  38565. get$hashCode(_) {
  38566. return J.get$hashCode$(this.namespace);
  38567. }
  38568. };
  38569. A._compileStylesheet_closure0.prototype = {
  38570. call$1(url) {
  38571. var t1;
  38572. if (url === "") {
  38573. t1 = this.stylesheet.span;
  38574. t1 = A.Uri_Uri$dataFromString(A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t1.get$file(t1)._decodedChars, 0, null), 0, null), B.C_Utf8Codec, null).get$_text();
  38575. } else
  38576. t1 = this.importCache.sourceMapUrl$1(0, A.Uri_parse(url)).toString$0(0);
  38577. return t1;
  38578. },
  38579. $signature: 5
  38580. };
  38581. A.AsyncEnvironment.prototype = {
  38582. closure$0() {
  38583. var t4, t5, t6, _this = this,
  38584. t1 = _this._async_environment$_forwardedModules,
  38585. t2 = _this._async_environment$_nestedForwardedModules,
  38586. t3 = _this._async_environment$_variables;
  38587. t3 = A._setArrayType(t3.slice(0), A._arrayInstanceType(t3));
  38588. t4 = _this._async_environment$_variableNodes;
  38589. t4 = A._setArrayType(t4.slice(0), A._arrayInstanceType(t4));
  38590. t5 = _this._async_environment$_functions;
  38591. t5 = A._setArrayType(t5.slice(0), A._arrayInstanceType(t5));
  38592. t6 = _this._async_environment$_mixins;
  38593. t6 = A._setArrayType(t6.slice(0), A._arrayInstanceType(t6));
  38594. return A.AsyncEnvironment$_(_this._async_environment$_modules, _this._async_environment$_namespaceNodes, _this._async_environment$_globalModules, _this._async_environment$_importedModules, t1, t2, _this._async_environment$_allModules, t3, t4, t5, t6, _this._async_environment$_content);
  38595. },
  38596. addModule$3$namespace(module, nodeWithSpan, namespace) {
  38597. var t1, t2, span, _this = this;
  38598. if (namespace == null) {
  38599. _this._async_environment$_globalModules.$indexSet(0, module, nodeWithSpan);
  38600. _this._async_environment$_allModules.push(module);
  38601. for (t1 = J.get$iterator$ax(J.get$keys$z(B.JSArray_methods.get$first(_this._async_environment$_variables))); t1.moveNext$0();) {
  38602. t2 = t1.get$current(t1);
  38603. if (module.get$variables().containsKey$1(t2))
  38604. throw A.wrapException(A.SassScriptException$(string$.This_ma + t2 + '".', null));
  38605. }
  38606. } else {
  38607. t1 = _this._async_environment$_modules;
  38608. if (t1.containsKey$1(namespace)) {
  38609. t1 = _this._async_environment$_namespaceNodes.$index(0, namespace);
  38610. span = t1 == null ? null : t1.span;
  38611. t1 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
  38612. if (span != null)
  38613. t1.$indexSet(0, span, "original @use");
  38614. throw A.wrapException(A.MultiSpanSassScriptException$(string$.There_ + namespace + '".', "new @use", t1));
  38615. }
  38616. t1.$indexSet(0, namespace, module);
  38617. _this._async_environment$_namespaceNodes.$indexSet(0, namespace, nodeWithSpan);
  38618. _this._async_environment$_allModules.push(module);
  38619. }
  38620. },
  38621. forwardModule$2(module, rule) {
  38622. var view, t1, t2, _this = this,
  38623. forwardedModules = _this._async_environment$_forwardedModules;
  38624. if (forwardedModules == null)
  38625. forwardedModules = _this._async_environment$_forwardedModules = A.LinkedHashMap_LinkedHashMap$_empty(type$.Module_AsyncCallable, type$.AstNode);
  38626. view = A.ForwardedModuleView_ifNecessary(module, rule, type$.AsyncCallable);
  38627. for (t1 = A.LinkedHashMapKeyIterator$(forwardedModules, forwardedModules._modifications); t1.moveNext$0();) {
  38628. t2 = t1.__js_helper$_current;
  38629. _this._async_environment$_assertNoConflicts$5(view.get$variables(), t2.get$variables(), view, t2, "variable");
  38630. _this._async_environment$_assertNoConflicts$5(view.get$functions(view), t2.get$functions(t2), view, t2, "function");
  38631. _this._async_environment$_assertNoConflicts$5(view.get$mixins(), t2.get$mixins(), view, t2, "mixin");
  38632. }
  38633. _this._async_environment$_allModules.push(module);
  38634. forwardedModules.$indexSet(0, view, rule);
  38635. },
  38636. _async_environment$_assertNoConflicts$5(newMembers, oldMembers, newModule, oldModule, type) {
  38637. var larger, smaller, t1, t2, $name, span;
  38638. if (newMembers.get$length(newMembers) < oldMembers.get$length(oldMembers)) {
  38639. larger = oldMembers;
  38640. smaller = newMembers;
  38641. } else {
  38642. larger = newMembers;
  38643. smaller = oldMembers;
  38644. }
  38645. for (t1 = J.get$iterator$ax(smaller.get$keys(smaller)), t2 = type === "variable"; t1.moveNext$0();) {
  38646. $name = t1.get$current(t1);
  38647. if (!larger.containsKey$1($name))
  38648. continue;
  38649. if (t2 ? newModule.variableIdentity$1($name) === oldModule.variableIdentity$1($name) : J.$eq$(larger.$index(0, $name), smaller.$index(0, $name)))
  38650. continue;
  38651. if (t2)
  38652. $name = "$" + $name;
  38653. t1 = this._async_environment$_forwardedModules;
  38654. if (t1 == null)
  38655. span = null;
  38656. else {
  38657. t1 = t1.$index(0, oldModule);
  38658. span = t1 == null ? null : J.get$span$z(t1);
  38659. }
  38660. t1 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
  38661. if (span != null)
  38662. t1.$indexSet(0, span, "original @forward");
  38663. throw A.wrapException(A.MultiSpanSassScriptException$("Two forwarded modules both define a " + type + " named " + $name + ".", "new @forward", t1));
  38664. }
  38665. },
  38666. importForwards$1(module) {
  38667. var forwardedModules, t1, t2, t3, t4, t5, forwardedVariableNames, forwardedFunctionNames, forwardedMixinNames, _i, entry, shadowed, t6, _length, _list, _this = this,
  38668. forwarded = module._async_environment$_environment._async_environment$_forwardedModules;
  38669. if (forwarded == null)
  38670. return;
  38671. forwardedModules = _this._async_environment$_forwardedModules;
  38672. if (forwardedModules != null) {
  38673. t1 = A.LinkedHashMap_LinkedHashMap$_empty(type$.Module_AsyncCallable, type$.AstNode);
  38674. for (t2 = forwarded.get$entries(forwarded), t2 = t2.get$iterator(t2), t3 = _this._async_environment$_globalModules; t2.moveNext$0();) {
  38675. t4 = t2.get$current(t2);
  38676. t5 = t4.key;
  38677. if (!forwardedModules.containsKey$1(t5) || !t3.containsKey$1(t5))
  38678. t1.$indexSet(0, t5, t4.value);
  38679. }
  38680. forwarded = t1;
  38681. } else
  38682. forwardedModules = _this._async_environment$_forwardedModules = A.LinkedHashMap_LinkedHashMap$_empty(type$.Module_AsyncCallable, type$.AstNode);
  38683. t1 = A._instanceType(forwarded)._eval$1("LinkedHashMapKeyIterable<1>");
  38684. t2 = t1._eval$1("ExpandIterable<Iterable.E,String>");
  38685. t3 = t2._eval$1("Iterable.E");
  38686. forwardedVariableNames = A.LinkedHashSet_LinkedHashSet$of(new A.ExpandIterable(new A.LinkedHashMapKeyIterable(forwarded, t1), new A.AsyncEnvironment_importForwards_closure(), t2), t3);
  38687. forwardedFunctionNames = A.LinkedHashSet_LinkedHashSet$of(new A.ExpandIterable(new A.LinkedHashMapKeyIterable(forwarded, t1), new A.AsyncEnvironment_importForwards_closure0(), t2), t3);
  38688. forwardedMixinNames = A.LinkedHashSet_LinkedHashSet$of(new A.ExpandIterable(new A.LinkedHashMapKeyIterable(forwarded, t1), new A.AsyncEnvironment_importForwards_closure1(), t2), t3);
  38689. t2 = _this._async_environment$_variables;
  38690. t3 = t2.length;
  38691. if (t3 === 1) {
  38692. for (t1 = _this._async_environment$_importedModules, t3 = t1.get$entries(t1).toList$0(0), t4 = t3.length, t5 = type$.AsyncCallable, _i = 0; _i < t3.length; t3.length === t4 || (0, A.throwConcurrentModificationError)(t3), ++_i) {
  38693. entry = t3[_i];
  38694. module = entry.key;
  38695. shadowed = A.ShadowedModuleView_ifNecessary(module, forwardedFunctionNames, forwardedMixinNames, forwardedVariableNames, t5);
  38696. if (shadowed != null) {
  38697. t1.remove$1(0, module);
  38698. t6 = shadowed.variables;
  38699. if (t6.get$isEmpty(t6)) {
  38700. t6 = shadowed.functions;
  38701. if (t6.get$isEmpty(t6)) {
  38702. t6 = shadowed.mixins;
  38703. if (t6.get$isEmpty(t6)) {
  38704. t6 = shadowed._shadowed_view$_inner;
  38705. t6 = t6.get$css(t6);
  38706. t6 = J.get$isEmpty$asx(t6.get$children(t6));
  38707. } else
  38708. t6 = false;
  38709. } else
  38710. t6 = false;
  38711. } else
  38712. t6 = false;
  38713. if (!t6)
  38714. t1.$indexSet(0, shadowed, entry.value);
  38715. }
  38716. }
  38717. for (t3 = forwardedModules.get$entries(forwardedModules).toList$0(0), t4 = t3.length, _i = 0; _i < t3.length; t3.length === t4 || (0, A.throwConcurrentModificationError)(t3), ++_i) {
  38718. entry = t3[_i];
  38719. module = entry.key;
  38720. shadowed = A.ShadowedModuleView_ifNecessary(module, forwardedFunctionNames, forwardedMixinNames, forwardedVariableNames, t5);
  38721. if (shadowed != null) {
  38722. forwardedModules.remove$1(0, module);
  38723. t6 = shadowed.variables;
  38724. if (t6.get$isEmpty(t6)) {
  38725. t6 = shadowed.functions;
  38726. if (t6.get$isEmpty(t6)) {
  38727. t6 = shadowed.mixins;
  38728. if (t6.get$isEmpty(t6)) {
  38729. t6 = shadowed._shadowed_view$_inner;
  38730. t6 = t6.get$css(t6);
  38731. t6 = J.get$isEmpty$asx(t6.get$children(t6));
  38732. } else
  38733. t6 = false;
  38734. } else
  38735. t6 = false;
  38736. } else
  38737. t6 = false;
  38738. if (!t6)
  38739. forwardedModules.$indexSet(0, shadowed, entry.value);
  38740. }
  38741. }
  38742. t1.addAll$1(0, forwarded);
  38743. forwardedModules.addAll$1(0, forwarded);
  38744. } else {
  38745. t4 = _this._async_environment$_nestedForwardedModules;
  38746. if (t4 == null) {
  38747. _length = t3 - 1;
  38748. _list = J.JSArray_JSArray$allocateGrowable(_length, type$.List_Module_AsyncCallable);
  38749. for (t3 = type$.JSArray_Module_AsyncCallable, _i = 0; _i < _length; ++_i)
  38750. _list[_i] = A._setArrayType([], t3);
  38751. _this._async_environment$_nestedForwardedModules = _list;
  38752. t3 = _list;
  38753. } else
  38754. t3 = t4;
  38755. B.JSArray_methods.addAll$1(B.JSArray_methods.get$last(t3), new A.LinkedHashMapKeyIterable(forwarded, t1));
  38756. }
  38757. for (t1 = A._LinkedHashSetIterator$(forwardedVariableNames, forwardedVariableNames._collection$_modifications), t3 = _this._async_environment$_variableIndices, t4 = _this._async_environment$_variableNodes, t5 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) {
  38758. t6 = t1._collection$_current;
  38759. if (t6 == null)
  38760. t6 = t5._as(t6);
  38761. t3.remove$1(0, t6);
  38762. J.remove$1$z(B.JSArray_methods.get$last(t2), t6);
  38763. J.remove$1$z(B.JSArray_methods.get$last(t4), t6);
  38764. }
  38765. for (t1 = A._LinkedHashSetIterator$(forwardedFunctionNames, forwardedFunctionNames._collection$_modifications), t2 = _this._async_environment$_functionIndices, t3 = _this._async_environment$_functions, t4 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) {
  38766. t5 = t1._collection$_current;
  38767. if (t5 == null)
  38768. t5 = t4._as(t5);
  38769. t2.remove$1(0, t5);
  38770. J.remove$1$z(B.JSArray_methods.get$last(t3), t5);
  38771. }
  38772. for (t1 = A._LinkedHashSetIterator$(forwardedMixinNames, forwardedMixinNames._collection$_modifications), t2 = _this._async_environment$_mixinIndices, t3 = _this._async_environment$_mixins, t4 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) {
  38773. t5 = t1._collection$_current;
  38774. if (t5 == null)
  38775. t5 = t4._as(t5);
  38776. t2.remove$1(0, t5);
  38777. J.remove$1$z(B.JSArray_methods.get$last(t3), t5);
  38778. }
  38779. },
  38780. getVariable$2$namespace($name, namespace) {
  38781. var t1, index, _this = this;
  38782. if (namespace != null)
  38783. return _this._async_environment$_getModule$1(namespace).get$variables().$index(0, $name);
  38784. if (_this._async_environment$_lastVariableName === $name) {
  38785. t1 = _this._async_environment$_lastVariableIndex;
  38786. t1.toString;
  38787. t1 = J.$index$asx(_this._async_environment$_variables[t1], $name);
  38788. return t1 == null ? _this._async_environment$_getVariableFromGlobalModule$1($name) : t1;
  38789. }
  38790. t1 = _this._async_environment$_variableIndices;
  38791. index = t1.$index(0, $name);
  38792. if (index != null) {
  38793. _this._async_environment$_lastVariableName = $name;
  38794. _this._async_environment$_lastVariableIndex = index;
  38795. t1 = J.$index$asx(_this._async_environment$_variables[index], $name);
  38796. return t1 == null ? _this._async_environment$_getVariableFromGlobalModule$1($name) : t1;
  38797. }
  38798. index = _this._async_environment$_variableIndex$1($name);
  38799. if (index == null)
  38800. return _this._async_environment$_getVariableFromGlobalModule$1($name);
  38801. _this._async_environment$_lastVariableName = $name;
  38802. _this._async_environment$_lastVariableIndex = index;
  38803. t1.$indexSet(0, $name, index);
  38804. t1 = J.$index$asx(_this._async_environment$_variables[index], $name);
  38805. return t1 == null ? _this._async_environment$_getVariableFromGlobalModule$1($name) : t1;
  38806. },
  38807. getVariable$1($name) {
  38808. return this.getVariable$2$namespace($name, null);
  38809. },
  38810. _async_environment$_getVariableFromGlobalModule$1($name) {
  38811. return this._async_environment$_fromOneModule$1$3($name, "variable", new A.AsyncEnvironment__getVariableFromGlobalModule_closure($name), type$.Value);
  38812. },
  38813. getVariableNode$2$namespace($name, namespace) {
  38814. var t1, index, _this = this;
  38815. if (namespace != null)
  38816. return _this._async_environment$_getModule$1(namespace).get$variableNodes().$index(0, $name);
  38817. if (_this._async_environment$_lastVariableName === $name) {
  38818. t1 = _this._async_environment$_lastVariableIndex;
  38819. t1.toString;
  38820. t1 = J.$index$asx(_this._async_environment$_variableNodes[t1], $name);
  38821. return t1 == null ? _this._async_environment$_getVariableNodeFromGlobalModule$1($name) : t1;
  38822. }
  38823. t1 = _this._async_environment$_variableIndices;
  38824. index = t1.$index(0, $name);
  38825. if (index != null) {
  38826. _this._async_environment$_lastVariableName = $name;
  38827. _this._async_environment$_lastVariableIndex = index;
  38828. t1 = J.$index$asx(_this._async_environment$_variableNodes[index], $name);
  38829. return t1 == null ? _this._async_environment$_getVariableNodeFromGlobalModule$1($name) : t1;
  38830. }
  38831. index = _this._async_environment$_variableIndex$1($name);
  38832. if (index == null)
  38833. return _this._async_environment$_getVariableNodeFromGlobalModule$1($name);
  38834. _this._async_environment$_lastVariableName = $name;
  38835. _this._async_environment$_lastVariableIndex = index;
  38836. t1.$indexSet(0, $name, index);
  38837. t1 = J.$index$asx(_this._async_environment$_variableNodes[index], $name);
  38838. return t1 == null ? _this._async_environment$_getVariableNodeFromGlobalModule$1($name) : t1;
  38839. },
  38840. _async_environment$_getVariableNodeFromGlobalModule$1($name) {
  38841. var t1, t2, value;
  38842. for (t1 = this._async_environment$_importedModules, t2 = this._async_environment$_globalModules, t2 = new A.LinkedHashMapKeyIterable(t1, A._instanceType(t1)._eval$1("LinkedHashMapKeyIterable<1>")).followedBy$1(0, new A.LinkedHashMapKeyIterable(t2, A._instanceType(t2)._eval$1("LinkedHashMapKeyIterable<1>"))), t2 = new A.FollowedByIterator(J.get$iterator$ax(t2.__internal$_first), t2._second); t2.moveNext$0();) {
  38843. t1 = t2._currentIterator;
  38844. value = t1.get$current(t1).get$variableNodes().$index(0, $name);
  38845. if (value != null)
  38846. return value;
  38847. }
  38848. return null;
  38849. },
  38850. globalVariableExists$2$namespace($name, namespace) {
  38851. if (namespace != null)
  38852. return this._async_environment$_getModule$1(namespace).get$variables().containsKey$1($name);
  38853. if (B.JSArray_methods.get$first(this._async_environment$_variables).containsKey$1($name))
  38854. return true;
  38855. return this._async_environment$_getVariableFromGlobalModule$1($name) != null;
  38856. },
  38857. globalVariableExists$1($name) {
  38858. return this.globalVariableExists$2$namespace($name, null);
  38859. },
  38860. _async_environment$_variableIndex$1($name) {
  38861. var t1, i;
  38862. for (t1 = this._async_environment$_variables, i = t1.length - 1; i >= 0; --i)
  38863. if (t1[i].containsKey$1($name))
  38864. return i;
  38865. return null;
  38866. },
  38867. setVariable$5$global$namespace($name, value, nodeWithSpan, global, namespace) {
  38868. var t1, moduleWithName, nestedForwardedModules, t2, t3, t4, t5, index, _this = this;
  38869. if (namespace != null) {
  38870. _this._async_environment$_getModule$1(namespace).setVariable$3($name, value, nodeWithSpan);
  38871. return;
  38872. }
  38873. if (global || _this._async_environment$_variables.length === 1) {
  38874. _this._async_environment$_variableIndices.putIfAbsent$2($name, new A.AsyncEnvironment_setVariable_closure(_this, $name));
  38875. t1 = _this._async_environment$_variables;
  38876. if (!B.JSArray_methods.get$first(t1).containsKey$1($name)) {
  38877. moduleWithName = _this._async_environment$_fromOneModule$1$3($name, "variable", new A.AsyncEnvironment_setVariable_closure0($name), type$.Module_AsyncCallable);
  38878. if (moduleWithName != null) {
  38879. moduleWithName.setVariable$3($name, value, nodeWithSpan);
  38880. return;
  38881. }
  38882. }
  38883. J.$indexSet$ax(B.JSArray_methods.get$first(t1), $name, value);
  38884. J.$indexSet$ax(B.JSArray_methods.get$first(_this._async_environment$_variableNodes), $name, nodeWithSpan);
  38885. return;
  38886. }
  38887. nestedForwardedModules = _this._async_environment$_nestedForwardedModules;
  38888. if (nestedForwardedModules != null && !_this._async_environment$_variableIndices.containsKey$1($name) && _this._async_environment$_variableIndex$1($name) == null)
  38889. for (t1 = new A.ReversedListIterable(nestedForwardedModules, A.instanceType(nestedForwardedModules)._eval$1("ReversedListIterable<1>")), t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) {
  38890. t3 = t1.__internal$_current;
  38891. for (t3 = J.get$reversed$ax(t3 == null ? t2._as(t3) : t3), t3 = new A.ListIterator(t3, t3.get$length(t3)), t4 = A._instanceType(t3)._precomputed1; t3.moveNext$0();) {
  38892. t5 = t3.__internal$_current;
  38893. if (t5 == null)
  38894. t5 = t4._as(t5);
  38895. if (t5.get$variables().containsKey$1($name)) {
  38896. t5.setVariable$3($name, value, nodeWithSpan);
  38897. return;
  38898. }
  38899. }
  38900. }
  38901. if (_this._async_environment$_lastVariableName === $name) {
  38902. t1 = _this._async_environment$_lastVariableIndex;
  38903. t1.toString;
  38904. index = t1;
  38905. } else
  38906. index = _this._async_environment$_variableIndices.putIfAbsent$2($name, new A.AsyncEnvironment_setVariable_closure1(_this, $name));
  38907. if (!_this._async_environment$_inSemiGlobalScope && index === 0) {
  38908. index = _this._async_environment$_variables.length - 1;
  38909. _this._async_environment$_variableIndices.$indexSet(0, $name, index);
  38910. }
  38911. _this._async_environment$_lastVariableName = $name;
  38912. _this._async_environment$_lastVariableIndex = index;
  38913. J.$indexSet$ax(_this._async_environment$_variables[index], $name, value);
  38914. J.$indexSet$ax(_this._async_environment$_variableNodes[index], $name, nodeWithSpan);
  38915. },
  38916. setVariable$4$global($name, value, nodeWithSpan, global) {
  38917. return this.setVariable$5$global$namespace($name, value, nodeWithSpan, global, null);
  38918. },
  38919. setLocalVariable$3($name, value, nodeWithSpan) {
  38920. var index, _this = this,
  38921. t1 = _this._async_environment$_variables,
  38922. t2 = t1.length;
  38923. _this._async_environment$_lastVariableName = $name;
  38924. index = _this._async_environment$_lastVariableIndex = t2 - 1;
  38925. _this._async_environment$_variableIndices.$indexSet(0, $name, index);
  38926. J.$indexSet$ax(t1[index], $name, value);
  38927. J.$indexSet$ax(_this._async_environment$_variableNodes[index], $name, nodeWithSpan);
  38928. },
  38929. getFunction$2$namespace($name, namespace) {
  38930. var t1, index, _this = this;
  38931. if (namespace != null) {
  38932. t1 = _this._async_environment$_getModule$1(namespace);
  38933. return t1.get$functions(t1).$index(0, $name);
  38934. }
  38935. t1 = _this._async_environment$_functionIndices;
  38936. index = t1.$index(0, $name);
  38937. if (index != null) {
  38938. t1 = J.$index$asx(_this._async_environment$_functions[index], $name);
  38939. return t1 == null ? _this._async_environment$_getFunctionFromGlobalModule$1($name) : t1;
  38940. }
  38941. index = _this._async_environment$_functionIndex$1($name);
  38942. if (index == null)
  38943. return _this._async_environment$_getFunctionFromGlobalModule$1($name);
  38944. t1.$indexSet(0, $name, index);
  38945. t1 = J.$index$asx(_this._async_environment$_functions[index], $name);
  38946. return t1 == null ? _this._async_environment$_getFunctionFromGlobalModule$1($name) : t1;
  38947. },
  38948. _async_environment$_getFunctionFromGlobalModule$1($name) {
  38949. return this._async_environment$_fromOneModule$1$3($name, "function", new A.AsyncEnvironment__getFunctionFromGlobalModule_closure($name), type$.AsyncCallable);
  38950. },
  38951. _async_environment$_functionIndex$1($name) {
  38952. var t1, i;
  38953. for (t1 = this._async_environment$_functions, i = t1.length - 1; i >= 0; --i)
  38954. if (t1[i].containsKey$1($name))
  38955. return i;
  38956. return null;
  38957. },
  38958. getMixin$2$namespace($name, namespace) {
  38959. var t1, index, _this = this;
  38960. if (namespace != null)
  38961. return _this._async_environment$_getModule$1(namespace).get$mixins().$index(0, $name);
  38962. t1 = _this._async_environment$_mixinIndices;
  38963. index = t1.$index(0, $name);
  38964. if (index != null) {
  38965. t1 = J.$index$asx(_this._async_environment$_mixins[index], $name);
  38966. return t1 == null ? _this._async_environment$_getMixinFromGlobalModule$1($name) : t1;
  38967. }
  38968. index = _this._async_environment$_mixinIndex$1($name);
  38969. if (index == null)
  38970. return _this._async_environment$_getMixinFromGlobalModule$1($name);
  38971. t1.$indexSet(0, $name, index);
  38972. t1 = J.$index$asx(_this._async_environment$_mixins[index], $name);
  38973. return t1 == null ? _this._async_environment$_getMixinFromGlobalModule$1($name) : t1;
  38974. },
  38975. _async_environment$_getMixinFromGlobalModule$1($name) {
  38976. return this._async_environment$_fromOneModule$1$3($name, "mixin", new A.AsyncEnvironment__getMixinFromGlobalModule_closure($name), type$.AsyncCallable);
  38977. },
  38978. _async_environment$_mixinIndex$1($name) {
  38979. var t1, i;
  38980. for (t1 = this._async_environment$_mixins, i = t1.length - 1; i >= 0; --i)
  38981. if (t1[i].containsKey$1($name))
  38982. return i;
  38983. return null;
  38984. },
  38985. withContent$2($content, callback) {
  38986. return this.withContent$body$AsyncEnvironment($content, callback);
  38987. },
  38988. withContent$body$AsyncEnvironment($content, callback) {
  38989. var $async$goto = 0,
  38990. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  38991. $async$self = this, oldContent;
  38992. var $async$withContent$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  38993. if ($async$errorCode === 1)
  38994. return A._asyncRethrow($async$result, $async$completer);
  38995. while (true)
  38996. switch ($async$goto) {
  38997. case 0:
  38998. // Function start
  38999. oldContent = $async$self._async_environment$_content;
  39000. $async$self._async_environment$_content = $content;
  39001. $async$goto = 2;
  39002. return A._asyncAwait(callback.call$0(), $async$withContent$2);
  39003. case 2:
  39004. // returning from await.
  39005. $async$self._async_environment$_content = oldContent;
  39006. // implicit return
  39007. return A._asyncReturn(null, $async$completer);
  39008. }
  39009. });
  39010. return A._asyncStartSync($async$withContent$2, $async$completer);
  39011. },
  39012. asMixin$1(callback) {
  39013. var $async$goto = 0,
  39014. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  39015. $async$self = this, oldInMixin;
  39016. var $async$asMixin$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  39017. if ($async$errorCode === 1)
  39018. return A._asyncRethrow($async$result, $async$completer);
  39019. while (true)
  39020. switch ($async$goto) {
  39021. case 0:
  39022. // Function start
  39023. oldInMixin = $async$self._async_environment$_inMixin;
  39024. $async$self._async_environment$_inMixin = true;
  39025. $async$goto = 2;
  39026. return A._asyncAwait(callback.call$0(), $async$asMixin$1);
  39027. case 2:
  39028. // returning from await.
  39029. $async$self._async_environment$_inMixin = oldInMixin;
  39030. // implicit return
  39031. return A._asyncReturn(null, $async$completer);
  39032. }
  39033. });
  39034. return A._asyncStartSync($async$asMixin$1, $async$completer);
  39035. },
  39036. scope$1$3$semiGlobal$when(callback, semiGlobal, when, $T) {
  39037. return this.scope$body$AsyncEnvironment(callback, semiGlobal, when, $T, $T);
  39038. },
  39039. scope$1$1(callback, $T) {
  39040. return this.scope$1$3$semiGlobal$when(callback, false, true, $T);
  39041. },
  39042. scope$1$2$when(callback, when, $T) {
  39043. return this.scope$1$3$semiGlobal$when(callback, false, when, $T);
  39044. },
  39045. scope$1$2$semiGlobal(callback, semiGlobal, $T) {
  39046. return this.scope$1$3$semiGlobal$when(callback, semiGlobal, true, $T);
  39047. },
  39048. scope$body$AsyncEnvironment(callback, semiGlobal, when, $T, $async$type) {
  39049. var $async$goto = 0,
  39050. $async$completer = A._makeAsyncAwaitCompleter($async$type),
  39051. $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, wasInSemiGlobalScope, $name, name0, name1, t1, t2, t3, t4, t5, t6;
  39052. var $async$scope$1$3$semiGlobal$when = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  39053. if ($async$errorCode === 1) {
  39054. $async$currentError = $async$result;
  39055. $async$goto = $async$handler;
  39056. }
  39057. while (true)
  39058. switch ($async$goto) {
  39059. case 0:
  39060. // Function start
  39061. semiGlobal = semiGlobal && $async$self._async_environment$_inSemiGlobalScope;
  39062. wasInSemiGlobalScope = $async$self._async_environment$_inSemiGlobalScope;
  39063. $async$self._async_environment$_inSemiGlobalScope = semiGlobal;
  39064. $async$goto = !when ? 3 : 4;
  39065. break;
  39066. case 3:
  39067. // then
  39068. $async$handler = 5;
  39069. $async$goto = 8;
  39070. return A._asyncAwait(callback.call$0(), $async$scope$1$3$semiGlobal$when);
  39071. case 8:
  39072. // returning from await.
  39073. t1 = $async$result;
  39074. $async$returnValue = t1;
  39075. $async$next = [1];
  39076. // goto finally
  39077. $async$goto = 6;
  39078. break;
  39079. $async$next.push(7);
  39080. // goto finally
  39081. $async$goto = 6;
  39082. break;
  39083. case 5:
  39084. // uncaught
  39085. $async$next = [2];
  39086. case 6:
  39087. // finally
  39088. $async$handler = 2;
  39089. $async$self._async_environment$_inSemiGlobalScope = wasInSemiGlobalScope;
  39090. // goto the next finally handler
  39091. $async$goto = $async$next.pop();
  39092. break;
  39093. case 7:
  39094. // after finally
  39095. case 4:
  39096. // join
  39097. t1 = $async$self._async_environment$_variables;
  39098. t2 = type$.String;
  39099. B.JSArray_methods.add$1(t1, A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.Value));
  39100. t3 = $async$self._async_environment$_variableNodes;
  39101. B.JSArray_methods.add$1(t3, A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.AstNode));
  39102. t4 = $async$self._async_environment$_functions;
  39103. t5 = type$.AsyncCallable;
  39104. B.JSArray_methods.add$1(t4, A.LinkedHashMap_LinkedHashMap$_empty(t2, t5));
  39105. t6 = $async$self._async_environment$_mixins;
  39106. B.JSArray_methods.add$1(t6, A.LinkedHashMap_LinkedHashMap$_empty(t2, t5));
  39107. t5 = $async$self._async_environment$_nestedForwardedModules;
  39108. if (t5 != null)
  39109. t5.push(A._setArrayType([], type$.JSArray_Module_AsyncCallable));
  39110. $async$handler = 9;
  39111. $async$goto = 12;
  39112. return A._asyncAwait(callback.call$0(), $async$scope$1$3$semiGlobal$when);
  39113. case 12:
  39114. // returning from await.
  39115. t2 = $async$result;
  39116. $async$returnValue = t2;
  39117. $async$next = [1];
  39118. // goto finally
  39119. $async$goto = 10;
  39120. break;
  39121. $async$next.push(11);
  39122. // goto finally
  39123. $async$goto = 10;
  39124. break;
  39125. case 9:
  39126. // uncaught
  39127. $async$next = [2];
  39128. case 10:
  39129. // finally
  39130. $async$handler = 2;
  39131. $async$self._async_environment$_inSemiGlobalScope = wasInSemiGlobalScope;
  39132. $async$self._async_environment$_lastVariableIndex = $async$self._async_environment$_lastVariableName = null;
  39133. for (t1 = J.get$iterator$ax(J.get$keys$z(B.JSArray_methods.removeLast$0(t1))), t2 = $async$self._async_environment$_variableIndices; t1.moveNext$0();) {
  39134. $name = t1.get$current(t1);
  39135. t2.remove$1(0, $name);
  39136. }
  39137. B.JSArray_methods.removeLast$0(t3);
  39138. for (t1 = J.get$iterator$ax(J.get$keys$z(B.JSArray_methods.removeLast$0(t4))), t2 = $async$self._async_environment$_functionIndices; t1.moveNext$0();) {
  39139. name0 = t1.get$current(t1);
  39140. t2.remove$1(0, name0);
  39141. }
  39142. for (t1 = J.get$iterator$ax(J.get$keys$z(B.JSArray_methods.removeLast$0(t6))), t2 = $async$self._async_environment$_mixinIndices; t1.moveNext$0();) {
  39143. name1 = t1.get$current(t1);
  39144. t2.remove$1(0, name1);
  39145. }
  39146. t1 = $async$self._async_environment$_nestedForwardedModules;
  39147. if (t1 != null)
  39148. t1.pop();
  39149. // goto the next finally handler
  39150. $async$goto = $async$next.pop();
  39151. break;
  39152. case 11:
  39153. // after finally
  39154. case 1:
  39155. // return
  39156. return A._asyncReturn($async$returnValue, $async$completer);
  39157. case 2:
  39158. // rethrow
  39159. return A._asyncRethrow($async$currentError, $async$completer);
  39160. }
  39161. });
  39162. return A._asyncStartSync($async$scope$1$3$semiGlobal$when, $async$completer);
  39163. },
  39164. toImplicitConfiguration$0() {
  39165. var t1, t2, i, values, nodes, t3, t4, t5, t6,
  39166. configuration = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.ConfiguredValue);
  39167. for (t1 = this._async_environment$_variables, t2 = this._async_environment$_variableNodes, i = 0; i < t1.length; ++i) {
  39168. values = t1[i];
  39169. nodes = t2[i];
  39170. for (t3 = values.get$entries(values), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  39171. t4 = t3.get$current(t3);
  39172. t5 = t4.key;
  39173. t4 = t4.value;
  39174. t6 = nodes.$index(0, t5);
  39175. t6.toString;
  39176. configuration.$indexSet(0, t5, new A.ConfiguredValue(t4, null, t6));
  39177. }
  39178. }
  39179. return new A.Configuration(configuration, null);
  39180. },
  39181. toModule$2(css, extensionStore) {
  39182. return A._EnvironmentModule__EnvironmentModule0(this, css, extensionStore, A.NullableExtension_andThen(this._async_environment$_forwardedModules, new A.AsyncEnvironment_toModule_closure()));
  39183. },
  39184. toDummyModule$0() {
  39185. return A._EnvironmentModule__EnvironmentModule0(this, new A.CssStylesheet(new A.UnmodifiableListView(B.List_empty3, type$.UnmodifiableListView_CssNode), A.SourceFile$decoded(B.List_empty4, "<dummy module>").span$1(0, 0)), B.C_EmptyExtensionStore, A.NullableExtension_andThen(this._async_environment$_forwardedModules, new A.AsyncEnvironment_toDummyModule_closure()));
  39186. },
  39187. _async_environment$_getModule$1(namespace) {
  39188. var module = this._async_environment$_modules.$index(0, namespace);
  39189. if (module != null)
  39190. return module;
  39191. throw A.wrapException(A.SassScriptException$('There is no module with the namespace "' + namespace + '".', null));
  39192. },
  39193. _async_environment$_fromOneModule$1$3($name, type, callback, $T) {
  39194. var t1, t2, t3, t4, t5, value, identity, valueInModule, identityFromModule, spans,
  39195. nestedForwardedModules = this._async_environment$_nestedForwardedModules;
  39196. if (nestedForwardedModules != null)
  39197. for (t1 = new A.ReversedListIterable(nestedForwardedModules, A._arrayInstanceType(nestedForwardedModules)._eval$1("ReversedListIterable<1>")), t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) {
  39198. t3 = t1.__internal$_current;
  39199. for (t3 = J.get$reversed$ax(t3 == null ? t2._as(t3) : t3), t3 = new A.ListIterator(t3, t3.get$length(t3)), t4 = A._instanceType(t3)._precomputed1; t3.moveNext$0();) {
  39200. t5 = t3.__internal$_current;
  39201. value = callback.call$1(t5 == null ? t4._as(t5) : t5);
  39202. if (value != null)
  39203. return value;
  39204. }
  39205. }
  39206. for (t1 = this._async_environment$_importedModules, t1 = A.LinkedHashMapKeyIterator$(t1, t1._modifications); t1.moveNext$0();) {
  39207. value = callback.call$1(t1.__js_helper$_current);
  39208. if (value != null)
  39209. return value;
  39210. }
  39211. for (t1 = this._async_environment$_globalModules, t2 = A.LinkedHashMapKeyIterator$(t1, t1._modifications), t3 = type$.AsyncCallable, value = null, identity = null; t2.moveNext$0();) {
  39212. t4 = t2.__js_helper$_current;
  39213. valueInModule = callback.call$1(t4);
  39214. if (valueInModule == null)
  39215. continue;
  39216. identityFromModule = t3._is(valueInModule) ? valueInModule : t4.variableIdentity$1($name);
  39217. if (identityFromModule.$eq(0, identity))
  39218. continue;
  39219. if (value != null) {
  39220. spans = t1.get$entries(t1).map$1$1(0, new A.AsyncEnvironment__fromOneModule_closure(callback, $T), type$.nullable_FileSpan);
  39221. t2 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
  39222. for (t1 = spans.get$iterator(spans), t3 = "includes " + type; t1.moveNext$0();) {
  39223. t4 = t1.get$current(t1);
  39224. if (t4 != null)
  39225. t2.$indexSet(0, t4, t3);
  39226. }
  39227. throw A.wrapException(A.MultiSpanSassScriptException$("This " + type + string$.x20is_av, type + " use", t2));
  39228. }
  39229. identity = identityFromModule;
  39230. value = valueInModule;
  39231. }
  39232. return value;
  39233. }
  39234. };
  39235. A.AsyncEnvironment_importForwards_closure.prototype = {
  39236. call$1(module) {
  39237. var t1 = module.get$variables();
  39238. return t1.get$keys(t1);
  39239. },
  39240. $signature: 116
  39241. };
  39242. A.AsyncEnvironment_importForwards_closure0.prototype = {
  39243. call$1(module) {
  39244. var t1 = module.get$functions(module);
  39245. return t1.get$keys(t1);
  39246. },
  39247. $signature: 116
  39248. };
  39249. A.AsyncEnvironment_importForwards_closure1.prototype = {
  39250. call$1(module) {
  39251. var t1 = module.get$mixins();
  39252. return t1.get$keys(t1);
  39253. },
  39254. $signature: 116
  39255. };
  39256. A.AsyncEnvironment__getVariableFromGlobalModule_closure.prototype = {
  39257. call$1(module) {
  39258. return module.get$variables().$index(0, this.name);
  39259. },
  39260. $signature: 574
  39261. };
  39262. A.AsyncEnvironment_setVariable_closure.prototype = {
  39263. call$0() {
  39264. var t1 = this.$this;
  39265. t1._async_environment$_lastVariableName = this.name;
  39266. return t1._async_environment$_lastVariableIndex = 0;
  39267. },
  39268. $signature: 12
  39269. };
  39270. A.AsyncEnvironment_setVariable_closure0.prototype = {
  39271. call$1(module) {
  39272. return module.get$variables().containsKey$1(this.name) ? module : null;
  39273. },
  39274. $signature: 572
  39275. };
  39276. A.AsyncEnvironment_setVariable_closure1.prototype = {
  39277. call$0() {
  39278. var t1 = this.$this,
  39279. t2 = t1._async_environment$_variableIndex$1(this.name);
  39280. return t2 == null ? t1._async_environment$_variables.length - 1 : t2;
  39281. },
  39282. $signature: 12
  39283. };
  39284. A.AsyncEnvironment__getFunctionFromGlobalModule_closure.prototype = {
  39285. call$1(module) {
  39286. return module.get$functions(module).$index(0, this.name);
  39287. },
  39288. $signature: 163
  39289. };
  39290. A.AsyncEnvironment__getMixinFromGlobalModule_closure.prototype = {
  39291. call$1(module) {
  39292. return module.get$mixins().$index(0, this.name);
  39293. },
  39294. $signature: 163
  39295. };
  39296. A.AsyncEnvironment_toModule_closure.prototype = {
  39297. call$1(modules) {
  39298. return new A.MapKeySet(modules, type$.MapKeySet_Module_AsyncCallable);
  39299. },
  39300. $signature: 245
  39301. };
  39302. A.AsyncEnvironment_toDummyModule_closure.prototype = {
  39303. call$1(modules) {
  39304. return new A.MapKeySet(modules, type$.MapKeySet_Module_AsyncCallable);
  39305. },
  39306. $signature: 245
  39307. };
  39308. A.AsyncEnvironment__fromOneModule_closure.prototype = {
  39309. call$1(entry) {
  39310. return A.NullableExtension_andThen(this.callback.call$1(entry.key), new A.AsyncEnvironment__fromOneModule__closure(entry, this.T));
  39311. },
  39312. $signature: 558
  39313. };
  39314. A.AsyncEnvironment__fromOneModule__closure.prototype = {
  39315. call$1(_) {
  39316. return J.get$span$z(this.entry.value);
  39317. },
  39318. $signature() {
  39319. return this.T._eval$1("FileSpan(0)");
  39320. }
  39321. };
  39322. A._EnvironmentModule0.prototype = {
  39323. get$url(_) {
  39324. var t1 = this.css;
  39325. t1 = t1.get$span(t1);
  39326. return t1.get$sourceUrl(t1);
  39327. },
  39328. setVariable$3($name, value, nodeWithSpan) {
  39329. var t1, t2,
  39330. module = this._async_environment$_modulesByVariable.$index(0, $name);
  39331. if (module != null) {
  39332. module.setVariable$3($name, value, nodeWithSpan);
  39333. return;
  39334. }
  39335. t1 = this._async_environment$_environment;
  39336. t2 = t1._async_environment$_variables;
  39337. if (!B.JSArray_methods.get$first(t2).containsKey$1($name))
  39338. throw A.wrapException(A.SassScriptException$("Undefined variable.", null));
  39339. J.$indexSet$ax(B.JSArray_methods.get$first(t2), $name, value);
  39340. J.$indexSet$ax(B.JSArray_methods.get$first(t1._async_environment$_variableNodes), $name, nodeWithSpan);
  39341. return;
  39342. },
  39343. variableIdentity$1($name) {
  39344. var module = this._async_environment$_modulesByVariable.$index(0, $name);
  39345. return module == null ? this : module.variableIdentity$1($name);
  39346. },
  39347. cloneCss$0() {
  39348. var newCssAndExtensionStore, _this = this;
  39349. if (!_this.transitivelyContainsCss)
  39350. return _this;
  39351. newCssAndExtensionStore = A.cloneCssStylesheet(_this.css, _this.extensionStore);
  39352. return A._EnvironmentModule$_0(_this._async_environment$_environment, newCssAndExtensionStore.item1, newCssAndExtensionStore.item2, _this._async_environment$_modulesByVariable, _this.variables, _this.variableNodes, _this.functions, _this.mixins, true, _this.transitivelyContainsExtensions);
  39353. },
  39354. toString$0(_) {
  39355. var t1 = this.css,
  39356. t2 = t1.get$span(t1);
  39357. if (t2.get$sourceUrl(t2) == null)
  39358. t1 = "<unknown url>";
  39359. else {
  39360. t1 = t1.get$span(t1);
  39361. t1 = t1.get$sourceUrl(t1);
  39362. t1 = $.$get$context().prettyUri$1(t1);
  39363. }
  39364. return t1;
  39365. },
  39366. $isModule: 1,
  39367. get$upstream() {
  39368. return this.upstream;
  39369. },
  39370. get$variables() {
  39371. return this.variables;
  39372. },
  39373. get$variableNodes() {
  39374. return this.variableNodes;
  39375. },
  39376. get$functions(receiver) {
  39377. return this.functions;
  39378. },
  39379. get$mixins() {
  39380. return this.mixins;
  39381. },
  39382. get$extensionStore() {
  39383. return this.extensionStore;
  39384. },
  39385. get$css(receiver) {
  39386. return this.css;
  39387. },
  39388. get$transitivelyContainsCss() {
  39389. return this.transitivelyContainsCss;
  39390. },
  39391. get$transitivelyContainsExtensions() {
  39392. return this.transitivelyContainsExtensions;
  39393. }
  39394. };
  39395. A._EnvironmentModule__EnvironmentModule_closure5.prototype = {
  39396. call$1(module) {
  39397. return module.get$variables();
  39398. },
  39399. $signature: 557
  39400. };
  39401. A._EnvironmentModule__EnvironmentModule_closure6.prototype = {
  39402. call$1(module) {
  39403. return module.get$variableNodes();
  39404. },
  39405. $signature: 556
  39406. };
  39407. A._EnvironmentModule__EnvironmentModule_closure7.prototype = {
  39408. call$1(module) {
  39409. return module.get$functions(module);
  39410. },
  39411. $signature: 191
  39412. };
  39413. A._EnvironmentModule__EnvironmentModule_closure8.prototype = {
  39414. call$1(module) {
  39415. return module.get$mixins();
  39416. },
  39417. $signature: 191
  39418. };
  39419. A._EnvironmentModule__EnvironmentModule_closure9.prototype = {
  39420. call$1(module) {
  39421. return module.get$transitivelyContainsCss();
  39422. },
  39423. $signature: 112
  39424. };
  39425. A._EnvironmentModule__EnvironmentModule_closure10.prototype = {
  39426. call$1(module) {
  39427. return module.get$transitivelyContainsExtensions();
  39428. },
  39429. $signature: 112
  39430. };
  39431. A.AsyncImportCache.prototype = {
  39432. canonicalize$4$baseImporter$baseUrl$forImport(_, url, baseImporter, baseUrl, forImport) {
  39433. return this.canonicalize$body$AsyncImportCache(0, url, baseImporter, baseUrl, forImport);
  39434. },
  39435. canonicalize$body$AsyncImportCache(_, url, baseImporter, baseUrl, forImport) {
  39436. var $async$goto = 0,
  39437. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Tuple3_AsyncImporter_Uri_Uri),
  39438. $async$returnValue, $async$self = this, t1, relativeResult;
  39439. var $async$canonicalize$4$baseImporter$baseUrl$forImport = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  39440. if ($async$errorCode === 1)
  39441. return A._asyncRethrow($async$result, $async$completer);
  39442. while (true)
  39443. switch ($async$goto) {
  39444. case 0:
  39445. // Function start
  39446. $async$goto = baseImporter != null ? 3 : 4;
  39447. break;
  39448. case 3:
  39449. // then
  39450. t1 = type$.Tuple4_of_Uri_and_bool_and_AsyncImporter_and_nullable_Uri;
  39451. $async$goto = 5;
  39452. return A._asyncAwait(A.putIfAbsentAsync($async$self._async_import_cache$_relativeCanonicalizeCache, new A.Tuple4(url, forImport, baseImporter, baseUrl, t1), new A.AsyncImportCache_canonicalize_closure($async$self, baseUrl, url, baseImporter, forImport), t1, type$.nullable_Tuple3_AsyncImporter_Uri_Uri), $async$canonicalize$4$baseImporter$baseUrl$forImport);
  39453. case 5:
  39454. // returning from await.
  39455. relativeResult = $async$result;
  39456. if (relativeResult != null) {
  39457. $async$returnValue = relativeResult;
  39458. // goto return
  39459. $async$goto = 1;
  39460. break;
  39461. }
  39462. case 4:
  39463. // join
  39464. t1 = type$.Tuple2_Uri_bool;
  39465. $async$goto = 6;
  39466. return A._asyncAwait(A.putIfAbsentAsync($async$self._async_import_cache$_canonicalizeCache, new A.Tuple2(url, forImport, t1), new A.AsyncImportCache_canonicalize_closure0($async$self, url, forImport), t1, type$.nullable_Tuple3_AsyncImporter_Uri_Uri), $async$canonicalize$4$baseImporter$baseUrl$forImport);
  39467. case 6:
  39468. // returning from await.
  39469. $async$returnValue = $async$result;
  39470. // goto return
  39471. $async$goto = 1;
  39472. break;
  39473. case 1:
  39474. // return
  39475. return A._asyncReturn($async$returnValue, $async$completer);
  39476. }
  39477. });
  39478. return A._asyncStartSync($async$canonicalize$4$baseImporter$baseUrl$forImport, $async$completer);
  39479. },
  39480. _async_import_cache$_canonicalize$3(importer, url, forImport) {
  39481. return this._canonicalize$body$AsyncImportCache(importer, url, forImport);
  39482. },
  39483. _canonicalize$body$AsyncImportCache(importer, url, forImport) {
  39484. var $async$goto = 0,
  39485. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Uri),
  39486. $async$returnValue, $async$self = this, t1, result;
  39487. var $async$_async_import_cache$_canonicalize$3 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  39488. if ($async$errorCode === 1)
  39489. return A._asyncRethrow($async$result, $async$completer);
  39490. while (true)
  39491. switch ($async$goto) {
  39492. case 0:
  39493. // Function start
  39494. if (forImport) {
  39495. t1 = type$.nullable_Object;
  39496. t1 = A.runZoned(new A.AsyncImportCache__canonicalize_closure(importer, url), A.LinkedHashMap_LinkedHashMap$_literal([B.Symbol__inImportRule, true], t1, t1), type$.FutureOr_nullable_Uri);
  39497. } else
  39498. t1 = importer.canonicalize$1(0, url);
  39499. $async$goto = 3;
  39500. return A._asyncAwait(t1, $async$_async_import_cache$_canonicalize$3);
  39501. case 3:
  39502. // returning from await.
  39503. result = $async$result;
  39504. if ((result == null ? null : result.get$scheme()) === "")
  39505. $async$self._async_import_cache$_logger.warn$2$deprecation(0, "Importer " + importer.toString$0(0) + " canonicalized " + url.toString$0(0) + " to " + A.S(result) + string$.x2e_Rela, true);
  39506. $async$returnValue = result;
  39507. // goto return
  39508. $async$goto = 1;
  39509. break;
  39510. case 1:
  39511. // return
  39512. return A._asyncReturn($async$returnValue, $async$completer);
  39513. }
  39514. });
  39515. return A._asyncStartSync($async$_async_import_cache$_canonicalize$3, $async$completer);
  39516. },
  39517. importCanonical$4$originalUrl$quiet(importer, canonicalUrl, originalUrl, quiet) {
  39518. return this.importCanonical$body$AsyncImportCache(importer, canonicalUrl, originalUrl, quiet);
  39519. },
  39520. importCanonical$3$originalUrl(importer, canonicalUrl, originalUrl) {
  39521. return this.importCanonical$4$originalUrl$quiet(importer, canonicalUrl, originalUrl, false);
  39522. },
  39523. importCanonical$body$AsyncImportCache(importer, canonicalUrl, originalUrl, quiet) {
  39524. var $async$goto = 0,
  39525. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Stylesheet),
  39526. $async$returnValue, $async$self = this;
  39527. var $async$importCanonical$4$originalUrl$quiet = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  39528. if ($async$errorCode === 1)
  39529. return A._asyncRethrow($async$result, $async$completer);
  39530. while (true)
  39531. switch ($async$goto) {
  39532. case 0:
  39533. // Function start
  39534. $async$goto = 3;
  39535. return A._asyncAwait(A.putIfAbsentAsync($async$self._async_import_cache$_importCache, canonicalUrl, new A.AsyncImportCache_importCanonical_closure($async$self, importer, canonicalUrl, originalUrl, quiet), type$.Uri, type$.nullable_Stylesheet), $async$importCanonical$4$originalUrl$quiet);
  39536. case 3:
  39537. // returning from await.
  39538. $async$returnValue = $async$result;
  39539. // goto return
  39540. $async$goto = 1;
  39541. break;
  39542. case 1:
  39543. // return
  39544. return A._asyncReturn($async$returnValue, $async$completer);
  39545. }
  39546. });
  39547. return A._asyncStartSync($async$importCanonical$4$originalUrl$quiet, $async$completer);
  39548. },
  39549. humanize$1(canonicalUrl) {
  39550. var t2, url,
  39551. t1 = this._async_import_cache$_canonicalizeCache;
  39552. t1 = A.IterableNullableExtension_whereNotNull(t1.get$values(t1), type$.Tuple3_AsyncImporter_Uri_Uri);
  39553. t2 = t1.$ti;
  39554. url = A.minBy(new A.MappedIterable(new A.WhereIterable(t1, new A.AsyncImportCache_humanize_closure(canonicalUrl), t2._eval$1("WhereIterable<Iterable.E>")), new A.AsyncImportCache_humanize_closure0(), t2._eval$1("MappedIterable<Iterable.E,Uri>")), new A.AsyncImportCache_humanize_closure1());
  39555. if (url == null)
  39556. return canonicalUrl;
  39557. t1 = $.$get$url();
  39558. return url.resolve$1(A.ParsedPath_ParsedPath$parse(canonicalUrl.get$path(canonicalUrl), t1.style).get$basename());
  39559. },
  39560. sourceMapUrl$1(_, canonicalUrl) {
  39561. var t1 = this._async_import_cache$_resultsCache.$index(0, canonicalUrl);
  39562. t1 = t1 == null ? null : t1.get$sourceMapUrl(t1);
  39563. return t1 == null ? canonicalUrl : t1;
  39564. }
  39565. };
  39566. A.AsyncImportCache_canonicalize_closure.prototype = {
  39567. call$0() {
  39568. var $async$goto = 0,
  39569. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Tuple3_AsyncImporter_Uri_Uri),
  39570. $async$returnValue, $async$self = this, canonicalUrl, t1, resolvedUrl;
  39571. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  39572. if ($async$errorCode === 1)
  39573. return A._asyncRethrow($async$result, $async$completer);
  39574. while (true)
  39575. switch ($async$goto) {
  39576. case 0:
  39577. // Function start
  39578. t1 = $async$self.baseUrl;
  39579. resolvedUrl = t1 == null ? null : t1.resolveUri$1($async$self.url);
  39580. if (resolvedUrl == null)
  39581. resolvedUrl = $async$self.url;
  39582. t1 = $async$self.baseImporter;
  39583. $async$goto = 3;
  39584. return A._asyncAwait($async$self.$this._async_import_cache$_canonicalize$3(t1, resolvedUrl, $async$self.forImport), $async$call$0);
  39585. case 3:
  39586. // returning from await.
  39587. canonicalUrl = $async$result;
  39588. if (canonicalUrl == null) {
  39589. $async$returnValue = null;
  39590. // goto return
  39591. $async$goto = 1;
  39592. break;
  39593. }
  39594. $async$returnValue = new A.Tuple3(t1, canonicalUrl, resolvedUrl, type$.Tuple3_AsyncImporter_Uri_Uri);
  39595. // goto return
  39596. $async$goto = 1;
  39597. break;
  39598. case 1:
  39599. // return
  39600. return A._asyncReturn($async$returnValue, $async$completer);
  39601. }
  39602. });
  39603. return A._asyncStartSync($async$call$0, $async$completer);
  39604. },
  39605. $signature: 147
  39606. };
  39607. A.AsyncImportCache_canonicalize_closure0.prototype = {
  39608. call$0() {
  39609. var $async$goto = 0,
  39610. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Tuple3_AsyncImporter_Uri_Uri),
  39611. $async$returnValue, $async$self = this, t1, t2, t3, t4, t5, _i, importer, canonicalUrl;
  39612. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  39613. if ($async$errorCode === 1)
  39614. return A._asyncRethrow($async$result, $async$completer);
  39615. while (true)
  39616. switch ($async$goto) {
  39617. case 0:
  39618. // Function start
  39619. t1 = $async$self.$this, t2 = t1._async_import_cache$_importers, t3 = t2.length, t4 = $async$self.url, t5 = $async$self.forImport, _i = 0;
  39620. case 3:
  39621. // for condition
  39622. if (!(_i < t2.length)) {
  39623. // goto after for
  39624. $async$goto = 5;
  39625. break;
  39626. }
  39627. importer = t2[_i];
  39628. $async$goto = 6;
  39629. return A._asyncAwait(t1._async_import_cache$_canonicalize$3(importer, t4, t5), $async$call$0);
  39630. case 6:
  39631. // returning from await.
  39632. canonicalUrl = $async$result;
  39633. if (canonicalUrl != null) {
  39634. $async$returnValue = new A.Tuple3(importer, canonicalUrl, t4, type$.Tuple3_AsyncImporter_Uri_Uri);
  39635. // goto return
  39636. $async$goto = 1;
  39637. break;
  39638. }
  39639. case 4:
  39640. // for update
  39641. t2.length === t3 || (0, A.throwConcurrentModificationError)(t2), ++_i;
  39642. // goto for condition
  39643. $async$goto = 3;
  39644. break;
  39645. case 5:
  39646. // after for
  39647. $async$returnValue = null;
  39648. // goto return
  39649. $async$goto = 1;
  39650. break;
  39651. case 1:
  39652. // return
  39653. return A._asyncReturn($async$returnValue, $async$completer);
  39654. }
  39655. });
  39656. return A._asyncStartSync($async$call$0, $async$completer);
  39657. },
  39658. $signature: 147
  39659. };
  39660. A.AsyncImportCache__canonicalize_closure.prototype = {
  39661. call$0() {
  39662. return this.importer.canonicalize$1(0, this.url);
  39663. },
  39664. $signature: 152
  39665. };
  39666. A.AsyncImportCache_importCanonical_closure.prototype = {
  39667. call$0() {
  39668. var $async$goto = 0,
  39669. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Stylesheet),
  39670. $async$returnValue, $async$self = this, t2, t3, t4, t1, result;
  39671. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  39672. if ($async$errorCode === 1)
  39673. return A._asyncRethrow($async$result, $async$completer);
  39674. while (true)
  39675. switch ($async$goto) {
  39676. case 0:
  39677. // Function start
  39678. t1 = $async$self.canonicalUrl;
  39679. $async$goto = 3;
  39680. return A._asyncAwait($async$self.importer.load$1(0, t1), $async$call$0);
  39681. case 3:
  39682. // returning from await.
  39683. result = $async$result;
  39684. if (result == null) {
  39685. $async$returnValue = null;
  39686. // goto return
  39687. $async$goto = 1;
  39688. break;
  39689. }
  39690. t2 = $async$self.$this;
  39691. t2._async_import_cache$_resultsCache.$indexSet(0, t1, result);
  39692. t3 = result.contents;
  39693. t4 = result.syntax;
  39694. t1 = $async$self.originalUrl.resolveUri$1(t1);
  39695. $async$returnValue = A.Stylesheet_Stylesheet$parse(t3, t4, $async$self.quiet ? $.$get$Logger_quiet() : t2._async_import_cache$_logger, t1);
  39696. // goto return
  39697. $async$goto = 1;
  39698. break;
  39699. case 1:
  39700. // return
  39701. return A._asyncReturn($async$returnValue, $async$completer);
  39702. }
  39703. });
  39704. return A._asyncStartSync($async$call$0, $async$completer);
  39705. },
  39706. $signature: 537
  39707. };
  39708. A.AsyncImportCache_humanize_closure.prototype = {
  39709. call$1(tuple) {
  39710. return tuple.item2.$eq(0, this.canonicalUrl);
  39711. },
  39712. $signature: 530
  39713. };
  39714. A.AsyncImportCache_humanize_closure0.prototype = {
  39715. call$1(tuple) {
  39716. return tuple.item3;
  39717. },
  39718. $signature: 528
  39719. };
  39720. A.AsyncImportCache_humanize_closure1.prototype = {
  39721. call$1(url) {
  39722. return url.get$path(url).length;
  39723. },
  39724. $signature: 78
  39725. };
  39726. A.AsyncBuiltInCallable.prototype = {
  39727. callbackFor$2(positional, names) {
  39728. return new A.Tuple2(this._async_built_in$_arguments, this._async_built_in$_callback, type$.Tuple2_of_ArgumentDeclaration_and_FutureOr_Value_Function_List_Value);
  39729. },
  39730. $isAsyncCallable: 1,
  39731. get$name(receiver) {
  39732. return this.name;
  39733. }
  39734. };
  39735. A.AsyncBuiltInCallable$mixin_closure.prototype = {
  39736. call$1($arguments) {
  39737. return this.$call$body$AsyncBuiltInCallable$mixin_closure($arguments);
  39738. },
  39739. $call$body$AsyncBuiltInCallable$mixin_closure($arguments) {
  39740. var $async$goto = 0,
  39741. $async$completer = A._makeAsyncAwaitCompleter(type$.Value),
  39742. $async$returnValue, $async$self = this;
  39743. var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  39744. if ($async$errorCode === 1)
  39745. return A._asyncRethrow($async$result, $async$completer);
  39746. while (true)
  39747. switch ($async$goto) {
  39748. case 0:
  39749. // Function start
  39750. $async$goto = 3;
  39751. return A._asyncAwait($async$self.callback.call$1($arguments), $async$call$1);
  39752. case 3:
  39753. // returning from await.
  39754. $async$returnValue = B.C__SassNull;
  39755. // goto return
  39756. $async$goto = 1;
  39757. break;
  39758. case 1:
  39759. // return
  39760. return A._asyncReturn($async$returnValue, $async$completer);
  39761. }
  39762. });
  39763. return A._asyncStartSync($async$call$1, $async$completer);
  39764. },
  39765. $signature: 177
  39766. };
  39767. A.BuiltInCallable.prototype = {
  39768. callbackFor$2(positional, names) {
  39769. var t1, t2, fuzzyMatch, minMismatchDistance, _i, overload, t3, mismatchDistance, t4;
  39770. for (t1 = this._overloads, t2 = t1.length, fuzzyMatch = null, minMismatchDistance = null, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
  39771. overload = t1[_i];
  39772. t3 = overload.item1;
  39773. if (t3.matches$2(positional, names))
  39774. return overload;
  39775. mismatchDistance = t3.$arguments.length - positional;
  39776. if (minMismatchDistance != null) {
  39777. t3 = Math.abs(mismatchDistance);
  39778. t4 = Math.abs(minMismatchDistance);
  39779. if (t3 > t4)
  39780. continue;
  39781. if (t3 === t4 && mismatchDistance < 0)
  39782. continue;
  39783. }
  39784. minMismatchDistance = mismatchDistance;
  39785. fuzzyMatch = overload;
  39786. }
  39787. if (fuzzyMatch != null)
  39788. return fuzzyMatch;
  39789. throw A.wrapException(A.StateError$("BuiltInCallable " + this.name + " may not have empty overloads."));
  39790. },
  39791. withName$1($name) {
  39792. return new A.BuiltInCallable($name, this._overloads);
  39793. },
  39794. $isCallable: 1,
  39795. $isAsyncCallable: 1,
  39796. $isAsyncBuiltInCallable: 1,
  39797. get$name(receiver) {
  39798. return this.name;
  39799. }
  39800. };
  39801. A.BuiltInCallable$mixin_closure.prototype = {
  39802. call$1($arguments) {
  39803. this.callback.call$1($arguments);
  39804. return B.C__SassNull;
  39805. },
  39806. $signature: 4
  39807. };
  39808. A.PlainCssCallable.prototype = {
  39809. $eq(_, other) {
  39810. if (other == null)
  39811. return false;
  39812. return other instanceof A.PlainCssCallable && this.name === other.name;
  39813. },
  39814. get$hashCode(_) {
  39815. return B.JSString_methods.get$hashCode(this.name);
  39816. },
  39817. $isCallable: 1,
  39818. $isAsyncCallable: 1,
  39819. get$name(receiver) {
  39820. return this.name;
  39821. }
  39822. };
  39823. A.UserDefinedCallable.prototype = {
  39824. get$name(_) {
  39825. return this.declaration.name;
  39826. },
  39827. $isCallable: 1,
  39828. $isAsyncCallable: 1
  39829. };
  39830. A._compileStylesheet_closure.prototype = {
  39831. call$1(url) {
  39832. var t1;
  39833. if (url === "") {
  39834. t1 = this.stylesheet.span;
  39835. t1 = A.Uri_Uri$dataFromString(A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t1.get$file(t1)._decodedChars, 0, null), 0, null), B.C_Utf8Codec, null).get$_text();
  39836. } else
  39837. t1 = this.importCache.sourceMapUrl$1(0, A.Uri_parse(url)).toString$0(0);
  39838. return t1;
  39839. },
  39840. $signature: 5
  39841. };
  39842. A.CompileResult.prototype = {};
  39843. A.Configuration.prototype = {
  39844. throughForward$1($forward) {
  39845. var prefix, shownVariables, hiddenVariables, t1,
  39846. newValues = this._values;
  39847. if (newValues.get$isEmpty(newValues))
  39848. return B.Configuration_Map_empty_null;
  39849. prefix = $forward.prefix;
  39850. if (prefix != null)
  39851. newValues = new A.UnprefixedMapView(newValues, prefix, type$.UnprefixedMapView_ConfiguredValue);
  39852. shownVariables = $forward.shownVariables;
  39853. hiddenVariables = $forward.hiddenVariables;
  39854. if (shownVariables != null)
  39855. newValues = new A.LimitedMapView(newValues, shownVariables._base.intersection$1(new A.MapKeySet(newValues, type$.MapKeySet_nullable_Object)), type$.LimitedMapView_String_ConfiguredValue);
  39856. else {
  39857. if (hiddenVariables != null) {
  39858. t1 = hiddenVariables._base;
  39859. t1 = t1.get$isNotEmpty(t1);
  39860. } else
  39861. t1 = false;
  39862. if (t1)
  39863. newValues = A.LimitedMapView$blocklist(newValues, hiddenVariables, type$.String, type$.ConfiguredValue);
  39864. }
  39865. return this._withValues$1(newValues);
  39866. },
  39867. _withValues$1(values) {
  39868. var t1 = this.__originalConfiguration;
  39869. return new A.Configuration(values, t1 == null ? this : t1);
  39870. },
  39871. toString$0(_) {
  39872. var t1 = this._values;
  39873. return "(" + t1.get$entries(t1).map$1$1(0, new A.Configuration_toString_closure(), type$.String).join$1(0, ", ") + ")";
  39874. }
  39875. };
  39876. A.Configuration_toString_closure.prototype = {
  39877. call$1(entry) {
  39878. return "$" + A.S(entry.key) + ": " + A.S(entry.value);
  39879. },
  39880. $signature: 521
  39881. };
  39882. A.ExplicitConfiguration.prototype = {
  39883. _withValues$1(values) {
  39884. var t1 = this.__originalConfiguration;
  39885. if (t1 == null)
  39886. t1 = this;
  39887. return new A.ExplicitConfiguration(this.nodeWithSpan, values, t1);
  39888. }
  39889. };
  39890. A.ConfiguredValue.prototype = {
  39891. toString$0(_) {
  39892. return A.serializeValue(this.value, true, true);
  39893. }
  39894. };
  39895. A.Environment.prototype = {
  39896. closure$0() {
  39897. var t4, t5, t6, _this = this,
  39898. t1 = _this._forwardedModules,
  39899. t2 = _this._nestedForwardedModules,
  39900. t3 = _this._variables;
  39901. t3 = A._setArrayType(t3.slice(0), A._arrayInstanceType(t3));
  39902. t4 = _this._variableNodes;
  39903. t4 = A._setArrayType(t4.slice(0), A._arrayInstanceType(t4));
  39904. t5 = _this._functions;
  39905. t5 = A._setArrayType(t5.slice(0), A._arrayInstanceType(t5));
  39906. t6 = _this._mixins;
  39907. t6 = A._setArrayType(t6.slice(0), A._arrayInstanceType(t6));
  39908. return A.Environment$_(_this._environment$_modules, _this._namespaceNodes, _this._globalModules, _this._importedModules, t1, t2, _this._allModules, t3, t4, t5, t6, _this._content);
  39909. },
  39910. addModule$3$namespace(module, nodeWithSpan, namespace) {
  39911. var t1, t2, span, _this = this;
  39912. if (namespace == null) {
  39913. _this._globalModules.$indexSet(0, module, nodeWithSpan);
  39914. _this._allModules.push(module);
  39915. for (t1 = J.get$iterator$ax(J.get$keys$z(B.JSArray_methods.get$first(_this._variables))); t1.moveNext$0();) {
  39916. t2 = t1.get$current(t1);
  39917. if (module.get$variables().containsKey$1(t2))
  39918. throw A.wrapException(A.SassScriptException$(string$.This_ma + t2 + '".', null));
  39919. }
  39920. } else {
  39921. t1 = _this._environment$_modules;
  39922. if (t1.containsKey$1(namespace)) {
  39923. t1 = _this._namespaceNodes.$index(0, namespace);
  39924. span = t1 == null ? null : t1.span;
  39925. t1 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
  39926. if (span != null)
  39927. t1.$indexSet(0, span, "original @use");
  39928. throw A.wrapException(A.MultiSpanSassScriptException$(string$.There_ + namespace + '".', "new @use", t1));
  39929. }
  39930. t1.$indexSet(0, namespace, module);
  39931. _this._namespaceNodes.$indexSet(0, namespace, nodeWithSpan);
  39932. _this._allModules.push(module);
  39933. }
  39934. },
  39935. forwardModule$2(module, rule) {
  39936. var view, t1, t2, _this = this,
  39937. forwardedModules = _this._forwardedModules;
  39938. if (forwardedModules == null)
  39939. forwardedModules = _this._forwardedModules = A.LinkedHashMap_LinkedHashMap$_empty(type$.Module_Callable, type$.AstNode);
  39940. view = A.ForwardedModuleView_ifNecessary(module, rule, type$.Callable);
  39941. for (t1 = A.LinkedHashMapKeyIterator$(forwardedModules, forwardedModules._modifications); t1.moveNext$0();) {
  39942. t2 = t1.__js_helper$_current;
  39943. _this._assertNoConflicts$5(view.get$variables(), t2.get$variables(), view, t2, "variable");
  39944. _this._assertNoConflicts$5(view.get$functions(view), t2.get$functions(t2), view, t2, "function");
  39945. _this._assertNoConflicts$5(view.get$mixins(), t2.get$mixins(), view, t2, "mixin");
  39946. }
  39947. _this._allModules.push(module);
  39948. forwardedModules.$indexSet(0, view, rule);
  39949. },
  39950. _assertNoConflicts$5(newMembers, oldMembers, newModule, oldModule, type) {
  39951. var larger, smaller, t1, t2, $name, span;
  39952. if (newMembers.get$length(newMembers) < oldMembers.get$length(oldMembers)) {
  39953. larger = oldMembers;
  39954. smaller = newMembers;
  39955. } else {
  39956. larger = newMembers;
  39957. smaller = oldMembers;
  39958. }
  39959. for (t1 = J.get$iterator$ax(smaller.get$keys(smaller)), t2 = type === "variable"; t1.moveNext$0();) {
  39960. $name = t1.get$current(t1);
  39961. if (!larger.containsKey$1($name))
  39962. continue;
  39963. if (t2 ? newModule.variableIdentity$1($name) === oldModule.variableIdentity$1($name) : J.$eq$(larger.$index(0, $name), smaller.$index(0, $name)))
  39964. continue;
  39965. if (t2)
  39966. $name = "$" + $name;
  39967. t1 = this._forwardedModules;
  39968. if (t1 == null)
  39969. span = null;
  39970. else {
  39971. t1 = t1.$index(0, oldModule);
  39972. span = t1 == null ? null : J.get$span$z(t1);
  39973. }
  39974. t1 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
  39975. if (span != null)
  39976. t1.$indexSet(0, span, "original @forward");
  39977. throw A.wrapException(A.MultiSpanSassScriptException$("Two forwarded modules both define a " + type + " named " + $name + ".", "new @forward", t1));
  39978. }
  39979. },
  39980. importForwards$1(module) {
  39981. var forwardedModules, t1, t2, t3, t4, t5, forwardedVariableNames, forwardedFunctionNames, forwardedMixinNames, _i, entry, shadowed, t6, _length, _list, _this = this,
  39982. forwarded = module._environment$_environment._forwardedModules;
  39983. if (forwarded == null)
  39984. return;
  39985. forwardedModules = _this._forwardedModules;
  39986. if (forwardedModules != null) {
  39987. t1 = A.LinkedHashMap_LinkedHashMap$_empty(type$.Module_Callable, type$.AstNode);
  39988. for (t2 = forwarded.get$entries(forwarded), t2 = t2.get$iterator(t2), t3 = _this._globalModules; t2.moveNext$0();) {
  39989. t4 = t2.get$current(t2);
  39990. t5 = t4.key;
  39991. if (!forwardedModules.containsKey$1(t5) || !t3.containsKey$1(t5))
  39992. t1.$indexSet(0, t5, t4.value);
  39993. }
  39994. forwarded = t1;
  39995. } else
  39996. forwardedModules = _this._forwardedModules = A.LinkedHashMap_LinkedHashMap$_empty(type$.Module_Callable, type$.AstNode);
  39997. t1 = A._instanceType(forwarded)._eval$1("LinkedHashMapKeyIterable<1>");
  39998. t2 = t1._eval$1("ExpandIterable<Iterable.E,String>");
  39999. t3 = t2._eval$1("Iterable.E");
  40000. forwardedVariableNames = A.LinkedHashSet_LinkedHashSet$of(new A.ExpandIterable(new A.LinkedHashMapKeyIterable(forwarded, t1), new A.Environment_importForwards_closure(), t2), t3);
  40001. forwardedFunctionNames = A.LinkedHashSet_LinkedHashSet$of(new A.ExpandIterable(new A.LinkedHashMapKeyIterable(forwarded, t1), new A.Environment_importForwards_closure0(), t2), t3);
  40002. forwardedMixinNames = A.LinkedHashSet_LinkedHashSet$of(new A.ExpandIterable(new A.LinkedHashMapKeyIterable(forwarded, t1), new A.Environment_importForwards_closure1(), t2), t3);
  40003. t2 = _this._variables;
  40004. t3 = t2.length;
  40005. if (t3 === 1) {
  40006. for (t1 = _this._importedModules, t3 = t1.get$entries(t1).toList$0(0), t4 = t3.length, t5 = type$.Callable, _i = 0; _i < t3.length; t3.length === t4 || (0, A.throwConcurrentModificationError)(t3), ++_i) {
  40007. entry = t3[_i];
  40008. module = entry.key;
  40009. shadowed = A.ShadowedModuleView_ifNecessary(module, forwardedFunctionNames, forwardedMixinNames, forwardedVariableNames, t5);
  40010. if (shadowed != null) {
  40011. t1.remove$1(0, module);
  40012. t6 = shadowed.variables;
  40013. if (t6.get$isEmpty(t6)) {
  40014. t6 = shadowed.functions;
  40015. if (t6.get$isEmpty(t6)) {
  40016. t6 = shadowed.mixins;
  40017. if (t6.get$isEmpty(t6)) {
  40018. t6 = shadowed._shadowed_view$_inner;
  40019. t6 = t6.get$css(t6);
  40020. t6 = J.get$isEmpty$asx(t6.get$children(t6));
  40021. } else
  40022. t6 = false;
  40023. } else
  40024. t6 = false;
  40025. } else
  40026. t6 = false;
  40027. if (!t6)
  40028. t1.$indexSet(0, shadowed, entry.value);
  40029. }
  40030. }
  40031. for (t3 = forwardedModules.get$entries(forwardedModules).toList$0(0), t4 = t3.length, _i = 0; _i < t3.length; t3.length === t4 || (0, A.throwConcurrentModificationError)(t3), ++_i) {
  40032. entry = t3[_i];
  40033. module = entry.key;
  40034. shadowed = A.ShadowedModuleView_ifNecessary(module, forwardedFunctionNames, forwardedMixinNames, forwardedVariableNames, t5);
  40035. if (shadowed != null) {
  40036. forwardedModules.remove$1(0, module);
  40037. t6 = shadowed.variables;
  40038. if (t6.get$isEmpty(t6)) {
  40039. t6 = shadowed.functions;
  40040. if (t6.get$isEmpty(t6)) {
  40041. t6 = shadowed.mixins;
  40042. if (t6.get$isEmpty(t6)) {
  40043. t6 = shadowed._shadowed_view$_inner;
  40044. t6 = t6.get$css(t6);
  40045. t6 = J.get$isEmpty$asx(t6.get$children(t6));
  40046. } else
  40047. t6 = false;
  40048. } else
  40049. t6 = false;
  40050. } else
  40051. t6 = false;
  40052. if (!t6)
  40053. forwardedModules.$indexSet(0, shadowed, entry.value);
  40054. }
  40055. }
  40056. t1.addAll$1(0, forwarded);
  40057. forwardedModules.addAll$1(0, forwarded);
  40058. } else {
  40059. t4 = _this._nestedForwardedModules;
  40060. if (t4 == null) {
  40061. _length = t3 - 1;
  40062. _list = J.JSArray_JSArray$allocateGrowable(_length, type$.List_Module_Callable);
  40063. for (t3 = type$.JSArray_Module_Callable, _i = 0; _i < _length; ++_i)
  40064. _list[_i] = A._setArrayType([], t3);
  40065. _this._nestedForwardedModules = _list;
  40066. t3 = _list;
  40067. } else
  40068. t3 = t4;
  40069. B.JSArray_methods.addAll$1(B.JSArray_methods.get$last(t3), new A.LinkedHashMapKeyIterable(forwarded, t1));
  40070. }
  40071. for (t1 = A._LinkedHashSetIterator$(forwardedVariableNames, forwardedVariableNames._collection$_modifications), t3 = _this._variableIndices, t4 = _this._variableNodes, t5 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) {
  40072. t6 = t1._collection$_current;
  40073. if (t6 == null)
  40074. t6 = t5._as(t6);
  40075. t3.remove$1(0, t6);
  40076. J.remove$1$z(B.JSArray_methods.get$last(t2), t6);
  40077. J.remove$1$z(B.JSArray_methods.get$last(t4), t6);
  40078. }
  40079. for (t1 = A._LinkedHashSetIterator$(forwardedFunctionNames, forwardedFunctionNames._collection$_modifications), t2 = _this._functionIndices, t3 = _this._functions, t4 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) {
  40080. t5 = t1._collection$_current;
  40081. if (t5 == null)
  40082. t5 = t4._as(t5);
  40083. t2.remove$1(0, t5);
  40084. J.remove$1$z(B.JSArray_methods.get$last(t3), t5);
  40085. }
  40086. for (t1 = A._LinkedHashSetIterator$(forwardedMixinNames, forwardedMixinNames._collection$_modifications), t2 = _this._mixinIndices, t3 = _this._mixins, t4 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) {
  40087. t5 = t1._collection$_current;
  40088. if (t5 == null)
  40089. t5 = t4._as(t5);
  40090. t2.remove$1(0, t5);
  40091. J.remove$1$z(B.JSArray_methods.get$last(t3), t5);
  40092. }
  40093. },
  40094. getVariable$2$namespace($name, namespace) {
  40095. var t1, index, _this = this;
  40096. if (namespace != null)
  40097. return _this._getModule$1(namespace).get$variables().$index(0, $name);
  40098. if (_this._lastVariableName === $name) {
  40099. t1 = _this._lastVariableIndex;
  40100. t1.toString;
  40101. t1 = J.$index$asx(_this._variables[t1], $name);
  40102. return t1 == null ? _this._getVariableFromGlobalModule$1($name) : t1;
  40103. }
  40104. t1 = _this._variableIndices;
  40105. index = t1.$index(0, $name);
  40106. if (index != null) {
  40107. _this._lastVariableName = $name;
  40108. _this._lastVariableIndex = index;
  40109. t1 = J.$index$asx(_this._variables[index], $name);
  40110. return t1 == null ? _this._getVariableFromGlobalModule$1($name) : t1;
  40111. }
  40112. index = _this._variableIndex$1($name);
  40113. if (index == null)
  40114. return _this._getVariableFromGlobalModule$1($name);
  40115. _this._lastVariableName = $name;
  40116. _this._lastVariableIndex = index;
  40117. t1.$indexSet(0, $name, index);
  40118. t1 = J.$index$asx(_this._variables[index], $name);
  40119. return t1 == null ? _this._getVariableFromGlobalModule$1($name) : t1;
  40120. },
  40121. getVariable$1($name) {
  40122. return this.getVariable$2$namespace($name, null);
  40123. },
  40124. _getVariableFromGlobalModule$1($name) {
  40125. return this._fromOneModule$1$3($name, "variable", new A.Environment__getVariableFromGlobalModule_closure($name), type$.Value);
  40126. },
  40127. getVariableNode$2$namespace($name, namespace) {
  40128. var t1, index, _this = this;
  40129. if (namespace != null)
  40130. return _this._getModule$1(namespace).get$variableNodes().$index(0, $name);
  40131. if (_this._lastVariableName === $name) {
  40132. t1 = _this._lastVariableIndex;
  40133. t1.toString;
  40134. t1 = J.$index$asx(_this._variableNodes[t1], $name);
  40135. return t1 == null ? _this._getVariableNodeFromGlobalModule$1($name) : t1;
  40136. }
  40137. t1 = _this._variableIndices;
  40138. index = t1.$index(0, $name);
  40139. if (index != null) {
  40140. _this._lastVariableName = $name;
  40141. _this._lastVariableIndex = index;
  40142. t1 = J.$index$asx(_this._variableNodes[index], $name);
  40143. return t1 == null ? _this._getVariableNodeFromGlobalModule$1($name) : t1;
  40144. }
  40145. index = _this._variableIndex$1($name);
  40146. if (index == null)
  40147. return _this._getVariableNodeFromGlobalModule$1($name);
  40148. _this._lastVariableName = $name;
  40149. _this._lastVariableIndex = index;
  40150. t1.$indexSet(0, $name, index);
  40151. t1 = J.$index$asx(_this._variableNodes[index], $name);
  40152. return t1 == null ? _this._getVariableNodeFromGlobalModule$1($name) : t1;
  40153. },
  40154. _getVariableNodeFromGlobalModule$1($name) {
  40155. var t1, t2, value;
  40156. for (t1 = this._importedModules, t2 = this._globalModules, t2 = new A.LinkedHashMapKeyIterable(t1, A._instanceType(t1)._eval$1("LinkedHashMapKeyIterable<1>")).followedBy$1(0, new A.LinkedHashMapKeyIterable(t2, A._instanceType(t2)._eval$1("LinkedHashMapKeyIterable<1>"))), t2 = new A.FollowedByIterator(J.get$iterator$ax(t2.__internal$_first), t2._second); t2.moveNext$0();) {
  40157. t1 = t2._currentIterator;
  40158. value = t1.get$current(t1).get$variableNodes().$index(0, $name);
  40159. if (value != null)
  40160. return value;
  40161. }
  40162. return null;
  40163. },
  40164. globalVariableExists$2$namespace($name, namespace) {
  40165. if (namespace != null)
  40166. return this._getModule$1(namespace).get$variables().containsKey$1($name);
  40167. if (B.JSArray_methods.get$first(this._variables).containsKey$1($name))
  40168. return true;
  40169. return this._getVariableFromGlobalModule$1($name) != null;
  40170. },
  40171. globalVariableExists$1($name) {
  40172. return this.globalVariableExists$2$namespace($name, null);
  40173. },
  40174. _variableIndex$1($name) {
  40175. var t1, i;
  40176. for (t1 = this._variables, i = t1.length - 1; i >= 0; --i)
  40177. if (t1[i].containsKey$1($name))
  40178. return i;
  40179. return null;
  40180. },
  40181. setVariable$5$global$namespace($name, value, nodeWithSpan, global, namespace) {
  40182. var t1, moduleWithName, nestedForwardedModules, t2, t3, t4, t5, index, _this = this;
  40183. if (namespace != null) {
  40184. _this._getModule$1(namespace).setVariable$3($name, value, nodeWithSpan);
  40185. return;
  40186. }
  40187. if (global || _this._variables.length === 1) {
  40188. _this._variableIndices.putIfAbsent$2($name, new A.Environment_setVariable_closure(_this, $name));
  40189. t1 = _this._variables;
  40190. if (!B.JSArray_methods.get$first(t1).containsKey$1($name)) {
  40191. moduleWithName = _this._fromOneModule$1$3($name, "variable", new A.Environment_setVariable_closure0($name), type$.Module_Callable);
  40192. if (moduleWithName != null) {
  40193. moduleWithName.setVariable$3($name, value, nodeWithSpan);
  40194. return;
  40195. }
  40196. }
  40197. J.$indexSet$ax(B.JSArray_methods.get$first(t1), $name, value);
  40198. J.$indexSet$ax(B.JSArray_methods.get$first(_this._variableNodes), $name, nodeWithSpan);
  40199. return;
  40200. }
  40201. nestedForwardedModules = _this._nestedForwardedModules;
  40202. if (nestedForwardedModules != null && !_this._variableIndices.containsKey$1($name) && _this._variableIndex$1($name) == null)
  40203. for (t1 = new A.ReversedListIterable(nestedForwardedModules, A.instanceType(nestedForwardedModules)._eval$1("ReversedListIterable<1>")), t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) {
  40204. t3 = t1.__internal$_current;
  40205. for (t3 = J.get$reversed$ax(t3 == null ? t2._as(t3) : t3), t3 = new A.ListIterator(t3, t3.get$length(t3)), t4 = A._instanceType(t3)._precomputed1; t3.moveNext$0();) {
  40206. t5 = t3.__internal$_current;
  40207. if (t5 == null)
  40208. t5 = t4._as(t5);
  40209. if (t5.get$variables().containsKey$1($name)) {
  40210. t5.setVariable$3($name, value, nodeWithSpan);
  40211. return;
  40212. }
  40213. }
  40214. }
  40215. if (_this._lastVariableName === $name) {
  40216. t1 = _this._lastVariableIndex;
  40217. t1.toString;
  40218. index = t1;
  40219. } else
  40220. index = _this._variableIndices.putIfAbsent$2($name, new A.Environment_setVariable_closure1(_this, $name));
  40221. if (!_this._inSemiGlobalScope && index === 0) {
  40222. index = _this._variables.length - 1;
  40223. _this._variableIndices.$indexSet(0, $name, index);
  40224. }
  40225. _this._lastVariableName = $name;
  40226. _this._lastVariableIndex = index;
  40227. J.$indexSet$ax(_this._variables[index], $name, value);
  40228. J.$indexSet$ax(_this._variableNodes[index], $name, nodeWithSpan);
  40229. },
  40230. setVariable$4$global($name, value, nodeWithSpan, global) {
  40231. return this.setVariable$5$global$namespace($name, value, nodeWithSpan, global, null);
  40232. },
  40233. setLocalVariable$3($name, value, nodeWithSpan) {
  40234. var index, _this = this,
  40235. t1 = _this._variables,
  40236. t2 = t1.length;
  40237. _this._lastVariableName = $name;
  40238. index = _this._lastVariableIndex = t2 - 1;
  40239. _this._variableIndices.$indexSet(0, $name, index);
  40240. J.$indexSet$ax(t1[index], $name, value);
  40241. J.$indexSet$ax(_this._variableNodes[index], $name, nodeWithSpan);
  40242. },
  40243. getFunction$2$namespace($name, namespace) {
  40244. var t1, index, _this = this;
  40245. if (namespace != null) {
  40246. t1 = _this._getModule$1(namespace);
  40247. return t1.get$functions(t1).$index(0, $name);
  40248. }
  40249. t1 = _this._functionIndices;
  40250. index = t1.$index(0, $name);
  40251. if (index != null) {
  40252. t1 = J.$index$asx(_this._functions[index], $name);
  40253. return t1 == null ? _this._getFunctionFromGlobalModule$1($name) : t1;
  40254. }
  40255. index = _this._functionIndex$1($name);
  40256. if (index == null)
  40257. return _this._getFunctionFromGlobalModule$1($name);
  40258. t1.$indexSet(0, $name, index);
  40259. t1 = J.$index$asx(_this._functions[index], $name);
  40260. return t1 == null ? _this._getFunctionFromGlobalModule$1($name) : t1;
  40261. },
  40262. _getFunctionFromGlobalModule$1($name) {
  40263. return this._fromOneModule$1$3($name, "function", new A.Environment__getFunctionFromGlobalModule_closure($name), type$.Callable);
  40264. },
  40265. _functionIndex$1($name) {
  40266. var t1, i;
  40267. for (t1 = this._functions, i = t1.length - 1; i >= 0; --i)
  40268. if (t1[i].containsKey$1($name))
  40269. return i;
  40270. return null;
  40271. },
  40272. getMixin$2$namespace($name, namespace) {
  40273. var t1, index, _this = this;
  40274. if (namespace != null)
  40275. return _this._getModule$1(namespace).get$mixins().$index(0, $name);
  40276. t1 = _this._mixinIndices;
  40277. index = t1.$index(0, $name);
  40278. if (index != null) {
  40279. t1 = J.$index$asx(_this._mixins[index], $name);
  40280. return t1 == null ? _this._getMixinFromGlobalModule$1($name) : t1;
  40281. }
  40282. index = _this._mixinIndex$1($name);
  40283. if (index == null)
  40284. return _this._getMixinFromGlobalModule$1($name);
  40285. t1.$indexSet(0, $name, index);
  40286. t1 = J.$index$asx(_this._mixins[index], $name);
  40287. return t1 == null ? _this._getMixinFromGlobalModule$1($name) : t1;
  40288. },
  40289. _getMixinFromGlobalModule$1($name) {
  40290. return this._fromOneModule$1$3($name, "mixin", new A.Environment__getMixinFromGlobalModule_closure($name), type$.Callable);
  40291. },
  40292. _mixinIndex$1($name) {
  40293. var t1, i;
  40294. for (t1 = this._mixins, i = t1.length - 1; i >= 0; --i)
  40295. if (t1[i].containsKey$1($name))
  40296. return i;
  40297. return null;
  40298. },
  40299. scope$1$3$semiGlobal$when(callback, semiGlobal, when) {
  40300. var wasInSemiGlobalScope, $name, name0, name1, t1, t2, t3, t4, t5, t6, _this = this;
  40301. semiGlobal = semiGlobal && _this._inSemiGlobalScope;
  40302. wasInSemiGlobalScope = _this._inSemiGlobalScope;
  40303. _this._inSemiGlobalScope = semiGlobal;
  40304. if (!when)
  40305. try {
  40306. t1 = callback.call$0();
  40307. return t1;
  40308. } finally {
  40309. _this._inSemiGlobalScope = wasInSemiGlobalScope;
  40310. }
  40311. t1 = _this._variables;
  40312. t2 = type$.String;
  40313. B.JSArray_methods.add$1(t1, A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.Value));
  40314. t3 = _this._variableNodes;
  40315. B.JSArray_methods.add$1(t3, A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.AstNode));
  40316. t4 = _this._functions;
  40317. t5 = type$.Callable;
  40318. B.JSArray_methods.add$1(t4, A.LinkedHashMap_LinkedHashMap$_empty(t2, t5));
  40319. t6 = _this._mixins;
  40320. B.JSArray_methods.add$1(t6, A.LinkedHashMap_LinkedHashMap$_empty(t2, t5));
  40321. t5 = _this._nestedForwardedModules;
  40322. if (t5 != null)
  40323. t5.push(A._setArrayType([], type$.JSArray_Module_Callable));
  40324. try {
  40325. t2 = callback.call$0();
  40326. return t2;
  40327. } finally {
  40328. _this._inSemiGlobalScope = wasInSemiGlobalScope;
  40329. _this._lastVariableIndex = _this._lastVariableName = null;
  40330. for (t1 = J.get$iterator$ax(J.get$keys$z(B.JSArray_methods.removeLast$0(t1))), t2 = _this._variableIndices; t1.moveNext$0();) {
  40331. $name = t1.get$current(t1);
  40332. t2.remove$1(0, $name);
  40333. }
  40334. B.JSArray_methods.removeLast$0(t3);
  40335. for (t1 = J.get$iterator$ax(J.get$keys$z(B.JSArray_methods.removeLast$0(t4))), t2 = _this._functionIndices; t1.moveNext$0();) {
  40336. name0 = t1.get$current(t1);
  40337. t2.remove$1(0, name0);
  40338. }
  40339. for (t1 = J.get$iterator$ax(J.get$keys$z(B.JSArray_methods.removeLast$0(t6))), t2 = _this._mixinIndices; t1.moveNext$0();) {
  40340. name1 = t1.get$current(t1);
  40341. t2.remove$1(0, name1);
  40342. }
  40343. t1 = _this._nestedForwardedModules;
  40344. if (t1 != null)
  40345. t1.pop();
  40346. }
  40347. },
  40348. scope$1$1(callback, $T) {
  40349. return this.scope$1$3$semiGlobal$when(callback, false, true, $T);
  40350. },
  40351. scope$1$2$when(callback, when, $T) {
  40352. return this.scope$1$3$semiGlobal$when(callback, false, when, $T);
  40353. },
  40354. scope$1$2$semiGlobal(callback, semiGlobal, $T) {
  40355. return this.scope$1$3$semiGlobal$when(callback, semiGlobal, true, $T);
  40356. },
  40357. toImplicitConfiguration$0() {
  40358. var t1, t2, i, values, nodes, t3, t4, t5, t6,
  40359. configuration = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.ConfiguredValue);
  40360. for (t1 = this._variables, t2 = this._variableNodes, i = 0; i < t1.length; ++i) {
  40361. values = t1[i];
  40362. nodes = t2[i];
  40363. for (t3 = values.get$entries(values), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  40364. t4 = t3.get$current(t3);
  40365. t5 = t4.key;
  40366. t4 = t4.value;
  40367. t6 = nodes.$index(0, t5);
  40368. t6.toString;
  40369. configuration.$indexSet(0, t5, new A.ConfiguredValue(t4, null, t6));
  40370. }
  40371. }
  40372. return new A.Configuration(configuration, null);
  40373. },
  40374. toModule$2(css, extensionStore) {
  40375. return A._EnvironmentModule__EnvironmentModule(this, css, extensionStore, A.NullableExtension_andThen(this._forwardedModules, new A.Environment_toModule_closure()));
  40376. },
  40377. toDummyModule$0() {
  40378. return A._EnvironmentModule__EnvironmentModule(this, new A.CssStylesheet(new A.UnmodifiableListView(B.List_empty3, type$.UnmodifiableListView_CssNode), A.SourceFile$decoded(B.List_empty4, "<dummy module>").span$1(0, 0)), B.C_EmptyExtensionStore, A.NullableExtension_andThen(this._forwardedModules, new A.Environment_toDummyModule_closure()));
  40379. },
  40380. _getModule$1(namespace) {
  40381. var module = this._environment$_modules.$index(0, namespace);
  40382. if (module != null)
  40383. return module;
  40384. throw A.wrapException(A.SassScriptException$('There is no module with the namespace "' + namespace + '".', null));
  40385. },
  40386. _fromOneModule$1$3($name, type, callback, $T) {
  40387. var t1, t2, t3, t4, t5, value, identity, valueInModule, identityFromModule, spans,
  40388. nestedForwardedModules = this._nestedForwardedModules;
  40389. if (nestedForwardedModules != null)
  40390. for (t1 = new A.ReversedListIterable(nestedForwardedModules, A._arrayInstanceType(nestedForwardedModules)._eval$1("ReversedListIterable<1>")), t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) {
  40391. t3 = t1.__internal$_current;
  40392. for (t3 = J.get$reversed$ax(t3 == null ? t2._as(t3) : t3), t3 = new A.ListIterator(t3, t3.get$length(t3)), t4 = A._instanceType(t3)._precomputed1; t3.moveNext$0();) {
  40393. t5 = t3.__internal$_current;
  40394. value = callback.call$1(t5 == null ? t4._as(t5) : t5);
  40395. if (value != null)
  40396. return value;
  40397. }
  40398. }
  40399. for (t1 = this._importedModules, t1 = A.LinkedHashMapKeyIterator$(t1, t1._modifications); t1.moveNext$0();) {
  40400. value = callback.call$1(t1.__js_helper$_current);
  40401. if (value != null)
  40402. return value;
  40403. }
  40404. for (t1 = this._globalModules, t2 = A.LinkedHashMapKeyIterator$(t1, t1._modifications), t3 = type$.Callable, value = null, identity = null; t2.moveNext$0();) {
  40405. t4 = t2.__js_helper$_current;
  40406. valueInModule = callback.call$1(t4);
  40407. if (valueInModule == null)
  40408. continue;
  40409. identityFromModule = t3._is(valueInModule) ? valueInModule : t4.variableIdentity$1($name);
  40410. if (identityFromModule.$eq(0, identity))
  40411. continue;
  40412. if (value != null) {
  40413. spans = t1.get$entries(t1).map$1$1(0, new A.Environment__fromOneModule_closure(callback, $T), type$.nullable_FileSpan);
  40414. t2 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
  40415. for (t1 = spans.get$iterator(spans), t3 = "includes " + type; t1.moveNext$0();) {
  40416. t4 = t1.get$current(t1);
  40417. if (t4 != null)
  40418. t2.$indexSet(0, t4, t3);
  40419. }
  40420. throw A.wrapException(A.MultiSpanSassScriptException$("This " + type + string$.x20is_av, type + " use", t2));
  40421. }
  40422. identity = identityFromModule;
  40423. value = valueInModule;
  40424. }
  40425. return value;
  40426. }
  40427. };
  40428. A.Environment_importForwards_closure.prototype = {
  40429. call$1(module) {
  40430. var t1 = module.get$variables();
  40431. return t1.get$keys(t1);
  40432. },
  40433. $signature: 127
  40434. };
  40435. A.Environment_importForwards_closure0.prototype = {
  40436. call$1(module) {
  40437. var t1 = module.get$functions(module);
  40438. return t1.get$keys(t1);
  40439. },
  40440. $signature: 127
  40441. };
  40442. A.Environment_importForwards_closure1.prototype = {
  40443. call$1(module) {
  40444. var t1 = module.get$mixins();
  40445. return t1.get$keys(t1);
  40446. },
  40447. $signature: 127
  40448. };
  40449. A.Environment__getVariableFromGlobalModule_closure.prototype = {
  40450. call$1(module) {
  40451. return module.get$variables().$index(0, this.name);
  40452. },
  40453. $signature: 509
  40454. };
  40455. A.Environment_setVariable_closure.prototype = {
  40456. call$0() {
  40457. var t1 = this.$this;
  40458. t1._lastVariableName = this.name;
  40459. return t1._lastVariableIndex = 0;
  40460. },
  40461. $signature: 12
  40462. };
  40463. A.Environment_setVariable_closure0.prototype = {
  40464. call$1(module) {
  40465. return module.get$variables().containsKey$1(this.name) ? module : null;
  40466. },
  40467. $signature: 508
  40468. };
  40469. A.Environment_setVariable_closure1.prototype = {
  40470. call$0() {
  40471. var t1 = this.$this,
  40472. t2 = t1._variableIndex$1(this.name);
  40473. return t2 == null ? t1._variables.length - 1 : t2;
  40474. },
  40475. $signature: 12
  40476. };
  40477. A.Environment__getFunctionFromGlobalModule_closure.prototype = {
  40478. call$1(module) {
  40479. return module.get$functions(module).$index(0, this.name);
  40480. },
  40481. $signature: 200
  40482. };
  40483. A.Environment__getMixinFromGlobalModule_closure.prototype = {
  40484. call$1(module) {
  40485. return module.get$mixins().$index(0, this.name);
  40486. },
  40487. $signature: 200
  40488. };
  40489. A.Environment_toModule_closure.prototype = {
  40490. call$1(modules) {
  40491. return new A.MapKeySet(modules, type$.MapKeySet_Module_Callable);
  40492. },
  40493. $signature: 201
  40494. };
  40495. A.Environment_toDummyModule_closure.prototype = {
  40496. call$1(modules) {
  40497. return new A.MapKeySet(modules, type$.MapKeySet_Module_Callable);
  40498. },
  40499. $signature: 201
  40500. };
  40501. A.Environment__fromOneModule_closure.prototype = {
  40502. call$1(entry) {
  40503. return A.NullableExtension_andThen(this.callback.call$1(entry.key), new A.Environment__fromOneModule__closure(entry, this.T));
  40504. },
  40505. $signature: 506
  40506. };
  40507. A.Environment__fromOneModule__closure.prototype = {
  40508. call$1(_) {
  40509. return J.get$span$z(this.entry.value);
  40510. },
  40511. $signature() {
  40512. return this.T._eval$1("FileSpan(0)");
  40513. }
  40514. };
  40515. A._EnvironmentModule.prototype = {
  40516. get$url(_) {
  40517. var t1 = this.css;
  40518. t1 = t1.get$span(t1);
  40519. return t1.get$sourceUrl(t1);
  40520. },
  40521. setVariable$3($name, value, nodeWithSpan) {
  40522. var t1, t2,
  40523. module = this._modulesByVariable.$index(0, $name);
  40524. if (module != null) {
  40525. module.setVariable$3($name, value, nodeWithSpan);
  40526. return;
  40527. }
  40528. t1 = this._environment$_environment;
  40529. t2 = t1._variables;
  40530. if (!B.JSArray_methods.get$first(t2).containsKey$1($name))
  40531. throw A.wrapException(A.SassScriptException$("Undefined variable.", null));
  40532. J.$indexSet$ax(B.JSArray_methods.get$first(t2), $name, value);
  40533. J.$indexSet$ax(B.JSArray_methods.get$first(t1._variableNodes), $name, nodeWithSpan);
  40534. return;
  40535. },
  40536. variableIdentity$1($name) {
  40537. var module = this._modulesByVariable.$index(0, $name);
  40538. return module == null ? this : module.variableIdentity$1($name);
  40539. },
  40540. cloneCss$0() {
  40541. var newCssAndExtensionStore, _this = this;
  40542. if (!_this.transitivelyContainsCss)
  40543. return _this;
  40544. newCssAndExtensionStore = A.cloneCssStylesheet(_this.css, _this.extensionStore);
  40545. return A._EnvironmentModule$_(_this._environment$_environment, newCssAndExtensionStore.item1, newCssAndExtensionStore.item2, _this._modulesByVariable, _this.variables, _this.variableNodes, _this.functions, _this.mixins, true, _this.transitivelyContainsExtensions);
  40546. },
  40547. toString$0(_) {
  40548. var t1 = this.css,
  40549. t2 = t1.get$span(t1);
  40550. if (t2.get$sourceUrl(t2) == null)
  40551. t1 = "<unknown url>";
  40552. else {
  40553. t1 = t1.get$span(t1);
  40554. t1 = t1.get$sourceUrl(t1);
  40555. t1 = $.$get$context().prettyUri$1(t1);
  40556. }
  40557. return t1;
  40558. },
  40559. $isModule: 1,
  40560. get$upstream() {
  40561. return this.upstream;
  40562. },
  40563. get$variables() {
  40564. return this.variables;
  40565. },
  40566. get$variableNodes() {
  40567. return this.variableNodes;
  40568. },
  40569. get$functions(receiver) {
  40570. return this.functions;
  40571. },
  40572. get$mixins() {
  40573. return this.mixins;
  40574. },
  40575. get$extensionStore() {
  40576. return this.extensionStore;
  40577. },
  40578. get$css(receiver) {
  40579. return this.css;
  40580. },
  40581. get$transitivelyContainsCss() {
  40582. return this.transitivelyContainsCss;
  40583. },
  40584. get$transitivelyContainsExtensions() {
  40585. return this.transitivelyContainsExtensions;
  40586. }
  40587. };
  40588. A._EnvironmentModule__EnvironmentModule_closure.prototype = {
  40589. call$1(module) {
  40590. return module.get$variables();
  40591. },
  40592. $signature: 500
  40593. };
  40594. A._EnvironmentModule__EnvironmentModule_closure0.prototype = {
  40595. call$1(module) {
  40596. return module.get$variableNodes();
  40597. },
  40598. $signature: 499
  40599. };
  40600. A._EnvironmentModule__EnvironmentModule_closure1.prototype = {
  40601. call$1(module) {
  40602. return module.get$functions(module);
  40603. },
  40604. $signature: 236
  40605. };
  40606. A._EnvironmentModule__EnvironmentModule_closure2.prototype = {
  40607. call$1(module) {
  40608. return module.get$mixins();
  40609. },
  40610. $signature: 236
  40611. };
  40612. A._EnvironmentModule__EnvironmentModule_closure3.prototype = {
  40613. call$1(module) {
  40614. return module.get$transitivelyContainsCss();
  40615. },
  40616. $signature: 138
  40617. };
  40618. A._EnvironmentModule__EnvironmentModule_closure4.prototype = {
  40619. call$1(module) {
  40620. return module.get$transitivelyContainsExtensions();
  40621. },
  40622. $signature: 138
  40623. };
  40624. A.SassException.prototype = {
  40625. get$trace(_) {
  40626. return A.Trace$(A._setArrayType([A.frameForSpan(A.SourceSpanException.prototype.get$span.call(this, this), "root stylesheet", null)], type$.JSArray_Frame), null);
  40627. },
  40628. get$span(_) {
  40629. return A.SourceSpanException.prototype.get$span.call(this, this);
  40630. },
  40631. toString$1$color(_, color) {
  40632. var t2, _i, frame, t3, _this = this,
  40633. buffer = new A.StringBuffer(""),
  40634. t1 = "" + ("Error: " + _this._span_exception$_message + "\n");
  40635. buffer._contents = t1;
  40636. buffer._contents = t1 + A.SourceSpanException.prototype.get$span.call(_this, _this).highlight$1$color(color);
  40637. for (t1 = _this.get$trace(_this).toString$0(0).split("\n"), t2 = t1.length, _i = 0; _i < t2; ++_i) {
  40638. frame = t1[_i];
  40639. if (J.get$length$asx(frame) === 0)
  40640. continue;
  40641. t3 = buffer._contents += "\n";
  40642. buffer._contents = t3 + (" " + A.S(frame));
  40643. }
  40644. t1 = buffer._contents;
  40645. return t1.charCodeAt(0) == 0 ? t1 : t1;
  40646. },
  40647. toString$0($receiver) {
  40648. return this.toString$1$color($receiver, null);
  40649. },
  40650. toCssString$0() {
  40651. var commentMessage, stringMessage, rune,
  40652. t1 = $._glyphs,
  40653. t2 = $._glyphs = B.C_AsciiGlyphSet,
  40654. t3 = this.toString$1$color(0, false);
  40655. t3 = A.stringReplaceAllUnchecked(t3, "*/", "*\u2215");
  40656. commentMessage = A.stringReplaceAllUnchecked(t3, "\r\n", "\n");
  40657. $._glyphs = t1 === B.C_AsciiGlyphSet ? t2 : B.C_UnicodeGlyphSet;
  40658. stringMessage = new A.StringBuffer("");
  40659. for (t1 = new A.RuneIterator(A.serializeValue(new A.SassString(this.toString$1$color(0, false), true), true, true)); t1.moveNext$0();) {
  40660. rune = t1._currentCodePoint;
  40661. t2 = stringMessage._contents;
  40662. if (rune > 255) {
  40663. stringMessage._contents = t2 + A.Primitives_stringFromCharCode(92);
  40664. t2 = stringMessage._contents += B.JSInt_methods.toRadixString$1(rune, 16);
  40665. stringMessage._contents = t2 + A.Primitives_stringFromCharCode(32);
  40666. } else
  40667. stringMessage._contents = t2 + A.Primitives_stringFromCharCode(rune);
  40668. }
  40669. return "/* " + B.JSArray_methods.join$1(A._setArrayType(commentMessage.split("\n"), type$.JSArray_String), "\n * ") + ' */\n\nbody::before {\n font-family: "Source Code Pro", "SF Mono", Monaco, Inconsolata, "Fira Mono",\n "Droid Sans Mono", monospace, monospace;\n white-space: pre;\n display: block;\n padding: 1em;\n margin-bottom: 1em;\n border-bottom: 2px solid black;\n content: ' + stringMessage.toString$0(0) + ";\n}";
  40670. }
  40671. };
  40672. A.MultiSpanSassException.prototype = {
  40673. toString$1$color(_, color) {
  40674. var t1, t2, _i, frame, _this = this,
  40675. useColor = color === true && true,
  40676. buffer = new A.StringBuffer("Error: " + _this._span_exception$_message + "\n");
  40677. A.NullableExtension_andThen(A.Highlighter$multiple(A.SourceSpanException.prototype.get$span.call(_this, _this), _this.primaryLabel, _this.secondarySpans, useColor, null, null).highlight$0(), buffer.get$write(buffer));
  40678. for (t1 = _this.get$trace(_this).toString$0(0).split("\n"), t2 = t1.length, _i = 0; _i < t2; ++_i) {
  40679. frame = t1[_i];
  40680. if (J.get$length$asx(frame) === 0)
  40681. continue;
  40682. buffer._contents += "\n";
  40683. buffer._contents += " " + A.S(frame);
  40684. }
  40685. t1 = buffer._contents;
  40686. return t1.charCodeAt(0) == 0 ? t1 : t1;
  40687. },
  40688. toString$0($receiver) {
  40689. return this.toString$1$color($receiver, null);
  40690. }
  40691. };
  40692. A.SassRuntimeException.prototype = {
  40693. get$trace(receiver) {
  40694. return this.trace;
  40695. }
  40696. };
  40697. A.MultiSpanSassRuntimeException.prototype = {$isSassRuntimeException: 1,
  40698. get$trace(receiver) {
  40699. return this.trace;
  40700. }
  40701. };
  40702. A.SassFormatException.prototype = {
  40703. get$source() {
  40704. var t1 = A.SourceSpanException.prototype.get$span.call(this, this);
  40705. return A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t1.get$file(t1)._decodedChars, 0, null), 0, null);
  40706. },
  40707. $isFormatException: 1,
  40708. $isSourceSpanFormatException: 1
  40709. };
  40710. A.SassScriptException.prototype = {
  40711. toString$0(_) {
  40712. return this.message + string$.x0a_BUG_;
  40713. },
  40714. get$message(receiver) {
  40715. return this.message;
  40716. }
  40717. };
  40718. A.MultiSpanSassScriptException.prototype = {};
  40719. A._writeSourceMap_closure.prototype = {
  40720. call$1(url) {
  40721. return this.options.sourceMapUrl$2(0, A.Uri_parse(url), this.destination).toString$0(0);
  40722. },
  40723. $signature: 5
  40724. };
  40725. A.ExecutableOptions.prototype = {
  40726. get$interactive() {
  40727. var result, _this = this,
  40728. value = _this.__ExecutableOptions_interactive_FI;
  40729. if (value === $) {
  40730. result = new A.ExecutableOptions_interactive_closure(_this).call$0();
  40731. _this.__ExecutableOptions_interactive_FI !== $ && A.throwUnnamedLateFieldADI();
  40732. _this.__ExecutableOptions_interactive_FI = result;
  40733. value = result;
  40734. }
  40735. return value;
  40736. },
  40737. get$color() {
  40738. var t1 = this._options;
  40739. return t1.wasParsed$1("color") ? A._asBool(t1.$index(0, "color")) : J.$eq$(self.process.stdout.isTTY, true);
  40740. },
  40741. get$emitErrorCss() {
  40742. var t1 = A._asBoolQ(this._options.$index(0, "error-css"));
  40743. if (t1 == null) {
  40744. this._ensureSources$0();
  40745. t1 = this._sourcesToDestinations;
  40746. t1 = t1.get$values(t1).any$1(0, new A.ExecutableOptions_emitErrorCss_closure());
  40747. }
  40748. return t1;
  40749. },
  40750. _ensureSources$0() {
  40751. var t1, stdin, t2, t3, $directories, t4, t5, colonArgs, positionalArgs, t6, t7, t8, message, target, source, destination, seen, sourceAndDestination, _this = this, _null = null,
  40752. _s18_ = 'Duplicate source "';
  40753. if (_this._sourcesToDestinations != null)
  40754. return;
  40755. t1 = _this._options;
  40756. stdin = A._asBool(t1.$index(0, "stdin"));
  40757. t2 = t1.rest;
  40758. if (t2.get$length(t2) === 0 && !stdin)
  40759. A.ExecutableOptions__fail("Compile Sass to CSS.");
  40760. t3 = type$.String;
  40761. $directories = A.LinkedHashSet_LinkedHashSet$_empty(t3);
  40762. for (t4 = new A.ListIterator(t2, t2.get$length(t2)), t5 = A._instanceType(t4)._precomputed1, colonArgs = false, positionalArgs = false; t4.moveNext$0();) {
  40763. t6 = t4.__internal$_current;
  40764. if (t6 == null)
  40765. t6 = t5._as(t6);
  40766. t7 = t6.length;
  40767. if (t7 === 0)
  40768. A.ExecutableOptions__fail('Invalid argument "".');
  40769. if (A.stringContainsUnchecked(t6, ":", 0)) {
  40770. if (t7 > 2) {
  40771. t8 = B.JSString_methods._codeUnitAt$1(t6, 0);
  40772. if (!(t8 >= 97 && t8 <= 122))
  40773. t8 = t8 >= 65 && t8 <= 90;
  40774. else
  40775. t8 = true;
  40776. t8 = t8 && B.JSString_methods._codeUnitAt$1(t6, 1) === 58;
  40777. } else
  40778. t8 = false;
  40779. if (t8) {
  40780. if (2 > t7)
  40781. A.throwExpression(A.RangeError$range(2, 0, t7, _null, _null));
  40782. t7 = A.stringContainsUnchecked(t6, ":", 2);
  40783. } else
  40784. t7 = true;
  40785. } else
  40786. t7 = false;
  40787. if (t7)
  40788. colonArgs = true;
  40789. else if (A.dirExists(t6))
  40790. $directories.add$1(0, t6);
  40791. else
  40792. positionalArgs = true;
  40793. }
  40794. if (positionalArgs || t2.get$length(t2) === 0) {
  40795. if (colonArgs)
  40796. A.ExecutableOptions__fail('Positional and ":" arguments may not both be used.');
  40797. else if (stdin) {
  40798. if (J.get$length$asx(t2._collection$_source) > 1)
  40799. A.ExecutableOptions__fail("Only one argument is allowed with --stdin.");
  40800. else if (A._asBool(t1.$index(0, "update")))
  40801. A.ExecutableOptions__fail("--update is not allowed with --stdin.");
  40802. else if (A._asBool(t1.$index(0, "watch")))
  40803. A.ExecutableOptions__fail("--watch is not allowed with --stdin.");
  40804. t1 = t2.get$length(t2) === 0 ? _null : t2.get$first(t2);
  40805. t2 = type$.dynamic;
  40806. t3 = type$.nullable_String;
  40807. _this._sourcesToDestinations = A.ConstantMap_ConstantMap$from(A.LinkedHashMap_LinkedHashMap$_literal([null, t1], t2, t2), t3, t3);
  40808. } else {
  40809. t3 = t2._collection$_source;
  40810. t4 = J.getInterceptor$asx(t3);
  40811. if (t4.get$length(t3) > 2)
  40812. A.ExecutableOptions__fail("Only two positional args may be passed.");
  40813. else if ($directories._collection$_length !== 0) {
  40814. message = 'Directory "' + A.S($directories.get$first($directories)) + '" may not be a positional arg.';
  40815. target = t2.get$last(t2);
  40816. A.ExecutableOptions__fail(J.$eq$($directories.get$first($directories), t2.get$first(t2)) && !A.fileExists(target) ? message + ('\nTo compile all CSS in "' + A.S($directories.get$first($directories)) + '" to "' + target + '", use `sass ' + A.S($directories.get$first($directories)) + ":" + target + "`.") : message);
  40817. } else {
  40818. source = J.$eq$(t2.get$first(t2), "-") ? _null : t2.get$first(t2);
  40819. destination = t4.get$length(t3) === 1 ? _null : t2.get$last(t2);
  40820. if (destination == null)
  40821. if (A._asBool(t1.$index(0, "update")))
  40822. A.ExecutableOptions__fail("--update is not allowed when printing to stdout.");
  40823. else if (A._asBool(t1.$index(0, "watch")))
  40824. A.ExecutableOptions__fail("--watch is not allowed when printing to stdout.");
  40825. t1 = A.PathMap__create(_null, type$.nullable_String);
  40826. t1.$indexSet(0, source, destination);
  40827. _this._sourcesToDestinations = new A.UnmodifiableMapView(new A.PathMap(t1, type$.PathMap_nullable_String), type$.UnmodifiableMapView_of_nullable_String_and_nullable_String);
  40828. }
  40829. }
  40830. _this.__ExecutableOptions__sourceDirectoriesToDestinations_F !== $ && A.throwUnnamedLateFieldAI();
  40831. _this.__ExecutableOptions__sourceDirectoriesToDestinations_F = B.Map_empty5;
  40832. return;
  40833. }
  40834. if (stdin)
  40835. A.ExecutableOptions__fail('--stdin may not be used with ":" arguments.');
  40836. seen = A.LinkedHashSet_LinkedHashSet$_empty(t3);
  40837. t1 = A.PathMap__create(_null, t3);
  40838. t4 = type$.PathMap_String;
  40839. t3 = A.PathMap__create(_null, t3);
  40840. for (t2 = new A.ListIterator(t2, t2.get$length(t2)), t5 = A._instanceType(t2)._precomputed1; t2.moveNext$0();) {
  40841. t6 = t2.__internal$_current;
  40842. if (t6 == null)
  40843. t6 = t5._as(t6);
  40844. if ($directories.contains$1(0, t6)) {
  40845. if (!seen.add$1(0, t6))
  40846. A.ExecutableOptions__fail(_s18_ + t6 + '".');
  40847. t3.$indexSet(0, t6, t6);
  40848. t1.addAll$1(0, _this._listSourceDirectory$2(t6, t6));
  40849. continue;
  40850. }
  40851. sourceAndDestination = _this._splitSourceAndDestination$1(t6);
  40852. source = sourceAndDestination.item1;
  40853. destination = sourceAndDestination.item2;
  40854. if (!seen.add$1(0, source))
  40855. A.ExecutableOptions__fail(_s18_ + source + '".');
  40856. if (source === "-")
  40857. t1.$indexSet(0, _null, destination);
  40858. else if (A.dirExists(source)) {
  40859. t3.$indexSet(0, source, destination);
  40860. t1.addAll$1(0, _this._listSourceDirectory$2(source, destination));
  40861. } else
  40862. t1.$indexSet(0, source, destination);
  40863. }
  40864. _this._sourcesToDestinations = new A.UnmodifiableMapView(new A.PathMap(t1, t4), type$.UnmodifiableMapView_of_nullable_String_and_nullable_String);
  40865. _this.__ExecutableOptions__sourceDirectoriesToDestinations_F !== $ && A.throwUnnamedLateFieldAI();
  40866. _this.__ExecutableOptions__sourceDirectoriesToDestinations_F = new A.UnmodifiableMapView(new A.PathMap(t3, t4), type$.UnmodifiableMapView_of_nullable_String_and_String);
  40867. },
  40868. _splitSourceAndDestination$1(argument) {
  40869. var t1, i, t2, t3, nextColon;
  40870. for (t1 = argument.length, i = 0; i < t1; ++i) {
  40871. if (i === 1) {
  40872. t2 = i - 1;
  40873. if (t1 > t2 + 2) {
  40874. t3 = B.JSString_methods.codeUnitAt$1(argument, t2);
  40875. if (!(t3 >= 97 && t3 <= 122))
  40876. t3 = t3 >= 65 && t3 <= 90;
  40877. else
  40878. t3 = true;
  40879. t2 = t3 && B.JSString_methods.codeUnitAt$1(argument, t2 + 1) === 58;
  40880. } else
  40881. t2 = false;
  40882. } else
  40883. t2 = false;
  40884. if (t2)
  40885. continue;
  40886. if (B.JSString_methods._codeUnitAt$1(argument, i) === 58) {
  40887. t2 = i + 1;
  40888. nextColon = B.JSString_methods.indexOf$2(argument, ":", t2);
  40889. if (nextColon === i + 2)
  40890. if (t1 > t2 + 2) {
  40891. t1 = B.JSString_methods._codeUnitAt$1(argument, t2);
  40892. if (!(t1 >= 97 && t1 <= 122))
  40893. t1 = t1 >= 65 && t1 <= 90;
  40894. else
  40895. t1 = true;
  40896. t1 = t1 && B.JSString_methods._codeUnitAt$1(argument, t2 + 1) === 58;
  40897. } else
  40898. t1 = false;
  40899. else
  40900. t1 = false;
  40901. if ((t1 ? B.JSString_methods.indexOf$2(argument, ":", nextColon + 1) : nextColon) !== -1)
  40902. A.ExecutableOptions__fail('"' + argument + '" may only contain one ":".');
  40903. return new A.Tuple2(B.JSString_methods.substring$2(argument, 0, i), B.JSString_methods.substring$1(argument, t2), type$.Tuple2_String_String);
  40904. }
  40905. }
  40906. throw A.wrapException(A.ArgumentError$('Expected "' + argument + '" to contain a colon.', null));
  40907. },
  40908. _listSourceDirectory$2(source, destination) {
  40909. var t2, t3, t4, t5,
  40910. t1 = type$.String;
  40911. t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  40912. for (t2 = J.get$iterator$ax(A.listDir(source, true)), t3 = source === destination; t2.moveNext$0();) {
  40913. t4 = t2.get$current(t2);
  40914. if (this._isEntrypoint$1(t4))
  40915. t5 = !(t3 && A.ParsedPath_ParsedPath$parse(t4, $.$get$context().style)._splitExtension$1(1)[1] === ".css");
  40916. else
  40917. t5 = false;
  40918. if (t5) {
  40919. t5 = $.$get$context();
  40920. t1.$indexSet(0, t4, A.join(destination, t5.withoutExtension$1(t5.relative$2$from(t4, source)) + ".css", null));
  40921. }
  40922. }
  40923. return t1;
  40924. },
  40925. _isEntrypoint$1(path) {
  40926. var extension,
  40927. t1 = $.$get$context().style;
  40928. if (B.JSString_methods.startsWith$1(A.ParsedPath_ParsedPath$parse(path, t1).get$basename(), "_"))
  40929. return false;
  40930. extension = A.ParsedPath_ParsedPath$parse(path, t1)._splitExtension$1(1)[1];
  40931. return extension === ".scss" || extension === ".sass" || extension === ".css";
  40932. },
  40933. get$_writeToStdout() {
  40934. var t1, _this = this;
  40935. _this._ensureSources$0();
  40936. t1 = _this._sourcesToDestinations;
  40937. if (t1.get$length(t1) === 1) {
  40938. _this._ensureSources$0();
  40939. t1 = _this._sourcesToDestinations;
  40940. t1 = t1.get$values(t1);
  40941. t1 = t1.get$single(t1) == null;
  40942. } else
  40943. t1 = false;
  40944. return t1;
  40945. },
  40946. get$emitSourceMap() {
  40947. var _this = this,
  40948. _s10_ = "source-map",
  40949. _s15_ = "source-map-urls",
  40950. _s13_ = "embed-sources",
  40951. _s16_ = "embed-source-map",
  40952. t1 = _this._options;
  40953. if (!A._asBool(t1.$index(0, _s10_)))
  40954. if (t1.wasParsed$1(_s15_))
  40955. A.ExecutableOptions__fail("--source-map-urls isn't allowed with --no-source-map.");
  40956. else if (t1.wasParsed$1(_s13_))
  40957. A.ExecutableOptions__fail("--embed-sources isn't allowed with --no-source-map.");
  40958. else if (t1.wasParsed$1(_s16_))
  40959. A.ExecutableOptions__fail("--embed-source-map isn't allowed with --no-source-map.");
  40960. if (!_this.get$_writeToStdout())
  40961. return A._asBool(t1.$index(0, _s10_));
  40962. if (J.$eq$(_this._ifParsed$1(_s15_), "relative"))
  40963. A.ExecutableOptions__fail("--source-map-urls=relative isn't allowed when printing to stdout.");
  40964. if (A._asBool(t1.$index(0, _s16_)))
  40965. return A._asBool(t1.$index(0, _s10_));
  40966. else if (J.$eq$(_this._ifParsed$1(_s10_), true))
  40967. A.ExecutableOptions__fail("When printing to stdout, --source-map requires --embed-source-map.");
  40968. else if (t1.wasParsed$1(_s15_))
  40969. A.ExecutableOptions__fail("When printing to stdout, --source-map-urls requires --embed-source-map.");
  40970. else if (A._asBool(t1.$index(0, _s13_)))
  40971. A.ExecutableOptions__fail("When printing to stdout, --embed-sources requires --embed-source-map.");
  40972. else
  40973. return false;
  40974. },
  40975. sourceMapUrl$2(_, url, destination) {
  40976. var t1, path, t2, _null = null;
  40977. if (url.get$scheme().length !== 0 && url.get$scheme() !== "file")
  40978. return url;
  40979. t1 = $.$get$context();
  40980. path = t1.style.pathFromUri$1(A._parseUri(url));
  40981. if (J.$eq$(this._options.$index(0, "source-map-urls"), "relative") && !this.get$_writeToStdout()) {
  40982. destination.toString;
  40983. t2 = t1.relative$2$from(path, t1.dirname$1(destination));
  40984. } else
  40985. t2 = A.absolute(path, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null);
  40986. return t1.toUri$1(t2);
  40987. },
  40988. _ifParsed$1($name) {
  40989. var t1 = this._options;
  40990. return t1.wasParsed$1($name) ? t1.$index(0, $name) : null;
  40991. }
  40992. };
  40993. A.ExecutableOptions__parser_closure.prototype = {
  40994. call$0() {
  40995. var t1 = type$.String,
  40996. t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Option),
  40997. t3 = [],
  40998. parser = new A.ArgParser(t2, A.LinkedHashMap_LinkedHashMap$_empty(t1, t1), new A.UnmodifiableMapView(t2, type$.UnmodifiableMapView_String_Option), new A.UnmodifiableMapView(A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.ArgParser), type$.UnmodifiableMapView_String_ArgParser), t3, true, null);
  40999. parser.addOption$2$hide("precision", true);
  41000. parser.addFlag$2$hide("async", true);
  41001. t3.push(A.ExecutableOptions__separator("Input and Output"));
  41002. parser.addFlag$2$help("stdin", "Read the stylesheet from stdin.");
  41003. parser.addFlag$2$help("indented", "Use the indented syntax for input from stdin.");
  41004. parser.addMultiOption$5$abbr$help$splitCommas$valueHelp("load-path", "I", "A path to use when resolving imports.\nMay be passed multiple times.", false, "PATH");
  41005. t1 = type$.JSArray_String;
  41006. parser.addOption$6$abbr$allowed$defaultsTo$help$valueHelp("style", "s", A._setArrayType(["expanded", "compressed"], t1), "expanded", "Output style.", "NAME");
  41007. parser.addFlag$3$defaultsTo$help("charset", true, "Emit a @charset or BOM for CSS with non-ASCII characters.");
  41008. parser.addFlag$3$defaultsTo$help("error-css", null, "When an error occurs, emit a stylesheet describing it.\nDefaults to true when compiling to a file.");
  41009. parser.addFlag$3$help$negatable("update", "Only compile out-of-date stylesheets.", false);
  41010. t3.push(A.ExecutableOptions__separator("Source Maps"));
  41011. parser.addFlag$3$defaultsTo$help("source-map", true, "Whether to generate source maps.");
  41012. parser.addOption$4$allowed$defaultsTo$help("source-map-urls", A._setArrayType(["relative", "absolute"], t1), "relative", "How to link from source maps to source files.");
  41013. parser.addFlag$3$defaultsTo$help("embed-sources", false, "Embed source file contents in source maps.");
  41014. parser.addFlag$3$defaultsTo$help("embed-source-map", false, "Embed source map contents in CSS.");
  41015. t3.push(A.ExecutableOptions__separator("Other"));
  41016. parser.addFlag$4$abbr$help$negatable("watch", "w", "Watch stylesheets and recompile when they change.", false);
  41017. parser.addFlag$2$help("poll", "Manually check for changes rather than using a native watcher.\nOnly valid with --watch.");
  41018. parser.addFlag$2$help("stop-on-error", "Don't compile more files once an error is encountered.");
  41019. parser.addFlag$4$abbr$help$negatable("interactive", "i", "Run an interactive SassScript shell.", false);
  41020. parser.addFlag$3$abbr$help("color", "c", "Whether to use terminal colors for messages.");
  41021. parser.addFlag$2$help("unicode", "Whether to use Unicode characters for messages.");
  41022. parser.addFlag$3$abbr$help("quiet", "q", "Don't print warnings.");
  41023. parser.addFlag$2$help("quiet-deps", "Don't print compiler warnings from dependencies.\nStylesheets imported through load paths count as dependencies.");
  41024. parser.addFlag$2$help("verbose", "Print all deprecation warnings even when they're repetitive.");
  41025. parser.addFlag$2$help("trace", "Print full Dart stack traces for exceptions.");
  41026. parser.addFlag$4$abbr$help$negatable("help", "h", "Print this usage information.", false);
  41027. parser.addFlag$3$help$negatable("version", "Print the version of Dart Sass.", false);
  41028. return parser;
  41029. },
  41030. $signature: 497
  41031. };
  41032. A.ExecutableOptions_interactive_closure.prototype = {
  41033. call$0() {
  41034. var invalidOptions, _i, option,
  41035. t1 = this.$this._options;
  41036. if (!A._asBool(t1.$index(0, "interactive")))
  41037. return false;
  41038. invalidOptions = ["stdin", "indented", "style", "source-map", "source-map-urls", "embed-sources", "embed-source-map", "update", "watch"];
  41039. for (_i = 0; _i < 9; ++_i) {
  41040. option = invalidOptions[_i];
  41041. if (!t1._parser.options._map.containsKey$1(option))
  41042. A.throwExpression(A.ArgumentError$('Could not find an option named "' + option + '".', null));
  41043. if (t1._parsed.containsKey$1(option))
  41044. throw A.wrapException(A.UsageException$("--" + option + " isn't allowed with --interactive."));
  41045. }
  41046. return true;
  41047. },
  41048. $signature: 26
  41049. };
  41050. A.ExecutableOptions_emitErrorCss_closure.prototype = {
  41051. call$1(destination) {
  41052. return destination != null;
  41053. },
  41054. $signature: 209
  41055. };
  41056. A.UsageException.prototype = {$isException: 1,
  41057. get$message(receiver) {
  41058. return this.message;
  41059. }
  41060. };
  41061. A.watch_closure.prototype = {
  41062. call$1(dir) {
  41063. for (; !A.dirExists(dir);)
  41064. dir = $.$get$context().dirname$1(dir);
  41065. return this.dirWatcher.watch$1(0, dir);
  41066. },
  41067. $signature: 493
  41068. };
  41069. A._Watcher.prototype = {
  41070. compile$3$ifModified(_, source, destination, ifModified) {
  41071. return this.compile$body$_Watcher(0, source, destination, ifModified);
  41072. },
  41073. compile$2($receiver, source, destination) {
  41074. return this.compile$3$ifModified($receiver, source, destination, false);
  41075. },
  41076. compile$body$_Watcher(_, source, destination, ifModified) {
  41077. var $async$goto = 0,
  41078. $async$completer = A._makeAsyncAwaitCompleter(type$.bool),
  41079. $async$returnValue, $async$handler = 2, $async$currentError, $async$self = this, error, stackTrace, error0, stackTrace0, path, exception, t1, t2, $async$exception;
  41080. var $async$compile$3$ifModified = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  41081. if ($async$errorCode === 1) {
  41082. $async$currentError = $async$result;
  41083. $async$goto = $async$handler;
  41084. }
  41085. while (true)
  41086. switch ($async$goto) {
  41087. case 0:
  41088. // Function start
  41089. $async$handler = 4;
  41090. $async$goto = 7;
  41091. return A._asyncAwait(A.compileStylesheet($async$self._watch$_options, $async$self._graph, source, destination, ifModified), $async$compile$3$ifModified);
  41092. case 7:
  41093. // returning from await.
  41094. $async$returnValue = true;
  41095. // goto return
  41096. $async$goto = 1;
  41097. break;
  41098. $async$handler = 2;
  41099. // goto after finally
  41100. $async$goto = 6;
  41101. break;
  41102. case 4:
  41103. // catch
  41104. $async$handler = 3;
  41105. $async$exception = $async$currentError;
  41106. t1 = A.unwrapException($async$exception);
  41107. if (t1 instanceof A.SassException) {
  41108. error = t1;
  41109. stackTrace = A.getTraceFromException($async$exception);
  41110. t1 = $async$self._watch$_options;
  41111. if (!t1.get$emitErrorCss())
  41112. $async$self._delete$1(destination);
  41113. t1 = J.toString$1$color$(error, t1.get$color());
  41114. t2 = A.getTrace(error);
  41115. $async$self._printError$2(t1, t2 == null ? stackTrace : t2);
  41116. J.set$exitCode$x(self.process, 65);
  41117. $async$returnValue = false;
  41118. // goto return
  41119. $async$goto = 1;
  41120. break;
  41121. } else if (t1 instanceof A.FileSystemException) {
  41122. error0 = t1;
  41123. stackTrace0 = A.getTraceFromException($async$exception);
  41124. path = error0.path;
  41125. t1 = path == null ? error0.message : "Error reading " + $.$get$context().relative$2$from(path, null) + ": " + error0.message + ".";
  41126. t2 = A.getTrace(error0);
  41127. $async$self._printError$2(t1, t2 == null ? stackTrace0 : t2);
  41128. J.set$exitCode$x(self.process, 66);
  41129. $async$returnValue = false;
  41130. // goto return
  41131. $async$goto = 1;
  41132. break;
  41133. } else
  41134. throw $async$exception;
  41135. // goto after finally
  41136. $async$goto = 6;
  41137. break;
  41138. case 3:
  41139. // uncaught
  41140. // goto rethrow
  41141. $async$goto = 2;
  41142. break;
  41143. case 6:
  41144. // after finally
  41145. case 1:
  41146. // return
  41147. return A._asyncReturn($async$returnValue, $async$completer);
  41148. case 2:
  41149. // rethrow
  41150. return A._asyncRethrow($async$currentError, $async$completer);
  41151. }
  41152. });
  41153. return A._asyncStartSync($async$compile$3$ifModified, $async$completer);
  41154. },
  41155. _delete$1(path) {
  41156. var buffer, t1, exception;
  41157. try {
  41158. A.deleteFile(path);
  41159. buffer = new A.StringBuffer("");
  41160. t1 = this._watch$_options;
  41161. if (t1.get$color())
  41162. buffer._contents += "\x1b[33m";
  41163. buffer._contents += "Deleted " + path + ".";
  41164. if (t1.get$color())
  41165. buffer._contents += "\x1b[0m";
  41166. A.print(buffer);
  41167. } catch (exception) {
  41168. if (!(A.unwrapException(exception) instanceof A.FileSystemException))
  41169. throw exception;
  41170. }
  41171. },
  41172. _printError$2(message, stackTrace) {
  41173. var t2,
  41174. t1 = $.$get$stderr();
  41175. t1.writeln$1(message);
  41176. t2 = this._watch$_options._options;
  41177. if (A._asBool(t2.$index(0, "trace"))) {
  41178. t1.writeln$0();
  41179. t1.writeln$1(B.JSString_methods.trimRight$0(A.Trace_Trace$from(stackTrace).get$terse().toString$0(0)));
  41180. }
  41181. if (!A._asBool(t2.$index(0, "stop-on-error")))
  41182. t1.writeln$0();
  41183. },
  41184. watch$1(_, watcher) {
  41185. return this.watch$body$_Watcher(0, watcher);
  41186. },
  41187. watch$body$_Watcher(_, watcher) {
  41188. var $async$goto = 0,
  41189. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  41190. $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, $event, extension, success, success0, success1, t2, t1;
  41191. var $async$watch$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  41192. if ($async$errorCode === 1) {
  41193. $async$currentError = $async$result;
  41194. $async$goto = $async$handler;
  41195. }
  41196. while (true)
  41197. switch ($async$goto) {
  41198. case 0:
  41199. // Function start
  41200. t1 = watcher._group.__StreamGroup__controller_A;
  41201. t1 === $ && A.throwUnnamedLateFieldNI();
  41202. t1 = new A._StreamIterator(A.checkNotNullable($async$self._debounceEvents$1(new A._ControllerStream(t1, A._instanceType(t1)._eval$1("_ControllerStream<1>"))), "stream", type$.Object));
  41203. $async$handler = 3;
  41204. t2 = $async$self._watch$_options._options;
  41205. case 6:
  41206. // for condition
  41207. $async$goto = 8;
  41208. return A._asyncAwait(t1.moveNext$0(), $async$watch$1);
  41209. case 8:
  41210. // returning from await.
  41211. if (!$async$result) {
  41212. // goto after for
  41213. $async$goto = 7;
  41214. break;
  41215. }
  41216. $event = t1.get$current(t1);
  41217. extension = A.ParsedPath_ParsedPath$parse($event.path, $.$get$context().style)._splitExtension$1(1)[1];
  41218. if (!J.$eq$(extension, ".sass") && !J.$eq$(extension, ".scss") && !J.$eq$(extension, ".css")) {
  41219. // goto for condition
  41220. $async$goto = 6;
  41221. break;
  41222. }
  41223. case 9:
  41224. // switch
  41225. switch ($event.type) {
  41226. case B.ChangeType_modify:
  41227. // goto case
  41228. $async$goto = 11;
  41229. break;
  41230. case B.ChangeType_add:
  41231. // goto case
  41232. $async$goto = 12;
  41233. break;
  41234. case B.ChangeType_remove:
  41235. // goto case
  41236. $async$goto = 13;
  41237. break;
  41238. default:
  41239. // goto after switch
  41240. $async$goto = 10;
  41241. break;
  41242. }
  41243. break;
  41244. case 11:
  41245. // case
  41246. $async$goto = 14;
  41247. return A._asyncAwait($async$self._handleModify$1($event.path), $async$watch$1);
  41248. case 14:
  41249. // returning from await.
  41250. success = $async$result;
  41251. if (!success && A._asBool(t2.$index(0, "stop-on-error"))) {
  41252. $async$next = [1];
  41253. // goto finally
  41254. $async$goto = 4;
  41255. break;
  41256. }
  41257. // goto after switch
  41258. $async$goto = 10;
  41259. break;
  41260. case 12:
  41261. // case
  41262. $async$goto = 15;
  41263. return A._asyncAwait($async$self._handleAdd$1($event.path), $async$watch$1);
  41264. case 15:
  41265. // returning from await.
  41266. success0 = $async$result;
  41267. if (!success0 && A._asBool(t2.$index(0, "stop-on-error"))) {
  41268. $async$next = [1];
  41269. // goto finally
  41270. $async$goto = 4;
  41271. break;
  41272. }
  41273. // goto after switch
  41274. $async$goto = 10;
  41275. break;
  41276. case 13:
  41277. // case
  41278. $async$goto = 16;
  41279. return A._asyncAwait($async$self._handleRemove$1($event.path), $async$watch$1);
  41280. case 16:
  41281. // returning from await.
  41282. success1 = $async$result;
  41283. if (!success1 && A._asBool(t2.$index(0, "stop-on-error"))) {
  41284. $async$next = [1];
  41285. // goto finally
  41286. $async$goto = 4;
  41287. break;
  41288. }
  41289. // goto after switch
  41290. $async$goto = 10;
  41291. break;
  41292. case 10:
  41293. // after switch
  41294. // goto for condition
  41295. $async$goto = 6;
  41296. break;
  41297. case 7:
  41298. // after for
  41299. $async$next.push(5);
  41300. // goto finally
  41301. $async$goto = 4;
  41302. break;
  41303. case 3:
  41304. // uncaught
  41305. $async$next = [2];
  41306. case 4:
  41307. // finally
  41308. $async$handler = 2;
  41309. $async$goto = 17;
  41310. return A._asyncAwait(t1.cancel$0(), $async$watch$1);
  41311. case 17:
  41312. // returning from await.
  41313. // goto the next finally handler
  41314. $async$goto = $async$next.pop();
  41315. break;
  41316. case 5:
  41317. // after finally
  41318. case 1:
  41319. // return
  41320. return A._asyncReturn($async$returnValue, $async$completer);
  41321. case 2:
  41322. // rethrow
  41323. return A._asyncRethrow($async$currentError, $async$completer);
  41324. }
  41325. });
  41326. return A._asyncStartSync($async$watch$1, $async$completer);
  41327. },
  41328. _handleModify$1(path) {
  41329. return this._handleModify$body$_Watcher(path);
  41330. },
  41331. _handleModify$body$_Watcher(path) {
  41332. var $async$goto = 0,
  41333. $async$completer = A._makeAsyncAwaitCompleter(type$.bool),
  41334. $async$returnValue, $async$self = this, t1, t2, t0, url, node;
  41335. var $async$_handleModify$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  41336. if ($async$errorCode === 1)
  41337. return A._asyncRethrow($async$result, $async$completer);
  41338. while (true)
  41339. switch ($async$goto) {
  41340. case 0:
  41341. // Function start
  41342. if (J.$eq$(J.get$platform$x(self.process), "win32") || J.$eq$(J.get$platform$x(self.process), "darwin")) {
  41343. t1 = $.$get$context();
  41344. t2 = A._realCasePath(A.absolute(t1.normalize$1(path), null, null, null, null, null, null, null, null, null, null, null, null, null, null));
  41345. t0 = t2;
  41346. t2 = t1;
  41347. t1 = t0;
  41348. } else {
  41349. t1 = $.$get$context();
  41350. t2 = t1.canonicalize$1(0, path);
  41351. t0 = t2;
  41352. t2 = t1;
  41353. t1 = t0;
  41354. }
  41355. url = t2.toUri$1(t1);
  41356. t1 = $async$self._graph;
  41357. node = t1._nodes.$index(0, url);
  41358. if (node == null) {
  41359. $async$returnValue = $async$self._handleAdd$1(path);
  41360. // goto return
  41361. $async$goto = 1;
  41362. break;
  41363. }
  41364. t1.reload$1(url);
  41365. $async$goto = 3;
  41366. return A._asyncAwait($async$self._recompileDownstream$1(A._setArrayType([node], type$.JSArray_StylesheetNode)), $async$_handleModify$1);
  41367. case 3:
  41368. // returning from await.
  41369. $async$returnValue = $async$result;
  41370. // goto return
  41371. $async$goto = 1;
  41372. break;
  41373. case 1:
  41374. // return
  41375. return A._asyncReturn($async$returnValue, $async$completer);
  41376. }
  41377. });
  41378. return A._asyncStartSync($async$_handleModify$1, $async$completer);
  41379. },
  41380. _handleAdd$1(path) {
  41381. return this._handleAdd$body$_Watcher(path);
  41382. },
  41383. _handleAdd$body$_Watcher(path) {
  41384. var $async$goto = 0,
  41385. $async$completer = A._makeAsyncAwaitCompleter(type$.bool),
  41386. $async$returnValue, $async$self = this, t2, t3, t0, destination, success, t1, $async$temp1;
  41387. var $async$_handleAdd$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  41388. if ($async$errorCode === 1)
  41389. return A._asyncRethrow($async$result, $async$completer);
  41390. while (true)
  41391. switch ($async$goto) {
  41392. case 0:
  41393. // Function start
  41394. destination = $async$self._destinationFor$1(path);
  41395. $async$temp1 = destination == null;
  41396. if ($async$temp1)
  41397. $async$result = $async$temp1;
  41398. else {
  41399. // goto then
  41400. $async$goto = 3;
  41401. break;
  41402. }
  41403. // goto join
  41404. $async$goto = 4;
  41405. break;
  41406. case 3:
  41407. // then
  41408. $async$goto = 5;
  41409. return A._asyncAwait($async$self.compile$2(0, path, destination), $async$_handleAdd$1);
  41410. case 5:
  41411. // returning from await.
  41412. case 4:
  41413. // join
  41414. success = $async$result;
  41415. t1 = A.absolute(".", null, null, null, null, null, null, null, null, null, null, null, null, null, null);
  41416. if (J.$eq$(J.get$platform$x(self.process), "win32") || J.$eq$(J.get$platform$x(self.process), "darwin")) {
  41417. t2 = $.$get$context();
  41418. t3 = A._realCasePath(A.absolute(t2.normalize$1(path), null, null, null, null, null, null, null, null, null, null, null, null, null, null));
  41419. t0 = t3;
  41420. t3 = t2;
  41421. t2 = t0;
  41422. } else {
  41423. t2 = $.$get$context();
  41424. t3 = t2.canonicalize$1(0, path);
  41425. t0 = t3;
  41426. t3 = t2;
  41427. t2 = t0;
  41428. }
  41429. $async$goto = 6;
  41430. return A._asyncAwait($async$self._recompileDownstream$1($async$self._graph.addCanonical$3(new A.FilesystemImporter(t1), t3.toUri$1(t2), t3.toUri$1(path))), $async$_handleAdd$1);
  41431. case 6:
  41432. // returning from await.
  41433. $async$returnValue = $async$result && success;
  41434. // goto return
  41435. $async$goto = 1;
  41436. break;
  41437. case 1:
  41438. // return
  41439. return A._asyncReturn($async$returnValue, $async$completer);
  41440. }
  41441. });
  41442. return A._asyncStartSync($async$_handleAdd$1, $async$completer);
  41443. },
  41444. _handleRemove$1(path) {
  41445. return this._handleRemove$body$_Watcher(path);
  41446. },
  41447. _handleRemove$body$_Watcher(path) {
  41448. var $async$goto = 0,
  41449. $async$completer = A._makeAsyncAwaitCompleter(type$.bool),
  41450. $async$returnValue, $async$self = this, t1, t2, t0, url, destination, t3, node, toRecompile;
  41451. var $async$_handleRemove$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  41452. if ($async$errorCode === 1)
  41453. return A._asyncRethrow($async$result, $async$completer);
  41454. while (true)
  41455. switch ($async$goto) {
  41456. case 0:
  41457. // Function start
  41458. if (J.$eq$(J.get$platform$x(self.process), "win32") || J.$eq$(J.get$platform$x(self.process), "darwin")) {
  41459. t1 = $.$get$context();
  41460. t2 = A._realCasePath(A.absolute(t1.normalize$1(path), null, null, null, null, null, null, null, null, null, null, null, null, null, null));
  41461. t0 = t2;
  41462. t2 = t1;
  41463. t1 = t0;
  41464. } else {
  41465. t1 = $.$get$context();
  41466. t2 = t1.canonicalize$1(0, path);
  41467. t0 = t2;
  41468. t2 = t1;
  41469. t1 = t0;
  41470. }
  41471. url = t2.toUri$1(t1);
  41472. t1 = $async$self._graph;
  41473. t2 = t1._nodes;
  41474. if (t2.containsKey$1(url)) {
  41475. destination = $async$self._destinationFor$1(path);
  41476. if (destination != null)
  41477. $async$self._delete$1(destination);
  41478. }
  41479. t3 = A.absolute(".", null, null, null, null, null, null, null, null, null, null, null, null, null, null);
  41480. node = t2.remove$1(0, url);
  41481. t2 = node != null;
  41482. if (t2) {
  41483. t1._transitiveModificationTimes.clear$0(0);
  41484. t1.importCache.clearImport$1(url);
  41485. node._stylesheet_graph$_remove$0();
  41486. }
  41487. toRecompile = t1._recanonicalizeImports$2(new A.FilesystemImporter(t3), url);
  41488. if (t2)
  41489. toRecompile.addAll$1(0, node._downstream);
  41490. $async$goto = 3;
  41491. return A._asyncAwait($async$self._recompileDownstream$1(toRecompile), $async$_handleRemove$1);
  41492. case 3:
  41493. // returning from await.
  41494. $async$returnValue = $async$result;
  41495. // goto return
  41496. $async$goto = 1;
  41497. break;
  41498. case 1:
  41499. // return
  41500. return A._asyncReturn($async$returnValue, $async$completer);
  41501. }
  41502. });
  41503. return A._asyncStartSync($async$_handleRemove$1, $async$completer);
  41504. },
  41505. _debounceEvents$1(events) {
  41506. var t1 = type$.WatchEvent;
  41507. t1 = A.RateLimit__debounceAggregate(events, A.Duration$(25), A.instantiate1(A.rate_limit___collect$closure(), t1), false, true, t1, type$.List_WatchEvent);
  41508. return new A._ExpandStream(new A._Watcher__debounceEvents_closure(), t1, A._instanceType(t1)._eval$1("_ExpandStream<Stream.T,WatchEvent>"));
  41509. },
  41510. _recompileDownstream$1(nodes) {
  41511. return this._recompileDownstream$body$_Watcher(nodes);
  41512. },
  41513. _recompileDownstream$body$_Watcher(nodes) {
  41514. var $async$goto = 0,
  41515. $async$completer = A._makeAsyncAwaitCompleter(type$.bool),
  41516. $async$returnValue, $async$self = this, t2, allSucceeded, node, success, t1, seen, toRecompile;
  41517. var $async$_recompileDownstream$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  41518. if ($async$errorCode === 1)
  41519. return A._asyncRethrow($async$result, $async$completer);
  41520. while (true)
  41521. switch ($async$goto) {
  41522. case 0:
  41523. // Function start
  41524. t1 = type$.StylesheetNode;
  41525. seen = A.LinkedHashSet_LinkedHashSet$_empty(t1);
  41526. toRecompile = A.ListQueue_ListQueue$of(nodes, t1);
  41527. t1 = type$.UnmodifiableSetView_StylesheetNode, t2 = $async$self._watch$_options._options, allSucceeded = true;
  41528. case 3:
  41529. // for condition
  41530. if (!!toRecompile.get$isEmpty(toRecompile)) {
  41531. // goto after for
  41532. $async$goto = 4;
  41533. break;
  41534. }
  41535. node = toRecompile.removeFirst$0();
  41536. if (!seen.add$1(0, node)) {
  41537. // goto for condition
  41538. $async$goto = 3;
  41539. break;
  41540. }
  41541. $async$goto = 5;
  41542. return A._asyncAwait($async$self._compileIfEntrypoint$1(node.canonicalUrl), $async$_recompileDownstream$1);
  41543. case 5:
  41544. // returning from await.
  41545. success = $async$result;
  41546. allSucceeded = allSucceeded && success;
  41547. if (!success && A._asBool(t2.$index(0, "stop-on-error"))) {
  41548. $async$returnValue = false;
  41549. // goto return
  41550. $async$goto = 1;
  41551. break;
  41552. }
  41553. toRecompile.addAll$1(0, new A.UnmodifiableSetView(node._downstream, t1));
  41554. // goto for condition
  41555. $async$goto = 3;
  41556. break;
  41557. case 4:
  41558. // after for
  41559. $async$returnValue = allSucceeded;
  41560. // goto return
  41561. $async$goto = 1;
  41562. break;
  41563. case 1:
  41564. // return
  41565. return A._asyncReturn($async$returnValue, $async$completer);
  41566. }
  41567. });
  41568. return A._asyncStartSync($async$_recompileDownstream$1, $async$completer);
  41569. },
  41570. _compileIfEntrypoint$1(url) {
  41571. return this._compileIfEntrypoint$body$_Watcher(url);
  41572. },
  41573. _compileIfEntrypoint$body$_Watcher(url) {
  41574. var $async$goto = 0,
  41575. $async$completer = A._makeAsyncAwaitCompleter(type$.bool),
  41576. $async$returnValue, $async$self = this, source, destination;
  41577. var $async$_compileIfEntrypoint$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  41578. if ($async$errorCode === 1)
  41579. return A._asyncRethrow($async$result, $async$completer);
  41580. while (true)
  41581. switch ($async$goto) {
  41582. case 0:
  41583. // Function start
  41584. if (url.get$scheme() !== "file") {
  41585. $async$returnValue = true;
  41586. // goto return
  41587. $async$goto = 1;
  41588. break;
  41589. }
  41590. source = $.$get$context().style.pathFromUri$1(A._parseUri(url));
  41591. destination = $async$self._destinationFor$1(source);
  41592. if (destination == null) {
  41593. $async$returnValue = true;
  41594. // goto return
  41595. $async$goto = 1;
  41596. break;
  41597. }
  41598. $async$goto = 3;
  41599. return A._asyncAwait($async$self.compile$2(0, source, destination), $async$_compileIfEntrypoint$1);
  41600. case 3:
  41601. // returning from await.
  41602. $async$returnValue = $async$result;
  41603. // goto return
  41604. $async$goto = 1;
  41605. break;
  41606. case 1:
  41607. // return
  41608. return A._asyncReturn($async$returnValue, $async$completer);
  41609. }
  41610. });
  41611. return A._asyncStartSync($async$_compileIfEntrypoint$1, $async$completer);
  41612. },
  41613. _destinationFor$1(source) {
  41614. var t2, destination, t3, t4,
  41615. t1 = this._watch$_options;
  41616. t1._ensureSources$0();
  41617. t2 = type$.String;
  41618. destination = t1._sourcesToDestinations.cast$2$0(0, t2, t2).$index(0, source);
  41619. if (destination != null)
  41620. return destination;
  41621. t3 = $.$get$context();
  41622. if (B.JSString_methods.startsWith$1(A.ParsedPath_ParsedPath$parse(source, t3.style).get$basename(), "_"))
  41623. return null;
  41624. t1._ensureSources$0();
  41625. t1 = t1.__ExecutableOptions__sourceDirectoriesToDestinations_F;
  41626. t1 === $ && A.throwUnnamedLateFieldNI();
  41627. t2 = t1.cast$2$0(0, t2, t2);
  41628. t2 = t2.get$entries(t2);
  41629. t2 = t2.get$iterator(t2);
  41630. for (; t2.moveNext$0();) {
  41631. t1 = t2.get$current(t2);
  41632. t4 = t1.key;
  41633. if (t3._isWithinOrEquals$2(t4, source) !== B._PathRelation_within)
  41634. continue;
  41635. destination = A.join(t1.value, t3.withoutExtension$1(t3.relative$2$from(source, t4)) + ".css", null);
  41636. if (t3._isWithinOrEquals$2(destination, source) !== B._PathRelation_equal)
  41637. return destination;
  41638. }
  41639. return null;
  41640. }
  41641. };
  41642. A._Watcher__debounceEvents_closure.prototype = {
  41643. call$1(buffer) {
  41644. var t2, t3, t4, oldType,
  41645. t1 = A.PathMap__create(null, type$.ChangeType);
  41646. for (t2 = J.get$iterator$ax(buffer); t2.moveNext$0();) {
  41647. t3 = t2.get$current(t2);
  41648. t4 = t3.path;
  41649. oldType = t1.$index(0, t4);
  41650. if (oldType == null)
  41651. t1.$indexSet(0, t4, t3.type);
  41652. else if (t3.type === B.ChangeType_remove)
  41653. t1.$indexSet(0, t4, B.ChangeType_remove);
  41654. else if (oldType !== B.ChangeType_add)
  41655. t1.$indexSet(0, t4, B.ChangeType_modify);
  41656. }
  41657. t2 = A._setArrayType([], type$.JSArray_WatchEvent);
  41658. for (t1 = t1.get$entries(t1), t1 = t1.get$iterator(t1); t1.moveNext$0();) {
  41659. t3 = t1.get$current(t1);
  41660. t4 = t3.value;
  41661. t3 = t3.key;
  41662. t3.toString;
  41663. t2.push(new A.WatchEvent(t4, t3));
  41664. }
  41665. return t2;
  41666. },
  41667. $signature: 492
  41668. };
  41669. A.EmptyExtensionStore.prototype = {
  41670. get$isEmpty(_) {
  41671. return true;
  41672. },
  41673. get$simpleSelectors() {
  41674. return B.C_EmptyUnmodifiableSet;
  41675. },
  41676. extensionsWhereTarget$1(callback) {
  41677. return B.List_empty5;
  41678. },
  41679. addSelector$3(selector, span, mediaContext) {
  41680. throw A.wrapException(A.UnsupportedError$(string$.addSel));
  41681. },
  41682. addExtension$4(extender, target, extend, mediaContext) {
  41683. throw A.wrapException(A.UnsupportedError$(string$.addExt_));
  41684. },
  41685. addExtensions$1(extenders) {
  41686. throw A.wrapException(A.UnsupportedError$(string$.addExts));
  41687. },
  41688. clone$0() {
  41689. return B.Tuple2_EmptyExtensionStore_Map_empty;
  41690. },
  41691. $isExtensionStore: 1
  41692. };
  41693. A.Extension.prototype = {
  41694. toString$0(_) {
  41695. var t1 = this.extender.toString$0(0),
  41696. t2 = this.target.toString$0(0),
  41697. t3 = this.isOptional ? " !optional" : "";
  41698. return t1 + " {@extend " + t2 + t3 + "}";
  41699. }
  41700. };
  41701. A.Extender.prototype = {
  41702. assertCompatibleMediaContext$1(mediaContext) {
  41703. var expectedMediaContext,
  41704. extension = this._extension;
  41705. if (extension == null)
  41706. return;
  41707. expectedMediaContext = extension.mediaContext;
  41708. if (expectedMediaContext == null)
  41709. return;
  41710. if (mediaContext != null && B.C_ListEquality.equals$2(0, expectedMediaContext, mediaContext))
  41711. return;
  41712. throw A.wrapException(A.SassException$(string$.You_ma, extension.span));
  41713. },
  41714. toString$0(_) {
  41715. return A.serializeSelector(this.selector, true);
  41716. }
  41717. };
  41718. A.ExtensionStore.prototype = {
  41719. get$isEmpty(_) {
  41720. return this._extensions.__js_helper$_length === 0;
  41721. },
  41722. get$simpleSelectors() {
  41723. return new A.MapKeySet(this._selectors, type$.MapKeySet_SimpleSelector);
  41724. },
  41725. extensionsWhereTarget$1($async$callback) {
  41726. var $async$self = this;
  41727. return A._makeSyncStarIterable(function() {
  41728. var callback = $async$callback;
  41729. var $async$goto = 0, $async$handler = 1, $async$currentError, t1, t2, t3;
  41730. return function $async$extensionsWhereTarget$1($async$errorCode, $async$result) {
  41731. if ($async$errorCode === 1) {
  41732. $async$currentError = $async$result;
  41733. $async$goto = $async$handler;
  41734. }
  41735. while (true)
  41736. switch ($async$goto) {
  41737. case 0:
  41738. // Function start
  41739. t1 = $async$self._extensions, t1 = t1.get$entries(t1), t1 = t1.get$iterator(t1);
  41740. case 2:
  41741. // for condition
  41742. if (!t1.moveNext$0()) {
  41743. // goto after for
  41744. $async$goto = 3;
  41745. break;
  41746. }
  41747. t2 = t1.get$current(t1);
  41748. if (!callback.call$1(t2.key)) {
  41749. // goto for condition
  41750. $async$goto = 2;
  41751. break;
  41752. }
  41753. t2 = J.get$values$z(t2.value), t2 = t2.get$iterator(t2);
  41754. case 4:
  41755. // for condition
  41756. if (!t2.moveNext$0()) {
  41757. // goto after for
  41758. $async$goto = 5;
  41759. break;
  41760. }
  41761. t3 = t2.get$current(t2);
  41762. $async$goto = t3 instanceof A.MergedExtension ? 6 : 8;
  41763. break;
  41764. case 6:
  41765. // then
  41766. t3 = t3.unmerge$0();
  41767. $async$goto = 9;
  41768. return A._IterationMarker_yieldStar(new A.WhereIterable(t3, new A.ExtensionStore_extensionsWhereTarget_closure(), t3.$ti._eval$1("WhereIterable<Iterable.E>")));
  41769. case 9:
  41770. // after yield
  41771. // goto join
  41772. $async$goto = 7;
  41773. break;
  41774. case 8:
  41775. // else
  41776. $async$goto = !t3.isOptional ? 10 : 11;
  41777. break;
  41778. case 10:
  41779. // then
  41780. $async$goto = 12;
  41781. return t3;
  41782. case 12:
  41783. // after yield
  41784. case 11:
  41785. // join
  41786. case 7:
  41787. // join
  41788. // goto for condition
  41789. $async$goto = 4;
  41790. break;
  41791. case 5:
  41792. // after for
  41793. // goto for condition
  41794. $async$goto = 2;
  41795. break;
  41796. case 3:
  41797. // after for
  41798. // implicit return
  41799. return A._IterationMarker_endOfIteration();
  41800. case 1:
  41801. // rethrow
  41802. return A._IterationMarker_uncaughtError($async$currentError);
  41803. }
  41804. };
  41805. }, type$.Extension);
  41806. },
  41807. addSelector$3(selector, selectorSpan, mediaContext) {
  41808. var originalSelector, error, stackTrace, t1, t2, t3, _i, exception, t4, modifiableSelector, _this = this;
  41809. selector = selector;
  41810. originalSelector = selector;
  41811. if (!originalSelector.accept$1(B._IsInvisibleVisitor_true))
  41812. for (t1 = originalSelector.components, t2 = t1.length, t3 = _this._originals, _i = 0; _i < t2; ++_i)
  41813. t3.add$1(0, t1[_i]);
  41814. t1 = _this._extensions;
  41815. if (t1.__js_helper$_length !== 0)
  41816. try {
  41817. selector = _this._extendList$4(originalSelector, selectorSpan, t1, mediaContext);
  41818. } catch (exception) {
  41819. t1 = A.unwrapException(exception);
  41820. if (t1 instanceof A.SassException) {
  41821. error = t1;
  41822. stackTrace = A.getTraceFromException(exception);
  41823. t1 = error;
  41824. t2 = J.getInterceptor$z(t1);
  41825. t3 = error;
  41826. t4 = J.getInterceptor$z(t3);
  41827. A.throwWithTrace(new A.SassException("From " + A.SourceSpanException.prototype.get$span.call(t2, t1).message$1(0, "") + "\n" + error._span_exception$_message, A.SourceSpanException.prototype.get$span.call(t4, t3)), stackTrace);
  41828. } else
  41829. throw exception;
  41830. }
  41831. modifiableSelector = new A.ModifiableCssValue(selector, selectorSpan, type$.ModifiableCssValue_SelectorList);
  41832. if (mediaContext != null)
  41833. _this._mediaContexts.$indexSet(0, modifiableSelector, mediaContext);
  41834. _this._registerSelector$2(selector, modifiableSelector);
  41835. return modifiableSelector;
  41836. },
  41837. _registerSelector$2(list, selector) {
  41838. var t1, t2, t3, _i, t4, t5, _i0, t6, t7, _i1, simple, selectorInPseudo;
  41839. for (t1 = list.components, t2 = t1.length, t3 = this._selectors, _i = 0; _i < t2; ++_i)
  41840. for (t4 = t1[_i].components, t5 = t4.length, _i0 = 0; _i0 < t5; ++_i0)
  41841. for (t6 = t4[_i0].selector.components, t7 = t6.length, _i1 = 0; _i1 < t7; ++_i1) {
  41842. simple = t6[_i1];
  41843. J.add$1$ax(t3.putIfAbsent$2(simple, new A.ExtensionStore__registerSelector_closure()), selector);
  41844. if (!(simple instanceof A.PseudoSelector))
  41845. continue;
  41846. selectorInPseudo = simple.selector;
  41847. if (selectorInPseudo != null)
  41848. this._registerSelector$2(selectorInPseudo, selector);
  41849. }
  41850. },
  41851. addExtension$4(extender, target, extend, mediaContext) {
  41852. var t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, newExtensions, _i, complex, t12, extension, existingExtension, t13, newExtensionsByTarget, additionalExtensions, _this = this,
  41853. selectors = _this._selectors.$index(0, target),
  41854. t1 = _this._extensionsByExtender,
  41855. existingExtensions = t1.$index(0, target),
  41856. sources = _this._extensions.putIfAbsent$2(target, new A.ExtensionStore_addExtension_closure());
  41857. for (t2 = extender.value.components, t3 = t2.length, t4 = selectors == null, t5 = _this._sourceSpecificity, t6 = extender.span, t7 = extend.span, t8 = extend.isOptional, t9 = existingExtensions != null, t10 = type$.ComplexSelector, t11 = type$.Extension, newExtensions = null, _i = 0; _i < t3; ++_i) {
  41858. complex = t2[_i];
  41859. if (complex.accept$1(B.C__IsUselessVisitor))
  41860. continue;
  41861. complex.get$specificity();
  41862. t12 = new A.Extender(complex, false, t6);
  41863. extension = t12._extension = new A.Extension(t12, target, mediaContext, t8, t7);
  41864. existingExtension = sources.$index(0, complex);
  41865. if (existingExtension != null) {
  41866. sources.$indexSet(0, complex, A.MergedExtension_merge(existingExtension, extension));
  41867. continue;
  41868. }
  41869. sources.$indexSet(0, complex, extension);
  41870. for (t12 = new A._SyncStarIterator(_this._simpleSelectors$1(complex)._outerHelper()); t12.moveNext$0();) {
  41871. t13 = t12.get$current(t12);
  41872. J.add$1$ax(t1.putIfAbsent$2(t13, new A.ExtensionStore_addExtension_closure0()), extension);
  41873. t5.putIfAbsent$2(t13, new A.ExtensionStore_addExtension_closure1(complex));
  41874. }
  41875. if (!t4 || t9) {
  41876. if (newExtensions == null)
  41877. newExtensions = A.LinkedHashMap_LinkedHashMap$_empty(t10, t11);
  41878. newExtensions.$indexSet(0, complex, extension);
  41879. }
  41880. }
  41881. if (newExtensions == null)
  41882. return;
  41883. t1 = type$.SimpleSelector;
  41884. newExtensionsByTarget = A.LinkedHashMap_LinkedHashMap$_literal([target, newExtensions], t1, type$.Map_ComplexSelector_Extension);
  41885. if (t9) {
  41886. additionalExtensions = _this._extendExistingExtensions$2(existingExtensions, newExtensionsByTarget);
  41887. if (additionalExtensions != null)
  41888. A.mapAddAll2(newExtensionsByTarget, additionalExtensions, t1, t10, t11);
  41889. }
  41890. if (!t4)
  41891. _this._extendExistingSelectors$2(selectors, newExtensionsByTarget);
  41892. },
  41893. _simpleSelectors$1(complex) {
  41894. return this._simpleSelectors$body$ExtensionStore(complex);
  41895. },
  41896. _simpleSelectors$body$ExtensionStore($async$complex) {
  41897. var $async$self = this;
  41898. return A._makeSyncStarIterable(function() {
  41899. var complex = $async$complex;
  41900. var $async$goto = 0, $async$handler = 1, $async$currentError, t1, t2, _i, t3, t4, _i0, simple, selector, t5, t6, _i1;
  41901. return function $async$_simpleSelectors$1($async$errorCode, $async$result) {
  41902. if ($async$errorCode === 1) {
  41903. $async$currentError = $async$result;
  41904. $async$goto = $async$handler;
  41905. }
  41906. while (true)
  41907. switch ($async$goto) {
  41908. case 0:
  41909. // Function start
  41910. t1 = complex.components, t2 = t1.length, _i = 0;
  41911. case 2:
  41912. // for condition
  41913. if (!(_i < t2)) {
  41914. // goto after for
  41915. $async$goto = 4;
  41916. break;
  41917. }
  41918. t3 = t1[_i].selector.components, t4 = t3.length, _i0 = 0;
  41919. case 5:
  41920. // for condition
  41921. if (!(_i0 < t4)) {
  41922. // goto after for
  41923. $async$goto = 7;
  41924. break;
  41925. }
  41926. simple = t3[_i0];
  41927. $async$goto = 8;
  41928. return simple;
  41929. case 8:
  41930. // after yield
  41931. if (!(simple instanceof A.PseudoSelector)) {
  41932. // goto for update
  41933. $async$goto = 6;
  41934. break;
  41935. }
  41936. selector = simple.selector;
  41937. if (selector == null) {
  41938. // goto for update
  41939. $async$goto = 6;
  41940. break;
  41941. }
  41942. t5 = selector.components, t6 = t5.length, _i1 = 0;
  41943. case 9:
  41944. // for condition
  41945. if (!(_i1 < t6)) {
  41946. // goto after for
  41947. $async$goto = 11;
  41948. break;
  41949. }
  41950. $async$goto = 12;
  41951. return A._IterationMarker_yieldStar($async$self._simpleSelectors$1(t5[_i1]));
  41952. case 12:
  41953. // after yield
  41954. case 10:
  41955. // for update
  41956. ++_i1;
  41957. // goto for condition
  41958. $async$goto = 9;
  41959. break;
  41960. case 11:
  41961. // after for
  41962. case 6:
  41963. // for update
  41964. ++_i0;
  41965. // goto for condition
  41966. $async$goto = 5;
  41967. break;
  41968. case 7:
  41969. // after for
  41970. case 3:
  41971. // for update
  41972. ++_i;
  41973. // goto for condition
  41974. $async$goto = 2;
  41975. break;
  41976. case 4:
  41977. // after for
  41978. // implicit return
  41979. return A._IterationMarker_endOfIteration();
  41980. case 1:
  41981. // rethrow
  41982. return A._IterationMarker_uncaughtError($async$currentError);
  41983. }
  41984. };
  41985. }, type$.SimpleSelector);
  41986. },
  41987. _extendExistingExtensions$2(extensions, newExtensions) {
  41988. var extension, selectors, error, stackTrace, t1, t2, t3, t4, t5, t6, additionalExtensions, _i, t7, exception, t8, t9, containsExtension, first, _i0, complex, t10, t11, t12, t13, t14, withExtender, existingExtension, _i1, _i2;
  41989. for (t1 = J.toList$0$ax(extensions), t2 = t1.length, t3 = this._extensionsByExtender, t4 = type$.SimpleSelector, t5 = type$.Map_ComplexSelector_Extension, t6 = this._extensions, additionalExtensions = null, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
  41990. extension = t1[_i];
  41991. t7 = t6.$index(0, extension.target);
  41992. t7.toString;
  41993. selectors = null;
  41994. try {
  41995. selectors = this._extendComplex$4(extension.extender.selector, extension.extender.span, newExtensions, extension.mediaContext);
  41996. if (selectors == null)
  41997. continue;
  41998. } catch (exception) {
  41999. t8 = A.unwrapException(exception);
  42000. if (t8 instanceof A.SassException) {
  42001. error = t8;
  42002. stackTrace = A.getTraceFromException(exception);
  42003. t8 = error;
  42004. t9 = J.getInterceptor$z(t8);
  42005. A.throwWithTrace(new A.SassException("From " + extension.extender.span.message$1(0, "") + "\n" + error._span_exception$_message, A.SourceSpanException.prototype.get$span.call(t9, t8)), stackTrace);
  42006. } else
  42007. throw exception;
  42008. }
  42009. t8 = J.get$first$ax(selectors);
  42010. t9 = extension.extender.selector;
  42011. containsExtension = B.C_ListEquality.equals$2(0, t8.leadingCombinators, t9.leadingCombinators) && B.C_ListEquality.equals$2(0, t8.components, t9.components);
  42012. for (t8 = selectors, t9 = t8.length, first = true, _i0 = 0; _i0 < t8.length; t8.length === t9 || (0, A.throwConcurrentModificationError)(t8), ++_i0) {
  42013. complex = t8[_i0];
  42014. if (containsExtension && first) {
  42015. first = false;
  42016. continue;
  42017. }
  42018. t10 = extension;
  42019. t11 = t10.extender;
  42020. t12 = t10.target;
  42021. t13 = t10.span;
  42022. t14 = t10.mediaContext;
  42023. t10 = t10.isOptional;
  42024. complex.get$specificity();
  42025. t11 = new A.Extender(complex, false, t11.span);
  42026. withExtender = t11._extension = new A.Extension(t11, t12, t14, t10, t13);
  42027. existingExtension = t7.$index(0, complex);
  42028. if (existingExtension != null)
  42029. t7.$indexSet(0, complex, A.MergedExtension_merge(existingExtension, withExtender));
  42030. else {
  42031. t7.$indexSet(0, complex, withExtender);
  42032. for (t10 = complex.components, t11 = t10.length, _i1 = 0; _i1 < t11; ++_i1)
  42033. for (t12 = t10[_i1].selector.components, t13 = t12.length, _i2 = 0; _i2 < t13; ++_i2)
  42034. J.add$1$ax(t3.putIfAbsent$2(t12[_i2], new A.ExtensionStore__extendExistingExtensions_closure()), withExtender);
  42035. if (newExtensions.containsKey$1(extension.target)) {
  42036. if (additionalExtensions == null)
  42037. additionalExtensions = A.LinkedHashMap_LinkedHashMap$_empty(t4, t5);
  42038. additionalExtensions.putIfAbsent$2(extension.target, new A.ExtensionStore__extendExistingExtensions_closure0()).$indexSet(0, complex, withExtender);
  42039. }
  42040. }
  42041. }
  42042. if (!containsExtension)
  42043. t7.remove$1(0, extension.extender);
  42044. }
  42045. return additionalExtensions;
  42046. },
  42047. _extendExistingSelectors$2(selectors, newExtensions) {
  42048. var selector, error, stackTrace, t1, t2, oldValue, exception, t3, t4;
  42049. for (t1 = selectors.get$iterator(selectors), t2 = this._mediaContexts; t1.moveNext$0();) {
  42050. selector = t1.get$current(t1);
  42051. oldValue = selector.value;
  42052. try {
  42053. selector.value = this._extendList$4(selector.value, selector.span, newExtensions, t2.$index(0, selector));
  42054. } catch (exception) {
  42055. t3 = A.unwrapException(exception);
  42056. if (t3 instanceof A.SassException) {
  42057. error = t3;
  42058. stackTrace = A.getTraceFromException(exception);
  42059. t3 = error;
  42060. t4 = J.getInterceptor$z(t3);
  42061. A.throwWithTrace(new A.SassException("From " + selector.span.message$1(0, "") + "\n" + error._span_exception$_message, A.SourceSpanException.prototype.get$span.call(t4, t3)), stackTrace);
  42062. } else
  42063. throw exception;
  42064. }
  42065. if (oldValue === selector.value)
  42066. continue;
  42067. this._registerSelector$2(selector.value, selector);
  42068. }
  42069. },
  42070. addExtensions$1(extensionStores) {
  42071. var t1, t2, t3, _box_0 = {};
  42072. _box_0.newExtensions = _box_0.selectorsToExtend = _box_0.extensionsToExtend = null;
  42073. for (t1 = J.get$iterator$ax(extensionStores), t2 = this._sourceSpecificity; t1.moveNext$0();) {
  42074. t3 = t1.get$current(t1);
  42075. if (t3.get$isEmpty(t3))
  42076. continue;
  42077. t2.addAll$1(0, t3.get$_sourceSpecificity());
  42078. t3.get$_extensions().forEach$1(0, new A.ExtensionStore_addExtensions_closure(_box_0, this));
  42079. }
  42080. A.NullableExtension_andThen(_box_0.newExtensions, new A.ExtensionStore_addExtensions_closure0(_box_0, this));
  42081. },
  42082. _extendList$4(list, listSpan, extensions, mediaQueryContext) {
  42083. var t1, t2, t3, extended, i, complex, result, t4;
  42084. for (t1 = list.components, t2 = t1.length, t3 = type$.JSArray_ComplexSelector, extended = null, i = 0; i < t2; ++i) {
  42085. complex = t1[i];
  42086. result = this._extendComplex$4(complex, listSpan, extensions, mediaQueryContext);
  42087. if (result == null) {
  42088. if (extended != null)
  42089. extended.push(complex);
  42090. } else {
  42091. if (extended == null)
  42092. if (i === 0)
  42093. extended = A._setArrayType([], t3);
  42094. else {
  42095. t4 = B.JSArray_methods.sublist$2(t1, 0, i);
  42096. extended = A._setArrayType(t4.slice(0), A._arrayInstanceType(t4));
  42097. }
  42098. B.JSArray_methods.addAll$1(extended, result);
  42099. }
  42100. }
  42101. if (extended == null)
  42102. return list;
  42103. t1 = this._originals;
  42104. return A.SelectorList$(this._trim$2(extended, t1.get$contains(t1)));
  42105. },
  42106. _extendList$3(list, listSpan, extensions) {
  42107. return this._extendList$4(list, listSpan, extensions, null);
  42108. },
  42109. _extendComplex$4(complex, complexSpan, extensions, mediaQueryContext) {
  42110. var isOriginal, t3, t4, t5, t6, t7, t8, t9, t10, t11, extendedNotExpanded, i, component, extended, t12, result, t13, t14, t15, t16, _null = null,
  42111. _s56_ = string$.leadin,
  42112. _box_0 = {},
  42113. t1 = complex.leadingCombinators,
  42114. t2 = t1.length;
  42115. if (t2 > 1)
  42116. return _null;
  42117. isOriginal = this._originals.contains$1(0, complex);
  42118. for (t3 = complex.components, t4 = t3.length, t5 = type$.JSArray_List_ComplexSelector, t6 = type$.Combinator, t7 = type$.ComplexSelectorComponent, t8 = complex.lineBreak, t9 = !t8, t10 = type$.JSArray_ComplexSelector, t2 = t2 === 0, t11 = type$.JSArray_ComplexSelectorComponent, extendedNotExpanded = _null, i = 0; i < t4; ++i) {
  42119. component = t3[i];
  42120. extended = this._extendCompound$5$inOriginal(component, complexSpan, extensions, mediaQueryContext, isOriginal);
  42121. if (extended == null) {
  42122. if (extendedNotExpanded != null) {
  42123. t12 = A._setArrayType([component], t11);
  42124. result = A.List_List$from(B.List_empty0, false, t6);
  42125. result.fixed$length = Array;
  42126. result.immutable$list = Array;
  42127. t13 = result;
  42128. result = A.List_List$from(t12, false, t7);
  42129. result.fixed$length = Array;
  42130. result.immutable$list = Array;
  42131. t12 = result;
  42132. if (t13.length === 0 && t12.length === 0)
  42133. A.throwExpression(A.ArgumentError$(_s56_, _null));
  42134. extendedNotExpanded.push(A._setArrayType([new A.ComplexSelector(t13, t12, t8)], t10));
  42135. }
  42136. } else if (extendedNotExpanded != null)
  42137. extendedNotExpanded.push(extended);
  42138. else if (i !== 0) {
  42139. t12 = A._arrayInstanceType(t3);
  42140. t13 = new A.SubListIterable(t3, 0, i, t12._eval$1("SubListIterable<1>"));
  42141. t13.SubListIterable$3(t3, 0, i, t12._precomputed1);
  42142. result = A.List_List$from(t1, false, t6);
  42143. result.fixed$length = Array;
  42144. result.immutable$list = Array;
  42145. t12 = result;
  42146. result = A.List_List$from(t13, false, t7);
  42147. result.fixed$length = Array;
  42148. result.immutable$list = Array;
  42149. t13 = result;
  42150. if (t12.length === 0 && t13.length === 0)
  42151. A.throwExpression(A.ArgumentError$(_s56_, _null));
  42152. extendedNotExpanded = A._setArrayType([A._setArrayType([new A.ComplexSelector(t12, t13, t8)], t10), extended], t5);
  42153. } else if (t2)
  42154. extendedNotExpanded = A._setArrayType([extended], t5);
  42155. else {
  42156. t12 = A._setArrayType([], t10);
  42157. for (t13 = J.get$iterator$ax(extended); t13.moveNext$0();) {
  42158. t14 = t13.get$current(t13);
  42159. t15 = t14.leadingCombinators;
  42160. if (t15.length === 0 || B.C_ListEquality.equals$2(0, t1, t15)) {
  42161. t15 = t14.components;
  42162. t14 = !t9 || t14.lineBreak;
  42163. result = A.List_List$from(t1, false, t6);
  42164. result.fixed$length = Array;
  42165. result.immutable$list = Array;
  42166. t16 = result;
  42167. result = A.List_List$from(t15, false, t7);
  42168. result.fixed$length = Array;
  42169. result.immutable$list = Array;
  42170. t15 = result;
  42171. if (t16.length === 0 && t15.length === 0)
  42172. A.throwExpression(A.ArgumentError$(_s56_, _null));
  42173. t12.push(new A.ComplexSelector(t16, t15, t14));
  42174. }
  42175. }
  42176. extendedNotExpanded = A._setArrayType([t12], t5);
  42177. }
  42178. }
  42179. if (extendedNotExpanded == null)
  42180. return _null;
  42181. _box_0.first = true;
  42182. t1 = type$.ComplexSelector;
  42183. t1 = J.expand$1$1$ax(A.paths(extendedNotExpanded, t1), new A.ExtensionStore__extendComplex_closure(_box_0, this, complex), t1);
  42184. return A.List_List$of(t1, true, t1.$ti._eval$1("Iterable.E"));
  42185. },
  42186. _extendCompound$5$inOriginal(component, componentSpan, extensions, mediaQueryContext, inOriginal) {
  42187. var t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, options, i, simple, extended, result, t13, t14, compound, complex, extenderPaths, withCombinators, isOriginal, _this = this, _null = null,
  42188. _s28_ = "components may not be empty.",
  42189. _s56_ = string$.leadin,
  42190. t1 = _this._mode,
  42191. targetsUsed = t1 === B.ExtendMode_normal_normal || extensions.get$length(extensions) < 2 ? _null : A.LinkedHashSet_LinkedHashSet$_empty(type$.SimpleSelector),
  42192. simples = component.selector.components;
  42193. for (t2 = simples.length, t3 = type$.JSArray_List_Extender, t4 = type$.JSArray_Extender, t5 = type$.Combinator, t6 = type$.JSArray_ComplexSelectorComponent, t7 = type$.ComplexSelectorComponent, t8 = A._arrayInstanceType(simples), t9 = t8._precomputed1, t8 = t8._eval$1("SubListIterable<1>"), t10 = type$.SimpleSelector, t11 = _this._sourceSpecificity, t12 = type$.JSArray_SimpleSelector, options = _null, i = 0; i < t2; ++i) {
  42194. simple = simples[i];
  42195. extended = _this._extendSimple$5(simple, componentSpan, extensions, mediaQueryContext, targetsUsed);
  42196. if (extended == null) {
  42197. if (options != null) {
  42198. result = A.List_List$from(A._setArrayType([simple], t12), false, t10);
  42199. result.fixed$length = Array;
  42200. result.immutable$list = Array;
  42201. t13 = result;
  42202. if (t13.length === 0)
  42203. A.throwExpression(A.ArgumentError$(_s28_, _null));
  42204. result = A.List_List$from(B.List_empty0, false, t5);
  42205. result.fixed$length = Array;
  42206. result.immutable$list = Array;
  42207. t13 = A._setArrayType([new A.ComplexSelectorComponent(new A.CompoundSelector(t13), result)], t6);
  42208. result = A.List_List$from(B.List_empty0, false, t5);
  42209. result.fixed$length = Array;
  42210. result.immutable$list = Array;
  42211. t14 = result;
  42212. result = A.List_List$from(t13, false, t7);
  42213. result.fixed$length = Array;
  42214. result.immutable$list = Array;
  42215. t13 = result;
  42216. if (t14.length === 0 && t13.length === 0)
  42217. A.throwExpression(A.ArgumentError$(_s56_, _null));
  42218. t11.$index(0, simple);
  42219. options.push(A._setArrayType([new A.Extender(new A.ComplexSelector(t14, t13, false), true, componentSpan)], t4));
  42220. }
  42221. } else {
  42222. if (options == null) {
  42223. options = A._setArrayType([], t3);
  42224. if (i !== 0) {
  42225. t13 = new A.SubListIterable(simples, 0, i, t8);
  42226. t13.SubListIterable$3(simples, 0, i, t9);
  42227. result = A.List_List$from(t13, false, t10);
  42228. result.fixed$length = Array;
  42229. result.immutable$list = Array;
  42230. t13 = result;
  42231. compound = new A.CompoundSelector(t13);
  42232. if (t13.length === 0)
  42233. A.throwExpression(A.ArgumentError$(_s28_, _null));
  42234. result = A.List_List$from(B.List_empty0, false, t5);
  42235. result.fixed$length = Array;
  42236. result.immutable$list = Array;
  42237. t13 = A._setArrayType([new A.ComplexSelectorComponent(compound, result)], t6);
  42238. result = A.List_List$from(B.List_empty0, false, t5);
  42239. result.fixed$length = Array;
  42240. result.immutable$list = Array;
  42241. t14 = result;
  42242. result = A.List_List$from(t13, false, t7);
  42243. result.fixed$length = Array;
  42244. result.immutable$list = Array;
  42245. t13 = result;
  42246. if (t14.length === 0 && t13.length === 0)
  42247. A.throwExpression(A.ArgumentError$(_s56_, _null));
  42248. _this._sourceSpecificityFor$1(compound);
  42249. options.push(A._setArrayType([new A.Extender(new A.ComplexSelector(t14, t13, false), true, componentSpan)], t4));
  42250. }
  42251. }
  42252. B.JSArray_methods.addAll$1(options, extended);
  42253. }
  42254. }
  42255. if (options == null)
  42256. return _null;
  42257. if (targetsUsed != null && targetsUsed._collection$_length !== extensions.get$length(extensions))
  42258. return _null;
  42259. if (options.length === 1) {
  42260. for (t1 = J.get$iterator$ax(B.JSArray_methods.get$first(options)), t2 = component.combinators, t3 = type$.JSArray_ComplexSelector, result = _null; t1.moveNext$0();) {
  42261. t4 = t1.get$current(t1);
  42262. t4.assertCompatibleMediaContext$1(mediaQueryContext);
  42263. complex = t4.selector.withAdditionalCombinators$1(t2);
  42264. if (complex.accept$1(B.C__IsUselessVisitor))
  42265. continue;
  42266. if (result == null)
  42267. result = A._setArrayType([], t3);
  42268. result.push(complex);
  42269. }
  42270. return result;
  42271. }
  42272. extenderPaths = A.paths(options, type$.Extender);
  42273. t2 = A._setArrayType([], type$.JSArray_ComplexSelector);
  42274. t1 = t1 === B.ExtendMode_replace_replace;
  42275. t3 = !t1;
  42276. if (t3)
  42277. t2.push(A.ComplexSelector$(B.List_empty0, A._setArrayType([new A.ComplexSelectorComponent(A.CompoundSelector$(J.expand$1$1$ax(J.get$first$ax(extenderPaths), new A.ExtensionStore__extendCompound_closure(), t10)), A.List_List$unmodifiable(component.combinators, t5))], t6), false));
  42278. t4 = J.skip$1$ax(extenderPaths, t1 ? 0 : 1);
  42279. t4 = t4.get$iterator(t4);
  42280. t5 = component.combinators;
  42281. for (; t4.moveNext$0();) {
  42282. extended = _this._unifyExtenders$2(t4.get$current(t4), mediaQueryContext);
  42283. if (extended == null)
  42284. continue;
  42285. for (t1 = J.get$iterator$ax(extended); t1.moveNext$0();) {
  42286. withCombinators = t1.get$current(t1).withAdditionalCombinators$1(t5);
  42287. if (!withCombinators.accept$1(B.C__IsUselessVisitor))
  42288. t2.push(withCombinators);
  42289. }
  42290. }
  42291. isOriginal = new A.ExtensionStore__extendCompound_closure0();
  42292. return _this._trim$2(t2, inOriginal && t3 ? new A.ExtensionStore__extendCompound_closure1(B.JSArray_methods.get$first(t2)) : isOriginal);
  42293. },
  42294. _unifyExtenders$2(extenders, mediaQueryContext) {
  42295. var t1, t2, t3, originals, originalsLineBreak, t4, complexes, _null = null,
  42296. toUnify = A.QueueList$(_null, type$.ComplexSelector);
  42297. for (t1 = J.getInterceptor$ax(extenders), t2 = t1.get$iterator(extenders), t3 = type$.JSArray_SimpleSelector, originals = _null, originalsLineBreak = false; t2.moveNext$0();) {
  42298. t4 = t2.get$current(t2);
  42299. if (t4.isOriginal) {
  42300. if (originals == null)
  42301. originals = A._setArrayType([], t3);
  42302. t4 = t4.selector;
  42303. B.JSArray_methods.addAll$1(originals, B.JSArray_methods.get$last(t4.components).selector.components);
  42304. originalsLineBreak = originalsLineBreak || t4.lineBreak;
  42305. } else {
  42306. t4 = t4.selector;
  42307. if (t4.accept$1(B.C__IsUselessVisitor))
  42308. return _null;
  42309. else
  42310. toUnify._queue_list$_add$1(t4);
  42311. }
  42312. }
  42313. if (originals != null)
  42314. toUnify.addFirst$1(A.ComplexSelector$(B.List_empty0, A._setArrayType([new A.ComplexSelectorComponent(A.CompoundSelector$(originals), A.List_List$unmodifiable(B.List_empty0, type$.Combinator))], type$.JSArray_ComplexSelectorComponent), originalsLineBreak));
  42315. complexes = A.unifyComplex(toUnify);
  42316. if (complexes == null)
  42317. return _null;
  42318. for (t1 = t1.get$iterator(extenders); t1.moveNext$0();)
  42319. t1.get$current(t1).assertCompatibleMediaContext$1(mediaQueryContext);
  42320. return complexes;
  42321. },
  42322. _extendSimple$5(simple, simpleSpan, extensions, mediaQueryContext, targetsUsed) {
  42323. var extended,
  42324. t1 = new A.ExtensionStore__extendSimple_withoutPseudo(this, extensions, targetsUsed, simpleSpan);
  42325. if (simple instanceof A.PseudoSelector && simple.selector != null) {
  42326. extended = this._extendPseudo$4(simple, simpleSpan, extensions, mediaQueryContext);
  42327. if (extended != null)
  42328. return new A.MappedListIterable(extended, new A.ExtensionStore__extendSimple_closure(this, t1, simpleSpan), A._arrayInstanceType(extended)._eval$1("MappedListIterable<1,List<Extender>>"));
  42329. }
  42330. return A.NullableExtension_andThen(t1.call$1(simple), new A.ExtensionStore__extendSimple_closure0());
  42331. },
  42332. _extenderForSimple$2(simple, span) {
  42333. var t1 = A.ComplexSelector$(B.List_empty0, A._setArrayType([new A.ComplexSelectorComponent(A.CompoundSelector$(A._setArrayType([simple], type$.JSArray_SimpleSelector)), A.List_List$unmodifiable(B.List_empty0, type$.Combinator))], type$.JSArray_ComplexSelectorComponent), false);
  42334. this._sourceSpecificity.$index(0, simple);
  42335. return new A.Extender(t1, true, span);
  42336. },
  42337. _extendPseudo$4(pseudo, pseudoSpan, extensions, mediaQueryContext) {
  42338. var extended, complexes, t1, result,
  42339. selector = pseudo.selector;
  42340. if (selector == null)
  42341. throw A.wrapException(A.ArgumentError$("Selector " + pseudo.toString$0(0) + " must have a selector argument.", null));
  42342. extended = this._extendList$4(selector, pseudoSpan, extensions, mediaQueryContext);
  42343. if (extended === selector)
  42344. return null;
  42345. complexes = extended.components;
  42346. t1 = pseudo.normalizedName === "not";
  42347. if (t1 && !B.JSArray_methods.any$1(selector.components, new A.ExtensionStore__extendPseudo_closure()) && B.JSArray_methods.any$1(complexes, new A.ExtensionStore__extendPseudo_closure0()))
  42348. complexes = new A.WhereIterable(complexes, new A.ExtensionStore__extendPseudo_closure1(), A._arrayInstanceType(complexes)._eval$1("WhereIterable<1>"));
  42349. complexes = J.expand$1$1$ax(complexes, new A.ExtensionStore__extendPseudo_closure2(pseudo), type$.ComplexSelector);
  42350. if (t1 && selector.components.length === 1) {
  42351. t1 = A.MappedIterable_MappedIterable(complexes, new A.ExtensionStore__extendPseudo_closure3(pseudo), complexes.$ti._eval$1("Iterable.E"), type$.PseudoSelector);
  42352. result = A.List_List$of(t1, true, A._instanceType(t1)._eval$1("Iterable.E"));
  42353. return result.length === 0 ? null : result;
  42354. } else
  42355. return A._setArrayType([A.PseudoSelector$(pseudo.name, pseudo.argument, !pseudo.isClass, A.SelectorList$(complexes))], type$.JSArray_PseudoSelector);
  42356. },
  42357. _trim$2(selectors, isOriginal) {
  42358. var result, i, t1, t2, numOriginals, _box_0, complex1, j, t3, t4, _i, t5, maxSpecificity;
  42359. if (selectors.length > 100)
  42360. return selectors;
  42361. result = A.QueueList$(null, type$.ComplexSelector);
  42362. $label0$0:
  42363. for (i = selectors.length - 1, t1 = A._arrayInstanceType(selectors), t2 = t1._precomputed1, t1 = t1._eval$1("SubListIterable<1>"), numOriginals = 0; i >= 0; --i) {
  42364. _box_0 = {};
  42365. complex1 = selectors[i];
  42366. if (isOriginal.call$1(complex1)) {
  42367. for (j = 0; j < numOriginals; ++j)
  42368. if (J.$eq$(result.$index(0, j), complex1)) {
  42369. A.rotateSlice(result, 0, j + 1);
  42370. continue $label0$0;
  42371. }
  42372. ++numOriginals;
  42373. result.addFirst$1(complex1);
  42374. continue $label0$0;
  42375. }
  42376. _box_0.maxSpecificity = 0;
  42377. for (t3 = complex1.components, t4 = t3.length, _i = 0, t5 = 0; _i < t4; ++_i, t5 = maxSpecificity) {
  42378. maxSpecificity = Math.max(t5, this._sourceSpecificityFor$1(t3[_i].selector));
  42379. _box_0.maxSpecificity = maxSpecificity;
  42380. }
  42381. if (result.any$1(result, new A.ExtensionStore__trim_closure(_box_0, complex1)))
  42382. continue $label0$0;
  42383. t3 = new A.SubListIterable(selectors, 0, i, t1);
  42384. t3.SubListIterable$3(selectors, 0, i, t2);
  42385. if (t3.any$1(0, new A.ExtensionStore__trim_closure0(_box_0, complex1)))
  42386. continue $label0$0;
  42387. result.addFirst$1(complex1);
  42388. }
  42389. return result;
  42390. },
  42391. _sourceSpecificityFor$1(compound) {
  42392. var t1, t2, t3, specificity, _i, t4;
  42393. for (t1 = compound.components, t2 = t1.length, t3 = this._sourceSpecificity, specificity = 0, _i = 0; _i < t2; ++_i) {
  42394. t4 = t3.$index(0, t1[_i]);
  42395. specificity = Math.max(specificity, A.checkNum(t4 == null ? 0 : t4));
  42396. }
  42397. return specificity;
  42398. },
  42399. clone$0() {
  42400. var t3, t4, _this = this,
  42401. t1 = type$.SimpleSelector,
  42402. newSelectors = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Set_ModifiableCssValue_SelectorList),
  42403. t2 = type$.ModifiableCssValue_SelectorList,
  42404. newMediaContexts = A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.List_CssMediaQuery),
  42405. oldToNewSelectors = A.LinkedHashMap_LinkedHashMap$_empty(type$.CssValue_SelectorList, t2);
  42406. _this._selectors.forEach$1(0, new A.ExtensionStore_clone_closure(_this, newSelectors, oldToNewSelectors, newMediaContexts));
  42407. t2 = type$.Extension;
  42408. t3 = A.copyMapOfMap(_this._extensions, t1, type$.ComplexSelector, t2);
  42409. t2 = A.copyMapOfList(_this._extensionsByExtender, t1, t2);
  42410. t1 = new A._LinkedIdentityHashMap(type$._LinkedIdentityHashMap_SimpleSelector_int);
  42411. t1.addAll$1(0, _this._sourceSpecificity);
  42412. t4 = new A._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_ComplexSelector);
  42413. t4.addAll$1(0, _this._originals);
  42414. return new A.Tuple2(new A.ExtensionStore(newSelectors, t3, t2, newMediaContexts, t1, t4, B.ExtendMode_normal_normal), oldToNewSelectors, type$.Tuple2_of_ExtensionStore_and_Map_of_CssValue_SelectorList_and_ModifiableCssValue_SelectorList);
  42415. },
  42416. get$_extensions() {
  42417. return this._extensions;
  42418. },
  42419. get$_sourceSpecificity() {
  42420. return this._sourceSpecificity;
  42421. }
  42422. };
  42423. A.ExtensionStore_extensionsWhereTarget_closure.prototype = {
  42424. call$1(extension) {
  42425. return !extension.isOptional;
  42426. },
  42427. $signature: 491
  42428. };
  42429. A.ExtensionStore__registerSelector_closure.prototype = {
  42430. call$0() {
  42431. return A.LinkedHashSet_LinkedHashSet$_empty(type$.ModifiableCssValue_SelectorList);
  42432. },
  42433. $signature: 490
  42434. };
  42435. A.ExtensionStore_addExtension_closure.prototype = {
  42436. call$0() {
  42437. return A.LinkedHashMap_LinkedHashMap$_empty(type$.ComplexSelector, type$.Extension);
  42438. },
  42439. $signature: 105
  42440. };
  42441. A.ExtensionStore_addExtension_closure0.prototype = {
  42442. call$0() {
  42443. return A._setArrayType([], type$.JSArray_Extension);
  42444. },
  42445. $signature: 148
  42446. };
  42447. A.ExtensionStore_addExtension_closure1.prototype = {
  42448. call$0() {
  42449. return this.complex.get$specificity();
  42450. },
  42451. $signature: 12
  42452. };
  42453. A.ExtensionStore__extendExistingExtensions_closure.prototype = {
  42454. call$0() {
  42455. return A._setArrayType([], type$.JSArray_Extension);
  42456. },
  42457. $signature: 148
  42458. };
  42459. A.ExtensionStore__extendExistingExtensions_closure0.prototype = {
  42460. call$0() {
  42461. return A.LinkedHashMap_LinkedHashMap$_empty(type$.ComplexSelector, type$.Extension);
  42462. },
  42463. $signature: 105
  42464. };
  42465. A.ExtensionStore_addExtensions_closure.prototype = {
  42466. call$2(target, newSources) {
  42467. var first, t1, extensionsForTarget, t2, t3, t4, selectorsForTarget, t5, existingSources, _this = this;
  42468. if (target instanceof A.PlaceholderSelector) {
  42469. first = B.JSString_methods._codeUnitAt$1(target.name, 0);
  42470. t1 = first === 45 || first === 95;
  42471. } else
  42472. t1 = false;
  42473. if (t1)
  42474. return;
  42475. t1 = _this.$this;
  42476. extensionsForTarget = t1._extensionsByExtender.$index(0, target);
  42477. t2 = extensionsForTarget == null;
  42478. if (!t2) {
  42479. t3 = _this._box_0;
  42480. t4 = t3.extensionsToExtend;
  42481. B.JSArray_methods.addAll$1(t4 == null ? t3.extensionsToExtend = A._setArrayType([], type$.JSArray_Extension) : t4, extensionsForTarget);
  42482. }
  42483. selectorsForTarget = t1._selectors.$index(0, target);
  42484. t3 = selectorsForTarget != null;
  42485. if (t3) {
  42486. t4 = _this._box_0;
  42487. t5 = t4.selectorsToExtend;
  42488. (t5 == null ? t4.selectorsToExtend = A.LinkedHashSet_LinkedHashSet$_empty(type$.ModifiableCssValue_SelectorList) : t5).addAll$1(0, selectorsForTarget);
  42489. }
  42490. t1 = t1._extensions;
  42491. existingSources = t1.$index(0, target);
  42492. if (existingSources == null) {
  42493. t4 = type$.ComplexSelector;
  42494. t5 = type$.Extension;
  42495. t1.$indexSet(0, target, A.LinkedHashMap_LinkedHashMap$of(newSources, t4, t5));
  42496. if (!t2 || t3) {
  42497. t1 = _this._box_0;
  42498. t2 = t1.newExtensions;
  42499. t1 = t2 == null ? t1.newExtensions = A.LinkedHashMap_LinkedHashMap$_empty(type$.SimpleSelector, type$.Map_ComplexSelector_Extension) : t2;
  42500. t1.$indexSet(0, target, A.LinkedHashMap_LinkedHashMap$of(newSources, t4, t5));
  42501. }
  42502. } else
  42503. newSources.forEach$1(0, new A.ExtensionStore_addExtensions__closure1(_this._box_0, existingSources, extensionsForTarget, selectorsForTarget, target));
  42504. },
  42505. $signature: 489
  42506. };
  42507. A.ExtensionStore_addExtensions__closure1.prototype = {
  42508. call$2(extender, extension) {
  42509. var t2, _this = this,
  42510. t1 = _this.existingSources;
  42511. if (t1.containsKey$1(extender)) {
  42512. t2 = t1.$index(0, extender);
  42513. extension = A.MergedExtension_merge(t2, extension);
  42514. t1.$indexSet(0, extender, extension);
  42515. } else
  42516. t1.$indexSet(0, extender, extension);
  42517. if (_this.extensionsForTarget != null || _this.selectorsForTarget != null) {
  42518. t1 = _this._box_0;
  42519. t2 = t1.newExtensions;
  42520. t1 = t2 == null ? t1.newExtensions = A.LinkedHashMap_LinkedHashMap$_empty(type$.SimpleSelector, type$.Map_ComplexSelector_Extension) : t2;
  42521. J.$indexSet$ax(t1.putIfAbsent$2(_this.target, new A.ExtensionStore_addExtensions___closure()), extender, extension);
  42522. }
  42523. },
  42524. $signature: 484
  42525. };
  42526. A.ExtensionStore_addExtensions___closure.prototype = {
  42527. call$0() {
  42528. return A.LinkedHashMap_LinkedHashMap$_empty(type$.ComplexSelector, type$.Extension);
  42529. },
  42530. $signature: 105
  42531. };
  42532. A.ExtensionStore_addExtensions_closure0.prototype = {
  42533. call$1(newExtensions) {
  42534. var t1 = this._box_0,
  42535. t2 = this.$this;
  42536. A.NullableExtension_andThen(t1.extensionsToExtend, new A.ExtensionStore_addExtensions__closure(t2, newExtensions));
  42537. A.NullableExtension_andThen(t1.selectorsToExtend, new A.ExtensionStore_addExtensions__closure0(t2, newExtensions));
  42538. },
  42539. $signature: 482
  42540. };
  42541. A.ExtensionStore_addExtensions__closure.prototype = {
  42542. call$1(extensionsToExtend) {
  42543. return this.$this._extendExistingExtensions$2(extensionsToExtend, this.newExtensions);
  42544. },
  42545. $signature: 467
  42546. };
  42547. A.ExtensionStore_addExtensions__closure0.prototype = {
  42548. call$1(selectorsToExtend) {
  42549. return this.$this._extendExistingSelectors$2(selectorsToExtend, this.newExtensions);
  42550. },
  42551. $signature: 465
  42552. };
  42553. A.ExtensionStore__extendComplex_closure.prototype = {
  42554. call$1(path) {
  42555. var t1 = this.complex;
  42556. return J.map$1$1$ax(A.weave(path, t1.lineBreak), new A.ExtensionStore__extendComplex__closure(this._box_0, this.$this, t1), type$.ComplexSelector);
  42557. },
  42558. $signature: 459
  42559. };
  42560. A.ExtensionStore__extendComplex__closure.prototype = {
  42561. call$1(outputComplex) {
  42562. var _this = this,
  42563. t1 = _this._box_0;
  42564. if (t1.first && _this.$this._originals.contains$1(0, _this.complex))
  42565. _this.$this._originals.add$1(0, outputComplex);
  42566. t1.first = false;
  42567. return outputComplex;
  42568. },
  42569. $signature: 63
  42570. };
  42571. A.ExtensionStore__extendCompound_closure.prototype = {
  42572. call$1(extender) {
  42573. return B.JSArray_methods.get$last(extender.selector.components).selector.components;
  42574. },
  42575. $signature: 452
  42576. };
  42577. A.ExtensionStore__extendCompound_closure0.prototype = {
  42578. call$1(_) {
  42579. return false;
  42580. },
  42581. $signature: 16
  42582. };
  42583. A.ExtensionStore__extendCompound_closure1.prototype = {
  42584. call$1(complex) {
  42585. return complex.$eq(0, this.original);
  42586. },
  42587. $signature: 16
  42588. };
  42589. A.ExtensionStore__extendSimple_withoutPseudo.prototype = {
  42590. call$1(simple) {
  42591. var t1, t2, _this = this,
  42592. extensionsForSimple = _this.extensions.$index(0, simple);
  42593. if (extensionsForSimple == null)
  42594. return null;
  42595. t1 = _this.targetsUsed;
  42596. if (t1 != null)
  42597. t1.add$1(0, simple);
  42598. t1 = A._setArrayType([], type$.JSArray_Extender);
  42599. t2 = _this.$this;
  42600. if (t2._mode !== B.ExtendMode_replace_replace)
  42601. t1.push(t2._extenderForSimple$2(simple, _this.simpleSpan));
  42602. for (t2 = extensionsForSimple.get$values(extensionsForSimple), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  42603. t1.push(t2.get$current(t2).extender);
  42604. return t1;
  42605. },
  42606. $signature: 437
  42607. };
  42608. A.ExtensionStore__extendSimple_closure.prototype = {
  42609. call$1(pseudo) {
  42610. var t1 = this.withoutPseudo.call$1(pseudo);
  42611. return t1 == null ? A._setArrayType([this.$this._extenderForSimple$2(pseudo, this.simpleSpan)], type$.JSArray_Extender) : t1;
  42612. },
  42613. $signature: 434
  42614. };
  42615. A.ExtensionStore__extendSimple_closure0.prototype = {
  42616. call$1(result) {
  42617. return A._setArrayType([result], type$.JSArray_List_Extender);
  42618. },
  42619. $signature: 433
  42620. };
  42621. A.ExtensionStore__extendPseudo_closure.prototype = {
  42622. call$1(complex) {
  42623. return complex.components.length > 1;
  42624. },
  42625. $signature: 16
  42626. };
  42627. A.ExtensionStore__extendPseudo_closure0.prototype = {
  42628. call$1(complex) {
  42629. return complex.components.length === 1;
  42630. },
  42631. $signature: 16
  42632. };
  42633. A.ExtensionStore__extendPseudo_closure1.prototype = {
  42634. call$1(complex) {
  42635. return complex.components.length <= 1;
  42636. },
  42637. $signature: 16
  42638. };
  42639. A.ExtensionStore__extendPseudo_closure2.prototype = {
  42640. call$1(complex) {
  42641. var innerPseudo, innerSelector,
  42642. t1 = complex.get$singleCompound();
  42643. if (t1 == null)
  42644. innerPseudo = null;
  42645. else {
  42646. t1 = t1.components;
  42647. innerPseudo = t1.length === 1 ? B.JSArray_methods.get$first(t1) : null;
  42648. }
  42649. if (!(innerPseudo instanceof A.PseudoSelector))
  42650. return A._setArrayType([complex], type$.JSArray_ComplexSelector);
  42651. innerSelector = innerPseudo.selector;
  42652. if (innerSelector == null)
  42653. return A._setArrayType([complex], type$.JSArray_ComplexSelector);
  42654. t1 = this.pseudo;
  42655. switch (t1.normalizedName) {
  42656. case "not":
  42657. if (!B.Set_YEQji._map.containsKey$1(innerPseudo.normalizedName))
  42658. return A._setArrayType([], type$.JSArray_ComplexSelector);
  42659. return innerSelector.components;
  42660. case "is":
  42661. case "matches":
  42662. case "where":
  42663. case "any":
  42664. case "current":
  42665. case "nth-child":
  42666. case "nth-last-child":
  42667. if (innerPseudo.name !== t1.name)
  42668. return A._setArrayType([], type$.JSArray_ComplexSelector);
  42669. if (innerPseudo.argument != t1.argument)
  42670. return A._setArrayType([], type$.JSArray_ComplexSelector);
  42671. return innerSelector.components;
  42672. case "has":
  42673. case "host":
  42674. case "host-context":
  42675. case "slotted":
  42676. return A._setArrayType([complex], type$.JSArray_ComplexSelector);
  42677. default:
  42678. return A._setArrayType([], type$.JSArray_ComplexSelector);
  42679. }
  42680. },
  42681. $signature: 429
  42682. };
  42683. A.ExtensionStore__extendPseudo_closure3.prototype = {
  42684. call$1(complex) {
  42685. var t1 = this.pseudo;
  42686. return A.PseudoSelector$(t1.name, t1.argument, !t1.isClass, A.SelectorList$(A._setArrayType([complex], type$.JSArray_ComplexSelector)));
  42687. },
  42688. $signature: 417
  42689. };
  42690. A.ExtensionStore__trim_closure.prototype = {
  42691. call$1(complex2) {
  42692. return complex2.get$specificity() >= this._box_0.maxSpecificity && complex2.isSuperselector$1(this.complex1);
  42693. },
  42694. $signature: 16
  42695. };
  42696. A.ExtensionStore__trim_closure0.prototype = {
  42697. call$1(complex2) {
  42698. return complex2.get$specificity() >= this._box_0.maxSpecificity && complex2.isSuperselector$1(this.complex1);
  42699. },
  42700. $signature: 16
  42701. };
  42702. A.ExtensionStore_clone_closure.prototype = {
  42703. call$2(simple, selectors) {
  42704. var t2, t3, t4, t5, t6, newSelector, mediaContext, _this = this,
  42705. t1 = type$.ModifiableCssValue_SelectorList,
  42706. newSelectorSet = A.LinkedHashSet_LinkedHashSet$_empty(t1);
  42707. _this.newSelectors.$indexSet(0, simple, newSelectorSet);
  42708. for (t2 = selectors.get$iterator(selectors), t3 = _this.oldToNewSelectors, t4 = _this.$this._mediaContexts, t5 = _this.newMediaContexts; t2.moveNext$0();) {
  42709. t6 = t2.get$current(t2);
  42710. newSelector = new A.ModifiableCssValue(t6.value, t6.span, t1);
  42711. newSelectorSet.add$1(0, newSelector);
  42712. t3.$indexSet(0, t6, newSelector);
  42713. mediaContext = t4.$index(0, t6);
  42714. if (mediaContext != null)
  42715. t5.$indexSet(0, newSelector, mediaContext);
  42716. }
  42717. },
  42718. $signature: 410
  42719. };
  42720. A.unifyComplex_closure.prototype = {
  42721. call$1(complex) {
  42722. return complex.lineBreak;
  42723. },
  42724. $signature: 16
  42725. };
  42726. A._weaveParents_closure.prototype = {
  42727. call$2(group1, group2) {
  42728. var unified, t1;
  42729. if (B.C_ListEquality.equals$2(0, group1, group2))
  42730. return group1;
  42731. if (A._complexIsParentSuperselector(group1, group2))
  42732. return group2;
  42733. if (A._complexIsParentSuperselector(group2, group1))
  42734. return group1;
  42735. if (!A._mustUnify(group1, group2))
  42736. return null;
  42737. unified = A.unifyComplex(A._setArrayType([A.ComplexSelector$(B.List_empty0, group1, false), A.ComplexSelector$(B.List_empty0, group2, false)], type$.JSArray_ComplexSelector));
  42738. if (unified == null)
  42739. return null;
  42740. t1 = J.getInterceptor$asx(unified);
  42741. if (t1.get$length(unified) > 1)
  42742. return null;
  42743. return t1.get$first(unified).components;
  42744. },
  42745. $signature: 409
  42746. };
  42747. A._weaveParents_closure0.prototype = {
  42748. call$1(sequence) {
  42749. return A._complexIsParentSuperselector(sequence.get$first(sequence), this.group);
  42750. },
  42751. $signature: 405
  42752. };
  42753. A._weaveParents_closure1.prototype = {
  42754. call$1(sequence) {
  42755. return sequence.get$length(sequence) === 0;
  42756. },
  42757. $signature: 180
  42758. };
  42759. A._weaveParents_closure2.prototype = {
  42760. call$1(choice) {
  42761. return J.get$isNotEmpty$asx(choice);
  42762. },
  42763. $signature: 402
  42764. };
  42765. A._mustUnify_closure.prototype = {
  42766. call$1(component) {
  42767. return B.JSArray_methods.any$1(component.selector.components, new A._mustUnify__closure(this.uniqueSelectors));
  42768. },
  42769. $signature: 48
  42770. };
  42771. A._mustUnify__closure.prototype = {
  42772. call$1(simple) {
  42773. var t1;
  42774. if (!(simple instanceof A.IDSelector))
  42775. t1 = simple instanceof A.PseudoSelector && !simple.isClass;
  42776. else
  42777. t1 = true;
  42778. return t1 && this.uniqueSelectors.contains$1(0, simple);
  42779. },
  42780. $signature: 14
  42781. };
  42782. A.paths_closure.prototype = {
  42783. call$2(paths, choice) {
  42784. var t1 = this.T;
  42785. t1 = J.expand$1$1$ax(choice, new A.paths__closure(paths, t1), t1._eval$1("List<0>"));
  42786. return A.List_List$of(t1, true, t1.$ti._eval$1("Iterable.E"));
  42787. },
  42788. $signature() {
  42789. return this.T._eval$1("List<List<0>>(List<List<0>>,List<0>)");
  42790. }
  42791. };
  42792. A.paths__closure.prototype = {
  42793. call$1(option) {
  42794. var t1 = this.T;
  42795. return J.map$1$1$ax(this.paths, new A.paths___closure(option, t1), t1._eval$1("List<0>"));
  42796. },
  42797. $signature() {
  42798. return this.T._eval$1("Iterable<List<0>>(0)");
  42799. }
  42800. };
  42801. A.paths___closure.prototype = {
  42802. call$1(path) {
  42803. var t1 = A.List_List$of(path, true, this.T);
  42804. t1.push(this.option);
  42805. return t1;
  42806. },
  42807. $signature() {
  42808. return this.T._eval$1("List<0>(List<0>)");
  42809. }
  42810. };
  42811. A.listIsSuperselector_closure.prototype = {
  42812. call$1(complex1) {
  42813. return B.JSArray_methods.any$1(this.list1, new A.listIsSuperselector__closure(complex1));
  42814. },
  42815. $signature: 16
  42816. };
  42817. A.listIsSuperselector__closure.prototype = {
  42818. call$1(complex2) {
  42819. return complex2.isSuperselector$1(this.complex1);
  42820. },
  42821. $signature: 16
  42822. };
  42823. A.complexIsSuperselector_closure.prototype = {
  42824. call$1($parent) {
  42825. return $parent.combinators.length > 1;
  42826. },
  42827. $signature: 48
  42828. };
  42829. A.complexIsSuperselector_closure0.prototype = {
  42830. call$1(component) {
  42831. return A._isSupercombinator(this.combinator1, A.IterableExtension_get_firstOrNull(component.combinators));
  42832. },
  42833. $signature: 48
  42834. };
  42835. A._selectorPseudoIsSuperselector_closure.prototype = {
  42836. call$1(selector2) {
  42837. return A.listIsSuperselector(this.selector1.components, selector2.components);
  42838. },
  42839. $signature: 62
  42840. };
  42841. A._selectorPseudoIsSuperselector_closure0.prototype = {
  42842. call$1(complex1) {
  42843. var t1, t2, t3;
  42844. if (complex1.leadingCombinators.length === 0) {
  42845. t1 = complex1.components;
  42846. t2 = A._setArrayType([], type$.JSArray_ComplexSelectorComponent);
  42847. t3 = this.parents;
  42848. if (t3 != null)
  42849. B.JSArray_methods.addAll$1(t2, t3);
  42850. t2.push(new A.ComplexSelectorComponent(this.compound2, A.List_List$unmodifiable(B.List_empty0, type$.Combinator)));
  42851. t1 = A.complexIsSuperselector(t1, t2);
  42852. } else
  42853. t1 = false;
  42854. return t1;
  42855. },
  42856. $signature: 16
  42857. };
  42858. A._selectorPseudoIsSuperselector_closure1.prototype = {
  42859. call$1(selector2) {
  42860. return A.listIsSuperselector(this.selector1.components, selector2.components);
  42861. },
  42862. $signature: 62
  42863. };
  42864. A._selectorPseudoIsSuperselector_closure2.prototype = {
  42865. call$1(selector2) {
  42866. return A.listIsSuperselector(this.selector1.components, selector2.components);
  42867. },
  42868. $signature: 62
  42869. };
  42870. A._selectorPseudoIsSuperselector_closure3.prototype = {
  42871. call$1(complex) {
  42872. if (complex.accept$1(B._IsBogusVisitor_true))
  42873. return false;
  42874. return B.JSArray_methods.any$1(this.compound2.components, new A._selectorPseudoIsSuperselector__closure(complex, this.pseudo1));
  42875. },
  42876. $signature: 16
  42877. };
  42878. A._selectorPseudoIsSuperselector__closure.prototype = {
  42879. call$1(simple2) {
  42880. var selector2, _this = this;
  42881. if (simple2 instanceof A.TypeSelector)
  42882. return B.JSArray_methods.any$1(B.JSArray_methods.get$last(_this.complex.components).selector.components, new A._selectorPseudoIsSuperselector___closure(simple2));
  42883. else if (simple2 instanceof A.IDSelector)
  42884. return B.JSArray_methods.any$1(B.JSArray_methods.get$last(_this.complex.components).selector.components, new A._selectorPseudoIsSuperselector___closure0(simple2));
  42885. else if (simple2 instanceof A.PseudoSelector && simple2.name === _this.pseudo1.name) {
  42886. selector2 = simple2.selector;
  42887. if (selector2 == null)
  42888. return false;
  42889. return A.listIsSuperselector(selector2.components, A._setArrayType([_this.complex], type$.JSArray_ComplexSelector));
  42890. } else
  42891. return false;
  42892. },
  42893. $signature: 14
  42894. };
  42895. A._selectorPseudoIsSuperselector___closure.prototype = {
  42896. call$1(simple1) {
  42897. var t1;
  42898. if (simple1 instanceof A.TypeSelector) {
  42899. t1 = this.simple2.name.$eq(0, simple1.name);
  42900. t1 = !t1;
  42901. } else
  42902. t1 = false;
  42903. return t1;
  42904. },
  42905. $signature: 14
  42906. };
  42907. A._selectorPseudoIsSuperselector___closure0.prototype = {
  42908. call$1(simple1) {
  42909. var t1;
  42910. if (simple1 instanceof A.IDSelector) {
  42911. t1 = simple1.name;
  42912. t1 = this.simple2.name !== t1;
  42913. } else
  42914. t1 = false;
  42915. return t1;
  42916. },
  42917. $signature: 14
  42918. };
  42919. A._selectorPseudoIsSuperselector_closure4.prototype = {
  42920. call$1(selector2) {
  42921. var t1 = B.C_ListEquality.equals$2(0, this.selector1.components, selector2.components);
  42922. return t1;
  42923. },
  42924. $signature: 62
  42925. };
  42926. A._selectorPseudoIsSuperselector_closure5.prototype = {
  42927. call$1(pseudo2) {
  42928. var t1, selector2;
  42929. if (!(pseudo2 instanceof A.PseudoSelector))
  42930. return false;
  42931. t1 = this.pseudo1;
  42932. if (pseudo2.name !== t1.name)
  42933. return false;
  42934. if (pseudo2.argument != t1.argument)
  42935. return false;
  42936. selector2 = pseudo2.selector;
  42937. if (selector2 == null)
  42938. return false;
  42939. return A.listIsSuperselector(this.selector1.components, selector2.components);
  42940. },
  42941. $signature: 14
  42942. };
  42943. A._selectorPseudoArgs_closure.prototype = {
  42944. call$1(pseudo) {
  42945. return pseudo.isClass === this.isClass && pseudo.name === this.name;
  42946. },
  42947. $signature: 400
  42948. };
  42949. A._selectorPseudoArgs_closure0.prototype = {
  42950. call$1(pseudo) {
  42951. return pseudo.selector;
  42952. },
  42953. $signature: 399
  42954. };
  42955. A.MergedExtension.prototype = {
  42956. unmerge$0() {
  42957. var $async$self = this;
  42958. return A._makeSyncStarIterable(function() {
  42959. var $async$goto = 0, $async$handler = 1, $async$currentError, right, left;
  42960. return function $async$unmerge$0($async$errorCode, $async$result) {
  42961. if ($async$errorCode === 1) {
  42962. $async$currentError = $async$result;
  42963. $async$goto = $async$handler;
  42964. }
  42965. while (true)
  42966. switch ($async$goto) {
  42967. case 0:
  42968. // Function start
  42969. left = $async$self.left;
  42970. $async$goto = left instanceof A.MergedExtension ? 2 : 4;
  42971. break;
  42972. case 2:
  42973. // then
  42974. $async$goto = 5;
  42975. return A._IterationMarker_yieldStar(left.unmerge$0());
  42976. case 5:
  42977. // after yield
  42978. // goto join
  42979. $async$goto = 3;
  42980. break;
  42981. case 4:
  42982. // else
  42983. $async$goto = 6;
  42984. return left;
  42985. case 6:
  42986. // after yield
  42987. case 3:
  42988. // join
  42989. right = $async$self.right;
  42990. $async$goto = right instanceof A.MergedExtension ? 7 : 9;
  42991. break;
  42992. case 7:
  42993. // then
  42994. $async$goto = 10;
  42995. return A._IterationMarker_yieldStar(right.unmerge$0());
  42996. case 10:
  42997. // after yield
  42998. // goto join
  42999. $async$goto = 8;
  43000. break;
  43001. case 9:
  43002. // else
  43003. $async$goto = 11;
  43004. return right;
  43005. case 11:
  43006. // after yield
  43007. case 8:
  43008. // join
  43009. // implicit return
  43010. return A._IterationMarker_endOfIteration();
  43011. case 1:
  43012. // rethrow
  43013. return A._IterationMarker_uncaughtError($async$currentError);
  43014. }
  43015. };
  43016. }, type$.Extension);
  43017. }
  43018. };
  43019. A.ExtendMode.prototype = {
  43020. toString$0(_) {
  43021. return this.name;
  43022. }
  43023. };
  43024. A.globalFunctions_closure.prototype = {
  43025. call$1($arguments) {
  43026. var t1 = J.getInterceptor$asx($arguments);
  43027. return t1.$index($arguments, 0).get$isTruthy() ? t1.$index($arguments, 1) : t1.$index($arguments, 2);
  43028. },
  43029. $signature: 4
  43030. };
  43031. A.global_closure.prototype = {
  43032. call$1($arguments) {
  43033. return A._rgb("rgb", $arguments);
  43034. },
  43035. $signature: 4
  43036. };
  43037. A.global_closure0.prototype = {
  43038. call$1($arguments) {
  43039. return A._rgb("rgb", $arguments);
  43040. },
  43041. $signature: 4
  43042. };
  43043. A.global_closure1.prototype = {
  43044. call$1($arguments) {
  43045. return A._rgbTwoArg("rgb", $arguments);
  43046. },
  43047. $signature: 4
  43048. };
  43049. A.global_closure2.prototype = {
  43050. call$1($arguments) {
  43051. var parsed = A._parseChannels("rgb", A._setArrayType(["$red", "$green", "$blue"], type$.JSArray_String), J.get$first$ax($arguments));
  43052. return parsed instanceof A.SassString ? parsed : A._rgb("rgb", type$.List_Value._as(parsed));
  43053. },
  43054. $signature: 4
  43055. };
  43056. A.global_closure3.prototype = {
  43057. call$1($arguments) {
  43058. return A._rgb("rgba", $arguments);
  43059. },
  43060. $signature: 4
  43061. };
  43062. A.global_closure4.prototype = {
  43063. call$1($arguments) {
  43064. return A._rgb("rgba", $arguments);
  43065. },
  43066. $signature: 4
  43067. };
  43068. A.global_closure5.prototype = {
  43069. call$1($arguments) {
  43070. return A._rgbTwoArg("rgba", $arguments);
  43071. },
  43072. $signature: 4
  43073. };
  43074. A.global_closure6.prototype = {
  43075. call$1($arguments) {
  43076. var parsed = A._parseChannels("rgba", A._setArrayType(["$red", "$green", "$blue"], type$.JSArray_String), J.get$first$ax($arguments));
  43077. return parsed instanceof A.SassString ? parsed : A._rgb("rgba", type$.List_Value._as(parsed));
  43078. },
  43079. $signature: 4
  43080. };
  43081. A.global_closure7.prototype = {
  43082. call$1($arguments) {
  43083. var color, t2,
  43084. t1 = J.getInterceptor$asx($arguments),
  43085. weight = t1.$index($arguments, 1).assertNumber$1("weight");
  43086. if (t1.$index($arguments, 0) instanceof A.SassNumber) {
  43087. if (weight._number$_value !== 100 || !weight.hasUnit$1("%"))
  43088. throw A.wrapException(string$.Only_oa);
  43089. return A._functionString("invert", t1.take$1($arguments, 1));
  43090. }
  43091. color = t1.$index($arguments, 0).assertColor$1("color");
  43092. t1 = color.get$red(color);
  43093. t2 = color.get$green(color);
  43094. return A._mixColors(color.changeRgb$3$blue$green$red(255 - color.get$blue(color), 255 - t2, 255 - t1), color, weight);
  43095. },
  43096. $signature: 4
  43097. };
  43098. A.global_closure8.prototype = {
  43099. call$1($arguments) {
  43100. return A._hsl("hsl", $arguments);
  43101. },
  43102. $signature: 4
  43103. };
  43104. A.global_closure9.prototype = {
  43105. call$1($arguments) {
  43106. return A._hsl("hsl", $arguments);
  43107. },
  43108. $signature: 4
  43109. };
  43110. A.global_closure10.prototype = {
  43111. call$1($arguments) {
  43112. var t1 = J.getInterceptor$asx($arguments);
  43113. if (t1.$index($arguments, 0).get$isVar() || t1.$index($arguments, 1).get$isVar())
  43114. return A._functionString("hsl", $arguments);
  43115. else
  43116. throw A.wrapException(A.SassScriptException$("Missing argument $lightness.", null));
  43117. },
  43118. $signature: 17
  43119. };
  43120. A.global_closure11.prototype = {
  43121. call$1($arguments) {
  43122. var parsed = A._parseChannels("hsl", A._setArrayType(["$hue", "$saturation", "$lightness"], type$.JSArray_String), J.get$first$ax($arguments));
  43123. return parsed instanceof A.SassString ? parsed : A._hsl("hsl", type$.List_Value._as(parsed));
  43124. },
  43125. $signature: 4
  43126. };
  43127. A.global_closure12.prototype = {
  43128. call$1($arguments) {
  43129. return A._hsl("hsla", $arguments);
  43130. },
  43131. $signature: 4
  43132. };
  43133. A.global_closure13.prototype = {
  43134. call$1($arguments) {
  43135. return A._hsl("hsla", $arguments);
  43136. },
  43137. $signature: 4
  43138. };
  43139. A.global_closure14.prototype = {
  43140. call$1($arguments) {
  43141. var t1 = J.getInterceptor$asx($arguments);
  43142. if (t1.$index($arguments, 0).get$isVar() || t1.$index($arguments, 1).get$isVar())
  43143. return A._functionString("hsla", $arguments);
  43144. else
  43145. throw A.wrapException(A.SassScriptException$("Missing argument $lightness.", null));
  43146. },
  43147. $signature: 17
  43148. };
  43149. A.global_closure15.prototype = {
  43150. call$1($arguments) {
  43151. var parsed = A._parseChannels("hsla", A._setArrayType(["$hue", "$saturation", "$lightness"], type$.JSArray_String), J.get$first$ax($arguments));
  43152. return parsed instanceof A.SassString ? parsed : A._hsl("hsla", type$.List_Value._as(parsed));
  43153. },
  43154. $signature: 4
  43155. };
  43156. A.global_closure16.prototype = {
  43157. call$1($arguments) {
  43158. var t1 = J.getInterceptor$asx($arguments);
  43159. if (t1.$index($arguments, 0) instanceof A.SassNumber)
  43160. return A._functionString("grayscale", $arguments);
  43161. return t1.$index($arguments, 0).assertColor$1("color").changeHsl$1$saturation(0);
  43162. },
  43163. $signature: 4
  43164. };
  43165. A.global_closure17.prototype = {
  43166. call$1($arguments) {
  43167. var t1 = J.getInterceptor$asx($arguments),
  43168. color = t1.$index($arguments, 0).assertColor$1("color"),
  43169. degrees = A._angleValue(t1.$index($arguments, 1), "degrees");
  43170. return color.changeHsl$1$hue(color.get$hue(color) + degrees);
  43171. },
  43172. $signature: 24
  43173. };
  43174. A.global_closure18.prototype = {
  43175. call$1($arguments) {
  43176. var t1 = J.getInterceptor$asx($arguments),
  43177. color = t1.$index($arguments, 0).assertColor$1("color"),
  43178. amount = t1.$index($arguments, 1).assertNumber$1("amount");
  43179. return color.changeHsl$1$lightness(B.JSNumber_methods.clamp$2(color.get$lightness(color) + amount.valueInRange$3(0, 100, "amount"), 0, 100));
  43180. },
  43181. $signature: 24
  43182. };
  43183. A.global_closure19.prototype = {
  43184. call$1($arguments) {
  43185. var t1 = J.getInterceptor$asx($arguments),
  43186. color = t1.$index($arguments, 0).assertColor$1("color"),
  43187. amount = t1.$index($arguments, 1).assertNumber$1("amount");
  43188. return color.changeHsl$1$lightness(B.JSNumber_methods.clamp$2(color.get$lightness(color) - amount.valueInRange$3(0, 100, "amount"), 0, 100));
  43189. },
  43190. $signature: 24
  43191. };
  43192. A.global_closure20.prototype = {
  43193. call$1($arguments) {
  43194. return new A.SassString("saturate(" + A.serializeValue(J.$index$asx($arguments, 0).assertNumber$1("amount"), false, true) + ")", false);
  43195. },
  43196. $signature: 17
  43197. };
  43198. A.global_closure21.prototype = {
  43199. call$1($arguments) {
  43200. var t1 = J.getInterceptor$asx($arguments),
  43201. color = t1.$index($arguments, 0).assertColor$1("color"),
  43202. amount = t1.$index($arguments, 1).assertNumber$1("amount");
  43203. return color.changeHsl$1$saturation(B.JSNumber_methods.clamp$2(color.get$saturation(color) + amount.valueInRange$3(0, 100, "amount"), 0, 100));
  43204. },
  43205. $signature: 24
  43206. };
  43207. A.global_closure22.prototype = {
  43208. call$1($arguments) {
  43209. var t1 = J.getInterceptor$asx($arguments),
  43210. color = t1.$index($arguments, 0).assertColor$1("color"),
  43211. amount = t1.$index($arguments, 1).assertNumber$1("amount");
  43212. return color.changeHsl$1$saturation(B.JSNumber_methods.clamp$2(color.get$saturation(color) - amount.valueInRange$3(0, 100, "amount"), 0, 100));
  43213. },
  43214. $signature: 24
  43215. };
  43216. A.global_closure23.prototype = {
  43217. call$1($arguments) {
  43218. var argument = J.$index$asx($arguments, 0);
  43219. if (argument instanceof A.SassString && !argument._hasQuotes && B.JSString_methods.contains$1(argument._string$_text, $.$get$_microsoftFilterStart()))
  43220. return A._functionString("alpha", $arguments);
  43221. return A.SassNumber_SassNumber(argument.assertColor$1("color")._alpha, null);
  43222. },
  43223. $signature: 4
  43224. };
  43225. A.global_closure24.prototype = {
  43226. call$1($arguments) {
  43227. var t1,
  43228. argList = J.$index$asx($arguments, 0).get$asList();
  43229. if (argList.length !== 0 && B.JSArray_methods.every$1(argList, new A.global__closure()))
  43230. return A._functionString("alpha", $arguments);
  43231. t1 = argList.length;
  43232. if (t1 === 0)
  43233. throw A.wrapException(A.SassScriptException$("Missing argument $color.", null));
  43234. else
  43235. throw A.wrapException(A.SassScriptException$("Only 1 argument allowed, but " + t1 + " were passed.", null));
  43236. },
  43237. $signature: 17
  43238. };
  43239. A.global__closure.prototype = {
  43240. call$1(argument) {
  43241. return argument instanceof A.SassString && !argument._hasQuotes && B.JSString_methods.contains$1(argument._string$_text, $.$get$_microsoftFilterStart());
  43242. },
  43243. $signature: 65
  43244. };
  43245. A.global_closure25.prototype = {
  43246. call$1($arguments) {
  43247. var t1 = J.getInterceptor$asx($arguments);
  43248. if (t1.$index($arguments, 0) instanceof A.SassNumber)
  43249. return A._functionString("opacity", $arguments);
  43250. return A.SassNumber_SassNumber(t1.$index($arguments, 0).assertColor$1("color")._alpha, null);
  43251. },
  43252. $signature: 4
  43253. };
  43254. A.module_closure0.prototype = {
  43255. call$1($arguments) {
  43256. var result, t2, color,
  43257. t1 = J.getInterceptor$asx($arguments),
  43258. weight = t1.$index($arguments, 1).assertNumber$1("weight");
  43259. if (t1.$index($arguments, 0) instanceof A.SassNumber) {
  43260. if (weight._number$_value !== 100 || !weight.hasUnit$1("%"))
  43261. throw A.wrapException(string$.Only_oa);
  43262. result = A._functionString("invert", t1.take$1($arguments, 1));
  43263. t1 = A.S(t1.$index($arguments, 0));
  43264. t2 = result.toString$0(0);
  43265. A.EvaluationContext_current().warn$2$deprecation(0, "Passing a number (" + t1 + string$.x29x20to_ci + t2, true);
  43266. return result;
  43267. }
  43268. color = t1.$index($arguments, 0).assertColor$1("color");
  43269. t1 = color.get$red(color);
  43270. t2 = color.get$green(color);
  43271. return A._mixColors(color.changeRgb$3$blue$green$red(255 - color.get$blue(color), 255 - t2, 255 - t1), color, weight);
  43272. },
  43273. $signature: 4
  43274. };
  43275. A.module_closure1.prototype = {
  43276. call$1($arguments) {
  43277. var result, t2,
  43278. t1 = J.getInterceptor$asx($arguments);
  43279. if (t1.$index($arguments, 0) instanceof A.SassNumber) {
  43280. result = A._functionString("grayscale", t1.take$1($arguments, 1));
  43281. t1 = A.S(t1.$index($arguments, 0));
  43282. t2 = result.toString$0(0);
  43283. A.EvaluationContext_current().warn$2$deprecation(0, "Passing a number (" + t1 + string$.x29x20to_cg + t2, true);
  43284. return result;
  43285. }
  43286. return t1.$index($arguments, 0).assertColor$1("color").changeHsl$1$saturation(0);
  43287. },
  43288. $signature: 4
  43289. };
  43290. A.module_closure2.prototype = {
  43291. call$1($arguments) {
  43292. return A._hwb($arguments);
  43293. },
  43294. $signature: 4
  43295. };
  43296. A.module_closure3.prototype = {
  43297. call$1($arguments) {
  43298. var parsed = A._parseChannels("hwb", A._setArrayType(["$hue", "$whiteness", "$blackness"], type$.JSArray_String), J.get$first$ax($arguments));
  43299. if (parsed instanceof A.SassString)
  43300. throw A.wrapException(A.SassScriptException$('Expected numeric channels, got "' + parsed.toString$0(0) + '".', null));
  43301. else
  43302. return A._hwb(type$.List_Value._as(parsed));
  43303. },
  43304. $signature: 4
  43305. };
  43306. A.module_closure4.prototype = {
  43307. call$1($arguments) {
  43308. var t1 = J.get$first$ax($arguments).assertColor$1("color");
  43309. return A.SassNumber_SassNumber(t1.get$whiteness(t1), "%");
  43310. },
  43311. $signature: 11
  43312. };
  43313. A.module_closure5.prototype = {
  43314. call$1($arguments) {
  43315. var t1 = J.get$first$ax($arguments).assertColor$1("color");
  43316. return A.SassNumber_SassNumber(t1.get$blackness(t1), "%");
  43317. },
  43318. $signature: 11
  43319. };
  43320. A.module_closure6.prototype = {
  43321. call$1($arguments) {
  43322. var result, t1,
  43323. argument = J.$index$asx($arguments, 0);
  43324. if (argument instanceof A.SassString && !argument._hasQuotes && B.JSString_methods.contains$1(argument._string$_text, $.$get$_microsoftFilterStart())) {
  43325. result = A._functionString("alpha", $arguments);
  43326. t1 = result.toString$0(0);
  43327. A.EvaluationContext_current().warn$2$deprecation(0, string$.Using_c + t1, true);
  43328. return result;
  43329. }
  43330. return A.SassNumber_SassNumber(argument.assertColor$1("color")._alpha, null);
  43331. },
  43332. $signature: 4
  43333. };
  43334. A.module_closure7.prototype = {
  43335. call$1($arguments) {
  43336. var result,
  43337. t1 = J.getInterceptor$asx($arguments);
  43338. if (B.JSArray_methods.every$1(t1.$index($arguments, 0).get$asList(), new A.module__closure1())) {
  43339. result = A._functionString("alpha", $arguments);
  43340. t1 = result.toString$0(0);
  43341. A.EvaluationContext_current().warn$2$deprecation(0, string$.Using_c + t1, true);
  43342. return result;
  43343. }
  43344. throw A.wrapException(A.SassScriptException$("Only 1 argument allowed, but " + t1.get$length($arguments) + " were passed.", null));
  43345. },
  43346. $signature: 17
  43347. };
  43348. A.module__closure1.prototype = {
  43349. call$1(argument) {
  43350. return argument instanceof A.SassString && !argument._hasQuotes && B.JSString_methods.contains$1(argument._string$_text, $.$get$_microsoftFilterStart());
  43351. },
  43352. $signature: 65
  43353. };
  43354. A.module_closure8.prototype = {
  43355. call$1($arguments) {
  43356. var result, t2,
  43357. t1 = J.getInterceptor$asx($arguments);
  43358. if (t1.$index($arguments, 0) instanceof A.SassNumber) {
  43359. result = A._functionString("opacity", $arguments);
  43360. t1 = A.S(t1.$index($arguments, 0));
  43361. t2 = result.toString$0(0);
  43362. A.EvaluationContext_current().warn$2$deprecation(0, "Passing a number (" + t1 + string$.x20to_co + t2, true);
  43363. return result;
  43364. }
  43365. return A.SassNumber_SassNumber(t1.$index($arguments, 0).assertColor$1("color")._alpha, null);
  43366. },
  43367. $signature: 4
  43368. };
  43369. A._red_closure.prototype = {
  43370. call$1($arguments) {
  43371. var t1 = J.get$first$ax($arguments).assertColor$1("color");
  43372. return A.SassNumber_SassNumber(t1.get$red(t1), null);
  43373. },
  43374. $signature: 11
  43375. };
  43376. A._green_closure.prototype = {
  43377. call$1($arguments) {
  43378. var t1 = J.get$first$ax($arguments).assertColor$1("color");
  43379. return A.SassNumber_SassNumber(t1.get$green(t1), null);
  43380. },
  43381. $signature: 11
  43382. };
  43383. A._blue_closure.prototype = {
  43384. call$1($arguments) {
  43385. var t1 = J.get$first$ax($arguments).assertColor$1("color");
  43386. return A.SassNumber_SassNumber(t1.get$blue(t1), null);
  43387. },
  43388. $signature: 11
  43389. };
  43390. A._mix_closure.prototype = {
  43391. call$1($arguments) {
  43392. var t1 = J.getInterceptor$asx($arguments);
  43393. return A._mixColors(t1.$index($arguments, 0).assertColor$1("color1"), t1.$index($arguments, 1).assertColor$1("color2"), t1.$index($arguments, 2).assertNumber$1("weight"));
  43394. },
  43395. $signature: 24
  43396. };
  43397. A._hue_closure.prototype = {
  43398. call$1($arguments) {
  43399. var t1 = J.get$first$ax($arguments).assertColor$1("color");
  43400. return A.SassNumber_SassNumber(t1.get$hue(t1), "deg");
  43401. },
  43402. $signature: 11
  43403. };
  43404. A._saturation_closure.prototype = {
  43405. call$1($arguments) {
  43406. var t1 = J.get$first$ax($arguments).assertColor$1("color");
  43407. return A.SassNumber_SassNumber(t1.get$saturation(t1), "%");
  43408. },
  43409. $signature: 11
  43410. };
  43411. A._lightness_closure.prototype = {
  43412. call$1($arguments) {
  43413. var t1 = J.get$first$ax($arguments).assertColor$1("color");
  43414. return A.SassNumber_SassNumber(t1.get$lightness(t1), "%");
  43415. },
  43416. $signature: 11
  43417. };
  43418. A._complement_closure.prototype = {
  43419. call$1($arguments) {
  43420. var color = J.$index$asx($arguments, 0).assertColor$1("color");
  43421. return color.changeHsl$1$hue(color.get$hue(color) + 180);
  43422. },
  43423. $signature: 24
  43424. };
  43425. A._adjust_closure.prototype = {
  43426. call$1($arguments) {
  43427. return A._updateComponents($arguments, true, false, false);
  43428. },
  43429. $signature: 24
  43430. };
  43431. A._scale_closure.prototype = {
  43432. call$1($arguments) {
  43433. return A._updateComponents($arguments, false, false, true);
  43434. },
  43435. $signature: 24
  43436. };
  43437. A._change_closure.prototype = {
  43438. call$1($arguments) {
  43439. return A._updateComponents($arguments, false, true, false);
  43440. },
  43441. $signature: 24
  43442. };
  43443. A._ieHexStr_closure.prototype = {
  43444. call$1($arguments) {
  43445. var color = J.$index$asx($arguments, 0).assertColor$1("color"),
  43446. t1 = new A._ieHexStr_closure_hexString();
  43447. return new A.SassString("#" + A.S(t1.call$1(A.fuzzyRound(color._alpha * 255))) + A.S(t1.call$1(color.get$red(color))) + A.S(t1.call$1(color.get$green(color))) + A.S(t1.call$1(color.get$blue(color))), false);
  43448. },
  43449. $signature: 17
  43450. };
  43451. A._ieHexStr_closure_hexString.prototype = {
  43452. call$1(component) {
  43453. return B.JSString_methods.padLeft$2(B.JSInt_methods.toRadixString$1(component, 16), 2, "0").toUpperCase();
  43454. },
  43455. $signature: 198
  43456. };
  43457. A._updateComponents_getParam.prototype = {
  43458. call$5$assertPercent$checkPercent$checkUnitless($name, max, assertPercent, checkPercent, checkUnitless) {
  43459. var t2, t3, t4, _this = this,
  43460. t1 = _this.keywords.remove$1(0, $name),
  43461. number = t1 == null ? null : t1.assertNumber$1($name);
  43462. if (number == null)
  43463. return null;
  43464. t1 = _this.scale;
  43465. t2 = !t1;
  43466. if (t2 && checkUnitless)
  43467. if (number.get$hasUnits()) {
  43468. t3 = number.get$unitString();
  43469. t4 = number.unitSuggestion$1($name);
  43470. A.EvaluationContext_current().warn$2$deprecation(0, "$" + $name + ": Passing a number with unit " + t3 + string$.x20is_de + t4 + string$.x0a_Morex3a, true);
  43471. }
  43472. if (t2 && checkPercent)
  43473. A._checkPercent(number, $name);
  43474. if (!t2 || assertPercent)
  43475. number.assertUnit$2("%", $name);
  43476. if (t1)
  43477. max = 100;
  43478. if (!t2 || assertPercent)
  43479. t1 = number.valueInRange$3(_this.change ? 0 : -max, max, $name);
  43480. else {
  43481. t1 = _this.change ? 0 : -max;
  43482. t1 = number.valueInRangeWithUnit$4(t1, max, $name, checkPercent ? "%" : "");
  43483. }
  43484. return t1;
  43485. },
  43486. call$2($name, max) {
  43487. return this.call$5$assertPercent$checkPercent$checkUnitless($name, max, false, false, false);
  43488. },
  43489. call$3$checkUnitless($name, max, checkUnitless) {
  43490. return this.call$5$assertPercent$checkPercent$checkUnitless($name, max, false, false, checkUnitless);
  43491. },
  43492. call$3$checkPercent($name, max, checkPercent) {
  43493. return this.call$5$assertPercent$checkPercent$checkUnitless($name, max, false, checkPercent, false);
  43494. },
  43495. call$3$assertPercent($name, max, assertPercent) {
  43496. return this.call$5$assertPercent$checkPercent$checkUnitless($name, max, assertPercent, false, false);
  43497. },
  43498. $signature: 162
  43499. };
  43500. A._updateComponents_closure.prototype = {
  43501. call$1(hue) {
  43502. return A._angleValue(hue, "hue");
  43503. },
  43504. $signature: 81
  43505. };
  43506. A._updateComponents_closure0.prototype = {
  43507. call$1($name) {
  43508. return "$" + $name;
  43509. },
  43510. $signature: 5
  43511. };
  43512. A._updateComponents_updateValue.prototype = {
  43513. call$3(current, param, max) {
  43514. var t1;
  43515. if (param == null)
  43516. return current;
  43517. if (this.change)
  43518. return param;
  43519. if (this.adjust)
  43520. return B.JSNumber_methods.clamp$2(current + param, 0, max);
  43521. t1 = param > 0 ? max - current : current;
  43522. return current + t1 * (param / 100);
  43523. },
  43524. $signature: 207
  43525. };
  43526. A._updateComponents_updateRgb.prototype = {
  43527. call$2(current, param) {
  43528. return A.fuzzyRound(this.updateValue.call$3(current, param, 255));
  43529. },
  43530. $signature: 212
  43531. };
  43532. A._functionString_closure.prototype = {
  43533. call$1(argument) {
  43534. return A.serializeValue(argument, false, true);
  43535. },
  43536. $signature: 390
  43537. };
  43538. A._removedColorFunction_closure.prototype = {
  43539. call$1($arguments) {
  43540. var t1 = this.name,
  43541. t2 = J.getInterceptor$asx($arguments),
  43542. t3 = A.S(t2.$index($arguments, 0)),
  43543. t4 = this.negative ? "-" : "";
  43544. throw A.wrapException(A.SassScriptException$("The function " + t1 + string$.x28__isn + t3 + ", $" + this.argument + ": " + t4 + A.S(t2.$index($arguments, 1)) + string$.x29x0a_Morx3a + t1, null));
  43545. },
  43546. $signature: 386
  43547. };
  43548. A._rgb_closure.prototype = {
  43549. call$1(alpha) {
  43550. return A._percentageOrUnitless(alpha.assertNumber$1("alpha"), 1, "alpha");
  43551. },
  43552. $signature: 81
  43553. };
  43554. A._hsl_closure.prototype = {
  43555. call$1(alpha) {
  43556. return A._percentageOrUnitless(alpha.assertNumber$1("alpha"), 1, "alpha");
  43557. },
  43558. $signature: 81
  43559. };
  43560. A._hwb_closure.prototype = {
  43561. call$1(alpha) {
  43562. return A._percentageOrUnitless(alpha.assertNumber$1("alpha"), 1, "alpha");
  43563. },
  43564. $signature: 81
  43565. };
  43566. A._parseChannels_closure.prototype = {
  43567. call$1(value) {
  43568. return value.get$isVar();
  43569. },
  43570. $signature: 65
  43571. };
  43572. A._length_closure0.prototype = {
  43573. call$1($arguments) {
  43574. return A.SassNumber_SassNumber(J.$index$asx($arguments, 0).get$asList().length, null);
  43575. },
  43576. $signature: 11
  43577. };
  43578. A._nth_closure.prototype = {
  43579. call$1($arguments) {
  43580. var t1 = J.getInterceptor$asx($arguments),
  43581. list = t1.$index($arguments, 0),
  43582. index = t1.$index($arguments, 1);
  43583. return list.get$asList()[list.sassIndexToListIndex$2(index, "n")];
  43584. },
  43585. $signature: 4
  43586. };
  43587. A._setNth_closure.prototype = {
  43588. call$1($arguments) {
  43589. var t1 = J.getInterceptor$asx($arguments),
  43590. list = t1.$index($arguments, 0),
  43591. index = t1.$index($arguments, 1),
  43592. value = t1.$index($arguments, 2),
  43593. t2 = list.get$asList(),
  43594. newList = A._setArrayType(t2.slice(0), A._arrayInstanceType(t2));
  43595. newList[list.sassIndexToListIndex$2(index, "n")] = value;
  43596. return t1.$index($arguments, 0).withListContents$1(newList);
  43597. },
  43598. $signature: 21
  43599. };
  43600. A._join_closure.prototype = {
  43601. call$1($arguments) {
  43602. var separator, bracketed,
  43603. t1 = J.getInterceptor$asx($arguments),
  43604. list1 = t1.$index($arguments, 0),
  43605. list2 = t1.$index($arguments, 1),
  43606. separatorParam = t1.$index($arguments, 2).assertString$1("separator"),
  43607. bracketedParam = t1.$index($arguments, 3);
  43608. t1 = separatorParam._string$_text;
  43609. if (t1 === "auto")
  43610. if (list1.get$separator(list1) !== B.ListSeparator_undecided_null_undecided)
  43611. separator = list1.get$separator(list1);
  43612. else
  43613. separator = list2.get$separator(list2) !== B.ListSeparator_undecided_null_undecided ? list2.get$separator(list2) : B.ListSeparator_EVt;
  43614. else if (t1 === "space")
  43615. separator = B.ListSeparator_EVt;
  43616. else if (t1 === "comma")
  43617. separator = B.ListSeparator_rXA;
  43618. else {
  43619. if (t1 !== "slash")
  43620. throw A.wrapException(A.SassScriptException$(string$.x24separ, null));
  43621. separator = B.ListSeparator_zg9;
  43622. }
  43623. bracketed = bracketedParam instanceof A.SassString && bracketedParam._string$_text === "auto" ? list1.get$hasBrackets() : bracketedParam.get$isTruthy();
  43624. t1 = A.List_List$of(list1.get$asList(), true, type$.Value);
  43625. B.JSArray_methods.addAll$1(t1, list2.get$asList());
  43626. return A.SassList$(t1, separator, bracketed);
  43627. },
  43628. $signature: 21
  43629. };
  43630. A._append_closure0.prototype = {
  43631. call$1($arguments) {
  43632. var separator,
  43633. t1 = J.getInterceptor$asx($arguments),
  43634. list = t1.$index($arguments, 0),
  43635. value = t1.$index($arguments, 1);
  43636. t1 = t1.$index($arguments, 2).assertString$1("separator")._string$_text;
  43637. if (t1 === "auto")
  43638. separator = list.get$separator(list) === B.ListSeparator_undecided_null_undecided ? B.ListSeparator_EVt : list.get$separator(list);
  43639. else if (t1 === "space")
  43640. separator = B.ListSeparator_EVt;
  43641. else if (t1 === "comma")
  43642. separator = B.ListSeparator_rXA;
  43643. else {
  43644. if (t1 !== "slash")
  43645. throw A.wrapException(A.SassScriptException$(string$.x24separ, null));
  43646. separator = B.ListSeparator_zg9;
  43647. }
  43648. t1 = A.List_List$of(list.get$asList(), true, type$.Value);
  43649. t1.push(value);
  43650. return list.withListContents$2$separator(t1, separator);
  43651. },
  43652. $signature: 21
  43653. };
  43654. A._zip_closure.prototype = {
  43655. call$1($arguments) {
  43656. var results, result, _box_0 = {},
  43657. t1 = J.$index$asx($arguments, 0).get$asList(),
  43658. t2 = A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,List<Value>>"),
  43659. lists = A.List_List$of(new A.MappedListIterable(t1, new A._zip__closure(), t2), true, t2._eval$1("ListIterable.E"));
  43660. if (lists.length === 0)
  43661. return B.SassList_Sof;
  43662. _box_0.i = 0;
  43663. results = A._setArrayType([], type$.JSArray_SassList);
  43664. for (t1 = A._arrayInstanceType(lists)._eval$1("MappedListIterable<1,Value>"), t2 = type$.Value; B.JSArray_methods.every$1(lists, new A._zip__closure0(_box_0));) {
  43665. result = A.List_List$from(new A.MappedListIterable(lists, new A._zip__closure1(_box_0), t1), false, t2);
  43666. result.fixed$length = Array;
  43667. result.immutable$list = Array;
  43668. results.push(new A.SassList(result, B.ListSeparator_EVt, false));
  43669. ++_box_0.i;
  43670. }
  43671. return A.SassList$(results, B.ListSeparator_rXA, false);
  43672. },
  43673. $signature: 21
  43674. };
  43675. A._zip__closure.prototype = {
  43676. call$1(list) {
  43677. return list.get$asList();
  43678. },
  43679. $signature: 382
  43680. };
  43681. A._zip__closure0.prototype = {
  43682. call$1(list) {
  43683. return this._box_0.i !== J.get$length$asx(list);
  43684. },
  43685. $signature: 381
  43686. };
  43687. A._zip__closure1.prototype = {
  43688. call$1(list) {
  43689. return J.$index$asx(list, this._box_0.i);
  43690. },
  43691. $signature: 4
  43692. };
  43693. A._index_closure0.prototype = {
  43694. call$1($arguments) {
  43695. var t1 = J.getInterceptor$asx($arguments),
  43696. index = B.JSArray_methods.indexOf$1(t1.$index($arguments, 0).get$asList(), t1.$index($arguments, 1));
  43697. return index === -1 ? B.C__SassNull : A.SassNumber_SassNumber(index + 1, null);
  43698. },
  43699. $signature: 4
  43700. };
  43701. A._separator_closure.prototype = {
  43702. call$1($arguments) {
  43703. switch (J.get$separator$x(J.$index$asx($arguments, 0))) {
  43704. case B.ListSeparator_rXA:
  43705. return new A.SassString("comma", false);
  43706. case B.ListSeparator_zg9:
  43707. return new A.SassString("slash", false);
  43708. default:
  43709. return new A.SassString("space", false);
  43710. }
  43711. },
  43712. $signature: 17
  43713. };
  43714. A._isBracketed_closure.prototype = {
  43715. call$1($arguments) {
  43716. return J.$index$asx($arguments, 0).get$hasBrackets() ? B.SassBoolean_true : B.SassBoolean_false;
  43717. },
  43718. $signature: 19
  43719. };
  43720. A._slash_closure.prototype = {
  43721. call$1($arguments) {
  43722. var list = J.$index$asx($arguments, 0).get$asList();
  43723. if (list.length < 2)
  43724. throw A.wrapException(A.SassScriptException$("At least two elements are required.", null));
  43725. return A.SassList$(list, B.ListSeparator_zg9, false);
  43726. },
  43727. $signature: 21
  43728. };
  43729. A._get_closure.prototype = {
  43730. call$1($arguments) {
  43731. var value,
  43732. t1 = J.getInterceptor$asx($arguments),
  43733. map = t1.$index($arguments, 0).assertMap$1("map"),
  43734. t2 = A._setArrayType([t1.$index($arguments, 1)], type$.JSArray_Value);
  43735. B.JSArray_methods.addAll$1(t2, t1.$index($arguments, 2).get$asList());
  43736. for (t1 = A.IterableExtension_get_exceptLast(t2), t1 = t1.get$iterator(t1); t1.moveNext$0(); map = value) {
  43737. value = map._map$_contents.$index(0, t1.get$current(t1));
  43738. if (!(value instanceof A.SassMap))
  43739. return B.C__SassNull;
  43740. }
  43741. t1 = map._map$_contents.$index(0, B.JSArray_methods.get$last(t2));
  43742. return t1 == null ? B.C__SassNull : t1;
  43743. },
  43744. $signature: 4
  43745. };
  43746. A._set_closure.prototype = {
  43747. call$1($arguments) {
  43748. var t1 = J.getInterceptor$asx($arguments);
  43749. return A._modify(t1.$index($arguments, 0).assertMap$1("map"), A._setArrayType([t1.$index($arguments, 1)], type$.JSArray_Value), new A._set__closure0($arguments), true);
  43750. },
  43751. $signature: 4
  43752. };
  43753. A._set__closure0.prototype = {
  43754. call$1(_) {
  43755. return J.$index$asx(this.$arguments, 2);
  43756. },
  43757. $signature: 34
  43758. };
  43759. A._set_closure0.prototype = {
  43760. call$1($arguments) {
  43761. var t1 = J.getInterceptor$asx($arguments),
  43762. map = t1.$index($arguments, 0).assertMap$1("map"),
  43763. args = t1.$index($arguments, 1).get$asList();
  43764. t1 = args.length;
  43765. if (t1 === 0)
  43766. throw A.wrapException(A.SassScriptException$("Expected $args to contain a key.", null));
  43767. else if (t1 === 1)
  43768. throw A.wrapException(A.SassScriptException$("Expected $args to contain a value.", null));
  43769. return A._modify(map, B.JSArray_methods.sublist$2(args, 0, t1 - 1), new A._set__closure(args), true);
  43770. },
  43771. $signature: 4
  43772. };
  43773. A._set__closure.prototype = {
  43774. call$1(_) {
  43775. return B.JSArray_methods.get$last(this.args);
  43776. },
  43777. $signature: 34
  43778. };
  43779. A._merge_closure.prototype = {
  43780. call$1($arguments) {
  43781. var t2,
  43782. t1 = J.getInterceptor$asx($arguments),
  43783. map1 = t1.$index($arguments, 0).assertMap$1("map1"),
  43784. map2 = t1.$index($arguments, 1).assertMap$1("map2");
  43785. t1 = type$.Value;
  43786. t2 = A.LinkedHashMap_LinkedHashMap$of(map1._map$_contents, t1, t1);
  43787. t2.addAll$1(0, map2._map$_contents);
  43788. return new A.SassMap(A.ConstantMap_ConstantMap$from(t2, t1, t1));
  43789. },
  43790. $signature: 35
  43791. };
  43792. A._merge_closure0.prototype = {
  43793. call$1($arguments) {
  43794. var map2,
  43795. t1 = J.getInterceptor$asx($arguments),
  43796. map1 = t1.$index($arguments, 0).assertMap$1("map1"),
  43797. args = t1.$index($arguments, 1).get$asList();
  43798. t1 = args.length;
  43799. if (t1 === 0)
  43800. throw A.wrapException(A.SassScriptException$("Expected $args to contain a key.", null));
  43801. else if (t1 === 1)
  43802. throw A.wrapException(A.SassScriptException$("Expected $args to contain a map.", null));
  43803. map2 = B.JSArray_methods.get$last(args).assertMap$1("map2");
  43804. return A._modify(map1, A.IterableExtension_get_exceptLast(args), new A._merge__closure(map2), true);
  43805. },
  43806. $signature: 4
  43807. };
  43808. A._merge__closure.prototype = {
  43809. call$1(oldValue) {
  43810. var t1, t2,
  43811. nestedMap = oldValue.tryMap$0();
  43812. if (nestedMap == null)
  43813. return this.map2;
  43814. t1 = type$.Value;
  43815. t2 = A.LinkedHashMap_LinkedHashMap$of(nestedMap._map$_contents, t1, t1);
  43816. t2.addAll$1(0, this.map2._map$_contents);
  43817. return new A.SassMap(A.ConstantMap_ConstantMap$from(t2, t1, t1));
  43818. },
  43819. $signature: 371
  43820. };
  43821. A._deepMerge_closure.prototype = {
  43822. call$1($arguments) {
  43823. var t1 = J.getInterceptor$asx($arguments);
  43824. return A._deepMergeImpl(t1.$index($arguments, 0).assertMap$1("map1"), t1.$index($arguments, 1).assertMap$1("map2"));
  43825. },
  43826. $signature: 35
  43827. };
  43828. A._deepRemove_closure.prototype = {
  43829. call$1($arguments) {
  43830. var t1 = J.getInterceptor$asx($arguments),
  43831. map = t1.$index($arguments, 0).assertMap$1("map"),
  43832. t2 = A._setArrayType([t1.$index($arguments, 1)], type$.JSArray_Value);
  43833. B.JSArray_methods.addAll$1(t2, t1.$index($arguments, 2).get$asList());
  43834. return A._modify(map, A.IterableExtension_get_exceptLast(t2), new A._deepRemove__closure(t2), false);
  43835. },
  43836. $signature: 4
  43837. };
  43838. A._deepRemove__closure.prototype = {
  43839. call$1(value) {
  43840. var t1, t2,
  43841. nestedMap = value.tryMap$0();
  43842. if (nestedMap != null && nestedMap._map$_contents.containsKey$1(B.JSArray_methods.get$last(this.keys))) {
  43843. t1 = type$.Value;
  43844. t2 = A.LinkedHashMap_LinkedHashMap$of(nestedMap._map$_contents, t1, t1);
  43845. t2.remove$1(0, B.JSArray_methods.get$last(this.keys));
  43846. return new A.SassMap(A.ConstantMap_ConstantMap$from(t2, t1, t1));
  43847. }
  43848. return value;
  43849. },
  43850. $signature: 34
  43851. };
  43852. A._remove_closure.prototype = {
  43853. call$1($arguments) {
  43854. return J.$index$asx($arguments, 0).assertMap$1("map");
  43855. },
  43856. $signature: 35
  43857. };
  43858. A._remove_closure0.prototype = {
  43859. call$1($arguments) {
  43860. var mutableMap, t3, _i,
  43861. t1 = J.getInterceptor$asx($arguments),
  43862. map = t1.$index($arguments, 0).assertMap$1("map"),
  43863. t2 = A._setArrayType([t1.$index($arguments, 1)], type$.JSArray_Value);
  43864. B.JSArray_methods.addAll$1(t2, t1.$index($arguments, 2).get$asList());
  43865. t1 = type$.Value;
  43866. mutableMap = A.LinkedHashMap_LinkedHashMap$of(map._map$_contents, t1, t1);
  43867. for (t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, A.throwConcurrentModificationError)(t2), ++_i)
  43868. mutableMap.remove$1(0, t2[_i]);
  43869. return new A.SassMap(A.ConstantMap_ConstantMap$from(mutableMap, t1, t1));
  43870. },
  43871. $signature: 35
  43872. };
  43873. A._keys_closure.prototype = {
  43874. call$1($arguments) {
  43875. var t1 = J.$index$asx($arguments, 0).assertMap$1("map")._map$_contents;
  43876. return A.SassList$(t1.get$keys(t1), B.ListSeparator_rXA, false);
  43877. },
  43878. $signature: 21
  43879. };
  43880. A._values_closure.prototype = {
  43881. call$1($arguments) {
  43882. var t1 = J.$index$asx($arguments, 0).assertMap$1("map")._map$_contents;
  43883. return A.SassList$(t1.get$values(t1), B.ListSeparator_rXA, false);
  43884. },
  43885. $signature: 21
  43886. };
  43887. A._hasKey_closure.prototype = {
  43888. call$1($arguments) {
  43889. var value,
  43890. t1 = J.getInterceptor$asx($arguments),
  43891. map = t1.$index($arguments, 0).assertMap$1("map"),
  43892. t2 = A._setArrayType([t1.$index($arguments, 1)], type$.JSArray_Value);
  43893. B.JSArray_methods.addAll$1(t2, t1.$index($arguments, 2).get$asList());
  43894. for (t1 = A.IterableExtension_get_exceptLast(t2), t1 = t1.get$iterator(t1); t1.moveNext$0(); map = value) {
  43895. value = map._map$_contents.$index(0, t1.get$current(t1));
  43896. if (!(value instanceof A.SassMap))
  43897. return B.SassBoolean_false;
  43898. }
  43899. return map._map$_contents.containsKey$1(B.JSArray_methods.get$last(t2)) ? B.SassBoolean_true : B.SassBoolean_false;
  43900. },
  43901. $signature: 19
  43902. };
  43903. A._modify_modifyNestedMap.prototype = {
  43904. call$1(map) {
  43905. var nestedMap, _this = this,
  43906. t1 = type$.Value,
  43907. mutableMap = A.LinkedHashMap_LinkedHashMap$of(map._map$_contents, t1, t1),
  43908. t2 = _this.keyIterator,
  43909. key = t2.get$current(t2);
  43910. if (!t2.moveNext$0()) {
  43911. t2 = mutableMap.$index(0, key);
  43912. if (t2 == null)
  43913. t2 = B.C__SassNull;
  43914. mutableMap.$indexSet(0, key, _this.modify.call$1(t2));
  43915. return new A.SassMap(A.ConstantMap_ConstantMap$from(mutableMap, t1, t1));
  43916. }
  43917. t2 = mutableMap.$index(0, key);
  43918. nestedMap = t2 == null ? null : t2.tryMap$0();
  43919. t2 = nestedMap == null;
  43920. if (t2 && !_this.addNesting)
  43921. return new A.SassMap(A.ConstantMap_ConstantMap$from(mutableMap, t1, t1));
  43922. mutableMap.$indexSet(0, key, _this.call$1(t2 ? B.SassMap_Map_empty : nestedMap));
  43923. return new A.SassMap(A.ConstantMap_ConstantMap$from(mutableMap, t1, t1));
  43924. },
  43925. $signature: 369
  43926. };
  43927. A._deepMergeImpl_closure.prototype = {
  43928. call$2(key, value) {
  43929. var valueMap, merged,
  43930. t1 = this.result,
  43931. t2 = t1.$index(0, key),
  43932. resultMap = t2 == null ? null : t2.tryMap$0();
  43933. if (resultMap == null)
  43934. t1.$indexSet(0, key, value);
  43935. else {
  43936. valueMap = value.tryMap$0();
  43937. if (valueMap != null) {
  43938. merged = A._deepMergeImpl(resultMap, valueMap);
  43939. if (merged === resultMap)
  43940. return;
  43941. t1.$indexSet(0, key, merged);
  43942. } else
  43943. t1.$indexSet(0, key, value);
  43944. }
  43945. },
  43946. $signature: 59
  43947. };
  43948. A._ceil_closure.prototype = {
  43949. call$1(value) {
  43950. return B.JSNumber_methods.ceil$0(value);
  43951. },
  43952. $signature: 29
  43953. };
  43954. A._clamp_closure.prototype = {
  43955. call$1($arguments) {
  43956. var t1 = J.getInterceptor$asx($arguments),
  43957. min = t1.$index($arguments, 0).assertNumber$1("min"),
  43958. number = t1.$index($arguments, 1).assertNumber$1("number"),
  43959. max = t1.$index($arguments, 2).assertNumber$1("max");
  43960. number.convertValueToMatch$3(min, "number", "min");
  43961. max.convertValueToMatch$3(min, "max", "min");
  43962. if (min.greaterThanOrEquals$1(max).value)
  43963. return min;
  43964. if (min.greaterThanOrEquals$1(number).value)
  43965. return min;
  43966. if (number.greaterThanOrEquals$1(max).value)
  43967. return max;
  43968. return number;
  43969. },
  43970. $signature: 11
  43971. };
  43972. A._floor_closure.prototype = {
  43973. call$1(value) {
  43974. return B.JSNumber_methods.floor$0(value);
  43975. },
  43976. $signature: 29
  43977. };
  43978. A._max_closure.prototype = {
  43979. call$1($arguments) {
  43980. var t1, t2, max, _i, number;
  43981. for (t1 = J.$index$asx($arguments, 0).get$asList(), t2 = t1.length, max = null, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
  43982. number = t1[_i].assertNumber$0();
  43983. if (max == null || max.lessThan$1(number).value)
  43984. max = number;
  43985. }
  43986. if (max != null)
  43987. return max;
  43988. throw A.wrapException(A.SassScriptException$("At least one argument must be passed.", null));
  43989. },
  43990. $signature: 11
  43991. };
  43992. A._min_closure.prototype = {
  43993. call$1($arguments) {
  43994. var t1, t2, min, _i, number;
  43995. for (t1 = J.$index$asx($arguments, 0).get$asList(), t2 = t1.length, min = null, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
  43996. number = t1[_i].assertNumber$0();
  43997. if (min == null || min.greaterThan$1(number).value)
  43998. min = number;
  43999. }
  44000. if (min != null)
  44001. return min;
  44002. throw A.wrapException(A.SassScriptException$("At least one argument must be passed.", null));
  44003. },
  44004. $signature: 11
  44005. };
  44006. A._round_closure.prototype = {
  44007. call$1(number) {
  44008. return B.JSNumber_methods.round$0(number);
  44009. },
  44010. $signature: 29
  44011. };
  44012. A._abs_closure.prototype = {
  44013. call$1(value) {
  44014. return Math.abs(value);
  44015. },
  44016. $signature: 29
  44017. };
  44018. A._hypot_closure.prototype = {
  44019. call$1($arguments) {
  44020. var subtotal, i, i0, t3, t4,
  44021. t1 = J.$index$asx($arguments, 0).get$asList(),
  44022. t2 = A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,SassNumber>"),
  44023. numbers = A.List_List$of(new A.MappedListIterable(t1, new A._hypot__closure(), t2), true, t2._eval$1("ListIterable.E"));
  44024. t1 = numbers.length;
  44025. if (t1 === 0)
  44026. throw A.wrapException(A.SassScriptException$("At least one argument must be passed.", null));
  44027. for (subtotal = 0, i = 0; i < t1; i = i0) {
  44028. i0 = i + 1;
  44029. subtotal += Math.pow(numbers[i].convertValueToMatch$3(numbers[0], "numbers[" + i0 + "]", "numbers[1]"), 2);
  44030. }
  44031. t1 = Math.sqrt(subtotal);
  44032. t2 = numbers[0];
  44033. t3 = J.getInterceptor$x(t2);
  44034. t4 = t3.get$numeratorUnits(t2);
  44035. return A.SassNumber_SassNumber$withUnits(t1, t3.get$denominatorUnits(t2), t4);
  44036. },
  44037. $signature: 11
  44038. };
  44039. A._hypot__closure.prototype = {
  44040. call$1(argument) {
  44041. return argument.assertNumber$0();
  44042. },
  44043. $signature: 366
  44044. };
  44045. A._log_closure.prototype = {
  44046. call$1($arguments) {
  44047. var base,
  44048. _s18_ = " to have no units.",
  44049. _null = null,
  44050. t1 = J.getInterceptor$asx($arguments),
  44051. number = t1.$index($arguments, 0).assertNumber$1("number");
  44052. if (number.get$hasUnits())
  44053. throw A.wrapException(A.SassScriptException$("$number: Expected " + number.toString$0(0) + _s18_, _null));
  44054. else if (J.$eq$(t1.$index($arguments, 1), B.C__SassNull))
  44055. return A.SassNumber_SassNumber(Math.log(number._number$_value), _null);
  44056. base = t1.$index($arguments, 1).assertNumber$1("base");
  44057. if (base.get$hasUnits())
  44058. throw A.wrapException(A.SassScriptException$("$base: Expected " + base.toString$0(0) + _s18_, _null));
  44059. else
  44060. return A.SassNumber_SassNumber(Math.log(number._number$_value) / Math.log(base._number$_value), _null);
  44061. },
  44062. $signature: 11
  44063. };
  44064. A._pow_closure.prototype = {
  44065. call$1($arguments) {
  44066. var _s18_ = " to have no units.",
  44067. t1 = J.getInterceptor$asx($arguments),
  44068. base = t1.$index($arguments, 0).assertNumber$1("base"),
  44069. exponent = t1.$index($arguments, 1).assertNumber$1("exponent");
  44070. if (base.get$hasUnits())
  44071. throw A.wrapException(A.SassScriptException$("$base: Expected " + base.toString$0(0) + _s18_, null));
  44072. else if (exponent.get$hasUnits())
  44073. throw A.wrapException(A.SassScriptException$("$exponent: Expected " + exponent.toString$0(0) + _s18_, null));
  44074. else
  44075. return A.SassNumber_SassNumber(Math.pow(base._number$_value, exponent._number$_value), null);
  44076. },
  44077. $signature: 11
  44078. };
  44079. A._sqrt_closure.prototype = {
  44080. call$1($arguments) {
  44081. var number = J.$index$asx($arguments, 0).assertNumber$1("number");
  44082. if (number.get$hasUnits())
  44083. throw A.wrapException(A.SassScriptException$("$number: Expected " + number.toString$0(0) + " to have no units.", null));
  44084. else
  44085. return A.SassNumber_SassNumber(Math.sqrt(number._number$_value), null);
  44086. },
  44087. $signature: 11
  44088. };
  44089. A._acos_closure.prototype = {
  44090. call$1($arguments) {
  44091. var number = J.$index$asx($arguments, 0).assertNumber$1("number");
  44092. if (number.get$hasUnits())
  44093. throw A.wrapException(A.SassScriptException$("$number: Expected " + number.toString$0(0) + " to have no units.", null));
  44094. else
  44095. return A.SassNumber_SassNumber$withUnits(Math.acos(number._number$_value) * 180 / 3.141592653589793, null, A._setArrayType(["deg"], type$.JSArray_String));
  44096. },
  44097. $signature: 11
  44098. };
  44099. A._asin_closure.prototype = {
  44100. call$1($arguments) {
  44101. var number = J.$index$asx($arguments, 0).assertNumber$1("number");
  44102. if (number.get$hasUnits())
  44103. throw A.wrapException(A.SassScriptException$("$number: Expected " + number.toString$0(0) + " to have no units.", null));
  44104. else
  44105. return A.SassNumber_SassNumber$withUnits(Math.asin(number._number$_value) * 180 / 3.141592653589793, null, A._setArrayType(["deg"], type$.JSArray_String));
  44106. },
  44107. $signature: 11
  44108. };
  44109. A._atan_closure.prototype = {
  44110. call$1($arguments) {
  44111. var number = J.$index$asx($arguments, 0).assertNumber$1("number");
  44112. if (number.get$hasUnits())
  44113. throw A.wrapException(A.SassScriptException$("$number: Expected " + number.toString$0(0) + " to have no units.", null));
  44114. else
  44115. return A.SassNumber_SassNumber$withUnits(Math.atan(number._number$_value) * 180 / 3.141592653589793, null, A._setArrayType(["deg"], type$.JSArray_String));
  44116. },
  44117. $signature: 11
  44118. };
  44119. A._atan2_closure.prototype = {
  44120. call$1($arguments) {
  44121. var t1 = J.getInterceptor$asx($arguments),
  44122. y = t1.$index($arguments, 0).assertNumber$1("y");
  44123. return A.SassNumber_SassNumber$withUnits(Math.atan2(y._number$_value, t1.$index($arguments, 1).assertNumber$1("x").convertValueToMatch$3(y, "x", "y")) * 180 / 3.141592653589793, null, A._setArrayType(["deg"], type$.JSArray_String));
  44124. },
  44125. $signature: 11
  44126. };
  44127. A._cos_closure.prototype = {
  44128. call$1($arguments) {
  44129. return A.SassNumber_SassNumber(Math.cos(J.$index$asx($arguments, 0).assertNumber$1("number").coerceValueToUnit$2("rad", "number")), null);
  44130. },
  44131. $signature: 11
  44132. };
  44133. A._sin_closure.prototype = {
  44134. call$1($arguments) {
  44135. return A.SassNumber_SassNumber(Math.sin(J.$index$asx($arguments, 0).assertNumber$1("number").coerceValueToUnit$2("rad", "number")), null);
  44136. },
  44137. $signature: 11
  44138. };
  44139. A._tan_closure.prototype = {
  44140. call$1($arguments) {
  44141. return A.SassNumber_SassNumber(Math.tan(J.$index$asx($arguments, 0).assertNumber$1("number").coerceValueToUnit$2("rad", "number")), null);
  44142. },
  44143. $signature: 11
  44144. };
  44145. A._compatible_closure.prototype = {
  44146. call$1($arguments) {
  44147. var t1 = J.getInterceptor$asx($arguments);
  44148. return t1.$index($arguments, 0).assertNumber$1("number1").isComparableTo$1(t1.$index($arguments, 1).assertNumber$1("number2")) ? B.SassBoolean_true : B.SassBoolean_false;
  44149. },
  44150. $signature: 19
  44151. };
  44152. A._isUnitless_closure.prototype = {
  44153. call$1($arguments) {
  44154. return !J.$index$asx($arguments, 0).assertNumber$1("number").get$hasUnits() ? B.SassBoolean_true : B.SassBoolean_false;
  44155. },
  44156. $signature: 19
  44157. };
  44158. A._unit_closure.prototype = {
  44159. call$1($arguments) {
  44160. return new A.SassString(J.$index$asx($arguments, 0).assertNumber$1("number").get$unitString(), true);
  44161. },
  44162. $signature: 17
  44163. };
  44164. A._percentage_closure.prototype = {
  44165. call$1($arguments) {
  44166. var number = J.$index$asx($arguments, 0).assertNumber$1("number");
  44167. number.assertNoUnits$1("number");
  44168. return A.SassNumber_SassNumber(number._number$_value * 100, "%");
  44169. },
  44170. $signature: 11
  44171. };
  44172. A._randomFunction_closure.prototype = {
  44173. call$1($arguments) {
  44174. var limit, t2, t3, t4, limitScalar,
  44175. t1 = J.getInterceptor$asx($arguments);
  44176. if (J.$eq$(t1.$index($arguments, 0), B.C__SassNull))
  44177. return A.SassNumber_SassNumber($.$get$_random0().nextDouble$0(), null);
  44178. limit = t1.$index($arguments, 0).assertNumber$1("limit");
  44179. if (limit.get$hasUnits()) {
  44180. t1 = limit.toString$0(0);
  44181. t2 = limit.get$unitString();
  44182. t3 = limit.get$unitString();
  44183. t4 = limit.get$unitString();
  44184. A.EvaluationContext_current().warn$2$deprecation(0, string$.math_r + t1 + string$.x29x20in_a + t2 + ")) * 1" + t3 + string$.x0a_To_p + t4 + string$.x29x29__Mo, true);
  44185. }
  44186. limitScalar = limit.assertInt$1("limit");
  44187. if (limitScalar < 1)
  44188. throw A.wrapException(A.SassScriptException$("$limit: Must be greater than 0, was " + limit.toString$0(0) + ".", null));
  44189. return A.SassNumber_SassNumber($.$get$_random0().nextInt$1(limitScalar) + 1, null);
  44190. },
  44191. $signature: 11
  44192. };
  44193. A._div_closure.prototype = {
  44194. call$1($arguments) {
  44195. var t1 = J.getInterceptor$asx($arguments),
  44196. number1 = t1.$index($arguments, 0),
  44197. number2 = t1.$index($arguments, 1);
  44198. if (!(number1 instanceof A.SassNumber) || !(number2 instanceof A.SassNumber))
  44199. A.EvaluationContext_current().warn$2$deprecation(0, string$.math_d, false);
  44200. return number1.dividedBy$1(number2);
  44201. },
  44202. $signature: 4
  44203. };
  44204. A._numberFunction_closure.prototype = {
  44205. call$1($arguments) {
  44206. var number = J.$index$asx($arguments, 0).assertNumber$1("number"),
  44207. t1 = this.transform.call$1(number._number$_value),
  44208. t2 = number.get$numeratorUnits(number);
  44209. return A.SassNumber_SassNumber$withUnits(t1, number.get$denominatorUnits(number), t2);
  44210. },
  44211. $signature: 11
  44212. };
  44213. A.global_closure26.prototype = {
  44214. call$1($arguments) {
  44215. return $._features.contains$1(0, J.$index$asx($arguments, 0).assertString$1("feature")._string$_text) ? B.SassBoolean_true : B.SassBoolean_false;
  44216. },
  44217. $signature: 19
  44218. };
  44219. A.global_closure27.prototype = {
  44220. call$1($arguments) {
  44221. return new A.SassString(A.serializeValue(J.get$first$ax($arguments), true, true), false);
  44222. },
  44223. $signature: 17
  44224. };
  44225. A.global_closure28.prototype = {
  44226. call$1($arguments) {
  44227. var value = J.$index$asx($arguments, 0);
  44228. if (value instanceof A.SassArgumentList)
  44229. return new A.SassString("arglist", false);
  44230. if (value instanceof A.SassBoolean)
  44231. return new A.SassString("bool", false);
  44232. if (value instanceof A.SassColor)
  44233. return new A.SassString("color", false);
  44234. if (value instanceof A.SassList)
  44235. return new A.SassString("list", false);
  44236. if (value instanceof A.SassMap)
  44237. return new A.SassString("map", false);
  44238. if (value.$eq(0, B.C__SassNull))
  44239. return new A.SassString("null", false);
  44240. if (value instanceof A.SassNumber)
  44241. return new A.SassString("number", false);
  44242. if (value instanceof A.SassFunction)
  44243. return new A.SassString("function", false);
  44244. if (value instanceof A.SassCalculation)
  44245. return new A.SassString("calculation", false);
  44246. return new A.SassString("string", false);
  44247. },
  44248. $signature: 17
  44249. };
  44250. A.global_closure29.prototype = {
  44251. call$1($arguments) {
  44252. var t1, t2, t3, t4,
  44253. argumentList = J.$index$asx($arguments, 0);
  44254. if (argumentList instanceof A.SassArgumentList) {
  44255. t1 = type$.Value;
  44256. t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  44257. for (argumentList._wereKeywordsAccessed = true, t3 = argumentList._keywords, t3 = t3.get$entries(t3), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  44258. t4 = t3.get$current(t3);
  44259. t2.$indexSet(0, new A.SassString(t4.key, false), t4.value);
  44260. }
  44261. return new A.SassMap(A.ConstantMap_ConstantMap$from(t2, t1, t1));
  44262. } else
  44263. throw A.wrapException("$args: " + argumentList.toString$0(0) + " is not an argument list.");
  44264. },
  44265. $signature: 35
  44266. };
  44267. A.local_closure.prototype = {
  44268. call$1($arguments) {
  44269. return new A.SassString(J.$index$asx($arguments, 0).assertCalculation$1("calc").name, true);
  44270. },
  44271. $signature: 17
  44272. };
  44273. A.local_closure0.prototype = {
  44274. call$1($arguments) {
  44275. var t1 = J.$index$asx($arguments, 0).assertCalculation$1("calc").$arguments;
  44276. return A.SassList$(new A.MappedListIterable(t1, new A.local__closure(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value>")), B.ListSeparator_rXA, false);
  44277. },
  44278. $signature: 21
  44279. };
  44280. A.local__closure.prototype = {
  44281. call$1(argument) {
  44282. if (argument instanceof A.Value)
  44283. return argument;
  44284. return new A.SassString(J.toString$0$(argument), false);
  44285. },
  44286. $signature: 364
  44287. };
  44288. A._nest_closure.prototype = {
  44289. call$1($arguments) {
  44290. var t1 = {},
  44291. selectors = J.$index$asx($arguments, 0).get$asList();
  44292. if (selectors.length === 0)
  44293. throw A.wrapException(A.SassScriptException$(string$.x24selec, null));
  44294. t1.first = true;
  44295. return new A.MappedListIterable(selectors, new A._nest__closure(t1), A._arrayInstanceType(selectors)._eval$1("MappedListIterable<1,SelectorList>")).reduce$1(0, new A._nest__closure0()).get$asSassList();
  44296. },
  44297. $signature: 21
  44298. };
  44299. A._nest__closure.prototype = {
  44300. call$1(selector) {
  44301. var t1 = this._box_0,
  44302. result = A.SassApiValue_assertSelector(selector, !t1.first, null);
  44303. t1.first = false;
  44304. return result;
  44305. },
  44306. $signature: 149
  44307. };
  44308. A._nest__closure0.prototype = {
  44309. call$2($parent, child) {
  44310. return child.resolveParentSelectors$1($parent);
  44311. },
  44312. $signature: 150
  44313. };
  44314. A._append_closure.prototype = {
  44315. call$1($arguments) {
  44316. var selectors = J.$index$asx($arguments, 0).get$asList();
  44317. if (selectors.length === 0)
  44318. throw A.wrapException(A.SassScriptException$(string$.x24selec, null));
  44319. return new A.MappedListIterable(selectors, new A._append__closure(), A._arrayInstanceType(selectors)._eval$1("MappedListIterable<1,SelectorList>")).reduce$1(0, new A._append__closure0()).get$asSassList();
  44320. },
  44321. $signature: 21
  44322. };
  44323. A._append__closure.prototype = {
  44324. call$1(selector) {
  44325. return A.SassApiValue_assertSelector(selector, false, null);
  44326. },
  44327. $signature: 149
  44328. };
  44329. A._append__closure0.prototype = {
  44330. call$2($parent, child) {
  44331. var t1 = child.components;
  44332. return A.SelectorList$(new A.MappedListIterable(t1, new A._append___closure($parent), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector>"))).resolveParentSelectors$1($parent);
  44333. },
  44334. $signature: 150
  44335. };
  44336. A._append___closure.prototype = {
  44337. call$1(complex) {
  44338. var t1, component, newCompound, t2;
  44339. if (complex.leadingCombinators.length !== 0)
  44340. throw A.wrapException(A.SassScriptException$("Can't append " + complex.toString$0(0) + " to " + this.parent.toString$0(0) + ".", null));
  44341. t1 = complex.components;
  44342. component = B.JSArray_methods.get$first(t1);
  44343. newCompound = A._prependParent(component.selector);
  44344. if (newCompound == null)
  44345. throw A.wrapException(A.SassScriptException$("Can't append " + complex.toString$0(0) + " to " + this.parent.toString$0(0) + ".", null));
  44346. t2 = A._setArrayType([new A.ComplexSelectorComponent(newCompound, A.List_List$unmodifiable(component.combinators, type$.Combinator))], type$.JSArray_ComplexSelectorComponent);
  44347. B.JSArray_methods.addAll$1(t2, A.SubListIterable$(t1, 1, null, A._arrayInstanceType(t1)._precomputed1));
  44348. return A.ComplexSelector$(B.List_empty0, t2, false);
  44349. },
  44350. $signature: 63
  44351. };
  44352. A._extend_closure.prototype = {
  44353. call$1($arguments) {
  44354. var target, source,
  44355. _s8_ = "selector",
  44356. _s8_0 = "extendee",
  44357. _s8_1 = "extender",
  44358. t1 = J.getInterceptor$asx($arguments),
  44359. selector = A.SassApiValue_assertSelector(t1.$index($arguments, 0), false, _s8_);
  44360. selector.assertNotBogus$1$name(_s8_);
  44361. target = A.SassApiValue_assertSelector(t1.$index($arguments, 1), false, _s8_0);
  44362. target.assertNotBogus$1$name(_s8_0);
  44363. source = A.SassApiValue_assertSelector(t1.$index($arguments, 2), false, _s8_1);
  44364. source.assertNotBogus$1$name(_s8_1);
  44365. return A.ExtensionStore__extendOrReplace(selector, source, target, B.ExtendMode_allTargets_allTargets, A.EvaluationContext_current().get$currentCallableSpan()).get$asSassList();
  44366. },
  44367. $signature: 21
  44368. };
  44369. A._replace_closure.prototype = {
  44370. call$1($arguments) {
  44371. var target, source,
  44372. _s8_ = "selector",
  44373. _s8_0 = "original",
  44374. _s11_ = "replacement",
  44375. t1 = J.getInterceptor$asx($arguments),
  44376. selector = A.SassApiValue_assertSelector(t1.$index($arguments, 0), false, _s8_);
  44377. selector.assertNotBogus$1$name(_s8_);
  44378. target = A.SassApiValue_assertSelector(t1.$index($arguments, 1), false, _s8_0);
  44379. target.assertNotBogus$1$name(_s8_0);
  44380. source = A.SassApiValue_assertSelector(t1.$index($arguments, 2), false, _s11_);
  44381. source.assertNotBogus$1$name(_s11_);
  44382. return A.ExtensionStore__extendOrReplace(selector, source, target, B.ExtendMode_replace_replace, A.EvaluationContext_current().get$currentCallableSpan()).get$asSassList();
  44383. },
  44384. $signature: 21
  44385. };
  44386. A._unify_closure.prototype = {
  44387. call$1($arguments) {
  44388. var selector2, result,
  44389. _s9_ = "selector1",
  44390. _s9_0 = "selector2",
  44391. t1 = J.getInterceptor$asx($arguments),
  44392. selector1 = A.SassApiValue_assertSelector(t1.$index($arguments, 0), false, _s9_);
  44393. selector1.assertNotBogus$1$name(_s9_);
  44394. selector2 = A.SassApiValue_assertSelector(t1.$index($arguments, 1), false, _s9_0);
  44395. selector2.assertNotBogus$1$name(_s9_0);
  44396. result = selector1.unify$1(selector2);
  44397. return result == null ? B.C__SassNull : result.get$asSassList();
  44398. },
  44399. $signature: 4
  44400. };
  44401. A._isSuperselector_closure.prototype = {
  44402. call$1($arguments) {
  44403. var selector2,
  44404. t1 = J.getInterceptor$asx($arguments),
  44405. selector1 = A.SassApiValue_assertSelector(t1.$index($arguments, 0), false, "super");
  44406. selector1.assertNotBogus$1$name("super");
  44407. selector2 = A.SassApiValue_assertSelector(t1.$index($arguments, 1), false, "sub");
  44408. selector2.assertNotBogus$1$name("sub");
  44409. return A.listIsSuperselector(selector1.components, selector2.components) ? B.SassBoolean_true : B.SassBoolean_false;
  44410. },
  44411. $signature: 19
  44412. };
  44413. A._simpleSelectors_closure.prototype = {
  44414. call$1($arguments) {
  44415. var t1 = A.SassApiValue_assertCompoundSelector(J.$index$asx($arguments, 0), "selector").components;
  44416. return A.SassList$(new A.MappedListIterable(t1, new A._simpleSelectors__closure(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value>")), B.ListSeparator_rXA, false);
  44417. },
  44418. $signature: 21
  44419. };
  44420. A._simpleSelectors__closure.prototype = {
  44421. call$1(simple) {
  44422. return new A.SassString(A.serializeSelector(simple, true), false);
  44423. },
  44424. $signature: 361
  44425. };
  44426. A._parse_closure.prototype = {
  44427. call$1($arguments) {
  44428. return A.SassApiValue_assertSelector(J.$index$asx($arguments, 0), false, "selector").get$asSassList();
  44429. },
  44430. $signature: 21
  44431. };
  44432. A.module_closure.prototype = {
  44433. call$1($arguments) {
  44434. var limit, t2, chunks, i, lastEnd, match, t3,
  44435. t1 = J.getInterceptor$asx($arguments),
  44436. string = t1.$index($arguments, 0).assertString$1("string"),
  44437. separator = t1.$index($arguments, 1).assertString$1("separator");
  44438. t1 = t1.$index($arguments, 2).get$realNull();
  44439. limit = t1 == null ? null : t1.assertNumber$1("limit").assertInt$1("limit");
  44440. if (limit != null && limit < 1)
  44441. throw A.wrapException(A.SassScriptException$("$limit: Must be 1 or greater, was " + A.S(limit) + ".", null));
  44442. t1 = string._string$_text;
  44443. if (t1.length === 0)
  44444. return B.SassList_Sof0;
  44445. else {
  44446. t2 = separator._string$_text;
  44447. if (t2.length === 0)
  44448. return A.SassList$(A.MappedIterable_MappedIterable(new A.Runes(t1), new A.module__closure(string), type$.Runes._eval$1("Iterable.E"), type$.Value), B.ListSeparator_rXA, true);
  44449. }
  44450. chunks = A._setArrayType([], type$.JSArray_String);
  44451. for (t2 = B.JSString_methods.allMatches$1(t2, t1), t2 = new A._StringAllMatchesIterator(t2._input, t2._pattern, t2.__js_helper$_index), i = 0, lastEnd = 0; t2.moveNext$0();) {
  44452. match = t2.__js_helper$_current;
  44453. t3 = match.start;
  44454. chunks.push(B.JSString_methods.substring$2(t1, lastEnd, t3));
  44455. lastEnd = t3 + match.pattern.length;
  44456. ++i;
  44457. if (i === limit)
  44458. break;
  44459. }
  44460. chunks.push(B.JSString_methods.substring$1(t1, lastEnd));
  44461. return A.SassList$(new A.MappedListIterable(chunks, new A.module__closure0(string), type$.MappedListIterable_String_Value), B.ListSeparator_rXA, true);
  44462. },
  44463. $signature: 21
  44464. };
  44465. A.module__closure.prototype = {
  44466. call$1(rune) {
  44467. return new A.SassString(A.Primitives_stringFromCharCode(rune), this.string._hasQuotes);
  44468. },
  44469. $signature: 360
  44470. };
  44471. A.module__closure0.prototype = {
  44472. call$1(chunk) {
  44473. return new A.SassString(chunk, this.string._hasQuotes);
  44474. },
  44475. $signature: 356
  44476. };
  44477. A._unquote_closure.prototype = {
  44478. call$1($arguments) {
  44479. var string = J.$index$asx($arguments, 0).assertString$1("string");
  44480. if (!string._hasQuotes)
  44481. return string;
  44482. return new A.SassString(string._string$_text, false);
  44483. },
  44484. $signature: 17
  44485. };
  44486. A._quote_closure.prototype = {
  44487. call$1($arguments) {
  44488. var string = J.$index$asx($arguments, 0).assertString$1("string");
  44489. if (string._hasQuotes)
  44490. return string;
  44491. return new A.SassString(string._string$_text, true);
  44492. },
  44493. $signature: 17
  44494. };
  44495. A._length_closure.prototype = {
  44496. call$1($arguments) {
  44497. return A.SassNumber_SassNumber(J.$index$asx($arguments, 0).assertString$1("string").get$_sassLength(), null);
  44498. },
  44499. $signature: 11
  44500. };
  44501. A._insert_closure.prototype = {
  44502. call$1($arguments) {
  44503. var indexInt, codeUnitIndex, _s5_ = "index",
  44504. t1 = J.getInterceptor$asx($arguments),
  44505. string = t1.$index($arguments, 0).assertString$1("string"),
  44506. insert = t1.$index($arguments, 1).assertString$1("insert"),
  44507. index = t1.$index($arguments, 2).assertNumber$1(_s5_);
  44508. index.assertNoUnits$1(_s5_);
  44509. indexInt = index.assertInt$1(_s5_);
  44510. if (indexInt < 0)
  44511. indexInt = Math.max(string.get$_sassLength() + indexInt + 2, 0);
  44512. t1 = string._string$_text;
  44513. codeUnitIndex = A.codepointIndexToCodeUnitIndex(t1, A._codepointForIndex(indexInt, string.get$_sassLength(), false));
  44514. return new A.SassString(B.JSString_methods.replaceRange$3(t1, codeUnitIndex, codeUnitIndex, insert._string$_text), string._hasQuotes);
  44515. },
  44516. $signature: 17
  44517. };
  44518. A._index_closure.prototype = {
  44519. call$1($arguments) {
  44520. var t1 = J.getInterceptor$asx($arguments),
  44521. t2 = t1.$index($arguments, 0).assertString$1("string")._string$_text,
  44522. codeUnitIndex = B.JSString_methods.indexOf$1(t2, t1.$index($arguments, 1).assertString$1("substring")._string$_text);
  44523. if (codeUnitIndex === -1)
  44524. return B.C__SassNull;
  44525. return A.SassNumber_SassNumber(A.codeUnitIndexToCodepointIndex(t2, codeUnitIndex) + 1, null);
  44526. },
  44527. $signature: 4
  44528. };
  44529. A._slice_closure.prototype = {
  44530. call$1($arguments) {
  44531. var lengthInCodepoints, endInt, startCodepoint, endCodepoint,
  44532. _s8_ = "start-at",
  44533. t1 = J.getInterceptor$asx($arguments),
  44534. string = t1.$index($arguments, 0).assertString$1("string"),
  44535. start = t1.$index($arguments, 1).assertNumber$1(_s8_),
  44536. end = t1.$index($arguments, 2).assertNumber$1("end-at");
  44537. start.assertNoUnits$1(_s8_);
  44538. end.assertNoUnits$1("end-at");
  44539. lengthInCodepoints = string.get$_sassLength();
  44540. endInt = end.assertInt$0();
  44541. if (endInt === 0)
  44542. return string._hasQuotes ? $.$get$_emptyQuoted() : $.$get$_emptyUnquoted();
  44543. startCodepoint = A._codepointForIndex(start.assertInt$0(), lengthInCodepoints, false);
  44544. endCodepoint = A._codepointForIndex(endInt, lengthInCodepoints, true);
  44545. if (endCodepoint === lengthInCodepoints)
  44546. --endCodepoint;
  44547. if (endCodepoint < startCodepoint)
  44548. return string._hasQuotes ? $.$get$_emptyQuoted() : $.$get$_emptyUnquoted();
  44549. t1 = string._string$_text;
  44550. return new A.SassString(B.JSString_methods.substring$2(t1, A.codepointIndexToCodeUnitIndex(t1, startCodepoint), A.codepointIndexToCodeUnitIndex(t1, endCodepoint + 1)), string._hasQuotes);
  44551. },
  44552. $signature: 17
  44553. };
  44554. A._toUpperCase_closure.prototype = {
  44555. call$1($arguments) {
  44556. var t1, t2, i, t3, t4,
  44557. string = J.$index$asx($arguments, 0).assertString$1("string");
  44558. for (t1 = string._string$_text, t2 = t1.length, i = 0, t3 = ""; i < t2; ++i) {
  44559. t4 = B.JSString_methods._codeUnitAt$1(t1, i);
  44560. t3 += A.Primitives_stringFromCharCode(t4 >= 97 && t4 <= 122 ? t4 & 4294967263 : t4);
  44561. }
  44562. return new A.SassString(t3.charCodeAt(0) == 0 ? t3 : t3, string._hasQuotes);
  44563. },
  44564. $signature: 17
  44565. };
  44566. A._toLowerCase_closure.prototype = {
  44567. call$1($arguments) {
  44568. var t1, t2, i, t3, t4,
  44569. string = J.$index$asx($arguments, 0).assertString$1("string");
  44570. for (t1 = string._string$_text, t2 = t1.length, i = 0, t3 = ""; i < t2; ++i) {
  44571. t4 = B.JSString_methods._codeUnitAt$1(t1, i);
  44572. t3 += A.Primitives_stringFromCharCode(t4 >= 65 && t4 <= 90 ? t4 | 32 : t4);
  44573. }
  44574. return new A.SassString(t3.charCodeAt(0) == 0 ? t3 : t3, string._hasQuotes);
  44575. },
  44576. $signature: 17
  44577. };
  44578. A._uniqueId_closure.prototype = {
  44579. call$1($arguments) {
  44580. var t1 = $.$get$_previousUniqueId() + ($.$get$_random().nextInt$1(36) + 1);
  44581. $._previousUniqueId = t1;
  44582. if (t1 > Math.pow(36, 6))
  44583. $._previousUniqueId = B.JSInt_methods.$mod($.$get$_previousUniqueId(), A._asInt(Math.pow(36, 6)));
  44584. return new A.SassString("u" + B.JSString_methods.padLeft$2(J.toRadixString$1$n($.$get$_previousUniqueId(), 36), 6, "0"), false);
  44585. },
  44586. $signature: 17
  44587. };
  44588. A.ImportCache.prototype = {
  44589. canonicalize$4$baseImporter$baseUrl$forImport(_, url, baseImporter, baseUrl, forImport) {
  44590. var relativeResult, _this = this;
  44591. if (baseImporter != null) {
  44592. relativeResult = _this._relativeCanonicalizeCache.putIfAbsent$2(new A.Tuple4(url, forImport, baseImporter, baseUrl, type$.Tuple4_of_Uri_and_bool_and_Importer_and_nullable_Uri), new A.ImportCache_canonicalize_closure(_this, baseUrl, url, baseImporter, forImport));
  44593. if (relativeResult != null)
  44594. return relativeResult;
  44595. }
  44596. return _this._canonicalizeCache.putIfAbsent$2(new A.Tuple2(url, forImport, type$.Tuple2_Uri_bool), new A.ImportCache_canonicalize_closure0(_this, url, forImport));
  44597. },
  44598. canonicalize$3$baseImporter$baseUrl($receiver, url, baseImporter, baseUrl) {
  44599. return this.canonicalize$4$baseImporter$baseUrl$forImport($receiver, url, baseImporter, baseUrl, false);
  44600. },
  44601. _canonicalize$3(importer, url, forImport) {
  44602. var t1, result;
  44603. if (forImport) {
  44604. t1 = type$.nullable_Object;
  44605. result = A.runZoned(new A.ImportCache__canonicalize_closure(importer, url), A.LinkedHashMap_LinkedHashMap$_literal([B.Symbol__inImportRule, true], t1, t1), type$.nullable_Uri);
  44606. } else
  44607. result = importer.canonicalize$1(0, url);
  44608. if ((result == null ? null : result.get$scheme()) === "")
  44609. this._logger.warn$2$deprecation(0, "Importer " + importer.toString$0(0) + " canonicalized " + url.toString$0(0) + " to " + A.S(result) + string$.x2e_Rela, true);
  44610. return result;
  44611. },
  44612. importCanonical$4$originalUrl$quiet(importer, canonicalUrl, originalUrl, quiet) {
  44613. return this._importCache.putIfAbsent$2(canonicalUrl, new A.ImportCache_importCanonical_closure(this, importer, canonicalUrl, originalUrl, quiet));
  44614. },
  44615. importCanonical$3$originalUrl(importer, canonicalUrl, originalUrl) {
  44616. return this.importCanonical$4$originalUrl$quiet(importer, canonicalUrl, originalUrl, false);
  44617. },
  44618. importCanonical$2(importer, canonicalUrl) {
  44619. return this.importCanonical$4$originalUrl$quiet(importer, canonicalUrl, null, false);
  44620. },
  44621. humanize$1(canonicalUrl) {
  44622. var t2, url,
  44623. t1 = this._canonicalizeCache;
  44624. t1 = A.IterableNullableExtension_whereNotNull(t1.get$values(t1), type$.Tuple3_Importer_Uri_Uri);
  44625. t2 = t1.$ti;
  44626. url = A.minBy(new A.MappedIterable(new A.WhereIterable(t1, new A.ImportCache_humanize_closure(canonicalUrl), t2._eval$1("WhereIterable<Iterable.E>")), new A.ImportCache_humanize_closure0(), t2._eval$1("MappedIterable<Iterable.E,Uri>")), new A.ImportCache_humanize_closure1());
  44627. if (url == null)
  44628. return canonicalUrl;
  44629. t1 = $.$get$url();
  44630. return url.resolve$1(A.ParsedPath_ParsedPath$parse(canonicalUrl.get$path(canonicalUrl), t1.style).get$basename());
  44631. },
  44632. sourceMapUrl$1(_, canonicalUrl) {
  44633. var t1 = this._resultsCache.$index(0, canonicalUrl);
  44634. t1 = t1 == null ? null : t1.get$sourceMapUrl(t1);
  44635. return t1 == null ? canonicalUrl : t1;
  44636. },
  44637. clearCanonicalize$1(url) {
  44638. var t3, t4, _i,
  44639. t1 = this._canonicalizeCache,
  44640. t2 = type$.Tuple2_Uri_bool;
  44641. t1.remove$1(0, new A.Tuple2(url, false, t2));
  44642. t1.remove$1(0, new A.Tuple2(url, true, t2));
  44643. t2 = A._setArrayType([], type$.JSArray_Tuple4_of_Uri_and_bool_and_Importer_and_nullable_Uri);
  44644. for (t1 = this._relativeCanonicalizeCache, t3 = A.LinkedHashMapKeyIterator$(t1, t1._modifications); t3.moveNext$0();) {
  44645. t4 = t3.__js_helper$_current;
  44646. if (t4.item1.$eq(0, url))
  44647. t2.push(t4);
  44648. }
  44649. for (t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, A.throwConcurrentModificationError)(t2), ++_i)
  44650. t1.remove$1(0, t2[_i]);
  44651. },
  44652. clearImport$1(canonicalUrl) {
  44653. this._resultsCache.remove$1(0, canonicalUrl);
  44654. this._importCache.remove$1(0, canonicalUrl);
  44655. }
  44656. };
  44657. A.ImportCache_canonicalize_closure.prototype = {
  44658. call$0() {
  44659. var canonicalUrl, _this = this,
  44660. t1 = _this.baseUrl,
  44661. resolvedUrl = t1 == null ? null : t1.resolveUri$1(_this.url);
  44662. if (resolvedUrl == null)
  44663. resolvedUrl = _this.url;
  44664. t1 = _this.baseImporter;
  44665. canonicalUrl = _this.$this._canonicalize$3(t1, resolvedUrl, _this.forImport);
  44666. if (canonicalUrl == null)
  44667. return null;
  44668. return new A.Tuple3(t1, canonicalUrl, resolvedUrl, type$.Tuple3_Importer_Uri_Uri);
  44669. },
  44670. $signature: 84
  44671. };
  44672. A.ImportCache_canonicalize_closure0.prototype = {
  44673. call$0() {
  44674. var t1, t2, t3, t4, t5, _i, importer, canonicalUrl;
  44675. for (t1 = this.$this, t2 = t1._importers, t3 = t2.length, t4 = this.url, t5 = this.forImport, _i = 0; _i < t2.length; t2.length === t3 || (0, A.throwConcurrentModificationError)(t2), ++_i) {
  44676. importer = t2[_i];
  44677. canonicalUrl = t1._canonicalize$3(importer, t4, t5);
  44678. if (canonicalUrl != null)
  44679. return new A.Tuple3(importer, canonicalUrl, t4, type$.Tuple3_Importer_Uri_Uri);
  44680. }
  44681. return null;
  44682. },
  44683. $signature: 84
  44684. };
  44685. A.ImportCache__canonicalize_closure.prototype = {
  44686. call$0() {
  44687. return this.importer.canonicalize$1(0, this.url);
  44688. },
  44689. $signature: 155
  44690. };
  44691. A.ImportCache_importCanonical_closure.prototype = {
  44692. call$0() {
  44693. var t3, _this = this,
  44694. t1 = _this.canonicalUrl,
  44695. result = _this.importer.load$1(0, t1),
  44696. t2 = _this.$this;
  44697. t2._resultsCache.$indexSet(0, t1, result);
  44698. t3 = _this.originalUrl;
  44699. t1 = t3 == null ? t1 : t3.resolveUri$1(t1);
  44700. t2 = _this.quiet ? $.$get$Logger_quiet() : t2._logger;
  44701. return A.Stylesheet_Stylesheet$parse(result.contents, result.syntax, t2, t1);
  44702. },
  44703. $signature: 85
  44704. };
  44705. A.ImportCache_humanize_closure.prototype = {
  44706. call$1(tuple) {
  44707. return tuple.item2.$eq(0, this.canonicalUrl);
  44708. },
  44709. $signature: 354
  44710. };
  44711. A.ImportCache_humanize_closure0.prototype = {
  44712. call$1(tuple) {
  44713. return tuple.item3;
  44714. },
  44715. $signature: 352
  44716. };
  44717. A.ImportCache_humanize_closure1.prototype = {
  44718. call$1(url) {
  44719. return url.get$path(url).length;
  44720. },
  44721. $signature: 78
  44722. };
  44723. A.Importer.prototype = {
  44724. modificationTime$1(url) {
  44725. return new A.DateTime(Date.now(), false);
  44726. },
  44727. couldCanonicalize$2(url, canonicalUrl) {
  44728. return true;
  44729. }
  44730. };
  44731. A.AsyncImporter.prototype = {};
  44732. A.FilesystemImporter.prototype = {
  44733. canonicalize$1(_, url) {
  44734. if (url.get$scheme() !== "file" && url.get$scheme() !== "")
  44735. return null;
  44736. return A.NullableExtension_andThen(A.resolveImportPath(A.join(this._loadPath, $.$get$context().style.pathFromUri$1(A._parseUri(url)), null)), new A.FilesystemImporter_canonicalize_closure());
  44737. },
  44738. load$1(_, url) {
  44739. var path = $.$get$context().style.pathFromUri$1(A._parseUri(url)),
  44740. t1 = A.readFile(path),
  44741. t2 = A.Syntax_forPath(path),
  44742. t3 = url.get$scheme();
  44743. if (t3 === "")
  44744. A.throwExpression(A.ArgumentError$value(url, "sourceMapUrl", "must be absolute"));
  44745. return new A.ImporterResult(t1, url, t2);
  44746. },
  44747. modificationTime$1(url) {
  44748. return A.modificationTime($.$get$context().style.pathFromUri$1(A._parseUri(url)));
  44749. },
  44750. couldCanonicalize$2(url, canonicalUrl) {
  44751. var t1, t2, t3, basename, canonicalBasename;
  44752. if (url.get$scheme() !== "file" && url.get$scheme() !== "")
  44753. return false;
  44754. if (canonicalUrl.get$scheme() !== "file")
  44755. return false;
  44756. t1 = $.$get$url();
  44757. t2 = url.get$path(url);
  44758. t3 = t1.style;
  44759. basename = A.ParsedPath_ParsedPath$parse(t2, t3).get$basename();
  44760. canonicalBasename = A.ParsedPath_ParsedPath$parse(canonicalUrl.get$path(canonicalUrl), t3).get$basename();
  44761. if (!B.JSString_methods.startsWith$1(basename, "_") && B.JSString_methods.startsWith$1(canonicalBasename, "_"))
  44762. canonicalBasename = B.JSString_methods.substring$1(canonicalBasename, 1);
  44763. return basename === canonicalBasename || basename === t1.withoutExtension$1(canonicalBasename);
  44764. },
  44765. toString$0(_) {
  44766. return this._loadPath;
  44767. }
  44768. };
  44769. A.FilesystemImporter_canonicalize_closure.prototype = {
  44770. call$1(resolved) {
  44771. var t1, t2, t0, _null = null;
  44772. if (J.$eq$(J.get$platform$x(self.process), "win32") || J.$eq$(J.get$platform$x(self.process), "darwin")) {
  44773. t1 = $.$get$context();
  44774. t2 = A._realCasePath(A.absolute(t1.normalize$1(resolved), _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null));
  44775. t0 = t2;
  44776. t2 = t1;
  44777. t1 = t0;
  44778. } else {
  44779. t1 = $.$get$context();
  44780. t2 = t1.canonicalize$1(0, resolved);
  44781. t0 = t2;
  44782. t2 = t1;
  44783. t1 = t0;
  44784. }
  44785. return t2.toUri$1(t1);
  44786. },
  44787. $signature: 159
  44788. };
  44789. A.ImporterResult.prototype = {
  44790. get$sourceMapUrl(_) {
  44791. return this._sourceMapUrl;
  44792. }
  44793. };
  44794. A.resolveImportPath_closure.prototype = {
  44795. call$0() {
  44796. return A._exactlyOne(A._tryPath($.$get$context().withoutExtension$1(this.path) + ".import" + this.extension));
  44797. },
  44798. $signature: 42
  44799. };
  44800. A.resolveImportPath_closure0.prototype = {
  44801. call$0() {
  44802. return A._exactlyOne(A._tryPathWithExtensions(this.path + ".import"));
  44803. },
  44804. $signature: 42
  44805. };
  44806. A._tryPathAsDirectory_closure.prototype = {
  44807. call$0() {
  44808. return A._exactlyOne(A._tryPathWithExtensions(A.join(this.path, "index.import", null)));
  44809. },
  44810. $signature: 42
  44811. };
  44812. A._exactlyOne_closure.prototype = {
  44813. call$1(path) {
  44814. var t1 = $.$get$context();
  44815. return " " + t1.prettyUri$1(t1.toUri$1(path));
  44816. },
  44817. $signature: 5
  44818. };
  44819. A.InterpolationBuffer.prototype = {
  44820. writeCharCode$1(character) {
  44821. this._interpolation_buffer$_text._contents += A.Primitives_stringFromCharCode(character);
  44822. return null;
  44823. },
  44824. add$1(_, expression) {
  44825. this._flushText$0();
  44826. this._interpolation_buffer$_contents.push(expression);
  44827. },
  44828. addInterpolation$1(interpolation) {
  44829. var first, t1, _this = this,
  44830. toAdd = interpolation.contents;
  44831. if (toAdd.length === 0)
  44832. return;
  44833. first = B.JSArray_methods.get$first(toAdd);
  44834. if (typeof first == "string") {
  44835. _this._interpolation_buffer$_text._contents += first;
  44836. toAdd = A.SubListIterable$(toAdd, 1, null, A._arrayInstanceType(toAdd)._precomputed1);
  44837. }
  44838. _this._flushText$0();
  44839. t1 = _this._interpolation_buffer$_contents;
  44840. B.JSArray_methods.addAll$1(t1, toAdd);
  44841. if (typeof B.JSArray_methods.get$last(t1) == "string")
  44842. _this._interpolation_buffer$_text._contents += A.S(t1.pop());
  44843. },
  44844. _flushText$0() {
  44845. var t1 = this._interpolation_buffer$_text,
  44846. t2 = t1._contents;
  44847. if (t2.length === 0)
  44848. return;
  44849. this._interpolation_buffer$_contents.push(t2.charCodeAt(0) == 0 ? t2 : t2);
  44850. t1._contents = "";
  44851. },
  44852. interpolation$1(span) {
  44853. var t1 = A.List_List$of(this._interpolation_buffer$_contents, true, type$.Object),
  44854. t2 = this._interpolation_buffer$_text._contents;
  44855. if (t2.length !== 0)
  44856. t1.push(t2.charCodeAt(0) == 0 ? t2 : t2);
  44857. return A.Interpolation$(t1, span);
  44858. },
  44859. toString$0(_) {
  44860. var t1, t2, _i, t3, element;
  44861. for (t1 = this._interpolation_buffer$_contents, t2 = t1.length, _i = 0, t3 = ""; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
  44862. element = t1[_i];
  44863. t3 = typeof element == "string" ? t3 + element : t3 + "#{" + A.S(element) + A.Primitives_stringFromCharCode(125);
  44864. }
  44865. t1 = t3 + this._interpolation_buffer$_text.toString$0(0);
  44866. return t1.charCodeAt(0) == 0 ? t1 : t1;
  44867. }
  44868. };
  44869. A._realCasePath_helper.prototype = {
  44870. call$1(path) {
  44871. var dirname = $.$get$context().dirname$1(path);
  44872. if (dirname === path)
  44873. return path;
  44874. return $._realCaseCache.putIfAbsent$2(path, new A._realCasePath_helper_closure(this, dirname, path));
  44875. },
  44876. $signature: 5
  44877. };
  44878. A._realCasePath_helper_closure.prototype = {
  44879. call$0() {
  44880. var matches, t2, exception,
  44881. realDirname = this.helper.call$1(this.dirname),
  44882. t1 = this.path,
  44883. basename = A.ParsedPath_ParsedPath$parse(t1, $.$get$context().style).get$basename();
  44884. try {
  44885. matches = J.where$1$ax(A.listDir(realDirname, false), new A._realCasePath_helper__closure(basename)).toList$0(0);
  44886. t2 = J.get$length$asx(matches) !== 1 ? A.join(realDirname, basename, null) : J.$index$asx(matches, 0);
  44887. return t2;
  44888. } catch (exception) {
  44889. if (A.unwrapException(exception) instanceof A.FileSystemException)
  44890. return t1;
  44891. else
  44892. throw exception;
  44893. }
  44894. },
  44895. $signature: 30
  44896. };
  44897. A._realCasePath_helper__closure.prototype = {
  44898. call$1(realPath) {
  44899. return A.equalsIgnoreCase(A.ParsedPath_ParsedPath$parse(realPath, $.$get$context().style).get$basename(), this.basename);
  44900. },
  44901. $signature: 8
  44902. };
  44903. A.FileSystemException.prototype = {
  44904. toString$0(_) {
  44905. var t1 = $.$get$context();
  44906. return t1.prettyUri$1(t1.toUri$1(this.path)) + ": " + this.message;
  44907. },
  44908. get$message(receiver) {
  44909. return this.message;
  44910. }
  44911. };
  44912. A.Stderr.prototype = {
  44913. writeln$1(object) {
  44914. J.write$1$x(this._stderr, A.S(object == null ? "" : object) + "\n");
  44915. },
  44916. writeln$0() {
  44917. return this.writeln$1(null);
  44918. }
  44919. };
  44920. A._readFile_closure.prototype = {
  44921. call$0() {
  44922. return J.readFileSync$2$x(A.fs(), this.path, this.encoding);
  44923. },
  44924. $signature: 86
  44925. };
  44926. A.writeFile_closure.prototype = {
  44927. call$0() {
  44928. return J.writeFileSync$2$x(A.fs(), this.path, this.contents);
  44929. },
  44930. $signature: 0
  44931. };
  44932. A.deleteFile_closure.prototype = {
  44933. call$0() {
  44934. return J.unlinkSync$1$x(A.fs(), this.path);
  44935. },
  44936. $signature: 0
  44937. };
  44938. A.readStdin_closure.prototype = {
  44939. call$1(result) {
  44940. this._box_0.contents = result;
  44941. this.completer.complete$1(result);
  44942. },
  44943. $signature: 103
  44944. };
  44945. A.readStdin_closure0.prototype = {
  44946. call$1(chunk) {
  44947. this.sink.add$1(0, type$.List_int._as(chunk));
  44948. },
  44949. call$0() {
  44950. return this.call$1(null);
  44951. },
  44952. "call*": "call$1",
  44953. $requiredArgCount: 0,
  44954. $defaultValues() {
  44955. return [null];
  44956. },
  44957. $signature: 87
  44958. };
  44959. A.readStdin_closure1.prototype = {
  44960. call$1(_) {
  44961. this.sink.close$0(0);
  44962. },
  44963. call$0() {
  44964. return this.call$1(null);
  44965. },
  44966. "call*": "call$1",
  44967. $requiredArgCount: 0,
  44968. $defaultValues() {
  44969. return [null];
  44970. },
  44971. $signature: 87
  44972. };
  44973. A.readStdin_closure2.prototype = {
  44974. call$1(e) {
  44975. var t1 = $.$get$stderr();
  44976. t1.writeln$1("Failed to read from stdin");
  44977. t1.writeln$1(e);
  44978. e.toString;
  44979. this.completer.completeError$1(e);
  44980. },
  44981. call$0() {
  44982. return this.call$1(null);
  44983. },
  44984. "call*": "call$1",
  44985. $requiredArgCount: 0,
  44986. $defaultValues() {
  44987. return [null];
  44988. },
  44989. $signature: 87
  44990. };
  44991. A.fileExists_closure.prototype = {
  44992. call$0() {
  44993. var error, systemError, exception,
  44994. t1 = this.path;
  44995. if (!J.existsSync$1$x(A.fs(), t1))
  44996. return false;
  44997. try {
  44998. t1 = J.isFile$0$x(J.statSync$1$x(A.fs(), t1));
  44999. return t1;
  45000. } catch (exception) {
  45001. error = A.unwrapException(exception);
  45002. systemError = type$.JsSystemError._as(error);
  45003. if (J.$eq$(J.get$code$x(systemError), "ENOENT"))
  45004. return false;
  45005. throw exception;
  45006. }
  45007. },
  45008. $signature: 26
  45009. };
  45010. A.dirExists_closure.prototype = {
  45011. call$0() {
  45012. var error, systemError, exception,
  45013. t1 = this.path;
  45014. if (!J.existsSync$1$x(A.fs(), t1))
  45015. return false;
  45016. try {
  45017. t1 = J.isDirectory$0$x(J.statSync$1$x(A.fs(), t1));
  45018. return t1;
  45019. } catch (exception) {
  45020. error = A.unwrapException(exception);
  45021. systemError = type$.JsSystemError._as(error);
  45022. if (J.$eq$(J.get$code$x(systemError), "ENOENT"))
  45023. return false;
  45024. throw exception;
  45025. }
  45026. },
  45027. $signature: 26
  45028. };
  45029. A.ensureDir_closure.prototype = {
  45030. call$0() {
  45031. var error, systemError, exception, t1;
  45032. try {
  45033. J.mkdirSync$1$x(A.fs(), this.path);
  45034. } catch (exception) {
  45035. error = A.unwrapException(exception);
  45036. systemError = type$.JsSystemError._as(error);
  45037. if (J.$eq$(J.get$code$x(systemError), "EEXIST"))
  45038. return;
  45039. if (!J.$eq$(J.get$code$x(systemError), "ENOENT"))
  45040. throw exception;
  45041. t1 = this.path;
  45042. A.ensureDir($.$get$context().dirname$1(t1));
  45043. J.mkdirSync$1$x(A.fs(), t1);
  45044. }
  45045. },
  45046. $signature: 0
  45047. };
  45048. A.listDir_closure.prototype = {
  45049. call$0() {
  45050. var t1 = this.path;
  45051. if (!this.recursive)
  45052. return J.map$1$1$ax(J.readdirSync$1$x(A.fs(), t1), new A.listDir__closure(t1), type$.String).where$1(0, new A.listDir__closure0());
  45053. else
  45054. return new A.listDir_closure_list().call$1(t1);
  45055. },
  45056. $signature: 164
  45057. };
  45058. A.listDir__closure.prototype = {
  45059. call$1(child) {
  45060. return A.join(this.path, A._asString(child), null);
  45061. },
  45062. $signature: 100
  45063. };
  45064. A.listDir__closure0.prototype = {
  45065. call$1(child) {
  45066. return !A.dirExists(child);
  45067. },
  45068. $signature: 8
  45069. };
  45070. A.listDir_closure_list.prototype = {
  45071. call$1($parent) {
  45072. return J.expand$1$1$ax(J.readdirSync$1$x(A.fs(), $parent), new A.listDir__list_closure($parent, this), type$.String);
  45073. },
  45074. $signature: 165
  45075. };
  45076. A.listDir__list_closure.prototype = {
  45077. call$1(child) {
  45078. var path = A.join(this.parent, A._asString(child), null);
  45079. return A.dirExists(path) ? this.list.call$1(path) : A._setArrayType([path], type$.JSArray_String);
  45080. },
  45081. $signature: 166
  45082. };
  45083. A.modificationTime_closure.prototype = {
  45084. call$0() {
  45085. var t2,
  45086. t1 = J.getTime$0$x(J.get$mtime$x(J.statSync$1$x(A.fs(), this.path)));
  45087. if (Math.abs(t1) <= 864e13)
  45088. t2 = false;
  45089. else
  45090. t2 = true;
  45091. if (t2)
  45092. A.throwExpression(A.ArgumentError$("DateTime is outside valid range: " + A.S(t1), null));
  45093. A.checkNotNullable(false, "isUtc", type$.bool);
  45094. return new A.DateTime(t1, false);
  45095. },
  45096. $signature: 167
  45097. };
  45098. A.watchDir_closure.prototype = {
  45099. call$2(path, _) {
  45100. var t1 = this._box_0.controller;
  45101. return t1 == null ? null : t1.add$1(0, new A.WatchEvent(B.ChangeType_add, path));
  45102. },
  45103. call$1(path) {
  45104. return this.call$2(path, null);
  45105. },
  45106. "call*": "call$2",
  45107. $requiredArgCount: 1,
  45108. $defaultValues() {
  45109. return [null];
  45110. },
  45111. $signature: 168
  45112. };
  45113. A.watchDir_closure0.prototype = {
  45114. call$2(path, _) {
  45115. var t1 = this._box_0.controller;
  45116. return t1 == null ? null : t1.add$1(0, new A.WatchEvent(B.ChangeType_modify, path));
  45117. },
  45118. call$1(path) {
  45119. return this.call$2(path, null);
  45120. },
  45121. "call*": "call$2",
  45122. $requiredArgCount: 1,
  45123. $defaultValues() {
  45124. return [null];
  45125. },
  45126. $signature: 168
  45127. };
  45128. A.watchDir_closure1.prototype = {
  45129. call$1(path) {
  45130. var t1 = this._box_0.controller;
  45131. return t1 == null ? null : t1.add$1(0, new A.WatchEvent(B.ChangeType_remove, path));
  45132. },
  45133. $signature: 103
  45134. };
  45135. A.watchDir_closure2.prototype = {
  45136. call$1(error) {
  45137. var t1 = this._box_0.controller;
  45138. return t1 == null ? null : t1.addError$1(error);
  45139. },
  45140. $signature: 118
  45141. };
  45142. A.watchDir_closure3.prototype = {
  45143. call$0() {
  45144. var controller = A.StreamController_StreamController(new A.watchDir__closure(this.watcher), null, null, null, false, type$.WatchEvent);
  45145. this._box_0.controller = controller;
  45146. this.completer.complete$1(new A._ControllerStream(controller, A._instanceType(controller)._eval$1("_ControllerStream<1>")));
  45147. },
  45148. $signature: 1
  45149. };
  45150. A.watchDir__closure.prototype = {
  45151. call$0() {
  45152. J.close$0$x(this.watcher);
  45153. },
  45154. $signature: 1
  45155. };
  45156. A._QuietLogger.prototype = {
  45157. warn$4$deprecation$span$trace(_, message, deprecation, span, trace) {
  45158. },
  45159. warn$1($receiver, message) {
  45160. return this.warn$4$deprecation$span$trace($receiver, message, false, null, null);
  45161. },
  45162. warn$2$deprecation($receiver, message, deprecation) {
  45163. return this.warn$4$deprecation$span$trace($receiver, message, deprecation, null, null);
  45164. },
  45165. warn$2$span($receiver, message, span) {
  45166. return this.warn$4$deprecation$span$trace($receiver, message, false, span, null);
  45167. },
  45168. warn$3$deprecation$span($receiver, message, deprecation, span) {
  45169. return this.warn$4$deprecation$span$trace($receiver, message, deprecation, span, null);
  45170. },
  45171. warn$2$trace($receiver, message, trace) {
  45172. return this.warn$4$deprecation$span$trace($receiver, message, false, null, trace);
  45173. },
  45174. debug$2(_, message, span) {
  45175. }
  45176. };
  45177. A.StderrLogger.prototype = {
  45178. warn$4$deprecation$span$trace(_, message, deprecation, span, trace) {
  45179. var t2, t3, t4,
  45180. t1 = this.color;
  45181. if (t1) {
  45182. t2 = $.$get$stderr();
  45183. t3 = t2._stderr;
  45184. t4 = J.getInterceptor$x(t3);
  45185. t4.write$1(t3, "\x1b[33m\x1b[1m");
  45186. if (deprecation)
  45187. t4.write$1(t3, "Deprecation ");
  45188. t4.write$1(t3, "Warning\x1b[0m");
  45189. } else {
  45190. if (deprecation)
  45191. J.write$1$x($.$get$stderr()._stderr, "DEPRECATION ");
  45192. t2 = $.$get$stderr();
  45193. J.write$1$x(t2._stderr, "WARNING");
  45194. }
  45195. if (span == null)
  45196. t2.writeln$1(": " + message);
  45197. else if (trace != null)
  45198. t2.writeln$1(": " + message + "\n\n" + span.highlight$1$color(t1));
  45199. else
  45200. t2.writeln$1(" on " + span.message$2$color(0, "\n" + message, t1));
  45201. if (trace != null)
  45202. t2.writeln$1(A.indent(B.JSString_methods.trimRight$0(trace.toString$0(0)), 4));
  45203. t2.writeln$0();
  45204. },
  45205. warn$1($receiver, message) {
  45206. return this.warn$4$deprecation$span$trace($receiver, message, false, null, null);
  45207. },
  45208. warn$2$deprecation($receiver, message, deprecation) {
  45209. return this.warn$4$deprecation$span$trace($receiver, message, deprecation, null, null);
  45210. },
  45211. warn$2$span($receiver, message, span) {
  45212. return this.warn$4$deprecation$span$trace($receiver, message, false, span, null);
  45213. },
  45214. warn$3$deprecation$span($receiver, message, deprecation, span) {
  45215. return this.warn$4$deprecation$span$trace($receiver, message, deprecation, span, null);
  45216. },
  45217. warn$2$trace($receiver, message, trace) {
  45218. return this.warn$4$deprecation$span$trace($receiver, message, false, null, trace);
  45219. },
  45220. debug$2(_, message, span) {
  45221. var url, t3, t4,
  45222. t1 = span.file,
  45223. t2 = span._file$_start;
  45224. if (A.FileLocation$_(t1, t2).file.url == null)
  45225. url = "-";
  45226. else {
  45227. t3 = A.FileLocation$_(t1, t2);
  45228. url = $.$get$context().prettyUri$1(t3.file.url);
  45229. }
  45230. t3 = $.$get$stderr();
  45231. t2 = A.FileLocation$_(t1, t2);
  45232. t2 = t2.file.getLine$1(t2.offset);
  45233. t1 = t3._stderr;
  45234. t4 = J.getInterceptor$x(t1);
  45235. t4.write$1(t1, url + ":" + (t2 + 1) + " ");
  45236. t4.write$1(t1, this.color ? "\x1b[1mDebug\x1b[0m" : "DEBUG");
  45237. t3.writeln$1(": " + message);
  45238. }
  45239. };
  45240. A.TerseLogger.prototype = {
  45241. warn$4$deprecation$span$trace(_, message, deprecation, span, trace) {
  45242. var firstParagraph, t1, t2, count;
  45243. if (deprecation) {
  45244. firstParagraph = B.JSArray_methods.get$first(message.split("\n\n"));
  45245. t1 = this._warningCounts;
  45246. t2 = t1.$index(0, firstParagraph);
  45247. count = (t2 == null ? 0 : t2) + 1;
  45248. t1.$indexSet(0, firstParagraph, count);
  45249. if (count > 5)
  45250. return;
  45251. }
  45252. this._inner.warn$4$deprecation$span$trace(0, message, deprecation, span, trace);
  45253. },
  45254. warn$2$deprecation($receiver, message, deprecation) {
  45255. return this.warn$4$deprecation$span$trace($receiver, message, deprecation, null, null);
  45256. },
  45257. warn$2$span($receiver, message, span) {
  45258. return this.warn$4$deprecation$span$trace($receiver, message, false, span, null);
  45259. },
  45260. warn$3$deprecation$span($receiver, message, deprecation, span) {
  45261. return this.warn$4$deprecation$span$trace($receiver, message, deprecation, span, null);
  45262. },
  45263. warn$2$trace($receiver, message, trace) {
  45264. return this.warn$4$deprecation$span$trace($receiver, message, false, null, trace);
  45265. },
  45266. debug$2(_, message, span) {
  45267. return this._inner.debug$2(0, message, span);
  45268. },
  45269. summarize$1$node(node) {
  45270. var t2, total,
  45271. t1 = this._warningCounts;
  45272. t1 = t1.get$values(t1);
  45273. t2 = A._instanceType(t1);
  45274. total = A.IterableIntegerExtension_get_sum(new A.MappedIterable(new A.WhereIterable(t1, new A.TerseLogger_summarize_closure(), t2._eval$1("WhereIterable<Iterable.E>")), new A.TerseLogger_summarize_closure0(), t2._eval$1("MappedIterable<Iterable.E,int>")));
  45275. if (total > 0) {
  45276. t1 = node ? "" : string$.x0aRun_i;
  45277. this._inner.warn$1(0, "" + total + string$.x20repet + t1);
  45278. }
  45279. }
  45280. };
  45281. A.TerseLogger_summarize_closure.prototype = {
  45282. call$1(count) {
  45283. return count > 5;
  45284. },
  45285. $signature: 57
  45286. };
  45287. A.TerseLogger_summarize_closure0.prototype = {
  45288. call$1(count) {
  45289. return count - 5;
  45290. },
  45291. $signature: 171
  45292. };
  45293. A.TrackingLogger.prototype = {
  45294. warn$4$deprecation$span$trace(_, message, deprecation, span, trace) {
  45295. this._emittedWarning = true;
  45296. this._tracking$_logger.warn$4$deprecation$span$trace(0, message, deprecation, span, trace);
  45297. },
  45298. warn$2$deprecation($receiver, message, deprecation) {
  45299. return this.warn$4$deprecation$span$trace($receiver, message, deprecation, null, null);
  45300. },
  45301. warn$2$span($receiver, message, span) {
  45302. return this.warn$4$deprecation$span$trace($receiver, message, false, span, null);
  45303. },
  45304. warn$3$deprecation$span($receiver, message, deprecation, span) {
  45305. return this.warn$4$deprecation$span$trace($receiver, message, deprecation, span, null);
  45306. },
  45307. warn$2$trace($receiver, message, trace) {
  45308. return this.warn$4$deprecation$span$trace($receiver, message, false, null, trace);
  45309. },
  45310. debug$2(_, message, span) {
  45311. this._emittedDebug = true;
  45312. this._tracking$_logger.debug$2(0, message, span);
  45313. }
  45314. };
  45315. A.BuiltInModule.prototype = {
  45316. get$upstream() {
  45317. return B.List_empty6;
  45318. },
  45319. get$variableNodes() {
  45320. return B.Map_empty0;
  45321. },
  45322. get$extensionStore() {
  45323. return B.C_EmptyExtensionStore;
  45324. },
  45325. get$css(_) {
  45326. return new A.CssStylesheet(B.List_empty3, A.SourceFile$decoded(B.List_empty4, this.url).span$2(0, 0, 0));
  45327. },
  45328. get$transitivelyContainsCss() {
  45329. return false;
  45330. },
  45331. get$transitivelyContainsExtensions() {
  45332. return false;
  45333. },
  45334. setVariable$3($name, value, nodeWithSpan) {
  45335. if (!this.variables.containsKey$1($name))
  45336. throw A.wrapException(A.SassScriptException$("Undefined variable.", null));
  45337. throw A.wrapException(A.SassScriptException$("Cannot modify built-in variable.", null));
  45338. },
  45339. variableIdentity$1($name) {
  45340. return this;
  45341. },
  45342. cloneCss$0() {
  45343. return this;
  45344. },
  45345. $isModule: 1,
  45346. get$url(receiver) {
  45347. return this.url;
  45348. },
  45349. get$functions(receiver) {
  45350. return this.functions;
  45351. },
  45352. get$mixins() {
  45353. return this.mixins;
  45354. },
  45355. get$variables() {
  45356. return this.variables;
  45357. }
  45358. };
  45359. A.ForwardedModuleView.prototype = {
  45360. get$url(_) {
  45361. var t1 = this._forwarded_view$_inner;
  45362. return t1.get$url(t1);
  45363. },
  45364. get$upstream() {
  45365. return this._forwarded_view$_inner.get$upstream();
  45366. },
  45367. get$extensionStore() {
  45368. return this._forwarded_view$_inner.get$extensionStore();
  45369. },
  45370. get$css(_) {
  45371. var t1 = this._forwarded_view$_inner;
  45372. return t1.get$css(t1);
  45373. },
  45374. get$transitivelyContainsCss() {
  45375. return this._forwarded_view$_inner.get$transitivelyContainsCss();
  45376. },
  45377. get$transitivelyContainsExtensions() {
  45378. return this._forwarded_view$_inner.get$transitivelyContainsExtensions();
  45379. },
  45380. setVariable$3($name, value, nodeWithSpan) {
  45381. var prefix,
  45382. _s19_ = "Undefined variable.",
  45383. t1 = this._rule,
  45384. shownVariables = t1.shownVariables,
  45385. hiddenVariables = t1.hiddenVariables;
  45386. if (shownVariables != null && !shownVariables._base.contains$1(0, $name))
  45387. throw A.wrapException(A.SassScriptException$(_s19_, null));
  45388. else if (hiddenVariables != null && hiddenVariables._base.contains$1(0, $name))
  45389. throw A.wrapException(A.SassScriptException$(_s19_, null));
  45390. prefix = t1.prefix;
  45391. if (prefix != null) {
  45392. if (!B.JSString_methods.startsWith$1($name, prefix))
  45393. throw A.wrapException(A.SassScriptException$(_s19_, null));
  45394. $name = B.JSString_methods.substring$1($name, prefix.length);
  45395. }
  45396. return this._forwarded_view$_inner.setVariable$3($name, value, nodeWithSpan);
  45397. },
  45398. variableIdentity$1($name) {
  45399. var prefix = this._rule.prefix;
  45400. if (prefix != null)
  45401. $name = B.JSString_methods.substring$1($name, prefix.length);
  45402. return this._forwarded_view$_inner.variableIdentity$1($name);
  45403. },
  45404. $eq(_, other) {
  45405. if (other == null)
  45406. return false;
  45407. return other instanceof A.ForwardedModuleView && this._forwarded_view$_inner.$eq(0, other._forwarded_view$_inner) && this._rule === other._rule;
  45408. },
  45409. get$hashCode(_) {
  45410. var t1 = this._forwarded_view$_inner;
  45411. return (t1.get$hashCode(t1) ^ A.Primitives_objectHashCode(this._rule)) >>> 0;
  45412. },
  45413. cloneCss$0() {
  45414. return A.ForwardedModuleView$(this._forwarded_view$_inner.cloneCss$0(), this._rule, this.$ti._precomputed1);
  45415. },
  45416. toString$0(_) {
  45417. return "forwarded " + this._forwarded_view$_inner.toString$0(0);
  45418. },
  45419. $isModule: 1,
  45420. get$variables() {
  45421. return this.variables;
  45422. },
  45423. get$variableNodes() {
  45424. return this.variableNodes;
  45425. },
  45426. get$functions(receiver) {
  45427. return this.functions;
  45428. },
  45429. get$mixins() {
  45430. return this.mixins;
  45431. }
  45432. };
  45433. A.ShadowedModuleView.prototype = {
  45434. get$url(_) {
  45435. var t1 = this._shadowed_view$_inner;
  45436. return t1.get$url(t1);
  45437. },
  45438. get$upstream() {
  45439. return this._shadowed_view$_inner.get$upstream();
  45440. },
  45441. get$extensionStore() {
  45442. return this._shadowed_view$_inner.get$extensionStore();
  45443. },
  45444. get$css(_) {
  45445. var t1 = this._shadowed_view$_inner;
  45446. return t1.get$css(t1);
  45447. },
  45448. get$transitivelyContainsCss() {
  45449. return this._shadowed_view$_inner.get$transitivelyContainsCss();
  45450. },
  45451. get$transitivelyContainsExtensions() {
  45452. return this._shadowed_view$_inner.get$transitivelyContainsExtensions();
  45453. },
  45454. setVariable$3($name, value, nodeWithSpan) {
  45455. if (!this.variables.containsKey$1($name))
  45456. throw A.wrapException(A.SassScriptException$("Undefined variable.", null));
  45457. else
  45458. return this._shadowed_view$_inner.setVariable$3($name, value, nodeWithSpan);
  45459. },
  45460. variableIdentity$1($name) {
  45461. return this._shadowed_view$_inner.variableIdentity$1($name);
  45462. },
  45463. $eq(_, other) {
  45464. var t1, t2, _this = this;
  45465. if (other == null)
  45466. return false;
  45467. if (other instanceof A.ShadowedModuleView)
  45468. if (_this._shadowed_view$_inner.$eq(0, other._shadowed_view$_inner)) {
  45469. t1 = _this.variables;
  45470. t1 = t1.get$keys(t1);
  45471. t2 = other.variables;
  45472. if (B.C_IterableEquality.equals$2(0, t1, t2.get$keys(t2))) {
  45473. t1 = _this.functions;
  45474. t1 = t1.get$keys(t1);
  45475. t2 = other.functions;
  45476. if (B.C_IterableEquality.equals$2(0, t1, t2.get$keys(t2))) {
  45477. t1 = _this.mixins;
  45478. t1 = t1.get$keys(t1);
  45479. t2 = other.mixins;
  45480. t2 = B.C_IterableEquality.equals$2(0, t1, t2.get$keys(t2));
  45481. t1 = t2;
  45482. } else
  45483. t1 = false;
  45484. } else
  45485. t1 = false;
  45486. } else
  45487. t1 = false;
  45488. else
  45489. t1 = false;
  45490. return t1;
  45491. },
  45492. get$hashCode(_) {
  45493. var t1 = this._shadowed_view$_inner;
  45494. return t1.get$hashCode(t1);
  45495. },
  45496. cloneCss$0() {
  45497. var _this = this;
  45498. return new A.ShadowedModuleView(_this._shadowed_view$_inner.cloneCss$0(), _this.variables, _this.variableNodes, _this.functions, _this.mixins, _this.$ti);
  45499. },
  45500. toString$0(_) {
  45501. return "shadowed " + this._shadowed_view$_inner.toString$0(0);
  45502. },
  45503. $isModule: 1,
  45504. get$variables() {
  45505. return this.variables;
  45506. },
  45507. get$variableNodes() {
  45508. return this.variableNodes;
  45509. },
  45510. get$functions(receiver) {
  45511. return this.functions;
  45512. },
  45513. get$mixins() {
  45514. return this.mixins;
  45515. }
  45516. };
  45517. A.JSArray0.prototype = {};
  45518. A.Chokidar.prototype = {};
  45519. A.ChokidarOptions.prototype = {};
  45520. A.ChokidarWatcher.prototype = {};
  45521. A.JSFunction.prototype = {};
  45522. A.NodeImporterResult.prototype = {};
  45523. A.RenderContext.prototype = {};
  45524. A.RenderContextOptions.prototype = {};
  45525. A.RenderContextResult.prototype = {};
  45526. A.RenderContextResultStats.prototype = {};
  45527. A.JSClass.prototype = {};
  45528. A.JSUrl.prototype = {};
  45529. A._PropertyDescriptor.prototype = {};
  45530. A.AtRootQueryParser.prototype = {
  45531. parse$0() {
  45532. return this.wrapSpanFormatException$1(new A.AtRootQueryParser_parse_closure(this));
  45533. }
  45534. };
  45535. A.AtRootQueryParser_parse_closure.prototype = {
  45536. call$0() {
  45537. var include, atRules,
  45538. t1 = this.$this,
  45539. t2 = t1.scanner;
  45540. t2.expectChar$1(40);
  45541. t1.whitespace$0();
  45542. include = t1.scanIdentifier$1("with");
  45543. if (!include)
  45544. t1.expectIdentifier$2$name("without", '"with" or "without"');
  45545. t1.whitespace$0();
  45546. t2.expectChar$1(58);
  45547. t1.whitespace$0();
  45548. atRules = A.LinkedHashSet_LinkedHashSet$_empty(type$.String);
  45549. do {
  45550. atRules.add$1(0, t1.identifier$0().toLowerCase());
  45551. t1.whitespace$0();
  45552. } while (t1.lookingAtIdentifier$0());
  45553. t2.expectChar$1(41);
  45554. t2.expectDone$0();
  45555. return new A.AtRootQuery(include, atRules, atRules.contains$1(0, "all"), atRules.contains$1(0, "rule"));
  45556. },
  45557. $signature: 119
  45558. };
  45559. A._disallowedFunctionNames_closure.prototype = {
  45560. call$1($function) {
  45561. return $function.name;
  45562. },
  45563. $signature: 347
  45564. };
  45565. A.CssParser.prototype = {
  45566. get$plainCss() {
  45567. return true;
  45568. },
  45569. silentComment$0() {
  45570. var t1 = this.scanner,
  45571. t2 = t1._string_scanner$_position;
  45572. this.super$Parser$silentComment();
  45573. this.error$2(0, string$.Silent, t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  45574. },
  45575. atRule$2$root(child, root) {
  45576. var $name, urlStart, next, url, urlSpan, modifiers, t2, _this = this,
  45577. t1 = _this.scanner,
  45578. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  45579. t1.expectChar$1(64);
  45580. $name = _this.interpolatedIdentifier$0();
  45581. _this.whitespace$0();
  45582. switch ($name.get$asPlain()) {
  45583. case "at-root":
  45584. case "content":
  45585. case "debug":
  45586. case "each":
  45587. case "error":
  45588. case "extend":
  45589. case "for":
  45590. case "function":
  45591. case "if":
  45592. case "include":
  45593. case "mixin":
  45594. case "return":
  45595. case "warn":
  45596. case "while":
  45597. _this.almostAnyValue$0();
  45598. _this.error$2(0, "This at-rule isn't allowed in plain CSS.", t1.spanFrom$1(start));
  45599. break;
  45600. case "import":
  45601. urlStart = new A._SpanScannerState(t1, t1._string_scanner$_position);
  45602. next = t1.peekChar$0();
  45603. url = next === 117 || next === 85 ? _this.dynamicUrl$0() : new A.StringExpression(_this.interpolatedString$0().asInterpolation$1$static(true), false);
  45604. urlSpan = t1.spanFrom$1(urlStart);
  45605. _this.whitespace$0();
  45606. modifiers = _this.tryImportModifiers$0();
  45607. _this.expectStatementSeparator$1("@import rule");
  45608. t2 = A._setArrayType([new A.StaticImport(A.Interpolation$(A._setArrayType([url], type$.JSArray_Object), urlSpan), modifiers, t1.spanFrom$1(urlStart))], type$.JSArray_Import);
  45609. t1 = t1.spanFrom$1(start);
  45610. return new A.ImportRule(A.List_List$unmodifiable(t2, type$.Import), t1);
  45611. case "media":
  45612. return _this.mediaRule$1(start);
  45613. case "-moz-document":
  45614. return _this.mozDocumentRule$2(start, $name);
  45615. case "supports":
  45616. return _this.supportsRule$1(start);
  45617. default:
  45618. return _this.unknownAtRule$2(start, $name);
  45619. }
  45620. },
  45621. identifierLike$0() {
  45622. var t2, allowEmptySecondArg, $arguments, t3, t4, _this = this,
  45623. t1 = _this.scanner,
  45624. start = new A._SpanScannerState(t1, t1._string_scanner$_position),
  45625. identifier = _this.interpolatedIdentifier$0(),
  45626. plain = identifier.get$asPlain(),
  45627. lower = plain.toLowerCase(),
  45628. specialFunction = _this.trySpecialFunction$2(lower, start);
  45629. if (specialFunction != null)
  45630. return specialFunction;
  45631. t2 = t1._string_scanner$_position;
  45632. if (!t1.scanChar$1(40))
  45633. return new A.StringExpression(identifier, false);
  45634. allowEmptySecondArg = lower === "var";
  45635. $arguments = A._setArrayType([], type$.JSArray_Expression);
  45636. if (!t1.scanChar$1(41)) {
  45637. do {
  45638. _this.whitespace$0();
  45639. if (allowEmptySecondArg && $arguments.length === 1 && t1.peekChar$0() === 41) {
  45640. t3 = A.FileLocation$_(t1._sourceFile, t1._string_scanner$_position);
  45641. t4 = t3.offset;
  45642. t4 = A._FileSpan$(t3.file, t4, t4);
  45643. $arguments.push(new A.StringExpression(A.Interpolation$(A._setArrayType([""], type$.JSArray_Object), t4), false));
  45644. break;
  45645. }
  45646. $arguments.push(_this.expressionUntilComma$1$singleEquals(true));
  45647. _this.whitespace$0();
  45648. } while (t1.scanChar$1(44));
  45649. t1.expectChar$1(41);
  45650. }
  45651. if ($.$get$_disallowedFunctionNames().contains$1(0, plain))
  45652. _this.error$2(0, string$.This_f, t1.spanFrom$1(start));
  45653. t3 = A.Interpolation$(A._setArrayType([new A.StringExpression(identifier, false)], type$.JSArray_Object), identifier.span);
  45654. t2 = t1.spanFrom$1(new A._SpanScannerState(t1, t2));
  45655. t4 = type$.Expression;
  45656. return new A.InterpolatedFunctionExpression(t3, new A.ArgumentInvocation(A.List_List$unmodifiable($arguments, t4), A.ConstantMap_ConstantMap$from(B.Map_empty2, type$.String, t4), null, null, t2), t1.spanFrom$1(start));
  45657. },
  45658. namespacedExpression$2(namespace, start) {
  45659. var expression = this.super$StylesheetParser$namespacedExpression(namespace, start);
  45660. this.error$2(0, string$.Modulen, expression.get$span(expression));
  45661. }
  45662. };
  45663. A.KeyframeSelectorParser.prototype = {
  45664. parse$0() {
  45665. return this.wrapSpanFormatException$1(new A.KeyframeSelectorParser_parse_closure(this));
  45666. },
  45667. _percentage$0() {
  45668. var t3, next,
  45669. t1 = this.scanner,
  45670. t2 = t1.scanChar$1(43) ? "" + A.Primitives_stringFromCharCode(43) : "",
  45671. second = t1.peekChar$0();
  45672. if (!A.isDigit(second) && second !== 46)
  45673. t1.error$1(0, "Expected number.");
  45674. while (true) {
  45675. t3 = t1.peekChar$0();
  45676. if (!(t3 != null && t3 >= 48 && t3 <= 57))
  45677. break;
  45678. t2 += A.Primitives_stringFromCharCode(t1.readChar$0());
  45679. }
  45680. if (t1.peekChar$0() === 46) {
  45681. t2 += A.Primitives_stringFromCharCode(t1.readChar$0());
  45682. while (true) {
  45683. t3 = t1.peekChar$0();
  45684. if (!(t3 != null && t3 >= 48 && t3 <= 57))
  45685. break;
  45686. t2 += A.Primitives_stringFromCharCode(t1.readChar$0());
  45687. }
  45688. }
  45689. if (this.scanIdentChar$1(101)) {
  45690. t2 += A.Primitives_stringFromCharCode(101);
  45691. next = t1.peekChar$0();
  45692. if (next === 43 || next === 45)
  45693. t2 += A.Primitives_stringFromCharCode(t1.readChar$0());
  45694. if (!A.isDigit(t1.peekChar$0()))
  45695. t1.error$1(0, "Expected digit.");
  45696. while (true) {
  45697. t3 = t1.peekChar$0();
  45698. if (!(t3 != null && t3 >= 48 && t3 <= 57))
  45699. break;
  45700. t2 += A.Primitives_stringFromCharCode(t1.readChar$0());
  45701. }
  45702. }
  45703. t1.expectChar$1(37);
  45704. t2 += A.Primitives_stringFromCharCode(37);
  45705. return t2.charCodeAt(0) == 0 ? t2 : t2;
  45706. }
  45707. };
  45708. A.KeyframeSelectorParser_parse_closure.prototype = {
  45709. call$0() {
  45710. var selectors = A._setArrayType([], type$.JSArray_String),
  45711. t1 = this.$this,
  45712. t2 = t1.scanner;
  45713. do {
  45714. t1.whitespace$0();
  45715. if (t1.lookingAtIdentifier$0())
  45716. if (t1.scanIdentifier$1("from"))
  45717. selectors.push("from");
  45718. else {
  45719. t1.expectIdentifier$2$name("to", '"to" or "from"');
  45720. selectors.push("to");
  45721. }
  45722. else
  45723. selectors.push(t1._percentage$0());
  45724. t1.whitespace$0();
  45725. } while (t2.scanChar$1(44));
  45726. t2.expectDone$0();
  45727. return selectors;
  45728. },
  45729. $signature: 50
  45730. };
  45731. A.MediaQueryParser.prototype = {
  45732. parse$0() {
  45733. return this.wrapSpanFormatException$1(new A.MediaQueryParser_parse_closure(this));
  45734. },
  45735. _mediaQuery$0() {
  45736. var conditions, conjunction, identifier1, identifier2, type, modifier, _this = this, _s3_ = "and", _null = null;
  45737. if (_this.scanner.peekChar$0() === 40) {
  45738. conditions = A._setArrayType([_this._mediaInParens$0()], type$.JSArray_String);
  45739. _this.whitespace$0();
  45740. if (_this.scanIdentifier$1(_s3_)) {
  45741. _this.expectWhitespace$0();
  45742. B.JSArray_methods.addAll$1(conditions, _this._mediaLogicSequence$1(_s3_));
  45743. conjunction = true;
  45744. } else if (_this.scanIdentifier$1("or")) {
  45745. _this.expectWhitespace$0();
  45746. B.JSArray_methods.addAll$1(conditions, _this._mediaLogicSequence$1("or"));
  45747. conjunction = false;
  45748. } else
  45749. conjunction = true;
  45750. return A.CssMediaQuery$condition(conditions, conjunction);
  45751. }
  45752. identifier1 = _this.identifier$0();
  45753. if (A.equalsIgnoreCase(identifier1, "not")) {
  45754. _this.expectWhitespace$0();
  45755. if (!_this.lookingAtIdentifier$0())
  45756. return A.CssMediaQuery$condition(A._setArrayType(["(not " + _this._mediaInParens$0() + ")"], type$.JSArray_String), _null);
  45757. }
  45758. _this.whitespace$0();
  45759. if (!_this.lookingAtIdentifier$0())
  45760. return A.CssMediaQuery$type(identifier1, _null, _null);
  45761. identifier2 = _this.identifier$0();
  45762. if (A.equalsIgnoreCase(identifier2, _s3_)) {
  45763. _this.expectWhitespace$0();
  45764. type = identifier1;
  45765. modifier = _null;
  45766. } else {
  45767. _this.whitespace$0();
  45768. if (_this.scanIdentifier$1(_s3_))
  45769. _this.expectWhitespace$0();
  45770. else
  45771. return A.CssMediaQuery$type(identifier2, _null, identifier1);
  45772. type = identifier2;
  45773. modifier = identifier1;
  45774. }
  45775. if (_this.scanIdentifier$1("not")) {
  45776. _this.expectWhitespace$0();
  45777. return A.CssMediaQuery$type(type, A._setArrayType(["(not " + _this._mediaInParens$0() + ")"], type$.JSArray_String), modifier);
  45778. }
  45779. return A.CssMediaQuery$type(type, _this._mediaLogicSequence$1(_s3_), modifier);
  45780. },
  45781. _mediaLogicSequence$1(operator) {
  45782. var t1, t2, _this = this,
  45783. result = A._setArrayType([], type$.JSArray_String);
  45784. for (t1 = _this.scanner; true;) {
  45785. t1.expectChar$2$name(40, "media condition in parentheses");
  45786. t2 = _this.declarationValue$0();
  45787. t1.expectChar$1(41);
  45788. result.push("(" + t2 + ")");
  45789. _this.whitespace$0();
  45790. if (!_this.scanIdentifier$1(operator))
  45791. return result;
  45792. _this.expectWhitespace$0();
  45793. }
  45794. },
  45795. _mediaInParens$0() {
  45796. var t2,
  45797. t1 = this.scanner;
  45798. t1.expectChar$2$name(40, "media condition in parentheses");
  45799. t2 = this.declarationValue$0();
  45800. t1.expectChar$1(41);
  45801. return "(" + t2 + ")";
  45802. }
  45803. };
  45804. A.MediaQueryParser_parse_closure.prototype = {
  45805. call$0() {
  45806. var queries = A._setArrayType([], type$.JSArray_CssMediaQuery),
  45807. t1 = this.$this,
  45808. t2 = t1.scanner;
  45809. do {
  45810. t1.whitespace$0();
  45811. queries.push(t1._mediaQuery$0());
  45812. t1.whitespace$0();
  45813. } while (t2.scanChar$1(44));
  45814. t2.expectDone$0();
  45815. return queries;
  45816. },
  45817. $signature: 120
  45818. };
  45819. A.Parser.prototype = {
  45820. _parseIdentifier$0() {
  45821. return this.wrapSpanFormatException$1(new A.Parser__parseIdentifier_closure(this));
  45822. },
  45823. _isVariableDeclarationLike$0() {
  45824. var _this = this,
  45825. t1 = _this.scanner;
  45826. if (!t1.scanChar$1(36))
  45827. return false;
  45828. if (!_this.lookingAtIdentifier$0())
  45829. return false;
  45830. _this.identifier$0();
  45831. _this.whitespace$0();
  45832. return t1.scanChar$1(58);
  45833. },
  45834. whitespace$0() {
  45835. do
  45836. this.whitespaceWithoutComments$0();
  45837. while (this.scanComment$0());
  45838. },
  45839. whitespaceWithoutComments$0() {
  45840. var t3,
  45841. t1 = this.scanner,
  45842. t2 = t1.string.length;
  45843. while (true) {
  45844. if (t1._string_scanner$_position !== t2) {
  45845. t3 = t1.peekChar$0();
  45846. t3 = t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12;
  45847. } else
  45848. t3 = false;
  45849. if (!t3)
  45850. break;
  45851. t1.readChar$0();
  45852. }
  45853. },
  45854. spaces$0() {
  45855. var t3,
  45856. t1 = this.scanner,
  45857. t2 = t1.string.length;
  45858. while (true) {
  45859. if (t1._string_scanner$_position !== t2) {
  45860. t3 = t1.peekChar$0();
  45861. t3 = t3 === 32 || t3 === 9;
  45862. } else
  45863. t3 = false;
  45864. if (!t3)
  45865. break;
  45866. t1.readChar$0();
  45867. }
  45868. },
  45869. scanComment$0() {
  45870. var next,
  45871. t1 = this.scanner;
  45872. if (t1.peekChar$0() !== 47)
  45873. return false;
  45874. next = t1.peekChar$1(1);
  45875. if (next === 47) {
  45876. this.silentComment$0();
  45877. return true;
  45878. } else if (next === 42) {
  45879. this.loudComment$0();
  45880. return true;
  45881. } else
  45882. return false;
  45883. },
  45884. expectWhitespace$0() {
  45885. var t2, t3,
  45886. t1 = this.scanner;
  45887. if (t1._string_scanner$_position !== t1.string.length) {
  45888. t2 = t1.peekChar$0();
  45889. t3 = !(t2 === 32 || t2 === 9 || t2 === 10 || t2 === 13 || t2 === 12 || this.scanComment$0());
  45890. t2 = t3;
  45891. } else
  45892. t2 = true;
  45893. if (t2)
  45894. t1.error$1(0, "Expected whitespace.");
  45895. this.whitespace$0();
  45896. },
  45897. silentComment$0() {
  45898. var t2, t3,
  45899. t1 = this.scanner;
  45900. t1.expect$1("//");
  45901. t2 = t1.string.length;
  45902. while (true) {
  45903. if (t1._string_scanner$_position !== t2) {
  45904. t3 = t1.peekChar$0();
  45905. t3 = !(t3 === 10 || t3 === 13 || t3 === 12);
  45906. } else
  45907. t3 = false;
  45908. if (!t3)
  45909. break;
  45910. t1.readChar$0();
  45911. }
  45912. },
  45913. loudComment$0() {
  45914. var next,
  45915. t1 = this.scanner;
  45916. t1.expect$1("/*");
  45917. for (; true;) {
  45918. if (t1.readChar$0() !== 42)
  45919. continue;
  45920. do
  45921. next = t1.readChar$0();
  45922. while (next === 42);
  45923. if (next === 47)
  45924. break;
  45925. }
  45926. },
  45927. identifier$2$normalize$unit(normalize, unit) {
  45928. var t2, first, _this = this,
  45929. _s20_ = "Expected identifier.",
  45930. text = new A.StringBuffer(""),
  45931. t1 = _this.scanner;
  45932. if (t1.scanChar$1(45)) {
  45933. t2 = text._contents = "" + A.Primitives_stringFromCharCode(45);
  45934. if (t1.scanChar$1(45)) {
  45935. text._contents = t2 + A.Primitives_stringFromCharCode(45);
  45936. _this._identifierBody$3$normalize$unit(text, normalize, unit);
  45937. t1 = text._contents;
  45938. return t1.charCodeAt(0) == 0 ? t1 : t1;
  45939. }
  45940. } else
  45941. t2 = "";
  45942. first = t1.peekChar$0();
  45943. if (first == null)
  45944. t1.error$1(0, _s20_);
  45945. else if (normalize && first === 95) {
  45946. t1.readChar$0();
  45947. text._contents = t2 + A.Primitives_stringFromCharCode(45);
  45948. } else if (first === 95 || A.isAlphabetic0(first) || first >= 128)
  45949. text._contents = t2 + A.Primitives_stringFromCharCode(t1.readChar$0());
  45950. else if (first === 92)
  45951. text._contents = t2 + A.S(_this.escape$1$identifierStart(true));
  45952. else
  45953. t1.error$1(0, _s20_);
  45954. _this._identifierBody$3$normalize$unit(text, normalize, unit);
  45955. t1 = text._contents;
  45956. return t1.charCodeAt(0) == 0 ? t1 : t1;
  45957. },
  45958. identifier$0() {
  45959. return this.identifier$2$normalize$unit(false, false);
  45960. },
  45961. identifier$1$normalize(normalize) {
  45962. return this.identifier$2$normalize$unit(normalize, false);
  45963. },
  45964. identifier$1$unit(unit) {
  45965. return this.identifier$2$normalize$unit(false, unit);
  45966. },
  45967. _identifierBody$3$normalize$unit(text, normalize, unit) {
  45968. var t1, next, second, t2;
  45969. for (t1 = this.scanner; true;) {
  45970. next = t1.peekChar$0();
  45971. if (next == null)
  45972. break;
  45973. else if (unit && next === 45) {
  45974. second = t1.peekChar$1(1);
  45975. if (second != null)
  45976. if (second !== 46)
  45977. t2 = second >= 48 && second <= 57;
  45978. else
  45979. t2 = true;
  45980. else
  45981. t2 = false;
  45982. if (t2)
  45983. break;
  45984. text._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  45985. } else if (normalize && next === 95) {
  45986. t1.readChar$0();
  45987. text._contents += A.Primitives_stringFromCharCode(45);
  45988. } else {
  45989. if (next !== 95) {
  45990. if (!(next >= 97 && next <= 122))
  45991. t2 = next >= 65 && next <= 90;
  45992. else
  45993. t2 = true;
  45994. t2 = t2 || next >= 128;
  45995. } else
  45996. t2 = true;
  45997. if (!t2)
  45998. t2 = next >= 48 && next <= 57 || next === 45;
  45999. else
  46000. t2 = true;
  46001. if (t2)
  46002. text._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  46003. else if (next === 92)
  46004. text._contents += A.S(this.escape$0());
  46005. else
  46006. break;
  46007. }
  46008. }
  46009. },
  46010. _identifierBody$1(text) {
  46011. return this._identifierBody$3$normalize$unit(text, false, false);
  46012. },
  46013. string$0() {
  46014. var buffer, next, t2,
  46015. t1 = this.scanner,
  46016. quote = t1.readChar$0();
  46017. if (quote !== 39 && quote !== 34)
  46018. t1.error$2$position(0, "Expected string.", t1._string_scanner$_position - 1);
  46019. buffer = new A.StringBuffer("");
  46020. for (; true;) {
  46021. next = t1.peekChar$0();
  46022. if (next === quote) {
  46023. t1.readChar$0();
  46024. break;
  46025. } else if (next == null || next === 10 || next === 13 || next === 12)
  46026. t1.error$1(0, "Expected " + A.Primitives_stringFromCharCode(quote) + ".");
  46027. else if (next === 92) {
  46028. t2 = t1.peekChar$1(1);
  46029. if (t2 === 10 || t2 === 13 || t2 === 12) {
  46030. t1.readChar$0();
  46031. t1.readChar$0();
  46032. } else
  46033. buffer._contents += A.Primitives_stringFromCharCode(A.consumeEscapedCharacter(t1));
  46034. } else
  46035. buffer._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  46036. }
  46037. t1 = buffer._contents;
  46038. return t1.charCodeAt(0) == 0 ? t1 : t1;
  46039. },
  46040. declarationValue$1$allowEmpty(allowEmpty) {
  46041. var t1, t2, wroteNewline, next, start, end, t3, url, _this = this,
  46042. buffer = new A.StringBuffer(""),
  46043. brackets = A._setArrayType([], type$.JSArray_int);
  46044. $label0$1:
  46045. for (t1 = _this.scanner, t2 = _this.get$string(), wroteNewline = false; true;) {
  46046. next = t1.peekChar$0();
  46047. switch (next) {
  46048. case 92:
  46049. buffer._contents += A.S(_this.escape$1$identifierStart(true));
  46050. wroteNewline = false;
  46051. break;
  46052. case 34:
  46053. case 39:
  46054. start = t1._string_scanner$_position;
  46055. t2.call$0();
  46056. end = t1._string_scanner$_position;
  46057. buffer._contents += B.JSString_methods.substring$2(t1.string, start, end);
  46058. wroteNewline = false;
  46059. break;
  46060. case 47:
  46061. if (t1.peekChar$1(1) === 42) {
  46062. t3 = _this.get$loudComment();
  46063. start = t1._string_scanner$_position;
  46064. t3.call$0();
  46065. end = t1._string_scanner$_position;
  46066. buffer._contents += B.JSString_methods.substring$2(t1.string, start, end);
  46067. } else
  46068. buffer._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  46069. wroteNewline = false;
  46070. break;
  46071. case 32:
  46072. case 9:
  46073. if (!wroteNewline) {
  46074. t3 = t1.peekChar$1(1);
  46075. t3 = !(t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12);
  46076. } else
  46077. t3 = true;
  46078. if (t3)
  46079. buffer._contents += A.Primitives_stringFromCharCode(32);
  46080. t1.readChar$0();
  46081. break;
  46082. case 10:
  46083. case 13:
  46084. case 12:
  46085. t3 = t1.peekChar$1(-1);
  46086. if (!(t3 === 10 || t3 === 13 || t3 === 12))
  46087. buffer._contents += "\n";
  46088. t1.readChar$0();
  46089. wroteNewline = true;
  46090. break;
  46091. case 40:
  46092. case 123:
  46093. case 91:
  46094. next.toString;
  46095. buffer._contents += A.Primitives_stringFromCharCode(next);
  46096. brackets.push(A.opposite(t1.readChar$0()));
  46097. wroteNewline = false;
  46098. break;
  46099. case 41:
  46100. case 125:
  46101. case 93:
  46102. if (brackets.length === 0)
  46103. break $label0$1;
  46104. next.toString;
  46105. buffer._contents += A.Primitives_stringFromCharCode(next);
  46106. t1.expectChar$1(brackets.pop());
  46107. wroteNewline = false;
  46108. break;
  46109. case 59:
  46110. if (brackets.length === 0)
  46111. break $label0$1;
  46112. buffer._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  46113. break;
  46114. case 117:
  46115. case 85:
  46116. url = _this.tryUrl$0();
  46117. if (url != null)
  46118. buffer._contents += url;
  46119. else
  46120. buffer._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  46121. wroteNewline = false;
  46122. break;
  46123. default:
  46124. if (next == null)
  46125. break $label0$1;
  46126. if (_this.lookingAtIdentifier$0())
  46127. buffer._contents += _this.identifier$0();
  46128. else
  46129. buffer._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  46130. wroteNewline = false;
  46131. break;
  46132. }
  46133. }
  46134. if (brackets.length !== 0)
  46135. t1.expectChar$1(B.JSArray_methods.get$last(brackets));
  46136. if (!allowEmpty && buffer._contents.length === 0)
  46137. t1.error$1(0, "Expected token.");
  46138. t1 = buffer._contents;
  46139. return t1.charCodeAt(0) == 0 ? t1 : t1;
  46140. },
  46141. declarationValue$0() {
  46142. return this.declarationValue$1$allowEmpty(false);
  46143. },
  46144. tryUrl$0() {
  46145. var buffer, next, t2, _this = this,
  46146. t1 = _this.scanner,
  46147. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  46148. if (!_this.scanIdentifier$1("url"))
  46149. return null;
  46150. if (!t1.scanChar$1(40)) {
  46151. t1.set$state(start);
  46152. return null;
  46153. }
  46154. _this.whitespace$0();
  46155. buffer = new A.StringBuffer("");
  46156. buffer._contents = "" + "url(";
  46157. for (; true;) {
  46158. next = t1.peekChar$0();
  46159. if (next == null)
  46160. break;
  46161. else if (next === 92)
  46162. buffer._contents += A.S(_this.escape$0());
  46163. else {
  46164. if (next !== 37)
  46165. if (next !== 38)
  46166. if (next !== 35)
  46167. t2 = next >= 42 && next <= 126 || next >= 128;
  46168. else
  46169. t2 = true;
  46170. else
  46171. t2 = true;
  46172. else
  46173. t2 = true;
  46174. if (t2)
  46175. buffer._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  46176. else if (next === 32 || next === 9 || next === 10 || next === 13 || next === 12) {
  46177. _this.whitespace$0();
  46178. if (t1.peekChar$0() !== 41)
  46179. break;
  46180. } else if (next === 41) {
  46181. t2 = buffer._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  46182. return t2.charCodeAt(0) == 0 ? t2 : t2;
  46183. } else
  46184. break;
  46185. }
  46186. }
  46187. t1.set$state(start);
  46188. return null;
  46189. },
  46190. variableName$0() {
  46191. this.scanner.expectChar$1(36);
  46192. return this.identifier$1$normalize(true);
  46193. },
  46194. escape$1$identifierStart(identifierStart) {
  46195. var value, first, i, next, t2, exception,
  46196. _s25_ = "Expected escape sequence.",
  46197. t1 = this.scanner,
  46198. start = t1._string_scanner$_position;
  46199. t1.expectChar$1(92);
  46200. value = 0;
  46201. first = t1.peekChar$0();
  46202. if (first == null)
  46203. t1.error$1(0, _s25_);
  46204. else if (first === 10 || first === 13 || first === 12)
  46205. t1.error$1(0, _s25_);
  46206. else if (A.isHex(first)) {
  46207. for (i = 0; i < 6; ++i) {
  46208. next = t1.peekChar$0();
  46209. if (next == null || !A.isHex(next))
  46210. break;
  46211. value *= 16;
  46212. value += A.asHex(t1.readChar$0());
  46213. }
  46214. this.scanCharIf$1(A.character__isWhitespace$closure());
  46215. } else
  46216. value = t1.readChar$0();
  46217. if (identifierStart) {
  46218. t2 = value;
  46219. t2 = t2 === 95 || A.isAlphabetic0(t2) || t2 >= 128;
  46220. } else {
  46221. t2 = value;
  46222. t2 = t2 === 95 || A.isAlphabetic0(t2) || t2 >= 128 || A.isDigit(t2) || t2 === 45;
  46223. }
  46224. if (t2)
  46225. try {
  46226. t2 = A.Primitives_stringFromCharCode(value);
  46227. return t2;
  46228. } catch (exception) {
  46229. if (type$.RangeError._is(A.unwrapException(exception)))
  46230. t1.error$3$length$position(0, "Invalid Unicode code point.", t1._string_scanner$_position - start, start);
  46231. else
  46232. throw exception;
  46233. }
  46234. else {
  46235. if (!(value <= 31))
  46236. if (!J.$eq$(value, 127))
  46237. t1 = identifierStart && A.isDigit(value);
  46238. else
  46239. t1 = true;
  46240. else
  46241. t1 = true;
  46242. if (t1) {
  46243. t1 = "" + A.Primitives_stringFromCharCode(92);
  46244. if (value > 15)
  46245. t1 += A.Primitives_stringFromCharCode(A.hexCharFor(B.JSNumber_methods._shrOtherPositive$1(value, 4)));
  46246. t1 = t1 + A.Primitives_stringFromCharCode(A.hexCharFor(value & 15)) + A.Primitives_stringFromCharCode(32);
  46247. return t1.charCodeAt(0) == 0 ? t1 : t1;
  46248. } else
  46249. return A.String_String$fromCharCodes(A._setArrayType([92, value], type$.JSArray_int), 0, null);
  46250. }
  46251. },
  46252. escape$0() {
  46253. return this.escape$1$identifierStart(false);
  46254. },
  46255. scanCharIf$1(condition) {
  46256. var t1 = this.scanner;
  46257. if (!condition.call$1(t1.peekChar$0()))
  46258. return false;
  46259. t1.readChar$0();
  46260. return true;
  46261. },
  46262. scanIdentChar$2$caseSensitive(char, caseSensitive) {
  46263. var t3,
  46264. t1 = new A.Parser_scanIdentChar_matches(caseSensitive, char),
  46265. t2 = this.scanner,
  46266. next = t2.peekChar$0();
  46267. if (next != null && t1.call$1(next)) {
  46268. t2.readChar$0();
  46269. return true;
  46270. } else if (next === 92) {
  46271. t3 = t2._string_scanner$_position;
  46272. if (t1.call$1(A.consumeEscapedCharacter(t2)))
  46273. return true;
  46274. t2.set$state(new A._SpanScannerState(t2, t3));
  46275. }
  46276. return false;
  46277. },
  46278. scanIdentChar$1(char) {
  46279. return this.scanIdentChar$2$caseSensitive(char, false);
  46280. },
  46281. expectIdentChar$1(letter) {
  46282. var t1;
  46283. if (this.scanIdentChar$2$caseSensitive(letter, false))
  46284. return;
  46285. t1 = this.scanner;
  46286. t1.error$2$position(0, 'Expected "' + A.Primitives_stringFromCharCode(letter) + '".', t1._string_scanner$_position);
  46287. },
  46288. lookingAtIdentifier$1($forward) {
  46289. var t1, first, second;
  46290. if ($forward == null)
  46291. $forward = 0;
  46292. t1 = this.scanner;
  46293. first = t1.peekChar$1($forward);
  46294. if (first == null)
  46295. return false;
  46296. if (first === 95 || A.isAlphabetic0(first) || first >= 128 || first === 92)
  46297. return true;
  46298. if (first !== 45)
  46299. return false;
  46300. second = t1.peekChar$1($forward + 1);
  46301. if (second == null)
  46302. return false;
  46303. return second === 95 || A.isAlphabetic0(second) || second >= 128 || second === 92 || second === 45;
  46304. },
  46305. lookingAtIdentifier$0() {
  46306. return this.lookingAtIdentifier$1(null);
  46307. },
  46308. lookingAtIdentifierBody$0() {
  46309. var t1,
  46310. next = this.scanner.peekChar$0();
  46311. if (next != null)
  46312. t1 = next === 95 || A.isAlphabetic0(next) || next >= 128 || A.isDigit(next) || next === 45 || next === 92;
  46313. else
  46314. t1 = false;
  46315. return t1;
  46316. },
  46317. scanIdentifier$2$caseSensitive(text, caseSensitive) {
  46318. var t1, t2, _this = this;
  46319. if (!_this.lookingAtIdentifier$0())
  46320. return false;
  46321. t1 = _this.scanner;
  46322. t2 = t1._string_scanner$_position;
  46323. if (_this._consumeIdentifier$2(text, caseSensitive) && !_this.lookingAtIdentifierBody$0())
  46324. return true;
  46325. else {
  46326. t1.set$state(new A._SpanScannerState(t1, t2));
  46327. return false;
  46328. }
  46329. },
  46330. scanIdentifier$1(text) {
  46331. return this.scanIdentifier$2$caseSensitive(text, false);
  46332. },
  46333. _consumeIdentifier$2(text, caseSensitive) {
  46334. var t1, t2, t3;
  46335. for (t1 = new A.CodeUnits(text), t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) {
  46336. t3 = t1.__internal$_current;
  46337. if (!this.scanIdentChar$2$caseSensitive(t3 == null ? t2._as(t3) : t3, caseSensitive))
  46338. return false;
  46339. }
  46340. return true;
  46341. },
  46342. expectIdentifier$2$name(text, $name) {
  46343. var t1, start, t2, t3, t4, t5, t6;
  46344. if ($name == null)
  46345. $name = '"' + text + '"';
  46346. t1 = this.scanner;
  46347. start = t1._string_scanner$_position;
  46348. for (t2 = new A.CodeUnits(text), t2 = new A.ListIterator(t2, t2.get$length(t2)), t3 = "Expected " + $name, t4 = t3 + ".", t5 = A._instanceType(t2)._precomputed1; t2.moveNext$0();) {
  46349. t6 = t2.__internal$_current;
  46350. if (this.scanIdentChar$2$caseSensitive(t6 == null ? t5._as(t6) : t6, false))
  46351. continue;
  46352. t1.error$2$position(0, t4, start);
  46353. }
  46354. if (!this.lookingAtIdentifierBody$0())
  46355. return;
  46356. t1.error$2$position(0, t3, start);
  46357. },
  46358. expectIdentifier$1(text) {
  46359. return this.expectIdentifier$2$name(text, null);
  46360. },
  46361. rawText$1(consumer) {
  46362. var t1 = this.scanner,
  46363. start = t1._string_scanner$_position;
  46364. consumer.call$0();
  46365. return t1.substring$1(0, start);
  46366. },
  46367. error$3(_, message, span, trace) {
  46368. var exception = new A.StringScannerException(this.scanner.string, message, span);
  46369. if (trace == null)
  46370. throw A.wrapException(exception);
  46371. else
  46372. A.throwWithTrace(exception, trace);
  46373. },
  46374. error$2($receiver, message, span) {
  46375. return this.error$3($receiver, message, span, null);
  46376. },
  46377. withErrorMessage$1$2(message, callback) {
  46378. var error, stackTrace, t1, exception;
  46379. try {
  46380. t1 = callback.call$0();
  46381. return t1;
  46382. } catch (exception) {
  46383. t1 = A.unwrapException(exception);
  46384. if (type$.SourceSpanFormatException._is(t1)) {
  46385. error = t1;
  46386. stackTrace = A.getTraceFromException(exception);
  46387. t1 = J.get$span$z(error);
  46388. A.throwWithTrace(new A.SourceSpanFormatException(error.get$source(), message, t1), stackTrace);
  46389. } else
  46390. throw exception;
  46391. }
  46392. },
  46393. withErrorMessage$2(message, callback) {
  46394. return this.withErrorMessage$1$2(message, callback, type$.dynamic);
  46395. },
  46396. wrapSpanFormatException$1$1(callback) {
  46397. var error, stackTrace, span, startPosition, t1, exception;
  46398. try {
  46399. t1 = callback.call$0();
  46400. return t1;
  46401. } catch (exception) {
  46402. t1 = A.unwrapException(exception);
  46403. if (type$.SourceSpanFormatException._is(t1)) {
  46404. error = t1;
  46405. stackTrace = A.getTraceFromException(exception);
  46406. span = J.get$span$z(error);
  46407. if (A.startsWithIgnoreCase(error._span_exception$_message, "expected") && J.get$length$asx(span) === 0) {
  46408. startPosition = this._firstNewlineBefore$1(J.get$start$z(span).offset);
  46409. if (!J.$eq$(startPosition, J.get$start$z(span).offset))
  46410. span = J.get$file$x(span).span$2(0, startPosition, startPosition);
  46411. }
  46412. A.throwWithTrace(new A.SassFormatException(error._span_exception$_message, span), stackTrace);
  46413. } else
  46414. throw exception;
  46415. }
  46416. },
  46417. wrapSpanFormatException$1(callback) {
  46418. return this.wrapSpanFormatException$1$1(callback, type$.dynamic);
  46419. },
  46420. _firstNewlineBefore$1(position) {
  46421. var t1, lastNewline, codeUnit,
  46422. index = position - 1;
  46423. for (t1 = this.scanner.string, lastNewline = null; index >= 0;) {
  46424. codeUnit = B.JSString_methods.codeUnitAt$1(t1, index);
  46425. if (!(codeUnit === 32 || codeUnit === 9 || codeUnit === 10 || codeUnit === 13 || codeUnit === 12))
  46426. return lastNewline == null ? position : lastNewline;
  46427. if (codeUnit === 10 || codeUnit === 13 || codeUnit === 12)
  46428. lastNewline = index;
  46429. --index;
  46430. }
  46431. return position;
  46432. }
  46433. };
  46434. A.Parser__parseIdentifier_closure.prototype = {
  46435. call$0() {
  46436. var t1 = this.$this,
  46437. result = t1.identifier$0();
  46438. t1.scanner.expectDone$0();
  46439. return result;
  46440. },
  46441. $signature: 30
  46442. };
  46443. A.Parser_scanIdentChar_matches.prototype = {
  46444. call$1(actual) {
  46445. var t1 = this.char;
  46446. return this.caseSensitive ? actual === t1 : A.characterEqualsIgnoreCase(t1, actual);
  46447. },
  46448. $signature: 57
  46449. };
  46450. A.SassParser.prototype = {
  46451. get$currentIndentation() {
  46452. return this._currentIndentation;
  46453. },
  46454. get$indented() {
  46455. return true;
  46456. },
  46457. styleRuleSelector$0() {
  46458. var t4,
  46459. t1 = this.scanner,
  46460. t2 = t1._string_scanner$_position,
  46461. t3 = new A.StringBuffer(""),
  46462. buffer = new A.InterpolationBuffer(t3, A._setArrayType([], type$.JSArray_Object));
  46463. do {
  46464. buffer.addInterpolation$1(this.almostAnyValue$1$omitComments(true));
  46465. t4 = t3._contents += A.Primitives_stringFromCharCode(10);
  46466. } while (B.JSString_methods.endsWith$1(B.JSString_methods.trimRight$0(t4.charCodeAt(0) == 0 ? t4 : t4), ",") && this.scanCharIf$1(A.character__isNewline$closure()));
  46467. return buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  46468. },
  46469. expectStatementSeparator$1($name) {
  46470. var t1, _this = this;
  46471. if (!_this.atEndOfStatement$0())
  46472. _this._expectNewline$0();
  46473. if (_this._peekIndentation$0() <= _this._currentIndentation)
  46474. return;
  46475. t1 = $name == null ? "here" : "beneath a " + $name;
  46476. _this.scanner.error$2$position(0, "Nothing may be indented " + t1 + ".", _this._nextIndentationEnd.position);
  46477. },
  46478. expectStatementSeparator$0() {
  46479. return this.expectStatementSeparator$1(null);
  46480. },
  46481. atEndOfStatement$0() {
  46482. var next = this.scanner.peekChar$0();
  46483. return next == null || next === 10 || next === 13 || next === 12;
  46484. },
  46485. lookingAtChildren$0() {
  46486. return this.atEndOfStatement$0() && this._peekIndentation$0() > this._currentIndentation;
  46487. },
  46488. importArgument$0() {
  46489. var url, span, innerError, stackTrace, start, next, t2, exception, _this = this,
  46490. t1 = _this.scanner;
  46491. switch (t1.peekChar$0()) {
  46492. case 117:
  46493. case 85:
  46494. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  46495. if (_this.scanIdentifier$1("url"))
  46496. if (t1.scanChar$1(40)) {
  46497. t1.set$state(start);
  46498. return _this.super$StylesheetParser$importArgument();
  46499. } else
  46500. t1.set$state(start);
  46501. break;
  46502. case 39:
  46503. case 34:
  46504. return _this.super$StylesheetParser$importArgument();
  46505. }
  46506. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  46507. next = t1.peekChar$0();
  46508. while (true) {
  46509. if (next != null)
  46510. if (next !== 44)
  46511. if (next !== 59)
  46512. t2 = !(next === 10 || next === 13 || next === 12);
  46513. else
  46514. t2 = false;
  46515. else
  46516. t2 = false;
  46517. else
  46518. t2 = false;
  46519. if (!t2)
  46520. break;
  46521. t1.readChar$0();
  46522. next = t1.peekChar$0();
  46523. }
  46524. url = t1.substring$1(0, start.position);
  46525. span = t1.spanFrom$1(start);
  46526. if (_this.isPlainImportUrl$1(url))
  46527. return new A.StaticImport(A.Interpolation$(A._setArrayType([A.serializeValue(new A.SassString(url, true), true, true)], type$.JSArray_Object), span), null, span);
  46528. else
  46529. try {
  46530. t1 = _this.parseImportUrl$1(url);
  46531. return new A.DynamicImport(t1, span);
  46532. } catch (exception) {
  46533. t1 = A.unwrapException(exception);
  46534. if (type$.FormatException._is(t1)) {
  46535. innerError = t1;
  46536. stackTrace = A.getTraceFromException(exception);
  46537. _this.error$3(0, "Invalid URL: " + J.get$message$x(innerError), span, stackTrace);
  46538. } else
  46539. throw exception;
  46540. }
  46541. },
  46542. scanElse$1(ifIndentation) {
  46543. var t1, t2, startIndentation, startNextIndentation, startNextIndentationEnd, _this = this;
  46544. if (_this._peekIndentation$0() !== ifIndentation)
  46545. return false;
  46546. t1 = _this.scanner;
  46547. t2 = t1._string_scanner$_position;
  46548. startIndentation = _this._currentIndentation;
  46549. startNextIndentation = _this._nextIndentation;
  46550. startNextIndentationEnd = _this._nextIndentationEnd;
  46551. _this._readIndentation$0();
  46552. if (t1.scanChar$1(64) && _this.scanIdentifier$1("else"))
  46553. return true;
  46554. t1.set$state(new A._SpanScannerState(t1, t2));
  46555. _this._currentIndentation = startIndentation;
  46556. _this._nextIndentation = startNextIndentation;
  46557. _this._nextIndentationEnd = startNextIndentationEnd;
  46558. return false;
  46559. },
  46560. children$1(_, child) {
  46561. var children = A._setArrayType([], type$.JSArray_Statement);
  46562. this._whileIndentedLower$1(new A.SassParser_children_closure(this, child, children));
  46563. return children;
  46564. },
  46565. statements$1(statement) {
  46566. var statements, t2, child,
  46567. t1 = this.scanner,
  46568. first = t1.peekChar$0();
  46569. if (first === 9 || first === 32)
  46570. t1.error$3$length$position(0, string$.Indent, t1._string_scanner$_position, 0);
  46571. statements = A._setArrayType([], type$.JSArray_Statement);
  46572. for (t2 = t1.string.length; t1._string_scanner$_position !== t2;) {
  46573. child = this._child$1(statement);
  46574. if (child != null)
  46575. statements.push(child);
  46576. this._readIndentation$0();
  46577. }
  46578. return statements;
  46579. },
  46580. _child$1(child) {
  46581. var _this = this,
  46582. t1 = _this.scanner;
  46583. switch (t1.peekChar$0()) {
  46584. case 13:
  46585. case 10:
  46586. case 12:
  46587. return null;
  46588. case 36:
  46589. return _this.variableDeclarationWithoutNamespace$0();
  46590. case 47:
  46591. switch (t1.peekChar$1(1)) {
  46592. case 47:
  46593. return _this._silentComment$0();
  46594. case 42:
  46595. return _this._loudComment$0();
  46596. default:
  46597. return child.call$0();
  46598. }
  46599. default:
  46600. return child.call$0();
  46601. }
  46602. },
  46603. _silentComment$0() {
  46604. var buffer, parentIndentation, t3, t4, t5, commentPrefix, i, t6, i0, t7, _this = this,
  46605. t1 = _this.scanner,
  46606. t2 = t1._string_scanner$_position;
  46607. t1.expect$1("//");
  46608. buffer = new A.StringBuffer("");
  46609. parentIndentation = _this._currentIndentation;
  46610. t3 = t1.string.length;
  46611. t4 = 1 + parentIndentation;
  46612. t5 = 2 + parentIndentation;
  46613. $label0$0:
  46614. do {
  46615. commentPrefix = t1.scanChar$1(47) ? "///" : "//";
  46616. for (i = commentPrefix.length; true;) {
  46617. t6 = buffer._contents += commentPrefix;
  46618. for (i0 = i; i0 < _this._currentIndentation - parentIndentation; ++i0) {
  46619. t6 += A.Primitives_stringFromCharCode(32);
  46620. buffer._contents = t6;
  46621. }
  46622. while (true) {
  46623. if (t1._string_scanner$_position !== t3) {
  46624. t7 = t1.peekChar$0();
  46625. t7 = !(t7 === 10 || t7 === 13 || t7 === 12);
  46626. } else
  46627. t7 = false;
  46628. if (!t7)
  46629. break;
  46630. t6 += A.Primitives_stringFromCharCode(t1.readChar$0());
  46631. buffer._contents = t6;
  46632. }
  46633. buffer._contents = t6 + "\n";
  46634. if (_this._peekIndentation$0() < parentIndentation)
  46635. break $label0$0;
  46636. if (_this._peekIndentation$0() === parentIndentation) {
  46637. if (t1.peekChar$1(t4) === 47 && t1.peekChar$1(t5) === 47)
  46638. _this._readIndentation$0();
  46639. break;
  46640. }
  46641. _this._readIndentation$0();
  46642. }
  46643. } while (t1.scan$1("//"));
  46644. t3 = buffer._contents;
  46645. return _this.lastSilentComment = new A.SilentComment(t3.charCodeAt(0) == 0 ? t3 : t3, t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  46646. },
  46647. _loudComment$0() {
  46648. var t3, t4, buffer, parentIndentation, t5, t6, first, beginningOfComment, t7, end, i, _this = this,
  46649. t1 = _this.scanner,
  46650. t2 = t1._string_scanner$_position;
  46651. t1.expect$1("/*");
  46652. t3 = new A.StringBuffer("");
  46653. t4 = A._setArrayType([], type$.JSArray_Object);
  46654. buffer = new A.InterpolationBuffer(t3, t4);
  46655. t3._contents = "" + "/*";
  46656. parentIndentation = _this._currentIndentation;
  46657. for (t5 = t1.string, t6 = t5.length, first = true; true; first = false) {
  46658. if (first) {
  46659. beginningOfComment = t1._string_scanner$_position;
  46660. _this.spaces$0();
  46661. t7 = t1.peekChar$0();
  46662. if (t7 === 10 || t7 === 13 || t7 === 12) {
  46663. _this._readIndentation$0();
  46664. t7 = t3._contents += A.Primitives_stringFromCharCode(32);
  46665. } else {
  46666. end = t1._string_scanner$_position;
  46667. t7 = t3._contents += B.JSString_methods.substring$2(t5, beginningOfComment, end);
  46668. }
  46669. } else {
  46670. t7 = t3._contents += "\n";
  46671. t7 += " * ";
  46672. t3._contents = t7;
  46673. }
  46674. for (i = 3; i < _this._currentIndentation - parentIndentation; ++i) {
  46675. t7 += A.Primitives_stringFromCharCode(32);
  46676. t3._contents = t7;
  46677. }
  46678. $label0$1:
  46679. for (; t1._string_scanner$_position !== t6;)
  46680. switch (t1.peekChar$0()) {
  46681. case 10:
  46682. case 13:
  46683. case 12:
  46684. break $label0$1;
  46685. case 35:
  46686. if (t1.peekChar$1(1) === 123) {
  46687. t7 = _this.singleInterpolation$0();
  46688. buffer._flushText$0();
  46689. t4.push(t7);
  46690. } else
  46691. t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  46692. break;
  46693. default:
  46694. t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  46695. break;
  46696. }
  46697. if (_this._peekIndentation$0() <= parentIndentation)
  46698. break;
  46699. for (; _this._lookingAtDoubleNewline$0();) {
  46700. _this._expectNewline$0();
  46701. t7 = t3._contents += "\n";
  46702. t3._contents = t7 + " *";
  46703. }
  46704. _this._readIndentation$0();
  46705. }
  46706. t4 = t3._contents;
  46707. if (!B.JSString_methods.endsWith$1(B.JSString_methods.trimRight$0(t4.charCodeAt(0) == 0 ? t4 : t4), "*/"))
  46708. t3._contents += " */";
  46709. return new A.LoudComment(buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2))));
  46710. },
  46711. whitespaceWithoutComments$0() {
  46712. var t1, t2, next;
  46713. for (t1 = this.scanner, t2 = t1.string.length; t1._string_scanner$_position !== t2;) {
  46714. next = t1.peekChar$0();
  46715. if (next !== 9 && next !== 32)
  46716. break;
  46717. t1.readChar$0();
  46718. }
  46719. },
  46720. loudComment$0() {
  46721. var next,
  46722. t1 = this.scanner;
  46723. t1.expect$1("/*");
  46724. for (; true;) {
  46725. next = t1.readChar$0();
  46726. if (next === 10 || next === 13 || next === 12)
  46727. t1.error$1(0, "expected */.");
  46728. if (next !== 42)
  46729. continue;
  46730. do
  46731. next = t1.readChar$0();
  46732. while (next === 42);
  46733. if (next === 47)
  46734. break;
  46735. }
  46736. },
  46737. _expectNewline$0() {
  46738. var t1 = this.scanner;
  46739. switch (t1.peekChar$0()) {
  46740. case 59:
  46741. t1.error$1(0, string$.semico);
  46742. break;
  46743. case 13:
  46744. t1.readChar$0();
  46745. if (t1.peekChar$0() === 10)
  46746. t1.readChar$0();
  46747. return;
  46748. case 10:
  46749. case 12:
  46750. t1.readChar$0();
  46751. return;
  46752. default:
  46753. t1.error$1(0, "expected newline.");
  46754. }
  46755. },
  46756. _lookingAtDoubleNewline$0() {
  46757. var nextChar,
  46758. t1 = this.scanner;
  46759. switch (t1.peekChar$0()) {
  46760. case 13:
  46761. nextChar = t1.peekChar$1(1);
  46762. if (nextChar === 10) {
  46763. t1 = t1.peekChar$1(2);
  46764. return t1 === 10 || t1 === 13 || t1 === 12;
  46765. }
  46766. return nextChar === 13 || nextChar === 12;
  46767. case 10:
  46768. case 12:
  46769. t1 = t1.peekChar$1(1);
  46770. return t1 === 10 || t1 === 13 || t1 === 12;
  46771. default:
  46772. return false;
  46773. }
  46774. },
  46775. _whileIndentedLower$1(body) {
  46776. var t1, t2, childIndentation, indentation, t3, t4, _this = this,
  46777. parentIndentation = _this._currentIndentation;
  46778. for (t1 = _this.scanner, t2 = t1._sourceFile, childIndentation = null; _this._peekIndentation$0() > parentIndentation;) {
  46779. indentation = _this._readIndentation$0();
  46780. if (childIndentation == null)
  46781. childIndentation = indentation;
  46782. if (childIndentation !== indentation) {
  46783. t3 = t1._string_scanner$_position;
  46784. t4 = t2.getColumn$1(t3);
  46785. t1.error$3$length$position(0, "Inconsistent indentation, expected " + childIndentation + " spaces.", t2.getColumn$1(t1._string_scanner$_position), t3 - t4);
  46786. }
  46787. body.call$0();
  46788. }
  46789. },
  46790. _readIndentation$0() {
  46791. var t1, _this = this,
  46792. currentIndentation = _this._nextIndentation;
  46793. if (currentIndentation == null)
  46794. currentIndentation = _this._nextIndentation = _this._peekIndentation$0();
  46795. _this._currentIndentation = currentIndentation;
  46796. t1 = _this._nextIndentationEnd;
  46797. t1.toString;
  46798. _this.scanner.set$state(t1);
  46799. _this._nextIndentationEnd = _this._nextIndentation = null;
  46800. return currentIndentation;
  46801. },
  46802. _peekIndentation$0() {
  46803. var t1, t2, t3, start, containsTab, containsSpace, nextIndentation, next, t4, _this = this,
  46804. cached = _this._nextIndentation;
  46805. if (cached != null)
  46806. return cached;
  46807. t1 = _this.scanner;
  46808. t2 = t1._string_scanner$_position;
  46809. t3 = t1.string.length;
  46810. if (t2 === t3) {
  46811. _this._nextIndentation = 0;
  46812. _this._nextIndentationEnd = new A._SpanScannerState(t1, t2);
  46813. return 0;
  46814. }
  46815. start = new A._SpanScannerState(t1, t2);
  46816. if (!_this.scanCharIf$1(A.character__isNewline$closure()))
  46817. t1.error$2$position(0, "Expected newline.", t1._string_scanner$_position);
  46818. containsTab = A._Cell$();
  46819. containsSpace = A._Cell$();
  46820. nextIndentation = A._Cell$();
  46821. t2 = nextIndentation.__late_helper$_name;
  46822. do {
  46823. containsSpace._value = containsTab._value = false;
  46824. nextIndentation._value = 0;
  46825. for (; true;) {
  46826. next = t1.peekChar$0();
  46827. if (next === 32)
  46828. containsSpace._value = true;
  46829. else if (next === 9)
  46830. containsTab._value = true;
  46831. else
  46832. break;
  46833. t4 = nextIndentation._value;
  46834. if (t4 === nextIndentation)
  46835. A.throwExpression(A.LateError$localNI(t2));
  46836. nextIndentation._value = t4 + 1;
  46837. t1.readChar$0();
  46838. }
  46839. t4 = t1._string_scanner$_position;
  46840. if (t4 === t3) {
  46841. _this._nextIndentation = 0;
  46842. _this._nextIndentationEnd = new A._SpanScannerState(t1, t4);
  46843. t1.set$state(start);
  46844. return 0;
  46845. }
  46846. } while (_this.scanCharIf$1(A.character__isNewline$closure()));
  46847. t2 = containsTab._readLocal$0();
  46848. t3 = containsSpace._readLocal$0();
  46849. if (t2) {
  46850. if (t3) {
  46851. t2 = t1._string_scanner$_position;
  46852. t3 = t1._sourceFile;
  46853. t4 = t3.getColumn$1(t2);
  46854. t1.error$3$length$position(0, "Tabs and spaces may not be mixed.", t3.getColumn$1(t1._string_scanner$_position), t2 - t4);
  46855. } else if (_this._spaces === true) {
  46856. t2 = t1._string_scanner$_position;
  46857. t3 = t1._sourceFile;
  46858. t4 = t3.getColumn$1(t2);
  46859. t1.error$3$length$position(0, "Expected spaces, was tabs.", t3.getColumn$1(t1._string_scanner$_position), t2 - t4);
  46860. }
  46861. } else if (t3 && _this._spaces === false) {
  46862. t2 = t1._string_scanner$_position;
  46863. t3 = t1._sourceFile;
  46864. t4 = t3.getColumn$1(t2);
  46865. t1.error$3$length$position(0, "Expected tabs, was spaces.", t3.getColumn$1(t1._string_scanner$_position), t2 - t4);
  46866. }
  46867. _this._nextIndentation = nextIndentation._readLocal$0();
  46868. if (nextIndentation._readLocal$0() > 0)
  46869. if (_this._spaces == null)
  46870. _this._spaces = containsSpace._readLocal$0();
  46871. _this._nextIndentationEnd = new A._SpanScannerState(t1, t1._string_scanner$_position);
  46872. t1.set$state(start);
  46873. return nextIndentation._readLocal$0();
  46874. }
  46875. };
  46876. A.SassParser_children_closure.prototype = {
  46877. call$0() {
  46878. var parsedChild = this.$this._child$1(this.child);
  46879. if (parsedChild != null)
  46880. this.children.push(parsedChild);
  46881. },
  46882. $signature: 0
  46883. };
  46884. A.ScssParser.prototype = {
  46885. get$indented() {
  46886. return false;
  46887. },
  46888. get$currentIndentation() {
  46889. return 0;
  46890. },
  46891. styleRuleSelector$0() {
  46892. return this.almostAnyValue$0();
  46893. },
  46894. expectStatementSeparator$1($name) {
  46895. var t1, next;
  46896. this.whitespaceWithoutComments$0();
  46897. t1 = this.scanner;
  46898. if (t1._string_scanner$_position === t1.string.length)
  46899. return;
  46900. next = t1.peekChar$0();
  46901. if (next === 59 || next === 125)
  46902. return;
  46903. t1.expectChar$1(59);
  46904. },
  46905. expectStatementSeparator$0() {
  46906. return this.expectStatementSeparator$1(null);
  46907. },
  46908. atEndOfStatement$0() {
  46909. var next = this.scanner.peekChar$0();
  46910. return next == null || next === 59 || next === 125 || next === 123;
  46911. },
  46912. lookingAtChildren$0() {
  46913. return this.scanner.peekChar$0() === 123;
  46914. },
  46915. scanElse$1(ifIndentation) {
  46916. var t3, _this = this,
  46917. t1 = _this.scanner,
  46918. t2 = t1._string_scanner$_position;
  46919. _this.whitespace$0();
  46920. t3 = t1._string_scanner$_position;
  46921. if (t1.scanChar$1(64)) {
  46922. if (_this.scanIdentifier$2$caseSensitive("else", true))
  46923. return true;
  46924. if (_this.scanIdentifier$2$caseSensitive("elseif", true)) {
  46925. _this.logger.warn$3$deprecation$span(0, string$.x40elsei, true, t1.spanFrom$1(new A._SpanScannerState(t1, t3)));
  46926. t1.set$position(t1._string_scanner$_position - 2);
  46927. return true;
  46928. }
  46929. }
  46930. t1.set$state(new A._SpanScannerState(t1, t2));
  46931. return false;
  46932. },
  46933. children$1(_, child) {
  46934. var children, _this = this,
  46935. t1 = _this.scanner;
  46936. t1.expectChar$1(123);
  46937. _this.whitespaceWithoutComments$0();
  46938. children = A._setArrayType([], type$.JSArray_Statement);
  46939. for (; true;)
  46940. switch (t1.peekChar$0()) {
  46941. case 36:
  46942. children.push(_this.variableDeclarationWithoutNamespace$0());
  46943. break;
  46944. case 47:
  46945. switch (t1.peekChar$1(1)) {
  46946. case 47:
  46947. children.push(_this._scss$_silentComment$0());
  46948. _this.whitespaceWithoutComments$0();
  46949. break;
  46950. case 42:
  46951. children.push(_this._scss$_loudComment$0());
  46952. _this.whitespaceWithoutComments$0();
  46953. break;
  46954. default:
  46955. children.push(child.call$0());
  46956. break;
  46957. }
  46958. break;
  46959. case 59:
  46960. t1.readChar$0();
  46961. _this.whitespaceWithoutComments$0();
  46962. break;
  46963. case 125:
  46964. t1.expectChar$1(125);
  46965. return children;
  46966. default:
  46967. children.push(child.call$0());
  46968. break;
  46969. }
  46970. },
  46971. statements$1(statement) {
  46972. var t1, t2, child, _this = this,
  46973. statements = A._setArrayType([], type$.JSArray_Statement);
  46974. _this.whitespaceWithoutComments$0();
  46975. for (t1 = _this.scanner, t2 = t1.string.length; t1._string_scanner$_position !== t2;)
  46976. switch (t1.peekChar$0()) {
  46977. case 36:
  46978. statements.push(_this.variableDeclarationWithoutNamespace$0());
  46979. break;
  46980. case 47:
  46981. switch (t1.peekChar$1(1)) {
  46982. case 47:
  46983. statements.push(_this._scss$_silentComment$0());
  46984. _this.whitespaceWithoutComments$0();
  46985. break;
  46986. case 42:
  46987. statements.push(_this._scss$_loudComment$0());
  46988. _this.whitespaceWithoutComments$0();
  46989. break;
  46990. default:
  46991. child = statement.call$0();
  46992. if (child != null)
  46993. statements.push(child);
  46994. break;
  46995. }
  46996. break;
  46997. case 59:
  46998. t1.readChar$0();
  46999. _this.whitespaceWithoutComments$0();
  47000. break;
  47001. default:
  47002. child = statement.call$0();
  47003. if (child != null)
  47004. statements.push(child);
  47005. break;
  47006. }
  47007. return statements;
  47008. },
  47009. _scss$_silentComment$0() {
  47010. var t2, t3, _this = this,
  47011. t1 = _this.scanner,
  47012. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  47013. t1.expect$1("//");
  47014. t2 = t1.string.length;
  47015. do {
  47016. while (true) {
  47017. if (t1._string_scanner$_position !== t2) {
  47018. t3 = t1.readChar$0();
  47019. t3 = !(t3 === 10 || t3 === 13 || t3 === 12);
  47020. } else
  47021. t3 = false;
  47022. if (!t3)
  47023. break;
  47024. }
  47025. if (t1._string_scanner$_position === t2)
  47026. break;
  47027. _this.whitespaceWithoutComments$0();
  47028. } while (t1.scan$1("//"));
  47029. if (_this.get$plainCss())
  47030. _this.error$2(0, string$.Silent, t1.spanFrom$1(start));
  47031. return _this.lastSilentComment = new A.SilentComment(t1.substring$1(0, start.position), t1.spanFrom$1(start));
  47032. },
  47033. _scss$_loudComment$0() {
  47034. var t3, t4, buffer, t5, endPosition, t6, result,
  47035. t1 = this.scanner,
  47036. t2 = t1._string_scanner$_position;
  47037. t1.expect$1("/*");
  47038. t3 = new A.StringBuffer("");
  47039. t4 = A._setArrayType([], type$.JSArray_Object);
  47040. buffer = new A.InterpolationBuffer(t3, t4);
  47041. t3._contents = "" + "/*";
  47042. for (; true;)
  47043. switch (t1.peekChar$0()) {
  47044. case 35:
  47045. if (t1.peekChar$1(1) === 123) {
  47046. t5 = this.singleInterpolation$0();
  47047. buffer._flushText$0();
  47048. t4.push(t5);
  47049. } else
  47050. t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  47051. break;
  47052. case 42:
  47053. t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  47054. if (t1.peekChar$0() !== 47)
  47055. break;
  47056. t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  47057. endPosition = t1._string_scanner$_position;
  47058. t5 = t1._sourceFile;
  47059. t6 = new A._SpanScannerState(t1, t2).position;
  47060. t1 = new A._FileSpan(t5, t6, endPosition);
  47061. t1._FileSpan$3(t5, t6, endPosition);
  47062. t6 = type$.Object;
  47063. t5 = A.List_List$of(t4, true, t6);
  47064. t2 = t3._contents;
  47065. if (t2.length !== 0)
  47066. t5.push(t2.charCodeAt(0) == 0 ? t2 : t2);
  47067. result = A.List_List$from(t5, false, t6);
  47068. result.fixed$length = Array;
  47069. result.immutable$list = Array;
  47070. t2 = new A.Interpolation(result, t1);
  47071. t2.Interpolation$2(t5, t1);
  47072. return new A.LoudComment(t2);
  47073. case 13:
  47074. t1.readChar$0();
  47075. if (t1.peekChar$0() !== 10)
  47076. t3._contents += A.Primitives_stringFromCharCode(10);
  47077. break;
  47078. case 12:
  47079. t1.readChar$0();
  47080. t3._contents += A.Primitives_stringFromCharCode(10);
  47081. break;
  47082. default:
  47083. t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  47084. break;
  47085. }
  47086. }
  47087. };
  47088. A.SelectorParser.prototype = {
  47089. parse$0() {
  47090. return this.wrapSpanFormatException$1(new A.SelectorParser_parse_closure(this));
  47091. },
  47092. parseCompoundSelector$0() {
  47093. return this.wrapSpanFormatException$1(new A.SelectorParser_parseCompoundSelector_closure(this));
  47094. },
  47095. _selectorList$0() {
  47096. var t3, t4, lineBreak, _this = this,
  47097. t1 = _this.scanner,
  47098. t2 = t1._sourceFile,
  47099. previousLine = t2.getLine$1(t1._string_scanner$_position),
  47100. components = A._setArrayType([_this._complexSelector$0()], type$.JSArray_ComplexSelector);
  47101. _this.whitespace$0();
  47102. for (t3 = t1.string.length; t1.scanChar$1(44);) {
  47103. _this.whitespace$0();
  47104. if (t1.peekChar$0() === 44)
  47105. continue;
  47106. t4 = t1._string_scanner$_position;
  47107. if (t4 === t3)
  47108. break;
  47109. lineBreak = t2.getLine$1(t4) !== previousLine;
  47110. if (lineBreak)
  47111. previousLine = t2.getLine$1(t1._string_scanner$_position);
  47112. components.push(_this._complexSelector$1$lineBreak(lineBreak));
  47113. }
  47114. return A.SelectorList$(components);
  47115. },
  47116. _complexSelector$1$lineBreak(lineBreak) {
  47117. var t2, t3, t4, lastCompound, initialCombinators, next, t5, result, _this = this,
  47118. t1 = type$.JSArray_Combinator,
  47119. combinators = A._setArrayType([], t1),
  47120. components = A._setArrayType([], type$.JSArray_ComplexSelectorComponent);
  47121. $label0$1:
  47122. for (t2 = _this.scanner, t3 = B.Set_2Vk2._map, t4 = type$.Combinator, lastCompound = null, initialCombinators = null; true;) {
  47123. _this.whitespace$0();
  47124. next = t2.peekChar$0();
  47125. switch (next) {
  47126. case 43:
  47127. t2.readChar$0();
  47128. combinators.push(B.Combinator_4QF);
  47129. break;
  47130. case 62:
  47131. t2.readChar$0();
  47132. combinators.push(B.Combinator_Cht);
  47133. break;
  47134. case 126:
  47135. t2.readChar$0();
  47136. combinators.push(B.Combinator_Htt);
  47137. break;
  47138. default:
  47139. if (next != null)
  47140. t5 = !t3.containsKey$1(next) && !_this.lookingAtIdentifier$0();
  47141. else
  47142. t5 = true;
  47143. if (t5)
  47144. break $label0$1;
  47145. if (lastCompound != null) {
  47146. result = A.List_List$from(combinators, false, t4);
  47147. result.fixed$length = Array;
  47148. result.immutable$list = Array;
  47149. components.push(new A.ComplexSelectorComponent(lastCompound, result));
  47150. } else if (combinators.length !== 0)
  47151. initialCombinators = combinators;
  47152. lastCompound = _this._compoundSelector$0();
  47153. combinators = A._setArrayType([], t1);
  47154. if (t2.peekChar$0() === 38)
  47155. t2.error$1(0, string$.x22x26__ma);
  47156. break;
  47157. }
  47158. }
  47159. if (lastCompound != null)
  47160. components.push(new A.ComplexSelectorComponent(lastCompound, A.List_List$unmodifiable(combinators, t4)));
  47161. else if (combinators.length !== 0)
  47162. initialCombinators = combinators;
  47163. else
  47164. t2.error$1(0, "expected selector.");
  47165. return A.ComplexSelector$(initialCombinators == null ? B.List_empty0 : initialCombinators, components, lineBreak);
  47166. },
  47167. _complexSelector$0() {
  47168. return this._complexSelector$1$lineBreak(false);
  47169. },
  47170. _compoundSelector$0() {
  47171. var t2,
  47172. components = A._setArrayType([this._simpleSelector$0()], type$.JSArray_SimpleSelector),
  47173. t1 = this.scanner;
  47174. while (true) {
  47175. t2 = t1.peekChar$0();
  47176. if (!(t2 === 42 || t2 === 91 || t2 === 46 || t2 === 35 || t2 === 37 || t2 === 58))
  47177. break;
  47178. components.push(this._simpleSelector$1$allowParent(false));
  47179. }
  47180. return A.CompoundSelector$(components);
  47181. },
  47182. _simpleSelector$1$allowParent(allowParent) {
  47183. var $name, text, t2, suffix, _this = this,
  47184. t1 = _this.scanner,
  47185. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  47186. if (allowParent == null)
  47187. allowParent = _this._allowParent;
  47188. switch (t1.peekChar$0()) {
  47189. case 91:
  47190. return _this._attributeSelector$0();
  47191. case 46:
  47192. t1.expectChar$1(46);
  47193. return new A.ClassSelector(_this.identifier$0());
  47194. case 35:
  47195. t1.expectChar$1(35);
  47196. return new A.IDSelector(_this.identifier$0());
  47197. case 37:
  47198. t1.expectChar$1(37);
  47199. $name = _this.identifier$0();
  47200. if (!_this._allowPlaceholder)
  47201. _this.error$2(0, string$.Placeh, t1.spanFrom$1(start));
  47202. return new A.PlaceholderSelector($name);
  47203. case 58:
  47204. return _this._pseudoSelector$0();
  47205. case 38:
  47206. t1.expectChar$1(38);
  47207. if (_this.lookingAtIdentifierBody$0()) {
  47208. text = new A.StringBuffer("");
  47209. _this._identifierBody$1(text);
  47210. if (text._contents.length === 0)
  47211. t1.error$1(0, "Expected identifier body.");
  47212. t2 = text._contents;
  47213. suffix = t2.charCodeAt(0) == 0 ? t2 : t2;
  47214. } else
  47215. suffix = null;
  47216. if (!allowParent)
  47217. _this.error$2(0, "Parent selectors aren't allowed here.", t1.spanFrom$1(start));
  47218. return new A.ParentSelector(suffix);
  47219. default:
  47220. return _this._typeOrUniversalSelector$0();
  47221. }
  47222. },
  47223. _simpleSelector$0() {
  47224. return this._simpleSelector$1$allowParent(null);
  47225. },
  47226. _attributeSelector$0() {
  47227. var $name, operator, next, value, modifier, _this = this, _null = null,
  47228. t1 = _this.scanner;
  47229. t1.expectChar$1(91);
  47230. _this.whitespace$0();
  47231. $name = _this._attributeName$0();
  47232. _this.whitespace$0();
  47233. if (t1.scanChar$1(93))
  47234. return new A.AttributeSelector($name, _null, _null, _null);
  47235. operator = _this._attributeOperator$0();
  47236. _this.whitespace$0();
  47237. next = t1.peekChar$0();
  47238. value = next === 39 || next === 34 ? _this.string$0() : _this.identifier$0();
  47239. _this.whitespace$0();
  47240. next = t1.peekChar$0();
  47241. modifier = next != null && A.isAlphabetic0(next) ? A.Primitives_stringFromCharCode(t1.readChar$0()) : _null;
  47242. t1.expectChar$1(93);
  47243. return new A.AttributeSelector($name, operator, value, modifier);
  47244. },
  47245. _attributeName$0() {
  47246. var nameOrNamespace, _this = this,
  47247. t1 = _this.scanner;
  47248. if (t1.scanChar$1(42)) {
  47249. t1.expectChar$1(124);
  47250. return new A.QualifiedName(_this.identifier$0(), "*");
  47251. }
  47252. if (t1.scanChar$1(124))
  47253. return new A.QualifiedName(_this.identifier$0(), "");
  47254. nameOrNamespace = _this.identifier$0();
  47255. if (t1.peekChar$0() !== 124 || t1.peekChar$1(1) === 61)
  47256. return new A.QualifiedName(nameOrNamespace, null);
  47257. t1.readChar$0();
  47258. return new A.QualifiedName(_this.identifier$0(), nameOrNamespace);
  47259. },
  47260. _attributeOperator$0() {
  47261. var t1 = this.scanner,
  47262. t2 = t1._string_scanner$_position;
  47263. switch (t1.readChar$0()) {
  47264. case 61:
  47265. return B.AttributeOperator_ES6;
  47266. case 126:
  47267. t1.expectChar$1(61);
  47268. return B.AttributeOperator_r60;
  47269. case 124:
  47270. t1.expectChar$1(61);
  47271. return B.AttributeOperator_ivT;
  47272. case 94:
  47273. t1.expectChar$1(61);
  47274. return B.AttributeOperator_eot;
  47275. case 36:
  47276. t1.expectChar$1(61);
  47277. return B.AttributeOperator_BGd;
  47278. case 42:
  47279. t1.expectChar$1(61);
  47280. return B.AttributeOperator_8aB;
  47281. default:
  47282. t1.error$2$position(0, 'Expected "]".', t2);
  47283. }
  47284. },
  47285. _pseudoSelector$0() {
  47286. var element, $name, unvendored, selector, argument, t2, _this = this, _null = null,
  47287. t1 = _this.scanner;
  47288. t1.expectChar$1(58);
  47289. element = t1.scanChar$1(58);
  47290. $name = _this.identifier$0();
  47291. if (!t1.scanChar$1(40))
  47292. return A.PseudoSelector$($name, _null, element, _null);
  47293. _this.whitespace$0();
  47294. unvendored = A.unvendor($name);
  47295. if (element)
  47296. if ($._selectorPseudoElements.contains$1(0, unvendored)) {
  47297. selector = _this._selectorList$0();
  47298. argument = _null;
  47299. } else {
  47300. argument = _this.declarationValue$1$allowEmpty(true);
  47301. selector = _null;
  47302. }
  47303. else if ($._selectorPseudoClasses.contains$1(0, unvendored)) {
  47304. selector = _this._selectorList$0();
  47305. argument = _null;
  47306. } else if (unvendored === "nth-child" || unvendored === "nth-last-child") {
  47307. argument = _this._aNPlusB$0();
  47308. _this.whitespace$0();
  47309. t2 = t1.peekChar$1(-1);
  47310. if ((t2 === 32 || t2 === 9 || t2 === 10 || t2 === 13 || t2 === 12) && t1.peekChar$0() !== 41) {
  47311. _this.expectIdentifier$1("of");
  47312. argument += " of";
  47313. _this.whitespace$0();
  47314. selector = _this._selectorList$0();
  47315. } else
  47316. selector = _null;
  47317. } else {
  47318. argument = B.JSString_methods.trimRight$0(_this.declarationValue$1$allowEmpty(true));
  47319. selector = _null;
  47320. }
  47321. t1.expectChar$1(41);
  47322. return A.PseudoSelector$($name, argument, element, selector);
  47323. },
  47324. _aNPlusB$0() {
  47325. var t2, first, t3, next, last, _this = this,
  47326. t1 = _this.scanner;
  47327. switch (t1.peekChar$0()) {
  47328. case 101:
  47329. case 69:
  47330. _this.expectIdentifier$1("even");
  47331. return "even";
  47332. case 111:
  47333. case 79:
  47334. _this.expectIdentifier$1("odd");
  47335. return "odd";
  47336. case 43:
  47337. case 45:
  47338. t2 = "" + A.Primitives_stringFromCharCode(t1.readChar$0());
  47339. break;
  47340. default:
  47341. t2 = "";
  47342. }
  47343. first = t1.peekChar$0();
  47344. if (first != null && A.isDigit(first)) {
  47345. while (true) {
  47346. t3 = t1.peekChar$0();
  47347. if (!(t3 != null && t3 >= 48 && t3 <= 57))
  47348. break;
  47349. t2 += A.Primitives_stringFromCharCode(t1.readChar$0());
  47350. }
  47351. _this.whitespace$0();
  47352. if (!_this.scanIdentChar$1(110))
  47353. return t2.charCodeAt(0) == 0 ? t2 : t2;
  47354. } else
  47355. _this.expectIdentChar$1(110);
  47356. t2 += A.Primitives_stringFromCharCode(110);
  47357. _this.whitespace$0();
  47358. next = t1.peekChar$0();
  47359. if (next !== 43 && next !== 45)
  47360. return t2.charCodeAt(0) == 0 ? t2 : t2;
  47361. t2 += A.Primitives_stringFromCharCode(t1.readChar$0());
  47362. _this.whitespace$0();
  47363. last = t1.peekChar$0();
  47364. if (last == null || !A.isDigit(last))
  47365. t1.error$1(0, "Expected a number.");
  47366. while (true) {
  47367. t3 = t1.peekChar$0();
  47368. if (!(t3 != null && t3 >= 48 && t3 <= 57))
  47369. break;
  47370. t2 += A.Primitives_stringFromCharCode(t1.readChar$0());
  47371. }
  47372. return t2.charCodeAt(0) == 0 ? t2 : t2;
  47373. },
  47374. _typeOrUniversalSelector$0() {
  47375. var nameOrNamespace, _this = this,
  47376. t1 = _this.scanner,
  47377. first = t1.peekChar$0();
  47378. if (first === 42) {
  47379. t1.readChar$0();
  47380. if (!t1.scanChar$1(124))
  47381. return new A.UniversalSelector(null);
  47382. if (t1.scanChar$1(42))
  47383. return new A.UniversalSelector("*");
  47384. else
  47385. return new A.TypeSelector(new A.QualifiedName(_this.identifier$0(), "*"));
  47386. } else if (first === 124) {
  47387. t1.readChar$0();
  47388. if (t1.scanChar$1(42))
  47389. return new A.UniversalSelector("");
  47390. else
  47391. return new A.TypeSelector(new A.QualifiedName(_this.identifier$0(), ""));
  47392. }
  47393. nameOrNamespace = _this.identifier$0();
  47394. if (!t1.scanChar$1(124))
  47395. return new A.TypeSelector(new A.QualifiedName(nameOrNamespace, null));
  47396. else if (t1.scanChar$1(42))
  47397. return new A.UniversalSelector(nameOrNamespace);
  47398. else
  47399. return new A.TypeSelector(new A.QualifiedName(_this.identifier$0(), nameOrNamespace));
  47400. }
  47401. };
  47402. A.SelectorParser_parse_closure.prototype = {
  47403. call$0() {
  47404. var t1 = this.$this,
  47405. selector = t1._selectorList$0();
  47406. t1 = t1.scanner;
  47407. if (t1._string_scanner$_position !== t1.string.length)
  47408. t1.error$1(0, "expected selector.");
  47409. return selector;
  47410. },
  47411. $signature: 44
  47412. };
  47413. A.SelectorParser_parseCompoundSelector_closure.prototype = {
  47414. call$0() {
  47415. var t1 = this.$this,
  47416. compound = t1._compoundSelector$0();
  47417. t1 = t1.scanner;
  47418. if (t1._string_scanner$_position !== t1.string.length)
  47419. t1.error$1(0, "expected selector.");
  47420. return compound;
  47421. },
  47422. $signature: 345
  47423. };
  47424. A.StylesheetParser.prototype = {
  47425. parse$0() {
  47426. return this.wrapSpanFormatException$1(new A.StylesheetParser_parse_closure(this));
  47427. },
  47428. parseArgumentDeclaration$0() {
  47429. return this._parseSingleProduction$1$1(new A.StylesheetParser_parseArgumentDeclaration_closure(this), type$.ArgumentDeclaration);
  47430. },
  47431. parseVariableDeclaration$0() {
  47432. return this._parseSingleProduction$1$1(new A.StylesheetParser_parseVariableDeclaration_closure(this), type$.VariableDeclaration);
  47433. },
  47434. parseUseRule$0() {
  47435. return this._parseSingleProduction$1$1(new A.StylesheetParser_parseUseRule_closure(this), type$.UseRule);
  47436. },
  47437. _parseSingleProduction$1$1(production, $T) {
  47438. return this.wrapSpanFormatException$1(new A.StylesheetParser__parseSingleProduction_closure(this, production, $T));
  47439. },
  47440. _statement$1$root(root) {
  47441. var t2, _this = this,
  47442. t1 = _this.scanner;
  47443. switch (t1.peekChar$0()) {
  47444. case 64:
  47445. return _this.atRule$2$root(new A.StylesheetParser__statement_closure(_this), root);
  47446. case 43:
  47447. if (!_this.get$indented() || !_this.lookingAtIdentifier$1(1))
  47448. return _this._styleRule$0();
  47449. _this._isUseAllowed = false;
  47450. t2 = t1._string_scanner$_position;
  47451. t1.readChar$0();
  47452. return _this._includeRule$1(new A._SpanScannerState(t1, t2));
  47453. case 61:
  47454. if (!_this.get$indented())
  47455. return _this._styleRule$0();
  47456. _this._isUseAllowed = false;
  47457. t2 = t1._string_scanner$_position;
  47458. t1.readChar$0();
  47459. _this.whitespace$0();
  47460. return _this._mixinRule$1(new A._SpanScannerState(t1, t2));
  47461. case 125:
  47462. t1.error$2$length(0, 'unmatched "}".', 1);
  47463. break;
  47464. default:
  47465. return _this._inStyleRule || _this._stylesheet$_inUnknownAtRule || _this._stylesheet$_inMixin || _this._inContentBlock ? _this._declarationOrStyleRule$0() : _this._variableDeclarationOrStyleRule$0();
  47466. }
  47467. },
  47468. _statement$0() {
  47469. return this._statement$1$root(false);
  47470. },
  47471. _variableDeclarationWithNamespace$0() {
  47472. var t1 = this.scanner,
  47473. t2 = t1._string_scanner$_position,
  47474. namespace = this.identifier$0();
  47475. t1.expectChar$1(46);
  47476. return this.variableDeclarationWithoutNamespace$2(namespace, new A._SpanScannerState(t1, t2));
  47477. },
  47478. variableDeclarationWithoutNamespace$2(namespace, start_) {
  47479. var t1, start, $name, t2, value, flagStart, t3, guarded, global, flag, endPosition, t4, t5, t6, declaration, _this = this,
  47480. precedingComment = _this.lastSilentComment;
  47481. _this.lastSilentComment = null;
  47482. if (start_ == null) {
  47483. t1 = _this.scanner;
  47484. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  47485. } else
  47486. start = start_;
  47487. $name = _this.variableName$0();
  47488. t1 = namespace != null;
  47489. if (t1)
  47490. _this._assertPublic$2($name, new A.StylesheetParser_variableDeclarationWithoutNamespace_closure(_this, start));
  47491. if (_this.get$plainCss())
  47492. _this.error$2(0, string$.Sass_v, _this.scanner.spanFrom$1(start));
  47493. _this.whitespace$0();
  47494. t2 = _this.scanner;
  47495. t2.expectChar$1(58);
  47496. _this.whitespace$0();
  47497. value = _this._expression$0();
  47498. flagStart = new A._SpanScannerState(t2, t2._string_scanner$_position);
  47499. for (t3 = t2.string, guarded = false, global = false; t2.scanChar$1(33);) {
  47500. flag = _this.identifier$0();
  47501. if (flag === "default")
  47502. guarded = true;
  47503. else if (flag === "global") {
  47504. if (t1) {
  47505. endPosition = t2._string_scanner$_position;
  47506. t4 = t2._sourceFile;
  47507. t5 = flagStart.position;
  47508. t6 = new A._FileSpan(t4, t5, endPosition);
  47509. t6._FileSpan$3(t4, t5, endPosition);
  47510. A.throwExpression(new A.StringScannerException(t3, string$.x21globa, t6));
  47511. }
  47512. global = true;
  47513. } else {
  47514. endPosition = t2._string_scanner$_position;
  47515. t4 = t2._sourceFile;
  47516. t5 = flagStart.position;
  47517. t6 = new A._FileSpan(t4, t5, endPosition);
  47518. t6._FileSpan$3(t4, t5, endPosition);
  47519. A.throwExpression(new A.StringScannerException(t3, "Invalid flag name.", t6));
  47520. }
  47521. _this.whitespace$0();
  47522. flagStart = new A._SpanScannerState(t2, t2._string_scanner$_position);
  47523. }
  47524. _this.expectStatementSeparator$1("variable declaration");
  47525. declaration = A.VariableDeclaration$($name, value, t2.spanFrom$1(start), precedingComment, global, guarded, namespace);
  47526. if (global)
  47527. _this._globalVariables.putIfAbsent$2($name, new A.StylesheetParser_variableDeclarationWithoutNamespace_closure0(declaration));
  47528. return declaration;
  47529. },
  47530. variableDeclarationWithoutNamespace$0() {
  47531. return this.variableDeclarationWithoutNamespace$2(null, null);
  47532. },
  47533. _variableDeclarationOrStyleRule$0() {
  47534. var t1, t2, variableOrInterpolation, t3, _this = this;
  47535. if (_this.get$plainCss())
  47536. return _this._styleRule$0();
  47537. if (_this.get$indented() && _this.scanner.scanChar$1(92))
  47538. return _this._styleRule$0();
  47539. if (!_this.lookingAtIdentifier$0())
  47540. return _this._styleRule$0();
  47541. t1 = _this.scanner;
  47542. t2 = t1._string_scanner$_position;
  47543. variableOrInterpolation = _this._variableDeclarationOrInterpolation$0();
  47544. if (variableOrInterpolation instanceof A.VariableDeclaration)
  47545. return variableOrInterpolation;
  47546. else {
  47547. t3 = new A.InterpolationBuffer(new A.StringBuffer(""), A._setArrayType([], type$.JSArray_Object));
  47548. t3.addInterpolation$1(type$.Interpolation._as(variableOrInterpolation));
  47549. return _this._styleRule$2(t3, new A._SpanScannerState(t1, t2));
  47550. }
  47551. },
  47552. _declarationOrStyleRule$0() {
  47553. var t1, t2, declarationOrBuffer, _this = this;
  47554. if (_this.get$plainCss() && _this._inStyleRule && !_this._stylesheet$_inUnknownAtRule)
  47555. return _this._propertyOrVariableDeclaration$0();
  47556. if (_this.get$indented() && _this.scanner.scanChar$1(92))
  47557. return _this._styleRule$0();
  47558. t1 = _this.scanner;
  47559. t2 = t1._string_scanner$_position;
  47560. declarationOrBuffer = _this._declarationOrBuffer$0();
  47561. return type$.Statement._is(declarationOrBuffer) ? declarationOrBuffer : _this._styleRule$2(type$.InterpolationBuffer._as(declarationOrBuffer), new A._SpanScannerState(t1, t2));
  47562. },
  47563. _declarationOrBuffer$0() {
  47564. var midBuffer, couldBeSelector, beforeDeclaration, additional, t3, startsWithPunctuation, variableOrInterpolation, t4, $name, postColonWhitespace, exception, _this = this, t1 = {},
  47565. t2 = _this.scanner,
  47566. start = new A._SpanScannerState(t2, t2._string_scanner$_position),
  47567. nameBuffer = new A.InterpolationBuffer(new A.StringBuffer(""), A._setArrayType([], type$.JSArray_Object)),
  47568. first = t2.peekChar$0();
  47569. if (first !== 58)
  47570. if (first !== 42)
  47571. if (first !== 46)
  47572. t3 = first === 35 && t2.peekChar$1(1) !== 123;
  47573. else
  47574. t3 = true;
  47575. else
  47576. t3 = true;
  47577. else
  47578. t3 = true;
  47579. if (t3) {
  47580. t3 = t2.readChar$0();
  47581. nameBuffer._interpolation_buffer$_text._contents += A.Primitives_stringFromCharCode(t3);
  47582. t3 = _this.rawText$1(_this.get$whitespace());
  47583. nameBuffer._interpolation_buffer$_text._contents += t3;
  47584. startsWithPunctuation = true;
  47585. } else
  47586. startsWithPunctuation = false;
  47587. if (!_this._lookingAtInterpolatedIdentifier$0())
  47588. return nameBuffer;
  47589. variableOrInterpolation = startsWithPunctuation ? _this.interpolatedIdentifier$0() : _this._variableDeclarationOrInterpolation$0();
  47590. if (variableOrInterpolation instanceof A.VariableDeclaration)
  47591. return variableOrInterpolation;
  47592. else
  47593. nameBuffer.addInterpolation$1(type$.Interpolation._as(variableOrInterpolation));
  47594. _this._isUseAllowed = false;
  47595. if (t2.matches$1("/*")) {
  47596. t3 = _this.rawText$1(_this.get$loudComment());
  47597. nameBuffer._interpolation_buffer$_text._contents += t3;
  47598. }
  47599. midBuffer = new A.StringBuffer("");
  47600. t3 = _this.get$whitespace();
  47601. midBuffer._contents += _this.rawText$1(t3);
  47602. t4 = t2._string_scanner$_position;
  47603. if (!t2.scanChar$1(58)) {
  47604. if (midBuffer._contents.length !== 0)
  47605. nameBuffer._interpolation_buffer$_text._contents += A.Primitives_stringFromCharCode(32);
  47606. return nameBuffer;
  47607. }
  47608. midBuffer._contents += A.Primitives_stringFromCharCode(58);
  47609. $name = nameBuffer.interpolation$1(t2.spanFrom$2(start, new A._SpanScannerState(t2, t4)));
  47610. if (B.JSString_methods.startsWith$1($name.get$initialPlain(), "--")) {
  47611. t1 = _this._interpolatedDeclarationValue$0();
  47612. _this.expectStatementSeparator$1("custom property");
  47613. return A.Declaration$($name, new A.StringExpression(t1, false), t2.spanFrom$1(start));
  47614. }
  47615. if (t2.scanChar$1(58)) {
  47616. t1 = nameBuffer;
  47617. t2 = t1._interpolation_buffer$_text;
  47618. t3 = t2._contents += A.S(midBuffer);
  47619. t2._contents = t3 + A.Primitives_stringFromCharCode(58);
  47620. return t1;
  47621. } else if (_this.get$indented() && _this._lookingAtInterpolatedIdentifier$0()) {
  47622. t1 = nameBuffer;
  47623. t1._interpolation_buffer$_text._contents += A.S(midBuffer);
  47624. return t1;
  47625. }
  47626. postColonWhitespace = _this.rawText$1(t3);
  47627. if (_this.lookingAtChildren$0())
  47628. return _this._withChildren$3(_this.get$_declarationChild(), start, new A.StylesheetParser__declarationOrBuffer_closure($name));
  47629. midBuffer._contents += postColonWhitespace;
  47630. couldBeSelector = postColonWhitespace.length === 0 && _this._lookingAtInterpolatedIdentifier$0();
  47631. beforeDeclaration = new A._SpanScannerState(t2, t2._string_scanner$_position);
  47632. t3 = t1.value = null;
  47633. try {
  47634. t3 = t1.value = _this._expression$0();
  47635. if (_this.lookingAtChildren$0()) {
  47636. if (couldBeSelector)
  47637. _this.expectStatementSeparator$0();
  47638. } else if (!_this.atEndOfStatement$0())
  47639. _this.expectStatementSeparator$0();
  47640. } catch (exception) {
  47641. if (type$.FormatException._is(A.unwrapException(exception))) {
  47642. if (!couldBeSelector)
  47643. throw exception;
  47644. t2.set$state(beforeDeclaration);
  47645. additional = _this.almostAnyValue$0();
  47646. if (!_this.get$indented() && t2.peekChar$0() === 59)
  47647. throw exception;
  47648. nameBuffer._interpolation_buffer$_text._contents += A.S(midBuffer);
  47649. nameBuffer.addInterpolation$1(additional);
  47650. return nameBuffer;
  47651. } else
  47652. throw exception;
  47653. }
  47654. if (_this.lookingAtChildren$0())
  47655. return _this._withChildren$3(_this.get$_declarationChild(), start, new A.StylesheetParser__declarationOrBuffer_closure0(t1, $name));
  47656. else {
  47657. _this.expectStatementSeparator$0();
  47658. return A.Declaration$($name, t3, t2.spanFrom$1(start));
  47659. }
  47660. },
  47661. _variableDeclarationOrInterpolation$0() {
  47662. var t1, start, identifier, t2, buffer, _this = this;
  47663. if (!_this.lookingAtIdentifier$0())
  47664. return _this.interpolatedIdentifier$0();
  47665. t1 = _this.scanner;
  47666. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  47667. identifier = _this.identifier$0();
  47668. if (t1.matches$1(".$")) {
  47669. t1.readChar$0();
  47670. return _this.variableDeclarationWithoutNamespace$2(identifier, start);
  47671. } else {
  47672. t2 = new A.StringBuffer("");
  47673. buffer = new A.InterpolationBuffer(t2, A._setArrayType([], type$.JSArray_Object));
  47674. t2._contents = "" + identifier;
  47675. if (_this._lookingAtInterpolatedIdentifierBody$0())
  47676. buffer.addInterpolation$1(_this.interpolatedIdentifier$0());
  47677. return buffer.interpolation$1(t1.spanFrom$1(start));
  47678. }
  47679. },
  47680. _styleRule$2(buffer, start_) {
  47681. var t2, start, interpolation, wasInStyleRule, _this = this, t1 = {};
  47682. _this._isUseAllowed = false;
  47683. if (start_ == null) {
  47684. t2 = _this.scanner;
  47685. start = new A._SpanScannerState(t2, t2._string_scanner$_position);
  47686. } else
  47687. start = start_;
  47688. interpolation = t1.interpolation = _this.styleRuleSelector$0();
  47689. if (buffer != null) {
  47690. buffer.addInterpolation$1(interpolation);
  47691. t2 = t1.interpolation = buffer.interpolation$1(_this.scanner.spanFrom$1(start));
  47692. } else
  47693. t2 = interpolation;
  47694. if (t2.contents.length === 0)
  47695. _this.scanner.error$1(0, 'expected "}".');
  47696. wasInStyleRule = _this._inStyleRule;
  47697. _this._inStyleRule = true;
  47698. return _this._withChildren$3(_this.get$_statement(), start, new A.StylesheetParser__styleRule_closure(t1, _this, wasInStyleRule, start));
  47699. },
  47700. _styleRule$0() {
  47701. return this._styleRule$2(null, null);
  47702. },
  47703. _propertyOrVariableDeclaration$1$parseCustomProperties(parseCustomProperties) {
  47704. var first, t3, nameBuffer, variableOrInterpolation, $name, value, _this = this,
  47705. _s48_ = string$.Nested,
  47706. t1 = {},
  47707. t2 = _this.scanner,
  47708. start = new A._SpanScannerState(t2, t2._string_scanner$_position);
  47709. t1.name = null;
  47710. first = t2.peekChar$0();
  47711. if (first !== 58)
  47712. if (first !== 42)
  47713. if (first !== 46)
  47714. t3 = first === 35 && t2.peekChar$1(1) !== 123;
  47715. else
  47716. t3 = true;
  47717. else
  47718. t3 = true;
  47719. else
  47720. t3 = true;
  47721. if (t3) {
  47722. t3 = new A.StringBuffer("");
  47723. nameBuffer = new A.InterpolationBuffer(t3, A._setArrayType([], type$.JSArray_Object));
  47724. t3._contents += A.Primitives_stringFromCharCode(t2.readChar$0());
  47725. t3._contents += _this.rawText$1(_this.get$whitespace());
  47726. nameBuffer.addInterpolation$1(_this.interpolatedIdentifier$0());
  47727. t3 = t1.name = nameBuffer.interpolation$1(t2.spanFrom$1(start));
  47728. } else if (!_this.get$plainCss()) {
  47729. variableOrInterpolation = _this._variableDeclarationOrInterpolation$0();
  47730. if (variableOrInterpolation instanceof A.VariableDeclaration)
  47731. return variableOrInterpolation;
  47732. else {
  47733. type$.Interpolation._as(variableOrInterpolation);
  47734. t1.name = variableOrInterpolation;
  47735. }
  47736. t3 = variableOrInterpolation;
  47737. } else {
  47738. $name = _this.interpolatedIdentifier$0();
  47739. t1.name = $name;
  47740. t3 = $name;
  47741. }
  47742. _this.whitespace$0();
  47743. t2.expectChar$1(58);
  47744. if (parseCustomProperties && B.JSString_methods.startsWith$1(t3.get$initialPlain(), "--")) {
  47745. t1 = _this._interpolatedDeclarationValue$0();
  47746. _this.expectStatementSeparator$1("custom property");
  47747. return A.Declaration$(t3, new A.StringExpression(t1, false), t2.spanFrom$1(start));
  47748. }
  47749. _this.whitespace$0();
  47750. if (_this.lookingAtChildren$0()) {
  47751. if (_this.get$plainCss())
  47752. t2.error$1(0, _s48_);
  47753. return _this._withChildren$3(_this.get$_declarationChild(), start, new A.StylesheetParser__propertyOrVariableDeclaration_closure(t1));
  47754. }
  47755. value = _this._expression$0();
  47756. if (_this.lookingAtChildren$0()) {
  47757. if (_this.get$plainCss())
  47758. t2.error$1(0, _s48_);
  47759. return _this._withChildren$3(_this.get$_declarationChild(), start, new A.StylesheetParser__propertyOrVariableDeclaration_closure0(t1, value));
  47760. } else {
  47761. _this.expectStatementSeparator$0();
  47762. return A.Declaration$(t3, value, t2.spanFrom$1(start));
  47763. }
  47764. },
  47765. _propertyOrVariableDeclaration$0() {
  47766. return this._propertyOrVariableDeclaration$1$parseCustomProperties(true);
  47767. },
  47768. _declarationChild$0() {
  47769. if (this.scanner.peekChar$0() === 64)
  47770. return this._declarationAtRule$0();
  47771. return this._propertyOrVariableDeclaration$1$parseCustomProperties(false);
  47772. },
  47773. atRule$2$root(child, root) {
  47774. var $name, wasUseAllowed, value, optional, _this = this,
  47775. t1 = _this.scanner,
  47776. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  47777. t1.expectChar$2$name(64, "@-rule");
  47778. $name = _this.interpolatedIdentifier$0();
  47779. _this.whitespace$0();
  47780. wasUseAllowed = _this._isUseAllowed;
  47781. _this._isUseAllowed = false;
  47782. switch ($name.get$asPlain()) {
  47783. case "at-root":
  47784. return _this._atRootRule$1(start);
  47785. case "content":
  47786. return _this._contentRule$1(start);
  47787. case "debug":
  47788. return _this._debugRule$1(start);
  47789. case "each":
  47790. return _this._eachRule$2(start, child);
  47791. case "else":
  47792. return _this._disallowedAtRule$1(start);
  47793. case "error":
  47794. return _this._errorRule$1(start);
  47795. case "extend":
  47796. if (!_this._inStyleRule && !_this._stylesheet$_inMixin && !_this._inContentBlock)
  47797. _this.error$2(0, string$.x40exten, t1.spanFrom$1(start));
  47798. value = _this.almostAnyValue$0();
  47799. optional = t1.scanChar$1(33);
  47800. if (optional)
  47801. _this.expectIdentifier$1("optional");
  47802. _this.expectStatementSeparator$1("@extend rule");
  47803. return new A.ExtendRule(value, optional, t1.spanFrom$1(start));
  47804. case "for":
  47805. return _this._forRule$2(start, child);
  47806. case "forward":
  47807. _this._isUseAllowed = wasUseAllowed;
  47808. if (!root)
  47809. _this._disallowedAtRule$1(start);
  47810. return _this._forwardRule$1(start);
  47811. case "function":
  47812. return _this._functionRule$1(start);
  47813. case "if":
  47814. return _this._ifRule$2(start, child);
  47815. case "import":
  47816. return _this._importRule$1(start);
  47817. case "include":
  47818. return _this._includeRule$1(start);
  47819. case "media":
  47820. return _this.mediaRule$1(start);
  47821. case "mixin":
  47822. return _this._mixinRule$1(start);
  47823. case "-moz-document":
  47824. return _this.mozDocumentRule$2(start, $name);
  47825. case "return":
  47826. return _this._disallowedAtRule$1(start);
  47827. case "supports":
  47828. return _this.supportsRule$1(start);
  47829. case "use":
  47830. _this._isUseAllowed = wasUseAllowed;
  47831. if (!root)
  47832. _this._disallowedAtRule$1(start);
  47833. return _this._useRule$1(start);
  47834. case "warn":
  47835. return _this._warnRule$1(start);
  47836. case "while":
  47837. return _this._whileRule$2(start, child);
  47838. default:
  47839. return _this.unknownAtRule$2(start, $name);
  47840. }
  47841. },
  47842. _declarationAtRule$0() {
  47843. var _this = this,
  47844. t1 = _this.scanner,
  47845. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  47846. switch (_this._plainAtRuleName$0()) {
  47847. case "content":
  47848. return _this._contentRule$1(start);
  47849. case "debug":
  47850. return _this._debugRule$1(start);
  47851. case "each":
  47852. return _this._eachRule$2(start, _this.get$_declarationChild());
  47853. case "else":
  47854. return _this._disallowedAtRule$1(start);
  47855. case "error":
  47856. return _this._errorRule$1(start);
  47857. case "for":
  47858. return _this._forRule$2(start, _this.get$_declarationChild());
  47859. case "if":
  47860. return _this._ifRule$2(start, _this.get$_declarationChild());
  47861. case "include":
  47862. return _this._includeRule$1(start);
  47863. case "warn":
  47864. return _this._warnRule$1(start);
  47865. case "while":
  47866. return _this._whileRule$2(start, _this.get$_declarationChild());
  47867. default:
  47868. return _this._disallowedAtRule$1(start);
  47869. }
  47870. },
  47871. _functionChild$0() {
  47872. var state, variableDeclarationError, stackTrace, statement, t2, exception, t3, start, value, _this = this,
  47873. t1 = _this.scanner;
  47874. if (t1.peekChar$0() !== 64) {
  47875. state = new A._SpanScannerState(t1, t1._string_scanner$_position);
  47876. try {
  47877. t2 = _this._variableDeclarationWithNamespace$0();
  47878. return t2;
  47879. } catch (exception) {
  47880. t2 = A.unwrapException(exception);
  47881. t3 = type$.SourceSpanFormatException;
  47882. if (t3._is(t2)) {
  47883. variableDeclarationError = t2;
  47884. stackTrace = A.getTraceFromException(exception);
  47885. t1.set$state(state);
  47886. statement = null;
  47887. try {
  47888. statement = _this._declarationOrStyleRule$0();
  47889. } catch (exception) {
  47890. if (t3._is(A.unwrapException(exception)))
  47891. throw A.wrapException(variableDeclarationError);
  47892. else
  47893. throw exception;
  47894. }
  47895. t2 = statement instanceof A.StyleRule ? "style rules" : "declarations";
  47896. _this.error$3(0, "@function rules may not contain " + t2 + ".", J.get$span$z(statement), stackTrace);
  47897. } else
  47898. throw exception;
  47899. }
  47900. }
  47901. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  47902. switch (_this._plainAtRuleName$0()) {
  47903. case "debug":
  47904. return _this._debugRule$1(start);
  47905. case "each":
  47906. return _this._eachRule$2(start, _this.get$_functionChild());
  47907. case "else":
  47908. return _this._disallowedAtRule$1(start);
  47909. case "error":
  47910. return _this._errorRule$1(start);
  47911. case "for":
  47912. return _this._forRule$2(start, _this.get$_functionChild());
  47913. case "if":
  47914. return _this._ifRule$2(start, _this.get$_functionChild());
  47915. case "return":
  47916. value = _this._expression$0();
  47917. _this.expectStatementSeparator$1("@return rule");
  47918. return new A.ReturnRule(value, t1.spanFrom$1(start));
  47919. case "warn":
  47920. return _this._warnRule$1(start);
  47921. case "while":
  47922. return _this._whileRule$2(start, _this.get$_functionChild());
  47923. default:
  47924. return _this._disallowedAtRule$1(start);
  47925. }
  47926. },
  47927. _plainAtRuleName$0() {
  47928. this.scanner.expectChar$2$name(64, "@-rule");
  47929. var $name = this.identifier$0();
  47930. this.whitespace$0();
  47931. return $name;
  47932. },
  47933. _atRootRule$1(start) {
  47934. var query, _this = this,
  47935. t1 = _this.scanner;
  47936. if (t1.peekChar$0() === 40) {
  47937. query = _this._atRootQuery$0();
  47938. _this.whitespace$0();
  47939. return _this._withChildren$3(_this.get$_statement(), start, new A.StylesheetParser__atRootRule_closure(query));
  47940. } else if (_this.lookingAtChildren$0())
  47941. return _this._withChildren$3(_this.get$_statement(), start, new A.StylesheetParser__atRootRule_closure0());
  47942. else
  47943. return A.AtRootRule$(A._setArrayType([_this._styleRule$0()], type$.JSArray_Statement), t1.spanFrom$1(start), null);
  47944. },
  47945. _atRootQuery$0() {
  47946. var interpolation, t2, t3, t4, buffer, t5, _this = this,
  47947. t1 = _this.scanner;
  47948. if (t1.peekChar$0() === 35) {
  47949. interpolation = _this.singleInterpolation$0();
  47950. return A.Interpolation$(A._setArrayType([interpolation], type$.JSArray_Object), interpolation.get$span(interpolation));
  47951. }
  47952. t2 = t1._string_scanner$_position;
  47953. t3 = new A.StringBuffer("");
  47954. t4 = A._setArrayType([], type$.JSArray_Object);
  47955. buffer = new A.InterpolationBuffer(t3, t4);
  47956. t1.expectChar$1(40);
  47957. t3._contents += A.Primitives_stringFromCharCode(40);
  47958. _this.whitespace$0();
  47959. t5 = _this._expression$0();
  47960. buffer._flushText$0();
  47961. t4.push(t5);
  47962. if (t1.scanChar$1(58)) {
  47963. _this.whitespace$0();
  47964. t5 = t3._contents += A.Primitives_stringFromCharCode(58);
  47965. t3._contents = t5 + A.Primitives_stringFromCharCode(32);
  47966. t5 = _this._expression$0();
  47967. buffer._flushText$0();
  47968. t4.push(t5);
  47969. }
  47970. t1.expectChar$1(41);
  47971. _this.whitespace$0();
  47972. t3._contents += A.Primitives_stringFromCharCode(41);
  47973. return buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  47974. },
  47975. _contentRule$1(start) {
  47976. var t1, $arguments, t2, t3, _this = this;
  47977. if (!_this._stylesheet$_inMixin)
  47978. _this.error$2(0, string$.x40conte, _this.scanner.spanFrom$1(start));
  47979. _this.whitespace$0();
  47980. t1 = _this.scanner;
  47981. if (t1.peekChar$0() === 40)
  47982. $arguments = _this._argumentInvocation$1$mixin(true);
  47983. else {
  47984. t2 = A.FileLocation$_(t1._sourceFile, t1._string_scanner$_position);
  47985. t3 = t2.offset;
  47986. $arguments = A.ArgumentInvocation$empty(A._FileSpan$(t2.file, t3, t3));
  47987. }
  47988. _this.expectStatementSeparator$1("@content rule");
  47989. return new A.ContentRule($arguments, t1.spanFrom$1(start));
  47990. },
  47991. _debugRule$1(start) {
  47992. var value = this._expression$0();
  47993. this.expectStatementSeparator$1("@debug rule");
  47994. return new A.DebugRule(value, this.scanner.spanFrom$1(start));
  47995. },
  47996. _eachRule$2(start, child) {
  47997. var variables, t1, _this = this,
  47998. wasInControlDirective = _this._inControlDirective;
  47999. _this._inControlDirective = true;
  48000. variables = A._setArrayType([_this.variableName$0()], type$.JSArray_String);
  48001. _this.whitespace$0();
  48002. for (t1 = _this.scanner; t1.scanChar$1(44);) {
  48003. _this.whitespace$0();
  48004. t1.expectChar$1(36);
  48005. variables.push(_this.identifier$1$normalize(true));
  48006. _this.whitespace$0();
  48007. }
  48008. _this.expectIdentifier$1("in");
  48009. _this.whitespace$0();
  48010. return _this._withChildren$3(child, start, new A.StylesheetParser__eachRule_closure(_this, wasInControlDirective, variables, _this._expression$0()));
  48011. },
  48012. _errorRule$1(start) {
  48013. var value = this._expression$0();
  48014. this.expectStatementSeparator$1("@error rule");
  48015. return new A.ErrorRule(value, this.scanner.spanFrom$1(start));
  48016. },
  48017. _functionRule$1(start) {
  48018. var $name, $arguments, _this = this,
  48019. precedingComment = _this.lastSilentComment;
  48020. _this.lastSilentComment = null;
  48021. $name = _this.identifier$1$normalize(true);
  48022. _this.whitespace$0();
  48023. $arguments = _this._argumentDeclaration$0();
  48024. if (_this._stylesheet$_inMixin || _this._inContentBlock)
  48025. _this.error$2(0, string$.Mixinscf, _this.scanner.spanFrom$1(start));
  48026. else if (_this._inControlDirective)
  48027. _this.error$2(0, string$.Functi, _this.scanner.spanFrom$1(start));
  48028. switch (A.unvendor($name)) {
  48029. case "calc":
  48030. case "element":
  48031. case "expression":
  48032. case "url":
  48033. case "and":
  48034. case "or":
  48035. case "not":
  48036. case "clamp":
  48037. _this.error$2(0, "Invalid function name.", _this.scanner.spanFrom$1(start));
  48038. break;
  48039. }
  48040. _this.whitespace$0();
  48041. return _this._withChildren$3(_this.get$_functionChild(), start, new A.StylesheetParser__functionRule_closure($name, $arguments, precedingComment));
  48042. },
  48043. _forRule$2(start, child) {
  48044. var variable, from, _this = this, t1 = {},
  48045. wasInControlDirective = _this._inControlDirective;
  48046. _this._inControlDirective = true;
  48047. variable = _this.variableName$0();
  48048. _this.whitespace$0();
  48049. _this.expectIdentifier$1("from");
  48050. _this.whitespace$0();
  48051. t1.exclusive = null;
  48052. from = _this._expression$1$until(new A.StylesheetParser__forRule_closure(t1, _this));
  48053. if (t1.exclusive == null)
  48054. _this.scanner.error$1(0, 'Expected "to" or "through".');
  48055. _this.whitespace$0();
  48056. return _this._withChildren$3(child, start, new A.StylesheetParser__forRule_closure0(t1, _this, wasInControlDirective, variable, from, _this._expression$0()));
  48057. },
  48058. _forwardRule$1(start) {
  48059. var prefix, members, shownMixinsAndFunctions, shownVariables, hiddenVariables, hiddenMixinsAndFunctions, configuration, span, t1, t2, t3, t4, _this = this, _null = null,
  48060. url = _this._urlString$0();
  48061. _this.whitespace$0();
  48062. if (_this.scanIdentifier$1("as")) {
  48063. _this.whitespace$0();
  48064. prefix = _this.identifier$1$normalize(true);
  48065. _this.scanner.expectChar$1(42);
  48066. _this.whitespace$0();
  48067. } else
  48068. prefix = _null;
  48069. if (_this.scanIdentifier$1("show")) {
  48070. members = _this._memberList$0();
  48071. shownMixinsAndFunctions = members.item1;
  48072. shownVariables = members.item2;
  48073. hiddenVariables = _null;
  48074. hiddenMixinsAndFunctions = hiddenVariables;
  48075. } else {
  48076. if (_this.scanIdentifier$1("hide")) {
  48077. members = _this._memberList$0();
  48078. hiddenMixinsAndFunctions = members.item1;
  48079. hiddenVariables = members.item2;
  48080. } else {
  48081. hiddenVariables = _null;
  48082. hiddenMixinsAndFunctions = hiddenVariables;
  48083. }
  48084. shownVariables = _null;
  48085. shownMixinsAndFunctions = shownVariables;
  48086. }
  48087. configuration = _this._stylesheet$_configuration$1$allowGuarded(true);
  48088. _this.expectStatementSeparator$1("@forward rule");
  48089. span = _this.scanner.spanFrom$1(start);
  48090. if (!_this._isUseAllowed)
  48091. _this.error$2(0, string$.x40forwa, span);
  48092. if (shownMixinsAndFunctions != null) {
  48093. shownVariables.toString;
  48094. t1 = type$.String;
  48095. t2 = A.LinkedHashSet_LinkedHashSet$of(shownMixinsAndFunctions, t1);
  48096. t3 = type$.UnmodifiableSetView_String;
  48097. t1 = A.LinkedHashSet_LinkedHashSet$of(shownVariables, t1);
  48098. t4 = configuration == null ? B.List_empty8 : A.List_List$unmodifiable(configuration, type$.ConfiguredVariable);
  48099. return new A.ForwardRule(url, new A.UnmodifiableSetView(t2, t3), new A.UnmodifiableSetView(t1, t3), _null, _null, prefix, t4, span);
  48100. } else if (hiddenMixinsAndFunctions != null) {
  48101. hiddenVariables.toString;
  48102. t1 = type$.String;
  48103. t2 = A.LinkedHashSet_LinkedHashSet$of(hiddenMixinsAndFunctions, t1);
  48104. t3 = type$.UnmodifiableSetView_String;
  48105. t1 = A.LinkedHashSet_LinkedHashSet$of(hiddenVariables, t1);
  48106. t4 = configuration == null ? B.List_empty8 : A.List_List$unmodifiable(configuration, type$.ConfiguredVariable);
  48107. return new A.ForwardRule(url, _null, _null, new A.UnmodifiableSetView(t2, t3), new A.UnmodifiableSetView(t1, t3), prefix, t4, span);
  48108. } else
  48109. return new A.ForwardRule(url, _null, _null, _null, _null, prefix, configuration == null ? B.List_empty8 : A.List_List$unmodifiable(configuration, type$.ConfiguredVariable), span);
  48110. },
  48111. _memberList$0() {
  48112. var _this = this,
  48113. t1 = type$.String,
  48114. identifiers = A.LinkedHashSet_LinkedHashSet$_empty(t1),
  48115. variables = A.LinkedHashSet_LinkedHashSet$_empty(t1);
  48116. t1 = _this.scanner;
  48117. do {
  48118. _this.whitespace$0();
  48119. _this.withErrorMessage$2(string$.Expectv, new A.StylesheetParser__memberList_closure(_this, variables, identifiers));
  48120. _this.whitespace$0();
  48121. } while (t1.scanChar$1(44));
  48122. return new A.Tuple2(identifiers, variables, type$.Tuple2_of_Set_String_and_Set_String);
  48123. },
  48124. _ifRule$2(start, child) {
  48125. var condition, children, clauses, lastClause, span, _this = this,
  48126. ifIndentation = _this.get$currentIndentation(),
  48127. wasInControlDirective = _this._inControlDirective;
  48128. _this._inControlDirective = true;
  48129. condition = _this._expression$0();
  48130. children = _this.children$1(0, child);
  48131. _this.whitespaceWithoutComments$0();
  48132. clauses = A._setArrayType([A.IfClause$(condition, children)], type$.JSArray_IfClause);
  48133. while (true) {
  48134. if (!_this.scanElse$1(ifIndentation)) {
  48135. lastClause = null;
  48136. break;
  48137. }
  48138. _this.whitespace$0();
  48139. if (_this.scanIdentifier$1("if")) {
  48140. _this.whitespace$0();
  48141. clauses.push(A.IfClause$(_this._expression$0(), _this.children$1(0, child)));
  48142. } else {
  48143. lastClause = A.ElseClause$(_this.children$1(0, child));
  48144. break;
  48145. }
  48146. }
  48147. _this._inControlDirective = wasInControlDirective;
  48148. span = _this.scanner.spanFrom$1(start);
  48149. _this.whitespaceWithoutComments$0();
  48150. return new A.IfRule(A.List_List$unmodifiable(clauses, type$.IfClause), lastClause, span);
  48151. },
  48152. _importRule$1(start) {
  48153. var argument, _this = this,
  48154. imports = A._setArrayType([], type$.JSArray_Import),
  48155. t1 = _this.scanner;
  48156. do {
  48157. _this.whitespace$0();
  48158. argument = _this.importArgument$0();
  48159. if ((_this._inControlDirective || _this._stylesheet$_inMixin) && argument instanceof A.DynamicImport)
  48160. _this._disallowedAtRule$1(start);
  48161. imports.push(argument);
  48162. _this.whitespace$0();
  48163. } while (t1.scanChar$1(44));
  48164. _this.expectStatementSeparator$1("@import rule");
  48165. t1 = t1.spanFrom$1(start);
  48166. return new A.ImportRule(A.List_List$unmodifiable(imports, type$.Import), t1);
  48167. },
  48168. importArgument$0() {
  48169. var url, urlSpan, innerError, stackTrace, modifiers, t2, exception, _this = this,
  48170. t1 = _this.scanner,
  48171. start = new A._SpanScannerState(t1, t1._string_scanner$_position),
  48172. next = t1.peekChar$0();
  48173. if (next === 117 || next === 85) {
  48174. url = _this.dynamicUrl$0();
  48175. _this.whitespace$0();
  48176. modifiers = _this.tryImportModifiers$0();
  48177. return new A.StaticImport(A.Interpolation$(A._setArrayType([url], type$.JSArray_Object), t1.spanFrom$1(start)), modifiers, t1.spanFrom$1(start));
  48178. }
  48179. url = _this.string$0();
  48180. urlSpan = t1.spanFrom$1(start);
  48181. _this.whitespace$0();
  48182. modifiers = _this.tryImportModifiers$0();
  48183. if (_this.isPlainImportUrl$1(url) || modifiers != null) {
  48184. t2 = urlSpan;
  48185. return new A.StaticImport(A.Interpolation$(A._setArrayType([A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t2.file._decodedChars, t2._file$_start, t2._end), 0, null)], type$.JSArray_Object), urlSpan), modifiers, t1.spanFrom$1(start));
  48186. } else
  48187. try {
  48188. t1 = _this.parseImportUrl$1(url);
  48189. return new A.DynamicImport(t1, urlSpan);
  48190. } catch (exception) {
  48191. t1 = A.unwrapException(exception);
  48192. if (type$.FormatException._is(t1)) {
  48193. innerError = t1;
  48194. stackTrace = A.getTraceFromException(exception);
  48195. _this.error$3(0, "Invalid URL: " + J.get$message$x(innerError), urlSpan, stackTrace);
  48196. } else
  48197. throw exception;
  48198. }
  48199. },
  48200. parseImportUrl$1(url) {
  48201. var t1 = $.$get$windows();
  48202. if (t1.style.rootLength$1(url) > 0 && !$.$get$url().style.isRootRelative$1(url))
  48203. return t1.toUri$1(url).toString$0(0);
  48204. A.Uri_parse(url);
  48205. return url;
  48206. },
  48207. isPlainImportUrl$1(url) {
  48208. var first;
  48209. if (url.length < 5)
  48210. return false;
  48211. if (B.JSString_methods.endsWith$1(url, ".css"))
  48212. return true;
  48213. first = B.JSString_methods._codeUnitAt$1(url, 0);
  48214. if (first === 47)
  48215. return B.JSString_methods._codeUnitAt$1(url, 1) === 47;
  48216. if (first !== 104)
  48217. return false;
  48218. return B.JSString_methods.startsWith$1(url, "http://") || B.JSString_methods.startsWith$1(url, "https://");
  48219. },
  48220. tryImportModifiers$0() {
  48221. var t1, start, t2, t3, buffer, identifier, t4, $name, query, endPosition, t5, result, _this = this;
  48222. if (!_this._lookingAtInterpolatedIdentifier$0() && _this.scanner.peekChar$0() !== 40)
  48223. return null;
  48224. t1 = _this.scanner;
  48225. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  48226. t2 = new A.StringBuffer("");
  48227. t3 = A._setArrayType([], type$.JSArray_Object);
  48228. buffer = new A.InterpolationBuffer(t2, t3);
  48229. for (; true;)
  48230. if (_this._lookingAtInterpolatedIdentifier$0()) {
  48231. if (!(t3.length === 0 && t2._contents.length === 0))
  48232. t2._contents += A.Primitives_stringFromCharCode(32);
  48233. identifier = _this.interpolatedIdentifier$0();
  48234. buffer.addInterpolation$1(identifier);
  48235. t4 = identifier.get$asPlain();
  48236. $name = t4 == null ? null : t4.toLowerCase();
  48237. if ($name !== "and" && t1.scanChar$1(40)) {
  48238. if ($name === "supports") {
  48239. query = _this._importSupportsQuery$0();
  48240. t4 = !(query instanceof A.SupportsDeclaration);
  48241. if (t4)
  48242. t2._contents += A.Primitives_stringFromCharCode(40);
  48243. buffer._flushText$0();
  48244. t3.push(new A.SupportsExpression(query));
  48245. if (t4)
  48246. t2._contents += A.Primitives_stringFromCharCode(41);
  48247. } else {
  48248. t2._contents += A.Primitives_stringFromCharCode(40);
  48249. buffer.addInterpolation$1(_this._interpolatedDeclarationValue$2$allowEmpty$allowSemicolon(true, true));
  48250. t2._contents += A.Primitives_stringFromCharCode(41);
  48251. }
  48252. t1.expectChar$1(41);
  48253. _this.whitespace$0();
  48254. } else {
  48255. _this.whitespace$0();
  48256. if (t1.scanChar$1(44)) {
  48257. t2._contents += ", ";
  48258. buffer.addInterpolation$1(_this._mediaQueryList$0());
  48259. endPosition = t1._string_scanner$_position;
  48260. t4 = t1._sourceFile;
  48261. t5 = start.position;
  48262. t1 = new A._FileSpan(t4, t5, endPosition);
  48263. t1._FileSpan$3(t4, t5, endPosition);
  48264. t5 = type$.Object;
  48265. t4 = A.List_List$of(t3, true, t5);
  48266. t3 = t2._contents;
  48267. if (t3.length !== 0)
  48268. t4.push(t3.charCodeAt(0) == 0 ? t3 : t3);
  48269. result = A.List_List$from(t4, false, t5);
  48270. result.fixed$length = Array;
  48271. result.immutable$list = Array;
  48272. t2 = new A.Interpolation(result, t1);
  48273. t2.Interpolation$2(t4, t1);
  48274. return t2;
  48275. }
  48276. }
  48277. } else if (t1.peekChar$0() === 40) {
  48278. if (!(t3.length === 0 && t2._contents.length === 0))
  48279. t2._contents += A.Primitives_stringFromCharCode(32);
  48280. buffer.addInterpolation$1(_this._mediaQueryList$0());
  48281. endPosition = t1._string_scanner$_position;
  48282. t1 = t1._sourceFile;
  48283. t4 = start.position;
  48284. t5 = new A._FileSpan(t1, t4, endPosition);
  48285. t5._FileSpan$3(t1, t4, endPosition);
  48286. t4 = type$.Object;
  48287. t3 = A.List_List$of(t3, true, t4);
  48288. t1 = t2._contents;
  48289. if (t1.length !== 0)
  48290. t3.push(t1.charCodeAt(0) == 0 ? t1 : t1);
  48291. result = A.List_List$from(t3, false, t4);
  48292. result.fixed$length = Array;
  48293. result.immutable$list = Array;
  48294. t1 = new A.Interpolation(result, t5);
  48295. t1.Interpolation$2(t3, t5);
  48296. return t1;
  48297. } else {
  48298. endPosition = t1._string_scanner$_position;
  48299. t1 = t1._sourceFile;
  48300. t4 = start.position;
  48301. t5 = new A._FileSpan(t1, t4, endPosition);
  48302. t5._FileSpan$3(t1, t4, endPosition);
  48303. t4 = type$.Object;
  48304. t3 = A.List_List$of(t3, true, t4);
  48305. t1 = t2._contents;
  48306. if (t1.length !== 0)
  48307. t3.push(t1.charCodeAt(0) == 0 ? t1 : t1);
  48308. result = A.List_List$from(t3, false, t4);
  48309. result.fixed$length = Array;
  48310. result.immutable$list = Array;
  48311. t1 = new A.Interpolation(result, t5);
  48312. t1.Interpolation$2(t3, t5);
  48313. return t1;
  48314. }
  48315. },
  48316. _importSupportsQuery$0() {
  48317. var t1, t2, $function, $name, _this = this;
  48318. if (_this.scanIdentifier$1("not")) {
  48319. _this.whitespace$0();
  48320. t1 = _this.scanner;
  48321. t2 = t1._string_scanner$_position;
  48322. return new A.SupportsNegation(_this._supportsConditionInParens$0(), t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  48323. } else {
  48324. t1 = _this.scanner;
  48325. if (t1.peekChar$0() === 40)
  48326. return _this._supportsCondition$0();
  48327. else {
  48328. $function = _this._tryImportSupportsFunction$0();
  48329. if ($function != null)
  48330. return $function;
  48331. t2 = t1._string_scanner$_position;
  48332. $name = _this._expression$0();
  48333. t1.expectChar$1(58);
  48334. return _this._supportsDeclarationValue$2($name, new A._SpanScannerState(t1, t2));
  48335. }
  48336. }
  48337. },
  48338. _tryImportSupportsFunction$0() {
  48339. var t1, start, $name, value, _this = this;
  48340. if (!_this._lookingAtInterpolatedIdentifier$0())
  48341. return null;
  48342. t1 = _this.scanner;
  48343. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  48344. $name = _this.interpolatedIdentifier$0();
  48345. if (!t1.scanChar$1(40)) {
  48346. t1.set$state(start);
  48347. return null;
  48348. }
  48349. value = _this._interpolatedDeclarationValue$2$allowEmpty$allowSemicolon(true, true);
  48350. t1.expectChar$1(41);
  48351. return new A.SupportsFunction($name, value, t1.spanFrom$1(start));
  48352. },
  48353. _includeRule$1(start) {
  48354. var name0, namespace, $arguments, t2, t3, contentArguments, contentArguments_, wasInContentBlock, $content, _this = this, _null = null,
  48355. $name = _this.identifier$0(),
  48356. t1 = _this.scanner;
  48357. if (t1.scanChar$1(46)) {
  48358. name0 = _this._publicIdentifier$0();
  48359. namespace = $name;
  48360. $name = name0;
  48361. } else {
  48362. $name = A.stringReplaceAllUnchecked($name, "_", "-");
  48363. namespace = _null;
  48364. }
  48365. _this.whitespace$0();
  48366. if (t1.peekChar$0() === 40)
  48367. $arguments = _this._argumentInvocation$1$mixin(true);
  48368. else {
  48369. t2 = A.FileLocation$_(t1._sourceFile, t1._string_scanner$_position);
  48370. t3 = t2.offset;
  48371. $arguments = A.ArgumentInvocation$empty(A._FileSpan$(t2.file, t3, t3));
  48372. }
  48373. _this.whitespace$0();
  48374. if (_this.scanIdentifier$1("using")) {
  48375. _this.whitespace$0();
  48376. contentArguments = _this._argumentDeclaration$0();
  48377. _this.whitespace$0();
  48378. } else
  48379. contentArguments = _null;
  48380. t2 = contentArguments == null;
  48381. if (!t2 || _this.lookingAtChildren$0()) {
  48382. if (t2) {
  48383. t2 = A.FileLocation$_(t1._sourceFile, t1._string_scanner$_position);
  48384. t3 = t2.offset;
  48385. contentArguments_ = new A.ArgumentDeclaration(B.List_empty10, _null, A._FileSpan$(t2.file, t3, t3));
  48386. } else
  48387. contentArguments_ = contentArguments;
  48388. wasInContentBlock = _this._inContentBlock;
  48389. _this._inContentBlock = true;
  48390. $content = _this._withChildren$3(_this.get$_statement(), start, new A.StylesheetParser__includeRule_closure(contentArguments_));
  48391. _this._inContentBlock = wasInContentBlock;
  48392. } else {
  48393. _this.expectStatementSeparator$0();
  48394. $content = _null;
  48395. }
  48396. t1 = t1.spanFrom$2(start, start);
  48397. t2 = $content == null ? $arguments : $content;
  48398. return new A.IncludeRule(namespace, $name, $arguments, $content, t1.expand$1(0, t2.get$span(t2)));
  48399. },
  48400. mediaRule$1(start) {
  48401. return this._withChildren$3(this.get$_statement(), start, new A.StylesheetParser_mediaRule_closure(this._mediaQueryList$0()));
  48402. },
  48403. _mixinRule$1(start) {
  48404. var $name, t1, $arguments, t2, t3, _this = this,
  48405. precedingComment = _this.lastSilentComment;
  48406. _this.lastSilentComment = null;
  48407. $name = _this.identifier$1$normalize(true);
  48408. _this.whitespace$0();
  48409. t1 = _this.scanner;
  48410. if (t1.peekChar$0() === 40)
  48411. $arguments = _this._argumentDeclaration$0();
  48412. else {
  48413. t2 = A.FileLocation$_(t1._sourceFile, t1._string_scanner$_position);
  48414. t3 = t2.offset;
  48415. $arguments = new A.ArgumentDeclaration(B.List_empty10, null, A._FileSpan$(t2.file, t3, t3));
  48416. }
  48417. if (_this._stylesheet$_inMixin || _this._inContentBlock)
  48418. _this.error$2(0, string$.Mixinscm, t1.spanFrom$1(start));
  48419. else if (_this._inControlDirective)
  48420. _this.error$2(0, string$.Mixinsb, t1.spanFrom$1(start));
  48421. _this.whitespace$0();
  48422. _this._stylesheet$_inMixin = true;
  48423. return _this._withChildren$3(_this.get$_statement(), start, new A.StylesheetParser__mixinRule_closure(_this, $name, $arguments, precedingComment));
  48424. },
  48425. mozDocumentRule$2(start, $name) {
  48426. var t5, t6, t7, identifier, contents, argument, trailing, endPosition, t8, t9, start0, end, _this = this, _box_0 = {},
  48427. t1 = _this.scanner,
  48428. t2 = t1._string_scanner$_position,
  48429. t3 = new A.StringBuffer(""),
  48430. t4 = A._setArrayType([], type$.JSArray_Object),
  48431. buffer = new A.InterpolationBuffer(t3, t4);
  48432. _box_0.needsDeprecationWarning = false;
  48433. for (t5 = _this.get$whitespace(), t6 = t1.string; true;) {
  48434. if (t1.peekChar$0() === 35) {
  48435. t7 = _this.singleInterpolation$0();
  48436. buffer._flushText$0();
  48437. t4.push(t7);
  48438. _box_0.needsDeprecationWarning = true;
  48439. } else {
  48440. t7 = t1._string_scanner$_position;
  48441. identifier = _this.identifier$0();
  48442. switch (identifier) {
  48443. case "url":
  48444. case "url-prefix":
  48445. case "domain":
  48446. contents = _this._tryUrlContents$2$name(new A._SpanScannerState(t1, t7), identifier);
  48447. if (contents != null)
  48448. buffer.addInterpolation$1(contents);
  48449. else {
  48450. t1.expectChar$1(40);
  48451. _this.whitespace$0();
  48452. argument = _this.interpolatedString$0();
  48453. t1.expectChar$1(41);
  48454. t7 = t3._contents += identifier;
  48455. t3._contents = t7 + A.Primitives_stringFromCharCode(40);
  48456. buffer.addInterpolation$1(argument.asInterpolation$0());
  48457. t3._contents += A.Primitives_stringFromCharCode(41);
  48458. }
  48459. t7 = t3._contents;
  48460. trailing = t7.charCodeAt(0) == 0 ? t7 : t7;
  48461. if (!B.JSString_methods.endsWith$1(trailing, "url-prefix()") && !B.JSString_methods.endsWith$1(trailing, "url-prefix('')") && !B.JSString_methods.endsWith$1(trailing, 'url-prefix("")'))
  48462. _box_0.needsDeprecationWarning = true;
  48463. break;
  48464. case "regexp":
  48465. t3._contents += "regexp(";
  48466. t1.expectChar$1(40);
  48467. buffer.addInterpolation$1(_this.interpolatedString$0().asInterpolation$0());
  48468. t1.expectChar$1(41);
  48469. t3._contents += A.Primitives_stringFromCharCode(41);
  48470. _box_0.needsDeprecationWarning = true;
  48471. break;
  48472. default:
  48473. endPosition = t1._string_scanner$_position;
  48474. t8 = t1._sourceFile;
  48475. t9 = new A._FileSpan(t8, t7, endPosition);
  48476. t9._FileSpan$3(t8, t7, endPosition);
  48477. A.throwExpression(new A.StringScannerException(t6, "Invalid function name.", t9));
  48478. }
  48479. }
  48480. _this.whitespace$0();
  48481. if (!t1.scanChar$1(44))
  48482. break;
  48483. t3._contents += A.Primitives_stringFromCharCode(44);
  48484. start0 = t1._string_scanner$_position;
  48485. t5.call$0();
  48486. end = t1._string_scanner$_position;
  48487. t3._contents += B.JSString_methods.substring$2(t6, start0, end);
  48488. }
  48489. return _this._withChildren$3(_this.get$_statement(), start, new A.StylesheetParser_mozDocumentRule_closure(_box_0, _this, $name, buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2)))));
  48490. },
  48491. supportsRule$1(start) {
  48492. var _this = this,
  48493. condition = _this._supportsCondition$0();
  48494. _this.whitespace$0();
  48495. return _this._withChildren$3(_this.get$_statement(), start, new A.StylesheetParser_supportsRule_closure(condition));
  48496. },
  48497. _useRule$1(start) {
  48498. var namespace, configuration, span, t1, _this = this,
  48499. _s9_ = "@use rule",
  48500. url = _this._urlString$0();
  48501. _this.whitespace$0();
  48502. namespace = _this._useNamespace$2(url, start);
  48503. _this.whitespace$0();
  48504. configuration = _this._stylesheet$_configuration$0();
  48505. _this.expectStatementSeparator$1(_s9_);
  48506. span = _this.scanner.spanFrom$1(start);
  48507. if (!_this._isUseAllowed)
  48508. _this.error$2(0, string$.x40use_r, span);
  48509. _this.expectStatementSeparator$1(_s9_);
  48510. t1 = new A.UseRule(url, namespace, configuration == null ? B.List_empty8 : A.List_List$unmodifiable(configuration, type$.ConfiguredVariable), span);
  48511. t1.UseRule$4$configuration(url, namespace, span, configuration);
  48512. return t1;
  48513. },
  48514. _useNamespace$2(url, start) {
  48515. var namespace, basename, dot, t1, exception, _this = this;
  48516. if (_this.scanIdentifier$1("as")) {
  48517. _this.whitespace$0();
  48518. return _this.scanner.scanChar$1(42) ? null : _this.identifier$0();
  48519. }
  48520. basename = url.get$pathSegments().length === 0 ? "" : B.JSArray_methods.get$last(url.get$pathSegments());
  48521. dot = B.JSString_methods.indexOf$1(basename, ".");
  48522. t1 = B.JSString_methods.startsWith$1(basename, "_") ? 1 : 0;
  48523. namespace = B.JSString_methods.substring$2(basename, t1, dot === -1 ? basename.length : dot);
  48524. try {
  48525. t1 = A.SpanScanner$(namespace, null);
  48526. t1 = new A.Parser(t1, _this.logger)._parseIdentifier$0();
  48527. return t1;
  48528. } catch (exception) {
  48529. if (A.unwrapException(exception) instanceof A.SassFormatException)
  48530. _this.error$2(0, 'The default namespace "' + A.S(namespace) + string$.x22x20is_n, _this.scanner.spanFrom$1(start));
  48531. else
  48532. throw exception;
  48533. }
  48534. },
  48535. _stylesheet$_configuration$1$allowGuarded(allowGuarded) {
  48536. var variableNames, configuration, t1, t2, t3, $name, expression, t4, guarded, endPosition, t5, t6, span, _this = this;
  48537. if (!_this.scanIdentifier$1("with"))
  48538. return null;
  48539. variableNames = A.LinkedHashSet_LinkedHashSet$_empty(type$.String);
  48540. configuration = A._setArrayType([], type$.JSArray_ConfiguredVariable);
  48541. _this.whitespace$0();
  48542. t1 = _this.scanner;
  48543. t1.expectChar$1(40);
  48544. for (t2 = t1.string; true;) {
  48545. _this.whitespace$0();
  48546. t3 = t1._string_scanner$_position;
  48547. t1.expectChar$1(36);
  48548. $name = _this.identifier$1$normalize(true);
  48549. _this.whitespace$0();
  48550. t1.expectChar$1(58);
  48551. _this.whitespace$0();
  48552. expression = _this.expressionUntilComma$0();
  48553. t4 = t1._string_scanner$_position;
  48554. if (allowGuarded && t1.scanChar$1(33))
  48555. if (_this.identifier$0() === "default") {
  48556. _this.whitespace$0();
  48557. guarded = true;
  48558. } else {
  48559. endPosition = t1._string_scanner$_position;
  48560. t5 = t1._sourceFile;
  48561. t6 = new A._FileSpan(t5, t4, endPosition);
  48562. t6._FileSpan$3(t5, t4, endPosition);
  48563. A.throwExpression(new A.StringScannerException(t2, "Invalid flag name.", t6));
  48564. guarded = false;
  48565. }
  48566. else
  48567. guarded = false;
  48568. endPosition = t1._string_scanner$_position;
  48569. t4 = t1._sourceFile;
  48570. span = new A._FileSpan(t4, t3, endPosition);
  48571. span._FileSpan$3(t4, t3, endPosition);
  48572. if (variableNames.contains$1(0, $name))
  48573. A.throwExpression(new A.StringScannerException(t2, string$.The_sa, span));
  48574. variableNames.add$1(0, $name);
  48575. configuration.push(new A.ConfiguredVariable($name, expression, guarded, span));
  48576. if (!t1.scanChar$1(44))
  48577. break;
  48578. _this.whitespace$0();
  48579. if (!_this._lookingAtExpression$0())
  48580. break;
  48581. }
  48582. t1.expectChar$1(41);
  48583. return configuration;
  48584. },
  48585. _stylesheet$_configuration$0() {
  48586. return this._stylesheet$_configuration$1$allowGuarded(false);
  48587. },
  48588. _warnRule$1(start) {
  48589. var value = this._expression$0();
  48590. this.expectStatementSeparator$1("@warn rule");
  48591. return new A.WarnRule(value, this.scanner.spanFrom$1(start));
  48592. },
  48593. _whileRule$2(start, child) {
  48594. var _this = this,
  48595. wasInControlDirective = _this._inControlDirective;
  48596. _this._inControlDirective = true;
  48597. return _this._withChildren$3(child, start, new A.StylesheetParser__whileRule_closure(_this, wasInControlDirective, _this._expression$0()));
  48598. },
  48599. unknownAtRule$2(start, $name) {
  48600. var t2, t3, rule, _this = this, t1 = {},
  48601. wasInUnknownAtRule = _this._stylesheet$_inUnknownAtRule;
  48602. _this._stylesheet$_inUnknownAtRule = true;
  48603. t1.value = null;
  48604. t2 = _this.scanner;
  48605. t3 = t2.peekChar$0() !== 33 && !_this.atEndOfStatement$0() ? t1.value = _this.almostAnyValue$0() : null;
  48606. if (_this.lookingAtChildren$0())
  48607. rule = _this._withChildren$3(_this.get$_statement(), start, new A.StylesheetParser_unknownAtRule_closure(t1, $name));
  48608. else {
  48609. _this.expectStatementSeparator$0();
  48610. rule = A.AtRule$($name, t2.spanFrom$1(start), null, t3);
  48611. }
  48612. _this._stylesheet$_inUnknownAtRule = wasInUnknownAtRule;
  48613. return rule;
  48614. },
  48615. _disallowedAtRule$1(start) {
  48616. this.almostAnyValue$0();
  48617. this.error$2(0, "This at-rule is not allowed here.", this.scanner.spanFrom$1(start));
  48618. },
  48619. _argumentDeclaration$0() {
  48620. var $arguments, named, restArgument, t3, t4, $name, defaultValue, endPosition, t5, t6, _this = this,
  48621. t1 = _this.scanner,
  48622. t2 = t1._string_scanner$_position;
  48623. t1.expectChar$1(40);
  48624. _this.whitespace$0();
  48625. $arguments = A._setArrayType([], type$.JSArray_Argument);
  48626. named = A.LinkedHashSet_LinkedHashSet$_empty(type$.String);
  48627. t3 = t1.string;
  48628. while (true) {
  48629. if (!(t1.peekChar$0() === 36)) {
  48630. restArgument = null;
  48631. break;
  48632. }
  48633. t4 = t1._string_scanner$_position;
  48634. t1.expectChar$1(36);
  48635. $name = _this.identifier$1$normalize(true);
  48636. _this.whitespace$0();
  48637. if (t1.scanChar$1(58)) {
  48638. _this.whitespace$0();
  48639. defaultValue = _this.expressionUntilComma$0();
  48640. } else {
  48641. if (t1.scanChar$1(46)) {
  48642. t1.expectChar$1(46);
  48643. t1.expectChar$1(46);
  48644. _this.whitespace$0();
  48645. restArgument = $name;
  48646. break;
  48647. }
  48648. defaultValue = null;
  48649. }
  48650. endPosition = t1._string_scanner$_position;
  48651. t5 = t1._sourceFile;
  48652. t6 = new A._FileSpan(t5, t4, endPosition);
  48653. t6._FileSpan$3(t5, t4, endPosition);
  48654. $arguments.push(new A.Argument($name, defaultValue, t6));
  48655. if (!named.add$1(0, $name))
  48656. A.throwExpression(new A.StringScannerException(t3, "Duplicate argument.", B.JSArray_methods.get$last($arguments).span));
  48657. if (!t1.scanChar$1(44)) {
  48658. restArgument = null;
  48659. break;
  48660. }
  48661. _this.whitespace$0();
  48662. }
  48663. t1.expectChar$1(41);
  48664. t1 = t1.spanFrom$1(new A._SpanScannerState(t1, t2));
  48665. return new A.ArgumentDeclaration(A.List_List$unmodifiable($arguments, type$.Argument), restArgument, t1);
  48666. },
  48667. _argumentInvocation$2$allowEmptySecondArg$mixin(allowEmptySecondArg, mixin) {
  48668. var positional, t3, t4, named, keywordRest, t5, t6, rest, expression, t7, result, _this = this, _null = null,
  48669. t1 = _this.scanner,
  48670. t2 = t1._string_scanner$_position;
  48671. t1.expectChar$1(40);
  48672. _this.whitespace$0();
  48673. positional = A._setArrayType([], type$.JSArray_Expression);
  48674. t3 = type$.String;
  48675. t4 = type$.Expression;
  48676. named = A.LinkedHashMap_LinkedHashMap$_empty(t3, t4);
  48677. t5 = !mixin;
  48678. t6 = t1.string;
  48679. rest = _null;
  48680. while (true) {
  48681. if (!_this._lookingAtExpression$0()) {
  48682. keywordRest = _null;
  48683. break;
  48684. }
  48685. expression = _this.expressionUntilComma$1$singleEquals(t5);
  48686. _this.whitespace$0();
  48687. if (expression instanceof A.VariableExpression && t1.scanChar$1(58)) {
  48688. _this.whitespace$0();
  48689. t7 = expression.name;
  48690. if (named.containsKey$1(t7))
  48691. A.throwExpression(new A.StringScannerException(t6, "Duplicate argument.", expression.span));
  48692. named.$indexSet(0, t7, _this.expressionUntilComma$1$singleEquals(t5));
  48693. } else if (t1.scanChar$1(46)) {
  48694. t1.expectChar$1(46);
  48695. t1.expectChar$1(46);
  48696. if (rest != null) {
  48697. _this.whitespace$0();
  48698. keywordRest = expression;
  48699. break;
  48700. }
  48701. rest = expression;
  48702. } else if (named.__js_helper$_length !== 0)
  48703. A.throwExpression(new A.StringScannerException(t6, string$.Positi, expression.get$span(expression)));
  48704. else
  48705. positional.push(expression);
  48706. _this.whitespace$0();
  48707. if (!t1.scanChar$1(44)) {
  48708. keywordRest = _null;
  48709. break;
  48710. }
  48711. _this.whitespace$0();
  48712. if (allowEmptySecondArg && positional.length === 1 && named.__js_helper$_length === 0 && rest == null && t1.peekChar$0() === 41) {
  48713. t5 = t1._sourceFile;
  48714. t6 = t1._string_scanner$_position;
  48715. new A.FileLocation(t5, t6).FileLocation$_$2(t5, t6);
  48716. t7 = new A._FileSpan(t5, t6, t6);
  48717. t7._FileSpan$3(t5, t6, t6);
  48718. t6 = A._setArrayType([""], type$.JSArray_Object);
  48719. result = A.List_List$from(t6, false, type$.Object);
  48720. result.fixed$length = Array;
  48721. result.immutable$list = Array;
  48722. t5 = new A.Interpolation(result, t7);
  48723. t5.Interpolation$2(t6, t7);
  48724. positional.push(new A.StringExpression(t5, false));
  48725. keywordRest = _null;
  48726. break;
  48727. }
  48728. }
  48729. t1.expectChar$1(41);
  48730. t1 = t1.spanFrom$1(new A._SpanScannerState(t1, t2));
  48731. return new A.ArgumentInvocation(A.List_List$unmodifiable(positional, t4), A.ConstantMap_ConstantMap$from(named, t3, t4), rest, keywordRest, t1);
  48732. },
  48733. _argumentInvocation$0() {
  48734. return this._argumentInvocation$2$allowEmptySecondArg$mixin(false, false);
  48735. },
  48736. _argumentInvocation$1$allowEmptySecondArg(allowEmptySecondArg) {
  48737. return this._argumentInvocation$2$allowEmptySecondArg$mixin(allowEmptySecondArg, false);
  48738. },
  48739. _argumentInvocation$1$mixin(mixin) {
  48740. return this._argumentInvocation$2$allowEmptySecondArg$mixin(false, mixin);
  48741. },
  48742. _expression$3$bracketList$singleEquals$until(bracketList, singleEquals, until) {
  48743. var t2, beforeBracket, start, wasInParentheses, resetState, resolveOneOperation, resolveOperations, addSingleExpression, addOperator, resolveSpaceExpressions, t3, first, next, t4, commaExpressions, spaceExpressions, singleExpression, _this = this,
  48744. _s20_ = "Expected expression.",
  48745. _box_0 = {},
  48746. t1 = until != null;
  48747. if (t1 && until.call$0())
  48748. _this.scanner.error$1(0, _s20_);
  48749. if (bracketList) {
  48750. t2 = _this.scanner;
  48751. beforeBracket = new A._SpanScannerState(t2, t2._string_scanner$_position);
  48752. t2.expectChar$1(91);
  48753. _this.whitespace$0();
  48754. if (t2.scanChar$1(93)) {
  48755. t1 = A._setArrayType([], type$.JSArray_Expression);
  48756. t2 = t2.spanFrom$1(beforeBracket);
  48757. return new A.ListExpression(A.List_List$unmodifiable(t1, type$.Expression), B.ListSeparator_undecided_null_undecided, true, t2);
  48758. }
  48759. } else
  48760. beforeBracket = null;
  48761. t2 = _this.scanner;
  48762. start = new A._SpanScannerState(t2, t2._string_scanner$_position);
  48763. wasInParentheses = _this._inParentheses;
  48764. _box_0.operands_ = _box_0.operators_ = _box_0.spaceExpressions_ = _box_0.commaExpressions_ = null;
  48765. _box_0.allowSlash = true;
  48766. _box_0.singleExpression_ = _this._singleExpression$0();
  48767. resetState = new A.StylesheetParser__expression_resetState(_box_0, _this, start);
  48768. resolveOneOperation = new A.StylesheetParser__expression_resolveOneOperation(_box_0, _this);
  48769. resolveOperations = new A.StylesheetParser__expression_resolveOperations(_box_0, resolveOneOperation);
  48770. addSingleExpression = new A.StylesheetParser__expression_addSingleExpression(_box_0, _this, resetState, resolveOperations);
  48771. addOperator = new A.StylesheetParser__expression_addOperator(_box_0, _this, resolveOneOperation);
  48772. resolveSpaceExpressions = new A.StylesheetParser__expression_resolveSpaceExpressions(_box_0, _this, resolveOperations);
  48773. $label0$0:
  48774. for (t3 = type$.JSArray_Expression; true;) {
  48775. _this.whitespace$0();
  48776. if (t1 && until.call$0())
  48777. break $label0$0;
  48778. first = t2.peekChar$0();
  48779. switch (first) {
  48780. case 40:
  48781. addSingleExpression.call$1(_this._parentheses$0());
  48782. break;
  48783. case 91:
  48784. addSingleExpression.call$1(_this._expression$1$bracketList(true));
  48785. break;
  48786. case 36:
  48787. addSingleExpression.call$1(_this._variable$0());
  48788. break;
  48789. case 38:
  48790. addSingleExpression.call$1(_this._selector$0());
  48791. break;
  48792. case 39:
  48793. case 34:
  48794. addSingleExpression.call$1(_this.interpolatedString$0());
  48795. break;
  48796. case 35:
  48797. addSingleExpression.call$1(_this._hashExpression$0());
  48798. break;
  48799. case 61:
  48800. t2.readChar$0();
  48801. if (singleEquals && t2.peekChar$0() !== 61)
  48802. addOperator.call$1(B.BinaryOperator_axY);
  48803. else {
  48804. t2.expectChar$1(61);
  48805. addOperator.call$1(B.BinaryOperator_nZh);
  48806. }
  48807. break;
  48808. case 33:
  48809. next = t2.peekChar$1(1);
  48810. if (next === 61) {
  48811. t2.readChar$0();
  48812. t2.readChar$0();
  48813. addOperator.call$1(B.BinaryOperator_Vr9);
  48814. } else {
  48815. if (next != null)
  48816. if ((next | 32) >>> 0 !== 105)
  48817. t4 = next === 32 || next === 9 || next === 10 || next === 13 || next === 12;
  48818. else
  48819. t4 = true;
  48820. else
  48821. t4 = true;
  48822. if (t4)
  48823. addSingleExpression.call$1(_this._importantExpression$0());
  48824. else
  48825. break $label0$0;
  48826. }
  48827. break;
  48828. case 60:
  48829. t2.readChar$0();
  48830. addOperator.call$1(t2.scanChar$1(61) ? B.BinaryOperator_oqF : B.BinaryOperator_apg);
  48831. break;
  48832. case 62:
  48833. t2.readChar$0();
  48834. addOperator.call$1(t2.scanChar$1(61) ? B.BinaryOperator_Wma : B.BinaryOperator_cw1);
  48835. break;
  48836. case 42:
  48837. t2.readChar$0();
  48838. addOperator.call$1(B.BinaryOperator_6pl);
  48839. break;
  48840. case 43:
  48841. if (_box_0.singleExpression_ == null)
  48842. addSingleExpression.call$1(_this._unaryOperation$0());
  48843. else {
  48844. t2.readChar$0();
  48845. addOperator.call$1(B.BinaryOperator_qbf);
  48846. }
  48847. break;
  48848. case 45:
  48849. next = t2.peekChar$1(1);
  48850. if (next != null && next >= 48 && next <= 57 || next === 46)
  48851. if (_box_0.singleExpression_ != null) {
  48852. t4 = t2.peekChar$1(-1);
  48853. t4 = t4 === 32 || t4 === 9 || t4 === 10 || t4 === 13 || t4 === 12;
  48854. } else
  48855. t4 = true;
  48856. else
  48857. t4 = false;
  48858. if (t4)
  48859. addSingleExpression.call$1(_this._number$0());
  48860. else if (_this._lookingAtInterpolatedIdentifier$0())
  48861. addSingleExpression.call$1(_this.identifierLike$0());
  48862. else if (_box_0.singleExpression_ == null)
  48863. addSingleExpression.call$1(_this._unaryOperation$0());
  48864. else {
  48865. t2.readChar$0();
  48866. addOperator.call$1(B.BinaryOperator_KlB);
  48867. }
  48868. break;
  48869. case 47:
  48870. if (_box_0.singleExpression_ == null)
  48871. addSingleExpression.call$1(_this._unaryOperation$0());
  48872. else {
  48873. t2.readChar$0();
  48874. addOperator.call$1(B.BinaryOperator_qpm);
  48875. }
  48876. break;
  48877. case 37:
  48878. t2.readChar$0();
  48879. addOperator.call$1(B.BinaryOperator_PHH);
  48880. break;
  48881. case 48:
  48882. case 49:
  48883. case 50:
  48884. case 51:
  48885. case 52:
  48886. case 53:
  48887. case 54:
  48888. case 55:
  48889. case 56:
  48890. case 57:
  48891. addSingleExpression.call$1(_this._number$0());
  48892. break;
  48893. case 46:
  48894. if (t2.peekChar$1(1) === 46)
  48895. break $label0$0;
  48896. addSingleExpression.call$1(_this._number$0());
  48897. break;
  48898. case 97:
  48899. if (!_this.get$plainCss() && _this.scanIdentifier$1("and"))
  48900. addOperator.call$1(B.BinaryOperator_and_and_2_and);
  48901. else
  48902. addSingleExpression.call$1(_this.identifierLike$0());
  48903. break;
  48904. case 111:
  48905. if (!_this.get$plainCss() && _this.scanIdentifier$1("or"))
  48906. addOperator.call$1(B.BinaryOperator_or_or_1_or);
  48907. else
  48908. addSingleExpression.call$1(_this.identifierLike$0());
  48909. break;
  48910. case 117:
  48911. case 85:
  48912. if (t2.peekChar$1(1) === 43)
  48913. addSingleExpression.call$1(_this._unicodeRange$0());
  48914. else
  48915. addSingleExpression.call$1(_this.identifierLike$0());
  48916. break;
  48917. case 98:
  48918. case 99:
  48919. case 100:
  48920. case 101:
  48921. case 102:
  48922. case 103:
  48923. case 104:
  48924. case 105:
  48925. case 106:
  48926. case 107:
  48927. case 108:
  48928. case 109:
  48929. case 110:
  48930. case 112:
  48931. case 113:
  48932. case 114:
  48933. case 115:
  48934. case 116:
  48935. case 118:
  48936. case 119:
  48937. case 120:
  48938. case 121:
  48939. case 122:
  48940. case 65:
  48941. case 66:
  48942. case 67:
  48943. case 68:
  48944. case 69:
  48945. case 70:
  48946. case 71:
  48947. case 72:
  48948. case 73:
  48949. case 74:
  48950. case 75:
  48951. case 76:
  48952. case 77:
  48953. case 78:
  48954. case 79:
  48955. case 80:
  48956. case 81:
  48957. case 82:
  48958. case 83:
  48959. case 84:
  48960. case 86:
  48961. case 87:
  48962. case 88:
  48963. case 89:
  48964. case 90:
  48965. case 95:
  48966. case 92:
  48967. addSingleExpression.call$1(_this.identifierLike$0());
  48968. break;
  48969. case 44:
  48970. if (_this._inParentheses) {
  48971. _this._inParentheses = false;
  48972. if (_box_0.allowSlash) {
  48973. resetState.call$0();
  48974. break;
  48975. }
  48976. }
  48977. commaExpressions = _box_0.commaExpressions_;
  48978. if (commaExpressions == null)
  48979. commaExpressions = _box_0.commaExpressions_ = A._setArrayType([], t3);
  48980. if (_box_0.singleExpression_ == null)
  48981. t2.error$1(0, _s20_);
  48982. resolveSpaceExpressions.call$0();
  48983. t4 = _box_0.singleExpression_;
  48984. t4.toString;
  48985. commaExpressions.push(t4);
  48986. t2.readChar$0();
  48987. _box_0.allowSlash = true;
  48988. _box_0.singleExpression_ = null;
  48989. break;
  48990. default:
  48991. if (first != null && first >= 128) {
  48992. addSingleExpression.call$1(_this.identifierLike$0());
  48993. break;
  48994. } else
  48995. break $label0$0;
  48996. }
  48997. }
  48998. if (bracketList)
  48999. t2.expectChar$1(93);
  49000. commaExpressions = _box_0.commaExpressions_;
  49001. spaceExpressions = _box_0.spaceExpressions_;
  49002. if (commaExpressions != null) {
  49003. resolveSpaceExpressions.call$0();
  49004. _this._inParentheses = wasInParentheses;
  49005. singleExpression = _box_0.singleExpression_;
  49006. if (singleExpression != null)
  49007. commaExpressions.push(singleExpression);
  49008. t1 = t2.spanFrom$1(beforeBracket == null ? start : beforeBracket);
  49009. return new A.ListExpression(A.List_List$unmodifiable(commaExpressions, type$.Expression), B.ListSeparator_rXA, bracketList, t1);
  49010. } else if (bracketList && spaceExpressions != null) {
  49011. resolveOperations.call$0();
  49012. t1 = _box_0.singleExpression_;
  49013. t1.toString;
  49014. spaceExpressions.push(t1);
  49015. beforeBracket.toString;
  49016. t2 = t2.spanFrom$1(beforeBracket);
  49017. return new A.ListExpression(A.List_List$unmodifiable(spaceExpressions, type$.Expression), B.ListSeparator_EVt, true, t2);
  49018. } else {
  49019. resolveSpaceExpressions.call$0();
  49020. if (bracketList) {
  49021. t1 = _box_0.singleExpression_;
  49022. t1.toString;
  49023. t3 = A._setArrayType([t1], t3);
  49024. beforeBracket.toString;
  49025. t2 = t2.spanFrom$1(beforeBracket);
  49026. _box_0.singleExpression_ = new A.ListExpression(A.List_List$unmodifiable(t3, type$.Expression), B.ListSeparator_undecided_null_undecided, true, t2);
  49027. }
  49028. t1 = _box_0.singleExpression_;
  49029. t1.toString;
  49030. return t1;
  49031. }
  49032. },
  49033. _expression$0() {
  49034. return this._expression$3$bracketList$singleEquals$until(false, false, null);
  49035. },
  49036. _expression$2$singleEquals$until(singleEquals, until) {
  49037. return this._expression$3$bracketList$singleEquals$until(false, singleEquals, until);
  49038. },
  49039. _expression$1$bracketList(bracketList) {
  49040. return this._expression$3$bracketList$singleEquals$until(bracketList, false, null);
  49041. },
  49042. _expression$1$until(until) {
  49043. return this._expression$3$bracketList$singleEquals$until(false, false, until);
  49044. },
  49045. expressionUntilComma$1$singleEquals(singleEquals) {
  49046. return this._expression$2$singleEquals$until(singleEquals, new A.StylesheetParser_expressionUntilComma_closure(this));
  49047. },
  49048. expressionUntilComma$0() {
  49049. return this.expressionUntilComma$1$singleEquals(false);
  49050. },
  49051. _isSlashOperand$1(expression) {
  49052. var t1;
  49053. if (!(expression instanceof A.NumberExpression))
  49054. if (!(expression instanceof A.CalculationExpression))
  49055. t1 = expression instanceof A.BinaryOperationExpression && expression.allowsSlash;
  49056. else
  49057. t1 = true;
  49058. else
  49059. t1 = true;
  49060. return t1;
  49061. },
  49062. _singleExpression$0() {
  49063. var next, _this = this,
  49064. t1 = _this.scanner,
  49065. first = t1.peekChar$0();
  49066. switch (first) {
  49067. case 40:
  49068. return _this._parentheses$0();
  49069. case 47:
  49070. return _this._unaryOperation$0();
  49071. case 46:
  49072. return _this._number$0();
  49073. case 91:
  49074. return _this._expression$1$bracketList(true);
  49075. case 36:
  49076. return _this._variable$0();
  49077. case 38:
  49078. return _this._selector$0();
  49079. case 39:
  49080. case 34:
  49081. return _this.interpolatedString$0();
  49082. case 35:
  49083. return _this._hashExpression$0();
  49084. case 43:
  49085. next = t1.peekChar$1(1);
  49086. return A.isDigit(next) || next === 46 ? _this._number$0() : _this._unaryOperation$0();
  49087. case 45:
  49088. return _this._minusExpression$0();
  49089. case 33:
  49090. return _this._importantExpression$0();
  49091. case 117:
  49092. case 85:
  49093. if (t1.peekChar$1(1) === 43)
  49094. return _this._unicodeRange$0();
  49095. else
  49096. return _this.identifierLike$0();
  49097. case 48:
  49098. case 49:
  49099. case 50:
  49100. case 51:
  49101. case 52:
  49102. case 53:
  49103. case 54:
  49104. case 55:
  49105. case 56:
  49106. case 57:
  49107. return _this._number$0();
  49108. case 97:
  49109. case 98:
  49110. case 99:
  49111. case 100:
  49112. case 101:
  49113. case 102:
  49114. case 103:
  49115. case 104:
  49116. case 105:
  49117. case 106:
  49118. case 107:
  49119. case 108:
  49120. case 109:
  49121. case 110:
  49122. case 111:
  49123. case 112:
  49124. case 113:
  49125. case 114:
  49126. case 115:
  49127. case 116:
  49128. case 118:
  49129. case 119:
  49130. case 120:
  49131. case 121:
  49132. case 122:
  49133. case 65:
  49134. case 66:
  49135. case 67:
  49136. case 68:
  49137. case 69:
  49138. case 70:
  49139. case 71:
  49140. case 72:
  49141. case 73:
  49142. case 74:
  49143. case 75:
  49144. case 76:
  49145. case 77:
  49146. case 78:
  49147. case 79:
  49148. case 80:
  49149. case 81:
  49150. case 82:
  49151. case 83:
  49152. case 84:
  49153. case 86:
  49154. case 87:
  49155. case 88:
  49156. case 89:
  49157. case 90:
  49158. case 95:
  49159. case 92:
  49160. return _this.identifierLike$0();
  49161. default:
  49162. if (first != null && first >= 128)
  49163. return _this.identifierLike$0();
  49164. t1.error$1(0, "Expected expression.");
  49165. }
  49166. },
  49167. _parentheses$0() {
  49168. var wasInParentheses, start, first, expressions, t1, t2, _this = this;
  49169. if (_this.get$plainCss())
  49170. _this.scanner.error$2$length(0, "Parentheses aren't allowed in plain CSS.", 1);
  49171. wasInParentheses = _this._inParentheses;
  49172. _this._inParentheses = true;
  49173. try {
  49174. t1 = _this.scanner;
  49175. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  49176. t1.expectChar$1(40);
  49177. _this.whitespace$0();
  49178. if (!_this._lookingAtExpression$0()) {
  49179. t1.expectChar$1(41);
  49180. t2 = A._setArrayType([], type$.JSArray_Expression);
  49181. t1 = t1.spanFrom$1(start);
  49182. t2 = A.List_List$unmodifiable(t2, type$.Expression);
  49183. return new A.ListExpression(t2, B.ListSeparator_undecided_null_undecided, false, t1);
  49184. }
  49185. first = _this.expressionUntilComma$0();
  49186. if (t1.scanChar$1(58)) {
  49187. _this.whitespace$0();
  49188. t1 = _this._stylesheet$_map$2(first, start);
  49189. return t1;
  49190. }
  49191. if (!t1.scanChar$1(44)) {
  49192. t1.expectChar$1(41);
  49193. t1 = t1.spanFrom$1(start);
  49194. return new A.ParenthesizedExpression(first, t1);
  49195. }
  49196. _this.whitespace$0();
  49197. expressions = A._setArrayType([first], type$.JSArray_Expression);
  49198. for (; true;) {
  49199. if (!_this._lookingAtExpression$0())
  49200. break;
  49201. J.add$1$ax(expressions, _this.expressionUntilComma$0());
  49202. if (!t1.scanChar$1(44))
  49203. break;
  49204. _this.whitespace$0();
  49205. }
  49206. t1.expectChar$1(41);
  49207. t1 = t1.spanFrom$1(start);
  49208. t2 = A.List_List$unmodifiable(expressions, type$.Expression);
  49209. return new A.ListExpression(t2, B.ListSeparator_rXA, false, t1);
  49210. } finally {
  49211. _this._inParentheses = wasInParentheses;
  49212. }
  49213. },
  49214. _stylesheet$_map$2(first, start) {
  49215. var t2, key, _this = this,
  49216. t1 = type$.Tuple2_Expression_Expression,
  49217. pairs = A._setArrayType([new A.Tuple2(first, _this.expressionUntilComma$0(), t1)], type$.JSArray_Tuple2_Expression_Expression);
  49218. for (t2 = _this.scanner; t2.scanChar$1(44);) {
  49219. _this.whitespace$0();
  49220. if (!_this._lookingAtExpression$0())
  49221. break;
  49222. key = _this.expressionUntilComma$0();
  49223. t2.expectChar$1(58);
  49224. _this.whitespace$0();
  49225. pairs.push(new A.Tuple2(key, _this.expressionUntilComma$0(), t1));
  49226. }
  49227. t2.expectChar$1(41);
  49228. t2 = t2.spanFrom$1(start);
  49229. return new A.MapExpression(A.List_List$unmodifiable(pairs, t1), t2);
  49230. },
  49231. _hashExpression$0() {
  49232. var start, first, t2, identifier, buffer, _this = this,
  49233. t1 = _this.scanner;
  49234. if (t1.peekChar$1(1) === 123)
  49235. return _this.identifierLike$0();
  49236. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  49237. t1.expectChar$1(35);
  49238. first = t1.peekChar$0();
  49239. if (first != null && A.isDigit(first))
  49240. return new A.ColorExpression(_this._hexColorContents$1(start), t1.spanFrom$1(start));
  49241. t2 = t1._string_scanner$_position;
  49242. identifier = _this.interpolatedIdentifier$0();
  49243. if (_this._isHexColor$1(identifier)) {
  49244. t1.set$state(new A._SpanScannerState(t1, t2));
  49245. return new A.ColorExpression(_this._hexColorContents$1(start), t1.spanFrom$1(start));
  49246. }
  49247. t2 = new A.StringBuffer("");
  49248. buffer = new A.InterpolationBuffer(t2, A._setArrayType([], type$.JSArray_Object));
  49249. t2._contents = "" + A.Primitives_stringFromCharCode(35);
  49250. buffer.addInterpolation$1(identifier);
  49251. return new A.StringExpression(buffer.interpolation$1(t1.spanFrom$1(start)), false);
  49252. },
  49253. _hexColorContents$1(start) {
  49254. var red, green, blue, alpha, digit4, t2, t3, _this = this,
  49255. digit1 = _this._hexDigit$0(),
  49256. digit2 = _this._hexDigit$0(),
  49257. digit3 = _this._hexDigit$0(),
  49258. t1 = _this.scanner;
  49259. if (!A.isHex(t1.peekChar$0())) {
  49260. red = (digit1 << 4 >>> 0) + digit1;
  49261. green = (digit2 << 4 >>> 0) + digit2;
  49262. blue = (digit3 << 4 >>> 0) + digit3;
  49263. alpha = null;
  49264. } else {
  49265. digit4 = _this._hexDigit$0();
  49266. t2 = digit1 << 4 >>> 0;
  49267. t3 = digit3 << 4 >>> 0;
  49268. if (!A.isHex(t1.peekChar$0())) {
  49269. red = t2 + digit1;
  49270. green = (digit2 << 4 >>> 0) + digit2;
  49271. blue = t3 + digit3;
  49272. alpha = ((digit4 << 4 >>> 0) + digit4) / 255;
  49273. } else {
  49274. red = t2 + digit2;
  49275. green = t3 + digit4;
  49276. blue = (_this._hexDigit$0() << 4 >>> 0) + _this._hexDigit$0();
  49277. alpha = A.isHex(t1.peekChar$0()) ? ((_this._hexDigit$0() << 4 >>> 0) + _this._hexDigit$0()) / 255 : null;
  49278. }
  49279. }
  49280. return A.SassColor$rgbInternal(red, green, blue, alpha, alpha == null ? new A.SpanColorFormat(t1.spanFrom$1(start)) : null);
  49281. },
  49282. _isHexColor$1(interpolation) {
  49283. var t1,
  49284. plain = interpolation.get$asPlain();
  49285. if (plain == null)
  49286. return false;
  49287. t1 = plain.length;
  49288. if (t1 !== 3 && t1 !== 4 && t1 !== 6 && t1 !== 8)
  49289. return false;
  49290. t1 = new A.CodeUnits(plain);
  49291. return t1.every$1(t1, A.character__isHex$closure());
  49292. },
  49293. _hexDigit$0() {
  49294. var t1 = this.scanner,
  49295. char = t1.peekChar$0();
  49296. if (char == null || !A.isHex(char))
  49297. t1.error$1(0, "Expected hex digit.");
  49298. return A.asHex(t1.readChar$0());
  49299. },
  49300. _minusExpression$0() {
  49301. var _this = this,
  49302. next = _this.scanner.peekChar$1(1);
  49303. if (A.isDigit(next) || next === 46)
  49304. return _this._number$0();
  49305. if (_this._lookingAtInterpolatedIdentifier$0())
  49306. return _this.identifierLike$0();
  49307. return _this._unaryOperation$0();
  49308. },
  49309. _importantExpression$0() {
  49310. var t1 = this.scanner,
  49311. t2 = t1._string_scanner$_position;
  49312. t1.readChar$0();
  49313. this.whitespace$0();
  49314. this.expectIdentifier$1("important");
  49315. t2 = t1.spanFrom$1(new A._SpanScannerState(t1, t2));
  49316. return new A.StringExpression(A.Interpolation$(A._setArrayType(["!important"], type$.JSArray_Object), t2), false);
  49317. },
  49318. _unaryOperation$0() {
  49319. var _this = this,
  49320. t1 = _this.scanner,
  49321. t2 = t1._string_scanner$_position,
  49322. operator = _this._unaryOperatorFor$1(t1.readChar$0());
  49323. if (operator == null)
  49324. t1.error$2$position(0, "Expected unary operator.", t1._string_scanner$_position - 1);
  49325. else if (_this.get$plainCss() && operator !== B.UnaryOperator_Ix1)
  49326. t1.error$3$length$position(0, "Operators aren't allowed in plain CSS.", 1, t1._string_scanner$_position - 1);
  49327. _this.whitespace$0();
  49328. return new A.UnaryOperationExpression(operator, _this._singleExpression$0(), t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  49329. },
  49330. _unaryOperatorFor$1(character) {
  49331. switch (character) {
  49332. case 43:
  49333. return B.UnaryOperator_gg4;
  49334. case 45:
  49335. return B.UnaryOperator_TLI;
  49336. case 47:
  49337. return B.UnaryOperator_Ix1;
  49338. default:
  49339. return null;
  49340. }
  49341. },
  49342. _number$0() {
  49343. var number, unit, t3, _this = this,
  49344. t1 = _this.scanner,
  49345. t2 = t1._string_scanner$_position,
  49346. first = t1.peekChar$0();
  49347. if (first === 43 || first === 45)
  49348. t1.readChar$0();
  49349. if (t1.peekChar$0() !== 46)
  49350. _this._consumeNaturalNumber$0();
  49351. _this._tryDecimal$1$allowTrailingDot(t1._string_scanner$_position !== t2);
  49352. _this._tryExponent$0();
  49353. number = A.double_parse(t1.substring$1(0, t2));
  49354. if (t1.scanChar$1(37))
  49355. unit = "%";
  49356. else {
  49357. if (_this.lookingAtIdentifier$0())
  49358. t3 = t1.peekChar$0() !== 45 || t1.peekChar$1(1) !== 45;
  49359. else
  49360. t3 = false;
  49361. unit = t3 ? _this.identifier$1$unit(true) : null;
  49362. }
  49363. return new A.NumberExpression(number, unit, t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  49364. },
  49365. _consumeNaturalNumber$0() {
  49366. var t2,
  49367. t1 = this.scanner;
  49368. if (!A.isDigit(t1.readChar$0()))
  49369. t1.error$2$position(0, "Expected digit.", t1._string_scanner$_position - 1);
  49370. while (true) {
  49371. t2 = t1.peekChar$0();
  49372. if (!(t2 != null && t2 >= 48 && t2 <= 57))
  49373. break;
  49374. t1.readChar$0();
  49375. }
  49376. },
  49377. _tryDecimal$1$allowTrailingDot(allowTrailingDot) {
  49378. var t2,
  49379. t1 = this.scanner;
  49380. if (t1.peekChar$0() !== 46)
  49381. return;
  49382. if (!A.isDigit(t1.peekChar$1(1))) {
  49383. if (allowTrailingDot)
  49384. return;
  49385. t1.error$2$position(0, "Expected digit.", t1._string_scanner$_position + 1);
  49386. }
  49387. t1.readChar$0();
  49388. while (true) {
  49389. t2 = t1.peekChar$0();
  49390. if (!(t2 != null && t2 >= 48 && t2 <= 57))
  49391. break;
  49392. t1.readChar$0();
  49393. }
  49394. },
  49395. _tryExponent$0() {
  49396. var next, t2,
  49397. t1 = this.scanner,
  49398. first = t1.peekChar$0();
  49399. if (first !== 101 && first !== 69)
  49400. return;
  49401. next = t1.peekChar$1(1);
  49402. if (!A.isDigit(next) && next !== 45 && next !== 43)
  49403. return;
  49404. t1.readChar$0();
  49405. if (next === 43 || next === 45)
  49406. t1.readChar$0();
  49407. if (!A.isDigit(t1.peekChar$0()))
  49408. t1.error$1(0, "Expected digit.");
  49409. while (true) {
  49410. t2 = t1.peekChar$0();
  49411. if (!(t2 != null && t2 >= 48 && t2 <= 57))
  49412. break;
  49413. t1.readChar$0();
  49414. }
  49415. },
  49416. _unicodeRange$0() {
  49417. var firstRangeLength, hasQuestionMark, t2, secondRangeLength, _this = this,
  49418. _s26_ = "Expected at most 6 digits.",
  49419. t1 = _this.scanner,
  49420. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  49421. _this.expectIdentChar$1(117);
  49422. t1.expectChar$1(43);
  49423. for (firstRangeLength = 0; _this.scanCharIf$1(new A.StylesheetParser__unicodeRange_closure());)
  49424. ++firstRangeLength;
  49425. for (hasQuestionMark = false; t1.scanChar$1(63); hasQuestionMark = true)
  49426. ++firstRangeLength;
  49427. if (firstRangeLength === 0)
  49428. t1.error$1(0, 'Expected hex digit or "?".');
  49429. else if (firstRangeLength > 6)
  49430. _this.error$2(0, _s26_, t1.spanFrom$1(start));
  49431. else if (hasQuestionMark) {
  49432. t2 = t1.substring$1(0, start.position);
  49433. t1 = t1.spanFrom$1(start);
  49434. return new A.StringExpression(A.Interpolation$(A._setArrayType([t2], type$.JSArray_Object), t1), false);
  49435. }
  49436. if (t1.scanChar$1(45)) {
  49437. t2 = t1._string_scanner$_position;
  49438. for (secondRangeLength = 0; _this.scanCharIf$1(new A.StylesheetParser__unicodeRange_closure0());)
  49439. ++secondRangeLength;
  49440. if (secondRangeLength === 0)
  49441. t1.error$1(0, "Expected hex digit.");
  49442. else if (secondRangeLength > 6)
  49443. _this.error$2(0, _s26_, t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  49444. }
  49445. if (_this._lookingAtInterpolatedIdentifierBody$0())
  49446. t1.error$1(0, "Expected end of identifier.");
  49447. t2 = t1.substring$1(0, start.position);
  49448. t1 = t1.spanFrom$1(start);
  49449. return new A.StringExpression(A.Interpolation$(A._setArrayType([t2], type$.JSArray_Object), t1), false);
  49450. },
  49451. _variable$0() {
  49452. var _this = this,
  49453. t1 = _this.scanner,
  49454. start = new A._SpanScannerState(t1, t1._string_scanner$_position),
  49455. $name = _this.variableName$0();
  49456. if (_this.get$plainCss())
  49457. _this.error$2(0, string$.Sass_v, t1.spanFrom$1(start));
  49458. return new A.VariableExpression(null, $name, t1.spanFrom$1(start));
  49459. },
  49460. _selector$0() {
  49461. var t1, start, _this = this;
  49462. if (_this.get$plainCss())
  49463. _this.scanner.error$2$length(0, string$.The_pa, 1);
  49464. t1 = _this.scanner;
  49465. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  49466. t1.expectChar$1(38);
  49467. if (t1.scanChar$1(38)) {
  49468. _this.logger.warn$2$span(0, string$.In_Sas, t1.spanFrom$1(start));
  49469. t1.set$position(t1._string_scanner$_position - 1);
  49470. }
  49471. return new A.SelectorExpression(t1.spanFrom$1(start));
  49472. },
  49473. interpolatedString$0() {
  49474. var t3, t4, buffer, next, second, t5,
  49475. t1 = this.scanner,
  49476. t2 = t1._string_scanner$_position,
  49477. quote = t1.readChar$0();
  49478. if (quote !== 39 && quote !== 34)
  49479. t1.error$2$position(0, "Expected string.", t2);
  49480. t3 = new A.StringBuffer("");
  49481. t4 = A._setArrayType([], type$.JSArray_Object);
  49482. buffer = new A.InterpolationBuffer(t3, t4);
  49483. for (; true;) {
  49484. next = t1.peekChar$0();
  49485. if (next === quote) {
  49486. t1.readChar$0();
  49487. break;
  49488. } else if (next == null || next === 10 || next === 13 || next === 12)
  49489. t1.error$1(0, "Expected " + A.Primitives_stringFromCharCode(quote) + ".");
  49490. else if (next === 92) {
  49491. second = t1.peekChar$1(1);
  49492. if (second === 10 || second === 13 || second === 12) {
  49493. t1.readChar$0();
  49494. t1.readChar$0();
  49495. if (second === 13)
  49496. t1.scanChar$1(10);
  49497. } else
  49498. t3._contents += A.Primitives_stringFromCharCode(A.consumeEscapedCharacter(t1));
  49499. } else if (next === 35)
  49500. if (t1.peekChar$1(1) === 123) {
  49501. t5 = this.singleInterpolation$0();
  49502. buffer._flushText$0();
  49503. t4.push(t5);
  49504. } else
  49505. t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  49506. else
  49507. t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  49508. }
  49509. return new A.StringExpression(buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2))), true);
  49510. },
  49511. identifierLike$0() {
  49512. var invocation, expression, color, specialFunction, _this = this,
  49513. t1 = _this.scanner,
  49514. start = new A._SpanScannerState(t1, t1._string_scanner$_position),
  49515. identifier = _this.interpolatedIdentifier$0(),
  49516. plain = identifier.get$asPlain(),
  49517. lower = A._Cell$(),
  49518. t2 = plain == null,
  49519. t3 = !t2;
  49520. if (t3) {
  49521. if (plain === "if" && t1.peekChar$0() === 40) {
  49522. invocation = _this._argumentInvocation$0();
  49523. return new A.IfExpression(invocation, identifier.span.expand$1(0, invocation.span));
  49524. } else if (plain === "not") {
  49525. _this.whitespace$0();
  49526. expression = _this._singleExpression$0();
  49527. return new A.UnaryOperationExpression(B.UnaryOperator_not_not_not, expression, identifier.span.expand$1(0, expression.get$span(expression)));
  49528. }
  49529. lower._value = plain.toLowerCase();
  49530. if (t1.peekChar$0() !== 40) {
  49531. switch (plain) {
  49532. case "false":
  49533. return new A.BooleanExpression(false, identifier.span);
  49534. case "null":
  49535. return new A.NullExpression(identifier.span);
  49536. case "true":
  49537. return new A.BooleanExpression(true, identifier.span);
  49538. }
  49539. color = $.$get$colorsByName().$index(0, lower._readLocal$0());
  49540. if (color != null) {
  49541. t1 = identifier.span;
  49542. return new A.ColorExpression(A.SassColor$rgbInternal(color.get$red(color), color.get$green(color), color.get$blue(color), color._alpha, new A.SpanColorFormat(t1)), t1);
  49543. }
  49544. }
  49545. specialFunction = _this.trySpecialFunction$2(lower._readLocal$0(), start);
  49546. if (specialFunction != null)
  49547. return specialFunction;
  49548. }
  49549. switch (t1.peekChar$0()) {
  49550. case 46:
  49551. if (t1.peekChar$1(1) === 46)
  49552. return new A.StringExpression(identifier, false);
  49553. t1.readChar$0();
  49554. if (t3)
  49555. return _this.namespacedExpression$2(plain, start);
  49556. _this.error$2(0, string$.Interpn, identifier.span);
  49557. break;
  49558. case 40:
  49559. if (t2)
  49560. return new A.InterpolatedFunctionExpression(identifier, _this._argumentInvocation$0(), t1.spanFrom$1(start));
  49561. else
  49562. return new A.FunctionExpression(null, plain, _this._argumentInvocation$1$allowEmptySecondArg(J.$eq$(lower._readLocal$0(), "var")), t1.spanFrom$1(start));
  49563. default:
  49564. return new A.StringExpression(identifier, false);
  49565. }
  49566. },
  49567. namespacedExpression$2(namespace, start) {
  49568. var $name, _this = this,
  49569. t1 = _this.scanner;
  49570. if (t1.peekChar$0() === 36) {
  49571. $name = _this.variableName$0();
  49572. _this._assertPublic$2($name, new A.StylesheetParser_namespacedExpression_closure(_this, start));
  49573. return new A.VariableExpression(namespace, $name, t1.spanFrom$1(start));
  49574. }
  49575. return new A.FunctionExpression(namespace, _this._publicIdentifier$0(), _this._argumentInvocation$0(), t1.spanFrom$1(start));
  49576. },
  49577. trySpecialFunction$2($name, start) {
  49578. var t2, buffer, t3, next, _this = this, _null = null,
  49579. t1 = _this.scanner,
  49580. calculation = t1.peekChar$0() === 40 ? _this._tryCalculation$2($name, start) : _null;
  49581. if (calculation != null)
  49582. return calculation;
  49583. switch (A.unvendor($name)) {
  49584. case "calc":
  49585. case "element":
  49586. case "expression":
  49587. if (!t1.scanChar$1(40))
  49588. return _null;
  49589. t2 = new A.StringBuffer("");
  49590. buffer = new A.InterpolationBuffer(t2, A._setArrayType([], type$.JSArray_Object));
  49591. t3 = "" + $name;
  49592. t2._contents = t3;
  49593. t2._contents = t3 + A.Primitives_stringFromCharCode(40);
  49594. break;
  49595. case "progid":
  49596. if (!t1.scanChar$1(58))
  49597. return _null;
  49598. t2 = new A.StringBuffer("");
  49599. buffer = new A.InterpolationBuffer(t2, A._setArrayType([], type$.JSArray_Object));
  49600. t3 = "" + $name;
  49601. t2._contents = t3;
  49602. t2._contents = t3 + A.Primitives_stringFromCharCode(58);
  49603. next = t1.peekChar$0();
  49604. while (true) {
  49605. if (next != null) {
  49606. if (!(next >= 97 && next <= 122))
  49607. t3 = next >= 65 && next <= 90;
  49608. else
  49609. t3 = true;
  49610. t3 = t3 || next === 46;
  49611. } else
  49612. t3 = false;
  49613. if (!t3)
  49614. break;
  49615. t2._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  49616. next = t1.peekChar$0();
  49617. }
  49618. t1.expectChar$1(40);
  49619. t2._contents += A.Primitives_stringFromCharCode(40);
  49620. break;
  49621. case "url":
  49622. return A.NullableExtension_andThen(_this._tryUrlContents$1(start), new A.StylesheetParser_trySpecialFunction_closure());
  49623. default:
  49624. return _null;
  49625. }
  49626. buffer.addInterpolation$1(_this._interpolatedDeclarationValue$1$allowEmpty(true));
  49627. t1.expectChar$1(41);
  49628. buffer._interpolation_buffer$_text._contents += A.Primitives_stringFromCharCode(41);
  49629. return new A.StringExpression(buffer.interpolation$1(t1.spanFrom$1(start)), false);
  49630. },
  49631. _tryCalculation$2($name, start) {
  49632. var beforeArguments, $arguments, t1, exception, t2, _this = this;
  49633. switch ($name) {
  49634. case "calc":
  49635. $arguments = _this._calculationArguments$1(1);
  49636. t1 = _this.scanner.spanFrom$1(start);
  49637. return new A.CalculationExpression($name, A.CalculationExpression__verifyArguments($arguments), t1);
  49638. case "min":
  49639. case "max":
  49640. t1 = _this.scanner;
  49641. beforeArguments = new A._SpanScannerState(t1, t1._string_scanner$_position);
  49642. $arguments = null;
  49643. try {
  49644. $arguments = _this._calculationArguments$0();
  49645. } catch (exception) {
  49646. if (type$.FormatException._is(A.unwrapException(exception))) {
  49647. t1.set$state(beforeArguments);
  49648. return null;
  49649. } else
  49650. throw exception;
  49651. }
  49652. t2 = $arguments;
  49653. t1 = t1.spanFrom$1(start);
  49654. return new A.CalculationExpression($name, A.CalculationExpression__verifyArguments(t2), t1);
  49655. case "clamp":
  49656. $arguments = _this._calculationArguments$1(3);
  49657. t1 = _this.scanner.spanFrom$1(start);
  49658. return new A.CalculationExpression($name, A.CalculationExpression__verifyArguments($arguments), t1);
  49659. default:
  49660. return null;
  49661. }
  49662. },
  49663. _calculationArguments$1(maxArgs) {
  49664. var interpolation, $arguments, t2, _this = this,
  49665. t1 = _this.scanner;
  49666. t1.expectChar$1(40);
  49667. interpolation = _this._containsCalculationInterpolation$0() ? new A.StringExpression(_this._interpolatedDeclarationValue$0(), false) : null;
  49668. if (interpolation != null) {
  49669. t1.expectChar$1(41);
  49670. return A._setArrayType([interpolation], type$.JSArray_Expression);
  49671. }
  49672. _this.whitespace$0();
  49673. $arguments = A._setArrayType([_this._calculationSum$0()], type$.JSArray_Expression);
  49674. t2 = maxArgs != null;
  49675. while (true) {
  49676. if (!((!t2 || $arguments.length < maxArgs) && t1.scanChar$1(44)))
  49677. break;
  49678. _this.whitespace$0();
  49679. $arguments.push(_this._calculationSum$0());
  49680. }
  49681. t1.expectChar$2$name(41, $arguments.length === maxArgs ? '"+", "-", "*", "/", or ")"' : '"+", "-", "*", "/", ",", or ")"');
  49682. return $arguments;
  49683. },
  49684. _calculationArguments$0() {
  49685. return this._calculationArguments$1(null);
  49686. },
  49687. _calculationSum$0() {
  49688. var t1, next, t2, t3, _this = this,
  49689. sum = _this._calculationProduct$0();
  49690. for (t1 = _this.scanner; true;) {
  49691. next = t1.peekChar$0();
  49692. t2 = next === 43;
  49693. if (t2 || next === 45) {
  49694. t3 = t1.peekChar$1(-1);
  49695. if (t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12) {
  49696. t3 = t1.peekChar$1(1);
  49697. t3 = !(t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12);
  49698. } else
  49699. t3 = true;
  49700. if (t3)
  49701. t1.error$1(0, string$.x22x2b__an);
  49702. t1.readChar$0();
  49703. _this.whitespace$0();
  49704. t2 = t2 ? B.BinaryOperator_qbf : B.BinaryOperator_KlB;
  49705. sum = new A.BinaryOperationExpression(t2, sum, _this._calculationProduct$0(), false);
  49706. } else
  49707. return sum;
  49708. }
  49709. },
  49710. _calculationProduct$0() {
  49711. var t1, next, t2, _this = this,
  49712. product = _this._calculationValue$0();
  49713. for (t1 = _this.scanner; true;) {
  49714. _this.whitespace$0();
  49715. next = t1.peekChar$0();
  49716. t2 = next === 42;
  49717. if (t2 || next === 47) {
  49718. t1.readChar$0();
  49719. _this.whitespace$0();
  49720. t2 = t2 ? B.BinaryOperator_6pl : B.BinaryOperator_qpm;
  49721. product = new A.BinaryOperationExpression(t2, product, _this._calculationValue$0(), false);
  49722. } else
  49723. return product;
  49724. }
  49725. },
  49726. _calculationValue$0() {
  49727. var t2, value, start, ident, lowerCase, calculation, _this = this,
  49728. t1 = _this.scanner,
  49729. next = t1.peekChar$0();
  49730. if (next === 43 || next === 45 || next === 46 || A.isDigit(next))
  49731. return _this._number$0();
  49732. else if (next === 36)
  49733. return _this._variable$0();
  49734. else if (next === 40) {
  49735. t2 = t1._string_scanner$_position;
  49736. t1.readChar$0();
  49737. value = _this._containsCalculationInterpolation$0() ? new A.StringExpression(_this._interpolatedDeclarationValue$0(), false) : null;
  49738. if (value == null) {
  49739. _this.whitespace$0();
  49740. value = _this._calculationSum$0();
  49741. }
  49742. _this.whitespace$0();
  49743. t1.expectChar$1(41);
  49744. return new A.ParenthesizedExpression(value, t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  49745. } else if (!_this.lookingAtIdentifier$0())
  49746. t1.error$1(0, string$.Expectn);
  49747. else {
  49748. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  49749. ident = _this.identifier$0();
  49750. if (t1.scanChar$1(46))
  49751. return _this.namespacedExpression$2(ident, start);
  49752. if (t1.peekChar$0() !== 40)
  49753. t1.error$1(0, 'Expected "(" or ".".');
  49754. lowerCase = ident.toLowerCase();
  49755. calculation = _this._tryCalculation$2(lowerCase, start);
  49756. if (calculation != null)
  49757. return calculation;
  49758. else if (lowerCase === "if")
  49759. return new A.IfExpression(_this._argumentInvocation$0(), t1.spanFrom$1(start));
  49760. else
  49761. return new A.FunctionExpression(null, ident, _this._argumentInvocation$0(), t1.spanFrom$1(start));
  49762. }
  49763. },
  49764. _containsCalculationInterpolation$0() {
  49765. var t2, parens, next, target, t3, _null = null,
  49766. _s64_ = string$.The_gi,
  49767. _s17_ = "Invalid position ",
  49768. brackets = A._setArrayType([], type$.JSArray_int),
  49769. t1 = this.scanner,
  49770. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  49771. for (t2 = t1.string.length, parens = 0; t1._string_scanner$_position !== t2;) {
  49772. next = t1.peekChar$0();
  49773. switch (next) {
  49774. case 92:
  49775. target = 1;
  49776. break;
  49777. case 47:
  49778. target = 2;
  49779. break;
  49780. case 39:
  49781. case 34:
  49782. target = 3;
  49783. break;
  49784. case 35:
  49785. target = 4;
  49786. break;
  49787. case 40:
  49788. target = 5;
  49789. break;
  49790. case 123:
  49791. case 91:
  49792. target = 6;
  49793. break;
  49794. case 41:
  49795. target = 7;
  49796. break;
  49797. case 125:
  49798. case 93:
  49799. target = 8;
  49800. break;
  49801. default:
  49802. target = 9;
  49803. break;
  49804. }
  49805. c$0:
  49806. for (; true;)
  49807. switch (target) {
  49808. case 1:
  49809. t1.readChar$0();
  49810. t1.readChar$0();
  49811. break c$0;
  49812. case 2:
  49813. if (!this.scanComment$0())
  49814. t1.readChar$0();
  49815. break c$0;
  49816. case 3:
  49817. this.interpolatedString$0();
  49818. break c$0;
  49819. case 4:
  49820. if (parens === 0 && t1.peekChar$1(1) === 123) {
  49821. if (start._scanner !== t1)
  49822. A.throwExpression(A.ArgumentError$(_s64_, _null));
  49823. t3 = start.position;
  49824. if ((t3 === 0 ? 1 / t3 < 0 : t3 < 0) || t3 > t2)
  49825. A.throwExpression(A.ArgumentError$(_s17_ + t3, _null));
  49826. t1._string_scanner$_position = t3;
  49827. t1._lastMatch = null;
  49828. return true;
  49829. }
  49830. t1.readChar$0();
  49831. break c$0;
  49832. case 5:
  49833. ++parens;
  49834. target = 6;
  49835. continue c$0;
  49836. case 6:
  49837. next.toString;
  49838. brackets.push(A.opposite(next));
  49839. t1.readChar$0();
  49840. break c$0;
  49841. case 7:
  49842. --parens;
  49843. target = 8;
  49844. continue c$0;
  49845. case 8:
  49846. if (brackets.length === 0 || brackets.pop() !== next) {
  49847. if (start._scanner !== t1)
  49848. A.throwExpression(A.ArgumentError$(_s64_, _null));
  49849. t3 = start.position;
  49850. if ((t3 === 0 ? 1 / t3 < 0 : t3 < 0) || t3 > t2)
  49851. A.throwExpression(A.ArgumentError$(_s17_ + t3, _null));
  49852. t1._string_scanner$_position = t3;
  49853. t1._lastMatch = null;
  49854. return false;
  49855. }
  49856. t1.readChar$0();
  49857. break c$0;
  49858. case 9:
  49859. t1.readChar$0();
  49860. break c$0;
  49861. }
  49862. }
  49863. t1.set$state(start);
  49864. return false;
  49865. },
  49866. _tryUrlContents$2$name(start, $name) {
  49867. var t3, t4, buffer, t5, next, endPosition, result, _this = this,
  49868. t1 = _this.scanner,
  49869. t2 = t1._string_scanner$_position;
  49870. if (!t1.scanChar$1(40))
  49871. return null;
  49872. _this.whitespaceWithoutComments$0();
  49873. t3 = new A.StringBuffer("");
  49874. t4 = A._setArrayType([], type$.JSArray_Object);
  49875. buffer = new A.InterpolationBuffer(t3, t4);
  49876. t5 = "" + ($name == null ? "url" : $name);
  49877. t3._contents = t5;
  49878. t3._contents = t5 + A.Primitives_stringFromCharCode(40);
  49879. for (; true;) {
  49880. next = t1.peekChar$0();
  49881. if (next == null)
  49882. break;
  49883. else if (next === 92)
  49884. t3._contents += A.S(_this.escape$0());
  49885. else {
  49886. if (next !== 33)
  49887. if (next !== 37)
  49888. if (next !== 38)
  49889. t5 = next >= 42 && next <= 126 || next >= 128;
  49890. else
  49891. t5 = true;
  49892. else
  49893. t5 = true;
  49894. else
  49895. t5 = true;
  49896. if (t5)
  49897. t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  49898. else if (next === 35)
  49899. if (t1.peekChar$1(1) === 123) {
  49900. t5 = _this.singleInterpolation$0();
  49901. buffer._flushText$0();
  49902. t4.push(t5);
  49903. } else
  49904. t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  49905. else if (next === 32 || next === 9 || next === 10 || next === 13 || next === 12) {
  49906. _this.whitespaceWithoutComments$0();
  49907. if (t1.peekChar$0() !== 41)
  49908. break;
  49909. } else if (next === 41) {
  49910. t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  49911. endPosition = t1._string_scanner$_position;
  49912. t2 = t1._sourceFile;
  49913. t5 = start.position;
  49914. t1 = new A._FileSpan(t2, t5, endPosition);
  49915. t1._FileSpan$3(t2, t5, endPosition);
  49916. t5 = type$.Object;
  49917. t2 = A.List_List$of(t4, true, t5);
  49918. t4 = t3._contents;
  49919. if (t4.length !== 0)
  49920. t2.push(t4.charCodeAt(0) == 0 ? t4 : t4);
  49921. result = A.List_List$from(t2, false, t5);
  49922. result.fixed$length = Array;
  49923. result.immutable$list = Array;
  49924. t3 = new A.Interpolation(result, t1);
  49925. t3.Interpolation$2(t2, t1);
  49926. return t3;
  49927. } else
  49928. break;
  49929. }
  49930. }
  49931. t1.set$state(new A._SpanScannerState(t1, t2));
  49932. return null;
  49933. },
  49934. _tryUrlContents$1(start) {
  49935. return this._tryUrlContents$2$name(start, null);
  49936. },
  49937. dynamicUrl$0() {
  49938. var contents, _this = this,
  49939. t1 = _this.scanner,
  49940. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  49941. _this.expectIdentifier$1("url");
  49942. contents = _this._tryUrlContents$1(start);
  49943. if (contents != null)
  49944. return new A.StringExpression(contents, false);
  49945. return new A.InterpolatedFunctionExpression(A.Interpolation$(A._setArrayType(["url"], type$.JSArray_Object), t1.spanFrom$1(start)), _this._argumentInvocation$0(), t1.spanFrom$1(start));
  49946. },
  49947. almostAnyValue$1$omitComments(omitComments) {
  49948. var t4, t5, t6, next, commentStart, end, t7, contents, _this = this,
  49949. t1 = _this.scanner,
  49950. t2 = t1._string_scanner$_position,
  49951. t3 = new A.StringBuffer(""),
  49952. buffer = new A.InterpolationBuffer(t3, A._setArrayType([], type$.JSArray_Object));
  49953. $label0$1:
  49954. for (t4 = t1.string, t5 = t4.length, t6 = !omitComments; true;) {
  49955. next = t1.peekChar$0();
  49956. switch (next) {
  49957. case 92:
  49958. t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  49959. t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  49960. break;
  49961. case 34:
  49962. case 39:
  49963. buffer.addInterpolation$1(_this.interpolatedString$0().asInterpolation$0());
  49964. break;
  49965. case 47:
  49966. commentStart = t1._string_scanner$_position;
  49967. if (_this.scanComment$0()) {
  49968. if (t6) {
  49969. end = t1._string_scanner$_position;
  49970. t3._contents += B.JSString_methods.substring$2(t4, commentStart, end);
  49971. }
  49972. } else
  49973. t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  49974. break;
  49975. case 35:
  49976. if (t1.peekChar$1(1) === 123)
  49977. buffer.addInterpolation$1(_this.interpolatedIdentifier$0());
  49978. else
  49979. t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  49980. break;
  49981. case 13:
  49982. case 10:
  49983. case 12:
  49984. if (_this.get$indented())
  49985. break $label0$1;
  49986. t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  49987. break;
  49988. case 33:
  49989. case 59:
  49990. case 123:
  49991. case 125:
  49992. break $label0$1;
  49993. case 117:
  49994. case 85:
  49995. t7 = t1._string_scanner$_position;
  49996. if (!_this.scanIdentifier$1("url")) {
  49997. t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  49998. break;
  49999. }
  50000. contents = _this._tryUrlContents$1(new A._SpanScannerState(t1, t7));
  50001. if (contents == null) {
  50002. if ((t7 === 0 ? 1 / t7 < 0 : t7 < 0) || t7 > t5)
  50003. A.throwExpression(A.ArgumentError$("Invalid position " + t7, null));
  50004. t1._string_scanner$_position = t7;
  50005. t1._lastMatch = null;
  50006. t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  50007. } else
  50008. buffer.addInterpolation$1(contents);
  50009. break;
  50010. default:
  50011. if (next == null)
  50012. break $label0$1;
  50013. if (_this.lookingAtIdentifier$0())
  50014. t3._contents += _this.identifier$0();
  50015. else
  50016. t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  50017. break;
  50018. }
  50019. }
  50020. return buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  50021. },
  50022. almostAnyValue$0() {
  50023. return this.almostAnyValue$1$omitComments(false);
  50024. },
  50025. _interpolatedDeclarationValue$3$allowColon$allowEmpty$allowSemicolon(allowColon, allowEmpty, allowSemicolon) {
  50026. var t4, t5, t6, t7, wroteNewline, next, t8, start, end, contents, _this = this,
  50027. t1 = _this.scanner,
  50028. t2 = t1._string_scanner$_position,
  50029. t3 = new A.StringBuffer(""),
  50030. buffer = new A.InterpolationBuffer(t3, A._setArrayType([], type$.JSArray_Object)),
  50031. brackets = A._setArrayType([], type$.JSArray_int);
  50032. $label0$1:
  50033. for (t4 = t1.string, t5 = t4.length, t6 = !allowColon, t7 = !allowSemicolon, wroteNewline = false; true;) {
  50034. next = t1.peekChar$0();
  50035. switch (next) {
  50036. case 92:
  50037. t3._contents += A.S(_this.escape$1$identifierStart(true));
  50038. wroteNewline = false;
  50039. break;
  50040. case 34:
  50041. case 39:
  50042. buffer.addInterpolation$1(_this.interpolatedString$0().asInterpolation$0());
  50043. wroteNewline = false;
  50044. break;
  50045. case 47:
  50046. if (t1.peekChar$1(1) === 42) {
  50047. t8 = _this.get$loudComment();
  50048. start = t1._string_scanner$_position;
  50049. t8.call$0();
  50050. end = t1._string_scanner$_position;
  50051. t3._contents += B.JSString_methods.substring$2(t4, start, end);
  50052. } else
  50053. t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  50054. wroteNewline = false;
  50055. break;
  50056. case 35:
  50057. if (t1.peekChar$1(1) === 123)
  50058. buffer.addInterpolation$1(_this.interpolatedIdentifier$0());
  50059. else
  50060. t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  50061. wroteNewline = false;
  50062. break;
  50063. case 32:
  50064. case 9:
  50065. if (!wroteNewline) {
  50066. t8 = t1.peekChar$1(1);
  50067. t8 = !(t8 === 32 || t8 === 9 || t8 === 10 || t8 === 13 || t8 === 12);
  50068. } else
  50069. t8 = true;
  50070. if (t8)
  50071. t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  50072. else
  50073. t1.readChar$0();
  50074. break;
  50075. case 10:
  50076. case 13:
  50077. case 12:
  50078. if (_this.get$indented())
  50079. break $label0$1;
  50080. t8 = t1.peekChar$1(-1);
  50081. if (!(t8 === 10 || t8 === 13 || t8 === 12))
  50082. t3._contents += "\n";
  50083. t1.readChar$0();
  50084. wroteNewline = true;
  50085. break;
  50086. case 40:
  50087. case 123:
  50088. case 91:
  50089. next.toString;
  50090. t3._contents += A.Primitives_stringFromCharCode(next);
  50091. brackets.push(A.opposite(t1.readChar$0()));
  50092. wroteNewline = false;
  50093. break;
  50094. case 41:
  50095. case 125:
  50096. case 93:
  50097. if (brackets.length === 0)
  50098. break $label0$1;
  50099. next.toString;
  50100. t3._contents += A.Primitives_stringFromCharCode(next);
  50101. t1.expectChar$1(brackets.pop());
  50102. wroteNewline = false;
  50103. break;
  50104. case 59:
  50105. if (t7 && brackets.length === 0)
  50106. break $label0$1;
  50107. t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  50108. wroteNewline = false;
  50109. break;
  50110. case 58:
  50111. if (t6 && brackets.length === 0)
  50112. break $label0$1;
  50113. t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  50114. wroteNewline = false;
  50115. break;
  50116. case 117:
  50117. case 85:
  50118. t8 = t1._string_scanner$_position;
  50119. if (!_this.scanIdentifier$1("url")) {
  50120. t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  50121. wroteNewline = false;
  50122. break;
  50123. }
  50124. contents = _this._tryUrlContents$1(new A._SpanScannerState(t1, t8));
  50125. if (contents == null) {
  50126. if ((t8 === 0 ? 1 / t8 < 0 : t8 < 0) || t8 > t5)
  50127. A.throwExpression(A.ArgumentError$("Invalid position " + t8, null));
  50128. t1._string_scanner$_position = t8;
  50129. t1._lastMatch = null;
  50130. t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  50131. } else
  50132. buffer.addInterpolation$1(contents);
  50133. wroteNewline = false;
  50134. break;
  50135. default:
  50136. if (next == null)
  50137. break $label0$1;
  50138. if (_this.lookingAtIdentifier$0())
  50139. t3._contents += _this.identifier$0();
  50140. else
  50141. t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  50142. wroteNewline = false;
  50143. break;
  50144. }
  50145. }
  50146. if (brackets.length !== 0)
  50147. t1.expectChar$1(B.JSArray_methods.get$last(brackets));
  50148. if (!allowEmpty && buffer._interpolation_buffer$_contents.length === 0 && t3._contents.length === 0)
  50149. t1.error$1(0, "Expected token.");
  50150. return buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  50151. },
  50152. _interpolatedDeclarationValue$1$allowEmpty(allowEmpty) {
  50153. return this._interpolatedDeclarationValue$3$allowColon$allowEmpty$allowSemicolon(true, allowEmpty, false);
  50154. },
  50155. _interpolatedDeclarationValue$0() {
  50156. return this._interpolatedDeclarationValue$3$allowColon$allowEmpty$allowSemicolon(true, false, false);
  50157. },
  50158. _interpolatedDeclarationValue$2$allowEmpty$allowSemicolon(allowEmpty, allowSemicolon) {
  50159. return this._interpolatedDeclarationValue$3$allowColon$allowEmpty$allowSemicolon(true, allowEmpty, allowSemicolon);
  50160. },
  50161. interpolatedIdentifier$0() {
  50162. var first, _this = this,
  50163. _s20_ = "Expected identifier.",
  50164. t1 = _this.scanner,
  50165. start = new A._SpanScannerState(t1, t1._string_scanner$_position),
  50166. t2 = new A.StringBuffer(""),
  50167. t3 = A._setArrayType([], type$.JSArray_Object),
  50168. buffer = new A.InterpolationBuffer(t2, t3);
  50169. if (t1.scanChar$1(45)) {
  50170. t2._contents += A.Primitives_stringFromCharCode(45);
  50171. if (t1.scanChar$1(45)) {
  50172. t2._contents += A.Primitives_stringFromCharCode(45);
  50173. _this._interpolatedIdentifierBody$1(buffer);
  50174. return buffer.interpolation$1(t1.spanFrom$1(start));
  50175. }
  50176. }
  50177. first = t1.peekChar$0();
  50178. if (first == null)
  50179. t1.error$1(0, _s20_);
  50180. else if (first === 95 || A.isAlphabetic0(first) || first >= 128)
  50181. t2._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  50182. else if (first === 92)
  50183. t2._contents += A.S(_this.escape$1$identifierStart(true));
  50184. else if (first === 35 && t1.peekChar$1(1) === 123) {
  50185. t2 = _this.singleInterpolation$0();
  50186. buffer._flushText$0();
  50187. t3.push(t2);
  50188. } else
  50189. t1.error$1(0, _s20_);
  50190. _this._interpolatedIdentifierBody$1(buffer);
  50191. return buffer.interpolation$1(t1.spanFrom$1(start));
  50192. },
  50193. _interpolatedIdentifierBody$1(buffer) {
  50194. var t1, t2, t3, next, t4;
  50195. for (t1 = buffer._interpolation_buffer$_contents, t2 = this.scanner, t3 = buffer._interpolation_buffer$_text; true;) {
  50196. next = t2.peekChar$0();
  50197. if (next == null)
  50198. break;
  50199. else {
  50200. if (next !== 95)
  50201. if (next !== 45) {
  50202. if (!(next >= 97 && next <= 122))
  50203. t4 = next >= 65 && next <= 90;
  50204. else
  50205. t4 = true;
  50206. if (!t4)
  50207. t4 = next >= 48 && next <= 57;
  50208. else
  50209. t4 = true;
  50210. t4 = t4 || next >= 128;
  50211. } else
  50212. t4 = true;
  50213. else
  50214. t4 = true;
  50215. if (t4)
  50216. t3._contents += A.Primitives_stringFromCharCode(t2.readChar$0());
  50217. else if (next === 92)
  50218. t3._contents += A.S(this.escape$0());
  50219. else if (next === 35 && t2.peekChar$1(1) === 123) {
  50220. t4 = this.singleInterpolation$0();
  50221. buffer._flushText$0();
  50222. t1.push(t4);
  50223. } else
  50224. break;
  50225. }
  50226. }
  50227. },
  50228. singleInterpolation$0() {
  50229. var contents, _this = this,
  50230. t1 = _this.scanner,
  50231. t2 = t1._string_scanner$_position;
  50232. t1.expect$1("#{");
  50233. _this.whitespace$0();
  50234. contents = _this._expression$0();
  50235. t1.expectChar$1(125);
  50236. if (_this.get$plainCss())
  50237. _this.error$2(0, string$.Interpp, t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  50238. return contents;
  50239. },
  50240. _mediaQueryList$0() {
  50241. var t4, _this = this,
  50242. t1 = _this.scanner,
  50243. t2 = t1._string_scanner$_position,
  50244. t3 = new A.StringBuffer(""),
  50245. buffer = new A.InterpolationBuffer(t3, A._setArrayType([], type$.JSArray_Object));
  50246. for (; true;) {
  50247. _this.whitespace$0();
  50248. _this._stylesheet$_mediaQuery$1(buffer);
  50249. _this.whitespace$0();
  50250. if (!t1.scanChar$1(44))
  50251. break;
  50252. t4 = t3._contents += A.Primitives_stringFromCharCode(44);
  50253. t3._contents = t4 + A.Primitives_stringFromCharCode(32);
  50254. }
  50255. return buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  50256. },
  50257. _stylesheet$_mediaQuery$1(buffer) {
  50258. var identifier1, t1, identifier2, _this = this, _s3_ = "and";
  50259. if (_this.scanner.peekChar$0() === 40) {
  50260. _this._stylesheet$_mediaInParens$1(buffer);
  50261. _this.whitespace$0();
  50262. if (_this.scanIdentifier$1(_s3_)) {
  50263. buffer._interpolation_buffer$_text._contents += " and ";
  50264. _this.expectWhitespace$0();
  50265. _this._stylesheet$_mediaLogicSequence$2(buffer, _s3_);
  50266. } else if (_this.scanIdentifier$1("or")) {
  50267. buffer._interpolation_buffer$_text._contents += " or ";
  50268. _this.expectWhitespace$0();
  50269. _this._stylesheet$_mediaLogicSequence$2(buffer, "or");
  50270. }
  50271. return;
  50272. }
  50273. identifier1 = _this.interpolatedIdentifier$0();
  50274. if (A.equalsIgnoreCase(identifier1.get$asPlain(), "not")) {
  50275. _this.expectWhitespace$0();
  50276. if (!_this._lookingAtInterpolatedIdentifier$0()) {
  50277. buffer._interpolation_buffer$_text._contents += "not ";
  50278. _this._mediaOrInterp$1(buffer);
  50279. return;
  50280. }
  50281. }
  50282. _this.whitespace$0();
  50283. buffer.addInterpolation$1(identifier1);
  50284. if (!_this._lookingAtInterpolatedIdentifier$0())
  50285. return;
  50286. t1 = buffer._interpolation_buffer$_text;
  50287. t1._contents += A.Primitives_stringFromCharCode(32);
  50288. identifier2 = _this.interpolatedIdentifier$0();
  50289. if (A.equalsIgnoreCase(identifier2.get$asPlain(), _s3_)) {
  50290. _this.expectWhitespace$0();
  50291. t1._contents += " and ";
  50292. } else {
  50293. _this.whitespace$0();
  50294. buffer.addInterpolation$1(identifier2);
  50295. if (_this.scanIdentifier$1(_s3_)) {
  50296. _this.expectWhitespace$0();
  50297. t1._contents += " and ";
  50298. } else
  50299. return;
  50300. }
  50301. if (_this.scanIdentifier$1("not")) {
  50302. _this.expectWhitespace$0();
  50303. t1._contents += "not ";
  50304. _this._mediaOrInterp$1(buffer);
  50305. return;
  50306. }
  50307. _this._stylesheet$_mediaLogicSequence$2(buffer, _s3_);
  50308. return;
  50309. },
  50310. _stylesheet$_mediaLogicSequence$2(buffer, operator) {
  50311. var t1, t2, _this = this;
  50312. for (t1 = buffer._interpolation_buffer$_text; true;) {
  50313. _this._mediaOrInterp$1(buffer);
  50314. _this.whitespace$0();
  50315. if (!_this.scanIdentifier$1(operator))
  50316. return;
  50317. _this.expectWhitespace$0();
  50318. t2 = t1._contents += A.Primitives_stringFromCharCode(32);
  50319. t2 += operator;
  50320. t1._contents = t2;
  50321. t1._contents = t2 + A.Primitives_stringFromCharCode(32);
  50322. }
  50323. },
  50324. _mediaOrInterp$1(buffer) {
  50325. var interpolation;
  50326. if (this.scanner.peekChar$0() === 35) {
  50327. interpolation = this.singleInterpolation$0();
  50328. buffer.addInterpolation$1(A.Interpolation$(A._setArrayType([interpolation], type$.JSArray_Object), interpolation.get$span(interpolation)));
  50329. } else
  50330. this._stylesheet$_mediaInParens$1(buffer);
  50331. },
  50332. _stylesheet$_mediaInParens$1(buffer) {
  50333. var t2, t3, t4, next, t5, _this = this,
  50334. t1 = _this.scanner;
  50335. t1.expectChar$2$name(40, "media condition in parentheses");
  50336. t2 = buffer._interpolation_buffer$_text;
  50337. t2._contents += A.Primitives_stringFromCharCode(40);
  50338. _this.whitespace$0();
  50339. if (t1.peekChar$0() === 40) {
  50340. _this._stylesheet$_mediaInParens$1(buffer);
  50341. _this.whitespace$0();
  50342. if (_this.scanIdentifier$1("and")) {
  50343. t2._contents += " and ";
  50344. _this.expectWhitespace$0();
  50345. _this._stylesheet$_mediaLogicSequence$2(buffer, "and");
  50346. } else if (_this.scanIdentifier$1("or")) {
  50347. t2._contents += " or ";
  50348. _this.expectWhitespace$0();
  50349. _this._stylesheet$_mediaLogicSequence$2(buffer, "or");
  50350. }
  50351. } else if (_this.scanIdentifier$1("not")) {
  50352. t2._contents += "not ";
  50353. _this.expectWhitespace$0();
  50354. _this._mediaOrInterp$1(buffer);
  50355. } else {
  50356. t3 = _this._expressionUntilComparison$0();
  50357. buffer._flushText$0();
  50358. t4 = buffer._interpolation_buffer$_contents;
  50359. t4.push(t3);
  50360. if (t1.scanChar$1(58)) {
  50361. _this.whitespace$0();
  50362. t3 = t2._contents += A.Primitives_stringFromCharCode(58);
  50363. t2._contents = t3 + A.Primitives_stringFromCharCode(32);
  50364. t3 = _this._expression$0();
  50365. buffer._flushText$0();
  50366. t4.push(t3);
  50367. } else {
  50368. next = t1.peekChar$0();
  50369. t3 = next !== 60;
  50370. if (!t3 || next === 62 || next === 61) {
  50371. t2._contents += A.Primitives_stringFromCharCode(32);
  50372. t2._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  50373. if ((!t3 || next === 62) && t1.scanChar$1(61))
  50374. t2._contents += A.Primitives_stringFromCharCode(61);
  50375. t2._contents += A.Primitives_stringFromCharCode(32);
  50376. _this.whitespace$0();
  50377. t5 = _this._expressionUntilComparison$0();
  50378. buffer._flushText$0();
  50379. t4.push(t5);
  50380. if (!t3 || next === 62) {
  50381. next.toString;
  50382. t3 = t1.scanChar$1(next);
  50383. } else
  50384. t3 = false;
  50385. if (t3) {
  50386. t3 = t2._contents += A.Primitives_stringFromCharCode(32);
  50387. t2._contents = t3 + A.Primitives_stringFromCharCode(next);
  50388. if (t1.scanChar$1(61))
  50389. t2._contents += A.Primitives_stringFromCharCode(61);
  50390. t2._contents += A.Primitives_stringFromCharCode(32);
  50391. _this.whitespace$0();
  50392. t3 = _this._expressionUntilComparison$0();
  50393. buffer._flushText$0();
  50394. t4.push(t3);
  50395. }
  50396. }
  50397. }
  50398. }
  50399. t1.expectChar$1(41);
  50400. _this.whitespace$0();
  50401. t2._contents += A.Primitives_stringFromCharCode(41);
  50402. },
  50403. _expressionUntilComparison$0() {
  50404. return this._expression$1$until(new A.StylesheetParser__expressionUntilComparison_closure(this));
  50405. },
  50406. _supportsCondition$0() {
  50407. var condition, operator, right, endPosition, t3, t4, lowerOperator, _this = this,
  50408. t1 = _this.scanner,
  50409. t2 = t1._string_scanner$_position;
  50410. if (_this.scanIdentifier$1("not")) {
  50411. _this.whitespace$0();
  50412. return new A.SupportsNegation(_this._supportsConditionInParens$0(), t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  50413. }
  50414. condition = _this._supportsConditionInParens$0();
  50415. _this.whitespace$0();
  50416. for (operator = null; _this.lookingAtIdentifier$0();) {
  50417. if (operator != null)
  50418. _this.expectIdentifier$1(operator);
  50419. else if (_this.scanIdentifier$1("or"))
  50420. operator = "or";
  50421. else {
  50422. _this.expectIdentifier$1("and");
  50423. operator = "and";
  50424. }
  50425. _this.whitespace$0();
  50426. right = _this._supportsConditionInParens$0();
  50427. endPosition = t1._string_scanner$_position;
  50428. t3 = t1._sourceFile;
  50429. t4 = new A._FileSpan(t3, t2, endPosition);
  50430. t4._FileSpan$3(t3, t2, endPosition);
  50431. condition = new A.SupportsOperation(condition, right, operator, t4);
  50432. lowerOperator = operator.toLowerCase();
  50433. if (lowerOperator !== "and" && lowerOperator !== "or")
  50434. A.throwExpression(A.ArgumentError$value(operator, "operator", 'may only be "and" or "or".'));
  50435. _this.whitespace$0();
  50436. }
  50437. return condition;
  50438. },
  50439. _supportsConditionInParens$0() {
  50440. var $name, nameStart, wasInParentheses, identifier, operation, contents, identifier0, t2, $arguments, condition, exception, declaration, _this = this,
  50441. t1 = _this.scanner,
  50442. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  50443. if (_this._lookingAtInterpolatedIdentifier$0()) {
  50444. identifier0 = _this.interpolatedIdentifier$0();
  50445. t2 = identifier0.get$asPlain();
  50446. if ((t2 == null ? null : t2.toLowerCase()) === "not")
  50447. _this.error$2(0, '"not" is not a valid identifier here.', identifier0.span);
  50448. if (t1.scanChar$1(40)) {
  50449. $arguments = _this._interpolatedDeclarationValue$2$allowEmpty$allowSemicolon(true, true);
  50450. t1.expectChar$1(41);
  50451. return new A.SupportsFunction(identifier0, $arguments, t1.spanFrom$1(start));
  50452. } else {
  50453. t2 = identifier0.contents;
  50454. if (t2.length !== 1 || !type$.Expression._is(B.JSArray_methods.get$first(t2)))
  50455. _this.error$2(0, "Expected @supports condition.", identifier0.span);
  50456. else
  50457. return new A.SupportsInterpolation(type$.Expression._as(B.JSArray_methods.get$first(t2)), t1.spanFrom$1(start));
  50458. }
  50459. }
  50460. t1.expectChar$1(40);
  50461. _this.whitespace$0();
  50462. if (_this.scanIdentifier$1("not")) {
  50463. _this.whitespace$0();
  50464. condition = _this._supportsConditionInParens$0();
  50465. t1.expectChar$1(41);
  50466. return new A.SupportsNegation(condition, t1.spanFrom$1(start));
  50467. } else if (t1.peekChar$0() === 40) {
  50468. condition = _this._supportsCondition$0();
  50469. t1.expectChar$1(41);
  50470. return condition;
  50471. }
  50472. $name = null;
  50473. nameStart = new A._SpanScannerState(t1, t1._string_scanner$_position);
  50474. wasInParentheses = _this._inParentheses;
  50475. try {
  50476. $name = _this._expression$0();
  50477. t1.expectChar$1(58);
  50478. } catch (exception) {
  50479. if (type$.FormatException._is(A.unwrapException(exception))) {
  50480. t1.set$state(nameStart);
  50481. _this._inParentheses = wasInParentheses;
  50482. identifier = _this.interpolatedIdentifier$0();
  50483. operation = _this._trySupportsOperation$2(identifier, nameStart);
  50484. if (operation != null) {
  50485. t1.expectChar$1(41);
  50486. return operation;
  50487. }
  50488. t2 = new A.InterpolationBuffer(new A.StringBuffer(""), A._setArrayType([], type$.JSArray_Object));
  50489. t2.addInterpolation$1(identifier);
  50490. t2.addInterpolation$1(_this._interpolatedDeclarationValue$3$allowColon$allowEmpty$allowSemicolon(false, true, true));
  50491. contents = t2.interpolation$1(t1.spanFrom$1(nameStart));
  50492. if (t1.peekChar$0() === 58)
  50493. throw exception;
  50494. t1.expectChar$1(41);
  50495. return new A.SupportsAnything(contents, t1.spanFrom$1(start));
  50496. } else
  50497. throw exception;
  50498. }
  50499. declaration = _this._supportsDeclarationValue$2($name, start);
  50500. t1.expectChar$1(41);
  50501. return declaration;
  50502. },
  50503. _supportsDeclarationValue$2($name, start) {
  50504. var value, _this = this;
  50505. if ($name instanceof A.StringExpression && !$name.hasQuotes && B.JSString_methods.startsWith$1($name.text.get$initialPlain(), "--"))
  50506. value = new A.StringExpression(_this._interpolatedDeclarationValue$0(), false);
  50507. else {
  50508. _this.whitespace$0();
  50509. value = _this._expression$0();
  50510. }
  50511. return new A.SupportsDeclaration($name, value, _this.scanner.spanFrom$1(start));
  50512. },
  50513. _trySupportsOperation$2(interpolation, start) {
  50514. var expression, beforeWhitespace, t2, t3, operator, operation, right, t4, endPosition, t5, t6, lowerOperator, _this = this, _null = null,
  50515. t1 = interpolation.contents;
  50516. if (t1.length !== 1)
  50517. return _null;
  50518. expression = B.JSArray_methods.get$first(t1);
  50519. if (!type$.Expression._is(expression))
  50520. return _null;
  50521. t1 = _this.scanner;
  50522. beforeWhitespace = new A._SpanScannerState(t1, t1._string_scanner$_position);
  50523. _this.whitespace$0();
  50524. for (t2 = start.position, t3 = interpolation.span, operator = _null, operation = operator; _this.lookingAtIdentifier$0();) {
  50525. if (operator != null)
  50526. _this.expectIdentifier$1(operator);
  50527. else if (_this.scanIdentifier$1("and"))
  50528. operator = "and";
  50529. else {
  50530. if (!_this.scanIdentifier$1("or")) {
  50531. if (beforeWhitespace._scanner !== t1)
  50532. A.throwExpression(A.ArgumentError$(string$.The_gi, _null));
  50533. t2 = beforeWhitespace.position;
  50534. if ((t2 === 0 ? 1 / t2 < 0 : t2 < 0) || t2 > t1.string.length)
  50535. A.throwExpression(A.ArgumentError$("Invalid position " + t2, _null));
  50536. t1._string_scanner$_position = t2;
  50537. return t1._lastMatch = null;
  50538. }
  50539. operator = "or";
  50540. }
  50541. _this.whitespace$0();
  50542. right = _this._supportsConditionInParens$0();
  50543. t4 = operation == null ? new A.SupportsInterpolation(expression, t3) : operation;
  50544. endPosition = t1._string_scanner$_position;
  50545. t5 = t1._sourceFile;
  50546. t6 = new A._FileSpan(t5, t2, endPosition);
  50547. t6._FileSpan$3(t5, t2, endPosition);
  50548. operation = new A.SupportsOperation(t4, right, operator, t6);
  50549. lowerOperator = operator.toLowerCase();
  50550. if (lowerOperator !== "and" && lowerOperator !== "or")
  50551. A.throwExpression(A.ArgumentError$value(operator, "operator", 'may only be "and" or "or".'));
  50552. _this.whitespace$0();
  50553. }
  50554. return operation;
  50555. },
  50556. _lookingAtInterpolatedIdentifier$0() {
  50557. var second,
  50558. t1 = this.scanner,
  50559. first = t1.peekChar$0();
  50560. if (first == null)
  50561. return false;
  50562. if (first === 95 || A.isAlphabetic0(first) || first >= 128 || first === 92)
  50563. return true;
  50564. if (first === 35)
  50565. return t1.peekChar$1(1) === 123;
  50566. if (first !== 45)
  50567. return false;
  50568. second = t1.peekChar$1(1);
  50569. if (second == null)
  50570. return false;
  50571. if (second === 35)
  50572. return t1.peekChar$1(2) === 123;
  50573. return second === 95 || A.isAlphabetic0(second) || second >= 128 || second === 92 || second === 45;
  50574. },
  50575. _lookingAtInterpolatedIdentifierBody$0() {
  50576. var t1 = this.scanner,
  50577. first = t1.peekChar$0();
  50578. if (first == null)
  50579. return false;
  50580. if (first === 95 || A.isAlphabetic0(first) || first >= 128 || A.isDigit(first) || first === 45 || first === 92)
  50581. return true;
  50582. return first === 35 && t1.peekChar$1(1) === 123;
  50583. },
  50584. _lookingAtExpression$0() {
  50585. var next,
  50586. t1 = this.scanner,
  50587. character = t1.peekChar$0();
  50588. if (character == null)
  50589. return false;
  50590. if (character === 46)
  50591. return t1.peekChar$1(1) !== 46;
  50592. if (character === 33) {
  50593. next = t1.peekChar$1(1);
  50594. if (next != null)
  50595. if ((next | 32) >>> 0 !== 105)
  50596. t1 = next === 32 || next === 9 || next === 10 || next === 13 || next === 12;
  50597. else
  50598. t1 = true;
  50599. else
  50600. t1 = true;
  50601. return t1;
  50602. }
  50603. if (character !== 40)
  50604. if (character !== 47)
  50605. if (character !== 91)
  50606. if (character !== 39)
  50607. if (character !== 34)
  50608. if (character !== 35)
  50609. if (character !== 43)
  50610. if (character !== 45)
  50611. if (character !== 92)
  50612. if (character !== 36)
  50613. if (character !== 38)
  50614. t1 = character === 95 || A.isAlphabetic0(character) || character >= 128 || A.isDigit(character);
  50615. else
  50616. t1 = true;
  50617. else
  50618. t1 = true;
  50619. else
  50620. t1 = true;
  50621. else
  50622. t1 = true;
  50623. else
  50624. t1 = true;
  50625. else
  50626. t1 = true;
  50627. else
  50628. t1 = true;
  50629. else
  50630. t1 = true;
  50631. else
  50632. t1 = true;
  50633. else
  50634. t1 = true;
  50635. else
  50636. t1 = true;
  50637. return t1;
  50638. },
  50639. _withChildren$1$3(child, start, create) {
  50640. var result = create.call$2(this.children$1(0, child), this.scanner.spanFrom$1(start));
  50641. this.whitespaceWithoutComments$0();
  50642. return result;
  50643. },
  50644. _withChildren$3(child, start, create) {
  50645. return this._withChildren$1$3(child, start, create, type$.dynamic);
  50646. },
  50647. _urlString$0() {
  50648. var innerError, stackTrace, t2, exception,
  50649. t1 = this.scanner,
  50650. start = new A._SpanScannerState(t1, t1._string_scanner$_position),
  50651. url = this.string$0();
  50652. try {
  50653. t2 = A.Uri_parse(url);
  50654. return t2;
  50655. } catch (exception) {
  50656. t2 = A.unwrapException(exception);
  50657. if (type$.FormatException._is(t2)) {
  50658. innerError = t2;
  50659. stackTrace = A.getTraceFromException(exception);
  50660. this.error$3(0, "Invalid URL: " + J.get$message$x(innerError), t1.spanFrom$1(start), stackTrace);
  50661. } else
  50662. throw exception;
  50663. }
  50664. },
  50665. _publicIdentifier$0() {
  50666. var _this = this,
  50667. t1 = _this.scanner,
  50668. t2 = t1._string_scanner$_position,
  50669. result = _this.identifier$1$normalize(true);
  50670. _this._assertPublic$2(result, new A.StylesheetParser__publicIdentifier_closure(_this, new A._SpanScannerState(t1, t2)));
  50671. return result;
  50672. },
  50673. _assertPublic$2(identifier, span) {
  50674. var first = B.JSString_methods._codeUnitAt$1(identifier, 0);
  50675. if (!(first === 45 || first === 95))
  50676. return;
  50677. this.error$2(0, string$.Privat, span.call$0());
  50678. },
  50679. get$plainCss() {
  50680. return false;
  50681. }
  50682. };
  50683. A.StylesheetParser_parse_closure.prototype = {
  50684. call$0() {
  50685. var statements, t4,
  50686. t1 = this.$this,
  50687. t2 = t1.scanner,
  50688. t3 = t2._string_scanner$_position;
  50689. t2.scanChar$1(65279);
  50690. statements = t1.statements$1(new A.StylesheetParser_parse__closure(t1));
  50691. t2.expectDone$0();
  50692. t4 = t1._globalVariables;
  50693. t4 = t4.get$values(t4);
  50694. B.JSArray_methods.addAll$1(statements, A.MappedIterable_MappedIterable(t4, new A.StylesheetParser_parse__closure0(), A._instanceType(t4)._eval$1("Iterable.E"), type$.Statement));
  50695. return A.Stylesheet$internal(statements, t2.spanFrom$1(new A._SpanScannerState(t2, t3)), t1.get$plainCss());
  50696. },
  50697. $signature: 339
  50698. };
  50699. A.StylesheetParser_parse__closure.prototype = {
  50700. call$0() {
  50701. var t1 = this.$this;
  50702. if (t1.scanner.scan$1("@charset")) {
  50703. t1.whitespace$0();
  50704. t1.string$0();
  50705. return null;
  50706. }
  50707. return t1._statement$1$root(true);
  50708. },
  50709. $signature: 338
  50710. };
  50711. A.StylesheetParser_parse__closure0.prototype = {
  50712. call$1(declaration) {
  50713. var t1 = declaration.name,
  50714. t2 = declaration.expression;
  50715. return A.VariableDeclaration$(t1, new A.NullExpression(t2.get$span(t2)), declaration.span, null, false, true, null);
  50716. },
  50717. $signature: 337
  50718. };
  50719. A.StylesheetParser_parseArgumentDeclaration_closure.prototype = {
  50720. call$0() {
  50721. var $arguments,
  50722. t1 = this.$this,
  50723. t2 = t1.scanner;
  50724. t2.expectChar$2$name(64, "@-rule");
  50725. t1.identifier$0();
  50726. t1.whitespace$0();
  50727. t1.identifier$0();
  50728. $arguments = t1._argumentDeclaration$0();
  50729. t1.whitespace$0();
  50730. t2.expectChar$1(123);
  50731. return $arguments;
  50732. },
  50733. $signature: 336
  50734. };
  50735. A.StylesheetParser_parseVariableDeclaration_closure.prototype = {
  50736. call$0() {
  50737. var t1 = this.$this;
  50738. return t1.lookingAtIdentifier$0() ? t1._variableDeclarationWithNamespace$0() : t1.variableDeclarationWithoutNamespace$0();
  50739. },
  50740. $signature: 184
  50741. };
  50742. A.StylesheetParser_parseUseRule_closure.prototype = {
  50743. call$0() {
  50744. var t1 = this.$this,
  50745. t2 = t1.scanner,
  50746. t3 = t2._string_scanner$_position;
  50747. t2.expectChar$2$name(64, "@-rule");
  50748. t1.expectIdentifier$1("use");
  50749. t1.whitespace$0();
  50750. return t1._useRule$1(new A._SpanScannerState(t2, t3));
  50751. },
  50752. $signature: 335
  50753. };
  50754. A.StylesheetParser__parseSingleProduction_closure.prototype = {
  50755. call$0() {
  50756. var result = this.production.call$0();
  50757. this.$this.scanner.expectDone$0();
  50758. return result;
  50759. },
  50760. $signature() {
  50761. return this.T._eval$1("0()");
  50762. }
  50763. };
  50764. A.StylesheetParser__statement_closure.prototype = {
  50765. call$0() {
  50766. return this.$this._statement$0();
  50767. },
  50768. $signature: 121
  50769. };
  50770. A.StylesheetParser_variableDeclarationWithoutNamespace_closure.prototype = {
  50771. call$0() {
  50772. return this.$this.scanner.spanFrom$1(this.start);
  50773. },
  50774. $signature: 31
  50775. };
  50776. A.StylesheetParser_variableDeclarationWithoutNamespace_closure0.prototype = {
  50777. call$0() {
  50778. return this.declaration;
  50779. },
  50780. $signature: 184
  50781. };
  50782. A.StylesheetParser__declarationOrBuffer_closure.prototype = {
  50783. call$2(children, span) {
  50784. return A.Declaration$nested(this.name, children, span, null);
  50785. },
  50786. $signature: 90
  50787. };
  50788. A.StylesheetParser__declarationOrBuffer_closure0.prototype = {
  50789. call$2(children, span) {
  50790. return A.Declaration$nested(this.name, children, span, this._box_0.value);
  50791. },
  50792. $signature: 90
  50793. };
  50794. A.StylesheetParser__styleRule_closure.prototype = {
  50795. call$2(children, span) {
  50796. var _this = this,
  50797. t1 = _this.$this;
  50798. if (t1.get$indented() && children.length === 0)
  50799. t1.logger.warn$2$span(0, string$.This_s, _this._box_0.interpolation.span);
  50800. t1._inStyleRule = _this.wasInStyleRule;
  50801. return A.StyleRule$(_this._box_0.interpolation, children, t1.scanner.spanFrom$1(_this.start));
  50802. },
  50803. $signature: 332
  50804. };
  50805. A.StylesheetParser__propertyOrVariableDeclaration_closure.prototype = {
  50806. call$2(children, span) {
  50807. return A.Declaration$nested(this._box_0.name, children, span, null);
  50808. },
  50809. $signature: 90
  50810. };
  50811. A.StylesheetParser__propertyOrVariableDeclaration_closure0.prototype = {
  50812. call$2(children, span) {
  50813. return A.Declaration$nested(this._box_0.name, children, span, this.value);
  50814. },
  50815. $signature: 90
  50816. };
  50817. A.StylesheetParser__atRootRule_closure.prototype = {
  50818. call$2(children, span) {
  50819. return A.AtRootRule$(children, span, this.query);
  50820. },
  50821. $signature: 189
  50822. };
  50823. A.StylesheetParser__atRootRule_closure0.prototype = {
  50824. call$2(children, span) {
  50825. return A.AtRootRule$(children, span, null);
  50826. },
  50827. $signature: 189
  50828. };
  50829. A.StylesheetParser__eachRule_closure.prototype = {
  50830. call$2(children, span) {
  50831. var _this = this;
  50832. _this.$this._inControlDirective = _this.wasInControlDirective;
  50833. return A.EachRule$(_this.variables, _this.list, children, span);
  50834. },
  50835. $signature: 331
  50836. };
  50837. A.StylesheetParser__functionRule_closure.prototype = {
  50838. call$2(children, span) {
  50839. return A.FunctionRule$(this.name, this.$arguments, children, span, this.precedingComment);
  50840. },
  50841. $signature: 330
  50842. };
  50843. A.StylesheetParser__forRule_closure.prototype = {
  50844. call$0() {
  50845. var t1 = this.$this;
  50846. if (!t1.lookingAtIdentifier$0())
  50847. return false;
  50848. if (t1.scanIdentifier$1("to"))
  50849. return this._box_0.exclusive = true;
  50850. else if (t1.scanIdentifier$1("through")) {
  50851. this._box_0.exclusive = false;
  50852. return true;
  50853. } else
  50854. return false;
  50855. },
  50856. $signature: 26
  50857. };
  50858. A.StylesheetParser__forRule_closure0.prototype = {
  50859. call$2(children, span) {
  50860. var t1, _this = this;
  50861. _this.$this._inControlDirective = _this.wasInControlDirective;
  50862. t1 = _this._box_0.exclusive;
  50863. t1.toString;
  50864. return A.ForRule$(_this.variable, _this.from, _this.to, children, span, t1);
  50865. },
  50866. $signature: 329
  50867. };
  50868. A.StylesheetParser__memberList_closure.prototype = {
  50869. call$0() {
  50870. var t1 = this.$this;
  50871. if (t1.scanner.peekChar$0() === 36)
  50872. this.variables.add$1(0, t1.variableName$0());
  50873. else
  50874. this.identifiers.add$1(0, t1.identifier$1$normalize(true));
  50875. },
  50876. $signature: 1
  50877. };
  50878. A.StylesheetParser__includeRule_closure.prototype = {
  50879. call$2(children, span) {
  50880. return A.ContentBlock$(this.contentArguments_, children, span);
  50881. },
  50882. $signature: 325
  50883. };
  50884. A.StylesheetParser_mediaRule_closure.prototype = {
  50885. call$2(children, span) {
  50886. return A.MediaRule$(this.query, children, span);
  50887. },
  50888. $signature: 323
  50889. };
  50890. A.StylesheetParser__mixinRule_closure.prototype = {
  50891. call$2(children, span) {
  50892. var _this = this;
  50893. _this.$this._stylesheet$_inMixin = false;
  50894. return A.MixinRule$(_this.name, _this.$arguments, children, span, _this.precedingComment);
  50895. },
  50896. $signature: 322
  50897. };
  50898. A.StylesheetParser_mozDocumentRule_closure.prototype = {
  50899. call$2(children, span) {
  50900. var _this = this;
  50901. if (_this._box_0.needsDeprecationWarning)
  50902. _this.$this.logger.warn$3$deprecation$span(0, string$.x40_moz_, true, span);
  50903. return A.AtRule$(_this.name, span, children, _this.value);
  50904. },
  50905. $signature: 196
  50906. };
  50907. A.StylesheetParser_supportsRule_closure.prototype = {
  50908. call$2(children, span) {
  50909. return A.SupportsRule$(this.condition, children, span);
  50910. },
  50911. $signature: 593
  50912. };
  50913. A.StylesheetParser__whileRule_closure.prototype = {
  50914. call$2(children, span) {
  50915. this.$this._inControlDirective = this.wasInControlDirective;
  50916. return A.WhileRule$(this.condition, children, span);
  50917. },
  50918. $signature: 319
  50919. };
  50920. A.StylesheetParser_unknownAtRule_closure.prototype = {
  50921. call$2(children, span) {
  50922. return A.AtRule$(this.name, span, children, this._box_0.value);
  50923. },
  50924. $signature: 196
  50925. };
  50926. A.StylesheetParser__expression_resetState.prototype = {
  50927. call$0() {
  50928. var t2,
  50929. t1 = this._box_0;
  50930. t1.operands_ = t1.operators_ = t1.spaceExpressions_ = t1.commaExpressions_ = null;
  50931. t2 = this.$this;
  50932. t2.scanner.set$state(this.start);
  50933. t1.allowSlash = true;
  50934. t1.singleExpression_ = t2._singleExpression$0();
  50935. },
  50936. $signature: 0
  50937. };
  50938. A.StylesheetParser__expression_resolveOneOperation.prototype = {
  50939. call$0() {
  50940. var t2, t3, t4, t5, t6, t7, _this = this,
  50941. t1 = _this._box_0,
  50942. operator = t1.operators_.pop(),
  50943. left = t1.operands_.pop(),
  50944. right = t1.singleExpression_;
  50945. if (right == null) {
  50946. t2 = _this.$this.scanner;
  50947. t3 = operator.operator.length;
  50948. t2.error$3$length$position(0, "Expected expression.", t3, t2._string_scanner$_position - t3);
  50949. }
  50950. if (t1.allowSlash) {
  50951. t2 = _this.$this;
  50952. t2 = !t2._inParentheses && operator === B.BinaryOperator_qpm && t2._isSlashOperand$1(left) && t2._isSlashOperand$1(right);
  50953. } else
  50954. t2 = false;
  50955. if (t2)
  50956. t1.singleExpression_ = new A.BinaryOperationExpression(B.BinaryOperator_qpm, left, right, true);
  50957. else {
  50958. t1.singleExpression_ = new A.BinaryOperationExpression(operator, left, right, false);
  50959. t2 = t1.allowSlash = false;
  50960. if (operator === B.BinaryOperator_qbf || operator === B.BinaryOperator_KlB) {
  50961. t3 = _this.$this;
  50962. t4 = t3.scanner.string;
  50963. t5 = right.get$span(right);
  50964. t5 = t5.get$start(t5);
  50965. t6 = right.get$span(right);
  50966. t7 = operator.operator;
  50967. if (B.JSString_methods.substring$2(t4, t5.offset - 1, t6.get$start(t6).offset) === t7) {
  50968. t2 = left.get$span(left);
  50969. t2 = B.JSString_methods.codeUnitAt$1(t4, t2.get$end(t2).offset);
  50970. t2 = t2 === 32 || t2 === 9 || t2 === 10 || t2 === 13 || t2 === 12;
  50971. }
  50972. if (t2) {
  50973. t2 = left.toString$0(0);
  50974. t4 = right.toString$0(0);
  50975. t5 = left.toString$0(0);
  50976. t6 = right.toString$0(0);
  50977. t1 = t1.singleExpression_;
  50978. t3.logger.warn$3$deprecation$span(0, "This operation is parsed as:\n\n " + t2 + " " + t7 + " " + t4 + string$.x0a_but_ + t5 + " (" + t7 + t6 + ")\n\nAdd a space after " + t7 + string$.x20to_cl, true, t1.get$span(t1));
  50979. }
  50980. }
  50981. }
  50982. },
  50983. $signature: 0
  50984. };
  50985. A.StylesheetParser__expression_resolveOperations.prototype = {
  50986. call$0() {
  50987. var t1,
  50988. operators = this._box_0.operators_;
  50989. if (operators == null)
  50990. return;
  50991. for (t1 = this.resolveOneOperation; operators.length !== 0;)
  50992. t1.call$0();
  50993. },
  50994. $signature: 0
  50995. };
  50996. A.StylesheetParser__expression_addSingleExpression.prototype = {
  50997. call$1(expression) {
  50998. var t2, spaceExpressions, _this = this,
  50999. t1 = _this._box_0;
  51000. if (t1.singleExpression_ != null) {
  51001. t2 = _this.$this;
  51002. if (t2._inParentheses) {
  51003. t2._inParentheses = false;
  51004. if (t1.allowSlash) {
  51005. _this.resetState.call$0();
  51006. return;
  51007. }
  51008. }
  51009. spaceExpressions = t1.spaceExpressions_;
  51010. if (spaceExpressions == null)
  51011. spaceExpressions = t1.spaceExpressions_ = A._setArrayType([], type$.JSArray_Expression);
  51012. _this.resolveOperations.call$0();
  51013. t2 = t1.singleExpression_;
  51014. t2.toString;
  51015. spaceExpressions.push(t2);
  51016. t1.allowSlash = true;
  51017. }
  51018. t1.singleExpression_ = expression;
  51019. },
  51020. $signature: 318
  51021. };
  51022. A.StylesheetParser__expression_addOperator.prototype = {
  51023. call$1(operator) {
  51024. var t2, t3, operators, operands, t4, singleExpression,
  51025. t1 = this.$this;
  51026. if (t1.get$plainCss() && operator !== B.BinaryOperator_qpm && operator !== B.BinaryOperator_axY) {
  51027. t2 = t1.scanner;
  51028. t3 = operator.operator.length;
  51029. t2.error$3$length$position(0, "Operators aren't allowed in plain CSS.", t3, t2._string_scanner$_position - t3);
  51030. }
  51031. t2 = this._box_0;
  51032. t2.allowSlash = t2.allowSlash && operator === B.BinaryOperator_qpm;
  51033. operators = t2.operators_;
  51034. if (operators == null)
  51035. operators = t2.operators_ = A._setArrayType([], type$.JSArray_BinaryOperator);
  51036. operands = t2.operands_;
  51037. if (operands == null)
  51038. operands = t2.operands_ = A._setArrayType([], type$.JSArray_Expression);
  51039. t3 = this.resolveOneOperation;
  51040. t4 = operator.precedence;
  51041. while (true) {
  51042. if (!(operators.length !== 0 && B.JSArray_methods.get$last(operators).precedence >= t4))
  51043. break;
  51044. t3.call$0();
  51045. }
  51046. operators.push(operator);
  51047. singleExpression = t2.singleExpression_;
  51048. if (singleExpression == null) {
  51049. t3 = t1.scanner;
  51050. t4 = operator.operator.length;
  51051. t3.error$3$length$position(0, "Expected expression.", t4, t3._string_scanner$_position - t4);
  51052. }
  51053. operands.push(singleExpression);
  51054. t1.whitespace$0();
  51055. t2.singleExpression_ = t1._singleExpression$0();
  51056. },
  51057. $signature: 316
  51058. };
  51059. A.StylesheetParser__expression_resolveSpaceExpressions.prototype = {
  51060. call$0() {
  51061. var t1, spaceExpressions, singleExpression, t2;
  51062. this.resolveOperations.call$0();
  51063. t1 = this._box_0;
  51064. spaceExpressions = t1.spaceExpressions_;
  51065. if (spaceExpressions != null) {
  51066. singleExpression = t1.singleExpression_;
  51067. if (singleExpression == null)
  51068. this.$this.scanner.error$1(0, "Expected expression.");
  51069. spaceExpressions.push(singleExpression);
  51070. t2 = B.JSArray_methods.get$first(spaceExpressions);
  51071. t2 = t2.get$span(t2).expand$1(0, singleExpression.get$span(singleExpression));
  51072. t1.singleExpression_ = new A.ListExpression(A.List_List$unmodifiable(spaceExpressions, type$.Expression), B.ListSeparator_EVt, false, t2);
  51073. t1.spaceExpressions_ = null;
  51074. }
  51075. },
  51076. $signature: 0
  51077. };
  51078. A.StylesheetParser_expressionUntilComma_closure.prototype = {
  51079. call$0() {
  51080. return this.$this.scanner.peekChar$0() === 44;
  51081. },
  51082. $signature: 26
  51083. };
  51084. A.StylesheetParser__unicodeRange_closure.prototype = {
  51085. call$1(char) {
  51086. return char != null && A.isHex(char);
  51087. },
  51088. $signature: 32
  51089. };
  51090. A.StylesheetParser__unicodeRange_closure0.prototype = {
  51091. call$1(char) {
  51092. return char != null && A.isHex(char);
  51093. },
  51094. $signature: 32
  51095. };
  51096. A.StylesheetParser_namespacedExpression_closure.prototype = {
  51097. call$0() {
  51098. return this.$this.scanner.spanFrom$1(this.start);
  51099. },
  51100. $signature: 31
  51101. };
  51102. A.StylesheetParser_trySpecialFunction_closure.prototype = {
  51103. call$1(contents) {
  51104. return new A.StringExpression(contents, false);
  51105. },
  51106. $signature: 314
  51107. };
  51108. A.StylesheetParser__expressionUntilComparison_closure.prototype = {
  51109. call$0() {
  51110. var t1 = this.$this.scanner,
  51111. next = t1.peekChar$0();
  51112. if (next === 61)
  51113. return t1.peekChar$1(1) !== 61;
  51114. return next === 60 || next === 62;
  51115. },
  51116. $signature: 26
  51117. };
  51118. A.StylesheetParser__publicIdentifier_closure.prototype = {
  51119. call$0() {
  51120. return this.$this.scanner.spanFrom$1(this.start);
  51121. },
  51122. $signature: 31
  51123. };
  51124. A.StylesheetGraph.prototype = {
  51125. modifiedSince$3(url, since, baseImporter) {
  51126. var node = this._stylesheet_graph$_add$3(url, baseImporter, null);
  51127. if (node == null)
  51128. return true;
  51129. return new A.StylesheetGraph_modifiedSince_transitiveModificationTime(this).call$1(node)._core$_value > since._core$_value;
  51130. },
  51131. _stylesheet_graph$_add$3(url, baseImporter, baseUrl) {
  51132. var t1, t2, _this = this,
  51133. tuple = _this._ignoreErrors$1(new A.StylesheetGraph__add_closure(_this, url, baseImporter, baseUrl));
  51134. if (tuple == null)
  51135. return null;
  51136. t1 = tuple.item1;
  51137. t2 = tuple.item2;
  51138. _this.addCanonical$3(t1, t2, tuple.item3);
  51139. return _this._nodes.$index(0, t2);
  51140. },
  51141. addCanonical$4$recanonicalize(importer, canonicalUrl, originalUrl, recanonicalize) {
  51142. var stylesheet, _this = this,
  51143. t1 = _this._nodes;
  51144. if (t1.$index(0, canonicalUrl) != null)
  51145. return B.Set_empty2;
  51146. stylesheet = _this._ignoreErrors$1(new A.StylesheetGraph_addCanonical_closure(_this, importer, canonicalUrl, originalUrl));
  51147. if (stylesheet == null)
  51148. return B.Set_empty2;
  51149. t1.$indexSet(0, canonicalUrl, A.StylesheetNode$_(stylesheet, importer, canonicalUrl, _this._upstreamNodes$3(stylesheet, importer, canonicalUrl)));
  51150. return recanonicalize ? _this._recanonicalizeImports$2(importer, canonicalUrl) : B.Set_empty2;
  51151. },
  51152. addCanonical$3(importer, canonicalUrl, originalUrl) {
  51153. return this.addCanonical$4$recanonicalize(importer, canonicalUrl, originalUrl, true);
  51154. },
  51155. _upstreamNodes$3(stylesheet, baseImporter, baseUrl) {
  51156. var t4, t5, t6, t7,
  51157. t1 = type$.Uri,
  51158. active = A.LinkedHashSet_LinkedHashSet$_literal([baseUrl], t1),
  51159. t2 = type$.JSArray_Uri,
  51160. t3 = A._setArrayType([], t2);
  51161. t2 = A._setArrayType([], t2);
  51162. new A._FindDependenciesVisitor(t3, t2).visitChildren$1(stylesheet.children);
  51163. t4 = type$.nullable_StylesheetNode;
  51164. t5 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t4);
  51165. for (t6 = B.JSArray_methods.get$iterator(t3); t6.moveNext$0();) {
  51166. t7 = t6.get$current(t6);
  51167. t5.$indexSet(0, t7, this._nodeFor$4(t7, baseImporter, baseUrl, active));
  51168. }
  51169. t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t4);
  51170. for (t2 = J.get$iterator$ax(new A.Tuple2(t3, t2, type$.Tuple2_of_List_Uri_and_List_Uri).item2); t2.moveNext$0();) {
  51171. t3 = t2.get$current(t2);
  51172. t1.$indexSet(0, t3, this._nodeFor$5$forImport(t3, baseImporter, baseUrl, active, true));
  51173. }
  51174. return new A.Tuple2(t5, t1, type$.Tuple2_of_Map_of_Uri_and_nullable_StylesheetNode_and_Map_of_Uri_and_nullable_StylesheetNode);
  51175. },
  51176. reload$1(canonicalUrl) {
  51177. var stylesheet, upstream, _this = this,
  51178. node = _this._nodes.$index(0, canonicalUrl);
  51179. if (node == null)
  51180. throw A.wrapException(A.StateError$(canonicalUrl.toString$0(0) + " is not in the dependency graph."));
  51181. _this._transitiveModificationTimes.clear$0(0);
  51182. _this.importCache.clearImport$1(canonicalUrl);
  51183. stylesheet = _this._ignoreErrors$1(new A.StylesheetGraph_reload_closure(_this, node, canonicalUrl));
  51184. if (stylesheet == null)
  51185. return false;
  51186. node._stylesheet = stylesheet;
  51187. upstream = _this._upstreamNodes$3(stylesheet, node.importer, canonicalUrl);
  51188. node._replaceUpstream$2(upstream.item1, upstream.item2);
  51189. return true;
  51190. },
  51191. _recanonicalizeImports$2(importer, canonicalUrl) {
  51192. var t1, t2, t3, t4, t5, newUpstream, newUpstreamImports, _this = this,
  51193. changed = A.LinkedHashSet_LinkedHashSet$_empty(type$.StylesheetNode);
  51194. for (t1 = _this._nodes, t1 = t1.get$values(t1), t1 = t1.get$iterator(t1), t2 = type$.UnmodifiableMapView_of_Uri_and_nullable_StylesheetNode, t3 = type$.Uri, t4 = type$.nullable_StylesheetNode; t1.moveNext$0();) {
  51195. t5 = t1.get$current(t1);
  51196. newUpstream = _this._recanonicalizeImportsForNode$4$forImport(t5, importer, canonicalUrl, false);
  51197. newUpstreamImports = _this._recanonicalizeImportsForNode$4$forImport(t5, importer, canonicalUrl, true);
  51198. if (newUpstream.__js_helper$_length !== 0 || newUpstreamImports.__js_helper$_length !== 0) {
  51199. changed.add$1(0, t5);
  51200. t5._replaceUpstream$2(A.mergeMaps(new A.UnmodifiableMapView(t5._upstream, t2), newUpstream, t3, t4), A.mergeMaps(new A.UnmodifiableMapView(t5._upstreamImports, t2), newUpstreamImports, t3, t4));
  51201. }
  51202. }
  51203. if (changed._collection$_length !== 0)
  51204. _this._transitiveModificationTimes.clear$0(0);
  51205. return changed;
  51206. },
  51207. _recanonicalizeImportsForNode$4$forImport(node, importer, canonicalUrl, forImport) {
  51208. var t1 = type$.UnmodifiableMapView_of_Uri_and_nullable_StylesheetNode,
  51209. map = forImport ? new A.UnmodifiableMapView(node._upstreamImports, t1) : new A.UnmodifiableMapView(node._upstream, t1),
  51210. newMap = A.LinkedHashMap_LinkedHashMap$_empty(type$.Uri, type$.nullable_StylesheetNode);
  51211. map._map.forEach$1(0, new A.StylesheetGraph__recanonicalizeImportsForNode_closure(this, importer, canonicalUrl, node, forImport, newMap));
  51212. return newMap;
  51213. },
  51214. _nodeFor$5$forImport(url, baseImporter, baseUrl, active, forImport) {
  51215. var importer, canonicalUrl, resolvedUrl, t1, stylesheet, node, _this = this,
  51216. tuple = _this._ignoreErrors$1(new A.StylesheetGraph__nodeFor_closure(_this, url, baseImporter, baseUrl, forImport));
  51217. if (tuple == null)
  51218. return null;
  51219. importer = tuple.item1;
  51220. canonicalUrl = tuple.item2;
  51221. resolvedUrl = tuple.item3;
  51222. t1 = _this._nodes;
  51223. if (t1.containsKey$1(canonicalUrl))
  51224. return t1.$index(0, canonicalUrl);
  51225. if (active.contains$1(0, canonicalUrl))
  51226. return null;
  51227. stylesheet = _this._ignoreErrors$1(new A.StylesheetGraph__nodeFor_closure0(_this, importer, canonicalUrl, resolvedUrl));
  51228. if (stylesheet == null)
  51229. return null;
  51230. active.add$1(0, canonicalUrl);
  51231. node = A.StylesheetNode$_(stylesheet, importer, canonicalUrl, _this._upstreamNodes$3(stylesheet, importer, canonicalUrl));
  51232. active.remove$1(0, canonicalUrl);
  51233. t1.$indexSet(0, canonicalUrl, node);
  51234. return node;
  51235. },
  51236. _nodeFor$4(url, baseImporter, baseUrl, active) {
  51237. return this._nodeFor$5$forImport(url, baseImporter, baseUrl, active, false);
  51238. },
  51239. _ignoreErrors$1$1(callback) {
  51240. var t1, exception;
  51241. try {
  51242. t1 = callback.call$0();
  51243. return t1;
  51244. } catch (exception) {
  51245. return null;
  51246. }
  51247. },
  51248. _ignoreErrors$1(callback) {
  51249. return this._ignoreErrors$1$1(callback, type$.dynamic);
  51250. }
  51251. };
  51252. A.StylesheetGraph_modifiedSince_transitiveModificationTime.prototype = {
  51253. call$1(node) {
  51254. return this.$this._transitiveModificationTimes.putIfAbsent$2(node.canonicalUrl, new A.StylesheetGraph_modifiedSince_transitiveModificationTime_closure(node, this));
  51255. },
  51256. $signature: 311
  51257. };
  51258. A.StylesheetGraph_modifiedSince_transitiveModificationTime_closure.prototype = {
  51259. call$0() {
  51260. var t2, t3, upstreamTime,
  51261. t1 = this.node,
  51262. latest = t1.importer.modificationTime$1(t1.canonicalUrl);
  51263. for (t2 = t1._upstream, t2 = t2.get$values(t2), t1 = t1._upstreamImports, t1 = t2.followedBy$1(0, t1.get$values(t1)), t1 = new A.FollowedByIterator(J.get$iterator$ax(t1.__internal$_first), t1._second), t2 = this.transitiveModificationTime; t1.moveNext$0();) {
  51264. t3 = t1._currentIterator;
  51265. t3 = t3.get$current(t3);
  51266. upstreamTime = t3 == null ? new A.DateTime(Date.now(), false) : t2.call$1(t3);
  51267. if (upstreamTime._core$_value > latest._core$_value)
  51268. latest = upstreamTime;
  51269. }
  51270. return latest;
  51271. },
  51272. $signature: 167
  51273. };
  51274. A.StylesheetGraph__add_closure.prototype = {
  51275. call$0() {
  51276. var _this = this;
  51277. return _this.$this.importCache.canonicalize$3$baseImporter$baseUrl(0, _this.url, _this.baseImporter, _this.baseUrl);
  51278. },
  51279. $signature: 84
  51280. };
  51281. A.StylesheetGraph_addCanonical_closure.prototype = {
  51282. call$0() {
  51283. var _this = this;
  51284. return _this.$this.importCache.importCanonical$3$originalUrl(_this.importer, _this.canonicalUrl, _this.originalUrl);
  51285. },
  51286. $signature: 85
  51287. };
  51288. A.StylesheetGraph_reload_closure.prototype = {
  51289. call$0() {
  51290. return this.$this.importCache.importCanonical$2(this.node.importer, this.canonicalUrl);
  51291. },
  51292. $signature: 85
  51293. };
  51294. A.StylesheetGraph__recanonicalizeImportsForNode_closure.prototype = {
  51295. call$2(url, upstream) {
  51296. var result, t1, t2, t3, exception, newCanonicalUrl, _this = this;
  51297. if (!_this.importer.couldCanonicalize$2(url, _this.canonicalUrl))
  51298. return;
  51299. t1 = _this.$this;
  51300. t2 = t1.importCache;
  51301. t2.clearCanonicalize$1(url);
  51302. result = null;
  51303. try {
  51304. t3 = _this.node;
  51305. result = t2.canonicalize$4$baseImporter$baseUrl$forImport(0, url, t3.importer, t3.canonicalUrl, _this.forImport);
  51306. } catch (exception) {
  51307. }
  51308. t2 = result;
  51309. newCanonicalUrl = t2 == null ? null : t2.item2;
  51310. if (J.$eq$(newCanonicalUrl, upstream == null ? null : upstream.canonicalUrl))
  51311. return;
  51312. t1 = result == null ? null : t1._nodes.$index(0, result.item2);
  51313. _this.newMap.$indexSet(0, url, t1);
  51314. },
  51315. $signature: 310
  51316. };
  51317. A.StylesheetGraph__nodeFor_closure.prototype = {
  51318. call$0() {
  51319. var _this = this;
  51320. return _this.$this.importCache.canonicalize$4$baseImporter$baseUrl$forImport(0, _this.url, _this.baseImporter, _this.baseUrl, _this.forImport);
  51321. },
  51322. $signature: 84
  51323. };
  51324. A.StylesheetGraph__nodeFor_closure0.prototype = {
  51325. call$0() {
  51326. var _this = this;
  51327. return _this.$this.importCache.importCanonical$3$originalUrl(_this.importer, _this.canonicalUrl, _this.resolvedUrl);
  51328. },
  51329. $signature: 85
  51330. };
  51331. A.StylesheetNode.prototype = {
  51332. StylesheetNode$_$4(_stylesheet, importer, canonicalUrl, allUpstream) {
  51333. var t1, t2;
  51334. for (t1 = this._upstream, t1 = t1.get$values(t1), t2 = this._upstreamImports, t2 = t1.followedBy$1(0, t2.get$values(t2)), t2 = new A.FollowedByIterator(J.get$iterator$ax(t2.__internal$_first), t2._second); t2.moveNext$0();) {
  51335. t1 = t2._currentIterator;
  51336. t1 = t1.get$current(t1);
  51337. if (t1 != null)
  51338. t1._downstream.add$1(0, this);
  51339. }
  51340. },
  51341. _replaceUpstream$2(newUpstream, newUpstreamImports) {
  51342. var t3, oldUpstream, newUpstreamSet, _this = this,
  51343. t1 = _this._upstream,
  51344. t2 = type$.nullable_StylesheetNode;
  51345. t1 = A.LinkedHashSet_LinkedHashSet$of(t1.get$values(t1), t2);
  51346. t3 = _this._upstreamImports;
  51347. t1.addAll$1(0, t3.get$values(t3));
  51348. t3 = type$.StylesheetNode;
  51349. oldUpstream = A.SetExtension_removeNull(t1, t3);
  51350. t2 = A.LinkedHashSet_LinkedHashSet$of(newUpstream.get$values(newUpstream), t2);
  51351. t2.addAll$1(0, newUpstreamImports.get$values(newUpstreamImports));
  51352. newUpstreamSet = A.SetExtension_removeNull(t2, t3);
  51353. for (t1 = oldUpstream.difference$1(newUpstreamSet), t1 = t1.get$iterator(t1); t1.moveNext$0();)
  51354. t1.get$current(t1)._downstream.remove$1(0, _this);
  51355. for (t1 = newUpstreamSet.difference$1(oldUpstream), t1 = t1.get$iterator(t1); t1.moveNext$0();)
  51356. t1.get$current(t1)._downstream.add$1(0, _this);
  51357. _this._upstream = newUpstream;
  51358. _this._upstreamImports = newUpstreamImports;
  51359. },
  51360. _stylesheet_graph$_remove$0() {
  51361. var t1, t2, t3, t4, _i, url, _this = this;
  51362. for (t1 = _this._upstream, t1 = A.LinkedHashSet_LinkedHashSet$of(t1.get$values(t1), type$.nullable_StylesheetNode), t2 = _this._upstreamImports, t1.addAll$1(0, t2.get$values(t2)), t1 = A._LinkedHashSetIterator$(t1, t1._collection$_modifications), t2 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) {
  51363. t3 = t1._collection$_current;
  51364. if (t3 == null)
  51365. t3 = t2._as(t3);
  51366. if (t3 == null)
  51367. continue;
  51368. t3._downstream.remove$1(0, _this);
  51369. }
  51370. for (t1 = _this._downstream, t1 = t1.get$iterator(t1); t1.moveNext$0();) {
  51371. t2 = t1.get$current(t1);
  51372. for (t3 = t2._upstream, t3 = J.toList$0$ax(t3.get$keys(t3)), t4 = t3.length, _i = 0; _i < t3.length; t3.length === t4 || (0, A.throwConcurrentModificationError)(t3), ++_i) {
  51373. url = t3[_i];
  51374. if (J.$eq$(t2._upstream.$index(0, url), _this)) {
  51375. t2._upstream.$indexSet(0, url, null);
  51376. break;
  51377. }
  51378. }
  51379. for (t3 = t2._upstreamImports, t3 = J.toList$0$ax(t3.get$keys(t3)), t4 = t3.length, _i = 0; _i < t3.length; t3.length === t4 || (0, A.throwConcurrentModificationError)(t3), ++_i) {
  51380. url = t3[_i];
  51381. if (J.$eq$(t2._upstreamImports.$index(0, url), _this)) {
  51382. t2._upstreamImports.$indexSet(0, url, null);
  51383. break;
  51384. }
  51385. }
  51386. }
  51387. },
  51388. toString$0(_) {
  51389. var t1 = this._stylesheet.span;
  51390. t1 = A.NullableExtension_andThen(t1.get$sourceUrl(t1), A.path__prettyUri$closure());
  51391. return t1 == null ? "<unknown>" : t1;
  51392. }
  51393. };
  51394. A.Syntax.prototype = {
  51395. toString$0(_) {
  51396. return this._syntax$_name;
  51397. }
  51398. };
  51399. A.LimitedMapView.prototype = {
  51400. get$keys(_) {
  51401. return this._limited_map_view$_keys;
  51402. },
  51403. get$length(_) {
  51404. return this._limited_map_view$_keys._collection$_length;
  51405. },
  51406. get$isEmpty(_) {
  51407. return this._limited_map_view$_keys._collection$_length === 0;
  51408. },
  51409. get$isNotEmpty(_) {
  51410. return this._limited_map_view$_keys._collection$_length !== 0;
  51411. },
  51412. $index(_, key) {
  51413. return this._limited_map_view$_keys.contains$1(0, key) ? this._limited_map_view$_map.$index(0, key) : null;
  51414. },
  51415. containsKey$1(key) {
  51416. return this._limited_map_view$_keys.contains$1(0, key);
  51417. },
  51418. remove$1(_, key) {
  51419. return this._limited_map_view$_keys.contains$1(0, key) ? this._limited_map_view$_map.remove$1(0, key) : null;
  51420. }
  51421. };
  51422. A.MergedMapView.prototype = {
  51423. get$keys(_) {
  51424. var t1 = this._mapsByKey;
  51425. return new A.LinkedHashMapKeyIterable(t1, A._instanceType(t1)._eval$1("LinkedHashMapKeyIterable<1>"));
  51426. },
  51427. get$length(_) {
  51428. return this._mapsByKey.__js_helper$_length;
  51429. },
  51430. get$isEmpty(_) {
  51431. return this._mapsByKey.__js_helper$_length === 0;
  51432. },
  51433. get$isNotEmpty(_) {
  51434. return this._mapsByKey.__js_helper$_length !== 0;
  51435. },
  51436. MergedMapView$1(maps, $K, $V) {
  51437. var t1, t2, t3, _i, map, t4, t5, t6;
  51438. for (t1 = maps.length, t2 = this._mapsByKey, t3 = $K._eval$1("@<0>")._bind$1($V)._eval$1("MergedMapView<1,2>"), _i = 0; _i < maps.length; maps.length === t1 || (0, A.throwConcurrentModificationError)(maps), ++_i) {
  51439. map = maps[_i];
  51440. if (t3._is(map))
  51441. for (t4 = map._mapsByKey, t4 = t4.get$values(t4), t4 = new A.MappedIterator(J.get$iterator$ax(t4.__internal$_iterable), t4._f), t5 = A._instanceType(t4)._rest[1]; t4.moveNext$0();) {
  51442. t6 = t4.__internal$_current;
  51443. if (t6 == null)
  51444. t6 = t5._as(t6);
  51445. A.setAll(t2, t6.get$keys(t6), t6);
  51446. }
  51447. else
  51448. A.setAll(t2, map.get$keys(map), map);
  51449. }
  51450. },
  51451. $index(_, key) {
  51452. var t1 = this._mapsByKey.$index(0, this.$ti._precomputed1._as(key));
  51453. return t1 == null ? null : t1.$index(0, key);
  51454. },
  51455. $indexSet(_, key, value) {
  51456. var child = this._mapsByKey.$index(0, key);
  51457. if (child == null)
  51458. throw A.wrapException(A.UnsupportedError$(string$.New_en));
  51459. child.$indexSet(0, key, value);
  51460. },
  51461. remove$1(_, key) {
  51462. throw A.wrapException(A.UnsupportedError$(string$.Entrie));
  51463. },
  51464. containsKey$1(key) {
  51465. return this._mapsByKey.containsKey$1(key);
  51466. }
  51467. };
  51468. A.MultiDirWatcher.prototype = {
  51469. watch$1(_, directory) {
  51470. var t1, t2, t3, t4, isParentOfExistingDir, _i, entry, t5, existingWatcher, t6, future, completer;
  51471. for (t1 = this._watchers._map, t2 = t1.get$entries(t1).toList$0(0), t3 = t2.length, t4 = this._group, isParentOfExistingDir = false, _i = 0; _i < t2.length; t2.length === t3 || (0, A.throwConcurrentModificationError)(t2), ++_i) {
  51472. entry = t2[_i];
  51473. t5 = entry.key;
  51474. t5.toString;
  51475. existingWatcher = entry.value;
  51476. if (!isParentOfExistingDir) {
  51477. t6 = $.$get$context();
  51478. t6 = t6._isWithinOrEquals$2(t5, directory) === B._PathRelation_equal || t6._isWithinOrEquals$2(t5, directory) === B._PathRelation_within;
  51479. } else
  51480. t6 = false;
  51481. if (t6) {
  51482. t1 = new A._Future($.Zone__current, type$._Future_void);
  51483. t1._asyncComplete$1(null);
  51484. return t1;
  51485. }
  51486. if ($.$get$context()._isWithinOrEquals$2(directory, t5) === B._PathRelation_within) {
  51487. t1.remove$1(0, t5);
  51488. t4.remove$1(0, existingWatcher);
  51489. isParentOfExistingDir = true;
  51490. }
  51491. }
  51492. future = A.watchDir(directory, this._poll);
  51493. t2 = new A._CompleterStream(type$._CompleterStream_WatchEvent);
  51494. completer = new A.StreamCompleter(t2, type$.StreamCompleter_WatchEvent);
  51495. future.then$1$2$onError(0, completer.get$setSourceStream(), completer.get$setError(), type$.void);
  51496. t1.$indexSet(0, directory, t2);
  51497. t4.add$1(0, t2);
  51498. return future;
  51499. }
  51500. };
  51501. A.MultiSpan.prototype = {
  51502. get$start(_) {
  51503. var t1 = this._multi_span$_primary;
  51504. return t1.get$start(t1);
  51505. },
  51506. get$end(_) {
  51507. var t1 = this._multi_span$_primary;
  51508. return t1.get$end(t1);
  51509. },
  51510. get$text() {
  51511. return this._multi_span$_primary.get$text();
  51512. },
  51513. get$context(_) {
  51514. var t1 = this._multi_span$_primary;
  51515. return t1.get$context(t1);
  51516. },
  51517. get$file(_) {
  51518. var t1 = this._multi_span$_primary;
  51519. return t1.get$file(t1);
  51520. },
  51521. get$length(_) {
  51522. var t1 = this._multi_span$_primary;
  51523. return t1.get$length(t1);
  51524. },
  51525. get$sourceUrl(_) {
  51526. var t1 = this._multi_span$_primary;
  51527. return t1.get$sourceUrl(t1);
  51528. },
  51529. compareTo$1(_, other) {
  51530. return this._multi_span$_primary.compareTo$1(0, other);
  51531. },
  51532. toString$0(_) {
  51533. return this._multi_span$_primary.toString$0(0);
  51534. },
  51535. expand$1(_, other) {
  51536. return new A.MultiSpan(this._multi_span$_primary.expand$1(0, other), this.primaryLabel, this.secondarySpans);
  51537. },
  51538. highlight$1$color(color) {
  51539. var t1 = color === true || false;
  51540. return A.Highlighter$multiple(this._multi_span$_primary, this.primaryLabel, this.secondarySpans, t1, null, null).highlight$0();
  51541. },
  51542. message$2$color(_, message, color) {
  51543. var t1 = J.$eq$(color, true) || typeof color == "string",
  51544. t2 = typeof color == "string" ? color : null;
  51545. return A.SourceSpanExtension_messageMultiple(this._multi_span$_primary, message, this.primaryLabel, this.secondarySpans, t1, t2);
  51546. },
  51547. message$1($receiver, message) {
  51548. return this.message$2$color($receiver, message, null);
  51549. },
  51550. $isComparable: 1,
  51551. $isFileSpan: 1,
  51552. $isSourceSpan: 1,
  51553. $isSourceSpanWithContext: 1
  51554. };
  51555. A.NoSourceMapBuffer.prototype = {
  51556. get$length(_) {
  51557. return this._no_source_map_buffer$_buffer._contents.length;
  51558. },
  51559. forSpan$1$2(span, callback) {
  51560. return callback.call$0();
  51561. },
  51562. forSpan$2(span, callback) {
  51563. return this.forSpan$1$2(span, callback, type$.dynamic);
  51564. },
  51565. write$1(_, object) {
  51566. this._no_source_map_buffer$_buffer._contents += A.S(object);
  51567. return null;
  51568. },
  51569. writeCharCode$1(charCode) {
  51570. this._no_source_map_buffer$_buffer._contents += A.Primitives_stringFromCharCode(charCode);
  51571. return null;
  51572. },
  51573. toString$0(_) {
  51574. var t1 = this._no_source_map_buffer$_buffer._contents;
  51575. return t1.charCodeAt(0) == 0 ? t1 : t1;
  51576. },
  51577. buildSourceMap$1$prefix(prefix) {
  51578. return A.throwExpression(A.UnsupportedError$(string$.NoSour));
  51579. }
  51580. };
  51581. A.PrefixedMapView.prototype = {
  51582. get$keys(_) {
  51583. return new A._PrefixedKeys(this);
  51584. },
  51585. get$length(_) {
  51586. var t1 = this._prefixed_map_view$_map;
  51587. return t1.get$length(t1);
  51588. },
  51589. get$isEmpty(_) {
  51590. var t1 = this._prefixed_map_view$_map;
  51591. return t1.get$isEmpty(t1);
  51592. },
  51593. get$isNotEmpty(_) {
  51594. var t1 = this._prefixed_map_view$_map;
  51595. return t1.get$isNotEmpty(t1);
  51596. },
  51597. $index(_, key) {
  51598. return typeof key == "string" && B.JSString_methods.startsWith$1(key, this._prefix) ? this._prefixed_map_view$_map.$index(0, J.substring$1$s(key, this._prefix.length)) : null;
  51599. },
  51600. containsKey$1(key) {
  51601. return typeof key == "string" && B.JSString_methods.startsWith$1(key, this._prefix) && this._prefixed_map_view$_map.containsKey$1(J.substring$1$s(key, this._prefix.length));
  51602. }
  51603. };
  51604. A._PrefixedKeys.prototype = {
  51605. get$length(_) {
  51606. var t1 = this._view._prefixed_map_view$_map;
  51607. return t1.get$length(t1);
  51608. },
  51609. get$iterator(_) {
  51610. var t1 = this._view._prefixed_map_view$_map;
  51611. t1 = J.map$1$1$ax(t1.get$keys(t1), new A._PrefixedKeys_iterator_closure(this), type$.String);
  51612. return t1.get$iterator(t1);
  51613. },
  51614. contains$1(_, key) {
  51615. return this._view.containsKey$1(key);
  51616. }
  51617. };
  51618. A._PrefixedKeys_iterator_closure.prototype = {
  51619. call$1(key) {
  51620. return this.$this._view._prefix + key;
  51621. },
  51622. $signature: 5
  51623. };
  51624. A.PublicMemberMapView.prototype = {
  51625. get$keys(_) {
  51626. var t1 = this._public_member_map_view$_inner;
  51627. return J.where$1$ax(t1.get$keys(t1), A.utils__isPublic$closure());
  51628. },
  51629. containsKey$1(key) {
  51630. return typeof key == "string" && A.isPublic(key) && this._public_member_map_view$_inner.containsKey$1(key);
  51631. },
  51632. $index(_, key) {
  51633. if (typeof key == "string" && A.isPublic(key))
  51634. return this._public_member_map_view$_inner.$index(0, key);
  51635. return null;
  51636. }
  51637. };
  51638. A.SourceMapBuffer.prototype = {
  51639. get$_targetLocation() {
  51640. var t1 = this._source_map_buffer$_buffer._contents,
  51641. t2 = this._line;
  51642. return A.SourceLocation$(t1.length, this._column, t2, null);
  51643. },
  51644. get$length(_) {
  51645. return this._source_map_buffer$_buffer._contents.length;
  51646. },
  51647. forSpan$1$2(span, callback) {
  51648. var t1, _this = this,
  51649. wasInSpan = _this._inSpan;
  51650. _this._inSpan = true;
  51651. _this._addEntry$2(span.get$start(span), _this.get$_targetLocation());
  51652. try {
  51653. t1 = callback.call$0();
  51654. return t1;
  51655. } finally {
  51656. _this._inSpan = wasInSpan;
  51657. }
  51658. },
  51659. forSpan$2(span, callback) {
  51660. return this.forSpan$1$2(span, callback, type$.dynamic);
  51661. },
  51662. _addEntry$2(source, target) {
  51663. var entry, t2,
  51664. t1 = this._entries;
  51665. if (t1.length !== 0) {
  51666. entry = B.JSArray_methods.get$last(t1);
  51667. t2 = entry.source;
  51668. if (t2.file.getLine$1(t2.offset) === source.file.getLine$1(source.offset) && entry.target.line === target.line)
  51669. return;
  51670. if (entry.target.offset === target.offset)
  51671. return;
  51672. }
  51673. t1.push(new A.Entry(source, target, null));
  51674. },
  51675. write$1(_, object) {
  51676. var t1, i,
  51677. string = J.toString$0$(object);
  51678. this._source_map_buffer$_buffer._contents += string;
  51679. for (t1 = string.length, i = 0; i < t1; ++i)
  51680. if (B.JSString_methods._codeUnitAt$1(string, i) === 10)
  51681. this._source_map_buffer$_writeLine$0();
  51682. else
  51683. ++this._column;
  51684. },
  51685. writeCharCode$1(charCode) {
  51686. this._source_map_buffer$_buffer._contents += A.Primitives_stringFromCharCode(charCode);
  51687. if (charCode === 10)
  51688. this._source_map_buffer$_writeLine$0();
  51689. else
  51690. ++this._column;
  51691. },
  51692. _source_map_buffer$_writeLine$0() {
  51693. var _this = this,
  51694. t1 = _this._entries;
  51695. if (B.JSArray_methods.get$last(t1).target.line === _this._line && B.JSArray_methods.get$last(t1).target.column === _this._column)
  51696. t1.pop();
  51697. ++_this._line;
  51698. _this._column = 0;
  51699. if (_this._inSpan)
  51700. t1.push(new A.Entry(B.JSArray_methods.get$last(t1).source, _this.get$_targetLocation(), null));
  51701. },
  51702. toString$0(_) {
  51703. var t1 = this._source_map_buffer$_buffer._contents;
  51704. return t1.charCodeAt(0) == 0 ? t1 : t1;
  51705. },
  51706. buildSourceMap$1$prefix(prefix) {
  51707. var i, t2, prefixColumn, _box_0 = {},
  51708. t1 = prefix.length;
  51709. if (t1 === 0)
  51710. return A.SingleMapping_SingleMapping$fromEntries(this._entries);
  51711. _box_0.prefixColumn = _box_0.prefixLines = 0;
  51712. for (i = 0, t2 = 0; i < t1; ++i)
  51713. if (B.JSString_methods._codeUnitAt$1(prefix, i) === 10) {
  51714. ++_box_0.prefixLines;
  51715. _box_0.prefixColumn = 0;
  51716. t2 = 0;
  51717. } else {
  51718. prefixColumn = t2 + 1;
  51719. _box_0.prefixColumn = prefixColumn;
  51720. t2 = prefixColumn;
  51721. }
  51722. t2 = this._entries;
  51723. return A.SingleMapping_SingleMapping$fromEntries(new A.MappedListIterable(t2, new A.SourceMapBuffer_buildSourceMap_closure(_box_0, t1), A._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Entry>")));
  51724. }
  51725. };
  51726. A.SourceMapBuffer_buildSourceMap_closure.prototype = {
  51727. call$1(entry) {
  51728. var t1 = entry.source,
  51729. t2 = entry.target,
  51730. t3 = t2.line,
  51731. t4 = this._box_0,
  51732. t5 = t4.prefixLines;
  51733. t4 = t3 === 0 ? t4.prefixColumn : 0;
  51734. return new A.Entry(t1, A.SourceLocation$(t2.offset + this.prefixLength, t2.column + t4, t3 + t5, null), entry.identifierName);
  51735. },
  51736. $signature: 206
  51737. };
  51738. A.UnprefixedMapView.prototype = {
  51739. get$keys(_) {
  51740. return new A._UnprefixedKeys(this);
  51741. },
  51742. $index(_, key) {
  51743. return typeof key == "string" ? this._unprefixed_map_view$_map.$index(0, this._unprefixed_map_view$_prefix + key) : null;
  51744. },
  51745. containsKey$1(key) {
  51746. return typeof key == "string" && this._unprefixed_map_view$_map.containsKey$1(this._unprefixed_map_view$_prefix + key);
  51747. },
  51748. remove$1(_, key) {
  51749. return typeof key == "string" ? this._unprefixed_map_view$_map.remove$1(0, this._unprefixed_map_view$_prefix + key) : null;
  51750. }
  51751. };
  51752. A._UnprefixedKeys.prototype = {
  51753. get$iterator(_) {
  51754. var t1 = this._unprefixed_map_view$_view._unprefixed_map_view$_map;
  51755. t1 = J.where$1$ax(t1.get$keys(t1), new A._UnprefixedKeys_iterator_closure(this)).map$1$1(0, new A._UnprefixedKeys_iterator_closure0(this), type$.String);
  51756. return t1.get$iterator(t1);
  51757. },
  51758. contains$1(_, key) {
  51759. return this._unprefixed_map_view$_view.containsKey$1(key);
  51760. }
  51761. };
  51762. A._UnprefixedKeys_iterator_closure.prototype = {
  51763. call$1(key) {
  51764. return B.JSString_methods.startsWith$1(key, this.$this._unprefixed_map_view$_view._unprefixed_map_view$_prefix);
  51765. },
  51766. $signature: 8
  51767. };
  51768. A._UnprefixedKeys_iterator_closure0.prototype = {
  51769. call$1(key) {
  51770. return B.JSString_methods.substring$1(key, this.$this._unprefixed_map_view$_view._unprefixed_map_view$_prefix.length);
  51771. },
  51772. $signature: 5
  51773. };
  51774. A.indent_closure.prototype = {
  51775. call$1(line) {
  51776. return B.JSString_methods.$mul(" ", this.indentation) + line;
  51777. },
  51778. $signature: 5
  51779. };
  51780. A.flattenVertically_closure.prototype = {
  51781. call$1(inner) {
  51782. return A.QueueList_QueueList$from(inner, this.T);
  51783. },
  51784. $signature() {
  51785. return this.T._eval$1("QueueList<0>(Iterable<0>)");
  51786. }
  51787. };
  51788. A.flattenVertically_closure0.prototype = {
  51789. call$1(queue) {
  51790. this.result.push(queue.removeFirst$0());
  51791. return queue.get$length(queue) === 0;
  51792. },
  51793. $signature() {
  51794. return this.T._eval$1("bool(QueueList<0>)");
  51795. }
  51796. };
  51797. A.longestCommonSubsequence_backtrack.prototype = {
  51798. call$2(i, j) {
  51799. var selection, t1, _this = this;
  51800. if (i === -1 || j === -1)
  51801. return A._setArrayType([], _this.T._eval$1("JSArray<0>"));
  51802. selection = _this.selections[i][j];
  51803. if (selection != null) {
  51804. t1 = _this.call$2(i - 1, j - 1);
  51805. J.add$1$ax(t1, selection);
  51806. return t1;
  51807. }
  51808. t1 = _this.lengths;
  51809. return t1[i + 1][j] > t1[i][j + 1] ? _this.call$2(i, j - 1) : _this.call$2(i - 1, j);
  51810. },
  51811. $signature() {
  51812. return this.T._eval$1("List<0>(int,int)");
  51813. }
  51814. };
  51815. A.mapAddAll2_closure.prototype = {
  51816. call$2(key, inner) {
  51817. var t1 = this.destination,
  51818. innerDestination = t1.$index(0, key);
  51819. if (innerDestination != null)
  51820. innerDestination.addAll$1(0, inner);
  51821. else
  51822. t1.$indexSet(0, key, inner);
  51823. },
  51824. $signature() {
  51825. return this.K1._eval$1("@<0>")._bind$1(this.K2)._bind$1(this.V)._eval$1("~(1,Map<2,3>)");
  51826. }
  51827. };
  51828. A.Value.prototype = {
  51829. get$isTruthy() {
  51830. return true;
  51831. },
  51832. get$separator(_) {
  51833. return B.ListSeparator_undecided_null_undecided;
  51834. },
  51835. get$hasBrackets() {
  51836. return false;
  51837. },
  51838. get$asList() {
  51839. return A._setArrayType([this], type$.JSArray_Value);
  51840. },
  51841. get$lengthAsList() {
  51842. return 1;
  51843. },
  51844. get$isBlank() {
  51845. return false;
  51846. },
  51847. get$isSpecialNumber() {
  51848. return false;
  51849. },
  51850. get$isVar() {
  51851. return false;
  51852. },
  51853. get$realNull() {
  51854. return this;
  51855. },
  51856. sassIndexToListIndex$2(sassIndex, $name) {
  51857. var t1, t2, index,
  51858. indexValue = sassIndex.assertNumber$1($name);
  51859. if (indexValue.get$hasUnits()) {
  51860. t1 = indexValue.get$unitString();
  51861. t2 = indexValue.unitSuggestion$1($name);
  51862. A.EvaluationContext_current().warn$2$deprecation(0, "$" + $name + ": Passing a number with unit " + t1 + string$.x20is_de + t2 + string$.x0a_Morex3a, true);
  51863. }
  51864. index = indexValue.assertInt$1($name);
  51865. if (index === 0)
  51866. throw A.wrapException(A.SassScriptException$("List index may not be 0.", $name));
  51867. if (Math.abs(index) > this.get$lengthAsList())
  51868. throw A.wrapException(A.SassScriptException$("Invalid index " + sassIndex.toString$0(0) + " for a list with " + this.get$lengthAsList() + " elements.", $name));
  51869. return index < 0 ? this.get$lengthAsList() + index : index - 1;
  51870. },
  51871. assertCalculation$1($name) {
  51872. return A.throwExpression(A.SassScriptException$(this.toString$0(0) + " is not a calculation.", $name));
  51873. },
  51874. assertColor$1($name) {
  51875. return A.throwExpression(A.SassScriptException$(this.toString$0(0) + " is not a color.", $name));
  51876. },
  51877. assertFunction$1($name) {
  51878. return A.throwExpression(A.SassScriptException$(this.toString$0(0) + " is not a function reference.", $name));
  51879. },
  51880. assertMap$1($name) {
  51881. return A.throwExpression(A.SassScriptException$(this.toString$0(0) + " is not a map.", $name));
  51882. },
  51883. tryMap$0() {
  51884. return null;
  51885. },
  51886. assertNumber$1($name) {
  51887. return A.throwExpression(A.SassScriptException$(this.toString$0(0) + " is not a number.", $name));
  51888. },
  51889. assertNumber$0() {
  51890. return this.assertNumber$1(null);
  51891. },
  51892. assertString$1($name) {
  51893. return A.throwExpression(A.SassScriptException$(this.toString$0(0) + " is not a string.", $name));
  51894. },
  51895. _selectorString$1($name) {
  51896. var string = this._selectorStringOrNull$0();
  51897. if (string != null)
  51898. return string;
  51899. throw A.wrapException(A.SassScriptException$(this.toString$0(0) + string$.x20is_noa, $name));
  51900. },
  51901. _selectorStringOrNull$0() {
  51902. var t1, t2, result, t3, _i, complex, string, compound, _this = this, _null = null;
  51903. if (_this instanceof A.SassString)
  51904. return _this._string$_text;
  51905. if (!(_this instanceof A.SassList))
  51906. return _null;
  51907. t1 = _this._list$_contents;
  51908. t2 = t1.length;
  51909. if (t2 === 0)
  51910. return _null;
  51911. result = A._setArrayType([], type$.JSArray_String);
  51912. t3 = _this._separator;
  51913. switch (t3) {
  51914. case B.ListSeparator_rXA:
  51915. for (_i = 0; _i < t2; ++_i) {
  51916. complex = t1[_i];
  51917. if (complex instanceof A.SassString)
  51918. result.push(complex._string$_text);
  51919. else if (complex instanceof A.SassList && complex._separator === B.ListSeparator_EVt) {
  51920. string = complex._selectorStringOrNull$0();
  51921. if (string == null)
  51922. return _null;
  51923. result.push(string);
  51924. } else
  51925. return _null;
  51926. }
  51927. break;
  51928. case B.ListSeparator_zg9:
  51929. return _null;
  51930. default:
  51931. for (_i = 0; _i < t2; ++_i) {
  51932. compound = t1[_i];
  51933. if (compound instanceof A.SassString)
  51934. result.push(compound._string$_text);
  51935. else
  51936. return _null;
  51937. }
  51938. break;
  51939. }
  51940. return B.JSArray_methods.join$1(result, t3 === B.ListSeparator_rXA ? ", " : " ");
  51941. },
  51942. withListContents$2$separator(contents, separator) {
  51943. var t1 = separator == null ? this.get$separator(this) : separator,
  51944. t2 = this.get$hasBrackets();
  51945. return A.SassList$(contents, t1, t2);
  51946. },
  51947. withListContents$1(contents) {
  51948. return this.withListContents$2$separator(contents, null);
  51949. },
  51950. greaterThan$1(other) {
  51951. return A.throwExpression(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " > " + other.toString$0(0) + '".', null));
  51952. },
  51953. greaterThanOrEquals$1(other) {
  51954. return A.throwExpression(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " >= " + other.toString$0(0) + '".', null));
  51955. },
  51956. lessThan$1(other) {
  51957. return A.throwExpression(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " < " + other.toString$0(0) + '".', null));
  51958. },
  51959. lessThanOrEquals$1(other) {
  51960. return A.throwExpression(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " <= " + other.toString$0(0) + '".', null));
  51961. },
  51962. times$1(other) {
  51963. return A.throwExpression(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " * " + other.toString$0(0) + '".', null));
  51964. },
  51965. modulo$1(other) {
  51966. return A.throwExpression(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " % " + other.toString$0(0) + '".', null));
  51967. },
  51968. plus$1(other) {
  51969. if (other instanceof A.SassString)
  51970. return new A.SassString(A.serializeValue(this, false, true) + other._string$_text, other._hasQuotes);
  51971. else if (other instanceof A.SassCalculation)
  51972. throw A.wrapException(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " + " + other.toString$0(0) + '".', null));
  51973. else
  51974. return new A.SassString(A.serializeValue(this, false, true) + A.serializeValue(other, false, true), false);
  51975. },
  51976. minus$1(other) {
  51977. if (other instanceof A.SassCalculation)
  51978. throw A.wrapException(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " - " + other.toString$0(0) + '".', null));
  51979. else
  51980. return new A.SassString(A.serializeValue(this, false, true) + "-" + A.serializeValue(other, false, true), false);
  51981. },
  51982. dividedBy$1(other) {
  51983. return new A.SassString(A.serializeValue(this, false, true) + "/" + A.serializeValue(other, false, true), false);
  51984. },
  51985. unaryPlus$0() {
  51986. return new A.SassString("+" + A.serializeValue(this, false, true), false);
  51987. },
  51988. unaryMinus$0() {
  51989. return new A.SassString("-" + A.serializeValue(this, false, true), false);
  51990. },
  51991. unaryNot$0() {
  51992. return B.SassBoolean_false;
  51993. },
  51994. withoutSlash$0() {
  51995. return this;
  51996. },
  51997. toString$0(_) {
  51998. return A.serializeValue(this, true, true);
  51999. }
  52000. };
  52001. A.SassArgumentList.prototype = {};
  52002. A.SassBoolean.prototype = {
  52003. get$isTruthy() {
  52004. return this.value;
  52005. },
  52006. accept$1$1(visitor) {
  52007. return visitor._serialize$_buffer.write$1(0, String(this.value));
  52008. },
  52009. accept$1(visitor) {
  52010. return this.accept$1$1(visitor, type$.dynamic);
  52011. },
  52012. unaryNot$0() {
  52013. return this.value ? B.SassBoolean_false : B.SassBoolean_true;
  52014. }
  52015. };
  52016. A.SassCalculation.prototype = {
  52017. get$isSpecialNumber() {
  52018. return true;
  52019. },
  52020. accept$1$1(visitor) {
  52021. var t2,
  52022. t1 = visitor._serialize$_buffer;
  52023. t1.write$1(0, this.name);
  52024. t1.writeCharCode$1(40);
  52025. t2 = visitor._style === B.OutputStyle_1 ? "," : ", ";
  52026. visitor._writeBetween$3(this.$arguments, t2, visitor.get$_writeCalculationValue());
  52027. t1.writeCharCode$1(41);
  52028. return null;
  52029. },
  52030. accept$1(visitor) {
  52031. return this.accept$1$1(visitor, type$.dynamic);
  52032. },
  52033. assertCalculation$1($name) {
  52034. return this;
  52035. },
  52036. plus$1(other) {
  52037. if (other instanceof A.SassString)
  52038. return this.super$Value$plus(other);
  52039. throw A.wrapException(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " + " + other.toString$0(0) + '".', null));
  52040. },
  52041. minus$1(other) {
  52042. return A.throwExpression(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " - " + other.toString$0(0) + '".', null));
  52043. },
  52044. unaryPlus$0() {
  52045. return A.throwExpression(A.SassScriptException$('Undefined operation "+' + this.toString$0(0) + '".', null));
  52046. },
  52047. unaryMinus$0() {
  52048. return A.throwExpression(A.SassScriptException$('Undefined operation "-' + this.toString$0(0) + '".', null));
  52049. },
  52050. $eq(_, other) {
  52051. if (other == null)
  52052. return false;
  52053. return other instanceof A.SassCalculation && this.name === other.name && B.C_ListEquality.equals$2(0, this.$arguments, other.$arguments);
  52054. },
  52055. get$hashCode(_) {
  52056. return B.JSString_methods.get$hashCode(this.name) ^ B.C_ListEquality0.hash$1(this.$arguments);
  52057. }
  52058. };
  52059. A.SassCalculation__verifyLength_closure.prototype = {
  52060. call$1(arg) {
  52061. return arg instanceof A.SassString || arg instanceof A.CalculationInterpolation;
  52062. },
  52063. $signature: 133
  52064. };
  52065. A.CalculationOperation.prototype = {
  52066. $eq(_, other) {
  52067. if (other == null)
  52068. return false;
  52069. return other instanceof A.CalculationOperation && this.operator === other.operator && J.$eq$(this.left, other.left) && J.$eq$(this.right, other.right);
  52070. },
  52071. get$hashCode(_) {
  52072. return (A.Primitives_objectHashCode(this.operator) ^ J.get$hashCode$(this.left) ^ J.get$hashCode$(this.right)) >>> 0;
  52073. },
  52074. toString$0(_) {
  52075. var parenthesized = A.serializeValue(new A.SassCalculation("", A._setArrayType([this], type$.JSArray_Object)), true, true);
  52076. return B.JSString_methods.substring$2(parenthesized, 1, parenthesized.length - 1);
  52077. }
  52078. };
  52079. A.CalculationOperator.prototype = {
  52080. toString$0(_) {
  52081. return this.name;
  52082. }
  52083. };
  52084. A.CalculationInterpolation.prototype = {
  52085. $eq(_, other) {
  52086. if (other == null)
  52087. return false;
  52088. return other instanceof A.CalculationInterpolation && this.value === other.value;
  52089. },
  52090. get$hashCode(_) {
  52091. return B.JSString_methods.get$hashCode(this.value);
  52092. },
  52093. toString$0(_) {
  52094. return this.value;
  52095. }
  52096. };
  52097. A.SassColor.prototype = {
  52098. get$red(_) {
  52099. var t1;
  52100. if (this._red == null)
  52101. this._hslToRgb$0();
  52102. t1 = this._red;
  52103. t1.toString;
  52104. return t1;
  52105. },
  52106. get$green(_) {
  52107. var t1;
  52108. if (this._green == null)
  52109. this._hslToRgb$0();
  52110. t1 = this._green;
  52111. t1.toString;
  52112. return t1;
  52113. },
  52114. get$blue(_) {
  52115. var t1;
  52116. if (this._blue == null)
  52117. this._hslToRgb$0();
  52118. t1 = this._blue;
  52119. t1.toString;
  52120. return t1;
  52121. },
  52122. get$hue(_) {
  52123. var t1;
  52124. if (this._hue == null)
  52125. this._rgbToHsl$0();
  52126. t1 = this._hue;
  52127. t1.toString;
  52128. return t1;
  52129. },
  52130. get$saturation(_) {
  52131. var t1;
  52132. if (this._saturation == null)
  52133. this._rgbToHsl$0();
  52134. t1 = this._saturation;
  52135. t1.toString;
  52136. return t1;
  52137. },
  52138. get$lightness(_) {
  52139. var t1;
  52140. if (this._lightness == null)
  52141. this._rgbToHsl$0();
  52142. t1 = this._lightness;
  52143. t1.toString;
  52144. return t1;
  52145. },
  52146. get$whiteness(_) {
  52147. var _this = this;
  52148. return Math.min(Math.min(_this.get$red(_this), _this.get$green(_this)), _this.get$blue(_this)) / 255 * 100;
  52149. },
  52150. get$blackness(_) {
  52151. var _this = this;
  52152. return 100 - Math.max(Math.max(_this.get$red(_this), _this.get$green(_this)), _this.get$blue(_this)) / 255 * 100;
  52153. },
  52154. accept$1$1(visitor) {
  52155. var $name, hexLength, t1, format, t2, opaque, _this = this;
  52156. if (visitor._style === B.OutputStyle_1)
  52157. if (!A.fuzzyEquals(_this._alpha, 1))
  52158. visitor._writeRgb$1(_this);
  52159. else {
  52160. $name = $.$get$namesByColor().$index(0, _this);
  52161. hexLength = visitor._canUseShortHex$1(_this) ? 4 : 7;
  52162. if ($name != null && $name.length <= hexLength)
  52163. visitor._serialize$_buffer.write$1(0, $name);
  52164. else {
  52165. t1 = visitor._serialize$_buffer;
  52166. if (visitor._canUseShortHex$1(_this)) {
  52167. t1.writeCharCode$1(35);
  52168. t1.writeCharCode$1(A.hexCharFor(_this.get$red(_this) & 15));
  52169. t1.writeCharCode$1(A.hexCharFor(_this.get$green(_this) & 15));
  52170. t1.writeCharCode$1(A.hexCharFor(_this.get$blue(_this) & 15));
  52171. } else {
  52172. t1.writeCharCode$1(35);
  52173. visitor._writeHexComponent$1(_this.get$red(_this));
  52174. visitor._writeHexComponent$1(_this.get$green(_this));
  52175. visitor._writeHexComponent$1(_this.get$blue(_this));
  52176. }
  52177. }
  52178. }
  52179. else {
  52180. format = _this.format;
  52181. if (format != null)
  52182. if (format === B._ColorFormatEnum_rgbFunction)
  52183. visitor._writeRgb$1(_this);
  52184. else {
  52185. t1 = visitor._serialize$_buffer;
  52186. if (format === B._ColorFormatEnum_hslFunction) {
  52187. t2 = _this._alpha;
  52188. opaque = A.fuzzyEquals(t2, 1);
  52189. t1.write$1(0, opaque ? "hsl(" : "hsla(");
  52190. visitor._writeNumber$1(_this.get$hue(_this));
  52191. t1.write$1(0, "deg");
  52192. t1.write$1(0, ", ");
  52193. visitor._writeNumber$1(_this.get$saturation(_this));
  52194. t1.writeCharCode$1(37);
  52195. t1.write$1(0, ", ");
  52196. visitor._writeNumber$1(_this.get$lightness(_this));
  52197. t1.writeCharCode$1(37);
  52198. if (!opaque) {
  52199. t1.write$1(0, ", ");
  52200. visitor._writeNumber$1(t2);
  52201. }
  52202. t1.writeCharCode$1(41);
  52203. } else
  52204. t1.write$1(0, type$.SpanColorFormat._as(format)._color$_span.get$text());
  52205. }
  52206. else {
  52207. t1 = $.$get$namesByColor();
  52208. if (t1.containsKey$1(_this) && !A.fuzzyEquals(_this._alpha, 0))
  52209. visitor._serialize$_buffer.write$1(0, t1.$index(0, _this));
  52210. else if (A.fuzzyEquals(_this._alpha, 1)) {
  52211. visitor._serialize$_buffer.writeCharCode$1(35);
  52212. visitor._writeHexComponent$1(_this.get$red(_this));
  52213. visitor._writeHexComponent$1(_this.get$green(_this));
  52214. visitor._writeHexComponent$1(_this.get$blue(_this));
  52215. } else
  52216. visitor._writeRgb$1(_this);
  52217. }
  52218. }
  52219. return null;
  52220. },
  52221. accept$1(visitor) {
  52222. return this.accept$1$1(visitor, type$.dynamic);
  52223. },
  52224. assertColor$1($name) {
  52225. return this;
  52226. },
  52227. changeRgb$4$alpha$blue$green$red(alpha, blue, green, red) {
  52228. return A.SassColor$rgb(red, green, blue, alpha == null ? this._alpha : alpha);
  52229. },
  52230. changeRgb$3$blue$green$red(blue, green, red) {
  52231. return this.changeRgb$4$alpha$blue$green$red(null, blue, green, red);
  52232. },
  52233. changeHsl$4$alpha$hue$lightness$saturation(alpha, hue, lightness, saturation) {
  52234. var _this = this, _null = null,
  52235. t1 = hue == null ? _this.get$hue(_this) : hue,
  52236. t2 = saturation == null ? _this.get$saturation(_this) : saturation,
  52237. t3 = lightness == null ? _this.get$lightness(_this) : lightness,
  52238. t4 = alpha == null ? _this._alpha : alpha;
  52239. t1 = B.JSNumber_methods.$mod(t1, 360);
  52240. t2 = A.fuzzyAssertRange(t2, 0, 100, "saturation");
  52241. t3 = A.fuzzyAssertRange(t3, 0, 100, "lightness");
  52242. t4 = A.fuzzyAssertRange(t4, 0, 1, "alpha");
  52243. return new A.SassColor(_null, _null, _null, t1, t2, t3, t4, _null);
  52244. },
  52245. changeHsl$1$saturation(saturation) {
  52246. return this.changeHsl$4$alpha$hue$lightness$saturation(null, null, null, saturation);
  52247. },
  52248. changeHsl$1$lightness(lightness) {
  52249. return this.changeHsl$4$alpha$hue$lightness$saturation(null, null, lightness, null);
  52250. },
  52251. changeHsl$1$hue(hue) {
  52252. return this.changeHsl$4$alpha$hue$lightness$saturation(null, hue, null, null);
  52253. },
  52254. changeAlpha$1(alpha) {
  52255. var _this = this;
  52256. return new A.SassColor(_this._red, _this._green, _this._blue, _this._hue, _this._saturation, _this._lightness, A.fuzzyAssertRange(alpha, 0, 1, "alpha"), null);
  52257. },
  52258. plus$1(other) {
  52259. if (!(other instanceof A.SassNumber) && !(other instanceof A.SassColor))
  52260. return this.super$Value$plus(other);
  52261. throw A.wrapException(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " + " + other.toString$0(0) + '".', null));
  52262. },
  52263. minus$1(other) {
  52264. if (!(other instanceof A.SassNumber) && !(other instanceof A.SassColor))
  52265. return this.super$Value$minus(other);
  52266. throw A.wrapException(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " - " + other.toString$0(0) + '".', null));
  52267. },
  52268. dividedBy$1(other) {
  52269. if (!(other instanceof A.SassNumber) && !(other instanceof A.SassColor))
  52270. return this.super$Value$dividedBy(other);
  52271. throw A.wrapException(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " / " + other.toString$0(0) + '".', null));
  52272. },
  52273. $eq(_, other) {
  52274. var _this = this;
  52275. if (other == null)
  52276. return false;
  52277. return other instanceof A.SassColor && other.get$red(other) === _this.get$red(_this) && other.get$green(other) === _this.get$green(_this) && other.get$blue(other) === _this.get$blue(_this) && other._alpha === _this._alpha;
  52278. },
  52279. get$hashCode(_) {
  52280. var _this = this;
  52281. return B.JSInt_methods.get$hashCode(_this.get$red(_this)) ^ B.JSInt_methods.get$hashCode(_this.get$green(_this)) ^ B.JSInt_methods.get$hashCode(_this.get$blue(_this)) ^ B.JSNumber_methods.get$hashCode(_this._alpha);
  52282. },
  52283. _rgbToHsl$0() {
  52284. var t2, lightness, _this = this,
  52285. scaledRed = _this.get$red(_this) / 255,
  52286. scaledGreen = _this.get$green(_this) / 255,
  52287. scaledBlue = _this.get$blue(_this) / 255,
  52288. max = Math.max(Math.max(scaledRed, scaledGreen), scaledBlue),
  52289. min = Math.min(Math.min(scaledRed, scaledGreen), scaledBlue),
  52290. delta = max - min,
  52291. t1 = max === min;
  52292. if (t1)
  52293. _this._hue = 0;
  52294. else if (max === scaledRed)
  52295. _this._hue = B.JSNumber_methods.$mod(60 * (scaledGreen - scaledBlue) / delta, 360);
  52296. else if (max === scaledGreen)
  52297. _this._hue = B.JSNumber_methods.$mod(120 + 60 * (scaledBlue - scaledRed) / delta, 360);
  52298. else if (max === scaledBlue)
  52299. _this._hue = B.JSNumber_methods.$mod(240 + 60 * (scaledRed - scaledGreen) / delta, 360);
  52300. t2 = max + min;
  52301. lightness = 50 * t2;
  52302. _this._lightness = lightness;
  52303. if (t1)
  52304. _this._saturation = 0;
  52305. else {
  52306. t1 = 100 * delta;
  52307. if (lightness < 50)
  52308. _this._saturation = t1 / t2;
  52309. else
  52310. _this._saturation = t1 / (2 - max - min);
  52311. }
  52312. },
  52313. _hslToRgb$0() {
  52314. var _this = this,
  52315. scaledHue = _this.get$hue(_this) / 360,
  52316. scaledSaturation = _this.get$saturation(_this) / 100,
  52317. scaledLightness = _this.get$lightness(_this) / 100,
  52318. m2 = scaledLightness <= 0.5 ? scaledLightness * (scaledSaturation + 1) : scaledLightness + scaledSaturation - scaledLightness * scaledSaturation,
  52319. m1 = scaledLightness * 2 - m2;
  52320. _this._red = A.fuzzyRound(A.SassColor__hueToRgb(m1, m2, scaledHue + 0.3333333333333333) * 255);
  52321. _this._green = A.fuzzyRound(A.SassColor__hueToRgb(m1, m2, scaledHue) * 255);
  52322. _this._blue = A.fuzzyRound(A.SassColor__hueToRgb(m1, m2, scaledHue - 0.3333333333333333) * 255);
  52323. }
  52324. };
  52325. A.SassColor_SassColor$hwb_toRgb.prototype = {
  52326. call$1(hue) {
  52327. return A.fuzzyRound((A.SassColor__hueToRgb(0, 1, hue) * this.factor + this._box_0.scaledWhiteness) * 255);
  52328. },
  52329. $signature: 208
  52330. };
  52331. A._ColorFormatEnum.prototype = {
  52332. toString$0(_) {
  52333. return this._color$_name;
  52334. }
  52335. };
  52336. A.SpanColorFormat.prototype = {};
  52337. A.SassFunction.prototype = {
  52338. accept$1$1(visitor) {
  52339. var t1, t2;
  52340. if (!visitor._inspect)
  52341. A.throwExpression(A.SassScriptException$(this.toString$0(0) + " isn't a valid CSS value.", null));
  52342. t1 = visitor._serialize$_buffer;
  52343. t1.write$1(0, "get-function(");
  52344. t2 = this.callable;
  52345. visitor._visitQuotedString$1(t2.get$name(t2));
  52346. t1.writeCharCode$1(41);
  52347. return null;
  52348. },
  52349. accept$1(visitor) {
  52350. return this.accept$1$1(visitor, type$.dynamic);
  52351. },
  52352. assertFunction$1($name) {
  52353. return this;
  52354. },
  52355. $eq(_, other) {
  52356. if (other == null)
  52357. return false;
  52358. return other instanceof A.SassFunction && this.callable.$eq(0, other.callable);
  52359. },
  52360. get$hashCode(_) {
  52361. var t1 = this.callable;
  52362. return t1.get$hashCode(t1);
  52363. }
  52364. };
  52365. A.SassList.prototype = {
  52366. get$separator(_) {
  52367. return this._separator;
  52368. },
  52369. get$hasBrackets() {
  52370. return this._hasBrackets;
  52371. },
  52372. get$isBlank() {
  52373. return !this._hasBrackets && B.JSArray_methods.every$1(this._list$_contents, new A.SassList_isBlank_closure());
  52374. },
  52375. get$asList() {
  52376. return this._list$_contents;
  52377. },
  52378. get$lengthAsList() {
  52379. return this._list$_contents.length;
  52380. },
  52381. SassList$3$brackets(contents, _separator, brackets) {
  52382. if (this._separator === B.ListSeparator_undecided_null_undecided && this._list$_contents.length > 1)
  52383. throw A.wrapException(A.ArgumentError$(string$.A_list, null));
  52384. },
  52385. accept$1$1(visitor) {
  52386. return visitor.visitList$1(this);
  52387. },
  52388. accept$1(visitor) {
  52389. return this.accept$1$1(visitor, type$.dynamic);
  52390. },
  52391. assertMap$1($name) {
  52392. return this._list$_contents.length === 0 ? B.SassMap_Map_empty : this.super$Value$assertMap($name);
  52393. },
  52394. tryMap$0() {
  52395. return this._list$_contents.length === 0 ? B.SassMap_Map_empty : null;
  52396. },
  52397. $eq(_, other) {
  52398. var t1, _this = this;
  52399. if (other == null)
  52400. return false;
  52401. if (!(other instanceof A.SassList && other._separator === _this._separator && other._hasBrackets === _this._hasBrackets && B.C_ListEquality.equals$2(0, other._list$_contents, _this._list$_contents)))
  52402. t1 = _this._list$_contents.length === 0 && other instanceof A.SassMap && other.get$asList().length === 0;
  52403. else
  52404. t1 = true;
  52405. return t1;
  52406. },
  52407. get$hashCode(_) {
  52408. return B.C_ListEquality0.hash$1(this._list$_contents);
  52409. }
  52410. };
  52411. A.SassList_isBlank_closure.prototype = {
  52412. call$1(element) {
  52413. return element.get$isBlank();
  52414. },
  52415. $signature: 65
  52416. };
  52417. A.ListSeparator.prototype = {
  52418. toString$0(_) {
  52419. return this._list$_name;
  52420. }
  52421. };
  52422. A.SassMap.prototype = {
  52423. get$separator(_) {
  52424. var t1 = this._map$_contents;
  52425. return t1.get$isEmpty(t1) ? B.ListSeparator_undecided_null_undecided : B.ListSeparator_rXA;
  52426. },
  52427. get$asList() {
  52428. var result = A._setArrayType([], type$.JSArray_Value);
  52429. this._map$_contents.forEach$1(0, new A.SassMap_asList_closure(result));
  52430. return result;
  52431. },
  52432. get$lengthAsList() {
  52433. var t1 = this._map$_contents;
  52434. return t1.get$length(t1);
  52435. },
  52436. accept$1$1(visitor) {
  52437. return visitor.visitMap$1(this);
  52438. },
  52439. accept$1(visitor) {
  52440. return this.accept$1$1(visitor, type$.dynamic);
  52441. },
  52442. assertMap$1($name) {
  52443. return this;
  52444. },
  52445. tryMap$0() {
  52446. return this;
  52447. },
  52448. $eq(_, other) {
  52449. var t1;
  52450. if (other == null)
  52451. return false;
  52452. if (!(other instanceof A.SassMap && B.C_MapEquality.equals$2(0, other._map$_contents, this._map$_contents))) {
  52453. t1 = this._map$_contents;
  52454. t1 = t1.get$isEmpty(t1) && other instanceof A.SassList && other._list$_contents.length === 0;
  52455. } else
  52456. t1 = true;
  52457. return t1;
  52458. },
  52459. get$hashCode(_) {
  52460. var t1 = this._map$_contents;
  52461. return t1.get$isEmpty(t1) ? B.C_ListEquality0.hash$1(B.List_empty7) : B.C_MapEquality.hash$1(t1);
  52462. }
  52463. };
  52464. A.SassMap_asList_closure.prototype = {
  52465. call$2(key, value) {
  52466. this.result.push(A.SassList$(A._setArrayType([key, value], type$.JSArray_Value), B.ListSeparator_EVt, false));
  52467. },
  52468. $signature: 59
  52469. };
  52470. A._SassNull.prototype = {
  52471. get$isTruthy() {
  52472. return false;
  52473. },
  52474. get$isBlank() {
  52475. return true;
  52476. },
  52477. get$realNull() {
  52478. return null;
  52479. },
  52480. accept$1$1(visitor) {
  52481. if (visitor._inspect)
  52482. visitor._serialize$_buffer.write$1(0, "null");
  52483. return null;
  52484. },
  52485. accept$1(visitor) {
  52486. return this.accept$1$1(visitor, type$.dynamic);
  52487. },
  52488. unaryNot$0() {
  52489. return B.SassBoolean_true;
  52490. }
  52491. };
  52492. A.SassNumber.prototype = {
  52493. get$unitString() {
  52494. var _this = this;
  52495. return _this.get$hasUnits() ? _this._unitString$2(_this.get$numeratorUnits(_this), _this.get$denominatorUnits(_this)) : "";
  52496. },
  52497. accept$1$1(visitor) {
  52498. return visitor.visitNumber$1(this);
  52499. },
  52500. accept$1(visitor) {
  52501. return this.accept$1$1(visitor, type$.dynamic);
  52502. },
  52503. withoutSlash$0() {
  52504. var _this = this;
  52505. return _this.asSlash == null ? _this : _this.withValue$1(_this._number$_value);
  52506. },
  52507. assertNumber$1($name) {
  52508. return this;
  52509. },
  52510. assertNumber$0() {
  52511. return this.assertNumber$1(null);
  52512. },
  52513. assertInt$1($name) {
  52514. var integer = A.fuzzyAsInt(this._number$_value);
  52515. if (integer != null)
  52516. return integer;
  52517. throw A.wrapException(A.SassScriptException$(this.toString$0(0) + " is not an int.", $name));
  52518. },
  52519. assertInt$0() {
  52520. return this.assertInt$1(null);
  52521. },
  52522. valueInRange$3(min, max, $name) {
  52523. var _this = this,
  52524. result = A.fuzzyCheckRange(_this._number$_value, min, max);
  52525. if (result != null)
  52526. return result;
  52527. throw A.wrapException(A.SassScriptException$("Expected " + _this.toString$0(0) + " to be within " + min + _this.get$unitString() + " and " + max + _this.get$unitString() + ".", $name));
  52528. },
  52529. valueInRangeWithUnit$4(min, max, $name, unit) {
  52530. var result = A.fuzzyCheckRange(this._number$_value, min, max);
  52531. if (result != null)
  52532. return result;
  52533. throw A.wrapException(A.SassScriptException$("Expected " + this.toString$0(0) + " to be within " + min + unit + " and " + max + unit + ".", $name));
  52534. },
  52535. hasCompatibleUnits$1(other) {
  52536. var _this = this;
  52537. if (_this.get$numeratorUnits(_this).length !== other.get$numeratorUnits(other).length)
  52538. return false;
  52539. if (_this.get$denominatorUnits(_this).length !== other.get$denominatorUnits(other).length)
  52540. return false;
  52541. return _this.isComparableTo$1(other);
  52542. },
  52543. assertUnit$2(unit, $name) {
  52544. if (this.hasUnit$1(unit))
  52545. return;
  52546. throw A.wrapException(A.SassScriptException$("Expected " + this.toString$0(0) + ' to have unit "' + unit + '".', $name));
  52547. },
  52548. assertNoUnits$1($name) {
  52549. if (!this.get$hasUnits())
  52550. return;
  52551. throw A.wrapException(A.SassScriptException$("Expected " + this.toString$0(0) + " to have no units.", $name));
  52552. },
  52553. convertValueToMatch$3(other, $name, otherName) {
  52554. return this._coerceOrConvertValue$6$coerceUnitless$name$other$otherName(other.get$numeratorUnits(other), other.get$denominatorUnits(other), false, $name, other, otherName);
  52555. },
  52556. coerce$3(newNumerators, newDenominators, $name) {
  52557. return A.SassNumber_SassNumber$withUnits(this.coerceValue$3(newNumerators, newDenominators, $name), newDenominators, newNumerators);
  52558. },
  52559. coerce$2(newNumerators, newDenominators) {
  52560. return this.coerce$3(newNumerators, newDenominators, null);
  52561. },
  52562. coerceValue$3(newNumerators, newDenominators, $name) {
  52563. return this._coerceOrConvertValue$4$coerceUnitless$name(newNumerators, newDenominators, true, $name);
  52564. },
  52565. coerceValueToUnit$2(unit, $name) {
  52566. var t1 = type$.JSArray_String;
  52567. return this.coerceValue$3(A._setArrayType([unit], t1), A._setArrayType([], t1), $name);
  52568. },
  52569. coerceValueToUnit$1(unit) {
  52570. return this.coerceValueToUnit$2(unit, null);
  52571. },
  52572. coerceValueToMatch$3(other, $name, otherName) {
  52573. return this._coerceOrConvertValue$6$coerceUnitless$name$other$otherName(other.get$numeratorUnits(other), other.get$denominatorUnits(other), true, $name, other, otherName);
  52574. },
  52575. coerceValueToMatch$1(other) {
  52576. return this.coerceValueToMatch$3(other, null, null);
  52577. },
  52578. _coerceOrConvertValue$6$coerceUnitless$name$other$otherName(newNumerators, newDenominators, coerceUnitless, $name, other, otherName) {
  52579. var otherHasUnits, t1, compatibilityException, oldNumerators, _i, oldDenominators, _this = this, _box_0 = {};
  52580. if (B.C_ListEquality.equals$2(0, _this.get$numeratorUnits(_this), newNumerators) && B.C_ListEquality.equals$2(0, _this.get$denominatorUnits(_this), newDenominators))
  52581. return _this._number$_value;
  52582. otherHasUnits = newNumerators.length !== 0 || newDenominators.length !== 0;
  52583. if (coerceUnitless)
  52584. t1 = !_this.get$hasUnits() || !otherHasUnits;
  52585. else
  52586. t1 = false;
  52587. if (t1)
  52588. return _this._number$_value;
  52589. compatibilityException = new A.SassNumber__coerceOrConvertValue_compatibilityException(_this, other, otherName, otherHasUnits, $name, newNumerators, newDenominators);
  52590. _box_0.value = _this._number$_value;
  52591. t1 = _this.get$numeratorUnits(_this);
  52592. oldNumerators = A._setArrayType(t1.slice(0), A._arrayInstanceType(t1));
  52593. for (t1 = newNumerators.length, _i = 0; _i < newNumerators.length; newNumerators.length === t1 || (0, A.throwConcurrentModificationError)(newNumerators), ++_i)
  52594. A.removeFirstWhere(oldNumerators, new A.SassNumber__coerceOrConvertValue_closure(_box_0, newNumerators[_i]), new A.SassNumber__coerceOrConvertValue_closure0(compatibilityException));
  52595. t1 = _this.get$denominatorUnits(_this);
  52596. oldDenominators = A._setArrayType(t1.slice(0), A._arrayInstanceType(t1));
  52597. for (t1 = newDenominators.length, _i = 0; _i < newDenominators.length; newDenominators.length === t1 || (0, A.throwConcurrentModificationError)(newDenominators), ++_i)
  52598. A.removeFirstWhere(oldDenominators, new A.SassNumber__coerceOrConvertValue_closure1(_box_0, newDenominators[_i]), new A.SassNumber__coerceOrConvertValue_closure2(compatibilityException));
  52599. if (oldNumerators.length !== 0 || oldDenominators.length !== 0)
  52600. throw A.wrapException(compatibilityException.call$0());
  52601. return _box_0.value;
  52602. },
  52603. _coerceOrConvertValue$4$coerceUnitless$name(newNumerators, newDenominators, coerceUnitless, $name) {
  52604. return this._coerceOrConvertValue$6$coerceUnitless$name$other$otherName(newNumerators, newDenominators, coerceUnitless, $name, null, null);
  52605. },
  52606. isComparableTo$1(other) {
  52607. var exception;
  52608. if (!this.get$hasUnits() || !other.get$hasUnits())
  52609. return true;
  52610. try {
  52611. this.greaterThan$1(other);
  52612. return true;
  52613. } catch (exception) {
  52614. if (A.unwrapException(exception) instanceof A.SassScriptException)
  52615. return false;
  52616. else
  52617. throw exception;
  52618. }
  52619. },
  52620. greaterThan$1(other) {
  52621. if (other instanceof A.SassNumber)
  52622. return this._coerceUnits$2(other, A.number0__fuzzyGreaterThan$closure()) ? B.SassBoolean_true : B.SassBoolean_false;
  52623. throw A.wrapException(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " > " + other.toString$0(0) + '".', null));
  52624. },
  52625. greaterThanOrEquals$1(other) {
  52626. if (other instanceof A.SassNumber)
  52627. return this._coerceUnits$2(other, A.number0__fuzzyGreaterThanOrEquals$closure()) ? B.SassBoolean_true : B.SassBoolean_false;
  52628. throw A.wrapException(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " >= " + other.toString$0(0) + '".', null));
  52629. },
  52630. lessThan$1(other) {
  52631. if (other instanceof A.SassNumber)
  52632. return this._coerceUnits$2(other, A.number0__fuzzyLessThan$closure()) ? B.SassBoolean_true : B.SassBoolean_false;
  52633. throw A.wrapException(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " < " + other.toString$0(0) + '".', null));
  52634. },
  52635. lessThanOrEquals$1(other) {
  52636. if (other instanceof A.SassNumber)
  52637. return this._coerceUnits$2(other, A.number0__fuzzyLessThanOrEquals$closure()) ? B.SassBoolean_true : B.SassBoolean_false;
  52638. throw A.wrapException(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " <= " + other.toString$0(0) + '".', null));
  52639. },
  52640. modulo$1(other) {
  52641. if (other instanceof A.SassNumber)
  52642. return this.withValue$1(this._coerceUnits$2(other, A.number0__moduloLikeSass$closure()));
  52643. throw A.wrapException(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " % " + other.toString$0(0) + '".', null));
  52644. },
  52645. plus$1(other) {
  52646. var _this = this;
  52647. if (other instanceof A.SassNumber)
  52648. return _this.withValue$1(_this._coerceUnits$2(other, new A.SassNumber_plus_closure()));
  52649. if (!(other instanceof A.SassColor))
  52650. return _this.super$Value$plus(other);
  52651. throw A.wrapException(A.SassScriptException$('Undefined operation "' + _this.toString$0(0) + " + " + other.toString$0(0) + '".', null));
  52652. },
  52653. minus$1(other) {
  52654. var _this = this;
  52655. if (other instanceof A.SassNumber)
  52656. return _this.withValue$1(_this._coerceUnits$2(other, new A.SassNumber_minus_closure()));
  52657. if (!(other instanceof A.SassColor))
  52658. return _this.super$Value$minus(other);
  52659. throw A.wrapException(A.SassScriptException$('Undefined operation "' + _this.toString$0(0) + " - " + other.toString$0(0) + '".', null));
  52660. },
  52661. times$1(other) {
  52662. var _this = this;
  52663. if (other instanceof A.SassNumber) {
  52664. if (!other.get$hasUnits())
  52665. return _this.withValue$1(_this._number$_value * other._number$_value);
  52666. return _this.multiplyUnits$3(_this._number$_value * other._number$_value, other.get$numeratorUnits(other), other.get$denominatorUnits(other));
  52667. }
  52668. throw A.wrapException(A.SassScriptException$('Undefined operation "' + _this.toString$0(0) + " * " + other.toString$0(0) + '".', null));
  52669. },
  52670. dividedBy$1(other) {
  52671. var _this = this;
  52672. if (other instanceof A.SassNumber) {
  52673. if (!other.get$hasUnits())
  52674. return _this.withValue$1(_this._number$_value / other._number$_value);
  52675. return _this.multiplyUnits$3(_this._number$_value / other._number$_value, other.get$denominatorUnits(other), other.get$numeratorUnits(other));
  52676. }
  52677. return _this.super$Value$dividedBy(other);
  52678. },
  52679. unaryPlus$0() {
  52680. return this;
  52681. },
  52682. _coerceUnits$1$2(other, operation) {
  52683. var t1, exception;
  52684. try {
  52685. t1 = operation.call$2(this._number$_value, other.coerceValueToMatch$1(this));
  52686. return t1;
  52687. } catch (exception) {
  52688. if (A.unwrapException(exception) instanceof A.SassScriptException) {
  52689. this.coerceValueToMatch$1(other);
  52690. throw exception;
  52691. } else
  52692. throw exception;
  52693. }
  52694. },
  52695. _coerceUnits$2(other, operation) {
  52696. return this._coerceUnits$1$2(other, operation, type$.dynamic);
  52697. },
  52698. multiplyUnits$3(value, otherNumerators, otherDenominators) {
  52699. var newNumerators, mutableOtherDenominators, t1, t2, _i, numerator, mutableDenominatorUnits, _this = this, _box_0 = {};
  52700. _box_0.value = value;
  52701. if (_this.get$numeratorUnits(_this).length === 0) {
  52702. if (otherDenominators.length === 0 && !_this._areAnyConvertible$2(_this.get$denominatorUnits(_this), otherNumerators))
  52703. return A.SassNumber_SassNumber$withUnits(value, _this.get$denominatorUnits(_this), otherNumerators);
  52704. else if (_this.get$denominatorUnits(_this).length === 0)
  52705. return A.SassNumber_SassNumber$withUnits(value, otherDenominators, otherNumerators);
  52706. } else if (otherNumerators.length === 0)
  52707. if (otherDenominators.length === 0)
  52708. return A.SassNumber_SassNumber$withUnits(value, otherDenominators, _this.get$numeratorUnits(_this));
  52709. else if (_this.get$denominatorUnits(_this).length === 0 && !_this._areAnyConvertible$2(_this.get$numeratorUnits(_this), otherDenominators))
  52710. return A.SassNumber_SassNumber$withUnits(value, otherDenominators, _this.get$numeratorUnits(_this));
  52711. newNumerators = A._setArrayType([], type$.JSArray_String);
  52712. mutableOtherDenominators = A._setArrayType(otherDenominators.slice(0), A._arrayInstanceType(otherDenominators));
  52713. for (t1 = _this.get$numeratorUnits(_this), t2 = t1.length, _i = 0; _i < t2; ++_i) {
  52714. numerator = t1[_i];
  52715. A.removeFirstWhere(mutableOtherDenominators, new A.SassNumber_multiplyUnits_closure(_box_0, numerator), new A.SassNumber_multiplyUnits_closure0(newNumerators, numerator));
  52716. }
  52717. t1 = _this.get$denominatorUnits(_this);
  52718. mutableDenominatorUnits = A._setArrayType(t1.slice(0), A._arrayInstanceType(t1));
  52719. for (t1 = otherNumerators.length, _i = 0; _i < t1; ++_i) {
  52720. numerator = otherNumerators[_i];
  52721. A.removeFirstWhere(mutableDenominatorUnits, new A.SassNumber_multiplyUnits_closure1(_box_0, numerator), new A.SassNumber_multiplyUnits_closure2(newNumerators, numerator));
  52722. }
  52723. t1 = _box_0.value;
  52724. B.JSArray_methods.addAll$1(mutableDenominatorUnits, mutableOtherDenominators);
  52725. return A.SassNumber_SassNumber$withUnits(t1, mutableDenominatorUnits, newNumerators);
  52726. },
  52727. _areAnyConvertible$2(units1, units2) {
  52728. return B.JSArray_methods.any$1(units1, new A.SassNumber__areAnyConvertible_closure(units2));
  52729. },
  52730. _unitString$2(numerators, denominators) {
  52731. var t1;
  52732. if (numerators.length === 0) {
  52733. t1 = denominators.length;
  52734. if (t1 === 0)
  52735. return "no units";
  52736. if (t1 === 1)
  52737. return J.$add$ansx(B.JSArray_methods.get$single(denominators), "^-1");
  52738. return "(" + B.JSArray_methods.join$1(denominators, "*") + ")^-1";
  52739. }
  52740. if (denominators.length === 0)
  52741. return B.JSArray_methods.join$1(numerators, "*");
  52742. return B.JSArray_methods.join$1(numerators, "*") + "/" + B.JSArray_methods.join$1(denominators, "*");
  52743. },
  52744. $eq(_, other) {
  52745. var _this = this;
  52746. if (other == null)
  52747. return false;
  52748. if (other instanceof A.SassNumber) {
  52749. if (_this.get$numeratorUnits(_this).length !== other.get$numeratorUnits(other).length || _this.get$denominatorUnits(_this).length !== other.get$denominatorUnits(other).length)
  52750. return false;
  52751. if (!_this.get$hasUnits())
  52752. return A.fuzzyEquals(_this._number$_value, other._number$_value);
  52753. if (!B.C_ListEquality.equals$2(0, _this._canonicalizeUnitList$1(_this.get$numeratorUnits(_this)), _this._canonicalizeUnitList$1(other.get$numeratorUnits(other))) || !B.C_ListEquality.equals$2(0, _this._canonicalizeUnitList$1(_this.get$denominatorUnits(_this)), _this._canonicalizeUnitList$1(other.get$denominatorUnits(other))))
  52754. return false;
  52755. return A.fuzzyEquals(_this._number$_value * _this._canonicalMultiplier$1(_this.get$numeratorUnits(_this)) / _this._canonicalMultiplier$1(_this.get$denominatorUnits(_this)), other._number$_value * _this._canonicalMultiplier$1(other.get$numeratorUnits(other)) / _this._canonicalMultiplier$1(other.get$denominatorUnits(other)));
  52756. } else
  52757. return false;
  52758. },
  52759. get$hashCode(_) {
  52760. var _this = this,
  52761. t1 = _this.hashCache;
  52762. return t1 == null ? _this.hashCache = A.fuzzyHashCode(_this._number$_value * _this._canonicalMultiplier$1(_this.get$numeratorUnits(_this)) / _this._canonicalMultiplier$1(_this.get$denominatorUnits(_this))) : t1;
  52763. },
  52764. _canonicalizeUnitList$1(units) {
  52765. var type,
  52766. t1 = units.length;
  52767. if (t1 === 0)
  52768. return units;
  52769. if (t1 === 1) {
  52770. type = $.$get$_typesByUnit().$index(0, B.JSArray_methods.get$first(units));
  52771. if (type == null)
  52772. t1 = units;
  52773. else {
  52774. t1 = B.Map_U8AHF.$index(0, type);
  52775. t1.toString;
  52776. t1 = A._setArrayType([B.JSArray_methods.get$first(t1)], type$.JSArray_String);
  52777. }
  52778. return t1;
  52779. }
  52780. t1 = A._arrayInstanceType(units)._eval$1("MappedListIterable<1,String>");
  52781. t1 = A.List_List$of(new A.MappedListIterable(units, new A.SassNumber__canonicalizeUnitList_closure(), t1), true, t1._eval$1("ListIterable.E"));
  52782. B.JSArray_methods.sort$0(t1);
  52783. return t1;
  52784. },
  52785. _canonicalMultiplier$1(units) {
  52786. return B.JSArray_methods.fold$2(units, 1, new A.SassNumber__canonicalMultiplier_closure(this));
  52787. },
  52788. canonicalMultiplierForUnit$1(unit) {
  52789. var t1,
  52790. innerMap = B.Map_K2BWj.$index(0, unit);
  52791. if (innerMap == null)
  52792. t1 = 1;
  52793. else {
  52794. t1 = innerMap.get$values(innerMap);
  52795. t1 = 1 / t1.get$first(t1);
  52796. }
  52797. return t1;
  52798. },
  52799. unitSuggestion$2($name, unit) {
  52800. var t2, t3, result, _this = this,
  52801. t1 = _this.get$denominatorUnits(_this);
  52802. t1 = new A.MappedListIterable(t1, new A.SassNumber_unitSuggestion_closure(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$0(0);
  52803. t2 = _this.get$numeratorUnits(_this);
  52804. t2 = new A.MappedListIterable(t2, new A.SassNumber_unitSuggestion_closure0(), A._arrayInstanceType(t2)._eval$1("MappedListIterable<1,String>")).join$0(0);
  52805. t3 = unit == null ? "" : " * 1" + unit;
  52806. result = "$" + $name + t1 + t2 + t3;
  52807. return _this.get$numeratorUnits(_this).length === 0 ? result : "calc(" + result + ")";
  52808. },
  52809. unitSuggestion$1($name) {
  52810. return this.unitSuggestion$2($name, null);
  52811. }
  52812. };
  52813. A.SassNumber__coerceOrConvertValue_compatibilityException.prototype = {
  52814. call$0() {
  52815. var t2, t3, message, t4, type, unit, _this = this,
  52816. t1 = _this.other;
  52817. if (t1 != null) {
  52818. t2 = _this.$this;
  52819. t3 = t2.toString$0(0) + " and";
  52820. message = new A.StringBuffer(t3);
  52821. t4 = _this.otherName;
  52822. if (t4 != null)
  52823. t3 = message._contents = t3 + (" $" + t4 + ":");
  52824. t1 = t3 + (" " + t1.toString$0(0) + " have incompatible units");
  52825. message._contents = t1;
  52826. if (!t2.get$hasUnits() || !_this.otherHasUnits)
  52827. message._contents = t1 + " (one has units and the other doesn't)";
  52828. t1 = message.toString$0(0) + ".";
  52829. t2 = _this.name;
  52830. return new A.SassScriptException(t2 == null ? t1 : "$" + t2 + ": " + t1);
  52831. } else if (!_this.otherHasUnits) {
  52832. t1 = "Expected " + _this.$this.toString$0(0) + " to have no units.";
  52833. t2 = _this.name;
  52834. return new A.SassScriptException(t2 == null ? t1 : "$" + t2 + ": " + t1);
  52835. } else {
  52836. t1 = _this.newNumerators;
  52837. if (t1.length === 1 && _this.newDenominators.length === 0) {
  52838. type = $.$get$_typesByUnit().$index(0, B.JSArray_methods.get$first(t1));
  52839. if (type != null) {
  52840. t1 = _this.$this.toString$0(0);
  52841. t2 = B.JSArray_methods.contains$1(A._setArrayType([97, 101, 105, 111, 117], type$.JSArray_int), B.JSString_methods._codeUnitAt$1(type, 0)) ? "an " + type : "a " + type;
  52842. t3 = B.Map_U8AHF.$index(0, type);
  52843. t3.toString;
  52844. t3 = "Expected " + t1 + " to have " + t2 + " unit (" + B.JSArray_methods.join$1(t3, ", ") + ").";
  52845. t2 = _this.name;
  52846. return new A.SassScriptException(t2 == null ? t3 : "$" + t2 + ": " + t3);
  52847. }
  52848. }
  52849. t2 = _this.newDenominators;
  52850. unit = A.pluralize("unit", t1.length + t2.length, null);
  52851. t3 = _this.$this;
  52852. t2 = "Expected " + t3.toString$0(0) + " to have " + unit + " " + t3._unitString$2(t1, t2) + ".";
  52853. t1 = _this.name;
  52854. return new A.SassScriptException(t1 == null ? t2 : "$" + t1 + ": " + t2);
  52855. }
  52856. },
  52857. $signature: 308
  52858. };
  52859. A.SassNumber__coerceOrConvertValue_closure.prototype = {
  52860. call$1(oldNumerator) {
  52861. var factor = A.conversionFactor(this.newNumerator, oldNumerator);
  52862. if (factor == null)
  52863. return false;
  52864. this._box_0.value *= factor;
  52865. return true;
  52866. },
  52867. $signature: 8
  52868. };
  52869. A.SassNumber__coerceOrConvertValue_closure0.prototype = {
  52870. call$0() {
  52871. return A.throwExpression(this.compatibilityException.call$0());
  52872. },
  52873. $signature: 0
  52874. };
  52875. A.SassNumber__coerceOrConvertValue_closure1.prototype = {
  52876. call$1(oldDenominator) {
  52877. var factor = A.conversionFactor(this.newDenominator, oldDenominator);
  52878. if (factor == null)
  52879. return false;
  52880. this._box_0.value /= factor;
  52881. return true;
  52882. },
  52883. $signature: 8
  52884. };
  52885. A.SassNumber__coerceOrConvertValue_closure2.prototype = {
  52886. call$0() {
  52887. return A.throwExpression(this.compatibilityException.call$0());
  52888. },
  52889. $signature: 0
  52890. };
  52891. A.SassNumber_plus_closure.prototype = {
  52892. call$2(num1, num2) {
  52893. return num1 + num2;
  52894. },
  52895. $signature: 54
  52896. };
  52897. A.SassNumber_minus_closure.prototype = {
  52898. call$2(num1, num2) {
  52899. return num1 - num2;
  52900. },
  52901. $signature: 54
  52902. };
  52903. A.SassNumber_multiplyUnits_closure.prototype = {
  52904. call$1(denominator) {
  52905. var factor = A.conversionFactor(this.numerator, denominator);
  52906. if (factor == null)
  52907. return false;
  52908. this._box_0.value /= factor;
  52909. return true;
  52910. },
  52911. $signature: 8
  52912. };
  52913. A.SassNumber_multiplyUnits_closure0.prototype = {
  52914. call$0() {
  52915. return this.newNumerators.push(this.numerator);
  52916. },
  52917. $signature: 0
  52918. };
  52919. A.SassNumber_multiplyUnits_closure1.prototype = {
  52920. call$1(denominator) {
  52921. var factor = A.conversionFactor(this.numerator, denominator);
  52922. if (factor == null)
  52923. return false;
  52924. this._box_0.value /= factor;
  52925. return true;
  52926. },
  52927. $signature: 8
  52928. };
  52929. A.SassNumber_multiplyUnits_closure2.prototype = {
  52930. call$0() {
  52931. return this.newNumerators.push(this.numerator);
  52932. },
  52933. $signature: 0
  52934. };
  52935. A.SassNumber__areAnyConvertible_closure.prototype = {
  52936. call$1(unit1) {
  52937. var innerMap = B.Map_K2BWj.$index(0, unit1);
  52938. if (innerMap == null)
  52939. return B.JSArray_methods.contains$1(this.units2, unit1);
  52940. return B.JSArray_methods.any$1(this.units2, innerMap.get$containsKey());
  52941. },
  52942. $signature: 8
  52943. };
  52944. A.SassNumber__canonicalizeUnitList_closure.prototype = {
  52945. call$1(unit) {
  52946. var t1,
  52947. type = $.$get$_typesByUnit().$index(0, unit);
  52948. if (type == null)
  52949. t1 = unit;
  52950. else {
  52951. t1 = B.Map_U8AHF.$index(0, type);
  52952. t1.toString;
  52953. t1 = B.JSArray_methods.get$first(t1);
  52954. }
  52955. return t1;
  52956. },
  52957. $signature: 5
  52958. };
  52959. A.SassNumber__canonicalMultiplier_closure.prototype = {
  52960. call$2(multiplier, unit) {
  52961. return multiplier * this.$this.canonicalMultiplierForUnit$1(unit);
  52962. },
  52963. $signature: 211
  52964. };
  52965. A.SassNumber_unitSuggestion_closure.prototype = {
  52966. call$1(unit) {
  52967. return " * 1" + unit;
  52968. },
  52969. $signature: 5
  52970. };
  52971. A.SassNumber_unitSuggestion_closure0.prototype = {
  52972. call$1(unit) {
  52973. return " / 1" + unit;
  52974. },
  52975. $signature: 5
  52976. };
  52977. A.ComplexSassNumber.prototype = {
  52978. get$numeratorUnits(_) {
  52979. return this._numeratorUnits;
  52980. },
  52981. get$denominatorUnits(_) {
  52982. return this._denominatorUnits;
  52983. },
  52984. get$hasUnits() {
  52985. return true;
  52986. },
  52987. hasUnit$1(unit) {
  52988. return false;
  52989. },
  52990. compatibleWithUnit$1(unit) {
  52991. return false;
  52992. },
  52993. hasPossiblyCompatibleUnits$1(other) {
  52994. throw A.wrapException(A.UnimplementedError$(string$.Comple));
  52995. },
  52996. withValue$1(value) {
  52997. return new A.ComplexSassNumber(this._numeratorUnits, this._denominatorUnits, value, null);
  52998. },
  52999. withSlash$2(numerator, denominator) {
  53000. return new A.ComplexSassNumber(this._numeratorUnits, this._denominatorUnits, this._number$_value, new A.Tuple2(numerator, denominator, type$.Tuple2_SassNumber_SassNumber));
  53001. }
  53002. };
  53003. A.SingleUnitSassNumber.prototype = {
  53004. get$numeratorUnits(_) {
  53005. return A.List_List$unmodifiable([this._unit], type$.String);
  53006. },
  53007. get$denominatorUnits(_) {
  53008. return B.List_empty;
  53009. },
  53010. get$hasUnits() {
  53011. return true;
  53012. },
  53013. withValue$1(value) {
  53014. return new A.SingleUnitSassNumber(this._unit, value, null);
  53015. },
  53016. withSlash$2(numerator, denominator) {
  53017. return new A.SingleUnitSassNumber(this._unit, this._number$_value, new A.Tuple2(numerator, denominator, type$.Tuple2_SassNumber_SassNumber));
  53018. },
  53019. hasUnit$1(unit) {
  53020. return unit === this._unit;
  53021. },
  53022. hasCompatibleUnits$1(other) {
  53023. return other instanceof A.SingleUnitSassNumber && A.conversionFactor(this._unit, other._unit) != null;
  53024. },
  53025. hasPossiblyCompatibleUnits$1(other) {
  53026. var t1, knownCompatibilities, otherUnit;
  53027. if (!(other instanceof A.SingleUnitSassNumber))
  53028. return false;
  53029. t1 = $.$get$_knownCompatibilitiesByUnit();
  53030. knownCompatibilities = t1.$index(0, this._unit.toLowerCase());
  53031. if (knownCompatibilities == null)
  53032. return true;
  53033. otherUnit = other._unit.toLowerCase();
  53034. return knownCompatibilities.contains$1(0, otherUnit) || !t1.containsKey$1(otherUnit);
  53035. },
  53036. compatibleWithUnit$1(unit) {
  53037. return A.conversionFactor(this._unit, unit) != null;
  53038. },
  53039. coerceValueToMatch$1(other) {
  53040. var t1 = other instanceof A.SingleUnitSassNumber ? this._coerceValueToUnit$1(other._unit) : null;
  53041. return t1 == null ? this.super$SassNumber$coerceValueToMatch(other, null, null) : t1;
  53042. },
  53043. convertValueToMatch$3(other, $name, otherName) {
  53044. var t1 = other instanceof A.SingleUnitSassNumber ? this._coerceValueToUnit$1(other._unit) : null;
  53045. return t1 == null ? this.super$SassNumber$convertValueToMatch(other, $name, otherName) : t1;
  53046. },
  53047. coerce$2(newNumerators, newDenominators) {
  53048. var t1 = newNumerators.length === 1 && newDenominators.length === 0 ? this._coerceToUnit$1(newNumerators[0]) : null;
  53049. return t1 == null ? this.super$SassNumber$coerce(newNumerators, newDenominators, null) : t1;
  53050. },
  53051. coerceValue$3(newNumerators, newDenominators, $name) {
  53052. var t1 = newNumerators.length === 1 && newDenominators.length === 0 ? this._coerceValueToUnit$1(newNumerators[0]) : null;
  53053. return t1 == null ? this.super$SassNumber$coerceValue(newNumerators, newDenominators, $name) : t1;
  53054. },
  53055. coerceValueToUnit$2(unit, $name) {
  53056. var t1 = this._coerceValueToUnit$1(unit);
  53057. return t1 == null ? this.super$SassNumber$coerceValueToUnit(unit, $name) : t1;
  53058. },
  53059. coerceValueToUnit$1(unit) {
  53060. return this.coerceValueToUnit$2(unit, null);
  53061. },
  53062. _coerceToUnit$1(unit) {
  53063. var t1 = this._unit;
  53064. if (t1 === unit)
  53065. return this;
  53066. return A.NullableExtension_andThen(A.conversionFactor(unit, t1), new A.SingleUnitSassNumber__coerceToUnit_closure(this, unit));
  53067. },
  53068. _coerceValueToUnit$1(unit) {
  53069. return A.NullableExtension_andThen(A.conversionFactor(unit, this._unit), new A.SingleUnitSassNumber__coerceValueToUnit_closure(this));
  53070. },
  53071. multiplyUnits$3(value, otherNumerators, otherDenominators) {
  53072. var mutableOtherDenominators, t1 = {};
  53073. t1.value = value;
  53074. t1.newNumerators = otherNumerators;
  53075. mutableOtherDenominators = A._setArrayType(otherDenominators.slice(0), A._arrayInstanceType(otherDenominators));
  53076. A.removeFirstWhere(mutableOtherDenominators, new A.SingleUnitSassNumber_multiplyUnits_closure(t1, this), new A.SingleUnitSassNumber_multiplyUnits_closure0(t1, this));
  53077. return A.SassNumber_SassNumber$withUnits(t1.value, mutableOtherDenominators, t1.newNumerators);
  53078. },
  53079. unaryMinus$0() {
  53080. return new A.SingleUnitSassNumber(this._unit, -this._number$_value, null);
  53081. },
  53082. $eq(_, other) {
  53083. var factor;
  53084. if (other == null)
  53085. return false;
  53086. if (other instanceof A.SingleUnitSassNumber) {
  53087. factor = A.conversionFactor(other._unit, this._unit);
  53088. return factor != null && A.fuzzyEquals(this._number$_value * factor, other._number$_value);
  53089. } else
  53090. return false;
  53091. },
  53092. get$hashCode(_) {
  53093. var _this = this,
  53094. t1 = _this.hashCache;
  53095. return t1 == null ? _this.hashCache = A.fuzzyHashCode(_this._number$_value * _this.canonicalMultiplierForUnit$1(_this._unit)) : t1;
  53096. }
  53097. };
  53098. A.SingleUnitSassNumber__coerceToUnit_closure.prototype = {
  53099. call$1(factor) {
  53100. return new A.SingleUnitSassNumber(this.unit, this.$this._number$_value * factor, null);
  53101. },
  53102. $signature: 305
  53103. };
  53104. A.SingleUnitSassNumber__coerceValueToUnit_closure.prototype = {
  53105. call$1(factor) {
  53106. return this.$this._number$_value * factor;
  53107. },
  53108. $signature: 29
  53109. };
  53110. A.SingleUnitSassNumber_multiplyUnits_closure.prototype = {
  53111. call$1(denominator) {
  53112. var factor = A.conversionFactor(denominator, this.$this._unit);
  53113. if (factor == null)
  53114. return false;
  53115. this._box_0.value *= factor;
  53116. return true;
  53117. },
  53118. $signature: 8
  53119. };
  53120. A.SingleUnitSassNumber_multiplyUnits_closure0.prototype = {
  53121. call$0() {
  53122. var t1 = A._setArrayType([this.$this._unit], type$.JSArray_String),
  53123. t2 = this._box_0;
  53124. B.JSArray_methods.addAll$1(t1, t2.newNumerators);
  53125. t2.newNumerators = t1;
  53126. },
  53127. $signature: 0
  53128. };
  53129. A.UnitlessSassNumber.prototype = {
  53130. get$numeratorUnits(_) {
  53131. return B.List_empty;
  53132. },
  53133. get$denominatorUnits(_) {
  53134. return B.List_empty;
  53135. },
  53136. get$hasUnits() {
  53137. return false;
  53138. },
  53139. withValue$1(value) {
  53140. return new A.UnitlessSassNumber(value, null);
  53141. },
  53142. withSlash$2(numerator, denominator) {
  53143. return new A.UnitlessSassNumber(this._number$_value, new A.Tuple2(numerator, denominator, type$.Tuple2_SassNumber_SassNumber));
  53144. },
  53145. hasUnit$1(unit) {
  53146. return false;
  53147. },
  53148. hasCompatibleUnits$1(other) {
  53149. return other instanceof A.UnitlessSassNumber;
  53150. },
  53151. hasPossiblyCompatibleUnits$1(other) {
  53152. return other instanceof A.UnitlessSassNumber;
  53153. },
  53154. compatibleWithUnit$1(unit) {
  53155. return true;
  53156. },
  53157. coerceValueToMatch$1(other) {
  53158. return this._number$_value;
  53159. },
  53160. convertValueToMatch$3(other, $name, otherName) {
  53161. return other.get$hasUnits() ? this.super$SassNumber$convertValueToMatch(other, $name, otherName) : this._number$_value;
  53162. },
  53163. coerce$2(newNumerators, newDenominators) {
  53164. return A.SassNumber_SassNumber$withUnits(this._number$_value, newDenominators, newNumerators);
  53165. },
  53166. coerceValue$3(newNumerators, newDenominators, $name) {
  53167. return this._number$_value;
  53168. },
  53169. coerceValueToUnit$2(unit, $name) {
  53170. return this._number$_value;
  53171. },
  53172. coerceValueToUnit$1(unit) {
  53173. return this.coerceValueToUnit$2(unit, null);
  53174. },
  53175. greaterThan$1(other) {
  53176. var t1, t2;
  53177. if (other instanceof A.SassNumber) {
  53178. t1 = this._number$_value;
  53179. t2 = other._number$_value;
  53180. return t1 > t2 && !A.fuzzyEquals(t1, t2) ? B.SassBoolean_true : B.SassBoolean_false;
  53181. }
  53182. return this.super$SassNumber$greaterThan(other);
  53183. },
  53184. greaterThanOrEquals$1(other) {
  53185. var t1, t2;
  53186. if (other instanceof A.SassNumber) {
  53187. t1 = this._number$_value;
  53188. t2 = other._number$_value;
  53189. return t1 > t2 || A.fuzzyEquals(t1, t2) ? B.SassBoolean_true : B.SassBoolean_false;
  53190. }
  53191. return this.super$SassNumber$greaterThanOrEquals(other);
  53192. },
  53193. lessThan$1(other) {
  53194. var t1, t2;
  53195. if (other instanceof A.SassNumber) {
  53196. t1 = this._number$_value;
  53197. t2 = other._number$_value;
  53198. return t1 < t2 && !A.fuzzyEquals(t1, t2) ? B.SassBoolean_true : B.SassBoolean_false;
  53199. }
  53200. return this.super$SassNumber$lessThan(other);
  53201. },
  53202. lessThanOrEquals$1(other) {
  53203. var t1, t2;
  53204. if (other instanceof A.SassNumber) {
  53205. t1 = this._number$_value;
  53206. t2 = other._number$_value;
  53207. return t1 < t2 || A.fuzzyEquals(t1, t2) ? B.SassBoolean_true : B.SassBoolean_false;
  53208. }
  53209. return this.super$SassNumber$lessThanOrEquals(other);
  53210. },
  53211. modulo$1(other) {
  53212. if (other instanceof A.SassNumber)
  53213. return other.withValue$1(A.moduloLikeSass(this._number$_value, other._number$_value));
  53214. return this.super$SassNumber$modulo(other);
  53215. },
  53216. plus$1(other) {
  53217. if (other instanceof A.SassNumber)
  53218. return other.withValue$1(this._number$_value + other._number$_value);
  53219. return this.super$SassNumber$plus(other);
  53220. },
  53221. minus$1(other) {
  53222. if (other instanceof A.SassNumber)
  53223. return other.withValue$1(this._number$_value - other._number$_value);
  53224. return this.super$SassNumber$minus(other);
  53225. },
  53226. times$1(other) {
  53227. if (other instanceof A.SassNumber)
  53228. return other.withValue$1(this._number$_value * other._number$_value);
  53229. return this.super$SassNumber$times(other);
  53230. },
  53231. dividedBy$1(other) {
  53232. var t1, t2;
  53233. if (other instanceof A.SassNumber) {
  53234. t1 = this._number$_value / other._number$_value;
  53235. if (other.get$hasUnits()) {
  53236. t2 = other.get$denominatorUnits(other);
  53237. t2 = A.SassNumber_SassNumber$withUnits(t1, other.get$numeratorUnits(other), t2);
  53238. t1 = t2;
  53239. } else
  53240. t1 = new A.UnitlessSassNumber(t1, null);
  53241. return t1;
  53242. }
  53243. return this.super$SassNumber$dividedBy(other);
  53244. },
  53245. unaryMinus$0() {
  53246. return new A.UnitlessSassNumber(-this._number$_value, null);
  53247. },
  53248. $eq(_, other) {
  53249. if (other == null)
  53250. return false;
  53251. return other instanceof A.UnitlessSassNumber && A.fuzzyEquals(this._number$_value, other._number$_value);
  53252. },
  53253. get$hashCode(_) {
  53254. var t1 = this.hashCache;
  53255. return t1 == null ? this.hashCache = A.fuzzyHashCode(this._number$_value) : t1;
  53256. }
  53257. };
  53258. A.SassString.prototype = {
  53259. get$_sassLength() {
  53260. var t1, result, _this = this,
  53261. value = _this.__SassString__sassLength_FI;
  53262. if (value === $) {
  53263. t1 = new A.Runes(_this._string$_text);
  53264. result = t1.get$length(t1);
  53265. _this.__SassString__sassLength_FI !== $ && A.throwUnnamedLateFieldADI();
  53266. _this.__SassString__sassLength_FI = result;
  53267. value = result;
  53268. }
  53269. return value;
  53270. },
  53271. get$isSpecialNumber() {
  53272. var t1, t2;
  53273. if (this._hasQuotes)
  53274. return false;
  53275. t1 = this._string$_text;
  53276. if (t1.length < 6)
  53277. return false;
  53278. t2 = B.JSString_methods._codeUnitAt$1(t1, 0) | 32;
  53279. if (t2 === 99) {
  53280. t2 = B.JSString_methods._codeUnitAt$1(t1, 1) | 32;
  53281. if (t2 === 108) {
  53282. if ((B.JSString_methods._codeUnitAt$1(t1, 2) | 32) !== 97)
  53283. return false;
  53284. if ((B.JSString_methods._codeUnitAt$1(t1, 3) | 32) !== 109)
  53285. return false;
  53286. if ((B.JSString_methods._codeUnitAt$1(t1, 4) | 32) !== 112)
  53287. return false;
  53288. return B.JSString_methods._codeUnitAt$1(t1, 5) === 40;
  53289. } else if (t2 === 97) {
  53290. if ((B.JSString_methods._codeUnitAt$1(t1, 2) | 32) !== 108)
  53291. return false;
  53292. if ((B.JSString_methods._codeUnitAt$1(t1, 3) | 32) !== 99)
  53293. return false;
  53294. return B.JSString_methods._codeUnitAt$1(t1, 4) === 40;
  53295. } else
  53296. return false;
  53297. } else if (t2 === 118) {
  53298. if ((B.JSString_methods._codeUnitAt$1(t1, 1) | 32) !== 97)
  53299. return false;
  53300. if ((B.JSString_methods._codeUnitAt$1(t1, 2) | 32) !== 114)
  53301. return false;
  53302. return B.JSString_methods._codeUnitAt$1(t1, 3) === 40;
  53303. } else if (t2 === 101) {
  53304. if ((B.JSString_methods._codeUnitAt$1(t1, 1) | 32) !== 110)
  53305. return false;
  53306. if ((B.JSString_methods._codeUnitAt$1(t1, 2) | 32) !== 118)
  53307. return false;
  53308. return B.JSString_methods._codeUnitAt$1(t1, 3) === 40;
  53309. } else if (t2 === 109) {
  53310. t2 = B.JSString_methods._codeUnitAt$1(t1, 1) | 32;
  53311. if (t2 === 97) {
  53312. if ((B.JSString_methods._codeUnitAt$1(t1, 2) | 32) !== 120)
  53313. return false;
  53314. return B.JSString_methods._codeUnitAt$1(t1, 3) === 40;
  53315. } else if (t2 === 105) {
  53316. if ((B.JSString_methods._codeUnitAt$1(t1, 2) | 32) !== 110)
  53317. return false;
  53318. return B.JSString_methods._codeUnitAt$1(t1, 3) === 40;
  53319. } else
  53320. return false;
  53321. } else
  53322. return false;
  53323. },
  53324. get$isVar() {
  53325. if (this._hasQuotes)
  53326. return false;
  53327. var t1 = this._string$_text;
  53328. if (t1.length < 8)
  53329. return false;
  53330. return (B.JSString_methods._codeUnitAt$1(t1, 0) | 32) === 118 && (B.JSString_methods._codeUnitAt$1(t1, 1) | 32) === 97 && (B.JSString_methods._codeUnitAt$1(t1, 2) | 32) === 114 && B.JSString_methods._codeUnitAt$1(t1, 3) === 40;
  53331. },
  53332. get$isBlank() {
  53333. return !this._hasQuotes && this._string$_text.length === 0;
  53334. },
  53335. accept$1$1(visitor) {
  53336. var t1 = visitor._quote && this._hasQuotes,
  53337. t2 = this._string$_text;
  53338. if (t1)
  53339. visitor._visitQuotedString$1(t2);
  53340. else
  53341. visitor._visitUnquotedString$1(t2);
  53342. return null;
  53343. },
  53344. accept$1(visitor) {
  53345. return this.accept$1$1(visitor, type$.dynamic);
  53346. },
  53347. assertString$1($name) {
  53348. return this;
  53349. },
  53350. plus$1(other) {
  53351. var t1 = this._string$_text,
  53352. t2 = this._hasQuotes;
  53353. if (other instanceof A.SassString)
  53354. return new A.SassString(t1 + other._string$_text, t2);
  53355. else
  53356. return new A.SassString(t1 + A.serializeValue(other, false, true), t2);
  53357. },
  53358. $eq(_, other) {
  53359. if (other == null)
  53360. return false;
  53361. return other instanceof A.SassString && this._string$_text === other._string$_text;
  53362. },
  53363. get$hashCode(_) {
  53364. var t1 = this._hashCache;
  53365. return t1 == null ? this._hashCache = B.JSString_methods.get$hashCode(this._string$_text) : t1;
  53366. }
  53367. };
  53368. A.AnySelectorVisitor.prototype = {
  53369. visitComplexSelector$1(complex) {
  53370. return B.JSArray_methods.any$1(complex.components, new A.AnySelectorVisitor_visitComplexSelector_closure(this));
  53371. },
  53372. visitCompoundSelector$1(compound) {
  53373. return B.JSArray_methods.any$1(compound.components, new A.AnySelectorVisitor_visitCompoundSelector_closure(this));
  53374. },
  53375. visitPseudoSelector$1(pseudo) {
  53376. var selector = pseudo.selector;
  53377. return selector == null ? false : this.visitSelectorList$1(selector);
  53378. },
  53379. visitSelectorList$1(list) {
  53380. return B.JSArray_methods.any$1(list.components, this.get$visitComplexSelector());
  53381. },
  53382. visitAttributeSelector$1(attribute) {
  53383. return false;
  53384. },
  53385. visitClassSelector$1(klass) {
  53386. return false;
  53387. },
  53388. visitIDSelector$1(id) {
  53389. return false;
  53390. },
  53391. visitParentSelector$1($parent) {
  53392. return false;
  53393. },
  53394. visitPlaceholderSelector$1(placeholder) {
  53395. return false;
  53396. },
  53397. visitTypeSelector$1(type) {
  53398. return false;
  53399. },
  53400. visitUniversalSelector$1(universal) {
  53401. return false;
  53402. }
  53403. };
  53404. A.AnySelectorVisitor_visitComplexSelector_closure.prototype = {
  53405. call$1(component) {
  53406. return this.$this.visitCompoundSelector$1(component.selector);
  53407. },
  53408. $signature: 48
  53409. };
  53410. A.AnySelectorVisitor_visitCompoundSelector_closure.prototype = {
  53411. call$1(simple) {
  53412. return simple.accept$1(this.$this);
  53413. },
  53414. $signature: 14
  53415. };
  53416. A._EvaluateVisitor0.prototype = {
  53417. _EvaluateVisitor$6$functions$importCache$logger$nodeImporter$quietDeps$sourceMap0(functions, importCache, logger, nodeImporter, quietDeps, sourceMap) {
  53418. var t2, metaModule, t3, _i, module, $function, t4, _this = this,
  53419. _s20_ = "$name, $module: null",
  53420. _s9_ = "sass:meta",
  53421. t1 = type$.JSArray_AsyncBuiltInCallable,
  53422. metaFunctions = A._setArrayType([A.BuiltInCallable$function("global-variable-exists", _s20_, new A._EvaluateVisitor_closure9(_this), _s9_), A.BuiltInCallable$function("variable-exists", "$name", new A._EvaluateVisitor_closure10(_this), _s9_), A.BuiltInCallable$function("function-exists", _s20_, new A._EvaluateVisitor_closure11(_this), _s9_), A.BuiltInCallable$function("mixin-exists", _s20_, new A._EvaluateVisitor_closure12(_this), _s9_), A.BuiltInCallable$function("content-exists", "", new A._EvaluateVisitor_closure13(_this), _s9_), A.BuiltInCallable$function("module-variables", "$module", new A._EvaluateVisitor_closure14(_this), _s9_), A.BuiltInCallable$function("module-functions", "$module", new A._EvaluateVisitor_closure15(_this), _s9_), A.BuiltInCallable$function("get-function", "$name, $css: false, $module: null", new A._EvaluateVisitor_closure16(_this), _s9_), new A.AsyncBuiltInCallable("call", A.ScssParser$("@function call($function, $args...) {", null, _s9_).parseArgumentDeclaration$0(), new A._EvaluateVisitor_closure17(_this))], t1),
  53423. metaMixins = A._setArrayType([A.AsyncBuiltInCallable$mixin("load-css", "$url, $with: null", new A._EvaluateVisitor_closure18(_this), _s9_)], t1);
  53424. t1 = type$.AsyncBuiltInCallable;
  53425. t2 = A.List_List$of($.$get$global(), true, t1);
  53426. B.JSArray_methods.addAll$1(t2, $.$get$local());
  53427. B.JSArray_methods.addAll$1(t2, metaFunctions);
  53428. metaModule = A.BuiltInModule$("meta", t2, metaMixins, null, t1);
  53429. for (t1 = A.List_List$of($.$get$coreModules(), true, type$.BuiltInModule_AsyncCallable), t1.push(metaModule), t2 = t1.length, t3 = _this._async_evaluate$_builtInModules, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
  53430. module = t1[_i];
  53431. t3.$indexSet(0, module.url, module);
  53432. }
  53433. t1 = A._setArrayType([], type$.JSArray_AsyncCallable);
  53434. B.JSArray_methods.addAll$1(t1, $.$get$globalFunctions());
  53435. B.JSArray_methods.addAll$1(t1, metaFunctions);
  53436. for (t2 = t1.length, t3 = _this._async_evaluate$_builtInFunctions, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
  53437. $function = t1[_i];
  53438. t4 = J.get$name$x($function);
  53439. t3.$indexSet(0, A.stringReplaceAllUnchecked(t4, "_", "-"), $function);
  53440. }
  53441. },
  53442. run$2(_, importer, node) {
  53443. return this.run$body$_EvaluateVisitor(0, importer, node);
  53444. },
  53445. run$body$_EvaluateVisitor(_, importer, node) {
  53446. var $async$goto = 0,
  53447. $async$completer = A._makeAsyncAwaitCompleter(type$.EvaluateResult),
  53448. $async$returnValue, $async$self = this, t1;
  53449. var $async$run$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  53450. if ($async$errorCode === 1)
  53451. return A._asyncRethrow($async$result, $async$completer);
  53452. while (true)
  53453. switch ($async$goto) {
  53454. case 0:
  53455. // Function start
  53456. t1 = type$.nullable_Object;
  53457. $async$returnValue = A.runZoned(new A._EvaluateVisitor_run_closure0($async$self, node, importer), A.LinkedHashMap_LinkedHashMap$_literal([B.Symbol__evaluationContext, new A._EvaluationContext0($async$self, node)], t1, t1), type$.FutureOr_EvaluateResult);
  53458. // goto return
  53459. $async$goto = 1;
  53460. break;
  53461. case 1:
  53462. // return
  53463. return A._asyncReturn($async$returnValue, $async$completer);
  53464. }
  53465. });
  53466. return A._asyncStartSync($async$run$2, $async$completer);
  53467. },
  53468. _async_evaluate$_assertInModule$1$2(value, $name) {
  53469. if (value != null)
  53470. return value;
  53471. throw A.wrapException(A.StateError$("Can't access " + $name + " outside of a module."));
  53472. },
  53473. _async_evaluate$_assertInModule$2(value, $name) {
  53474. return this._async_evaluate$_assertInModule$1$2(value, $name, type$.dynamic);
  53475. },
  53476. _async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors) {
  53477. return this._loadModule$body$_EvaluateVisitor(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors);
  53478. },
  53479. _async_evaluate$_loadModule$5$configuration(url, stackFrame, nodeWithSpan, callback, configuration) {
  53480. return this._async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, configuration, false);
  53481. },
  53482. _async_evaluate$_loadModule$4(url, stackFrame, nodeWithSpan, callback) {
  53483. return this._async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, null, false);
  53484. },
  53485. _loadModule$body$_EvaluateVisitor(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors) {
  53486. var $async$goto = 0,
  53487. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  53488. $async$returnValue, $async$self = this, t1, t2, builtInModule;
  53489. var $async$_async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  53490. if ($async$errorCode === 1)
  53491. return A._asyncRethrow($async$result, $async$completer);
  53492. while (true)
  53493. switch ($async$goto) {
  53494. case 0:
  53495. // Function start
  53496. builtInModule = $async$self._async_evaluate$_builtInModules.$index(0, url);
  53497. $async$goto = builtInModule != null ? 3 : 4;
  53498. break;
  53499. case 3:
  53500. // then
  53501. if (configuration instanceof A.ExplicitConfiguration) {
  53502. t1 = namesInErrors ? "Built-in module " + url.toString$0(0) + " can't be configured." : "Built-in modules can't be configured.";
  53503. t2 = configuration.nodeWithSpan;
  53504. throw A.wrapException($async$self._async_evaluate$_exception$2(t1, t2.get$span(t2)));
  53505. }
  53506. $async$goto = 5;
  53507. return A._asyncAwait($async$self._addExceptionSpanAsync$1$2(nodeWithSpan, new A._EvaluateVisitor__loadModule_closure1(callback, builtInModule), type$.void), $async$_async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors);
  53508. case 5:
  53509. // returning from await.
  53510. // goto return
  53511. $async$goto = 1;
  53512. break;
  53513. case 4:
  53514. // join
  53515. $async$goto = 6;
  53516. return A._asyncAwait($async$self._async_evaluate$_withStackFrame$1$3(stackFrame, nodeWithSpan, new A._EvaluateVisitor__loadModule_closure2($async$self, url, nodeWithSpan, baseUrl, namesInErrors, configuration, callback), type$.Null), $async$_async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors);
  53517. case 6:
  53518. // returning from await.
  53519. case 1:
  53520. // return
  53521. return A._asyncReturn($async$returnValue, $async$completer);
  53522. }
  53523. });
  53524. return A._asyncStartSync($async$_async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors, $async$completer);
  53525. },
  53526. _async_evaluate$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, configuration, namesInErrors, nodeWithSpan) {
  53527. return this._execute$body$_EvaluateVisitor(importer, stylesheet, configuration, namesInErrors, nodeWithSpan);
  53528. },
  53529. _async_evaluate$_execute$2(importer, stylesheet) {
  53530. return this._async_evaluate$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, null, false, null);
  53531. },
  53532. _execute$body$_EvaluateVisitor(importer, stylesheet, configuration, namesInErrors, nodeWithSpan) {
  53533. var $async$goto = 0,
  53534. $async$completer = A._makeAsyncAwaitCompleter(type$.Module_AsyncCallable),
  53535. $async$returnValue, $async$self = this, alreadyLoaded, currentConfiguration, t2, t3, message, existingSpan, configurationSpan, environment, css, extensionStore, module, t1, url;
  53536. var $async$_async_evaluate$_execute$5$configuration$namesInErrors$nodeWithSpan = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  53537. if ($async$errorCode === 1)
  53538. return A._asyncRethrow($async$result, $async$completer);
  53539. while (true)
  53540. switch ($async$goto) {
  53541. case 0:
  53542. // Function start
  53543. t1 = stylesheet.span;
  53544. url = t1.get$sourceUrl(t1);
  53545. t1 = $async$self._async_evaluate$_modules;
  53546. alreadyLoaded = t1.$index(0, url);
  53547. if (alreadyLoaded != null) {
  53548. t1 = configuration == null;
  53549. currentConfiguration = t1 ? $async$self._async_evaluate$_configuration : configuration;
  53550. t2 = $async$self._async_evaluate$_moduleConfigurations.$index(0, url);
  53551. t3 = t2.__originalConfiguration;
  53552. t2 = t3 == null ? t2 : t3;
  53553. t3 = currentConfiguration.__originalConfiguration;
  53554. if (t2 !== (t3 == null ? currentConfiguration : t3) && currentConfiguration instanceof A.ExplicitConfiguration) {
  53555. message = namesInErrors ? $.$get$context().prettyUri$1(url) + string$.x20was_a : string$.This_mw;
  53556. t2 = $async$self._async_evaluate$_moduleNodes.$index(0, url);
  53557. existingSpan = t2 == null ? null : J.get$span$z(t2);
  53558. if (t1) {
  53559. t1 = currentConfiguration.nodeWithSpan;
  53560. configurationSpan = t1.get$span(t1);
  53561. } else
  53562. configurationSpan = null;
  53563. t1 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
  53564. if (existingSpan != null)
  53565. t1.$indexSet(0, existingSpan, "original load");
  53566. if (configurationSpan != null)
  53567. t1.$indexSet(0, configurationSpan, "configuration");
  53568. throw A.wrapException(t1.get$isEmpty(t1) ? $async$self._async_evaluate$_exception$1(message) : $async$self._async_evaluate$_multiSpanException$3(message, "new load", t1));
  53569. }
  53570. $async$returnValue = alreadyLoaded;
  53571. // goto return
  53572. $async$goto = 1;
  53573. break;
  53574. }
  53575. environment = A.AsyncEnvironment$();
  53576. css = A._Cell$();
  53577. extensionStore = A.ExtensionStore$();
  53578. $async$goto = 3;
  53579. return A._asyncAwait($async$self._async_evaluate$_withEnvironment$1$2(environment, new A._EvaluateVisitor__execute_closure0($async$self, importer, stylesheet, extensionStore, configuration, css), type$.Null), $async$_async_evaluate$_execute$5$configuration$namesInErrors$nodeWithSpan);
  53580. case 3:
  53581. // returning from await.
  53582. module = environment.toModule$2(css._readLocal$0(), extensionStore);
  53583. if (url != null) {
  53584. t1.$indexSet(0, url, module);
  53585. $async$self._async_evaluate$_moduleConfigurations.$indexSet(0, url, $async$self._async_evaluate$_configuration);
  53586. if (nodeWithSpan != null)
  53587. $async$self._async_evaluate$_moduleNodes.$indexSet(0, url, nodeWithSpan);
  53588. }
  53589. $async$returnValue = module;
  53590. // goto return
  53591. $async$goto = 1;
  53592. break;
  53593. case 1:
  53594. // return
  53595. return A._asyncReturn($async$returnValue, $async$completer);
  53596. }
  53597. });
  53598. return A._asyncStartSync($async$_async_evaluate$_execute$5$configuration$namesInErrors$nodeWithSpan, $async$completer);
  53599. },
  53600. _async_evaluate$_addOutOfOrderImports$0() {
  53601. var t1, t2, _this = this, _s5_ = "_root",
  53602. _s13_ = "_endOfImports",
  53603. outOfOrderImports = _this._async_evaluate$_outOfOrderImports;
  53604. if (outOfOrderImports == null)
  53605. return _this._async_evaluate$_assertInModule$2(_this._async_evaluate$__root, _s5_).children;
  53606. t1 = _this._async_evaluate$_assertInModule$2(_this._async_evaluate$__root, _s5_).children;
  53607. t1 = A.List_List$of(A.SubListIterable$(t1, 0, A.checkNotNullable(_this._async_evaluate$_assertInModule$2(_this._async_evaluate$__endOfImports, _s13_), "count", type$.int), t1.$ti._eval$1("ListMixin.E")), true, type$.ModifiableCssNode);
  53608. B.JSArray_methods.addAll$1(t1, outOfOrderImports);
  53609. t2 = _this._async_evaluate$_assertInModule$2(_this._async_evaluate$__root, _s5_).children;
  53610. B.JSArray_methods.addAll$1(t1, A.SubListIterable$(t2, _this._async_evaluate$_assertInModule$2(_this._async_evaluate$__endOfImports, _s13_), null, t2.$ti._eval$1("ListMixin.E")));
  53611. return t1;
  53612. },
  53613. _async_evaluate$_combineCss$2$clone(root, clone) {
  53614. var selectors, unsatisfiedExtension, sortedModules, t1, imports, css, t2, t3, statements, index, _this = this;
  53615. if (!B.JSArray_methods.any$1(root.get$upstream(), new A._EvaluateVisitor__combineCss_closure2())) {
  53616. selectors = root.get$extensionStore().get$simpleSelectors();
  53617. unsatisfiedExtension = A.firstOrNull(root.get$extensionStore().extensionsWhereTarget$1(new A._EvaluateVisitor__combineCss_closure3(selectors)));
  53618. if (unsatisfiedExtension != null)
  53619. _this._async_evaluate$_throwForUnsatisfiedExtension$1(unsatisfiedExtension);
  53620. return root.get$css(root);
  53621. }
  53622. sortedModules = _this._async_evaluate$_topologicalModules$1(root);
  53623. if (clone) {
  53624. t1 = sortedModules.$ti._eval$1("MappedListIterable<ListMixin.E,Module<AsyncCallable>>");
  53625. sortedModules = A.List_List$of(new A.MappedListIterable(sortedModules, new A._EvaluateVisitor__combineCss_closure4(), t1), true, t1._eval$1("ListIterable.E"));
  53626. }
  53627. _this._async_evaluate$_extendModules$1(sortedModules);
  53628. t1 = type$.JSArray_CssNode;
  53629. imports = A._setArrayType([], t1);
  53630. css = A._setArrayType([], t1);
  53631. for (t1 = J.get$reversed$ax(sortedModules), t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) {
  53632. t3 = t1.__internal$_current;
  53633. if (t3 == null)
  53634. t3 = t2._as(t3);
  53635. t3 = t3.get$css(t3);
  53636. statements = t3.get$children(t3);
  53637. index = _this._async_evaluate$_indexAfterImports$1(statements);
  53638. t3 = J.getInterceptor$ax(statements);
  53639. B.JSArray_methods.addAll$1(imports, t3.getRange$2(statements, 0, index));
  53640. B.JSArray_methods.addAll$1(css, t3.getRange$2(statements, index, t3.get$length(statements)));
  53641. }
  53642. t1 = B.JSArray_methods.$add(imports, css);
  53643. t2 = root.get$css(root);
  53644. return new A.CssStylesheet(new A.UnmodifiableListView(t1, type$.UnmodifiableListView_CssNode), t2.get$span(t2));
  53645. },
  53646. _async_evaluate$_combineCss$1(root) {
  53647. return this._async_evaluate$_combineCss$2$clone(root, false);
  53648. },
  53649. _async_evaluate$_extendModules$1(sortedModules) {
  53650. var t1, t2, originalSelectors, $self, t3, t4, _i, upstream, url,
  53651. downstreamExtensionStores = A.LinkedHashMap_LinkedHashMap$_empty(type$.Uri, type$.List_ExtensionStore),
  53652. unsatisfiedExtensions = new A._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_Extension);
  53653. for (t1 = J.get$iterator$ax(sortedModules); t1.moveNext$0();) {
  53654. t2 = t1.get$current(t1);
  53655. originalSelectors = t2.get$extensionStore().get$simpleSelectors().toSet$0(0);
  53656. unsatisfiedExtensions.addAll$1(0, t2.get$extensionStore().extensionsWhereTarget$1(new A._EvaluateVisitor__extendModules_closure1(originalSelectors)));
  53657. $self = downstreamExtensionStores.$index(0, t2.get$url(t2));
  53658. t3 = t2.get$extensionStore().get$addExtensions();
  53659. if ($self != null)
  53660. t3.call$1($self);
  53661. t3 = t2.get$extensionStore();
  53662. if (t3.get$isEmpty(t3))
  53663. continue;
  53664. for (t3 = t2.get$upstream(), t4 = t3.length, _i = 0; _i < t3.length; t3.length === t4 || (0, A.throwConcurrentModificationError)(t3), ++_i) {
  53665. upstream = t3[_i];
  53666. url = upstream.get$url(upstream);
  53667. if (url == null)
  53668. continue;
  53669. J.add$1$ax(downstreamExtensionStores.putIfAbsent$2(url, new A._EvaluateVisitor__extendModules_closure2()), t2.get$extensionStore());
  53670. }
  53671. unsatisfiedExtensions.removeAll$1(t2.get$extensionStore().extensionsWhereTarget$1(originalSelectors.get$contains(originalSelectors)));
  53672. }
  53673. if (unsatisfiedExtensions._collection$_length !== 0)
  53674. this._async_evaluate$_throwForUnsatisfiedExtension$1(unsatisfiedExtensions.get$first(unsatisfiedExtensions));
  53675. },
  53676. _async_evaluate$_throwForUnsatisfiedExtension$1(extension) {
  53677. throw A.wrapException(A.SassException$(string$.The_ta + extension.target.toString$0(0) + ' !optional" to avoid this error.', extension.span));
  53678. },
  53679. _async_evaluate$_topologicalModules$1(root) {
  53680. var t1 = type$.Module_AsyncCallable,
  53681. sorted = A.QueueList$(null, t1);
  53682. new A._EvaluateVisitor__topologicalModules_visitModule0(A.LinkedHashSet_LinkedHashSet$_empty(t1), sorted).call$1(root);
  53683. return sorted;
  53684. },
  53685. _async_evaluate$_indexAfterImports$1(statements) {
  53686. var t1, t2, t3, lastImport, i, statement;
  53687. for (t1 = J.getInterceptor$asx(statements), t2 = type$.CssComment, t3 = type$.CssImport, lastImport = -1, i = 0; i < t1.get$length(statements); ++i) {
  53688. statement = t1.$index(statements, i);
  53689. if (t3._is(statement))
  53690. lastImport = i;
  53691. else if (!t2._is(statement))
  53692. break;
  53693. }
  53694. return lastImport + 1;
  53695. },
  53696. visitStylesheet$1(node) {
  53697. return this.visitStylesheet$body$_EvaluateVisitor(node);
  53698. },
  53699. visitStylesheet$body$_EvaluateVisitor(node) {
  53700. var $async$goto = 0,
  53701. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
  53702. $async$returnValue, $async$self = this, t1, t2, _i;
  53703. var $async$visitStylesheet$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  53704. if ($async$errorCode === 1)
  53705. return A._asyncRethrow($async$result, $async$completer);
  53706. while (true)
  53707. switch ($async$goto) {
  53708. case 0:
  53709. // Function start
  53710. t1 = node.children, t2 = t1.length, _i = 0;
  53711. case 3:
  53712. // for condition
  53713. if (!(_i < t2)) {
  53714. // goto after for
  53715. $async$goto = 5;
  53716. break;
  53717. }
  53718. $async$goto = 6;
  53719. return A._asyncAwait(t1[_i].accept$1($async$self), $async$visitStylesheet$1);
  53720. case 6:
  53721. // returning from await.
  53722. case 4:
  53723. // for update
  53724. ++_i;
  53725. // goto for condition
  53726. $async$goto = 3;
  53727. break;
  53728. case 5:
  53729. // after for
  53730. $async$returnValue = null;
  53731. // goto return
  53732. $async$goto = 1;
  53733. break;
  53734. case 1:
  53735. // return
  53736. return A._asyncReturn($async$returnValue, $async$completer);
  53737. }
  53738. });
  53739. return A._asyncStartSync($async$visitStylesheet$1, $async$completer);
  53740. },
  53741. visitAtRootRule$1(node) {
  53742. return this.visitAtRootRule$body$_EvaluateVisitor(node);
  53743. },
  53744. visitAtRootRule$body$_EvaluateVisitor(node) {
  53745. var $async$goto = 0,
  53746. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
  53747. $async$returnValue, $async$self = this, t1, grandparent, root, innerCopy, t2, outerCopy, t3, copy, unparsedQuery, query, $parent, included, $async$temp1, $async$temp2;
  53748. var $async$visitAtRootRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  53749. if ($async$errorCode === 1)
  53750. return A._asyncRethrow($async$result, $async$completer);
  53751. while (true)
  53752. switch ($async$goto) {
  53753. case 0:
  53754. // Function start
  53755. unparsedQuery = node.query;
  53756. $async$goto = unparsedQuery != null ? 3 : 5;
  53757. break;
  53758. case 3:
  53759. // then
  53760. $async$temp1 = unparsedQuery;
  53761. $async$temp2 = A;
  53762. $async$goto = 6;
  53763. return A._asyncAwait($async$self._async_evaluate$_performInterpolation$2$warnForColor(unparsedQuery, true), $async$visitAtRootRule$1);
  53764. case 6:
  53765. // returning from await.
  53766. $async$result = $async$self._async_evaluate$_adjustParseError$2($async$temp1, new $async$temp2._EvaluateVisitor_visitAtRootRule_closure2($async$self, $async$result));
  53767. // goto join
  53768. $async$goto = 4;
  53769. break;
  53770. case 5:
  53771. // else
  53772. $async$result = B.AtRootQuery_UsS;
  53773. case 4:
  53774. // join
  53775. query = $async$result;
  53776. $parent = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent");
  53777. included = A._setArrayType([], type$.JSArray_ModifiableCssParentNode);
  53778. for (t1 = type$.CssStylesheet; !t1._is($parent); $parent = grandparent) {
  53779. if (!query.excludes$1($parent))
  53780. included.push($parent);
  53781. grandparent = $parent._parent;
  53782. if (grandparent == null)
  53783. throw A.wrapException(A.StateError$(string$.CssNod));
  53784. }
  53785. root = $async$self._async_evaluate$_trimIncluded$1(included);
  53786. $async$goto = root === $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent") ? 7 : 8;
  53787. break;
  53788. case 7:
  53789. // then
  53790. $async$goto = 9;
  53791. return A._asyncAwait($async$self._async_evaluate$_environment.scope$1$2$when(new A._EvaluateVisitor_visitAtRootRule_closure3($async$self, node), node.hasDeclarations, type$.Null), $async$visitAtRootRule$1);
  53792. case 9:
  53793. // returning from await.
  53794. $async$returnValue = null;
  53795. // goto return
  53796. $async$goto = 1;
  53797. break;
  53798. case 8:
  53799. // join
  53800. if (included.length !== 0) {
  53801. innerCopy = B.JSArray_methods.get$first(included).copyWithoutChildren$0();
  53802. for (t1 = A.SubListIterable$(included, 1, null, type$.ModifiableCssParentNode), t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = A._instanceType(t1)._precomputed1, outerCopy = innerCopy; t1.moveNext$0(); outerCopy = copy) {
  53803. t3 = t1.__internal$_current;
  53804. copy = (t3 == null ? t2._as(t3) : t3).copyWithoutChildren$0();
  53805. copy.addChild$1(outerCopy);
  53806. }
  53807. root.addChild$1(outerCopy);
  53808. } else
  53809. innerCopy = root;
  53810. $async$goto = 10;
  53811. return A._asyncAwait($async$self._async_evaluate$_scopeForAtRoot$4(node, innerCopy, query, included).call$1(new A._EvaluateVisitor_visitAtRootRule_closure4($async$self, node)), $async$visitAtRootRule$1);
  53812. case 10:
  53813. // returning from await.
  53814. $async$returnValue = null;
  53815. // goto return
  53816. $async$goto = 1;
  53817. break;
  53818. case 1:
  53819. // return
  53820. return A._asyncReturn($async$returnValue, $async$completer);
  53821. }
  53822. });
  53823. return A._asyncStartSync($async$visitAtRootRule$1, $async$completer);
  53824. },
  53825. _async_evaluate$_trimIncluded$1(nodes) {
  53826. var $parent, t1, innermostContiguous, i, t2, grandparent, root, _this = this, _null = null, _s5_ = "_root",
  53827. _s22_ = " to be an ancestor of ";
  53828. if (nodes.length === 0)
  53829. return _this._async_evaluate$_assertInModule$2(_this._async_evaluate$__root, _s5_);
  53830. $parent = _this._async_evaluate$_assertInModule$2(_this._async_evaluate$__parent, "__parent");
  53831. for (t1 = nodes.length, innermostContiguous = _null, i = 0; i < t1; ++i, $parent = grandparent) {
  53832. for (; t2 = nodes[i], $parent !== t2; innermostContiguous = _null, $parent = grandparent) {
  53833. grandparent = $parent._parent;
  53834. if (grandparent == null)
  53835. throw A.wrapException(A.ArgumentError$("Expected " + t2.toString$0(0) + _s22_ + _this.toString$0(0) + ".", _null));
  53836. }
  53837. if (innermostContiguous == null)
  53838. innermostContiguous = i;
  53839. grandparent = $parent._parent;
  53840. if (grandparent == null)
  53841. throw A.wrapException(A.ArgumentError$("Expected " + t2.toString$0(0) + _s22_ + _this.toString$0(0) + ".", _null));
  53842. }
  53843. if ($parent !== _this._async_evaluate$_assertInModule$2(_this._async_evaluate$__root, _s5_))
  53844. return _this._async_evaluate$_assertInModule$2(_this._async_evaluate$__root, _s5_);
  53845. innermostContiguous.toString;
  53846. root = nodes[innermostContiguous];
  53847. B.JSArray_methods.removeRange$2(nodes, innermostContiguous, nodes.length);
  53848. return root;
  53849. },
  53850. _async_evaluate$_scopeForAtRoot$4(node, newParent, query, included) {
  53851. var _this = this,
  53852. scope = new A._EvaluateVisitor__scopeForAtRoot_closure5(_this, newParent, node),
  53853. t1 = query._all || query._at_root_query$_rule;
  53854. if (t1 !== query.include)
  53855. scope = new A._EvaluateVisitor__scopeForAtRoot_closure6(_this, scope);
  53856. if (_this._async_evaluate$_mediaQueries != null && query.excludesName$1("media"))
  53857. scope = new A._EvaluateVisitor__scopeForAtRoot_closure7(_this, scope);
  53858. if (_this._async_evaluate$_inKeyframes && query.excludesName$1("keyframes"))
  53859. scope = new A._EvaluateVisitor__scopeForAtRoot_closure8(_this, scope);
  53860. return _this._async_evaluate$_inUnknownAtRule && !B.JSArray_methods.any$1(included, new A._EvaluateVisitor__scopeForAtRoot_closure9()) ? new A._EvaluateVisitor__scopeForAtRoot_closure10(_this, scope) : scope;
  53861. },
  53862. visitContentBlock$1(node) {
  53863. return A.throwExpression(A.UnsupportedError$(string$.Evalua));
  53864. },
  53865. visitContentRule$1(node) {
  53866. return this.visitContentRule$body$_EvaluateVisitor(node);
  53867. },
  53868. visitContentRule$body$_EvaluateVisitor(node) {
  53869. var $async$goto = 0,
  53870. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
  53871. $async$returnValue, $async$self = this, $content;
  53872. var $async$visitContentRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  53873. if ($async$errorCode === 1)
  53874. return A._asyncRethrow($async$result, $async$completer);
  53875. while (true)
  53876. switch ($async$goto) {
  53877. case 0:
  53878. // Function start
  53879. $content = $async$self._async_evaluate$_environment._async_environment$_content;
  53880. if ($content == null) {
  53881. $async$returnValue = null;
  53882. // goto return
  53883. $async$goto = 1;
  53884. break;
  53885. }
  53886. $async$goto = 3;
  53887. return A._asyncAwait($async$self._async_evaluate$_runUserDefinedCallable$1$4(node.$arguments, $content, node, new A._EvaluateVisitor_visitContentRule_closure0($async$self, $content), type$.Null), $async$visitContentRule$1);
  53888. case 3:
  53889. // returning from await.
  53890. $async$returnValue = null;
  53891. // goto return
  53892. $async$goto = 1;
  53893. break;
  53894. case 1:
  53895. // return
  53896. return A._asyncReturn($async$returnValue, $async$completer);
  53897. }
  53898. });
  53899. return A._asyncStartSync($async$visitContentRule$1, $async$completer);
  53900. },
  53901. visitDebugRule$1(node) {
  53902. return this.visitDebugRule$body$_EvaluateVisitor(node);
  53903. },
  53904. visitDebugRule$body$_EvaluateVisitor(node) {
  53905. var $async$goto = 0,
  53906. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
  53907. $async$returnValue, $async$self = this, value, t1;
  53908. var $async$visitDebugRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  53909. if ($async$errorCode === 1)
  53910. return A._asyncRethrow($async$result, $async$completer);
  53911. while (true)
  53912. switch ($async$goto) {
  53913. case 0:
  53914. // Function start
  53915. $async$goto = 3;
  53916. return A._asyncAwait(node.expression.accept$1($async$self), $async$visitDebugRule$1);
  53917. case 3:
  53918. // returning from await.
  53919. value = $async$result;
  53920. t1 = value instanceof A.SassString ? value._string$_text : A.serializeValue(value, true, true);
  53921. $async$self._async_evaluate$_logger.debug$2(0, t1, node.span);
  53922. $async$returnValue = null;
  53923. // goto return
  53924. $async$goto = 1;
  53925. break;
  53926. case 1:
  53927. // return
  53928. return A._asyncReturn($async$returnValue, $async$completer);
  53929. }
  53930. });
  53931. return A._asyncStartSync($async$visitDebugRule$1, $async$completer);
  53932. },
  53933. visitDeclaration$1(node) {
  53934. return this.visitDeclaration$body$_EvaluateVisitor(node);
  53935. },
  53936. visitDeclaration$body$_EvaluateVisitor(node) {
  53937. var $async$goto = 0,
  53938. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
  53939. $async$returnValue, $async$self = this, t1, $name, t2, cssValue, t3, t4, children, oldDeclarationName;
  53940. var $async$visitDeclaration$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  53941. if ($async$errorCode === 1)
  53942. return A._asyncRethrow($async$result, $async$completer);
  53943. while (true)
  53944. switch ($async$goto) {
  53945. case 0:
  53946. // Function start
  53947. if (($async$self._async_evaluate$_atRootExcludingStyleRule ? null : $async$self._async_evaluate$_styleRuleIgnoringAtRoot) == null && !$async$self._async_evaluate$_inUnknownAtRule && !$async$self._async_evaluate$_inKeyframes)
  53948. throw A.wrapException($async$self._async_evaluate$_exception$2(string$.Declarm, node.span));
  53949. t1 = node.name;
  53950. $async$goto = 3;
  53951. return A._asyncAwait($async$self._async_evaluate$_interpolationToValue$2$warnForColor(t1, true), $async$visitDeclaration$1);
  53952. case 3:
  53953. // returning from await.
  53954. $name = $async$result;
  53955. t2 = $async$self._async_evaluate$_declarationName;
  53956. if (t2 != null)
  53957. $name = new A.CssValue(t2 + "-" + A.S($name.get$value($name)), $name.get$span($name), type$.CssValue_String);
  53958. t2 = node.value;
  53959. $async$goto = 4;
  53960. return A._asyncAwait(A.NullableExtension_andThen(t2, new A._EvaluateVisitor_visitDeclaration_closure1($async$self)), $async$visitDeclaration$1);
  53961. case 4:
  53962. // returning from await.
  53963. cssValue = $async$result;
  53964. t3 = cssValue != null;
  53965. if (t3)
  53966. t4 = !cssValue.get$value(cssValue).get$isBlank() || cssValue.get$value(cssValue).get$asList().length === 0;
  53967. else
  53968. t4 = false;
  53969. if (t4) {
  53970. t3 = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent");
  53971. t1 = B.JSString_methods.startsWith$1(t1.get$initialPlain(), "--");
  53972. if ($async$self._async_evaluate$_sourceMap) {
  53973. t2 = A.NullableExtension_andThen(t2, $async$self.get$_async_evaluate$_expressionNode());
  53974. t2 = t2 == null ? null : J.get$span$z(t2);
  53975. } else
  53976. t2 = null;
  53977. t3.addChild$1(A.ModifiableCssDeclaration$($name, cssValue, node.span, t1, t2));
  53978. } else if (J.startsWith$1$s($name.get$value($name), "--") && t3)
  53979. throw A.wrapException($async$self._async_evaluate$_exception$2("Custom property values may not be empty.", cssValue.get$span(cssValue)));
  53980. children = node.children;
  53981. $async$goto = children != null ? 5 : 6;
  53982. break;
  53983. case 5:
  53984. // then
  53985. oldDeclarationName = $async$self._async_evaluate$_declarationName;
  53986. $async$self._async_evaluate$_declarationName = $name.get$value($name);
  53987. $async$goto = 7;
  53988. return A._asyncAwait($async$self._async_evaluate$_environment.scope$1$2$when(new A._EvaluateVisitor_visitDeclaration_closure2($async$self, children), node.hasDeclarations, type$.Null), $async$visitDeclaration$1);
  53989. case 7:
  53990. // returning from await.
  53991. $async$self._async_evaluate$_declarationName = oldDeclarationName;
  53992. case 6:
  53993. // join
  53994. $async$returnValue = null;
  53995. // goto return
  53996. $async$goto = 1;
  53997. break;
  53998. case 1:
  53999. // return
  54000. return A._asyncReturn($async$returnValue, $async$completer);
  54001. }
  54002. });
  54003. return A._asyncStartSync($async$visitDeclaration$1, $async$completer);
  54004. },
  54005. visitEachRule$1(node) {
  54006. return this.visitEachRule$body$_EvaluateVisitor(node);
  54007. },
  54008. visitEachRule$body$_EvaluateVisitor(node) {
  54009. var $async$goto = 0,
  54010. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
  54011. $async$returnValue, $async$self = this, t1, list, nodeWithSpan, setVariables;
  54012. var $async$visitEachRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  54013. if ($async$errorCode === 1)
  54014. return A._asyncRethrow($async$result, $async$completer);
  54015. while (true)
  54016. switch ($async$goto) {
  54017. case 0:
  54018. // Function start
  54019. t1 = node.list;
  54020. $async$goto = 3;
  54021. return A._asyncAwait(t1.accept$1($async$self), $async$visitEachRule$1);
  54022. case 3:
  54023. // returning from await.
  54024. list = $async$result;
  54025. nodeWithSpan = $async$self._async_evaluate$_expressionNode$1(t1);
  54026. setVariables = node.variables.length === 1 ? new A._EvaluateVisitor_visitEachRule_closure2($async$self, node, nodeWithSpan) : new A._EvaluateVisitor_visitEachRule_closure3($async$self, node, nodeWithSpan);
  54027. $async$returnValue = $async$self._async_evaluate$_environment.scope$1$2$semiGlobal(new A._EvaluateVisitor_visitEachRule_closure4($async$self, list, setVariables, node), true, type$.nullable_Value);
  54028. // goto return
  54029. $async$goto = 1;
  54030. break;
  54031. case 1:
  54032. // return
  54033. return A._asyncReturn($async$returnValue, $async$completer);
  54034. }
  54035. });
  54036. return A._asyncStartSync($async$visitEachRule$1, $async$completer);
  54037. },
  54038. _async_evaluate$_setMultipleVariables$3(variables, value, nodeWithSpan) {
  54039. var i,
  54040. list = value.get$asList(),
  54041. t1 = variables.length,
  54042. minLength = Math.min(t1, list.length);
  54043. for (i = 0; i < minLength; ++i)
  54044. this._async_evaluate$_environment.setLocalVariable$3(variables[i], this._async_evaluate$_withoutSlash$2(list[i], nodeWithSpan), nodeWithSpan);
  54045. for (i = minLength; i < t1; ++i)
  54046. this._async_evaluate$_environment.setLocalVariable$3(variables[i], B.C__SassNull, nodeWithSpan);
  54047. },
  54048. visitErrorRule$1(node) {
  54049. return this.visitErrorRule$body$_EvaluateVisitor(node);
  54050. },
  54051. visitErrorRule$body$_EvaluateVisitor(node) {
  54052. var $async$goto = 0,
  54053. $async$completer = A._makeAsyncAwaitCompleter(type$.Value),
  54054. $async$self = this, $async$temp1, $async$temp2;
  54055. var $async$visitErrorRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  54056. if ($async$errorCode === 1)
  54057. return A._asyncRethrow($async$result, $async$completer);
  54058. while (true)
  54059. switch ($async$goto) {
  54060. case 0:
  54061. // Function start
  54062. $async$temp1 = A;
  54063. $async$temp2 = J;
  54064. $async$goto = 2;
  54065. return A._asyncAwait(node.expression.accept$1($async$self), $async$visitErrorRule$1);
  54066. case 2:
  54067. // returning from await.
  54068. throw $async$temp1.wrapException($async$self._async_evaluate$_exception$2($async$temp2.toString$0$($async$result), node.span));
  54069. // implicit return
  54070. return A._asyncReturn(null, $async$completer);
  54071. }
  54072. });
  54073. return A._asyncStartSync($async$visitErrorRule$1, $async$completer);
  54074. },
  54075. visitExtendRule$1(node) {
  54076. return this.visitExtendRule$body$_EvaluateVisitor(node);
  54077. },
  54078. visitExtendRule$body$_EvaluateVisitor(node) {
  54079. var $async$goto = 0,
  54080. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
  54081. $async$returnValue, $async$self = this, t1, t2, t3, t4, t5, t6, t7, _i, complex, visitor, t8, t9, targetText, compound, styleRule;
  54082. var $async$visitExtendRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  54083. if ($async$errorCode === 1)
  54084. return A._asyncRethrow($async$result, $async$completer);
  54085. while (true)
  54086. switch ($async$goto) {
  54087. case 0:
  54088. // Function start
  54089. styleRule = $async$self._async_evaluate$_atRootExcludingStyleRule ? null : $async$self._async_evaluate$_styleRuleIgnoringAtRoot;
  54090. if (styleRule == null || $async$self._async_evaluate$_declarationName != null)
  54091. throw A.wrapException($async$self._async_evaluate$_exception$2(string$.x40exten, node.span));
  54092. for (t1 = styleRule.originalSelector.components, t2 = t1.length, t3 = styleRule.selector, t4 = t3.span, t5 = node.span, t6 = type$.SourceSpan, t7 = type$.String, _i = 0; _i < t2; ++_i) {
  54093. complex = t1[_i];
  54094. if (!complex.accept$1(B._IsBogusVisitor_true))
  54095. continue;
  54096. visitor = A._SerializeVisitor$(null, true, null, true, false, null, true);
  54097. complex.accept$1(visitor);
  54098. t8 = B.JSString_methods.trim$0(visitor._serialize$_buffer.toString$0(0));
  54099. t9 = complex.accept$1(B.C__IsUselessVisitor) ? "can't" : "shouldn't";
  54100. $async$self._async_evaluate$_warn$3$deprecation('The selector "' + t8 + '" is invalid CSS and ' + t9 + string$.x20be_an, new A.MultiSpan(t4, "invalid selector", A.ConstantMap_ConstantMap$from(A.LinkedHashMap_LinkedHashMap$_literal([t5, "@extend rule"], t6, t7), t6, t7)), true);
  54101. }
  54102. $async$goto = 3;
  54103. return A._asyncAwait($async$self._async_evaluate$_interpolationToValue$2$warnForColor(node.selector, true), $async$visitExtendRule$1);
  54104. case 3:
  54105. // returning from await.
  54106. targetText = $async$result;
  54107. for (t1 = $async$self._async_evaluate$_adjustParseError$2(targetText, new A._EvaluateVisitor_visitExtendRule_closure0($async$self, targetText)).components, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  54108. complex = t1[_i];
  54109. if (complex.leadingCombinators.length === 0) {
  54110. t4 = complex.components;
  54111. t4 = t4.length === 1 && B.JSArray_methods.get$first(t4).combinators.length === 0;
  54112. } else
  54113. t4 = false;
  54114. compound = t4 ? B.JSArray_methods.get$first(complex.components).selector : null;
  54115. if (compound == null)
  54116. throw A.wrapException(A.SassFormatException$("complex selectors may not be extended.", targetText.get$span(targetText)));
  54117. t4 = compound.components;
  54118. t5 = t4.length === 1 ? B.JSArray_methods.get$first(t4) : null;
  54119. if (t5 == null)
  54120. throw A.wrapException(A.SassFormatException$(string$.compou + B.JSArray_methods.join$1(t4, ", ") + string$.x60_inst, targetText.get$span(targetText)));
  54121. $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__extensionStore, "_extensionStore").addExtension$4(t3, t5, node, $async$self._async_evaluate$_mediaQueries);
  54122. }
  54123. $async$returnValue = null;
  54124. // goto return
  54125. $async$goto = 1;
  54126. break;
  54127. case 1:
  54128. // return
  54129. return A._asyncReturn($async$returnValue, $async$completer);
  54130. }
  54131. });
  54132. return A._asyncStartSync($async$visitExtendRule$1, $async$completer);
  54133. },
  54134. visitAtRule$1(node) {
  54135. return this.visitAtRule$body$_EvaluateVisitor(node);
  54136. },
  54137. visitAtRule$body$_EvaluateVisitor(node) {
  54138. var $async$goto = 0,
  54139. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
  54140. $async$returnValue, $async$self = this, $name, value, children, wasInKeyframes, wasInUnknownAtRule;
  54141. var $async$visitAtRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  54142. if ($async$errorCode === 1)
  54143. return A._asyncRethrow($async$result, $async$completer);
  54144. while (true)
  54145. switch ($async$goto) {
  54146. case 0:
  54147. // Function start
  54148. if ($async$self._async_evaluate$_declarationName != null)
  54149. throw A.wrapException($async$self._async_evaluate$_exception$2(string$.At_rul, node.span));
  54150. $async$goto = 3;
  54151. return A._asyncAwait($async$self._async_evaluate$_interpolationToValue$1(node.name), $async$visitAtRule$1);
  54152. case 3:
  54153. // returning from await.
  54154. $name = $async$result;
  54155. $async$goto = 4;
  54156. return A._asyncAwait(A.NullableExtension_andThen(node.value, new A._EvaluateVisitor_visitAtRule_closure2($async$self)), $async$visitAtRule$1);
  54157. case 4:
  54158. // returning from await.
  54159. value = $async$result;
  54160. children = node.children;
  54161. if (children == null) {
  54162. $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent").addChild$1(A.ModifiableCssAtRule$($name, node.span, true, value));
  54163. $async$returnValue = null;
  54164. // goto return
  54165. $async$goto = 1;
  54166. break;
  54167. }
  54168. wasInKeyframes = $async$self._async_evaluate$_inKeyframes;
  54169. wasInUnknownAtRule = $async$self._async_evaluate$_inUnknownAtRule;
  54170. if (A.unvendor($name.get$value($name)) === "keyframes")
  54171. $async$self._async_evaluate$_inKeyframes = true;
  54172. else
  54173. $async$self._async_evaluate$_inUnknownAtRule = true;
  54174. $async$goto = 5;
  54175. return A._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(A.ModifiableCssAtRule$($name, node.span, false, value), new A._EvaluateVisitor_visitAtRule_closure3($async$self, children), node.hasDeclarations, new A._EvaluateVisitor_visitAtRule_closure4(), type$.ModifiableCssAtRule, type$.Null), $async$visitAtRule$1);
  54176. case 5:
  54177. // returning from await.
  54178. $async$self._async_evaluate$_inUnknownAtRule = wasInUnknownAtRule;
  54179. $async$self._async_evaluate$_inKeyframes = wasInKeyframes;
  54180. $async$returnValue = null;
  54181. // goto return
  54182. $async$goto = 1;
  54183. break;
  54184. case 1:
  54185. // return
  54186. return A._asyncReturn($async$returnValue, $async$completer);
  54187. }
  54188. });
  54189. return A._asyncStartSync($async$visitAtRule$1, $async$completer);
  54190. },
  54191. visitForRule$1(node) {
  54192. return this.visitForRule$body$_EvaluateVisitor(node);
  54193. },
  54194. visitForRule$body$_EvaluateVisitor(node) {
  54195. var $async$goto = 0,
  54196. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
  54197. $async$returnValue, $async$self = this, t1, t2, t3, fromNumber, t4, toNumber, from, to, direction;
  54198. var $async$visitForRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  54199. if ($async$errorCode === 1)
  54200. return A._asyncRethrow($async$result, $async$completer);
  54201. while (true)
  54202. switch ($async$goto) {
  54203. case 0:
  54204. // Function start
  54205. t1 = {};
  54206. t2 = node.from;
  54207. t3 = type$.SassNumber;
  54208. $async$goto = 3;
  54209. return A._asyncAwait($async$self._addExceptionSpanAsync$1$2(t2, new A._EvaluateVisitor_visitForRule_closure4($async$self, node), t3), $async$visitForRule$1);
  54210. case 3:
  54211. // returning from await.
  54212. fromNumber = $async$result;
  54213. t4 = node.to;
  54214. $async$goto = 4;
  54215. return A._asyncAwait($async$self._addExceptionSpanAsync$1$2(t4, new A._EvaluateVisitor_visitForRule_closure5($async$self, node), t3), $async$visitForRule$1);
  54216. case 4:
  54217. // returning from await.
  54218. toNumber = $async$result;
  54219. from = $async$self._async_evaluate$_addExceptionSpan$2(t2, new A._EvaluateVisitor_visitForRule_closure6(fromNumber));
  54220. to = t1.to = $async$self._async_evaluate$_addExceptionSpan$2(t4, new A._EvaluateVisitor_visitForRule_closure7(toNumber, fromNumber));
  54221. direction = from > to ? -1 : 1;
  54222. if (from === (!node.isExclusive ? t1.to = to + direction : to)) {
  54223. $async$returnValue = null;
  54224. // goto return
  54225. $async$goto = 1;
  54226. break;
  54227. }
  54228. $async$returnValue = $async$self._async_evaluate$_environment.scope$1$2$semiGlobal(new A._EvaluateVisitor_visitForRule_closure8(t1, $async$self, node, from, direction, fromNumber), true, type$.nullable_Value);
  54229. // goto return
  54230. $async$goto = 1;
  54231. break;
  54232. case 1:
  54233. // return
  54234. return A._asyncReturn($async$returnValue, $async$completer);
  54235. }
  54236. });
  54237. return A._asyncStartSync($async$visitForRule$1, $async$completer);
  54238. },
  54239. visitForwardRule$1(node) {
  54240. return this.visitForwardRule$body$_EvaluateVisitor(node);
  54241. },
  54242. visitForwardRule$body$_EvaluateVisitor(node) {
  54243. var $async$goto = 0,
  54244. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
  54245. $async$returnValue, $async$self = this, newConfiguration, t4, _i, variable, $name, oldConfiguration, adjustedConfiguration, t1, t2, t3;
  54246. var $async$visitForwardRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  54247. if ($async$errorCode === 1)
  54248. return A._asyncRethrow($async$result, $async$completer);
  54249. while (true)
  54250. switch ($async$goto) {
  54251. case 0:
  54252. // Function start
  54253. oldConfiguration = $async$self._async_evaluate$_configuration;
  54254. adjustedConfiguration = oldConfiguration.throughForward$1(node);
  54255. t1 = node.configuration;
  54256. t2 = t1.length;
  54257. t3 = node.url;
  54258. $async$goto = t2 !== 0 ? 3 : 5;
  54259. break;
  54260. case 3:
  54261. // then
  54262. $async$goto = 6;
  54263. return A._asyncAwait($async$self._async_evaluate$_addForwardConfiguration$2(adjustedConfiguration, node), $async$visitForwardRule$1);
  54264. case 6:
  54265. // returning from await.
  54266. newConfiguration = $async$result;
  54267. $async$goto = 7;
  54268. return A._asyncAwait($async$self._async_evaluate$_loadModule$5$configuration(t3, "@forward", node, new A._EvaluateVisitor_visitForwardRule_closure1($async$self, node), newConfiguration), $async$visitForwardRule$1);
  54269. case 7:
  54270. // returning from await.
  54271. t3 = type$.String;
  54272. t4 = A.LinkedHashSet_LinkedHashSet$_empty(t3);
  54273. for (_i = 0; _i < t2; ++_i) {
  54274. variable = t1[_i];
  54275. if (!variable.isGuarded)
  54276. t4.add$1(0, variable.name);
  54277. }
  54278. $async$self._async_evaluate$_removeUsedConfiguration$3$except(adjustedConfiguration, newConfiguration, t4);
  54279. t3 = A.LinkedHashSet_LinkedHashSet$_empty(t3);
  54280. for (_i = 0; _i < t2; ++_i)
  54281. t3.add$1(0, t1[_i].name);
  54282. for (t1 = newConfiguration._values, t2 = J.toList$0$ax(t1.get$keys(t1)), t4 = t2.length, _i = 0; _i < t2.length; t2.length === t4 || (0, A.throwConcurrentModificationError)(t2), ++_i) {
  54283. $name = t2[_i];
  54284. if (!t3.contains$1(0, $name))
  54285. if (!t1.get$isEmpty(t1))
  54286. t1.remove$1(0, $name);
  54287. }
  54288. $async$self._async_evaluate$_assertConfigurationIsEmpty$1(newConfiguration);
  54289. // goto join
  54290. $async$goto = 4;
  54291. break;
  54292. case 5:
  54293. // else
  54294. $async$self._async_evaluate$_configuration = adjustedConfiguration;
  54295. $async$goto = 8;
  54296. return A._asyncAwait($async$self._async_evaluate$_loadModule$4(t3, "@forward", node, new A._EvaluateVisitor_visitForwardRule_closure2($async$self, node)), $async$visitForwardRule$1);
  54297. case 8:
  54298. // returning from await.
  54299. $async$self._async_evaluate$_configuration = oldConfiguration;
  54300. case 4:
  54301. // join
  54302. $async$returnValue = null;
  54303. // goto return
  54304. $async$goto = 1;
  54305. break;
  54306. case 1:
  54307. // return
  54308. return A._asyncReturn($async$returnValue, $async$completer);
  54309. }
  54310. });
  54311. return A._asyncStartSync($async$visitForwardRule$1, $async$completer);
  54312. },
  54313. _async_evaluate$_addForwardConfiguration$2(configuration, node) {
  54314. return this._addForwardConfiguration$body$_EvaluateVisitor(configuration, node);
  54315. },
  54316. _addForwardConfiguration$body$_EvaluateVisitor(configuration, node) {
  54317. var $async$goto = 0,
  54318. $async$completer = A._makeAsyncAwaitCompleter(type$.Configuration),
  54319. $async$returnValue, $async$self = this, t2, t3, _i, variable, t4, t5, variableNodeWithSpan, t1, newValues, $async$temp1, $async$temp2, $async$temp3;
  54320. var $async$_async_evaluate$_addForwardConfiguration$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  54321. if ($async$errorCode === 1)
  54322. return A._asyncRethrow($async$result, $async$completer);
  54323. while (true)
  54324. switch ($async$goto) {
  54325. case 0:
  54326. // Function start
  54327. t1 = configuration._values;
  54328. newValues = A.LinkedHashMap_LinkedHashMap$of(new A.UnmodifiableMapView(t1, type$.UnmodifiableMapView_String_ConfiguredValue), type$.String, type$.ConfiguredValue);
  54329. t2 = node.configuration, t3 = t2.length, _i = 0;
  54330. case 3:
  54331. // for condition
  54332. if (!(_i < t3)) {
  54333. // goto after for
  54334. $async$goto = 5;
  54335. break;
  54336. }
  54337. variable = t2[_i];
  54338. if (variable.isGuarded) {
  54339. t4 = variable.name;
  54340. t5 = t1.get$isEmpty(t1) ? null : t1.remove$1(0, t4);
  54341. if (t5 != null && !t5.value.$eq(0, B.C__SassNull)) {
  54342. newValues.$indexSet(0, t4, t5);
  54343. // goto for update
  54344. $async$goto = 4;
  54345. break;
  54346. }
  54347. }
  54348. t4 = variable.expression;
  54349. variableNodeWithSpan = $async$self._async_evaluate$_expressionNode$1(t4);
  54350. $async$temp1 = newValues;
  54351. $async$temp2 = variable.name;
  54352. $async$temp3 = A;
  54353. $async$goto = 6;
  54354. return A._asyncAwait(t4.accept$1($async$self), $async$_async_evaluate$_addForwardConfiguration$2);
  54355. case 6:
  54356. // returning from await.
  54357. $async$temp1.$indexSet(0, $async$temp2, new $async$temp3.ConfiguredValue($async$self._async_evaluate$_withoutSlash$2($async$result, variableNodeWithSpan), variable.span, variableNodeWithSpan));
  54358. case 4:
  54359. // for update
  54360. ++_i;
  54361. // goto for condition
  54362. $async$goto = 3;
  54363. break;
  54364. case 5:
  54365. // after for
  54366. if (configuration instanceof A.ExplicitConfiguration || t1.get$isEmpty(t1)) {
  54367. $async$returnValue = new A.ExplicitConfiguration(node, newValues, null);
  54368. // goto return
  54369. $async$goto = 1;
  54370. break;
  54371. } else {
  54372. $async$returnValue = new A.Configuration(newValues, null);
  54373. // goto return
  54374. $async$goto = 1;
  54375. break;
  54376. }
  54377. case 1:
  54378. // return
  54379. return A._asyncReturn($async$returnValue, $async$completer);
  54380. }
  54381. });
  54382. return A._asyncStartSync($async$_async_evaluate$_addForwardConfiguration$2, $async$completer);
  54383. },
  54384. _async_evaluate$_removeUsedConfiguration$3$except(upstream, downstream, except) {
  54385. var t1, t2, t3, t4, _i, $name;
  54386. for (t1 = upstream._values, t2 = J.toList$0$ax(t1.get$keys(t1)), t3 = t2.length, t4 = downstream._values, _i = 0; _i < t2.length; t2.length === t3 || (0, A.throwConcurrentModificationError)(t2), ++_i) {
  54387. $name = t2[_i];
  54388. if (except.contains$1(0, $name))
  54389. continue;
  54390. if (!t4.containsKey$1($name))
  54391. if (!t1.get$isEmpty(t1))
  54392. t1.remove$1(0, $name);
  54393. }
  54394. },
  54395. _async_evaluate$_assertConfigurationIsEmpty$2$nameInError(configuration, nameInError) {
  54396. var t1, entry;
  54397. if (!(configuration instanceof A.ExplicitConfiguration))
  54398. return;
  54399. t1 = configuration._values;
  54400. if (t1.get$isEmpty(t1))
  54401. return;
  54402. t1 = t1.get$entries(t1);
  54403. entry = t1.get$first(t1);
  54404. t1 = nameInError ? "$" + A.S(entry.key) + string$.x20was_n : string$.This_v;
  54405. throw A.wrapException(this._async_evaluate$_exception$2(t1, entry.value.configurationSpan));
  54406. },
  54407. _async_evaluate$_assertConfigurationIsEmpty$1(configuration) {
  54408. return this._async_evaluate$_assertConfigurationIsEmpty$2$nameInError(configuration, false);
  54409. },
  54410. visitFunctionRule$1(node) {
  54411. return this.visitFunctionRule$body$_EvaluateVisitor(node);
  54412. },
  54413. visitFunctionRule$body$_EvaluateVisitor(node) {
  54414. var $async$goto = 0,
  54415. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
  54416. $async$returnValue, $async$self = this, t1, t2, t3, t4, index, t5;
  54417. var $async$visitFunctionRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  54418. if ($async$errorCode === 1)
  54419. return A._asyncRethrow($async$result, $async$completer);
  54420. while (true)
  54421. switch ($async$goto) {
  54422. case 0:
  54423. // Function start
  54424. t1 = $async$self._async_evaluate$_environment;
  54425. t2 = t1.closure$0();
  54426. t3 = $async$self._async_evaluate$_inDependency;
  54427. t4 = t1._async_environment$_functions;
  54428. index = t4.length - 1;
  54429. t5 = node.name;
  54430. t1._async_environment$_functionIndices.$indexSet(0, t5, index);
  54431. J.$indexSet$ax(t4[index], t5, new A.UserDefinedCallable(node, t2, t3, type$.UserDefinedCallable_AsyncEnvironment));
  54432. $async$returnValue = null;
  54433. // goto return
  54434. $async$goto = 1;
  54435. break;
  54436. case 1:
  54437. // return
  54438. return A._asyncReturn($async$returnValue, $async$completer);
  54439. }
  54440. });
  54441. return A._asyncStartSync($async$visitFunctionRule$1, $async$completer);
  54442. },
  54443. visitIfRule$1(node) {
  54444. return this.visitIfRule$body$_EvaluateVisitor(node);
  54445. },
  54446. visitIfRule$body$_EvaluateVisitor(node) {
  54447. var $async$goto = 0,
  54448. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
  54449. $async$returnValue, $async$self = this, t1, t2, _i, clauseToCheck, _box_0;
  54450. var $async$visitIfRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  54451. if ($async$errorCode === 1)
  54452. return A._asyncRethrow($async$result, $async$completer);
  54453. while (true)
  54454. switch ($async$goto) {
  54455. case 0:
  54456. // Function start
  54457. _box_0 = {};
  54458. _box_0.clause = node.lastClause;
  54459. t1 = node.clauses, t2 = t1.length, _i = 0;
  54460. case 3:
  54461. // for condition
  54462. if (!(_i < t2)) {
  54463. // goto after for
  54464. $async$goto = 5;
  54465. break;
  54466. }
  54467. clauseToCheck = t1[_i];
  54468. $async$goto = 6;
  54469. return A._asyncAwait(clauseToCheck.expression.accept$1($async$self), $async$visitIfRule$1);
  54470. case 6:
  54471. // returning from await.
  54472. if ($async$result.get$isTruthy()) {
  54473. _box_0.clause = clauseToCheck;
  54474. // goto after for
  54475. $async$goto = 5;
  54476. break;
  54477. }
  54478. case 4:
  54479. // for update
  54480. ++_i;
  54481. // goto for condition
  54482. $async$goto = 3;
  54483. break;
  54484. case 5:
  54485. // after for
  54486. t1 = _box_0.clause;
  54487. if (t1 == null) {
  54488. $async$returnValue = null;
  54489. // goto return
  54490. $async$goto = 1;
  54491. break;
  54492. }
  54493. $async$goto = 7;
  54494. return A._asyncAwait($async$self._async_evaluate$_environment.scope$1$3$semiGlobal$when(new A._EvaluateVisitor_visitIfRule_closure0(_box_0, $async$self), true, t1.hasDeclarations, type$.nullable_Value), $async$visitIfRule$1);
  54495. case 7:
  54496. // returning from await.
  54497. $async$returnValue = $async$result;
  54498. // goto return
  54499. $async$goto = 1;
  54500. break;
  54501. case 1:
  54502. // return
  54503. return A._asyncReturn($async$returnValue, $async$completer);
  54504. }
  54505. });
  54506. return A._asyncStartSync($async$visitIfRule$1, $async$completer);
  54507. },
  54508. visitImportRule$1(node) {
  54509. return this.visitImportRule$body$_EvaluateVisitor(node);
  54510. },
  54511. visitImportRule$body$_EvaluateVisitor(node) {
  54512. var $async$goto = 0,
  54513. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
  54514. $async$returnValue, $async$self = this, t1, t2, t3, _i, $import;
  54515. var $async$visitImportRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  54516. if ($async$errorCode === 1)
  54517. return A._asyncRethrow($async$result, $async$completer);
  54518. while (true)
  54519. switch ($async$goto) {
  54520. case 0:
  54521. // Function start
  54522. t1 = node.imports, t2 = t1.length, t3 = type$.StaticImport, _i = 0;
  54523. case 3:
  54524. // for condition
  54525. if (!(_i < t2)) {
  54526. // goto after for
  54527. $async$goto = 5;
  54528. break;
  54529. }
  54530. $import = t1[_i];
  54531. $async$goto = $import instanceof A.DynamicImport ? 6 : 8;
  54532. break;
  54533. case 6:
  54534. // then
  54535. $async$goto = 9;
  54536. return A._asyncAwait($async$self._async_evaluate$_visitDynamicImport$1($import), $async$visitImportRule$1);
  54537. case 9:
  54538. // returning from await.
  54539. // goto join
  54540. $async$goto = 7;
  54541. break;
  54542. case 8:
  54543. // else
  54544. $async$goto = 10;
  54545. return A._asyncAwait($async$self._visitStaticImport$1(t3._as($import)), $async$visitImportRule$1);
  54546. case 10:
  54547. // returning from await.
  54548. case 7:
  54549. // join
  54550. case 4:
  54551. // for update
  54552. ++_i;
  54553. // goto for condition
  54554. $async$goto = 3;
  54555. break;
  54556. case 5:
  54557. // after for
  54558. $async$returnValue = null;
  54559. // goto return
  54560. $async$goto = 1;
  54561. break;
  54562. case 1:
  54563. // return
  54564. return A._asyncReturn($async$returnValue, $async$completer);
  54565. }
  54566. });
  54567. return A._asyncStartSync($async$visitImportRule$1, $async$completer);
  54568. },
  54569. _async_evaluate$_visitDynamicImport$1($import) {
  54570. return this._async_evaluate$_withStackFrame$1$3("@import", $import, new A._EvaluateVisitor__visitDynamicImport_closure0(this, $import), type$.void);
  54571. },
  54572. _async_evaluate$_loadStylesheet$4$baseUrl$forImport(url, span, baseUrl, forImport) {
  54573. return this._loadStylesheet$body$_EvaluateVisitor(url, span, baseUrl, forImport);
  54574. },
  54575. _async_evaluate$_loadStylesheet$3$baseUrl(url, span, baseUrl) {
  54576. return this._async_evaluate$_loadStylesheet$4$baseUrl$forImport(url, span, baseUrl, false);
  54577. },
  54578. _async_evaluate$_loadStylesheet$3$forImport(url, span, forImport) {
  54579. return this._async_evaluate$_loadStylesheet$4$baseUrl$forImport(url, span, null, forImport);
  54580. },
  54581. _loadStylesheet$body$_EvaluateVisitor(url, span, baseUrl, forImport) {
  54582. var $async$goto = 0,
  54583. $async$completer = A._makeAsyncAwaitCompleter(type$._LoadedStylesheet),
  54584. $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, importCache, tuple, isDependency, stylesheet, result, error, stackTrace, error0, stackTrace0, error1, stackTrace1, message, t1, t2, t3, t4, exception, message0, $async$exception;
  54585. var $async$_async_evaluate$_loadStylesheet$4$baseUrl$forImport = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  54586. if ($async$errorCode === 1) {
  54587. $async$currentError = $async$result;
  54588. $async$goto = $async$handler;
  54589. }
  54590. while (true)
  54591. switch ($async$goto) {
  54592. case 0:
  54593. // Function start
  54594. baseUrl = baseUrl;
  54595. $async$handler = 4;
  54596. $async$self._async_evaluate$_importSpan = span;
  54597. importCache = $async$self._async_evaluate$_importCache;
  54598. $async$goto = importCache != null ? 7 : 9;
  54599. break;
  54600. case 7:
  54601. // then
  54602. if (baseUrl == null) {
  54603. t1 = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__stylesheet, "_stylesheet").span;
  54604. baseUrl = t1.get$sourceUrl(t1);
  54605. }
  54606. $async$goto = 10;
  54607. return A._asyncAwait(J.canonicalize$4$baseImporter$baseUrl$forImport$x(importCache, A.Uri_parse(url), $async$self._async_evaluate$_importer, baseUrl, forImport), $async$_async_evaluate$_loadStylesheet$4$baseUrl$forImport);
  54608. case 10:
  54609. // returning from await.
  54610. tuple = $async$result;
  54611. $async$goto = tuple != null ? 11 : 12;
  54612. break;
  54613. case 11:
  54614. // then
  54615. isDependency = $async$self._async_evaluate$_inDependency || tuple.item1 !== $async$self._async_evaluate$_importer;
  54616. t1 = tuple.item1;
  54617. t2 = tuple.item2;
  54618. t3 = tuple.item3;
  54619. t4 = $async$self._async_evaluate$_quietDeps && isDependency;
  54620. $async$goto = 13;
  54621. return A._asyncAwait(importCache.importCanonical$4$originalUrl$quiet(t1, t2, t3, t4), $async$_async_evaluate$_loadStylesheet$4$baseUrl$forImport);
  54622. case 13:
  54623. // returning from await.
  54624. stylesheet = $async$result;
  54625. if (stylesheet != null) {
  54626. $async$self._async_evaluate$_loadedUrls.add$1(0, tuple.item2);
  54627. t1 = tuple.item1;
  54628. $async$returnValue = new A._LoadedStylesheet0(stylesheet, t1, isDependency);
  54629. $async$next = [1];
  54630. // goto finally
  54631. $async$goto = 5;
  54632. break;
  54633. }
  54634. case 12:
  54635. // join
  54636. // goto join
  54637. $async$goto = 8;
  54638. break;
  54639. case 9:
  54640. // else
  54641. t1 = baseUrl;
  54642. if (t1 == null) {
  54643. t1 = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__stylesheet, "_stylesheet").span;
  54644. t1 = t1.get$sourceUrl(t1);
  54645. }
  54646. $async$goto = 14;
  54647. return A._asyncAwait($async$self._async_evaluate$_importLikeNode$3(url, t1, forImport), $async$_async_evaluate$_loadStylesheet$4$baseUrl$forImport);
  54648. case 14:
  54649. // returning from await.
  54650. result = $async$result;
  54651. if (result != null) {
  54652. t1 = result.stylesheet.span;
  54653. t2 = $async$self._async_evaluate$_loadedUrls;
  54654. A.NullableExtension_andThen(t1.get$sourceUrl(t1), t2.get$add(t2));
  54655. $async$returnValue = result;
  54656. $async$next = [1];
  54657. // goto finally
  54658. $async$goto = 5;
  54659. break;
  54660. }
  54661. case 8:
  54662. // join
  54663. if (B.JSString_methods.startsWith$1(url, "package:") && true)
  54664. throw A.wrapException(string$.x22packa);
  54665. else
  54666. throw A.wrapException("Can't find stylesheet to import.");
  54667. $async$next.push(6);
  54668. // goto finally
  54669. $async$goto = 5;
  54670. break;
  54671. case 4:
  54672. // catch
  54673. $async$handler = 3;
  54674. $async$exception = $async$currentError;
  54675. t1 = A.unwrapException($async$exception);
  54676. if (t1 instanceof A.SassException) {
  54677. error = t1;
  54678. stackTrace = A.getTraceFromException($async$exception);
  54679. t1 = error;
  54680. t2 = J.getInterceptor$z(t1);
  54681. A.throwWithTrace($async$self._async_evaluate$_exception$2(error._span_exception$_message, A.SourceSpanException.prototype.get$span.call(t2, t1)), stackTrace);
  54682. } else if (t1 instanceof A.ArgumentError) {
  54683. error0 = t1;
  54684. stackTrace0 = A.getTraceFromException($async$exception);
  54685. A.throwWithTrace($async$self._async_evaluate$_exception$1(J.toString$0$(error0)), stackTrace0);
  54686. } else {
  54687. error1 = t1;
  54688. stackTrace1 = A.getTraceFromException($async$exception);
  54689. message = null;
  54690. try {
  54691. message = A._asString(J.get$message$x(error1));
  54692. } catch (exception) {
  54693. message0 = J.toString$0$(error1);
  54694. message = message0;
  54695. }
  54696. A.throwWithTrace($async$self._async_evaluate$_exception$1(message), stackTrace1);
  54697. }
  54698. $async$next.push(6);
  54699. // goto finally
  54700. $async$goto = 5;
  54701. break;
  54702. case 3:
  54703. // uncaught
  54704. $async$next = [2];
  54705. case 5:
  54706. // finally
  54707. $async$handler = 2;
  54708. $async$self._async_evaluate$_importSpan = null;
  54709. // goto the next finally handler
  54710. $async$goto = $async$next.pop();
  54711. break;
  54712. case 6:
  54713. // after finally
  54714. case 1:
  54715. // return
  54716. return A._asyncReturn($async$returnValue, $async$completer);
  54717. case 2:
  54718. // rethrow
  54719. return A._asyncRethrow($async$currentError, $async$completer);
  54720. }
  54721. });
  54722. return A._asyncStartSync($async$_async_evaluate$_loadStylesheet$4$baseUrl$forImport, $async$completer);
  54723. },
  54724. _async_evaluate$_importLikeNode$3(originalUrl, previous, forImport) {
  54725. return this._importLikeNode$body$_EvaluateVisitor(originalUrl, previous, forImport);
  54726. },
  54727. _importLikeNode$body$_EvaluateVisitor(originalUrl, previous, forImport) {
  54728. var $async$goto = 0,
  54729. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable__LoadedStylesheet),
  54730. $async$returnValue, $async$self = this, result, isDependency, url, t1, t2;
  54731. var $async$_async_evaluate$_importLikeNode$3 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  54732. if ($async$errorCode === 1)
  54733. return A._asyncRethrow($async$result, $async$completer);
  54734. while (true)
  54735. switch ($async$goto) {
  54736. case 0:
  54737. // Function start
  54738. result = $async$self._async_evaluate$_nodeImporter.loadRelative$3(originalUrl, previous, forImport);
  54739. isDependency = $async$self._async_evaluate$_inDependency;
  54740. url = result.item2;
  54741. t1 = B.JSString_methods.startsWith$1(url, "file") ? A.Syntax_forPath(url) : B.Syntax_SCSS_scss;
  54742. t2 = $async$self._async_evaluate$_quietDeps && isDependency ? $.$get$Logger_quiet() : $async$self._async_evaluate$_logger;
  54743. $async$returnValue = new A._LoadedStylesheet0(A.Stylesheet_Stylesheet$parse(result.item1, t1, t2, url), null, isDependency);
  54744. // goto return
  54745. $async$goto = 1;
  54746. break;
  54747. case 1:
  54748. // return
  54749. return A._asyncReturn($async$returnValue, $async$completer);
  54750. }
  54751. });
  54752. return A._asyncStartSync($async$_async_evaluate$_importLikeNode$3, $async$completer);
  54753. },
  54754. _visitStaticImport$1($import) {
  54755. return this._visitStaticImport$body$_EvaluateVisitor($import);
  54756. },
  54757. _visitStaticImport$body$_EvaluateVisitor($import) {
  54758. var $async$goto = 0,
  54759. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  54760. $async$self = this, t1, node, $async$temp1, $async$temp2;
  54761. var $async$_visitStaticImport$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  54762. if ($async$errorCode === 1)
  54763. return A._asyncRethrow($async$result, $async$completer);
  54764. while (true)
  54765. switch ($async$goto) {
  54766. case 0:
  54767. // Function start
  54768. $async$temp1 = A;
  54769. $async$goto = 2;
  54770. return A._asyncAwait($async$self._async_evaluate$_interpolationToValue$1($import.url), $async$_visitStaticImport$1);
  54771. case 2:
  54772. // returning from await.
  54773. $async$temp2 = $async$result;
  54774. $async$goto = 3;
  54775. return A._asyncAwait(A.NullableExtension_andThen($import.modifiers, $async$self.get$_async_evaluate$_interpolationToValue()), $async$_visitStaticImport$1);
  54776. case 3:
  54777. // returning from await.
  54778. node = new $async$temp1.ModifiableCssImport($async$temp2, $async$result, $import.span);
  54779. if ($async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent") !== $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__root, "_root"))
  54780. $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent").addChild$1(node);
  54781. else if ($async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__endOfImports, "_endOfImports") === J.get$length$asx($async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__root, "_root").children._collection$_source)) {
  54782. $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__root, "_root").addChild$1(node);
  54783. $async$self._async_evaluate$__endOfImports = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__endOfImports, "_endOfImports") + 1;
  54784. } else {
  54785. t1 = $async$self._async_evaluate$_outOfOrderImports;
  54786. (t1 == null ? $async$self._async_evaluate$_outOfOrderImports = A._setArrayType([], type$.JSArray_ModifiableCssImport) : t1).push(node);
  54787. }
  54788. // implicit return
  54789. return A._asyncReturn(null, $async$completer);
  54790. }
  54791. });
  54792. return A._asyncStartSync($async$_visitStaticImport$1, $async$completer);
  54793. },
  54794. visitIncludeRule$1(node) {
  54795. return this.visitIncludeRule$body$_EvaluateVisitor(node);
  54796. },
  54797. visitIncludeRule$body$_EvaluateVisitor(node) {
  54798. var $async$goto = 0,
  54799. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
  54800. $async$returnValue, $async$self = this, nodeWithSpan, t1, mixin;
  54801. var $async$visitIncludeRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  54802. if ($async$errorCode === 1)
  54803. return A._asyncRethrow($async$result, $async$completer);
  54804. while (true)
  54805. switch ($async$goto) {
  54806. case 0:
  54807. // Function start
  54808. mixin = $async$self._async_evaluate$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitIncludeRule_closure3($async$self, node));
  54809. if (mixin == null)
  54810. throw A.wrapException($async$self._async_evaluate$_exception$2("Undefined mixin.", node.span));
  54811. nodeWithSpan = new A._FakeAstNode(new A._EvaluateVisitor_visitIncludeRule_closure4(node));
  54812. $async$goto = type$.AsyncBuiltInCallable._is(mixin) ? 3 : 5;
  54813. break;
  54814. case 3:
  54815. // then
  54816. if (node.content != null)
  54817. throw A.wrapException($async$self._async_evaluate$_exception$2("Mixin doesn't accept a content block.", node.span));
  54818. $async$goto = 6;
  54819. return A._asyncAwait($async$self._async_evaluate$_runBuiltInCallable$3(node.$arguments, mixin, nodeWithSpan), $async$visitIncludeRule$1);
  54820. case 6:
  54821. // returning from await.
  54822. // goto join
  54823. $async$goto = 4;
  54824. break;
  54825. case 5:
  54826. // else
  54827. $async$goto = type$.UserDefinedCallable_AsyncEnvironment._is(mixin) ? 7 : 9;
  54828. break;
  54829. case 7:
  54830. // then
  54831. t1 = node.content;
  54832. if (t1 != null && !type$.MixinRule._as(mixin.declaration).get$hasContent())
  54833. throw A.wrapException(A.MultiSpanSassRuntimeException$("Mixin doesn't accept a content block.", node.get$spanWithoutContent(), "invocation", A.LinkedHashMap_LinkedHashMap$_literal([mixin.declaration.$arguments.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), $async$self._async_evaluate$_stackTrace$1(node.get$spanWithoutContent())));
  54834. $async$goto = 10;
  54835. return A._asyncAwait($async$self._async_evaluate$_runUserDefinedCallable$1$4(node.$arguments, mixin, nodeWithSpan, new A._EvaluateVisitor_visitIncludeRule_closure5($async$self, A.NullableExtension_andThen(t1, new A._EvaluateVisitor_visitIncludeRule_closure6($async$self)), mixin, nodeWithSpan), type$.Null), $async$visitIncludeRule$1);
  54836. case 10:
  54837. // returning from await.
  54838. // goto join
  54839. $async$goto = 8;
  54840. break;
  54841. case 9:
  54842. // else
  54843. throw A.wrapException(A.UnsupportedError$("Unknown callable type " + mixin.toString$0(0) + "."));
  54844. case 8:
  54845. // join
  54846. case 4:
  54847. // join
  54848. $async$returnValue = null;
  54849. // goto return
  54850. $async$goto = 1;
  54851. break;
  54852. case 1:
  54853. // return
  54854. return A._asyncReturn($async$returnValue, $async$completer);
  54855. }
  54856. });
  54857. return A._asyncStartSync($async$visitIncludeRule$1, $async$completer);
  54858. },
  54859. visitMixinRule$1(node) {
  54860. return this.visitMixinRule$body$_EvaluateVisitor(node);
  54861. },
  54862. visitMixinRule$body$_EvaluateVisitor(node) {
  54863. var $async$goto = 0,
  54864. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
  54865. $async$returnValue, $async$self = this, t1, t2, t3, t4, index, t5;
  54866. var $async$visitMixinRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  54867. if ($async$errorCode === 1)
  54868. return A._asyncRethrow($async$result, $async$completer);
  54869. while (true)
  54870. switch ($async$goto) {
  54871. case 0:
  54872. // Function start
  54873. t1 = $async$self._async_evaluate$_environment;
  54874. t2 = t1.closure$0();
  54875. t3 = $async$self._async_evaluate$_inDependency;
  54876. t4 = t1._async_environment$_mixins;
  54877. index = t4.length - 1;
  54878. t5 = node.name;
  54879. t1._async_environment$_mixinIndices.$indexSet(0, t5, index);
  54880. J.$indexSet$ax(t4[index], t5, new A.UserDefinedCallable(node, t2, t3, type$.UserDefinedCallable_AsyncEnvironment));
  54881. $async$returnValue = null;
  54882. // goto return
  54883. $async$goto = 1;
  54884. break;
  54885. case 1:
  54886. // return
  54887. return A._asyncReturn($async$returnValue, $async$completer);
  54888. }
  54889. });
  54890. return A._asyncStartSync($async$visitMixinRule$1, $async$completer);
  54891. },
  54892. visitLoudComment$1(node) {
  54893. return this.visitLoudComment$body$_EvaluateVisitor(node);
  54894. },
  54895. visitLoudComment$body$_EvaluateVisitor(node) {
  54896. var $async$goto = 0,
  54897. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
  54898. $async$returnValue, $async$self = this, t1, $async$temp1, $async$temp2;
  54899. var $async$visitLoudComment$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  54900. if ($async$errorCode === 1)
  54901. return A._asyncRethrow($async$result, $async$completer);
  54902. while (true)
  54903. switch ($async$goto) {
  54904. case 0:
  54905. // Function start
  54906. if ($async$self._async_evaluate$_inFunction) {
  54907. $async$returnValue = null;
  54908. // goto return
  54909. $async$goto = 1;
  54910. break;
  54911. }
  54912. if ($async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent") === $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__root, "_root") && $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__endOfImports, "_endOfImports") === J.get$length$asx($async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__root, "_root").children._collection$_source))
  54913. $async$self._async_evaluate$__endOfImports = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__endOfImports, "_endOfImports") + 1;
  54914. t1 = node.text;
  54915. $async$temp1 = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent");
  54916. $async$temp2 = A;
  54917. $async$goto = 3;
  54918. return A._asyncAwait($async$self._async_evaluate$_performInterpolation$1(t1), $async$visitLoudComment$1);
  54919. case 3:
  54920. // returning from await.
  54921. $async$temp1.addChild$1(new $async$temp2.ModifiableCssComment($async$result, t1.span));
  54922. $async$returnValue = null;
  54923. // goto return
  54924. $async$goto = 1;
  54925. break;
  54926. case 1:
  54927. // return
  54928. return A._asyncReturn($async$returnValue, $async$completer);
  54929. }
  54930. });
  54931. return A._asyncStartSync($async$visitLoudComment$1, $async$completer);
  54932. },
  54933. visitMediaRule$1(node) {
  54934. return this.visitMediaRule$body$_EvaluateVisitor(node);
  54935. },
  54936. visitMediaRule$body$_EvaluateVisitor(node) {
  54937. var $async$goto = 0,
  54938. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
  54939. $async$returnValue, $async$self = this, queries, mergedQueries, t1, mergedSources, t2, t3;
  54940. var $async$visitMediaRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  54941. if ($async$errorCode === 1)
  54942. return A._asyncRethrow($async$result, $async$completer);
  54943. while (true)
  54944. switch ($async$goto) {
  54945. case 0:
  54946. // Function start
  54947. if ($async$self._async_evaluate$_declarationName != null)
  54948. throw A.wrapException($async$self._async_evaluate$_exception$2(string$.Media_, node.span));
  54949. $async$goto = 3;
  54950. return A._asyncAwait($async$self._async_evaluate$_visitMediaQueries$1(node.query), $async$visitMediaRule$1);
  54951. case 3:
  54952. // returning from await.
  54953. queries = $async$result;
  54954. mergedQueries = A.NullableExtension_andThen($async$self._async_evaluate$_mediaQueries, new A._EvaluateVisitor_visitMediaRule_closure2($async$self, queries));
  54955. t1 = mergedQueries == null;
  54956. if (!t1 && J.get$isEmpty$asx(mergedQueries)) {
  54957. $async$returnValue = null;
  54958. // goto return
  54959. $async$goto = 1;
  54960. break;
  54961. }
  54962. if (t1)
  54963. mergedSources = B.Set_empty0;
  54964. else {
  54965. t2 = $async$self._async_evaluate$_mediaQuerySources;
  54966. t2.toString;
  54967. t2 = A.LinkedHashSet_LinkedHashSet$of(t2, type$.CssMediaQuery);
  54968. t3 = $async$self._async_evaluate$_mediaQueries;
  54969. t3.toString;
  54970. t2.addAll$1(0, t3);
  54971. t2.addAll$1(0, queries);
  54972. mergedSources = t2;
  54973. }
  54974. t1 = t1 ? queries : mergedQueries;
  54975. $async$goto = 4;
  54976. return A._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(A.ModifiableCssMediaRule$(t1, node.span), new A._EvaluateVisitor_visitMediaRule_closure3($async$self, mergedQueries, queries, mergedSources, node), node.hasDeclarations, new A._EvaluateVisitor_visitMediaRule_closure4(mergedSources), type$.ModifiableCssMediaRule, type$.Null), $async$visitMediaRule$1);
  54977. case 4:
  54978. // returning from await.
  54979. $async$returnValue = null;
  54980. // goto return
  54981. $async$goto = 1;
  54982. break;
  54983. case 1:
  54984. // return
  54985. return A._asyncReturn($async$returnValue, $async$completer);
  54986. }
  54987. });
  54988. return A._asyncStartSync($async$visitMediaRule$1, $async$completer);
  54989. },
  54990. _async_evaluate$_visitMediaQueries$1(interpolation) {
  54991. return this._visitMediaQueries$body$_EvaluateVisitor(interpolation);
  54992. },
  54993. _visitMediaQueries$body$_EvaluateVisitor(interpolation) {
  54994. var $async$goto = 0,
  54995. $async$completer = A._makeAsyncAwaitCompleter(type$.List_CssMediaQuery),
  54996. $async$returnValue, $async$self = this, $async$temp1, $async$temp2;
  54997. var $async$_async_evaluate$_visitMediaQueries$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  54998. if ($async$errorCode === 1)
  54999. return A._asyncRethrow($async$result, $async$completer);
  55000. while (true)
  55001. switch ($async$goto) {
  55002. case 0:
  55003. // Function start
  55004. $async$temp1 = interpolation;
  55005. $async$temp2 = A;
  55006. $async$goto = 3;
  55007. return A._asyncAwait($async$self._async_evaluate$_performInterpolation$2$warnForColor(interpolation, true), $async$_async_evaluate$_visitMediaQueries$1);
  55008. case 3:
  55009. // returning from await.
  55010. $async$returnValue = $async$self._async_evaluate$_adjustParseError$2($async$temp1, new $async$temp2._EvaluateVisitor__visitMediaQueries_closure0($async$self, $async$result));
  55011. // goto return
  55012. $async$goto = 1;
  55013. break;
  55014. case 1:
  55015. // return
  55016. return A._asyncReturn($async$returnValue, $async$completer);
  55017. }
  55018. });
  55019. return A._asyncStartSync($async$_async_evaluate$_visitMediaQueries$1, $async$completer);
  55020. },
  55021. _async_evaluate$_mergeMediaQueries$2(queries1, queries2) {
  55022. var t1, t2, t3, t4, t5, result,
  55023. queries = A._setArrayType([], type$.JSArray_CssMediaQuery);
  55024. for (t1 = J.get$iterator$ax(queries1), t2 = J.getInterceptor$ax(queries2), t3 = type$.MediaQuerySuccessfulMergeResult; t1.moveNext$0();) {
  55025. t4 = t1.get$current(t1);
  55026. for (t5 = t2.get$iterator(queries2); t5.moveNext$0();) {
  55027. result = t4.merge$1(t5.get$current(t5));
  55028. if (result === B._SingletonCssMediaQueryMergeResult_empty)
  55029. continue;
  55030. if (result === B._SingletonCssMediaQueryMergeResult_unrepresentable)
  55031. return null;
  55032. queries.push(t3._as(result).query);
  55033. }
  55034. }
  55035. return queries;
  55036. },
  55037. visitReturnRule$1(node) {
  55038. return this.visitReturnRule$body$_EvaluateVisitor(node);
  55039. },
  55040. visitReturnRule$body$_EvaluateVisitor(node) {
  55041. var $async$goto = 0,
  55042. $async$completer = A._makeAsyncAwaitCompleter(type$.Value),
  55043. $async$returnValue, $async$self = this, t1;
  55044. var $async$visitReturnRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  55045. if ($async$errorCode === 1)
  55046. return A._asyncRethrow($async$result, $async$completer);
  55047. while (true)
  55048. switch ($async$goto) {
  55049. case 0:
  55050. // Function start
  55051. t1 = node.expression;
  55052. $async$goto = 3;
  55053. return A._asyncAwait(t1.accept$1($async$self), $async$visitReturnRule$1);
  55054. case 3:
  55055. // returning from await.
  55056. $async$returnValue = $async$self._async_evaluate$_withoutSlash$2($async$result, t1);
  55057. // goto return
  55058. $async$goto = 1;
  55059. break;
  55060. case 1:
  55061. // return
  55062. return A._asyncReturn($async$returnValue, $async$completer);
  55063. }
  55064. });
  55065. return A._asyncStartSync($async$visitReturnRule$1, $async$completer);
  55066. },
  55067. visitSilentComment$1(node) {
  55068. return this.visitSilentComment$body$_EvaluateVisitor(node);
  55069. },
  55070. visitSilentComment$body$_EvaluateVisitor(node) {
  55071. var $async$goto = 0,
  55072. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
  55073. $async$returnValue;
  55074. var $async$visitSilentComment$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  55075. if ($async$errorCode === 1)
  55076. return A._asyncRethrow($async$result, $async$completer);
  55077. while (true)
  55078. switch ($async$goto) {
  55079. case 0:
  55080. // Function start
  55081. $async$returnValue = null;
  55082. // goto return
  55083. $async$goto = 1;
  55084. break;
  55085. case 1:
  55086. // return
  55087. return A._asyncReturn($async$returnValue, $async$completer);
  55088. }
  55089. });
  55090. return A._asyncStartSync($async$visitSilentComment$1, $async$completer);
  55091. },
  55092. visitStyleRule$1(node) {
  55093. return this.visitStyleRule$body$_EvaluateVisitor(node);
  55094. },
  55095. visitStyleRule$body$_EvaluateVisitor(node) {
  55096. var $async$goto = 0,
  55097. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
  55098. $async$returnValue, $async$self = this, t1, selectorText, rule, oldAtRootExcludingStyleRule, t2, t3, t4, t5, t6, _i, complex, visitor, t7, t8, t9, _box_0;
  55099. var $async$visitStyleRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  55100. if ($async$errorCode === 1)
  55101. return A._asyncRethrow($async$result, $async$completer);
  55102. while (true)
  55103. switch ($async$goto) {
  55104. case 0:
  55105. // Function start
  55106. _box_0 = {};
  55107. if ($async$self._async_evaluate$_declarationName != null)
  55108. throw A.wrapException($async$self._async_evaluate$_exception$2(string$.Style_, node.span));
  55109. t1 = node.selector;
  55110. $async$goto = 3;
  55111. return A._asyncAwait($async$self._async_evaluate$_interpolationToValue$3$trim$warnForColor(t1, true, true), $async$visitStyleRule$1);
  55112. case 3:
  55113. // returning from await.
  55114. selectorText = $async$result;
  55115. $async$goto = $async$self._async_evaluate$_inKeyframes ? 4 : 5;
  55116. break;
  55117. case 4:
  55118. // then
  55119. $async$goto = 6;
  55120. return A._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(A.ModifiableCssKeyframeBlock$(new A.CssValue(A.List_List$unmodifiable($async$self._async_evaluate$_adjustParseError$2(t1, new A._EvaluateVisitor_visitStyleRule_closure7($async$self, selectorText)), type$.String), t1.span, type$.CssValue_List_String), node.span), new A._EvaluateVisitor_visitStyleRule_closure8($async$self, node), node.hasDeclarations, new A._EvaluateVisitor_visitStyleRule_closure9(), type$.ModifiableCssKeyframeBlock, type$.Null), $async$visitStyleRule$1);
  55121. case 6:
  55122. // returning from await.
  55123. $async$returnValue = null;
  55124. // goto return
  55125. $async$goto = 1;
  55126. break;
  55127. case 5:
  55128. // join
  55129. _box_0.parsedSelector = $async$self._async_evaluate$_adjustParseError$2(t1, new A._EvaluateVisitor_visitStyleRule_closure10($async$self, selectorText));
  55130. _box_0.parsedSelector = $async$self._async_evaluate$_addExceptionSpan$2(t1, new A._EvaluateVisitor_visitStyleRule_closure11(_box_0, $async$self));
  55131. t1 = t1.span;
  55132. rule = A.ModifiableCssStyleRule$($async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__extensionStore, "_extensionStore").addSelector$3(_box_0.parsedSelector, t1, $async$self._async_evaluate$_mediaQueries), node.span, _box_0.parsedSelector);
  55133. oldAtRootExcludingStyleRule = $async$self._async_evaluate$_atRootExcludingStyleRule;
  55134. $async$self._async_evaluate$_atRootExcludingStyleRule = false;
  55135. $async$goto = 7;
  55136. return A._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(rule, new A._EvaluateVisitor_visitStyleRule_closure12($async$self, rule, node), node.hasDeclarations, new A._EvaluateVisitor_visitStyleRule_closure13(), type$.ModifiableCssStyleRule, type$.Null), $async$visitStyleRule$1);
  55137. case 7:
  55138. // returning from await.
  55139. $async$self._async_evaluate$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  55140. if (!rule.accept$1(B._IsInvisibleVisitor_false_false))
  55141. for (t2 = _box_0.parsedSelector.components, t3 = t2.length, t4 = type$.SourceSpan, t5 = type$.String, t6 = rule.children, _i = 0; _i < t3; ++_i) {
  55142. complex = t2[_i];
  55143. if (!complex.accept$1(B._IsBogusVisitor_true))
  55144. continue;
  55145. if (complex.accept$1(B.C__IsUselessVisitor)) {
  55146. visitor = A._SerializeVisitor$(null, true, null, true, false, null, true);
  55147. complex.accept$1(visitor);
  55148. $async$self._async_evaluate$_warn$3$deprecation('The selector "' + B.JSString_methods.trim$0(visitor._serialize$_buffer.toString$0(0)) + string$.x22x20is_ix20, t1, true);
  55149. } else if (complex.leadingCombinators.length !== 0) {
  55150. visitor = A._SerializeVisitor$(null, true, null, true, false, null, true);
  55151. complex.accept$1(visitor);
  55152. $async$self._async_evaluate$_warn$3$deprecation('The selector "' + B.JSString_methods.trim$0(visitor._serialize$_buffer.toString$0(0)) + string$.x22x20is_ix0a, t1, true);
  55153. } else {
  55154. visitor = A._SerializeVisitor$(null, true, null, true, false, null, true);
  55155. complex.accept$1(visitor);
  55156. t7 = B.JSString_methods.trim$0(visitor._serialize$_buffer.toString$0(0));
  55157. t8 = complex.accept$1(B._IsBogusVisitor_false) ? string$.x20It_wi : "";
  55158. if (t6.get$length(t6) === 0)
  55159. A.throwExpression(A.IterableElementError_noElement());
  55160. t9 = J.get$span$z(t6.$index(0, 0));
  55161. $async$self._async_evaluate$_warn$3$deprecation('The selector "' + t7 + string$.x22x20is_o + t8 + string$.x0aThis_, new A.MultiSpan(t1, "invalid selector", A.ConstantMap_ConstantMap$from(A.LinkedHashMap_LinkedHashMap$_literal([t9, "this is not a style rule" + (t6.every$1(t6, new A._EvaluateVisitor_visitStyleRule_closure14()) ? "\n(try converting to a //-style comment)" : "")], t4, t5), t4, t5)), true);
  55162. }
  55163. }
  55164. if (($async$self._async_evaluate$_atRootExcludingStyleRule ? null : $async$self._async_evaluate$_styleRuleIgnoringAtRoot) == null) {
  55165. t1 = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent").children;
  55166. t1 = !t1.get$isEmpty(t1);
  55167. } else
  55168. t1 = false;
  55169. if (t1) {
  55170. t1 = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent").children;
  55171. t1.get$last(t1).isGroupEnd = true;
  55172. }
  55173. $async$returnValue = null;
  55174. // goto return
  55175. $async$goto = 1;
  55176. break;
  55177. case 1:
  55178. // return
  55179. return A._asyncReturn($async$returnValue, $async$completer);
  55180. }
  55181. });
  55182. return A._asyncStartSync($async$visitStyleRule$1, $async$completer);
  55183. },
  55184. visitSupportsRule$1(node) {
  55185. return this.visitSupportsRule$body$_EvaluateVisitor(node);
  55186. },
  55187. visitSupportsRule$body$_EvaluateVisitor(node) {
  55188. var $async$goto = 0,
  55189. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
  55190. $async$returnValue, $async$self = this, t1, $async$temp1, $async$temp2;
  55191. var $async$visitSupportsRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  55192. if ($async$errorCode === 1)
  55193. return A._asyncRethrow($async$result, $async$completer);
  55194. while (true)
  55195. switch ($async$goto) {
  55196. case 0:
  55197. // Function start
  55198. if ($async$self._async_evaluate$_declarationName != null)
  55199. throw A.wrapException($async$self._async_evaluate$_exception$2(string$.Suppor, node.span));
  55200. t1 = node.condition;
  55201. $async$temp1 = A;
  55202. $async$temp2 = A;
  55203. $async$goto = 4;
  55204. return A._asyncAwait($async$self._async_evaluate$_visitSupportsCondition$1(t1), $async$visitSupportsRule$1);
  55205. case 4:
  55206. // returning from await.
  55207. $async$goto = 3;
  55208. return A._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through($async$temp1.ModifiableCssSupportsRule$(new $async$temp2.CssValue($async$result, t1.get$span(t1), type$.CssValue_String), node.span), new A._EvaluateVisitor_visitSupportsRule_closure1($async$self, node), node.hasDeclarations, new A._EvaluateVisitor_visitSupportsRule_closure2(), type$.ModifiableCssSupportsRule, type$.Null), $async$visitSupportsRule$1);
  55209. case 3:
  55210. // returning from await.
  55211. $async$returnValue = null;
  55212. // goto return
  55213. $async$goto = 1;
  55214. break;
  55215. case 1:
  55216. // return
  55217. return A._asyncReturn($async$returnValue, $async$completer);
  55218. }
  55219. });
  55220. return A._asyncStartSync($async$visitSupportsRule$1, $async$completer);
  55221. },
  55222. _async_evaluate$_visitSupportsCondition$1(condition) {
  55223. return this._visitSupportsCondition$body$_EvaluateVisitor(condition);
  55224. },
  55225. _visitSupportsCondition$body$_EvaluateVisitor(condition) {
  55226. var $async$goto = 0,
  55227. $async$completer = A._makeAsyncAwaitCompleter(type$.String),
  55228. $async$returnValue, $async$self = this, t1, oldInSupportsDeclaration, t2, t3, $async$temp1, $async$temp2;
  55229. var $async$_async_evaluate$_visitSupportsCondition$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  55230. if ($async$errorCode === 1)
  55231. return A._asyncRethrow($async$result, $async$completer);
  55232. while (true)
  55233. switch ($async$goto) {
  55234. case 0:
  55235. // Function start
  55236. $async$goto = condition instanceof A.SupportsOperation ? 3 : 5;
  55237. break;
  55238. case 3:
  55239. // then
  55240. t1 = condition.operator;
  55241. $async$temp1 = A;
  55242. $async$goto = 6;
  55243. return A._asyncAwait($async$self._async_evaluate$_parenthesize$2(condition.left, t1), $async$_async_evaluate$_visitSupportsCondition$1);
  55244. case 6:
  55245. // returning from await.
  55246. $async$temp1 = $async$temp1.S($async$result) + " " + t1 + " ";
  55247. $async$temp2 = A;
  55248. $async$goto = 7;
  55249. return A._asyncAwait($async$self._async_evaluate$_parenthesize$2(condition.right, t1), $async$_async_evaluate$_visitSupportsCondition$1);
  55250. case 7:
  55251. // returning from await.
  55252. $async$returnValue = $async$temp1 + $async$temp2.S($async$result);
  55253. // goto return
  55254. $async$goto = 1;
  55255. break;
  55256. // goto join
  55257. $async$goto = 4;
  55258. break;
  55259. case 5:
  55260. // else
  55261. $async$goto = condition instanceof A.SupportsNegation ? 8 : 10;
  55262. break;
  55263. case 8:
  55264. // then
  55265. $async$temp1 = A;
  55266. $async$goto = 11;
  55267. return A._asyncAwait($async$self._async_evaluate$_parenthesize$1(condition.condition), $async$_async_evaluate$_visitSupportsCondition$1);
  55268. case 11:
  55269. // returning from await.
  55270. $async$returnValue = "not " + $async$temp1.S($async$result);
  55271. // goto return
  55272. $async$goto = 1;
  55273. break;
  55274. // goto join
  55275. $async$goto = 9;
  55276. break;
  55277. case 10:
  55278. // else
  55279. $async$goto = condition instanceof A.SupportsInterpolation ? 12 : 14;
  55280. break;
  55281. case 12:
  55282. // then
  55283. $async$goto = 15;
  55284. return A._asyncAwait($async$self._evaluateToCss$2$quote(condition.expression, false), $async$_async_evaluate$_visitSupportsCondition$1);
  55285. case 15:
  55286. // returning from await.
  55287. $async$returnValue = $async$result;
  55288. // goto return
  55289. $async$goto = 1;
  55290. break;
  55291. // goto join
  55292. $async$goto = 13;
  55293. break;
  55294. case 14:
  55295. // else
  55296. $async$goto = condition instanceof A.SupportsDeclaration ? 16 : 18;
  55297. break;
  55298. case 16:
  55299. // then
  55300. oldInSupportsDeclaration = $async$self._async_evaluate$_inSupportsDeclaration;
  55301. $async$self._async_evaluate$_inSupportsDeclaration = true;
  55302. $async$temp1 = A;
  55303. $async$goto = 19;
  55304. return A._asyncAwait($async$self._evaluateToCss$1(condition.name), $async$_async_evaluate$_visitSupportsCondition$1);
  55305. case 19:
  55306. // returning from await.
  55307. t1 = $async$temp1.S($async$result);
  55308. t2 = condition.get$isCustomProperty() ? "" : " ";
  55309. $async$temp1 = A;
  55310. $async$goto = 20;
  55311. return A._asyncAwait($async$self._evaluateToCss$1(condition.value), $async$_async_evaluate$_visitSupportsCondition$1);
  55312. case 20:
  55313. // returning from await.
  55314. t3 = $async$temp1.S($async$result);
  55315. $async$self._async_evaluate$_inSupportsDeclaration = oldInSupportsDeclaration;
  55316. $async$returnValue = "(" + t1 + ":" + t2 + t3 + ")";
  55317. // goto return
  55318. $async$goto = 1;
  55319. break;
  55320. // goto join
  55321. $async$goto = 17;
  55322. break;
  55323. case 18:
  55324. // else
  55325. $async$goto = condition instanceof A.SupportsFunction ? 21 : 23;
  55326. break;
  55327. case 21:
  55328. // then
  55329. $async$temp1 = A;
  55330. $async$goto = 24;
  55331. return A._asyncAwait($async$self._async_evaluate$_performInterpolation$1(condition.name), $async$_async_evaluate$_visitSupportsCondition$1);
  55332. case 24:
  55333. // returning from await.
  55334. $async$temp1 = $async$temp1.S($async$result) + "(";
  55335. $async$temp2 = A;
  55336. $async$goto = 25;
  55337. return A._asyncAwait($async$self._async_evaluate$_performInterpolation$1(condition.$arguments), $async$_async_evaluate$_visitSupportsCondition$1);
  55338. case 25:
  55339. // returning from await.
  55340. $async$returnValue = $async$temp1 + $async$temp2.S($async$result) + ")";
  55341. // goto return
  55342. $async$goto = 1;
  55343. break;
  55344. // goto join
  55345. $async$goto = 22;
  55346. break;
  55347. case 23:
  55348. // else
  55349. $async$goto = condition instanceof A.SupportsAnything ? 26 : 28;
  55350. break;
  55351. case 26:
  55352. // then
  55353. $async$temp1 = A;
  55354. $async$goto = 29;
  55355. return A._asyncAwait($async$self._async_evaluate$_performInterpolation$1(condition.contents), $async$_async_evaluate$_visitSupportsCondition$1);
  55356. case 29:
  55357. // returning from await.
  55358. $async$returnValue = "(" + $async$temp1.S($async$result) + ")";
  55359. // goto return
  55360. $async$goto = 1;
  55361. break;
  55362. // goto join
  55363. $async$goto = 27;
  55364. break;
  55365. case 28:
  55366. // else
  55367. throw A.wrapException(A.ArgumentError$("Unknown supports condition type " + A.getRuntimeType(condition).toString$0(0) + ".", null));
  55368. case 27:
  55369. // join
  55370. case 22:
  55371. // join
  55372. case 17:
  55373. // join
  55374. case 13:
  55375. // join
  55376. case 9:
  55377. // join
  55378. case 4:
  55379. // join
  55380. case 1:
  55381. // return
  55382. return A._asyncReturn($async$returnValue, $async$completer);
  55383. }
  55384. });
  55385. return A._asyncStartSync($async$_async_evaluate$_visitSupportsCondition$1, $async$completer);
  55386. },
  55387. _async_evaluate$_parenthesize$2(condition, operator) {
  55388. return this._parenthesize$body$_EvaluateVisitor(condition, operator);
  55389. },
  55390. _async_evaluate$_parenthesize$1(condition) {
  55391. return this._async_evaluate$_parenthesize$2(condition, null);
  55392. },
  55393. _parenthesize$body$_EvaluateVisitor(condition, operator) {
  55394. var $async$goto = 0,
  55395. $async$completer = A._makeAsyncAwaitCompleter(type$.String),
  55396. $async$returnValue, $async$self = this, t1, $async$temp1;
  55397. var $async$_async_evaluate$_parenthesize$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  55398. if ($async$errorCode === 1)
  55399. return A._asyncRethrow($async$result, $async$completer);
  55400. while (true)
  55401. switch ($async$goto) {
  55402. case 0:
  55403. // Function start
  55404. if (!(condition instanceof A.SupportsNegation))
  55405. if (condition instanceof A.SupportsOperation)
  55406. t1 = operator == null || operator !== condition.operator;
  55407. else
  55408. t1 = false;
  55409. else
  55410. t1 = true;
  55411. $async$goto = t1 ? 3 : 5;
  55412. break;
  55413. case 3:
  55414. // then
  55415. $async$temp1 = A;
  55416. $async$goto = 6;
  55417. return A._asyncAwait($async$self._async_evaluate$_visitSupportsCondition$1(condition), $async$_async_evaluate$_parenthesize$2);
  55418. case 6:
  55419. // returning from await.
  55420. $async$returnValue = "(" + $async$temp1.S($async$result) + ")";
  55421. // goto return
  55422. $async$goto = 1;
  55423. break;
  55424. // goto join
  55425. $async$goto = 4;
  55426. break;
  55427. case 5:
  55428. // else
  55429. $async$goto = 7;
  55430. return A._asyncAwait($async$self._async_evaluate$_visitSupportsCondition$1(condition), $async$_async_evaluate$_parenthesize$2);
  55431. case 7:
  55432. // returning from await.
  55433. $async$returnValue = $async$result;
  55434. // goto return
  55435. $async$goto = 1;
  55436. break;
  55437. case 4:
  55438. // join
  55439. case 1:
  55440. // return
  55441. return A._asyncReturn($async$returnValue, $async$completer);
  55442. }
  55443. });
  55444. return A._asyncStartSync($async$_async_evaluate$_parenthesize$2, $async$completer);
  55445. },
  55446. visitVariableDeclaration$1(node) {
  55447. return this.visitVariableDeclaration$body$_EvaluateVisitor(node);
  55448. },
  55449. visitVariableDeclaration$body$_EvaluateVisitor(node) {
  55450. var $async$goto = 0,
  55451. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
  55452. $async$returnValue, $async$self = this, t1, value, $async$temp1, $async$temp2, $async$temp3;
  55453. var $async$visitVariableDeclaration$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  55454. if ($async$errorCode === 1)
  55455. return A._asyncRethrow($async$result, $async$completer);
  55456. while (true)
  55457. switch ($async$goto) {
  55458. case 0:
  55459. // Function start
  55460. if (node.isGuarded) {
  55461. if (node.namespace == null && $async$self._async_evaluate$_environment._async_environment$_variables.length === 1) {
  55462. t1 = $async$self._async_evaluate$_configuration._values;
  55463. t1 = t1.get$isEmpty(t1) ? null : t1.remove$1(0, node.name);
  55464. if (t1 != null && !t1.value.$eq(0, B.C__SassNull)) {
  55465. $async$self._async_evaluate$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableDeclaration_closure2($async$self, node, t1));
  55466. $async$returnValue = null;
  55467. // goto return
  55468. $async$goto = 1;
  55469. break;
  55470. }
  55471. }
  55472. value = $async$self._async_evaluate$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableDeclaration_closure3($async$self, node));
  55473. if (value != null && !value.$eq(0, B.C__SassNull)) {
  55474. $async$returnValue = null;
  55475. // goto return
  55476. $async$goto = 1;
  55477. break;
  55478. }
  55479. }
  55480. if (node.isGlobal && !$async$self._async_evaluate$_environment.globalVariableExists$1(node.name)) {
  55481. t1 = $async$self._async_evaluate$_environment._async_environment$_variables.length === 1 ? string$.As_of_S : string$.As_of_R + A.declarationName(node.span) + ": null` at the stylesheet root.";
  55482. $async$self._async_evaluate$_warn$3$deprecation(t1, node.span, true);
  55483. }
  55484. t1 = node.expression;
  55485. $async$temp1 = node;
  55486. $async$temp2 = A;
  55487. $async$temp3 = node;
  55488. $async$goto = 3;
  55489. return A._asyncAwait(t1.accept$1($async$self), $async$visitVariableDeclaration$1);
  55490. case 3:
  55491. // returning from await.
  55492. $async$self._async_evaluate$_addExceptionSpan$2($async$temp1, new $async$temp2._EvaluateVisitor_visitVariableDeclaration_closure4($async$self, $async$temp3, $async$self._async_evaluate$_withoutSlash$2($async$result, t1)));
  55493. $async$returnValue = null;
  55494. // goto return
  55495. $async$goto = 1;
  55496. break;
  55497. case 1:
  55498. // return
  55499. return A._asyncReturn($async$returnValue, $async$completer);
  55500. }
  55501. });
  55502. return A._asyncStartSync($async$visitVariableDeclaration$1, $async$completer);
  55503. },
  55504. visitUseRule$1(node) {
  55505. return this.visitUseRule$body$_EvaluateVisitor(node);
  55506. },
  55507. visitUseRule$body$_EvaluateVisitor(node) {
  55508. var $async$goto = 0,
  55509. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
  55510. $async$returnValue, $async$self = this, values, _i, variable, t3, variableNodeWithSpan, configuration, t1, t2, $async$temp1, $async$temp2, $async$temp3;
  55511. var $async$visitUseRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  55512. if ($async$errorCode === 1)
  55513. return A._asyncRethrow($async$result, $async$completer);
  55514. while (true)
  55515. switch ($async$goto) {
  55516. case 0:
  55517. // Function start
  55518. t1 = node.configuration;
  55519. t2 = t1.length;
  55520. $async$goto = t2 !== 0 ? 3 : 5;
  55521. break;
  55522. case 3:
  55523. // then
  55524. values = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.ConfiguredValue);
  55525. _i = 0;
  55526. case 6:
  55527. // for condition
  55528. if (!(_i < t2)) {
  55529. // goto after for
  55530. $async$goto = 8;
  55531. break;
  55532. }
  55533. variable = t1[_i];
  55534. t3 = variable.expression;
  55535. variableNodeWithSpan = $async$self._async_evaluate$_expressionNode$1(t3);
  55536. $async$temp1 = values;
  55537. $async$temp2 = variable.name;
  55538. $async$temp3 = A;
  55539. $async$goto = 9;
  55540. return A._asyncAwait(t3.accept$1($async$self), $async$visitUseRule$1);
  55541. case 9:
  55542. // returning from await.
  55543. $async$temp1.$indexSet(0, $async$temp2, new $async$temp3.ConfiguredValue($async$self._async_evaluate$_withoutSlash$2($async$result, variableNodeWithSpan), variable.span, variableNodeWithSpan));
  55544. case 7:
  55545. // for update
  55546. ++_i;
  55547. // goto for condition
  55548. $async$goto = 6;
  55549. break;
  55550. case 8:
  55551. // after for
  55552. configuration = new A.ExplicitConfiguration(node, values, null);
  55553. // goto join
  55554. $async$goto = 4;
  55555. break;
  55556. case 5:
  55557. // else
  55558. configuration = B.Configuration_Map_empty_null;
  55559. case 4:
  55560. // join
  55561. $async$goto = 10;
  55562. return A._asyncAwait($async$self._async_evaluate$_loadModule$5$configuration(node.url, "@use", node, new A._EvaluateVisitor_visitUseRule_closure0($async$self, node), configuration), $async$visitUseRule$1);
  55563. case 10:
  55564. // returning from await.
  55565. $async$self._async_evaluate$_assertConfigurationIsEmpty$1(configuration);
  55566. $async$returnValue = null;
  55567. // goto return
  55568. $async$goto = 1;
  55569. break;
  55570. case 1:
  55571. // return
  55572. return A._asyncReturn($async$returnValue, $async$completer);
  55573. }
  55574. });
  55575. return A._asyncStartSync($async$visitUseRule$1, $async$completer);
  55576. },
  55577. visitWarnRule$1(node) {
  55578. return this.visitWarnRule$body$_EvaluateVisitor(node);
  55579. },
  55580. visitWarnRule$body$_EvaluateVisitor(node) {
  55581. var $async$goto = 0,
  55582. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
  55583. $async$returnValue, $async$self = this, value, t1;
  55584. var $async$visitWarnRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  55585. if ($async$errorCode === 1)
  55586. return A._asyncRethrow($async$result, $async$completer);
  55587. while (true)
  55588. switch ($async$goto) {
  55589. case 0:
  55590. // Function start
  55591. $async$goto = 3;
  55592. return A._asyncAwait($async$self._addExceptionSpanAsync$1$2(node, new A._EvaluateVisitor_visitWarnRule_closure0($async$self, node), type$.Value), $async$visitWarnRule$1);
  55593. case 3:
  55594. // returning from await.
  55595. value = $async$result;
  55596. t1 = value instanceof A.SassString ? value._string$_text : $async$self._async_evaluate$_serialize$2(value, node.expression);
  55597. $async$self._async_evaluate$_logger.warn$2$trace(0, t1, $async$self._async_evaluate$_stackTrace$1(node.span));
  55598. $async$returnValue = null;
  55599. // goto return
  55600. $async$goto = 1;
  55601. break;
  55602. case 1:
  55603. // return
  55604. return A._asyncReturn($async$returnValue, $async$completer);
  55605. }
  55606. });
  55607. return A._asyncStartSync($async$visitWarnRule$1, $async$completer);
  55608. },
  55609. visitWhileRule$1(node) {
  55610. return this._async_evaluate$_environment.scope$1$3$semiGlobal$when(new A._EvaluateVisitor_visitWhileRule_closure0(this, node), true, node.hasDeclarations, type$.nullable_Value);
  55611. },
  55612. visitBinaryOperationExpression$1(node) {
  55613. return this._addExceptionSpanAsync$1$2(node, new A._EvaluateVisitor_visitBinaryOperationExpression_closure0(this, node), type$.Value);
  55614. },
  55615. visitValueExpression$1(node) {
  55616. return this.visitValueExpression$body$_EvaluateVisitor(node);
  55617. },
  55618. visitValueExpression$body$_EvaluateVisitor(node) {
  55619. var $async$goto = 0,
  55620. $async$completer = A._makeAsyncAwaitCompleter(type$.Value),
  55621. $async$returnValue;
  55622. var $async$visitValueExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  55623. if ($async$errorCode === 1)
  55624. return A._asyncRethrow($async$result, $async$completer);
  55625. while (true)
  55626. switch ($async$goto) {
  55627. case 0:
  55628. // Function start
  55629. $async$returnValue = node.value;
  55630. // goto return
  55631. $async$goto = 1;
  55632. break;
  55633. case 1:
  55634. // return
  55635. return A._asyncReturn($async$returnValue, $async$completer);
  55636. }
  55637. });
  55638. return A._asyncStartSync($async$visitValueExpression$1, $async$completer);
  55639. },
  55640. visitVariableExpression$1(node) {
  55641. return this.visitVariableExpression$body$_EvaluateVisitor(node);
  55642. },
  55643. visitVariableExpression$body$_EvaluateVisitor(node) {
  55644. var $async$goto = 0,
  55645. $async$completer = A._makeAsyncAwaitCompleter(type$.Value),
  55646. $async$returnValue, $async$self = this, result;
  55647. var $async$visitVariableExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  55648. if ($async$errorCode === 1)
  55649. return A._asyncRethrow($async$result, $async$completer);
  55650. while (true)
  55651. switch ($async$goto) {
  55652. case 0:
  55653. // Function start
  55654. result = $async$self._async_evaluate$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableExpression_closure0($async$self, node));
  55655. if (result != null) {
  55656. $async$returnValue = result;
  55657. // goto return
  55658. $async$goto = 1;
  55659. break;
  55660. }
  55661. throw A.wrapException($async$self._async_evaluate$_exception$2("Undefined variable.", node.span));
  55662. case 1:
  55663. // return
  55664. return A._asyncReturn($async$returnValue, $async$completer);
  55665. }
  55666. });
  55667. return A._asyncStartSync($async$visitVariableExpression$1, $async$completer);
  55668. },
  55669. visitUnaryOperationExpression$1(node) {
  55670. return this.visitUnaryOperationExpression$body$_EvaluateVisitor(node);
  55671. },
  55672. visitUnaryOperationExpression$body$_EvaluateVisitor(node) {
  55673. var $async$goto = 0,
  55674. $async$completer = A._makeAsyncAwaitCompleter(type$.Value),
  55675. $async$returnValue, $async$self = this, $async$temp1, $async$temp2, $async$temp3;
  55676. var $async$visitUnaryOperationExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  55677. if ($async$errorCode === 1)
  55678. return A._asyncRethrow($async$result, $async$completer);
  55679. while (true)
  55680. switch ($async$goto) {
  55681. case 0:
  55682. // Function start
  55683. $async$temp1 = node;
  55684. $async$temp2 = A;
  55685. $async$temp3 = node;
  55686. $async$goto = 3;
  55687. return A._asyncAwait(node.operand.accept$1($async$self), $async$visitUnaryOperationExpression$1);
  55688. case 3:
  55689. // returning from await.
  55690. $async$returnValue = $async$self._async_evaluate$_addExceptionSpan$2($async$temp1, new $async$temp2._EvaluateVisitor_visitUnaryOperationExpression_closure0($async$temp3, $async$result));
  55691. // goto return
  55692. $async$goto = 1;
  55693. break;
  55694. case 1:
  55695. // return
  55696. return A._asyncReturn($async$returnValue, $async$completer);
  55697. }
  55698. });
  55699. return A._asyncStartSync($async$visitUnaryOperationExpression$1, $async$completer);
  55700. },
  55701. visitBooleanExpression$1(node) {
  55702. return this.visitBooleanExpression$body$_EvaluateVisitor(node);
  55703. },
  55704. visitBooleanExpression$body$_EvaluateVisitor(node) {
  55705. var $async$goto = 0,
  55706. $async$completer = A._makeAsyncAwaitCompleter(type$.SassBoolean),
  55707. $async$returnValue;
  55708. var $async$visitBooleanExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  55709. if ($async$errorCode === 1)
  55710. return A._asyncRethrow($async$result, $async$completer);
  55711. while (true)
  55712. switch ($async$goto) {
  55713. case 0:
  55714. // Function start
  55715. $async$returnValue = node.value ? B.SassBoolean_true : B.SassBoolean_false;
  55716. // goto return
  55717. $async$goto = 1;
  55718. break;
  55719. case 1:
  55720. // return
  55721. return A._asyncReturn($async$returnValue, $async$completer);
  55722. }
  55723. });
  55724. return A._asyncStartSync($async$visitBooleanExpression$1, $async$completer);
  55725. },
  55726. visitIfExpression$1(node) {
  55727. return this.visitIfExpression$body$_EvaluateVisitor(node);
  55728. },
  55729. visitIfExpression$body$_EvaluateVisitor(node) {
  55730. var $async$goto = 0,
  55731. $async$completer = A._makeAsyncAwaitCompleter(type$.Value),
  55732. $async$returnValue, $async$self = this, condition, t2, ifTrue, ifFalse, result, pair, positional, named, t1;
  55733. var $async$visitIfExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  55734. if ($async$errorCode === 1)
  55735. return A._asyncRethrow($async$result, $async$completer);
  55736. while (true)
  55737. switch ($async$goto) {
  55738. case 0:
  55739. // Function start
  55740. $async$goto = 3;
  55741. return A._asyncAwait($async$self._async_evaluate$_evaluateMacroArguments$1(node), $async$visitIfExpression$1);
  55742. case 3:
  55743. // returning from await.
  55744. pair = $async$result;
  55745. positional = pair.item1;
  55746. named = pair.item2;
  55747. t1 = J.getInterceptor$asx(positional);
  55748. $async$self._async_evaluate$_verifyArguments$4(t1.get$length(positional), named, $.$get$IfExpression_declaration(), node);
  55749. if (t1.get$length(positional) > 0)
  55750. condition = t1.$index(positional, 0);
  55751. else {
  55752. t2 = named.$index(0, "condition");
  55753. t2.toString;
  55754. condition = t2;
  55755. }
  55756. if (t1.get$length(positional) > 1)
  55757. ifTrue = t1.$index(positional, 1);
  55758. else {
  55759. t2 = named.$index(0, "if-true");
  55760. t2.toString;
  55761. ifTrue = t2;
  55762. }
  55763. if (t1.get$length(positional) > 2)
  55764. ifFalse = t1.$index(positional, 2);
  55765. else {
  55766. t1 = named.$index(0, "if-false");
  55767. t1.toString;
  55768. ifFalse = t1;
  55769. }
  55770. $async$goto = 4;
  55771. return A._asyncAwait(condition.accept$1($async$self), $async$visitIfExpression$1);
  55772. case 4:
  55773. // returning from await.
  55774. result = $async$result.get$isTruthy() ? ifTrue : ifFalse;
  55775. $async$goto = 5;
  55776. return A._asyncAwait(result.accept$1($async$self), $async$visitIfExpression$1);
  55777. case 5:
  55778. // returning from await.
  55779. $async$returnValue = $async$self._async_evaluate$_withoutSlash$2($async$result, $async$self._async_evaluate$_expressionNode$1(result));
  55780. // goto return
  55781. $async$goto = 1;
  55782. break;
  55783. case 1:
  55784. // return
  55785. return A._asyncReturn($async$returnValue, $async$completer);
  55786. }
  55787. });
  55788. return A._asyncStartSync($async$visitIfExpression$1, $async$completer);
  55789. },
  55790. visitNullExpression$1(node) {
  55791. return this.visitNullExpression$body$_EvaluateVisitor(node);
  55792. },
  55793. visitNullExpression$body$_EvaluateVisitor(node) {
  55794. var $async$goto = 0,
  55795. $async$completer = A._makeAsyncAwaitCompleter(type$.Value),
  55796. $async$returnValue;
  55797. var $async$visitNullExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  55798. if ($async$errorCode === 1)
  55799. return A._asyncRethrow($async$result, $async$completer);
  55800. while (true)
  55801. switch ($async$goto) {
  55802. case 0:
  55803. // Function start
  55804. $async$returnValue = B.C__SassNull;
  55805. // goto return
  55806. $async$goto = 1;
  55807. break;
  55808. case 1:
  55809. // return
  55810. return A._asyncReturn($async$returnValue, $async$completer);
  55811. }
  55812. });
  55813. return A._asyncStartSync($async$visitNullExpression$1, $async$completer);
  55814. },
  55815. visitNumberExpression$1(node) {
  55816. return this.visitNumberExpression$body$_EvaluateVisitor(node);
  55817. },
  55818. visitNumberExpression$body$_EvaluateVisitor(node) {
  55819. var $async$goto = 0,
  55820. $async$completer = A._makeAsyncAwaitCompleter(type$.SassNumber),
  55821. $async$returnValue;
  55822. var $async$visitNumberExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  55823. if ($async$errorCode === 1)
  55824. return A._asyncRethrow($async$result, $async$completer);
  55825. while (true)
  55826. switch ($async$goto) {
  55827. case 0:
  55828. // Function start
  55829. $async$returnValue = A.SassNumber_SassNumber(node.value, node.unit);
  55830. // goto return
  55831. $async$goto = 1;
  55832. break;
  55833. case 1:
  55834. // return
  55835. return A._asyncReturn($async$returnValue, $async$completer);
  55836. }
  55837. });
  55838. return A._asyncStartSync($async$visitNumberExpression$1, $async$completer);
  55839. },
  55840. visitParenthesizedExpression$1(node) {
  55841. return node.expression.accept$1(this);
  55842. },
  55843. visitCalculationExpression$1(node) {
  55844. return this.visitCalculationExpression$body$_EvaluateVisitor(node);
  55845. },
  55846. visitCalculationExpression$body$_EvaluateVisitor(node) {
  55847. var $async$goto = 0,
  55848. $async$completer = A._makeAsyncAwaitCompleter(type$.Value),
  55849. $async$returnValue, $async$self = this, $arguments, error, stackTrace, t2, t3, t4, t5, t6, _i, argument, exception, t1, $async$temp1;
  55850. var $async$visitCalculationExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  55851. if ($async$errorCode === 1)
  55852. return A._asyncRethrow($async$result, $async$completer);
  55853. while (true)
  55854. $async$outer:
  55855. switch ($async$goto) {
  55856. case 0:
  55857. // Function start
  55858. t1 = A._setArrayType([], type$.JSArray_Object);
  55859. t2 = node.$arguments, t3 = t2.length, t4 = node.name, t5 = t4 !== "min", t6 = t4 === "max", _i = 0;
  55860. case 3:
  55861. // for condition
  55862. if (!(_i < t3)) {
  55863. // goto after for
  55864. $async$goto = 5;
  55865. break;
  55866. }
  55867. argument = t2[_i];
  55868. $async$temp1 = t1;
  55869. $async$goto = 6;
  55870. return A._asyncAwait($async$self._async_evaluate$_visitCalculationValue$2$inMinMax(argument, !t5 || t6), $async$visitCalculationExpression$1);
  55871. case 6:
  55872. // returning from await.
  55873. $async$temp1.push($async$result);
  55874. case 4:
  55875. // for update
  55876. ++_i;
  55877. // goto for condition
  55878. $async$goto = 3;
  55879. break;
  55880. case 5:
  55881. // after for
  55882. $arguments = t1;
  55883. if ($async$self._async_evaluate$_inSupportsDeclaration) {
  55884. $async$returnValue = new A.SassCalculation(t4, A.List_List$unmodifiable($arguments, type$.Object));
  55885. // goto return
  55886. $async$goto = 1;
  55887. break;
  55888. }
  55889. try {
  55890. switch (t4) {
  55891. case "calc":
  55892. t1 = A.SassCalculation_calc(J.$index$asx($arguments, 0));
  55893. $async$returnValue = t1;
  55894. // goto return
  55895. $async$goto = 1;
  55896. break $async$outer;
  55897. case "min":
  55898. t1 = A.SassCalculation_min($arguments);
  55899. $async$returnValue = t1;
  55900. // goto return
  55901. $async$goto = 1;
  55902. break $async$outer;
  55903. case "max":
  55904. t1 = A.SassCalculation_max($arguments);
  55905. $async$returnValue = t1;
  55906. // goto return
  55907. $async$goto = 1;
  55908. break $async$outer;
  55909. case "clamp":
  55910. t1 = J.$index$asx($arguments, 0);
  55911. t3 = J.get$length$asx($arguments) > 1 ? J.$index$asx($arguments, 1) : null;
  55912. t1 = A.SassCalculation_clamp(t1, t3, J.get$length$asx($arguments) > 2 ? J.$index$asx($arguments, 2) : null);
  55913. $async$returnValue = t1;
  55914. // goto return
  55915. $async$goto = 1;
  55916. break $async$outer;
  55917. default:
  55918. t1 = A.UnsupportedError$('Unknown calculation name "' + t4 + '".');
  55919. throw A.wrapException(t1);
  55920. }
  55921. } catch (exception) {
  55922. t1 = A.unwrapException(exception);
  55923. if (t1 instanceof A.SassScriptException) {
  55924. error = t1;
  55925. stackTrace = A.getTraceFromException(exception);
  55926. $async$self._async_evaluate$_verifyCompatibleNumbers$2($arguments, t2);
  55927. A.throwWithTrace($async$self._async_evaluate$_exception$2(error.message, node.span), stackTrace);
  55928. } else
  55929. throw exception;
  55930. }
  55931. case 1:
  55932. // return
  55933. return A._asyncReturn($async$returnValue, $async$completer);
  55934. }
  55935. });
  55936. return A._asyncStartSync($async$visitCalculationExpression$1, $async$completer);
  55937. },
  55938. _async_evaluate$_verifyCompatibleNumbers$2(args, nodesWithSpans) {
  55939. var i, t1, arg, number1, j, number2;
  55940. for (i = 0; t1 = args.length, i < t1; ++i) {
  55941. arg = args[i];
  55942. if (!(arg instanceof A.SassNumber))
  55943. continue;
  55944. if (arg.get$numeratorUnits(arg).length > 1 || arg.get$denominatorUnits(arg).length !== 0)
  55945. throw A.wrapException(this._async_evaluate$_exception$2("Number " + arg.toString$0(0) + " isn't compatible with CSS calculations.", J.get$span$z(nodesWithSpans[i])));
  55946. }
  55947. for (i = 0; i < t1 - 1; ++i) {
  55948. number1 = args[i];
  55949. if (!(number1 instanceof A.SassNumber))
  55950. continue;
  55951. for (j = i + 1; t1 = args.length, j < t1; ++j) {
  55952. number2 = args[j];
  55953. if (!(number2 instanceof A.SassNumber))
  55954. continue;
  55955. if (number1.hasPossiblyCompatibleUnits$1(number2))
  55956. continue;
  55957. throw A.wrapException(A.MultiSpanSassRuntimeException$(number1.toString$0(0) + " and " + number2.toString$0(0) + " are incompatible.", J.get$span$z(nodesWithSpans[i]), number1.toString$0(0), A.LinkedHashMap_LinkedHashMap$_literal([J.get$span$z(nodesWithSpans[j]), number2.toString$0(0)], type$.FileSpan, type$.String), this._async_evaluate$_stackTrace$1(J.get$span$z(nodesWithSpans[i]))));
  55958. }
  55959. }
  55960. },
  55961. _async_evaluate$_visitCalculationValue$2$inMinMax(node, inMinMax) {
  55962. return this._visitCalculationValue$body$_EvaluateVisitor(node, inMinMax);
  55963. },
  55964. _visitCalculationValue$body$_EvaluateVisitor(node, inMinMax) {
  55965. var $async$goto = 0,
  55966. $async$completer = A._makeAsyncAwaitCompleter(type$.Object),
  55967. $async$returnValue, $async$self = this, inner, result, t1, $async$temp1;
  55968. var $async$_async_evaluate$_visitCalculationValue$2$inMinMax = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  55969. if ($async$errorCode === 1)
  55970. return A._asyncRethrow($async$result, $async$completer);
  55971. while (true)
  55972. switch ($async$goto) {
  55973. case 0:
  55974. // Function start
  55975. $async$goto = node instanceof A.ParenthesizedExpression ? 3 : 5;
  55976. break;
  55977. case 3:
  55978. // then
  55979. inner = node.expression;
  55980. $async$goto = 6;
  55981. return A._asyncAwait($async$self._async_evaluate$_visitCalculationValue$2$inMinMax(inner, inMinMax), $async$_async_evaluate$_visitCalculationValue$2$inMinMax);
  55982. case 6:
  55983. // returning from await.
  55984. result = $async$result;
  55985. if (inner instanceof A.FunctionExpression)
  55986. t1 = A.stringReplaceAllUnchecked(inner.originalName, "_", "-").toLowerCase() === "var" && result instanceof A.SassString && !result._hasQuotes;
  55987. else
  55988. t1 = false;
  55989. $async$returnValue = t1 ? new A.SassString("(" + result._string$_text + ")", false) : result;
  55990. // goto return
  55991. $async$goto = 1;
  55992. break;
  55993. // goto join
  55994. $async$goto = 4;
  55995. break;
  55996. case 5:
  55997. // else
  55998. $async$goto = node instanceof A.StringExpression ? 7 : 9;
  55999. break;
  56000. case 7:
  56001. // then
  56002. $async$temp1 = A;
  56003. $async$goto = 10;
  56004. return A._asyncAwait($async$self._async_evaluate$_performInterpolation$1(node.text), $async$_async_evaluate$_visitCalculationValue$2$inMinMax);
  56005. case 10:
  56006. // returning from await.
  56007. $async$returnValue = new $async$temp1.CalculationInterpolation($async$result);
  56008. // goto return
  56009. $async$goto = 1;
  56010. break;
  56011. // goto join
  56012. $async$goto = 8;
  56013. break;
  56014. case 9:
  56015. // else
  56016. $async$goto = node instanceof A.BinaryOperationExpression ? 11 : 13;
  56017. break;
  56018. case 11:
  56019. // then
  56020. $async$goto = 14;
  56021. return A._asyncAwait($async$self._addExceptionSpanAsync$1$2(node, new A._EvaluateVisitor__visitCalculationValue_closure0($async$self, node, inMinMax), type$.Object), $async$_async_evaluate$_visitCalculationValue$2$inMinMax);
  56022. case 14:
  56023. // returning from await.
  56024. $async$returnValue = $async$result;
  56025. // goto return
  56026. $async$goto = 1;
  56027. break;
  56028. // goto join
  56029. $async$goto = 12;
  56030. break;
  56031. case 13:
  56032. // else
  56033. $async$goto = 15;
  56034. return A._asyncAwait(node.accept$1($async$self), $async$_async_evaluate$_visitCalculationValue$2$inMinMax);
  56035. case 15:
  56036. // returning from await.
  56037. result = $async$result;
  56038. if (result instanceof A.SassNumber || result instanceof A.SassCalculation) {
  56039. $async$returnValue = result;
  56040. // goto return
  56041. $async$goto = 1;
  56042. break;
  56043. }
  56044. if (result instanceof A.SassString && !result._hasQuotes) {
  56045. $async$returnValue = result;
  56046. // goto return
  56047. $async$goto = 1;
  56048. break;
  56049. }
  56050. throw A.wrapException($async$self._async_evaluate$_exception$2("Value " + result.toString$0(0) + " can't be used in a calculation.", node.get$span(node)));
  56051. case 12:
  56052. // join
  56053. case 8:
  56054. // join
  56055. case 4:
  56056. // join
  56057. case 1:
  56058. // return
  56059. return A._asyncReturn($async$returnValue, $async$completer);
  56060. }
  56061. });
  56062. return A._asyncStartSync($async$_async_evaluate$_visitCalculationValue$2$inMinMax, $async$completer);
  56063. },
  56064. _async_evaluate$_binaryOperatorToCalculationOperator$1(operator) {
  56065. switch (operator) {
  56066. case B.BinaryOperator_qbf:
  56067. return B.CalculationOperator_IyK;
  56068. case B.BinaryOperator_KlB:
  56069. return B.CalculationOperator_2bx;
  56070. case B.BinaryOperator_6pl:
  56071. return B.CalculationOperator_jFr;
  56072. case B.BinaryOperator_qpm:
  56073. return B.CalculationOperator_OvN;
  56074. default:
  56075. throw A.wrapException(A.UnsupportedError$("Invalid calculation operator " + operator.toString$0(0) + "."));
  56076. }
  56077. },
  56078. visitColorExpression$1(node) {
  56079. return this.visitColorExpression$body$_EvaluateVisitor(node);
  56080. },
  56081. visitColorExpression$body$_EvaluateVisitor(node) {
  56082. var $async$goto = 0,
  56083. $async$completer = A._makeAsyncAwaitCompleter(type$.SassColor),
  56084. $async$returnValue;
  56085. var $async$visitColorExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  56086. if ($async$errorCode === 1)
  56087. return A._asyncRethrow($async$result, $async$completer);
  56088. while (true)
  56089. switch ($async$goto) {
  56090. case 0:
  56091. // Function start
  56092. $async$returnValue = node.value;
  56093. // goto return
  56094. $async$goto = 1;
  56095. break;
  56096. case 1:
  56097. // return
  56098. return A._asyncReturn($async$returnValue, $async$completer);
  56099. }
  56100. });
  56101. return A._asyncStartSync($async$visitColorExpression$1, $async$completer);
  56102. },
  56103. visitListExpression$1(node) {
  56104. return this.visitListExpression$body$_EvaluateVisitor(node);
  56105. },
  56106. visitListExpression$body$_EvaluateVisitor(node) {
  56107. var $async$goto = 0,
  56108. $async$completer = A._makeAsyncAwaitCompleter(type$.SassList),
  56109. $async$returnValue, $async$self = this, $async$temp1;
  56110. var $async$visitListExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  56111. if ($async$errorCode === 1)
  56112. return A._asyncRethrow($async$result, $async$completer);
  56113. while (true)
  56114. switch ($async$goto) {
  56115. case 0:
  56116. // Function start
  56117. $async$temp1 = A;
  56118. $async$goto = 3;
  56119. return A._asyncAwait(A.mapAsync(node.contents, new A._EvaluateVisitor_visitListExpression_closure0($async$self), type$.Expression, type$.Value), $async$visitListExpression$1);
  56120. case 3:
  56121. // returning from await.
  56122. $async$returnValue = $async$temp1.SassList$($async$result, node.separator, node.hasBrackets);
  56123. // goto return
  56124. $async$goto = 1;
  56125. break;
  56126. case 1:
  56127. // return
  56128. return A._asyncReturn($async$returnValue, $async$completer);
  56129. }
  56130. });
  56131. return A._asyncStartSync($async$visitListExpression$1, $async$completer);
  56132. },
  56133. visitMapExpression$1(node) {
  56134. return this.visitMapExpression$body$_EvaluateVisitor(node);
  56135. },
  56136. visitMapExpression$body$_EvaluateVisitor(node) {
  56137. var $async$goto = 0,
  56138. $async$completer = A._makeAsyncAwaitCompleter(type$.SassMap),
  56139. $async$returnValue, $async$self = this, t2, t3, _i, pair, t4, keyValue, valueValue, oldValueSpan, t1, map, keyNodes;
  56140. var $async$visitMapExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  56141. if ($async$errorCode === 1)
  56142. return A._asyncRethrow($async$result, $async$completer);
  56143. while (true)
  56144. switch ($async$goto) {
  56145. case 0:
  56146. // Function start
  56147. t1 = type$.Value;
  56148. map = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  56149. keyNodes = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.AstNode);
  56150. t2 = node.pairs, t3 = t2.length, _i = 0;
  56151. case 3:
  56152. // for condition
  56153. if (!(_i < t3)) {
  56154. // goto after for
  56155. $async$goto = 5;
  56156. break;
  56157. }
  56158. pair = t2[_i];
  56159. t4 = pair.item1;
  56160. $async$goto = 6;
  56161. return A._asyncAwait(t4.accept$1($async$self), $async$visitMapExpression$1);
  56162. case 6:
  56163. // returning from await.
  56164. keyValue = $async$result;
  56165. $async$goto = 7;
  56166. return A._asyncAwait(pair.item2.accept$1($async$self), $async$visitMapExpression$1);
  56167. case 7:
  56168. // returning from await.
  56169. valueValue = $async$result;
  56170. if (map.$index(0, keyValue) != null) {
  56171. t1 = keyNodes.$index(0, keyValue);
  56172. oldValueSpan = t1 == null ? null : t1.get$span(t1);
  56173. t1 = J.getInterceptor$z(t4);
  56174. t2 = t1.get$span(t4);
  56175. t3 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
  56176. if (oldValueSpan != null)
  56177. t3.$indexSet(0, oldValueSpan, "first key");
  56178. throw A.wrapException(A.MultiSpanSassRuntimeException$("Duplicate key.", t2, "second key", t3, $async$self._async_evaluate$_stackTrace$1(t1.get$span(t4))));
  56179. }
  56180. map.$indexSet(0, keyValue, valueValue);
  56181. keyNodes.$indexSet(0, keyValue, t4);
  56182. case 4:
  56183. // for update
  56184. ++_i;
  56185. // goto for condition
  56186. $async$goto = 3;
  56187. break;
  56188. case 5:
  56189. // after for
  56190. $async$returnValue = new A.SassMap(A.ConstantMap_ConstantMap$from(map, t1, t1));
  56191. // goto return
  56192. $async$goto = 1;
  56193. break;
  56194. case 1:
  56195. // return
  56196. return A._asyncReturn($async$returnValue, $async$completer);
  56197. }
  56198. });
  56199. return A._asyncStartSync($async$visitMapExpression$1, $async$completer);
  56200. },
  56201. visitFunctionExpression$1(node) {
  56202. return this.visitFunctionExpression$body$_EvaluateVisitor(node);
  56203. },
  56204. visitFunctionExpression$body$_EvaluateVisitor(node) {
  56205. var $async$goto = 0,
  56206. $async$completer = A._makeAsyncAwaitCompleter(type$.Value),
  56207. $async$returnValue, $async$self = this, oldInFunction, result, t1, $function;
  56208. var $async$visitFunctionExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  56209. if ($async$errorCode === 1)
  56210. return A._asyncRethrow($async$result, $async$completer);
  56211. while (true)
  56212. switch ($async$goto) {
  56213. case 0:
  56214. // Function start
  56215. t1 = {};
  56216. $function = $async$self._async_evaluate$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitFunctionExpression_closure1($async$self, node));
  56217. t1.$function = $function;
  56218. if ($function == null) {
  56219. if (node.namespace != null)
  56220. throw A.wrapException($async$self._async_evaluate$_exception$2("Undefined function.", node.span));
  56221. t1.$function = new A.PlainCssCallable(node.originalName);
  56222. }
  56223. oldInFunction = $async$self._async_evaluate$_inFunction;
  56224. $async$self._async_evaluate$_inFunction = true;
  56225. $async$goto = 3;
  56226. return A._asyncAwait($async$self._async_evaluate$_addErrorSpan$1$2(node, new A._EvaluateVisitor_visitFunctionExpression_closure2(t1, $async$self, node), type$.Value), $async$visitFunctionExpression$1);
  56227. case 3:
  56228. // returning from await.
  56229. result = $async$result;
  56230. $async$self._async_evaluate$_inFunction = oldInFunction;
  56231. $async$returnValue = result;
  56232. // goto return
  56233. $async$goto = 1;
  56234. break;
  56235. case 1:
  56236. // return
  56237. return A._asyncReturn($async$returnValue, $async$completer);
  56238. }
  56239. });
  56240. return A._asyncStartSync($async$visitFunctionExpression$1, $async$completer);
  56241. },
  56242. visitInterpolatedFunctionExpression$1(node) {
  56243. return this.visitInterpolatedFunctionExpression$body$_EvaluateVisitor(node);
  56244. },
  56245. visitInterpolatedFunctionExpression$body$_EvaluateVisitor(node) {
  56246. var $async$goto = 0,
  56247. $async$completer = A._makeAsyncAwaitCompleter(type$.Value),
  56248. $async$returnValue, $async$self = this, result, t1, oldInFunction;
  56249. var $async$visitInterpolatedFunctionExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  56250. if ($async$errorCode === 1)
  56251. return A._asyncRethrow($async$result, $async$completer);
  56252. while (true)
  56253. switch ($async$goto) {
  56254. case 0:
  56255. // Function start
  56256. $async$goto = 3;
  56257. return A._asyncAwait($async$self._async_evaluate$_performInterpolation$1(node.name), $async$visitInterpolatedFunctionExpression$1);
  56258. case 3:
  56259. // returning from await.
  56260. t1 = $async$result;
  56261. oldInFunction = $async$self._async_evaluate$_inFunction;
  56262. $async$self._async_evaluate$_inFunction = true;
  56263. $async$goto = 4;
  56264. return A._asyncAwait($async$self._async_evaluate$_addErrorSpan$1$2(node, new A._EvaluateVisitor_visitInterpolatedFunctionExpression_closure0($async$self, node, new A.PlainCssCallable(t1)), type$.Value), $async$visitInterpolatedFunctionExpression$1);
  56265. case 4:
  56266. // returning from await.
  56267. result = $async$result;
  56268. $async$self._async_evaluate$_inFunction = oldInFunction;
  56269. $async$returnValue = result;
  56270. // goto return
  56271. $async$goto = 1;
  56272. break;
  56273. case 1:
  56274. // return
  56275. return A._asyncReturn($async$returnValue, $async$completer);
  56276. }
  56277. });
  56278. return A._asyncStartSync($async$visitInterpolatedFunctionExpression$1, $async$completer);
  56279. },
  56280. _async_evaluate$_getFunction$2$namespace($name, namespace) {
  56281. var local = this._async_evaluate$_environment.getFunction$2$namespace($name, namespace);
  56282. if (local != null || namespace != null)
  56283. return local;
  56284. return this._async_evaluate$_builtInFunctions.$index(0, $name);
  56285. },
  56286. _async_evaluate$_runUserDefinedCallable$1$4($arguments, callable, nodeWithSpan, run, $V) {
  56287. return this._runUserDefinedCallable$body$_EvaluateVisitor($arguments, callable, nodeWithSpan, run, $V, $V);
  56288. },
  56289. _runUserDefinedCallable$body$_EvaluateVisitor($arguments, callable, nodeWithSpan, run, $V, $async$type) {
  56290. var $async$goto = 0,
  56291. $async$completer = A._makeAsyncAwaitCompleter($async$type),
  56292. $async$returnValue, $async$self = this, oldCallable, result, evaluated, $name;
  56293. var $async$_async_evaluate$_runUserDefinedCallable$1$4 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  56294. if ($async$errorCode === 1)
  56295. return A._asyncRethrow($async$result, $async$completer);
  56296. while (true)
  56297. switch ($async$goto) {
  56298. case 0:
  56299. // Function start
  56300. $async$goto = 3;
  56301. return A._asyncAwait($async$self._async_evaluate$_evaluateArguments$1($arguments), $async$_async_evaluate$_runUserDefinedCallable$1$4);
  56302. case 3:
  56303. // returning from await.
  56304. evaluated = $async$result;
  56305. $name = callable.declaration.name;
  56306. if ($name !== "@content")
  56307. $name += "()";
  56308. oldCallable = $async$self._async_evaluate$_currentCallable;
  56309. $async$self._async_evaluate$_currentCallable = callable;
  56310. $async$goto = 4;
  56311. return A._asyncAwait($async$self._async_evaluate$_withStackFrame$1$3($name, nodeWithSpan, new A._EvaluateVisitor__runUserDefinedCallable_closure0($async$self, callable, evaluated, nodeWithSpan, run, $V), $V), $async$_async_evaluate$_runUserDefinedCallable$1$4);
  56312. case 4:
  56313. // returning from await.
  56314. result = $async$result;
  56315. $async$self._async_evaluate$_currentCallable = oldCallable;
  56316. $async$returnValue = result;
  56317. // goto return
  56318. $async$goto = 1;
  56319. break;
  56320. case 1:
  56321. // return
  56322. return A._asyncReturn($async$returnValue, $async$completer);
  56323. }
  56324. });
  56325. return A._asyncStartSync($async$_async_evaluate$_runUserDefinedCallable$1$4, $async$completer);
  56326. },
  56327. _async_evaluate$_runFunctionCallable$3($arguments, callable, nodeWithSpan) {
  56328. return this._runFunctionCallable$body$_EvaluateVisitor($arguments, callable, nodeWithSpan);
  56329. },
  56330. _runFunctionCallable$body$_EvaluateVisitor($arguments, callable, nodeWithSpan) {
  56331. var $async$goto = 0,
  56332. $async$completer = A._makeAsyncAwaitCompleter(type$.Value),
  56333. $async$returnValue, $async$self = this, t1, t2, t3, first, _i, argument, restArg, rest, $async$temp1;
  56334. var $async$_async_evaluate$_runFunctionCallable$3 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  56335. if ($async$errorCode === 1)
  56336. return A._asyncRethrow($async$result, $async$completer);
  56337. while (true)
  56338. switch ($async$goto) {
  56339. case 0:
  56340. // Function start
  56341. $async$goto = type$.AsyncBuiltInCallable._is(callable) ? 3 : 5;
  56342. break;
  56343. case 3:
  56344. // then
  56345. $async$goto = 6;
  56346. return A._asyncAwait($async$self._async_evaluate$_runBuiltInCallable$3($arguments, callable, nodeWithSpan), $async$_async_evaluate$_runFunctionCallable$3);
  56347. case 6:
  56348. // returning from await.
  56349. $async$returnValue = $async$self._async_evaluate$_withoutSlash$2($async$result, nodeWithSpan);
  56350. // goto return
  56351. $async$goto = 1;
  56352. break;
  56353. // goto join
  56354. $async$goto = 4;
  56355. break;
  56356. case 5:
  56357. // else
  56358. $async$goto = type$.UserDefinedCallable_AsyncEnvironment._is(callable) ? 7 : 9;
  56359. break;
  56360. case 7:
  56361. // then
  56362. $async$goto = 10;
  56363. return A._asyncAwait($async$self._async_evaluate$_runUserDefinedCallable$1$4($arguments, callable, nodeWithSpan, new A._EvaluateVisitor__runFunctionCallable_closure0($async$self, callable), type$.Value), $async$_async_evaluate$_runFunctionCallable$3);
  56364. case 10:
  56365. // returning from await.
  56366. $async$returnValue = $async$result;
  56367. // goto return
  56368. $async$goto = 1;
  56369. break;
  56370. // goto join
  56371. $async$goto = 8;
  56372. break;
  56373. case 9:
  56374. // else
  56375. $async$goto = callable instanceof A.PlainCssCallable ? 11 : 13;
  56376. break;
  56377. case 11:
  56378. // then
  56379. t1 = $arguments.named;
  56380. if (t1.get$isNotEmpty(t1) || $arguments.keywordRest != null)
  56381. throw A.wrapException($async$self._async_evaluate$_exception$2(string$.Plain_, nodeWithSpan.get$span(nodeWithSpan)));
  56382. t1 = callable.name + "(";
  56383. t2 = $arguments.positional, t3 = t2.length, first = true, _i = 0;
  56384. case 14:
  56385. // for condition
  56386. if (!(_i < t3)) {
  56387. // goto after for
  56388. $async$goto = 16;
  56389. break;
  56390. }
  56391. argument = t2[_i];
  56392. if (first)
  56393. first = false;
  56394. else
  56395. t1 += ", ";
  56396. $async$temp1 = A;
  56397. $async$goto = 17;
  56398. return A._asyncAwait($async$self._evaluateToCss$1(argument), $async$_async_evaluate$_runFunctionCallable$3);
  56399. case 17:
  56400. // returning from await.
  56401. t1 += $async$temp1.S($async$result);
  56402. case 15:
  56403. // for update
  56404. ++_i;
  56405. // goto for condition
  56406. $async$goto = 14;
  56407. break;
  56408. case 16:
  56409. // after for
  56410. restArg = $arguments.rest;
  56411. $async$goto = restArg != null ? 18 : 19;
  56412. break;
  56413. case 18:
  56414. // then
  56415. $async$goto = 20;
  56416. return A._asyncAwait(restArg.accept$1($async$self), $async$_async_evaluate$_runFunctionCallable$3);
  56417. case 20:
  56418. // returning from await.
  56419. rest = $async$result;
  56420. if (!first)
  56421. t1 += ", ";
  56422. t1 += $async$self._async_evaluate$_serialize$2(rest, restArg);
  56423. case 19:
  56424. // join
  56425. t1 += A.Primitives_stringFromCharCode(41);
  56426. $async$returnValue = new A.SassString(t1.charCodeAt(0) == 0 ? t1 : t1, false);
  56427. // goto return
  56428. $async$goto = 1;
  56429. break;
  56430. // goto join
  56431. $async$goto = 12;
  56432. break;
  56433. case 13:
  56434. // else
  56435. throw A.wrapException(A.ArgumentError$("Unknown callable type " + J.get$runtimeType$u(callable).toString$0(0) + ".", null));
  56436. case 12:
  56437. // join
  56438. case 8:
  56439. // join
  56440. case 4:
  56441. // join
  56442. case 1:
  56443. // return
  56444. return A._asyncReturn($async$returnValue, $async$completer);
  56445. }
  56446. });
  56447. return A._asyncStartSync($async$_async_evaluate$_runFunctionCallable$3, $async$completer);
  56448. },
  56449. _async_evaluate$_runBuiltInCallable$3($arguments, callable, nodeWithSpan) {
  56450. return this._runBuiltInCallable$body$_EvaluateVisitor($arguments, callable, nodeWithSpan);
  56451. },
  56452. _runBuiltInCallable$body$_EvaluateVisitor($arguments, callable, nodeWithSpan) {
  56453. var $async$goto = 0,
  56454. $async$completer = A._makeAsyncAwaitCompleter(type$.Value),
  56455. $async$returnValue, $async$handler = 2, $async$currentError, $async$self = this, callback, result, error, stackTrace, error0, stackTrace0, error1, stackTrace1, message, namedSet, tuple, overload, declaredArguments, i, t1, argument, t2, t3, rest, argumentList, exception, t4, t5, t6, message0, evaluated, oldCallableNode, $async$exception;
  56456. var $async$_async_evaluate$_runBuiltInCallable$3 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  56457. if ($async$errorCode === 1) {
  56458. $async$currentError = $async$result;
  56459. $async$goto = $async$handler;
  56460. }
  56461. while (true)
  56462. switch ($async$goto) {
  56463. case 0:
  56464. // Function start
  56465. $async$goto = 3;
  56466. return A._asyncAwait($async$self._async_evaluate$_evaluateArguments$1($arguments), $async$_async_evaluate$_runBuiltInCallable$3);
  56467. case 3:
  56468. // returning from await.
  56469. evaluated = $async$result;
  56470. oldCallableNode = $async$self._async_evaluate$_callableNode;
  56471. $async$self._async_evaluate$_callableNode = nodeWithSpan;
  56472. namedSet = new A.MapKeySet(evaluated.named, type$.MapKeySet_String);
  56473. tuple = callable.callbackFor$2(evaluated.positional.length, namedSet);
  56474. overload = tuple.item1;
  56475. callback = tuple.item2;
  56476. $async$self._async_evaluate$_addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__runBuiltInCallable_closure1(overload, evaluated, namedSet));
  56477. declaredArguments = overload.$arguments;
  56478. i = evaluated.positional.length, t1 = declaredArguments.length;
  56479. case 4:
  56480. // for condition
  56481. if (!(i < t1)) {
  56482. // goto after for
  56483. $async$goto = 6;
  56484. break;
  56485. }
  56486. argument = declaredArguments[i];
  56487. t2 = evaluated.positional;
  56488. t3 = evaluated.named.remove$1(0, argument.name);
  56489. $async$goto = t3 == null ? 7 : 8;
  56490. break;
  56491. case 7:
  56492. // then
  56493. t3 = argument.defaultValue;
  56494. $async$goto = 9;
  56495. return A._asyncAwait(t3.accept$1($async$self), $async$_async_evaluate$_runBuiltInCallable$3);
  56496. case 9:
  56497. // returning from await.
  56498. t3 = $async$self._async_evaluate$_withoutSlash$2($async$result, t3);
  56499. case 8:
  56500. // join
  56501. t2.push(t3);
  56502. case 5:
  56503. // for update
  56504. ++i;
  56505. // goto for condition
  56506. $async$goto = 4;
  56507. break;
  56508. case 6:
  56509. // after for
  56510. if (overload.restArgument != null) {
  56511. if (evaluated.positional.length > t1) {
  56512. rest = B.JSArray_methods.sublist$1(evaluated.positional, t1);
  56513. B.JSArray_methods.removeRange$2(evaluated.positional, t1, evaluated.positional.length);
  56514. } else
  56515. rest = B.List_empty7;
  56516. t1 = evaluated.named;
  56517. argumentList = A.SassArgumentList$(rest, t1, evaluated.separator === B.ListSeparator_undecided_null_undecided ? B.ListSeparator_rXA : evaluated.separator);
  56518. evaluated.positional.push(argumentList);
  56519. } else
  56520. argumentList = null;
  56521. result = null;
  56522. $async$handler = 11;
  56523. $async$goto = 14;
  56524. return A._asyncAwait(callback.call$1(evaluated.positional), $async$_async_evaluate$_runBuiltInCallable$3);
  56525. case 14:
  56526. // returning from await.
  56527. result = $async$result;
  56528. $async$handler = 2;
  56529. // goto after finally
  56530. $async$goto = 13;
  56531. break;
  56532. case 11:
  56533. // catch
  56534. $async$handler = 10;
  56535. $async$exception = $async$currentError;
  56536. t1 = A.unwrapException($async$exception);
  56537. if (type$.SassRuntimeException._is(t1))
  56538. throw $async$exception;
  56539. else if (t1 instanceof A.MultiSpanSassScriptException) {
  56540. error = t1;
  56541. stackTrace = A.getTraceFromException($async$exception);
  56542. t1 = error.message;
  56543. t2 = nodeWithSpan.get$span(nodeWithSpan);
  56544. t3 = error.primaryLabel;
  56545. t4 = error.secondarySpans;
  56546. A.throwWithTrace(new A.MultiSpanSassRuntimeException($async$self._async_evaluate$_stackTrace$1(nodeWithSpan.get$span(nodeWithSpan)), t3, A.ConstantMap_ConstantMap$from(t4, type$.FileSpan, type$.String), t1, t2), stackTrace);
  56547. } else if (t1 instanceof A.MultiSpanSassException) {
  56548. error0 = t1;
  56549. stackTrace0 = A.getTraceFromException($async$exception);
  56550. t1 = error0._span_exception$_message;
  56551. t2 = error0;
  56552. t3 = J.getInterceptor$z(t2);
  56553. t2 = A.SourceSpanException.prototype.get$span.call(t3, t2);
  56554. t3 = error0.primaryLabel;
  56555. t4 = error0.secondarySpans;
  56556. t5 = error0;
  56557. t6 = J.getInterceptor$z(t5);
  56558. A.throwWithTrace(new A.MultiSpanSassRuntimeException($async$self._async_evaluate$_stackTrace$1(A.SourceSpanException.prototype.get$span.call(t6, t5)), t3, A.ConstantMap_ConstantMap$from(t4, type$.FileSpan, type$.String), t1, t2), stackTrace0);
  56559. } else {
  56560. error1 = t1;
  56561. stackTrace1 = A.getTraceFromException($async$exception);
  56562. message = null;
  56563. try {
  56564. message = A._asString(J.get$message$x(error1));
  56565. } catch (exception) {
  56566. message0 = J.toString$0$(error1);
  56567. message = message0;
  56568. }
  56569. A.throwWithTrace($async$self._async_evaluate$_exception$2(message, nodeWithSpan.get$span(nodeWithSpan)), stackTrace1);
  56570. }
  56571. // goto after finally
  56572. $async$goto = 13;
  56573. break;
  56574. case 10:
  56575. // uncaught
  56576. // goto rethrow
  56577. $async$goto = 2;
  56578. break;
  56579. case 13:
  56580. // after finally
  56581. $async$self._async_evaluate$_callableNode = oldCallableNode;
  56582. if (argumentList == null) {
  56583. $async$returnValue = result;
  56584. // goto return
  56585. $async$goto = 1;
  56586. break;
  56587. }
  56588. if (evaluated.named.__js_helper$_length === 0) {
  56589. $async$returnValue = result;
  56590. // goto return
  56591. $async$goto = 1;
  56592. break;
  56593. }
  56594. if (argumentList._wereKeywordsAccessed) {
  56595. $async$returnValue = result;
  56596. // goto return
  56597. $async$goto = 1;
  56598. break;
  56599. }
  56600. t1 = evaluated.named;
  56601. t1 = t1.get$keys(t1);
  56602. t1 = A.pluralize("argument", t1.get$length(t1), null);
  56603. t2 = evaluated.named;
  56604. throw A.wrapException(A.MultiSpanSassRuntimeException$("No " + t1 + " named " + A.S(A.toSentence(t2.get$keys(t2).map$1$1(0, new A._EvaluateVisitor__runBuiltInCallable_closure2(), type$.Object), "or")) + ".", nodeWithSpan.get$span(nodeWithSpan), "invocation", A.LinkedHashMap_LinkedHashMap$_literal([overload.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), $async$self._async_evaluate$_stackTrace$1(nodeWithSpan.get$span(nodeWithSpan))));
  56605. case 1:
  56606. // return
  56607. return A._asyncReturn($async$returnValue, $async$completer);
  56608. case 2:
  56609. // rethrow
  56610. return A._asyncRethrow($async$currentError, $async$completer);
  56611. }
  56612. });
  56613. return A._asyncStartSync($async$_async_evaluate$_runBuiltInCallable$3, $async$completer);
  56614. },
  56615. _async_evaluate$_evaluateArguments$1($arguments) {
  56616. return this._evaluateArguments$body$_EvaluateVisitor($arguments);
  56617. },
  56618. _evaluateArguments$body$_EvaluateVisitor($arguments) {
  56619. var $async$goto = 0,
  56620. $async$completer = A._makeAsyncAwaitCompleter(type$._ArgumentResults),
  56621. $async$returnValue, $async$self = this, t1, t2, _i, expression, nodeForSpan, named, namedNodes, t3, t4, t5, restArgs, rest, restNodeForSpan, separator, keywordRestArgs, keywordRest, keywordRestNodeForSpan, positional, positionalNodes, $async$temp1, $async$temp2;
  56622. var $async$_async_evaluate$_evaluateArguments$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  56623. if ($async$errorCode === 1)
  56624. return A._asyncRethrow($async$result, $async$completer);
  56625. while (true)
  56626. switch ($async$goto) {
  56627. case 0:
  56628. // Function start
  56629. positional = A._setArrayType([], type$.JSArray_Value);
  56630. positionalNodes = A._setArrayType([], type$.JSArray_AstNode);
  56631. t1 = $arguments.positional, t2 = t1.length, _i = 0;
  56632. case 3:
  56633. // for condition
  56634. if (!(_i < t2)) {
  56635. // goto after for
  56636. $async$goto = 5;
  56637. break;
  56638. }
  56639. expression = t1[_i];
  56640. nodeForSpan = $async$self._async_evaluate$_expressionNode$1(expression);
  56641. $async$temp1 = positional;
  56642. $async$goto = 6;
  56643. return A._asyncAwait(expression.accept$1($async$self), $async$_async_evaluate$_evaluateArguments$1);
  56644. case 6:
  56645. // returning from await.
  56646. $async$temp1.push($async$self._async_evaluate$_withoutSlash$2($async$result, nodeForSpan));
  56647. positionalNodes.push(nodeForSpan);
  56648. case 4:
  56649. // for update
  56650. ++_i;
  56651. // goto for condition
  56652. $async$goto = 3;
  56653. break;
  56654. case 5:
  56655. // after for
  56656. t1 = type$.String;
  56657. named = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Value);
  56658. t2 = type$.AstNode;
  56659. namedNodes = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
  56660. t3 = $arguments.named, t3 = t3.get$entries(t3), t3 = t3.get$iterator(t3);
  56661. case 7:
  56662. // for condition
  56663. if (!t3.moveNext$0()) {
  56664. // goto after for
  56665. $async$goto = 8;
  56666. break;
  56667. }
  56668. t4 = t3.get$current(t3);
  56669. t5 = t4.value;
  56670. nodeForSpan = $async$self._async_evaluate$_expressionNode$1(t5);
  56671. t4 = t4.key;
  56672. $async$temp1 = named;
  56673. $async$temp2 = t4;
  56674. $async$goto = 9;
  56675. return A._asyncAwait(t5.accept$1($async$self), $async$_async_evaluate$_evaluateArguments$1);
  56676. case 9:
  56677. // returning from await.
  56678. $async$temp1.$indexSet(0, $async$temp2, $async$self._async_evaluate$_withoutSlash$2($async$result, nodeForSpan));
  56679. namedNodes.$indexSet(0, t4, nodeForSpan);
  56680. // goto for condition
  56681. $async$goto = 7;
  56682. break;
  56683. case 8:
  56684. // after for
  56685. restArgs = $arguments.rest;
  56686. if (restArgs == null) {
  56687. $async$returnValue = new A._ArgumentResults0(positional, positionalNodes, named, namedNodes, B.ListSeparator_undecided_null_undecided);
  56688. // goto return
  56689. $async$goto = 1;
  56690. break;
  56691. }
  56692. $async$goto = 10;
  56693. return A._asyncAwait(restArgs.accept$1($async$self), $async$_async_evaluate$_evaluateArguments$1);
  56694. case 10:
  56695. // returning from await.
  56696. rest = $async$result;
  56697. restNodeForSpan = $async$self._async_evaluate$_expressionNode$1(restArgs);
  56698. if (rest instanceof A.SassMap) {
  56699. $async$self._async_evaluate$_addRestMap$4(named, rest, restArgs, new A._EvaluateVisitor__evaluateArguments_closure3());
  56700. t3 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
  56701. for (t4 = rest._map$_contents, t4 = J.get$iterator$ax(t4.get$keys(t4)), t5 = type$.SassString; t4.moveNext$0();)
  56702. t3.$indexSet(0, t5._as(t4.get$current(t4))._string$_text, restNodeForSpan);
  56703. namedNodes.addAll$1(0, t3);
  56704. separator = B.ListSeparator_undecided_null_undecided;
  56705. } else if (rest instanceof A.SassList) {
  56706. t3 = rest._list$_contents;
  56707. B.JSArray_methods.addAll$1(positional, new A.MappedListIterable(t3, new A._EvaluateVisitor__evaluateArguments_closure4($async$self, restNodeForSpan), A._arrayInstanceType(t3)._eval$1("MappedListIterable<1,Value>")));
  56708. B.JSArray_methods.addAll$1(positionalNodes, A.List_List$filled(t3.length, restNodeForSpan, false, t2));
  56709. separator = rest._separator;
  56710. if (rest instanceof A.SassArgumentList) {
  56711. rest._wereKeywordsAccessed = true;
  56712. rest._keywords.forEach$1(0, new A._EvaluateVisitor__evaluateArguments_closure5($async$self, named, restNodeForSpan, namedNodes));
  56713. }
  56714. } else {
  56715. positional.push($async$self._async_evaluate$_withoutSlash$2(rest, restNodeForSpan));
  56716. positionalNodes.push(restNodeForSpan);
  56717. separator = B.ListSeparator_undecided_null_undecided;
  56718. }
  56719. keywordRestArgs = $arguments.keywordRest;
  56720. if (keywordRestArgs == null) {
  56721. $async$returnValue = new A._ArgumentResults0(positional, positionalNodes, named, namedNodes, separator);
  56722. // goto return
  56723. $async$goto = 1;
  56724. break;
  56725. }
  56726. $async$goto = 11;
  56727. return A._asyncAwait(keywordRestArgs.accept$1($async$self), $async$_async_evaluate$_evaluateArguments$1);
  56728. case 11:
  56729. // returning from await.
  56730. keywordRest = $async$result;
  56731. keywordRestNodeForSpan = $async$self._async_evaluate$_expressionNode$1(keywordRestArgs);
  56732. if (keywordRest instanceof A.SassMap) {
  56733. $async$self._async_evaluate$_addRestMap$4(named, keywordRest, keywordRestArgs, new A._EvaluateVisitor__evaluateArguments_closure6());
  56734. t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
  56735. for (t2 = keywordRest._map$_contents, t2 = J.get$iterator$ax(t2.get$keys(t2)), t3 = type$.SassString; t2.moveNext$0();)
  56736. t1.$indexSet(0, t3._as(t2.get$current(t2))._string$_text, keywordRestNodeForSpan);
  56737. namedNodes.addAll$1(0, t1);
  56738. $async$returnValue = new A._ArgumentResults0(positional, positionalNodes, named, namedNodes, separator);
  56739. // goto return
  56740. $async$goto = 1;
  56741. break;
  56742. } else
  56743. throw A.wrapException($async$self._async_evaluate$_exception$2(string$.Variabs + keywordRest.toString$0(0) + ").", keywordRestArgs.get$span(keywordRestArgs)));
  56744. case 1:
  56745. // return
  56746. return A._asyncReturn($async$returnValue, $async$completer);
  56747. }
  56748. });
  56749. return A._asyncStartSync($async$_async_evaluate$_evaluateArguments$1, $async$completer);
  56750. },
  56751. _async_evaluate$_evaluateMacroArguments$1(invocation) {
  56752. return this._evaluateMacroArguments$body$_EvaluateVisitor(invocation);
  56753. },
  56754. _evaluateMacroArguments$body$_EvaluateVisitor(invocation) {
  56755. var $async$goto = 0,
  56756. $async$completer = A._makeAsyncAwaitCompleter(type$.Tuple2_of_List_Expression_and_Map_String_Expression),
  56757. $async$returnValue, $async$self = this, t2, positional, named, rest, restNodeForSpan, keywordRestArgs_, keywordRest, keywordRestNodeForSpan, t1, restArgs_;
  56758. var $async$_async_evaluate$_evaluateMacroArguments$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  56759. if ($async$errorCode === 1)
  56760. return A._asyncRethrow($async$result, $async$completer);
  56761. while (true)
  56762. switch ($async$goto) {
  56763. case 0:
  56764. // Function start
  56765. t1 = invocation.$arguments;
  56766. restArgs_ = t1.rest;
  56767. if (restArgs_ == null) {
  56768. $async$returnValue = new A.Tuple2(t1.positional, t1.named, type$.Tuple2_of_List_Expression_and_Map_String_Expression);
  56769. // goto return
  56770. $async$goto = 1;
  56771. break;
  56772. }
  56773. t2 = t1.positional;
  56774. positional = A._setArrayType(t2.slice(0), A._arrayInstanceType(t2));
  56775. named = A.LinkedHashMap_LinkedHashMap$of(t1.named, type$.String, type$.Expression);
  56776. $async$goto = 3;
  56777. return A._asyncAwait(restArgs_.accept$1($async$self), $async$_async_evaluate$_evaluateMacroArguments$1);
  56778. case 3:
  56779. // returning from await.
  56780. rest = $async$result;
  56781. restNodeForSpan = $async$self._async_evaluate$_expressionNode$1(restArgs_);
  56782. if (rest instanceof A.SassMap)
  56783. $async$self._async_evaluate$_addRestMap$4(named, rest, invocation, new A._EvaluateVisitor__evaluateMacroArguments_closure3(restArgs_));
  56784. else if (rest instanceof A.SassList) {
  56785. t2 = rest._list$_contents;
  56786. B.JSArray_methods.addAll$1(positional, new A.MappedListIterable(t2, new A._EvaluateVisitor__evaluateMacroArguments_closure4($async$self, restNodeForSpan, restArgs_), A._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Expression>")));
  56787. if (rest instanceof A.SassArgumentList) {
  56788. rest._wereKeywordsAccessed = true;
  56789. rest._keywords.forEach$1(0, new A._EvaluateVisitor__evaluateMacroArguments_closure5($async$self, named, restNodeForSpan, restArgs_));
  56790. }
  56791. } else
  56792. positional.push(new A.ValueExpression($async$self._async_evaluate$_withoutSlash$2(rest, restNodeForSpan), restArgs_.get$span(restArgs_)));
  56793. keywordRestArgs_ = t1.keywordRest;
  56794. if (keywordRestArgs_ == null) {
  56795. $async$returnValue = new A.Tuple2(positional, named, type$.Tuple2_of_List_Expression_and_Map_String_Expression);
  56796. // goto return
  56797. $async$goto = 1;
  56798. break;
  56799. }
  56800. $async$goto = 4;
  56801. return A._asyncAwait(keywordRestArgs_.accept$1($async$self), $async$_async_evaluate$_evaluateMacroArguments$1);
  56802. case 4:
  56803. // returning from await.
  56804. keywordRest = $async$result;
  56805. keywordRestNodeForSpan = $async$self._async_evaluate$_expressionNode$1(keywordRestArgs_);
  56806. if (keywordRest instanceof A.SassMap) {
  56807. $async$self._async_evaluate$_addRestMap$4(named, keywordRest, invocation, new A._EvaluateVisitor__evaluateMacroArguments_closure6($async$self, keywordRestNodeForSpan, keywordRestArgs_));
  56808. $async$returnValue = new A.Tuple2(positional, named, type$.Tuple2_of_List_Expression_and_Map_String_Expression);
  56809. // goto return
  56810. $async$goto = 1;
  56811. break;
  56812. } else
  56813. throw A.wrapException($async$self._async_evaluate$_exception$2(string$.Variabs + keywordRest.toString$0(0) + ").", keywordRestArgs_.get$span(keywordRestArgs_)));
  56814. case 1:
  56815. // return
  56816. return A._asyncReturn($async$returnValue, $async$completer);
  56817. }
  56818. });
  56819. return A._asyncStartSync($async$_async_evaluate$_evaluateMacroArguments$1, $async$completer);
  56820. },
  56821. _async_evaluate$_addRestMap$1$4(values, map, nodeWithSpan, convert) {
  56822. map._map$_contents.forEach$1(0, new A._EvaluateVisitor__addRestMap_closure0(this, values, convert, this._async_evaluate$_expressionNode$1(nodeWithSpan), map, nodeWithSpan));
  56823. },
  56824. _async_evaluate$_addRestMap$4(values, map, nodeWithSpan, convert) {
  56825. return this._async_evaluate$_addRestMap$1$4(values, map, nodeWithSpan, convert, type$.dynamic);
  56826. },
  56827. _async_evaluate$_verifyArguments$4(positional, named, $arguments, nodeWithSpan) {
  56828. return this._async_evaluate$_addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__verifyArguments_closure0($arguments, positional, named));
  56829. },
  56830. visitSelectorExpression$1(node) {
  56831. return this.visitSelectorExpression$body$_EvaluateVisitor(node);
  56832. },
  56833. visitSelectorExpression$body$_EvaluateVisitor(node) {
  56834. var $async$goto = 0,
  56835. $async$completer = A._makeAsyncAwaitCompleter(type$.Value),
  56836. $async$returnValue, $async$self = this, t1;
  56837. var $async$visitSelectorExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  56838. if ($async$errorCode === 1)
  56839. return A._asyncRethrow($async$result, $async$completer);
  56840. while (true)
  56841. switch ($async$goto) {
  56842. case 0:
  56843. // Function start
  56844. t1 = $async$self._async_evaluate$_styleRuleIgnoringAtRoot;
  56845. t1 = t1 == null ? null : t1.originalSelector.get$asSassList();
  56846. $async$returnValue = t1 == null ? B.C__SassNull : t1;
  56847. // goto return
  56848. $async$goto = 1;
  56849. break;
  56850. case 1:
  56851. // return
  56852. return A._asyncReturn($async$returnValue, $async$completer);
  56853. }
  56854. });
  56855. return A._asyncStartSync($async$visitSelectorExpression$1, $async$completer);
  56856. },
  56857. visitStringExpression$1(node) {
  56858. return this.visitStringExpression$body$_EvaluateVisitor(node);
  56859. },
  56860. visitStringExpression$body$_EvaluateVisitor(node) {
  56861. var $async$goto = 0,
  56862. $async$completer = A._makeAsyncAwaitCompleter(type$.SassString),
  56863. $async$returnValue, $async$self = this, t1, oldInSupportsDeclaration, $async$temp1;
  56864. var $async$visitStringExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  56865. if ($async$errorCode === 1)
  56866. return A._asyncRethrow($async$result, $async$completer);
  56867. while (true)
  56868. switch ($async$goto) {
  56869. case 0:
  56870. // Function start
  56871. oldInSupportsDeclaration = $async$self._async_evaluate$_inSupportsDeclaration;
  56872. $async$self._async_evaluate$_inSupportsDeclaration = false;
  56873. $async$temp1 = J;
  56874. $async$goto = 3;
  56875. return A._asyncAwait(A.mapAsync(node.text.contents, new A._EvaluateVisitor_visitStringExpression_closure0($async$self), type$.Object, type$.String), $async$visitStringExpression$1);
  56876. case 3:
  56877. // returning from await.
  56878. t1 = $async$temp1.join$0$ax($async$result);
  56879. $async$self._async_evaluate$_inSupportsDeclaration = oldInSupportsDeclaration;
  56880. $async$returnValue = new A.SassString(t1, node.hasQuotes);
  56881. // goto return
  56882. $async$goto = 1;
  56883. break;
  56884. case 1:
  56885. // return
  56886. return A._asyncReturn($async$returnValue, $async$completer);
  56887. }
  56888. });
  56889. return A._asyncStartSync($async$visitStringExpression$1, $async$completer);
  56890. },
  56891. visitSupportsExpression$1(expression) {
  56892. return this.visitSupportsExpression$body$_EvaluateVisitor(expression);
  56893. },
  56894. visitSupportsExpression$body$_EvaluateVisitor(expression) {
  56895. var $async$goto = 0,
  56896. $async$completer = A._makeAsyncAwaitCompleter(type$.SassString),
  56897. $async$returnValue, $async$self = this, $async$temp1;
  56898. var $async$visitSupportsExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  56899. if ($async$errorCode === 1)
  56900. return A._asyncRethrow($async$result, $async$completer);
  56901. while (true)
  56902. switch ($async$goto) {
  56903. case 0:
  56904. // Function start
  56905. $async$temp1 = A;
  56906. $async$goto = 3;
  56907. return A._asyncAwait($async$self._async_evaluate$_visitSupportsCondition$1(expression.condition), $async$visitSupportsExpression$1);
  56908. case 3:
  56909. // returning from await.
  56910. $async$returnValue = new $async$temp1.SassString($async$result, false);
  56911. // goto return
  56912. $async$goto = 1;
  56913. break;
  56914. case 1:
  56915. // return
  56916. return A._asyncReturn($async$returnValue, $async$completer);
  56917. }
  56918. });
  56919. return A._asyncStartSync($async$visitSupportsExpression$1, $async$completer);
  56920. },
  56921. visitCssAtRule$1(node) {
  56922. return this.visitCssAtRule$body$_EvaluateVisitor(node);
  56923. },
  56924. visitCssAtRule$body$_EvaluateVisitor(node) {
  56925. var $async$goto = 0,
  56926. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  56927. $async$returnValue, $async$self = this, wasInKeyframes, wasInUnknownAtRule, t1;
  56928. var $async$visitCssAtRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  56929. if ($async$errorCode === 1)
  56930. return A._asyncRethrow($async$result, $async$completer);
  56931. while (true)
  56932. switch ($async$goto) {
  56933. case 0:
  56934. // Function start
  56935. if ($async$self._async_evaluate$_declarationName != null)
  56936. throw A.wrapException($async$self._async_evaluate$_exception$2(string$.At_rul, node.span));
  56937. if (node.isChildless) {
  56938. $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent").addChild$1(A.ModifiableCssAtRule$(node.name, node.span, true, node.value));
  56939. // goto return
  56940. $async$goto = 1;
  56941. break;
  56942. }
  56943. wasInKeyframes = $async$self._async_evaluate$_inKeyframes;
  56944. wasInUnknownAtRule = $async$self._async_evaluate$_inUnknownAtRule;
  56945. t1 = node.name;
  56946. if (A.unvendor(t1.get$value(t1)) === "keyframes")
  56947. $async$self._async_evaluate$_inKeyframes = true;
  56948. else
  56949. $async$self._async_evaluate$_inUnknownAtRule = true;
  56950. $async$goto = 3;
  56951. return A._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(A.ModifiableCssAtRule$(t1, node.span, false, node.value), new A._EvaluateVisitor_visitCssAtRule_closure1($async$self, node), false, new A._EvaluateVisitor_visitCssAtRule_closure2(), type$.ModifiableCssAtRule, type$.Null), $async$visitCssAtRule$1);
  56952. case 3:
  56953. // returning from await.
  56954. $async$self._async_evaluate$_inUnknownAtRule = wasInUnknownAtRule;
  56955. $async$self._async_evaluate$_inKeyframes = wasInKeyframes;
  56956. case 1:
  56957. // return
  56958. return A._asyncReturn($async$returnValue, $async$completer);
  56959. }
  56960. });
  56961. return A._asyncStartSync($async$visitCssAtRule$1, $async$completer);
  56962. },
  56963. visitCssComment$1(node) {
  56964. return this.visitCssComment$body$_EvaluateVisitor(node);
  56965. },
  56966. visitCssComment$body$_EvaluateVisitor(node) {
  56967. var $async$goto = 0,
  56968. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  56969. $async$self = this;
  56970. var $async$visitCssComment$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  56971. if ($async$errorCode === 1)
  56972. return A._asyncRethrow($async$result, $async$completer);
  56973. while (true)
  56974. switch ($async$goto) {
  56975. case 0:
  56976. // Function start
  56977. if ($async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent") === $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__root, "_root") && $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__endOfImports, "_endOfImports") === J.get$length$asx($async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__root, "_root").children._collection$_source))
  56978. $async$self._async_evaluate$__endOfImports = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__endOfImports, "_endOfImports") + 1;
  56979. $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent").addChild$1(new A.ModifiableCssComment(node.text, node.span));
  56980. // implicit return
  56981. return A._asyncReturn(null, $async$completer);
  56982. }
  56983. });
  56984. return A._asyncStartSync($async$visitCssComment$1, $async$completer);
  56985. },
  56986. visitCssDeclaration$1(node) {
  56987. return this.visitCssDeclaration$body$_EvaluateVisitor(node);
  56988. },
  56989. visitCssDeclaration$body$_EvaluateVisitor(node) {
  56990. var $async$goto = 0,
  56991. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  56992. $async$self = this, t1;
  56993. var $async$visitCssDeclaration$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  56994. if ($async$errorCode === 1)
  56995. return A._asyncRethrow($async$result, $async$completer);
  56996. while (true)
  56997. switch ($async$goto) {
  56998. case 0:
  56999. // Function start
  57000. t1 = node.name;
  57001. $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent").addChild$1(A.ModifiableCssDeclaration$(t1, node.value, node.span, J.startsWith$1$s(t1.get$value(t1), "--"), node.valueSpanForMap));
  57002. // implicit return
  57003. return A._asyncReturn(null, $async$completer);
  57004. }
  57005. });
  57006. return A._asyncStartSync($async$visitCssDeclaration$1, $async$completer);
  57007. },
  57008. visitCssImport$1(node) {
  57009. return this.visitCssImport$body$_EvaluateVisitor(node);
  57010. },
  57011. visitCssImport$body$_EvaluateVisitor(node) {
  57012. var $async$goto = 0,
  57013. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  57014. $async$self = this, t1, modifiableNode;
  57015. var $async$visitCssImport$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  57016. if ($async$errorCode === 1)
  57017. return A._asyncRethrow($async$result, $async$completer);
  57018. while (true)
  57019. switch ($async$goto) {
  57020. case 0:
  57021. // Function start
  57022. modifiableNode = new A.ModifiableCssImport(node.url, node.modifiers, node.span);
  57023. if ($async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent") !== $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__root, "_root"))
  57024. $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent").addChild$1(modifiableNode);
  57025. else if ($async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__endOfImports, "_endOfImports") === J.get$length$asx($async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__root, "_root").children._collection$_source)) {
  57026. $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__root, "_root").addChild$1(modifiableNode);
  57027. $async$self._async_evaluate$__endOfImports = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__endOfImports, "_endOfImports") + 1;
  57028. } else {
  57029. t1 = $async$self._async_evaluate$_outOfOrderImports;
  57030. (t1 == null ? $async$self._async_evaluate$_outOfOrderImports = A._setArrayType([], type$.JSArray_ModifiableCssImport) : t1).push(modifiableNode);
  57031. }
  57032. // implicit return
  57033. return A._asyncReturn(null, $async$completer);
  57034. }
  57035. });
  57036. return A._asyncStartSync($async$visitCssImport$1, $async$completer);
  57037. },
  57038. visitCssKeyframeBlock$1(node) {
  57039. return this.visitCssKeyframeBlock$body$_EvaluateVisitor(node);
  57040. },
  57041. visitCssKeyframeBlock$body$_EvaluateVisitor(node) {
  57042. var $async$goto = 0,
  57043. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  57044. $async$self = this;
  57045. var $async$visitCssKeyframeBlock$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  57046. if ($async$errorCode === 1)
  57047. return A._asyncRethrow($async$result, $async$completer);
  57048. while (true)
  57049. switch ($async$goto) {
  57050. case 0:
  57051. // Function start
  57052. $async$goto = 2;
  57053. return A._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(A.ModifiableCssKeyframeBlock$(node.selector, node.span), new A._EvaluateVisitor_visitCssKeyframeBlock_closure1($async$self, node), false, new A._EvaluateVisitor_visitCssKeyframeBlock_closure2(), type$.ModifiableCssKeyframeBlock, type$.Null), $async$visitCssKeyframeBlock$1);
  57054. case 2:
  57055. // returning from await.
  57056. // implicit return
  57057. return A._asyncReturn(null, $async$completer);
  57058. }
  57059. });
  57060. return A._asyncStartSync($async$visitCssKeyframeBlock$1, $async$completer);
  57061. },
  57062. visitCssMediaRule$1(node) {
  57063. return this.visitCssMediaRule$body$_EvaluateVisitor(node);
  57064. },
  57065. visitCssMediaRule$body$_EvaluateVisitor(node) {
  57066. var $async$goto = 0,
  57067. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  57068. $async$returnValue, $async$self = this, mergedQueries, t1, mergedSources, t2, t3;
  57069. var $async$visitCssMediaRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  57070. if ($async$errorCode === 1)
  57071. return A._asyncRethrow($async$result, $async$completer);
  57072. while (true)
  57073. switch ($async$goto) {
  57074. case 0:
  57075. // Function start
  57076. if ($async$self._async_evaluate$_declarationName != null)
  57077. throw A.wrapException($async$self._async_evaluate$_exception$2(string$.Media_, node.span));
  57078. mergedQueries = A.NullableExtension_andThen($async$self._async_evaluate$_mediaQueries, new A._EvaluateVisitor_visitCssMediaRule_closure2($async$self, node));
  57079. t1 = mergedQueries == null;
  57080. if (!t1 && J.get$isEmpty$asx(mergedQueries)) {
  57081. // goto return
  57082. $async$goto = 1;
  57083. break;
  57084. }
  57085. if (t1)
  57086. mergedSources = B.Set_empty0;
  57087. else {
  57088. t2 = $async$self._async_evaluate$_mediaQuerySources;
  57089. t2.toString;
  57090. t2 = A.LinkedHashSet_LinkedHashSet$of(t2, type$.CssMediaQuery);
  57091. t3 = $async$self._async_evaluate$_mediaQueries;
  57092. t3.toString;
  57093. t2.addAll$1(0, t3);
  57094. t2.addAll$1(0, node.queries);
  57095. mergedSources = t2;
  57096. }
  57097. t1 = t1 ? node.queries : mergedQueries;
  57098. $async$goto = 3;
  57099. return A._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(A.ModifiableCssMediaRule$(t1, node.span), new A._EvaluateVisitor_visitCssMediaRule_closure3($async$self, mergedQueries, node, mergedSources), false, new A._EvaluateVisitor_visitCssMediaRule_closure4(mergedSources), type$.ModifiableCssMediaRule, type$.Null), $async$visitCssMediaRule$1);
  57100. case 3:
  57101. // returning from await.
  57102. case 1:
  57103. // return
  57104. return A._asyncReturn($async$returnValue, $async$completer);
  57105. }
  57106. });
  57107. return A._asyncStartSync($async$visitCssMediaRule$1, $async$completer);
  57108. },
  57109. visitCssStyleRule$1(node) {
  57110. return this.visitCssStyleRule$body$_EvaluateVisitor(node);
  57111. },
  57112. visitCssStyleRule$body$_EvaluateVisitor(node) {
  57113. var $async$goto = 0,
  57114. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  57115. $async$self = this, t1, styleRule, t2, t3, t4, t5, originalSelector, rule, oldAtRootExcludingStyleRule;
  57116. var $async$visitCssStyleRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  57117. if ($async$errorCode === 1)
  57118. return A._asyncRethrow($async$result, $async$completer);
  57119. while (true)
  57120. switch ($async$goto) {
  57121. case 0:
  57122. // Function start
  57123. if ($async$self._async_evaluate$_declarationName != null)
  57124. throw A.wrapException($async$self._async_evaluate$_exception$2(string$.Style_, node.span));
  57125. t1 = $async$self._async_evaluate$_atRootExcludingStyleRule;
  57126. styleRule = t1 ? null : $async$self._async_evaluate$_styleRuleIgnoringAtRoot;
  57127. t2 = node.selector;
  57128. t3 = t2.value;
  57129. t4 = styleRule == null;
  57130. t5 = t4 ? null : styleRule.originalSelector;
  57131. originalSelector = t3.resolveParentSelectors$2$implicitParent(t5, !t1);
  57132. rule = A.ModifiableCssStyleRule$($async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__extensionStore, "_extensionStore").addSelector$3(originalSelector, t2.span, $async$self._async_evaluate$_mediaQueries), node.span, originalSelector);
  57133. oldAtRootExcludingStyleRule = $async$self._async_evaluate$_atRootExcludingStyleRule;
  57134. $async$self._async_evaluate$_atRootExcludingStyleRule = false;
  57135. $async$goto = 2;
  57136. return A._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(rule, new A._EvaluateVisitor_visitCssStyleRule_closure1($async$self, rule, node), false, new A._EvaluateVisitor_visitCssStyleRule_closure2(), type$.ModifiableCssStyleRule, type$.Null), $async$visitCssStyleRule$1);
  57137. case 2:
  57138. // returning from await.
  57139. $async$self._async_evaluate$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  57140. if (t4) {
  57141. t1 = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent").children;
  57142. t1 = !t1.get$isEmpty(t1);
  57143. } else
  57144. t1 = false;
  57145. if (t1) {
  57146. t1 = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent").children;
  57147. t1.get$last(t1).isGroupEnd = true;
  57148. }
  57149. // implicit return
  57150. return A._asyncReturn(null, $async$completer);
  57151. }
  57152. });
  57153. return A._asyncStartSync($async$visitCssStyleRule$1, $async$completer);
  57154. },
  57155. visitCssStylesheet$1(node) {
  57156. return this.visitCssStylesheet$body$_EvaluateVisitor(node);
  57157. },
  57158. visitCssStylesheet$body$_EvaluateVisitor(node) {
  57159. var $async$goto = 0,
  57160. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  57161. $async$self = this, t1;
  57162. var $async$visitCssStylesheet$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  57163. if ($async$errorCode === 1)
  57164. return A._asyncRethrow($async$result, $async$completer);
  57165. while (true)
  57166. switch ($async$goto) {
  57167. case 0:
  57168. // Function start
  57169. t1 = J.get$iterator$ax(node.get$children(node));
  57170. case 2:
  57171. // for condition
  57172. if (!t1.moveNext$0()) {
  57173. // goto after for
  57174. $async$goto = 3;
  57175. break;
  57176. }
  57177. $async$goto = 4;
  57178. return A._asyncAwait(t1.get$current(t1).accept$1($async$self), $async$visitCssStylesheet$1);
  57179. case 4:
  57180. // returning from await.
  57181. // goto for condition
  57182. $async$goto = 2;
  57183. break;
  57184. case 3:
  57185. // after for
  57186. // implicit return
  57187. return A._asyncReturn(null, $async$completer);
  57188. }
  57189. });
  57190. return A._asyncStartSync($async$visitCssStylesheet$1, $async$completer);
  57191. },
  57192. visitCssSupportsRule$1(node) {
  57193. return this.visitCssSupportsRule$body$_EvaluateVisitor(node);
  57194. },
  57195. visitCssSupportsRule$body$_EvaluateVisitor(node) {
  57196. var $async$goto = 0,
  57197. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  57198. $async$self = this;
  57199. var $async$visitCssSupportsRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  57200. if ($async$errorCode === 1)
  57201. return A._asyncRethrow($async$result, $async$completer);
  57202. while (true)
  57203. switch ($async$goto) {
  57204. case 0:
  57205. // Function start
  57206. if ($async$self._async_evaluate$_declarationName != null)
  57207. throw A.wrapException($async$self._async_evaluate$_exception$2(string$.Suppor, node.span));
  57208. $async$goto = 2;
  57209. return A._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(A.ModifiableCssSupportsRule$(node.condition, node.span), new A._EvaluateVisitor_visitCssSupportsRule_closure1($async$self, node), false, new A._EvaluateVisitor_visitCssSupportsRule_closure2(), type$.ModifiableCssSupportsRule, type$.Null), $async$visitCssSupportsRule$1);
  57210. case 2:
  57211. // returning from await.
  57212. // implicit return
  57213. return A._asyncReturn(null, $async$completer);
  57214. }
  57215. });
  57216. return A._asyncStartSync($async$visitCssSupportsRule$1, $async$completer);
  57217. },
  57218. _async_evaluate$_handleReturn$1$2(list, callback) {
  57219. return this._handleReturn$body$_EvaluateVisitor(list, callback);
  57220. },
  57221. _async_evaluate$_handleReturn$2(list, callback) {
  57222. return this._async_evaluate$_handleReturn$1$2(list, callback, type$.dynamic);
  57223. },
  57224. _handleReturn$body$_EvaluateVisitor(list, callback) {
  57225. var $async$goto = 0,
  57226. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
  57227. $async$returnValue, t1, _i, result;
  57228. var $async$_async_evaluate$_handleReturn$1$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  57229. if ($async$errorCode === 1)
  57230. return A._asyncRethrow($async$result, $async$completer);
  57231. while (true)
  57232. switch ($async$goto) {
  57233. case 0:
  57234. // Function start
  57235. t1 = list.length, _i = 0;
  57236. case 3:
  57237. // for condition
  57238. if (!(_i < list.length)) {
  57239. // goto after for
  57240. $async$goto = 5;
  57241. break;
  57242. }
  57243. $async$goto = 6;
  57244. return A._asyncAwait(callback.call$1(list[_i]), $async$_async_evaluate$_handleReturn$1$2);
  57245. case 6:
  57246. // returning from await.
  57247. result = $async$result;
  57248. if (result != null) {
  57249. $async$returnValue = result;
  57250. // goto return
  57251. $async$goto = 1;
  57252. break;
  57253. }
  57254. case 4:
  57255. // for update
  57256. list.length === t1 || (0, A.throwConcurrentModificationError)(list), ++_i;
  57257. // goto for condition
  57258. $async$goto = 3;
  57259. break;
  57260. case 5:
  57261. // after for
  57262. $async$returnValue = null;
  57263. // goto return
  57264. $async$goto = 1;
  57265. break;
  57266. case 1:
  57267. // return
  57268. return A._asyncReturn($async$returnValue, $async$completer);
  57269. }
  57270. });
  57271. return A._asyncStartSync($async$_async_evaluate$_handleReturn$1$2, $async$completer);
  57272. },
  57273. _async_evaluate$_withEnvironment$1$2(environment, callback, $T) {
  57274. return this._withEnvironment$body$_EvaluateVisitor(environment, callback, $T, $T);
  57275. },
  57276. _withEnvironment$body$_EvaluateVisitor(environment, callback, $T, $async$type) {
  57277. var $async$goto = 0,
  57278. $async$completer = A._makeAsyncAwaitCompleter($async$type),
  57279. $async$returnValue, $async$self = this, result, oldEnvironment;
  57280. var $async$_async_evaluate$_withEnvironment$1$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  57281. if ($async$errorCode === 1)
  57282. return A._asyncRethrow($async$result, $async$completer);
  57283. while (true)
  57284. switch ($async$goto) {
  57285. case 0:
  57286. // Function start
  57287. oldEnvironment = $async$self._async_evaluate$_environment;
  57288. $async$self._async_evaluate$_environment = environment;
  57289. $async$goto = 3;
  57290. return A._asyncAwait(callback.call$0(), $async$_async_evaluate$_withEnvironment$1$2);
  57291. case 3:
  57292. // returning from await.
  57293. result = $async$result;
  57294. $async$self._async_evaluate$_environment = oldEnvironment;
  57295. $async$returnValue = result;
  57296. // goto return
  57297. $async$goto = 1;
  57298. break;
  57299. case 1:
  57300. // return
  57301. return A._asyncReturn($async$returnValue, $async$completer);
  57302. }
  57303. });
  57304. return A._asyncStartSync($async$_async_evaluate$_withEnvironment$1$2, $async$completer);
  57305. },
  57306. _async_evaluate$_interpolationToValue$3$trim$warnForColor(interpolation, trim, warnForColor) {
  57307. return this._interpolationToValue$body$_EvaluateVisitor(interpolation, trim, warnForColor);
  57308. },
  57309. _async_evaluate$_interpolationToValue$1(interpolation) {
  57310. return this._async_evaluate$_interpolationToValue$3$trim$warnForColor(interpolation, false, false);
  57311. },
  57312. _async_evaluate$_interpolationToValue$2$warnForColor(interpolation, warnForColor) {
  57313. return this._async_evaluate$_interpolationToValue$3$trim$warnForColor(interpolation, false, warnForColor);
  57314. },
  57315. _interpolationToValue$body$_EvaluateVisitor(interpolation, trim, warnForColor) {
  57316. var $async$goto = 0,
  57317. $async$completer = A._makeAsyncAwaitCompleter(type$.CssValue_String),
  57318. $async$returnValue, $async$self = this, result, t1;
  57319. var $async$_async_evaluate$_interpolationToValue$3$trim$warnForColor = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  57320. if ($async$errorCode === 1)
  57321. return A._asyncRethrow($async$result, $async$completer);
  57322. while (true)
  57323. switch ($async$goto) {
  57324. case 0:
  57325. // Function start
  57326. $async$goto = 3;
  57327. return A._asyncAwait($async$self._async_evaluate$_performInterpolation$2$warnForColor(interpolation, warnForColor), $async$_async_evaluate$_interpolationToValue$3$trim$warnForColor);
  57328. case 3:
  57329. // returning from await.
  57330. result = $async$result;
  57331. t1 = trim ? A.trimAscii(result, true) : result;
  57332. $async$returnValue = new A.CssValue(t1, interpolation.span, type$.CssValue_String);
  57333. // goto return
  57334. $async$goto = 1;
  57335. break;
  57336. case 1:
  57337. // return
  57338. return A._asyncReturn($async$returnValue, $async$completer);
  57339. }
  57340. });
  57341. return A._asyncStartSync($async$_async_evaluate$_interpolationToValue$3$trim$warnForColor, $async$completer);
  57342. },
  57343. _async_evaluate$_performInterpolation$2$warnForColor(interpolation, warnForColor) {
  57344. return this._performInterpolation$body$_EvaluateVisitor(interpolation, warnForColor);
  57345. },
  57346. _async_evaluate$_performInterpolation$1(interpolation) {
  57347. return this._async_evaluate$_performInterpolation$2$warnForColor(interpolation, false);
  57348. },
  57349. _performInterpolation$body$_EvaluateVisitor(interpolation, warnForColor) {
  57350. var $async$goto = 0,
  57351. $async$completer = A._makeAsyncAwaitCompleter(type$.String),
  57352. $async$returnValue, $async$self = this, result, oldInSupportsDeclaration, $async$temp1;
  57353. var $async$_async_evaluate$_performInterpolation$2$warnForColor = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  57354. if ($async$errorCode === 1)
  57355. return A._asyncRethrow($async$result, $async$completer);
  57356. while (true)
  57357. switch ($async$goto) {
  57358. case 0:
  57359. // Function start
  57360. oldInSupportsDeclaration = $async$self._async_evaluate$_inSupportsDeclaration;
  57361. $async$self._async_evaluate$_inSupportsDeclaration = false;
  57362. $async$temp1 = J;
  57363. $async$goto = 3;
  57364. return A._asyncAwait(A.mapAsync(interpolation.contents, new A._EvaluateVisitor__performInterpolation_closure0($async$self, warnForColor, interpolation), type$.Object, type$.String), $async$_async_evaluate$_performInterpolation$2$warnForColor);
  57365. case 3:
  57366. // returning from await.
  57367. result = $async$temp1.join$0$ax($async$result);
  57368. $async$self._async_evaluate$_inSupportsDeclaration = oldInSupportsDeclaration;
  57369. $async$returnValue = result;
  57370. // goto return
  57371. $async$goto = 1;
  57372. break;
  57373. case 1:
  57374. // return
  57375. return A._asyncReturn($async$returnValue, $async$completer);
  57376. }
  57377. });
  57378. return A._asyncStartSync($async$_async_evaluate$_performInterpolation$2$warnForColor, $async$completer);
  57379. },
  57380. _evaluateToCss$2$quote(expression, quote) {
  57381. return this._evaluateToCss$body$_EvaluateVisitor(expression, quote);
  57382. },
  57383. _evaluateToCss$1(expression) {
  57384. return this._evaluateToCss$2$quote(expression, true);
  57385. },
  57386. _evaluateToCss$body$_EvaluateVisitor(expression, quote) {
  57387. var $async$goto = 0,
  57388. $async$completer = A._makeAsyncAwaitCompleter(type$.String),
  57389. $async$returnValue, $async$self = this;
  57390. var $async$_evaluateToCss$2$quote = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  57391. if ($async$errorCode === 1)
  57392. return A._asyncRethrow($async$result, $async$completer);
  57393. while (true)
  57394. switch ($async$goto) {
  57395. case 0:
  57396. // Function start
  57397. $async$goto = 3;
  57398. return A._asyncAwait(expression.accept$1($async$self), $async$_evaluateToCss$2$quote);
  57399. case 3:
  57400. // returning from await.
  57401. $async$returnValue = $async$self._async_evaluate$_serialize$3$quote($async$result, expression, quote);
  57402. // goto return
  57403. $async$goto = 1;
  57404. break;
  57405. case 1:
  57406. // return
  57407. return A._asyncReturn($async$returnValue, $async$completer);
  57408. }
  57409. });
  57410. return A._asyncStartSync($async$_evaluateToCss$2$quote, $async$completer);
  57411. },
  57412. _async_evaluate$_serialize$3$quote(value, nodeWithSpan, quote) {
  57413. return this._async_evaluate$_addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__serialize_closure0(value, quote));
  57414. },
  57415. _async_evaluate$_serialize$2(value, nodeWithSpan) {
  57416. return this._async_evaluate$_serialize$3$quote(value, nodeWithSpan, true);
  57417. },
  57418. _async_evaluate$_expressionNode$1(expression) {
  57419. var t1;
  57420. if (expression instanceof A.VariableExpression) {
  57421. t1 = this._async_evaluate$_addExceptionSpan$2(expression, new A._EvaluateVisitor__expressionNode_closure0(this, expression));
  57422. return t1 == null ? expression : t1;
  57423. } else
  57424. return expression;
  57425. },
  57426. _async_evaluate$_withParent$2$4$scopeWhen$through(node, callback, scopeWhen, through, $S, $T) {
  57427. return this._withParent$body$_EvaluateVisitor(node, callback, scopeWhen, through, $S, $T, $T);
  57428. },
  57429. _async_evaluate$_withParent$2$2(node, callback, $S, $T) {
  57430. return this._async_evaluate$_withParent$2$4$scopeWhen$through(node, callback, true, null, $S, $T);
  57431. },
  57432. _async_evaluate$_withParent$2$3$scopeWhen(node, callback, scopeWhen, $S, $T) {
  57433. return this._async_evaluate$_withParent$2$4$scopeWhen$through(node, callback, scopeWhen, null, $S, $T);
  57434. },
  57435. _withParent$body$_EvaluateVisitor(node, callback, scopeWhen, through, $S, $T, $async$type) {
  57436. var $async$goto = 0,
  57437. $async$completer = A._makeAsyncAwaitCompleter($async$type),
  57438. $async$returnValue, $async$self = this, t1, result;
  57439. var $async$_async_evaluate$_withParent$2$4$scopeWhen$through = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  57440. if ($async$errorCode === 1)
  57441. return A._asyncRethrow($async$result, $async$completer);
  57442. while (true)
  57443. switch ($async$goto) {
  57444. case 0:
  57445. // Function start
  57446. $async$self._async_evaluate$_addChild$2$through(node, through);
  57447. t1 = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent");
  57448. $async$self._async_evaluate$__parent = node;
  57449. $async$goto = 3;
  57450. return A._asyncAwait($async$self._async_evaluate$_environment.scope$1$2$when(callback, scopeWhen, $T), $async$_async_evaluate$_withParent$2$4$scopeWhen$through);
  57451. case 3:
  57452. // returning from await.
  57453. result = $async$result;
  57454. $async$self._async_evaluate$__parent = t1;
  57455. $async$returnValue = result;
  57456. // goto return
  57457. $async$goto = 1;
  57458. break;
  57459. case 1:
  57460. // return
  57461. return A._asyncReturn($async$returnValue, $async$completer);
  57462. }
  57463. });
  57464. return A._asyncStartSync($async$_async_evaluate$_withParent$2$4$scopeWhen$through, $async$completer);
  57465. },
  57466. _async_evaluate$_addChild$2$through(node, through) {
  57467. var grandparent, t1,
  57468. $parent = this._async_evaluate$_assertInModule$2(this._async_evaluate$__parent, "__parent");
  57469. if (through != null) {
  57470. for (; through.call$1($parent); $parent = grandparent) {
  57471. grandparent = $parent._parent;
  57472. if (grandparent == null)
  57473. throw A.wrapException(A.ArgumentError$(string$.throug + node.toString$0(0) + ".", null));
  57474. }
  57475. if ($parent.get$hasFollowingSibling()) {
  57476. t1 = $parent._parent;
  57477. t1.toString;
  57478. $parent = $parent.copyWithoutChildren$0();
  57479. t1.addChild$1($parent);
  57480. }
  57481. }
  57482. $parent.addChild$1(node);
  57483. },
  57484. _async_evaluate$_addChild$1(node) {
  57485. return this._async_evaluate$_addChild$2$through(node, null);
  57486. },
  57487. _async_evaluate$_withStyleRule$1$2(rule, callback, $T) {
  57488. return this._withStyleRule$body$_EvaluateVisitor(rule, callback, $T, $T);
  57489. },
  57490. _withStyleRule$body$_EvaluateVisitor(rule, callback, $T, $async$type) {
  57491. var $async$goto = 0,
  57492. $async$completer = A._makeAsyncAwaitCompleter($async$type),
  57493. $async$returnValue, $async$self = this, result, oldRule;
  57494. var $async$_async_evaluate$_withStyleRule$1$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  57495. if ($async$errorCode === 1)
  57496. return A._asyncRethrow($async$result, $async$completer);
  57497. while (true)
  57498. switch ($async$goto) {
  57499. case 0:
  57500. // Function start
  57501. oldRule = $async$self._async_evaluate$_styleRuleIgnoringAtRoot;
  57502. $async$self._async_evaluate$_styleRuleIgnoringAtRoot = rule;
  57503. $async$goto = 3;
  57504. return A._asyncAwait(callback.call$0(), $async$_async_evaluate$_withStyleRule$1$2);
  57505. case 3:
  57506. // returning from await.
  57507. result = $async$result;
  57508. $async$self._async_evaluate$_styleRuleIgnoringAtRoot = oldRule;
  57509. $async$returnValue = result;
  57510. // goto return
  57511. $async$goto = 1;
  57512. break;
  57513. case 1:
  57514. // return
  57515. return A._asyncReturn($async$returnValue, $async$completer);
  57516. }
  57517. });
  57518. return A._asyncStartSync($async$_async_evaluate$_withStyleRule$1$2, $async$completer);
  57519. },
  57520. _async_evaluate$_withMediaQueries$1$3(queries, sources, callback, $T) {
  57521. return this._withMediaQueries$body$_EvaluateVisitor(queries, sources, callback, $T, $T);
  57522. },
  57523. _withMediaQueries$body$_EvaluateVisitor(queries, sources, callback, $T, $async$type) {
  57524. var $async$goto = 0,
  57525. $async$completer = A._makeAsyncAwaitCompleter($async$type),
  57526. $async$returnValue, $async$self = this, result, oldMediaQueries, oldSources;
  57527. var $async$_async_evaluate$_withMediaQueries$1$3 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  57528. if ($async$errorCode === 1)
  57529. return A._asyncRethrow($async$result, $async$completer);
  57530. while (true)
  57531. switch ($async$goto) {
  57532. case 0:
  57533. // Function start
  57534. oldMediaQueries = $async$self._async_evaluate$_mediaQueries;
  57535. oldSources = $async$self._async_evaluate$_mediaQuerySources;
  57536. $async$self._async_evaluate$_mediaQueries = queries;
  57537. $async$self._async_evaluate$_mediaQuerySources = sources;
  57538. $async$goto = 3;
  57539. return A._asyncAwait(callback.call$0(), $async$_async_evaluate$_withMediaQueries$1$3);
  57540. case 3:
  57541. // returning from await.
  57542. result = $async$result;
  57543. $async$self._async_evaluate$_mediaQueries = oldMediaQueries;
  57544. $async$self._async_evaluate$_mediaQuerySources = oldSources;
  57545. $async$returnValue = result;
  57546. // goto return
  57547. $async$goto = 1;
  57548. break;
  57549. case 1:
  57550. // return
  57551. return A._asyncReturn($async$returnValue, $async$completer);
  57552. }
  57553. });
  57554. return A._asyncStartSync($async$_async_evaluate$_withMediaQueries$1$3, $async$completer);
  57555. },
  57556. _async_evaluate$_withStackFrame$1$3(member, nodeWithSpan, callback, $T) {
  57557. return this._withStackFrame$body$_EvaluateVisitor(member, nodeWithSpan, callback, $T, $T);
  57558. },
  57559. _withStackFrame$body$_EvaluateVisitor(member, nodeWithSpan, callback, $T, $async$type) {
  57560. var $async$goto = 0,
  57561. $async$completer = A._makeAsyncAwaitCompleter($async$type),
  57562. $async$returnValue, $async$self = this, oldMember, result, t1;
  57563. var $async$_async_evaluate$_withStackFrame$1$3 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  57564. if ($async$errorCode === 1)
  57565. return A._asyncRethrow($async$result, $async$completer);
  57566. while (true)
  57567. switch ($async$goto) {
  57568. case 0:
  57569. // Function start
  57570. t1 = $async$self._async_evaluate$_stack;
  57571. t1.push(new A.Tuple2($async$self._async_evaluate$_member, nodeWithSpan, type$.Tuple2_String_AstNode));
  57572. oldMember = $async$self._async_evaluate$_member;
  57573. $async$self._async_evaluate$_member = member;
  57574. $async$goto = 3;
  57575. return A._asyncAwait(callback.call$0(), $async$_async_evaluate$_withStackFrame$1$3);
  57576. case 3:
  57577. // returning from await.
  57578. result = $async$result;
  57579. $async$self._async_evaluate$_member = oldMember;
  57580. t1.pop();
  57581. $async$returnValue = result;
  57582. // goto return
  57583. $async$goto = 1;
  57584. break;
  57585. case 1:
  57586. // return
  57587. return A._asyncReturn($async$returnValue, $async$completer);
  57588. }
  57589. });
  57590. return A._asyncStartSync($async$_async_evaluate$_withStackFrame$1$3, $async$completer);
  57591. },
  57592. _async_evaluate$_withoutSlash$2(value, nodeForSpan) {
  57593. if (value instanceof A.SassNumber && value.asSlash != null)
  57594. this._async_evaluate$_warn$3$deprecation(string$.Using__i + A.S(new A._EvaluateVisitor__withoutSlash_recommendation0().call$1(value)) + string$.x0a_Morex20, nodeForSpan.get$span(nodeForSpan), true);
  57595. return value.withoutSlash$0();
  57596. },
  57597. _async_evaluate$_stackFrame$2(member, span) {
  57598. return A.frameForSpan(span, member, A.NullableExtension_andThen(span.get$sourceUrl(span), new A._EvaluateVisitor__stackFrame_closure0(this)));
  57599. },
  57600. _async_evaluate$_stackTrace$1(span) {
  57601. var _this = this,
  57602. t1 = _this._async_evaluate$_stack;
  57603. t1 = A.List_List$of(new A.MappedListIterable(t1, new A._EvaluateVisitor__stackTrace_closure0(_this), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Frame>")), true, type$.Frame);
  57604. if (span != null)
  57605. t1.push(_this._async_evaluate$_stackFrame$2(_this._async_evaluate$_member, span));
  57606. return A.Trace$(new A.ReversedListIterable(t1, A._arrayInstanceType(t1)._eval$1("ReversedListIterable<1>")), null);
  57607. },
  57608. _async_evaluate$_stackTrace$0() {
  57609. return this._async_evaluate$_stackTrace$1(null);
  57610. },
  57611. _async_evaluate$_warn$3$deprecation(message, span, deprecation) {
  57612. var t1, _this = this;
  57613. if (_this._async_evaluate$_quietDeps)
  57614. if (!_this._async_evaluate$_inDependency) {
  57615. t1 = _this._async_evaluate$_currentCallable;
  57616. t1 = t1 == null ? null : t1.inDependency;
  57617. t1 = t1 === true;
  57618. } else
  57619. t1 = true;
  57620. else
  57621. t1 = false;
  57622. if (t1)
  57623. return;
  57624. if (!_this._async_evaluate$_warningsEmitted.add$1(0, new A.Tuple2(message, span, type$.Tuple2_String_SourceSpan)))
  57625. return;
  57626. _this._async_evaluate$_logger.warn$4$deprecation$span$trace(0, message, deprecation, span, _this._async_evaluate$_stackTrace$1(span));
  57627. },
  57628. _async_evaluate$_warn$2(message, span) {
  57629. return this._async_evaluate$_warn$3$deprecation(message, span, false);
  57630. },
  57631. _async_evaluate$_exception$2(message, span) {
  57632. var t1 = span == null ? J.get$span$z(B.JSArray_methods.get$last(this._async_evaluate$_stack).item2) : span;
  57633. return new A.SassRuntimeException(this._async_evaluate$_stackTrace$1(span), message, t1);
  57634. },
  57635. _async_evaluate$_exception$1(message) {
  57636. return this._async_evaluate$_exception$2(message, null);
  57637. },
  57638. _async_evaluate$_multiSpanException$3(message, primaryLabel, secondaryLabels) {
  57639. var t1 = J.get$span$z(B.JSArray_methods.get$last(this._async_evaluate$_stack).item2);
  57640. return new A.MultiSpanSassRuntimeException(this._async_evaluate$_stackTrace$0(), primaryLabel, A.ConstantMap_ConstantMap$from(secondaryLabels, type$.FileSpan, type$.String), message, t1);
  57641. },
  57642. _async_evaluate$_adjustParseError$1$2(nodeWithSpan, callback) {
  57643. var error, stackTrace, errorText, span, syntheticFile, syntheticSpan, t1, exception, t2, t3, t4, t5, t6, _null = null;
  57644. try {
  57645. t1 = callback.call$0();
  57646. return t1;
  57647. } catch (exception) {
  57648. t1 = A.unwrapException(exception);
  57649. if (t1 instanceof A.SassFormatException) {
  57650. error = t1;
  57651. stackTrace = A.getTraceFromException(exception);
  57652. t1 = error;
  57653. t2 = J.getInterceptor$z(t1);
  57654. t1 = A.SourceSpanException.prototype.get$span.call(t2, t1);
  57655. errorText = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t1.get$file(t1)._decodedChars, 0, _null), 0, _null);
  57656. span = nodeWithSpan.get$span(nodeWithSpan);
  57657. syntheticFile = B.JSString_methods.replaceRange$3(A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(J.get$file$x(span)._decodedChars, 0, _null), 0, _null), J.get$start$z(span).offset, J.get$end$z(span).offset, errorText);
  57658. t1 = A.SourceFile$fromString(syntheticFile, J.get$file$x(span).url);
  57659. t2 = J.get$start$z(span);
  57660. t3 = error;
  57661. t4 = J.getInterceptor$z(t3);
  57662. t3 = A.SourceSpanException.prototype.get$span.call(t4, t3);
  57663. t3 = t3.get$start(t3);
  57664. t4 = J.get$start$z(span);
  57665. t5 = error;
  57666. t6 = J.getInterceptor$z(t5);
  57667. t5 = A.SourceSpanException.prototype.get$span.call(t6, t5);
  57668. syntheticSpan = t1.span$2(0, t2.offset + t3.offset, t4.offset + t5.get$end(t5).offset);
  57669. A.throwWithTrace(this._async_evaluate$_exception$2(error._span_exception$_message, syntheticSpan), stackTrace);
  57670. } else
  57671. throw exception;
  57672. }
  57673. },
  57674. _async_evaluate$_adjustParseError$2(nodeWithSpan, callback) {
  57675. return this._async_evaluate$_adjustParseError$1$2(nodeWithSpan, callback, type$.dynamic);
  57676. },
  57677. _async_evaluate$_addExceptionSpan$1$2(nodeWithSpan, callback) {
  57678. var error, stackTrace, error0, stackTrace0, t1, exception, t2, t3, t4;
  57679. try {
  57680. t1 = callback.call$0();
  57681. return t1;
  57682. } catch (exception) {
  57683. t1 = A.unwrapException(exception);
  57684. if (t1 instanceof A.MultiSpanSassScriptException) {
  57685. error = t1;
  57686. stackTrace = A.getTraceFromException(exception);
  57687. t1 = error.message;
  57688. t2 = nodeWithSpan.get$span(nodeWithSpan);
  57689. t3 = error.primaryLabel;
  57690. t4 = error.secondarySpans;
  57691. A.throwWithTrace(new A.MultiSpanSassRuntimeException(this._async_evaluate$_stackTrace$1(nodeWithSpan.get$span(nodeWithSpan)), t3, A.ConstantMap_ConstantMap$from(t4, type$.FileSpan, type$.String), t1, t2), stackTrace);
  57692. } else if (t1 instanceof A.SassScriptException) {
  57693. error0 = t1;
  57694. stackTrace0 = A.getTraceFromException(exception);
  57695. A.throwWithTrace(this._async_evaluate$_exception$2(error0.message, nodeWithSpan.get$span(nodeWithSpan)), stackTrace0);
  57696. } else
  57697. throw exception;
  57698. }
  57699. },
  57700. _async_evaluate$_addExceptionSpan$2(nodeWithSpan, callback) {
  57701. return this._async_evaluate$_addExceptionSpan$1$2(nodeWithSpan, callback, type$.dynamic);
  57702. },
  57703. _addExceptionSpanAsync$1$2(nodeWithSpan, callback, $T) {
  57704. return this._addExceptionSpanAsync$body$_EvaluateVisitor(nodeWithSpan, callback, $T, $T);
  57705. },
  57706. _addExceptionSpanAsync$body$_EvaluateVisitor(nodeWithSpan, callback, $T, $async$type) {
  57707. var $async$goto = 0,
  57708. $async$completer = A._makeAsyncAwaitCompleter($async$type),
  57709. $async$returnValue, $async$handler = 2, $async$currentError, $async$self = this, error, stackTrace, error0, stackTrace0, t1, exception, t2, t3, t4, $async$exception;
  57710. var $async$_addExceptionSpanAsync$1$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  57711. if ($async$errorCode === 1) {
  57712. $async$currentError = $async$result;
  57713. $async$goto = $async$handler;
  57714. }
  57715. while (true)
  57716. switch ($async$goto) {
  57717. case 0:
  57718. // Function start
  57719. $async$handler = 4;
  57720. $async$goto = 7;
  57721. return A._asyncAwait(callback.call$0(), $async$_addExceptionSpanAsync$1$2);
  57722. case 7:
  57723. // returning from await.
  57724. t1 = $async$result;
  57725. $async$returnValue = t1;
  57726. // goto return
  57727. $async$goto = 1;
  57728. break;
  57729. $async$handler = 2;
  57730. // goto after finally
  57731. $async$goto = 6;
  57732. break;
  57733. case 4:
  57734. // catch
  57735. $async$handler = 3;
  57736. $async$exception = $async$currentError;
  57737. t1 = A.unwrapException($async$exception);
  57738. if (t1 instanceof A.MultiSpanSassScriptException) {
  57739. error = t1;
  57740. stackTrace = A.getTraceFromException($async$exception);
  57741. t1 = error.message;
  57742. t2 = nodeWithSpan.get$span(nodeWithSpan);
  57743. t3 = error.primaryLabel;
  57744. t4 = error.secondarySpans;
  57745. A.throwWithTrace(new A.MultiSpanSassRuntimeException($async$self._async_evaluate$_stackTrace$1(nodeWithSpan.get$span(nodeWithSpan)), t3, A.ConstantMap_ConstantMap$from(t4, type$.FileSpan, type$.String), t1, t2), stackTrace);
  57746. } else if (t1 instanceof A.SassScriptException) {
  57747. error0 = t1;
  57748. stackTrace0 = A.getTraceFromException($async$exception);
  57749. A.throwWithTrace($async$self._async_evaluate$_exception$2(error0.message, nodeWithSpan.get$span(nodeWithSpan)), stackTrace0);
  57750. } else
  57751. throw $async$exception;
  57752. // goto after finally
  57753. $async$goto = 6;
  57754. break;
  57755. case 3:
  57756. // uncaught
  57757. // goto rethrow
  57758. $async$goto = 2;
  57759. break;
  57760. case 6:
  57761. // after finally
  57762. case 1:
  57763. // return
  57764. return A._asyncReturn($async$returnValue, $async$completer);
  57765. case 2:
  57766. // rethrow
  57767. return A._asyncRethrow($async$currentError, $async$completer);
  57768. }
  57769. });
  57770. return A._asyncStartSync($async$_addExceptionSpanAsync$1$2, $async$completer);
  57771. },
  57772. _async_evaluate$_addErrorSpan$1$2(nodeWithSpan, callback, $T) {
  57773. return this._addErrorSpan$body$_EvaluateVisitor(nodeWithSpan, callback, $T, $T);
  57774. },
  57775. _addErrorSpan$body$_EvaluateVisitor(nodeWithSpan, callback, $T, $async$type) {
  57776. var $async$goto = 0,
  57777. $async$completer = A._makeAsyncAwaitCompleter($async$type),
  57778. $async$returnValue, $async$handler = 2, $async$currentError, $async$self = this, error, stackTrace, t1, exception, t2, $async$exception;
  57779. var $async$_async_evaluate$_addErrorSpan$1$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  57780. if ($async$errorCode === 1) {
  57781. $async$currentError = $async$result;
  57782. $async$goto = $async$handler;
  57783. }
  57784. while (true)
  57785. switch ($async$goto) {
  57786. case 0:
  57787. // Function start
  57788. $async$handler = 4;
  57789. $async$goto = 7;
  57790. return A._asyncAwait(callback.call$0(), $async$_async_evaluate$_addErrorSpan$1$2);
  57791. case 7:
  57792. // returning from await.
  57793. t1 = $async$result;
  57794. $async$returnValue = t1;
  57795. // goto return
  57796. $async$goto = 1;
  57797. break;
  57798. $async$handler = 2;
  57799. // goto after finally
  57800. $async$goto = 6;
  57801. break;
  57802. case 4:
  57803. // catch
  57804. $async$handler = 3;
  57805. $async$exception = $async$currentError;
  57806. t1 = A.unwrapException($async$exception);
  57807. if (type$.SassRuntimeException._is(t1)) {
  57808. error = t1;
  57809. stackTrace = A.getTraceFromException($async$exception);
  57810. if (!B.JSString_methods.startsWith$1(J.get$span$z(error).get$text(), "@error"))
  57811. throw $async$exception;
  57812. t1 = error._span_exception$_message;
  57813. t2 = nodeWithSpan.get$span(nodeWithSpan);
  57814. A.throwWithTrace(new A.SassRuntimeException($async$self._async_evaluate$_stackTrace$0(), t1, t2), stackTrace);
  57815. } else
  57816. throw $async$exception;
  57817. // goto after finally
  57818. $async$goto = 6;
  57819. break;
  57820. case 3:
  57821. // uncaught
  57822. // goto rethrow
  57823. $async$goto = 2;
  57824. break;
  57825. case 6:
  57826. // after finally
  57827. case 1:
  57828. // return
  57829. return A._asyncReturn($async$returnValue, $async$completer);
  57830. case 2:
  57831. // rethrow
  57832. return A._asyncRethrow($async$currentError, $async$completer);
  57833. }
  57834. });
  57835. return A._asyncStartSync($async$_async_evaluate$_addErrorSpan$1$2, $async$completer);
  57836. }
  57837. };
  57838. A._EvaluateVisitor_closure9.prototype = {
  57839. call$1($arguments) {
  57840. var module, t2,
  57841. t1 = J.getInterceptor$asx($arguments),
  57842. variable = t1.$index($arguments, 0).assertString$1("name");
  57843. t1 = t1.$index($arguments, 1).get$realNull();
  57844. module = t1 == null ? null : t1.assertString$1("module");
  57845. t1 = this.$this._async_evaluate$_environment;
  57846. t2 = A.stringReplaceAllUnchecked(variable._string$_text, "_", "-");
  57847. return t1.globalVariableExists$2$namespace(t2, module == null ? null : module._string$_text) ? B.SassBoolean_true : B.SassBoolean_false;
  57848. },
  57849. $signature: 19
  57850. };
  57851. A._EvaluateVisitor_closure10.prototype = {
  57852. call$1($arguments) {
  57853. var variable = J.$index$asx($arguments, 0).assertString$1("name"),
  57854. t1 = this.$this._async_evaluate$_environment;
  57855. return t1.getVariable$1(A.stringReplaceAllUnchecked(variable._string$_text, "_", "-")) != null ? B.SassBoolean_true : B.SassBoolean_false;
  57856. },
  57857. $signature: 19
  57858. };
  57859. A._EvaluateVisitor_closure11.prototype = {
  57860. call$1($arguments) {
  57861. var module, t2, t3, t4,
  57862. t1 = J.getInterceptor$asx($arguments),
  57863. variable = t1.$index($arguments, 0).assertString$1("name");
  57864. t1 = t1.$index($arguments, 1).get$realNull();
  57865. module = t1 == null ? null : t1.assertString$1("module");
  57866. t1 = this.$this;
  57867. t2 = t1._async_evaluate$_environment;
  57868. t3 = variable._string$_text;
  57869. t4 = A.stringReplaceAllUnchecked(t3, "_", "-");
  57870. return t2.getFunction$2$namespace(t4, module == null ? null : module._string$_text) != null || t1._async_evaluate$_builtInFunctions.containsKey$1(t3) ? B.SassBoolean_true : B.SassBoolean_false;
  57871. },
  57872. $signature: 19
  57873. };
  57874. A._EvaluateVisitor_closure12.prototype = {
  57875. call$1($arguments) {
  57876. var module, t2,
  57877. t1 = J.getInterceptor$asx($arguments),
  57878. variable = t1.$index($arguments, 0).assertString$1("name");
  57879. t1 = t1.$index($arguments, 1).get$realNull();
  57880. module = t1 == null ? null : t1.assertString$1("module");
  57881. t1 = this.$this._async_evaluate$_environment;
  57882. t2 = A.stringReplaceAllUnchecked(variable._string$_text, "_", "-");
  57883. return t1.getMixin$2$namespace(t2, module == null ? null : module._string$_text) != null ? B.SassBoolean_true : B.SassBoolean_false;
  57884. },
  57885. $signature: 19
  57886. };
  57887. A._EvaluateVisitor_closure13.prototype = {
  57888. call$1($arguments) {
  57889. var t1 = this.$this._async_evaluate$_environment;
  57890. if (!t1._async_environment$_inMixin)
  57891. throw A.wrapException(A.SassScriptException$(string$.conten, null));
  57892. return t1._async_environment$_content != null ? B.SassBoolean_true : B.SassBoolean_false;
  57893. },
  57894. $signature: 19
  57895. };
  57896. A._EvaluateVisitor_closure14.prototype = {
  57897. call$1($arguments) {
  57898. var t2, t3, t4,
  57899. t1 = J.$index$asx($arguments, 0).assertString$1("module")._string$_text,
  57900. module = this.$this._async_evaluate$_environment._async_environment$_modules.$index(0, t1);
  57901. if (module == null)
  57902. throw A.wrapException('There is no module with namespace "' + t1 + '".');
  57903. t1 = type$.Value;
  57904. t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  57905. for (t3 = module.get$variables(), t3 = t3.get$entries(t3), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  57906. t4 = t3.get$current(t3);
  57907. t2.$indexSet(0, new A.SassString(t4.key, true), t4.value);
  57908. }
  57909. return new A.SassMap(A.ConstantMap_ConstantMap$from(t2, t1, t1));
  57910. },
  57911. $signature: 35
  57912. };
  57913. A._EvaluateVisitor_closure15.prototype = {
  57914. call$1($arguments) {
  57915. var t2, t3, t4,
  57916. t1 = J.$index$asx($arguments, 0).assertString$1("module")._string$_text,
  57917. module = this.$this._async_evaluate$_environment._async_environment$_modules.$index(0, t1);
  57918. if (module == null)
  57919. throw A.wrapException('There is no module with namespace "' + t1 + '".');
  57920. t1 = type$.Value;
  57921. t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  57922. for (t3 = module.get$functions(module), t3 = t3.get$entries(t3), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  57923. t4 = t3.get$current(t3);
  57924. t2.$indexSet(0, new A.SassString(t4.key, true), new A.SassFunction(t4.value));
  57925. }
  57926. return new A.SassMap(A.ConstantMap_ConstantMap$from(t2, t1, t1));
  57927. },
  57928. $signature: 35
  57929. };
  57930. A._EvaluateVisitor_closure16.prototype = {
  57931. call$1($arguments) {
  57932. var module, callable, t2,
  57933. t1 = J.getInterceptor$asx($arguments),
  57934. $name = t1.$index($arguments, 0).assertString$1("name"),
  57935. css = t1.$index($arguments, 1).get$isTruthy();
  57936. t1 = t1.$index($arguments, 2).get$realNull();
  57937. module = t1 == null ? null : t1.assertString$1("module");
  57938. if (css && module != null)
  57939. throw A.wrapException(string$.x24css_a);
  57940. if (css)
  57941. callable = new A.PlainCssCallable($name._string$_text);
  57942. else {
  57943. t1 = this.$this;
  57944. t2 = t1._async_evaluate$_callableNode;
  57945. t2.toString;
  57946. callable = t1._async_evaluate$_addExceptionSpan$2(t2, new A._EvaluateVisitor__closure4(t1, $name, module));
  57947. }
  57948. if (callable != null)
  57949. return new A.SassFunction(callable);
  57950. throw A.wrapException("Function not found: " + $name.toString$0(0));
  57951. },
  57952. $signature: 215
  57953. };
  57954. A._EvaluateVisitor__closure4.prototype = {
  57955. call$0() {
  57956. var t1 = A.stringReplaceAllUnchecked(this.name._string$_text, "_", "-"),
  57957. t2 = this.module;
  57958. t2 = t2 == null ? null : t2._string$_text;
  57959. return this.$this._async_evaluate$_getFunction$2$namespace(t1, t2);
  57960. },
  57961. $signature: 135
  57962. };
  57963. A._EvaluateVisitor_closure17.prototype = {
  57964. call$1($arguments) {
  57965. return this.$call$body$_EvaluateVisitor_closure0($arguments);
  57966. },
  57967. $call$body$_EvaluateVisitor_closure0($arguments) {
  57968. var $async$goto = 0,
  57969. $async$completer = A._makeAsyncAwaitCompleter(type$.Value),
  57970. $async$returnValue, $async$self = this, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, invocation, callableNode, t1, $function, args;
  57971. var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  57972. if ($async$errorCode === 1)
  57973. return A._asyncRethrow($async$result, $async$completer);
  57974. while (true)
  57975. switch ($async$goto) {
  57976. case 0:
  57977. // Function start
  57978. t1 = J.getInterceptor$asx($arguments);
  57979. $function = t1.$index($arguments, 0);
  57980. args = type$.SassArgumentList._as(t1.$index($arguments, 1));
  57981. t1 = $async$self.$this;
  57982. t2 = t1._async_evaluate$_callableNode;
  57983. t2.toString;
  57984. t3 = A._setArrayType([], type$.JSArray_Expression);
  57985. t4 = type$.String;
  57986. t5 = type$.Expression;
  57987. t6 = t2.get$span(t2);
  57988. t7 = t2.get$span(t2);
  57989. args._wereKeywordsAccessed = true;
  57990. t8 = args._keywords;
  57991. if (t8.get$isEmpty(t8))
  57992. t2 = null;
  57993. else {
  57994. t9 = type$.Value;
  57995. t10 = A.LinkedHashMap_LinkedHashMap$_empty(t9, t9);
  57996. for (args._wereKeywordsAccessed = true, t8 = t8.get$entries(t8), t8 = t8.get$iterator(t8); t8.moveNext$0();) {
  57997. t11 = t8.get$current(t8);
  57998. t10.$indexSet(0, new A.SassString(t11.key, false), t11.value);
  57999. }
  58000. t2 = new A.ValueExpression(new A.SassMap(A.ConstantMap_ConstantMap$from(t10, t9, t9)), t2.get$span(t2));
  58001. }
  58002. invocation = new A.ArgumentInvocation(A.List_List$unmodifiable(t3, t5), A.ConstantMap_ConstantMap$from(A.LinkedHashMap_LinkedHashMap$_empty(t4, t5), t4, t5), new A.ValueExpression(args, t7), t2, t6);
  58003. $async$goto = $function instanceof A.SassString ? 3 : 4;
  58004. break;
  58005. case 3:
  58006. // then
  58007. t2 = $function.toString$0(0);
  58008. A.EvaluationContext_current().warn$2$deprecation(0, string$.Passin + t2 + "))", true);
  58009. callableNode = t1._async_evaluate$_callableNode;
  58010. $async$goto = 5;
  58011. return A._asyncAwait(t1.visitFunctionExpression$1(new A.FunctionExpression(null, $function._string$_text, invocation, callableNode.get$span(callableNode))), $async$call$1);
  58012. case 5:
  58013. // returning from await.
  58014. $async$returnValue = $async$result;
  58015. // goto return
  58016. $async$goto = 1;
  58017. break;
  58018. case 4:
  58019. // join
  58020. t2 = $function.assertFunction$1("function");
  58021. t3 = t1._async_evaluate$_callableNode;
  58022. t3.toString;
  58023. $async$goto = 6;
  58024. return A._asyncAwait(t1._async_evaluate$_runFunctionCallable$3(invocation, t2.callable, t3), $async$call$1);
  58025. case 6:
  58026. // returning from await.
  58027. t3 = $async$result;
  58028. $async$returnValue = t3;
  58029. // goto return
  58030. $async$goto = 1;
  58031. break;
  58032. case 1:
  58033. // return
  58034. return A._asyncReturn($async$returnValue, $async$completer);
  58035. }
  58036. });
  58037. return A._asyncStartSync($async$call$1, $async$completer);
  58038. },
  58039. $signature: 177
  58040. };
  58041. A._EvaluateVisitor_closure18.prototype = {
  58042. call$1($arguments) {
  58043. return this.$call$body$_EvaluateVisitor_closure($arguments);
  58044. },
  58045. $call$body$_EvaluateVisitor_closure($arguments) {
  58046. var $async$goto = 0,
  58047. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  58048. $async$self = this, withMap, t2, values, configuration, t3, t1, url;
  58049. var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  58050. if ($async$errorCode === 1)
  58051. return A._asyncRethrow($async$result, $async$completer);
  58052. while (true)
  58053. switch ($async$goto) {
  58054. case 0:
  58055. // Function start
  58056. t1 = J.getInterceptor$asx($arguments);
  58057. url = A.Uri_parse(t1.$index($arguments, 0).assertString$1("url")._string$_text);
  58058. t1 = t1.$index($arguments, 1).get$realNull();
  58059. withMap = t1 == null ? null : t1.assertMap$1("with")._map$_contents;
  58060. t1 = $async$self.$this;
  58061. t2 = t1._async_evaluate$_callableNode;
  58062. t2.toString;
  58063. if (withMap != null) {
  58064. values = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.ConfiguredValue);
  58065. withMap.forEach$1(0, new A._EvaluateVisitor__closure2(values, t2.get$span(t2), t2));
  58066. configuration = new A.ExplicitConfiguration(t2, values, null);
  58067. } else
  58068. configuration = B.Configuration_Map_empty_null;
  58069. t3 = t2.get$span(t2);
  58070. $async$goto = 2;
  58071. return A._asyncAwait(t1._async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors(url, "load-css()", t2, new A._EvaluateVisitor__closure3(t1), t3.get$sourceUrl(t3), configuration, true), $async$call$1);
  58072. case 2:
  58073. // returning from await.
  58074. t1._async_evaluate$_assertConfigurationIsEmpty$2$nameInError(configuration, true);
  58075. // implicit return
  58076. return A._asyncReturn(null, $async$completer);
  58077. }
  58078. });
  58079. return A._asyncStartSync($async$call$1, $async$completer);
  58080. },
  58081. $signature: 300
  58082. };
  58083. A._EvaluateVisitor__closure2.prototype = {
  58084. call$2(variable, value) {
  58085. var t1 = variable.assertString$1("with key"),
  58086. $name = A.stringReplaceAllUnchecked(t1._string$_text, "_", "-");
  58087. t1 = this.values;
  58088. if (t1.containsKey$1($name))
  58089. throw A.wrapException("The variable $" + $name + " was configured twice.");
  58090. t1.$indexSet(0, $name, new A.ConfiguredValue(value, this.span, this.callableNode));
  58091. },
  58092. $signature: 59
  58093. };
  58094. A._EvaluateVisitor__closure3.prototype = {
  58095. call$1(module) {
  58096. var t1 = this.$this;
  58097. return t1._async_evaluate$_combineCss$2$clone(module, true).accept$1(t1);
  58098. },
  58099. $signature: 218
  58100. };
  58101. A._EvaluateVisitor_run_closure0.prototype = {
  58102. call$0() {
  58103. var $async$goto = 0,
  58104. $async$completer = A._makeAsyncAwaitCompleter(type$.EvaluateResult),
  58105. $async$returnValue, $async$self = this, t1, t2, url, $async$temp1, $async$temp2;
  58106. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  58107. if ($async$errorCode === 1)
  58108. return A._asyncRethrow($async$result, $async$completer);
  58109. while (true)
  58110. switch ($async$goto) {
  58111. case 0:
  58112. // Function start
  58113. t1 = $async$self.node;
  58114. t2 = t1.span;
  58115. url = t2.get$sourceUrl(t2);
  58116. if (url != null) {
  58117. t2 = $async$self.$this;
  58118. t2._async_evaluate$_activeModules.$indexSet(0, url, null);
  58119. t2._async_evaluate$_loadedUrls.add$1(0, url);
  58120. }
  58121. t2 = $async$self.$this;
  58122. $async$temp1 = A;
  58123. $async$temp2 = t2;
  58124. $async$goto = 3;
  58125. return A._asyncAwait(t2._async_evaluate$_execute$2($async$self.importer, t1), $async$call$0);
  58126. case 3:
  58127. // returning from await.
  58128. $async$returnValue = new $async$temp1.EvaluateResult($async$temp2._async_evaluate$_combineCss$1($async$result));
  58129. // goto return
  58130. $async$goto = 1;
  58131. break;
  58132. case 1:
  58133. // return
  58134. return A._asyncReturn($async$returnValue, $async$completer);
  58135. }
  58136. });
  58137. return A._asyncStartSync($async$call$0, $async$completer);
  58138. },
  58139. $signature: 299
  58140. };
  58141. A._EvaluateVisitor__loadModule_closure1.prototype = {
  58142. call$0() {
  58143. return this.callback.call$1(this.builtInModule);
  58144. },
  58145. $signature: 0
  58146. };
  58147. A._EvaluateVisitor__loadModule_closure2.prototype = {
  58148. call$0() {
  58149. var $async$goto = 0,
  58150. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  58151. $async$handler = 1, $async$currentError, $async$next = [], $async$self = this, oldInDependency, module, error, stackTrace, error0, stackTrace0, error1, stackTrace1, error2, stackTrace2, message, exception, t4, t5, t6, t7, t1, t2, result, stylesheet, t3, canonicalUrl, $async$exception;
  58152. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  58153. if ($async$errorCode === 1) {
  58154. $async$currentError = $async$result;
  58155. $async$goto = $async$handler;
  58156. }
  58157. while (true)
  58158. switch ($async$goto) {
  58159. case 0:
  58160. // Function start
  58161. t1 = $async$self.$this;
  58162. t2 = $async$self.nodeWithSpan;
  58163. $async$goto = 2;
  58164. return A._asyncAwait(t1._async_evaluate$_loadStylesheet$3$baseUrl($async$self.url.toString$0(0), t2.get$span(t2), $async$self.baseUrl), $async$call$0);
  58165. case 2:
  58166. // returning from await.
  58167. result = $async$result;
  58168. stylesheet = result.stylesheet;
  58169. t3 = stylesheet.span;
  58170. canonicalUrl = t3.get$sourceUrl(t3);
  58171. if (canonicalUrl != null && t1._async_evaluate$_activeModules.containsKey$1(canonicalUrl)) {
  58172. message = $async$self.namesInErrors ? "Module loop: " + $.$get$context().prettyUri$1(canonicalUrl) + " is already being loaded." : string$.Modulel;
  58173. t2 = A.NullableExtension_andThen(t1._async_evaluate$_activeModules.$index(0, canonicalUrl), new A._EvaluateVisitor__loadModule__closure0(t1, message));
  58174. throw A.wrapException(t2 == null ? t1._async_evaluate$_exception$1(message) : t2);
  58175. }
  58176. if (canonicalUrl != null)
  58177. t1._async_evaluate$_activeModules.$indexSet(0, canonicalUrl, t2);
  58178. oldInDependency = t1._async_evaluate$_inDependency;
  58179. t1._async_evaluate$_inDependency = result.isDependency;
  58180. module = null;
  58181. $async$handler = 3;
  58182. $async$goto = 6;
  58183. return A._asyncAwait(t1._async_evaluate$_execute$5$configuration$namesInErrors$nodeWithSpan(result.importer, stylesheet, $async$self.configuration, $async$self.namesInErrors, t2), $async$call$0);
  58184. case 6:
  58185. // returning from await.
  58186. module = $async$result;
  58187. $async$next.push(5);
  58188. // goto finally
  58189. $async$goto = 4;
  58190. break;
  58191. case 3:
  58192. // uncaught
  58193. $async$next = [1];
  58194. case 4:
  58195. // finally
  58196. $async$handler = 1;
  58197. t1._async_evaluate$_activeModules.remove$1(0, canonicalUrl);
  58198. t1._async_evaluate$_inDependency = oldInDependency;
  58199. // goto the next finally handler
  58200. $async$goto = $async$next.pop();
  58201. break;
  58202. case 5:
  58203. // after finally
  58204. $async$handler = 8;
  58205. $async$goto = 11;
  58206. return A._asyncAwait($async$self.callback.call$1(module), $async$call$0);
  58207. case 11:
  58208. // returning from await.
  58209. $async$handler = 1;
  58210. // goto after finally
  58211. $async$goto = 10;
  58212. break;
  58213. case 8:
  58214. // catch
  58215. $async$handler = 7;
  58216. $async$exception = $async$currentError;
  58217. t2 = A.unwrapException($async$exception);
  58218. if (type$.SassRuntimeException._is(t2))
  58219. throw $async$exception;
  58220. else if (t2 instanceof A.MultiSpanSassException) {
  58221. error = t2;
  58222. stackTrace = A.getTraceFromException($async$exception);
  58223. t2 = error._span_exception$_message;
  58224. t3 = error;
  58225. t4 = J.getInterceptor$z(t3);
  58226. t3 = A.SourceSpanException.prototype.get$span.call(t4, t3);
  58227. t4 = error.primaryLabel;
  58228. t5 = error.secondarySpans;
  58229. t6 = error;
  58230. t7 = J.getInterceptor$z(t6);
  58231. A.throwWithTrace(new A.MultiSpanSassRuntimeException(t1._async_evaluate$_stackTrace$1(A.SourceSpanException.prototype.get$span.call(t7, t6)), t4, A.ConstantMap_ConstantMap$from(t5, type$.FileSpan, type$.String), t2, t3), stackTrace);
  58232. } else if (t2 instanceof A.SassException) {
  58233. error0 = t2;
  58234. stackTrace0 = A.getTraceFromException($async$exception);
  58235. t2 = error0;
  58236. t3 = J.getInterceptor$z(t2);
  58237. A.throwWithTrace(t1._async_evaluate$_exception$2(error0._span_exception$_message, A.SourceSpanException.prototype.get$span.call(t3, t2)), stackTrace0);
  58238. } else if (t2 instanceof A.MultiSpanSassScriptException) {
  58239. error1 = t2;
  58240. stackTrace1 = A.getTraceFromException($async$exception);
  58241. A.throwWithTrace(t1._async_evaluate$_multiSpanException$3(error1.message, error1.primaryLabel, error1.secondarySpans), stackTrace1);
  58242. } else if (t2 instanceof A.SassScriptException) {
  58243. error2 = t2;
  58244. stackTrace2 = A.getTraceFromException($async$exception);
  58245. A.throwWithTrace(t1._async_evaluate$_exception$1(error2.message), stackTrace2);
  58246. } else
  58247. throw $async$exception;
  58248. // goto after finally
  58249. $async$goto = 10;
  58250. break;
  58251. case 7:
  58252. // uncaught
  58253. // goto rethrow
  58254. $async$goto = 1;
  58255. break;
  58256. case 10:
  58257. // after finally
  58258. // implicit return
  58259. return A._asyncReturn(null, $async$completer);
  58260. case 1:
  58261. // rethrow
  58262. return A._asyncRethrow($async$currentError, $async$completer);
  58263. }
  58264. });
  58265. return A._asyncStartSync($async$call$0, $async$completer);
  58266. },
  58267. $signature: 2
  58268. };
  58269. A._EvaluateVisitor__loadModule__closure0.prototype = {
  58270. call$1(previousLoad) {
  58271. return this.$this._async_evaluate$_multiSpanException$3(this.message, "new load", A.LinkedHashMap_LinkedHashMap$_literal([previousLoad.get$span(previousLoad), "original load"], type$.FileSpan, type$.String));
  58272. },
  58273. $signature: 94
  58274. };
  58275. A._EvaluateVisitor__execute_closure0.prototype = {
  58276. call$0() {
  58277. var $async$goto = 0,
  58278. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  58279. $async$self = this, t3, t4, t5, t6, t1, oldImporter, oldStylesheet, oldRoot, oldParent, oldEndOfImports, oldOutOfOrderImports, oldExtensionStore, t2, oldStyleRule, oldMediaQueries, oldDeclarationName, oldInUnknownAtRule, oldInKeyframes, oldConfiguration;
  58280. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  58281. if ($async$errorCode === 1)
  58282. return A._asyncRethrow($async$result, $async$completer);
  58283. while (true)
  58284. switch ($async$goto) {
  58285. case 0:
  58286. // Function start
  58287. t1 = $async$self.$this;
  58288. oldImporter = t1._async_evaluate$_importer;
  58289. oldStylesheet = t1._async_evaluate$__stylesheet;
  58290. oldRoot = t1._async_evaluate$__root;
  58291. oldParent = t1._async_evaluate$__parent;
  58292. oldEndOfImports = t1._async_evaluate$__endOfImports;
  58293. oldOutOfOrderImports = t1._async_evaluate$_outOfOrderImports;
  58294. oldExtensionStore = t1._async_evaluate$__extensionStore;
  58295. t2 = t1._async_evaluate$_atRootExcludingStyleRule;
  58296. oldStyleRule = t2 ? null : t1._async_evaluate$_styleRuleIgnoringAtRoot;
  58297. oldMediaQueries = t1._async_evaluate$_mediaQueries;
  58298. oldDeclarationName = t1._async_evaluate$_declarationName;
  58299. oldInUnknownAtRule = t1._async_evaluate$_inUnknownAtRule;
  58300. oldInKeyframes = t1._async_evaluate$_inKeyframes;
  58301. oldConfiguration = t1._async_evaluate$_configuration;
  58302. t1._async_evaluate$_importer = $async$self.importer;
  58303. t3 = t1._async_evaluate$__stylesheet = $async$self.stylesheet;
  58304. t4 = t3.span;
  58305. t5 = t1._async_evaluate$__parent = t1._async_evaluate$__root = A.ModifiableCssStylesheet$(t4);
  58306. t1._async_evaluate$__endOfImports = 0;
  58307. t1._async_evaluate$_outOfOrderImports = null;
  58308. t1._async_evaluate$__extensionStore = $async$self.extensionStore;
  58309. t1._async_evaluate$_declarationName = t1._async_evaluate$_mediaQueries = t1._async_evaluate$_styleRuleIgnoringAtRoot = null;
  58310. t1._async_evaluate$_inKeyframes = t1._async_evaluate$_atRootExcludingStyleRule = t1._async_evaluate$_inUnknownAtRule = false;
  58311. t6 = $async$self.configuration;
  58312. if (t6 != null)
  58313. t1._async_evaluate$_configuration = t6;
  58314. $async$goto = 2;
  58315. return A._asyncAwait(t1.visitStylesheet$1(t3), $async$call$0);
  58316. case 2:
  58317. // returning from await.
  58318. t3 = t1._async_evaluate$_outOfOrderImports == null ? t5 : new A.CssStylesheet(new A.UnmodifiableListView(t1._async_evaluate$_addOutOfOrderImports$0(), type$.UnmodifiableListView_CssNode), t4);
  58319. $async$self.css._value = t3;
  58320. t1._async_evaluate$_importer = oldImporter;
  58321. t1._async_evaluate$__stylesheet = oldStylesheet;
  58322. t1._async_evaluate$__root = oldRoot;
  58323. t1._async_evaluate$__parent = oldParent;
  58324. t1._async_evaluate$__endOfImports = oldEndOfImports;
  58325. t1._async_evaluate$_outOfOrderImports = oldOutOfOrderImports;
  58326. t1._async_evaluate$__extensionStore = oldExtensionStore;
  58327. t1._async_evaluate$_styleRuleIgnoringAtRoot = oldStyleRule;
  58328. t1._async_evaluate$_mediaQueries = oldMediaQueries;
  58329. t1._async_evaluate$_declarationName = oldDeclarationName;
  58330. t1._async_evaluate$_inUnknownAtRule = oldInUnknownAtRule;
  58331. t1._async_evaluate$_atRootExcludingStyleRule = t2;
  58332. t1._async_evaluate$_inKeyframes = oldInKeyframes;
  58333. t1._async_evaluate$_configuration = oldConfiguration;
  58334. // implicit return
  58335. return A._asyncReturn(null, $async$completer);
  58336. }
  58337. });
  58338. return A._asyncStartSync($async$call$0, $async$completer);
  58339. },
  58340. $signature: 2
  58341. };
  58342. A._EvaluateVisitor__combineCss_closure2.prototype = {
  58343. call$1(module) {
  58344. return module.get$transitivelyContainsCss();
  58345. },
  58346. $signature: 112
  58347. };
  58348. A._EvaluateVisitor__combineCss_closure3.prototype = {
  58349. call$1(target) {
  58350. return !this.selectors.contains$1(0, target);
  58351. },
  58352. $signature: 14
  58353. };
  58354. A._EvaluateVisitor__combineCss_closure4.prototype = {
  58355. call$1(module) {
  58356. return module.cloneCss$0();
  58357. },
  58358. $signature: 296
  58359. };
  58360. A._EvaluateVisitor__extendModules_closure1.prototype = {
  58361. call$1(target) {
  58362. return !this.originalSelectors.contains$1(0, target);
  58363. },
  58364. $signature: 14
  58365. };
  58366. A._EvaluateVisitor__extendModules_closure2.prototype = {
  58367. call$0() {
  58368. return A._setArrayType([], type$.JSArray_ExtensionStore);
  58369. },
  58370. $signature: 222
  58371. };
  58372. A._EvaluateVisitor__topologicalModules_visitModule0.prototype = {
  58373. call$1(module) {
  58374. var t1, t2, t3, _i, upstream;
  58375. for (t1 = module.get$upstream(), t2 = t1.length, t3 = this.seen, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
  58376. upstream = t1[_i];
  58377. if (upstream.get$transitivelyContainsCss() && t3.add$1(0, upstream))
  58378. this.call$1(upstream);
  58379. }
  58380. this.sorted.addFirst$1(module);
  58381. },
  58382. $signature: 218
  58383. };
  58384. A._EvaluateVisitor_visitAtRootRule_closure2.prototype = {
  58385. call$0() {
  58386. var t1 = A.SpanScanner$(this.resolved, null);
  58387. return new A.AtRootQueryParser(t1, this.$this._async_evaluate$_logger).parse$0();
  58388. },
  58389. $signature: 119
  58390. };
  58391. A._EvaluateVisitor_visitAtRootRule_closure3.prototype = {
  58392. call$0() {
  58393. var $async$goto = 0,
  58394. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  58395. $async$self = this, t1, t2, t3, _i;
  58396. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  58397. if ($async$errorCode === 1)
  58398. return A._asyncRethrow($async$result, $async$completer);
  58399. while (true)
  58400. switch ($async$goto) {
  58401. case 0:
  58402. // Function start
  58403. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  58404. case 2:
  58405. // for condition
  58406. if (!(_i < t2)) {
  58407. // goto after for
  58408. $async$goto = 4;
  58409. break;
  58410. }
  58411. $async$goto = 5;
  58412. return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  58413. case 5:
  58414. // returning from await.
  58415. case 3:
  58416. // for update
  58417. ++_i;
  58418. // goto for condition
  58419. $async$goto = 2;
  58420. break;
  58421. case 4:
  58422. // after for
  58423. // implicit return
  58424. return A._asyncReturn(null, $async$completer);
  58425. }
  58426. });
  58427. return A._asyncStartSync($async$call$0, $async$completer);
  58428. },
  58429. $signature: 2
  58430. };
  58431. A._EvaluateVisitor_visitAtRootRule_closure4.prototype = {
  58432. call$0() {
  58433. var $async$goto = 0,
  58434. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  58435. $async$self = this, t1, t2, t3, _i;
  58436. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  58437. if ($async$errorCode === 1)
  58438. return A._asyncRethrow($async$result, $async$completer);
  58439. while (true)
  58440. switch ($async$goto) {
  58441. case 0:
  58442. // Function start
  58443. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  58444. case 2:
  58445. // for condition
  58446. if (!(_i < t2)) {
  58447. // goto after for
  58448. $async$goto = 4;
  58449. break;
  58450. }
  58451. $async$goto = 5;
  58452. return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  58453. case 5:
  58454. // returning from await.
  58455. case 3:
  58456. // for update
  58457. ++_i;
  58458. // goto for condition
  58459. $async$goto = 2;
  58460. break;
  58461. case 4:
  58462. // after for
  58463. // implicit return
  58464. return A._asyncReturn(null, $async$completer);
  58465. }
  58466. });
  58467. return A._asyncStartSync($async$call$0, $async$completer);
  58468. },
  58469. $signature: 38
  58470. };
  58471. A._EvaluateVisitor__scopeForAtRoot_closure5.prototype = {
  58472. call$1(callback) {
  58473. var $async$goto = 0,
  58474. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  58475. $async$self = this, t1, t2;
  58476. var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  58477. if ($async$errorCode === 1)
  58478. return A._asyncRethrow($async$result, $async$completer);
  58479. while (true)
  58480. switch ($async$goto) {
  58481. case 0:
  58482. // Function start
  58483. t1 = $async$self.$this;
  58484. t2 = t1._async_evaluate$_assertInModule$2(t1._async_evaluate$__parent, "__parent");
  58485. t1._async_evaluate$__parent = $async$self.newParent;
  58486. $async$goto = 2;
  58487. return A._asyncAwait(t1._async_evaluate$_environment.scope$1$2$when(callback, $async$self.node.hasDeclarations, type$.void), $async$call$1);
  58488. case 2:
  58489. // returning from await.
  58490. t1._async_evaluate$__parent = t2;
  58491. // implicit return
  58492. return A._asyncReturn(null, $async$completer);
  58493. }
  58494. });
  58495. return A._asyncStartSync($async$call$1, $async$completer);
  58496. },
  58497. $signature: 33
  58498. };
  58499. A._EvaluateVisitor__scopeForAtRoot_closure6.prototype = {
  58500. call$1(callback) {
  58501. var $async$goto = 0,
  58502. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  58503. $async$self = this, t1, oldAtRootExcludingStyleRule;
  58504. var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  58505. if ($async$errorCode === 1)
  58506. return A._asyncRethrow($async$result, $async$completer);
  58507. while (true)
  58508. switch ($async$goto) {
  58509. case 0:
  58510. // Function start
  58511. t1 = $async$self.$this;
  58512. oldAtRootExcludingStyleRule = t1._async_evaluate$_atRootExcludingStyleRule;
  58513. t1._async_evaluate$_atRootExcludingStyleRule = true;
  58514. $async$goto = 2;
  58515. return A._asyncAwait($async$self.innerScope.call$1(callback), $async$call$1);
  58516. case 2:
  58517. // returning from await.
  58518. t1._async_evaluate$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  58519. // implicit return
  58520. return A._asyncReturn(null, $async$completer);
  58521. }
  58522. });
  58523. return A._asyncStartSync($async$call$1, $async$completer);
  58524. },
  58525. $signature: 33
  58526. };
  58527. A._EvaluateVisitor__scopeForAtRoot_closure7.prototype = {
  58528. call$1(callback) {
  58529. return this.$this._async_evaluate$_withMediaQueries$1$3(null, null, new A._EvaluateVisitor__scopeForAtRoot__closure0(this.innerScope, callback), type$.Null);
  58530. },
  58531. $signature: 33
  58532. };
  58533. A._EvaluateVisitor__scopeForAtRoot__closure0.prototype = {
  58534. call$0() {
  58535. return this.innerScope.call$1(this.callback);
  58536. },
  58537. $signature: 2
  58538. };
  58539. A._EvaluateVisitor__scopeForAtRoot_closure8.prototype = {
  58540. call$1(callback) {
  58541. var $async$goto = 0,
  58542. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  58543. $async$self = this, t1, wasInKeyframes;
  58544. var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  58545. if ($async$errorCode === 1)
  58546. return A._asyncRethrow($async$result, $async$completer);
  58547. while (true)
  58548. switch ($async$goto) {
  58549. case 0:
  58550. // Function start
  58551. t1 = $async$self.$this;
  58552. wasInKeyframes = t1._async_evaluate$_inKeyframes;
  58553. t1._async_evaluate$_inKeyframes = false;
  58554. $async$goto = 2;
  58555. return A._asyncAwait($async$self.innerScope.call$1(callback), $async$call$1);
  58556. case 2:
  58557. // returning from await.
  58558. t1._async_evaluate$_inKeyframes = wasInKeyframes;
  58559. // implicit return
  58560. return A._asyncReturn(null, $async$completer);
  58561. }
  58562. });
  58563. return A._asyncStartSync($async$call$1, $async$completer);
  58564. },
  58565. $signature: 33
  58566. };
  58567. A._EvaluateVisitor__scopeForAtRoot_closure9.prototype = {
  58568. call$1($parent) {
  58569. return type$.CssAtRule._is($parent);
  58570. },
  58571. $signature: 224
  58572. };
  58573. A._EvaluateVisitor__scopeForAtRoot_closure10.prototype = {
  58574. call$1(callback) {
  58575. var $async$goto = 0,
  58576. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  58577. $async$self = this, t1, wasInUnknownAtRule;
  58578. var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  58579. if ($async$errorCode === 1)
  58580. return A._asyncRethrow($async$result, $async$completer);
  58581. while (true)
  58582. switch ($async$goto) {
  58583. case 0:
  58584. // Function start
  58585. t1 = $async$self.$this;
  58586. wasInUnknownAtRule = t1._async_evaluate$_inUnknownAtRule;
  58587. t1._async_evaluate$_inUnknownAtRule = false;
  58588. $async$goto = 2;
  58589. return A._asyncAwait($async$self.innerScope.call$1(callback), $async$call$1);
  58590. case 2:
  58591. // returning from await.
  58592. t1._async_evaluate$_inUnknownAtRule = wasInUnknownAtRule;
  58593. // implicit return
  58594. return A._asyncReturn(null, $async$completer);
  58595. }
  58596. });
  58597. return A._asyncStartSync($async$call$1, $async$completer);
  58598. },
  58599. $signature: 33
  58600. };
  58601. A._EvaluateVisitor_visitContentRule_closure0.prototype = {
  58602. call$0() {
  58603. var $async$goto = 0,
  58604. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  58605. $async$returnValue, $async$self = this, t1, t2, t3, _i;
  58606. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  58607. if ($async$errorCode === 1)
  58608. return A._asyncRethrow($async$result, $async$completer);
  58609. while (true)
  58610. switch ($async$goto) {
  58611. case 0:
  58612. // Function start
  58613. t1 = $async$self.content.declaration.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  58614. case 3:
  58615. // for condition
  58616. if (!(_i < t2)) {
  58617. // goto after for
  58618. $async$goto = 5;
  58619. break;
  58620. }
  58621. $async$goto = 6;
  58622. return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  58623. case 6:
  58624. // returning from await.
  58625. case 4:
  58626. // for update
  58627. ++_i;
  58628. // goto for condition
  58629. $async$goto = 3;
  58630. break;
  58631. case 5:
  58632. // after for
  58633. $async$returnValue = null;
  58634. // goto return
  58635. $async$goto = 1;
  58636. break;
  58637. case 1:
  58638. // return
  58639. return A._asyncReturn($async$returnValue, $async$completer);
  58640. }
  58641. });
  58642. return A._asyncStartSync($async$call$0, $async$completer);
  58643. },
  58644. $signature: 2
  58645. };
  58646. A._EvaluateVisitor_visitDeclaration_closure1.prototype = {
  58647. call$1(value) {
  58648. return this.$call$body$_EvaluateVisitor_visitDeclaration_closure(value);
  58649. },
  58650. $call$body$_EvaluateVisitor_visitDeclaration_closure(value) {
  58651. var $async$goto = 0,
  58652. $async$completer = A._makeAsyncAwaitCompleter(type$.CssValue_Value),
  58653. $async$returnValue, $async$self = this, $async$temp1;
  58654. var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  58655. if ($async$errorCode === 1)
  58656. return A._asyncRethrow($async$result, $async$completer);
  58657. while (true)
  58658. switch ($async$goto) {
  58659. case 0:
  58660. // Function start
  58661. $async$temp1 = A;
  58662. $async$goto = 3;
  58663. return A._asyncAwait(value.accept$1($async$self.$this), $async$call$1);
  58664. case 3:
  58665. // returning from await.
  58666. $async$returnValue = new $async$temp1.CssValue($async$result, value.get$span(value), type$.CssValue_Value);
  58667. // goto return
  58668. $async$goto = 1;
  58669. break;
  58670. case 1:
  58671. // return
  58672. return A._asyncReturn($async$returnValue, $async$completer);
  58673. }
  58674. });
  58675. return A._asyncStartSync($async$call$1, $async$completer);
  58676. },
  58677. $signature: 295
  58678. };
  58679. A._EvaluateVisitor_visitDeclaration_closure2.prototype = {
  58680. call$0() {
  58681. var $async$goto = 0,
  58682. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  58683. $async$self = this, t1, t2, t3, _i;
  58684. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  58685. if ($async$errorCode === 1)
  58686. return A._asyncRethrow($async$result, $async$completer);
  58687. while (true)
  58688. switch ($async$goto) {
  58689. case 0:
  58690. // Function start
  58691. t1 = $async$self.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  58692. case 2:
  58693. // for condition
  58694. if (!(_i < t2)) {
  58695. // goto after for
  58696. $async$goto = 4;
  58697. break;
  58698. }
  58699. $async$goto = 5;
  58700. return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  58701. case 5:
  58702. // returning from await.
  58703. case 3:
  58704. // for update
  58705. ++_i;
  58706. // goto for condition
  58707. $async$goto = 2;
  58708. break;
  58709. case 4:
  58710. // after for
  58711. // implicit return
  58712. return A._asyncReturn(null, $async$completer);
  58713. }
  58714. });
  58715. return A._asyncStartSync($async$call$0, $async$completer);
  58716. },
  58717. $signature: 2
  58718. };
  58719. A._EvaluateVisitor_visitEachRule_closure2.prototype = {
  58720. call$1(value) {
  58721. var t1 = this.$this,
  58722. t2 = this.nodeWithSpan;
  58723. return t1._async_evaluate$_environment.setLocalVariable$3(B.JSArray_methods.get$first(this.node.variables), t1._async_evaluate$_withoutSlash$2(value, t2), t2);
  58724. },
  58725. $signature: 53
  58726. };
  58727. A._EvaluateVisitor_visitEachRule_closure3.prototype = {
  58728. call$1(value) {
  58729. return this.$this._async_evaluate$_setMultipleVariables$3(this.node.variables, value, this.nodeWithSpan);
  58730. },
  58731. $signature: 53
  58732. };
  58733. A._EvaluateVisitor_visitEachRule_closure4.prototype = {
  58734. call$0() {
  58735. var _this = this,
  58736. t1 = _this.$this;
  58737. return t1._async_evaluate$_handleReturn$2(_this.list.get$asList(), new A._EvaluateVisitor_visitEachRule__closure0(t1, _this.setVariables, _this.node));
  58738. },
  58739. $signature: 67
  58740. };
  58741. A._EvaluateVisitor_visitEachRule__closure0.prototype = {
  58742. call$1(element) {
  58743. var t1;
  58744. this.setVariables.call$1(element);
  58745. t1 = this.$this;
  58746. return t1._async_evaluate$_handleReturn$2(this.node.children, new A._EvaluateVisitor_visitEachRule___closure0(t1));
  58747. },
  58748. $signature: 286
  58749. };
  58750. A._EvaluateVisitor_visitEachRule___closure0.prototype = {
  58751. call$1(child) {
  58752. return child.accept$1(this.$this);
  58753. },
  58754. $signature: 96
  58755. };
  58756. A._EvaluateVisitor_visitExtendRule_closure0.prototype = {
  58757. call$0() {
  58758. var t1 = this.targetText;
  58759. return A.SelectorList_SelectorList$parse(A.trimAscii(t1.get$value(t1), true), false, true, this.$this._async_evaluate$_logger);
  58760. },
  58761. $signature: 44
  58762. };
  58763. A._EvaluateVisitor_visitAtRule_closure2.prototype = {
  58764. call$1(value) {
  58765. return this.$this._async_evaluate$_interpolationToValue$3$trim$warnForColor(value, true, true);
  58766. },
  58767. $signature: 285
  58768. };
  58769. A._EvaluateVisitor_visitAtRule_closure3.prototype = {
  58770. call$0() {
  58771. var $async$goto = 0,
  58772. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  58773. $async$self = this, t2, t3, _i, t1, styleRule;
  58774. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  58775. if ($async$errorCode === 1)
  58776. return A._asyncRethrow($async$result, $async$completer);
  58777. while (true)
  58778. switch ($async$goto) {
  58779. case 0:
  58780. // Function start
  58781. t1 = $async$self.$this;
  58782. styleRule = t1._async_evaluate$_atRootExcludingStyleRule ? null : t1._async_evaluate$_styleRuleIgnoringAtRoot;
  58783. $async$goto = styleRule == null || t1._async_evaluate$_inKeyframes ? 2 : 4;
  58784. break;
  58785. case 2:
  58786. // then
  58787. t2 = $async$self.children, t3 = t2.length, _i = 0;
  58788. case 5:
  58789. // for condition
  58790. if (!(_i < t3)) {
  58791. // goto after for
  58792. $async$goto = 7;
  58793. break;
  58794. }
  58795. $async$goto = 8;
  58796. return A._asyncAwait(t2[_i].accept$1(t1), $async$call$0);
  58797. case 8:
  58798. // returning from await.
  58799. case 6:
  58800. // for update
  58801. ++_i;
  58802. // goto for condition
  58803. $async$goto = 5;
  58804. break;
  58805. case 7:
  58806. // after for
  58807. // goto join
  58808. $async$goto = 3;
  58809. break;
  58810. case 4:
  58811. // else
  58812. $async$goto = 9;
  58813. return A._asyncAwait(t1._async_evaluate$_withParent$2$3$scopeWhen(A.ModifiableCssStyleRule$(styleRule.selector, styleRule.span, styleRule.originalSelector), new A._EvaluateVisitor_visitAtRule__closure0(t1, $async$self.children), false, type$.ModifiableCssStyleRule, type$.Null), $async$call$0);
  58814. case 9:
  58815. // returning from await.
  58816. case 3:
  58817. // join
  58818. // implicit return
  58819. return A._asyncReturn(null, $async$completer);
  58820. }
  58821. });
  58822. return A._asyncStartSync($async$call$0, $async$completer);
  58823. },
  58824. $signature: 2
  58825. };
  58826. A._EvaluateVisitor_visitAtRule__closure0.prototype = {
  58827. call$0() {
  58828. var $async$goto = 0,
  58829. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  58830. $async$self = this, t1, t2, t3, _i;
  58831. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  58832. if ($async$errorCode === 1)
  58833. return A._asyncRethrow($async$result, $async$completer);
  58834. while (true)
  58835. switch ($async$goto) {
  58836. case 0:
  58837. // Function start
  58838. t1 = $async$self.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  58839. case 2:
  58840. // for condition
  58841. if (!(_i < t2)) {
  58842. // goto after for
  58843. $async$goto = 4;
  58844. break;
  58845. }
  58846. $async$goto = 5;
  58847. return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  58848. case 5:
  58849. // returning from await.
  58850. case 3:
  58851. // for update
  58852. ++_i;
  58853. // goto for condition
  58854. $async$goto = 2;
  58855. break;
  58856. case 4:
  58857. // after for
  58858. // implicit return
  58859. return A._asyncReturn(null, $async$completer);
  58860. }
  58861. });
  58862. return A._asyncStartSync($async$call$0, $async$completer);
  58863. },
  58864. $signature: 2
  58865. };
  58866. A._EvaluateVisitor_visitAtRule_closure4.prototype = {
  58867. call$1(node) {
  58868. return type$.CssStyleRule._is(node);
  58869. },
  58870. $signature: 7
  58871. };
  58872. A._EvaluateVisitor_visitForRule_closure4.prototype = {
  58873. call$0() {
  58874. var $async$goto = 0,
  58875. $async$completer = A._makeAsyncAwaitCompleter(type$.SassNumber),
  58876. $async$returnValue, $async$self = this;
  58877. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  58878. if ($async$errorCode === 1)
  58879. return A._asyncRethrow($async$result, $async$completer);
  58880. while (true)
  58881. switch ($async$goto) {
  58882. case 0:
  58883. // Function start
  58884. $async$goto = 3;
  58885. return A._asyncAwait($async$self.node.from.accept$1($async$self.$this), $async$call$0);
  58886. case 3:
  58887. // returning from await.
  58888. $async$returnValue = $async$result.assertNumber$0();
  58889. // goto return
  58890. $async$goto = 1;
  58891. break;
  58892. case 1:
  58893. // return
  58894. return A._asyncReturn($async$returnValue, $async$completer);
  58895. }
  58896. });
  58897. return A._asyncStartSync($async$call$0, $async$completer);
  58898. },
  58899. $signature: 232
  58900. };
  58901. A._EvaluateVisitor_visitForRule_closure5.prototype = {
  58902. call$0() {
  58903. var $async$goto = 0,
  58904. $async$completer = A._makeAsyncAwaitCompleter(type$.SassNumber),
  58905. $async$returnValue, $async$self = this;
  58906. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  58907. if ($async$errorCode === 1)
  58908. return A._asyncRethrow($async$result, $async$completer);
  58909. while (true)
  58910. switch ($async$goto) {
  58911. case 0:
  58912. // Function start
  58913. $async$goto = 3;
  58914. return A._asyncAwait($async$self.node.to.accept$1($async$self.$this), $async$call$0);
  58915. case 3:
  58916. // returning from await.
  58917. $async$returnValue = $async$result.assertNumber$0();
  58918. // goto return
  58919. $async$goto = 1;
  58920. break;
  58921. case 1:
  58922. // return
  58923. return A._asyncReturn($async$returnValue, $async$completer);
  58924. }
  58925. });
  58926. return A._asyncStartSync($async$call$0, $async$completer);
  58927. },
  58928. $signature: 232
  58929. };
  58930. A._EvaluateVisitor_visitForRule_closure6.prototype = {
  58931. call$0() {
  58932. return this.fromNumber.assertInt$0();
  58933. },
  58934. $signature: 12
  58935. };
  58936. A._EvaluateVisitor_visitForRule_closure7.prototype = {
  58937. call$0() {
  58938. var t1 = this.fromNumber;
  58939. return this.toNumber.coerce$2(t1.get$numeratorUnits(t1), t1.get$denominatorUnits(t1)).assertInt$0();
  58940. },
  58941. $signature: 12
  58942. };
  58943. A._EvaluateVisitor_visitForRule_closure8.prototype = {
  58944. call$0() {
  58945. var $async$goto = 0,
  58946. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
  58947. $async$returnValue, $async$self = this, i, t3, t4, t5, t6, t7, t8, result, t1, t2, nodeWithSpan;
  58948. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  58949. if ($async$errorCode === 1)
  58950. return A._asyncRethrow($async$result, $async$completer);
  58951. while (true)
  58952. switch ($async$goto) {
  58953. case 0:
  58954. // Function start
  58955. t1 = $async$self.$this;
  58956. t2 = $async$self.node;
  58957. nodeWithSpan = t1._async_evaluate$_expressionNode$1(t2.from);
  58958. i = $async$self.from, t3 = $async$self._box_0, t4 = $async$self.direction, t5 = t2.variable, t6 = $async$self.fromNumber, t2 = t2.children;
  58959. case 3:
  58960. // for condition
  58961. if (!(i !== t3.to)) {
  58962. // goto after for
  58963. $async$goto = 5;
  58964. break;
  58965. }
  58966. t7 = t1._async_evaluate$_environment;
  58967. t8 = t6.get$numeratorUnits(t6);
  58968. t7.setLocalVariable$3(t5, A.SassNumber_SassNumber$withUnits(i, t6.get$denominatorUnits(t6), t8), nodeWithSpan);
  58969. $async$goto = 6;
  58970. return A._asyncAwait(t1._async_evaluate$_handleReturn$2(t2, new A._EvaluateVisitor_visitForRule__closure0(t1)), $async$call$0);
  58971. case 6:
  58972. // returning from await.
  58973. result = $async$result;
  58974. if (result != null) {
  58975. $async$returnValue = result;
  58976. // goto return
  58977. $async$goto = 1;
  58978. break;
  58979. }
  58980. case 4:
  58981. // for update
  58982. i += t4;
  58983. // goto for condition
  58984. $async$goto = 3;
  58985. break;
  58986. case 5:
  58987. // after for
  58988. $async$returnValue = null;
  58989. // goto return
  58990. $async$goto = 1;
  58991. break;
  58992. case 1:
  58993. // return
  58994. return A._asyncReturn($async$returnValue, $async$completer);
  58995. }
  58996. });
  58997. return A._asyncStartSync($async$call$0, $async$completer);
  58998. },
  58999. $signature: 67
  59000. };
  59001. A._EvaluateVisitor_visitForRule__closure0.prototype = {
  59002. call$1(child) {
  59003. return child.accept$1(this.$this);
  59004. },
  59005. $signature: 96
  59006. };
  59007. A._EvaluateVisitor_visitForwardRule_closure1.prototype = {
  59008. call$1(module) {
  59009. this.$this._async_evaluate$_environment.forwardModule$2(module, this.node);
  59010. },
  59011. $signature: 137
  59012. };
  59013. A._EvaluateVisitor_visitForwardRule_closure2.prototype = {
  59014. call$1(module) {
  59015. this.$this._async_evaluate$_environment.forwardModule$2(module, this.node);
  59016. },
  59017. $signature: 137
  59018. };
  59019. A._EvaluateVisitor_visitIfRule_closure0.prototype = {
  59020. call$0() {
  59021. var t1 = this.$this;
  59022. return t1._async_evaluate$_handleReturn$2(this._box_0.clause.children, new A._EvaluateVisitor_visitIfRule__closure0(t1));
  59023. },
  59024. $signature: 67
  59025. };
  59026. A._EvaluateVisitor_visitIfRule__closure0.prototype = {
  59027. call$1(child) {
  59028. return child.accept$1(this.$this);
  59029. },
  59030. $signature: 96
  59031. };
  59032. A._EvaluateVisitor__visitDynamicImport_closure0.prototype = {
  59033. call$0() {
  59034. var $async$goto = 0,
  59035. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  59036. $async$returnValue, $async$self = this, t4, oldImporter, oldInDependency, loadsUserDefinedModules, children, t5, t6, t7, t8, t9, t10, environment, module, visitor, t1, t2, result, stylesheet, t3, url;
  59037. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  59038. if ($async$errorCode === 1)
  59039. return A._asyncRethrow($async$result, $async$completer);
  59040. while (true)
  59041. switch ($async$goto) {
  59042. case 0:
  59043. // Function start
  59044. t1 = $async$self.$this;
  59045. t2 = $async$self.$import;
  59046. $async$goto = 3;
  59047. return A._asyncAwait(t1._async_evaluate$_loadStylesheet$3$forImport(t2.urlString, t2.span, true), $async$call$0);
  59048. case 3:
  59049. // returning from await.
  59050. result = $async$result;
  59051. stylesheet = result.stylesheet;
  59052. t3 = stylesheet.span;
  59053. url = t3.get$sourceUrl(t3);
  59054. if (url != null) {
  59055. t3 = t1._async_evaluate$_activeModules;
  59056. if (t3.containsKey$1(url)) {
  59057. t2 = A.NullableExtension_andThen(t3.$index(0, url), new A._EvaluateVisitor__visitDynamicImport__closure3(t1));
  59058. throw A.wrapException(t2 == null ? t1._async_evaluate$_exception$1("This file is already being loaded.") : t2);
  59059. }
  59060. t3.$indexSet(0, url, t2);
  59061. }
  59062. t2 = stylesheet._uses;
  59063. t3 = type$.UnmodifiableListView_UseRule;
  59064. t4 = new A.UnmodifiableListView(t2, t3);
  59065. if (t4.get$length(t4) === 0) {
  59066. t4 = new A.UnmodifiableListView(stylesheet._forwards, type$.UnmodifiableListView_ForwardRule);
  59067. t4 = t4.get$length(t4) === 0;
  59068. } else
  59069. t4 = false;
  59070. $async$goto = t4 ? 4 : 5;
  59071. break;
  59072. case 4:
  59073. // then
  59074. oldImporter = t1._async_evaluate$_importer;
  59075. t2 = t1._async_evaluate$_assertInModule$2(t1._async_evaluate$__stylesheet, "_stylesheet");
  59076. oldInDependency = t1._async_evaluate$_inDependency;
  59077. t1._async_evaluate$_importer = result.importer;
  59078. t1._async_evaluate$__stylesheet = stylesheet;
  59079. t1._async_evaluate$_inDependency = result.isDependency;
  59080. $async$goto = 6;
  59081. return A._asyncAwait(t1.visitStylesheet$1(stylesheet), $async$call$0);
  59082. case 6:
  59083. // returning from await.
  59084. t1._async_evaluate$_importer = oldImporter;
  59085. t1._async_evaluate$__stylesheet = t2;
  59086. t1._async_evaluate$_inDependency = oldInDependency;
  59087. t1._async_evaluate$_activeModules.remove$1(0, url);
  59088. // goto return
  59089. $async$goto = 1;
  59090. break;
  59091. case 5:
  59092. // join
  59093. t2 = new A.UnmodifiableListView(t2, t3);
  59094. if (!t2.any$1(t2, new A._EvaluateVisitor__visitDynamicImport__closure4())) {
  59095. t2 = new A.UnmodifiableListView(stylesheet._forwards, type$.UnmodifiableListView_ForwardRule);
  59096. loadsUserDefinedModules = t2.any$1(t2, new A._EvaluateVisitor__visitDynamicImport__closure5());
  59097. } else
  59098. loadsUserDefinedModules = true;
  59099. children = A._Cell$();
  59100. t2 = t1._async_evaluate$_environment;
  59101. t3 = type$.String;
  59102. t4 = type$.Module_AsyncCallable;
  59103. t5 = type$.AstNode;
  59104. t6 = A._setArrayType([], type$.JSArray_Module_AsyncCallable);
  59105. t7 = t2._async_environment$_variables;
  59106. t7 = A._setArrayType(t7.slice(0), A._arrayInstanceType(t7));
  59107. t8 = t2._async_environment$_variableNodes;
  59108. t8 = A._setArrayType(t8.slice(0), A._arrayInstanceType(t8));
  59109. t9 = t2._async_environment$_functions;
  59110. t9 = A._setArrayType(t9.slice(0), A._arrayInstanceType(t9));
  59111. t10 = t2._async_environment$_mixins;
  59112. t10 = A._setArrayType(t10.slice(0), A._arrayInstanceType(t10));
  59113. environment = A.AsyncEnvironment$_(A.LinkedHashMap_LinkedHashMap$_empty(t3, t4), A.LinkedHashMap_LinkedHashMap$_empty(t3, t5), A.LinkedHashMap_LinkedHashMap$_empty(t4, t5), t2._async_environment$_importedModules, null, null, t6, t7, t8, t9, t10, t2._async_environment$_content);
  59114. $async$goto = 7;
  59115. return A._asyncAwait(t1._async_evaluate$_withEnvironment$1$2(environment, new A._EvaluateVisitor__visitDynamicImport__closure6(t1, result, stylesheet, loadsUserDefinedModules, environment, children), type$.Null), $async$call$0);
  59116. case 7:
  59117. // returning from await.
  59118. module = environment.toDummyModule$0();
  59119. t1._async_evaluate$_environment.importForwards$1(module);
  59120. $async$goto = loadsUserDefinedModules ? 8 : 9;
  59121. break;
  59122. case 8:
  59123. // then
  59124. $async$goto = module.transitivelyContainsCss ? 10 : 11;
  59125. break;
  59126. case 10:
  59127. // then
  59128. $async$goto = 12;
  59129. return A._asyncAwait(t1._async_evaluate$_combineCss$2$clone(module, module.transitivelyContainsExtensions).accept$1(t1), $async$call$0);
  59130. case 12:
  59131. // returning from await.
  59132. case 11:
  59133. // join
  59134. visitor = new A._ImportedCssVisitor0(t1);
  59135. for (t2 = J.get$iterator$ax(children._readLocal$0()); t2.moveNext$0();)
  59136. t2.get$current(t2).accept$1(visitor);
  59137. case 9:
  59138. // join
  59139. t1._async_evaluate$_activeModules.remove$1(0, url);
  59140. case 1:
  59141. // return
  59142. return A._asyncReturn($async$returnValue, $async$completer);
  59143. }
  59144. });
  59145. return A._asyncStartSync($async$call$0, $async$completer);
  59146. },
  59147. $signature: 38
  59148. };
  59149. A._EvaluateVisitor__visitDynamicImport__closure3.prototype = {
  59150. call$1(previousLoad) {
  59151. return this.$this._async_evaluate$_multiSpanException$3("This file is already being loaded.", "new load", A.LinkedHashMap_LinkedHashMap$_literal([previousLoad.get$span(previousLoad), "original load"], type$.FileSpan, type$.String));
  59152. },
  59153. $signature: 94
  59154. };
  59155. A._EvaluateVisitor__visitDynamicImport__closure4.prototype = {
  59156. call$1(rule) {
  59157. return rule.url.get$scheme() !== "sass";
  59158. },
  59159. $signature: 234
  59160. };
  59161. A._EvaluateVisitor__visitDynamicImport__closure5.prototype = {
  59162. call$1(rule) {
  59163. return rule.url.get$scheme() !== "sass";
  59164. },
  59165. $signature: 235
  59166. };
  59167. A._EvaluateVisitor__visitDynamicImport__closure6.prototype = {
  59168. call$0() {
  59169. var $async$goto = 0,
  59170. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  59171. $async$self = this, t7, t8, t9, t1, oldImporter, t2, t3, t4, t5, oldOutOfOrderImports, oldConfiguration, oldInDependency, t6;
  59172. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  59173. if ($async$errorCode === 1)
  59174. return A._asyncRethrow($async$result, $async$completer);
  59175. while (true)
  59176. switch ($async$goto) {
  59177. case 0:
  59178. // Function start
  59179. t1 = $async$self.$this;
  59180. oldImporter = t1._async_evaluate$_importer;
  59181. t2 = t1._async_evaluate$_assertInModule$2(t1._async_evaluate$__stylesheet, "_stylesheet");
  59182. t3 = t1._async_evaluate$_assertInModule$2(t1._async_evaluate$__root, "_root");
  59183. t4 = t1._async_evaluate$_assertInModule$2(t1._async_evaluate$__parent, "__parent");
  59184. t5 = t1._async_evaluate$_assertInModule$2(t1._async_evaluate$__endOfImports, "_endOfImports");
  59185. oldOutOfOrderImports = t1._async_evaluate$_outOfOrderImports;
  59186. oldConfiguration = t1._async_evaluate$_configuration;
  59187. oldInDependency = t1._async_evaluate$_inDependency;
  59188. t6 = $async$self.result;
  59189. t1._async_evaluate$_importer = t6.importer;
  59190. t7 = t1._async_evaluate$__stylesheet = $async$self.stylesheet;
  59191. t8 = $async$self.loadsUserDefinedModules;
  59192. if (t8) {
  59193. t9 = A.ModifiableCssStylesheet$(t7.span);
  59194. t1._async_evaluate$__root = t9;
  59195. t1._async_evaluate$__parent = t1._async_evaluate$_assertInModule$2(t9, "_root");
  59196. t1._async_evaluate$__endOfImports = 0;
  59197. t1._async_evaluate$_outOfOrderImports = null;
  59198. }
  59199. t1._async_evaluate$_inDependency = t6.isDependency;
  59200. t6 = new A.UnmodifiableListView(t7._forwards, type$.UnmodifiableListView_ForwardRule);
  59201. if (!t6.get$isEmpty(t6))
  59202. t1._async_evaluate$_configuration = $async$self.environment.toImplicitConfiguration$0();
  59203. $async$goto = 2;
  59204. return A._asyncAwait(t1.visitStylesheet$1(t7), $async$call$0);
  59205. case 2:
  59206. // returning from await.
  59207. t6 = t8 ? t1._async_evaluate$_addOutOfOrderImports$0() : A._setArrayType([], type$.JSArray_ModifiableCssNode);
  59208. $async$self.children._value = t6;
  59209. t1._async_evaluate$_importer = oldImporter;
  59210. t1._async_evaluate$__stylesheet = t2;
  59211. if (t8) {
  59212. t1._async_evaluate$__root = t3;
  59213. t1._async_evaluate$__parent = t4;
  59214. t1._async_evaluate$__endOfImports = t5;
  59215. t1._async_evaluate$_outOfOrderImports = oldOutOfOrderImports;
  59216. }
  59217. t1._async_evaluate$_configuration = oldConfiguration;
  59218. t1._async_evaluate$_inDependency = oldInDependency;
  59219. // implicit return
  59220. return A._asyncReturn(null, $async$completer);
  59221. }
  59222. });
  59223. return A._asyncStartSync($async$call$0, $async$completer);
  59224. },
  59225. $signature: 2
  59226. };
  59227. A._EvaluateVisitor_visitIncludeRule_closure3.prototype = {
  59228. call$0() {
  59229. var t1 = this.node;
  59230. return this.$this._async_evaluate$_environment.getMixin$2$namespace(t1.name, t1.namespace);
  59231. },
  59232. $signature: 135
  59233. };
  59234. A._EvaluateVisitor_visitIncludeRule_closure4.prototype = {
  59235. call$0() {
  59236. return this.node.get$spanWithoutContent();
  59237. },
  59238. $signature: 31
  59239. };
  59240. A._EvaluateVisitor_visitIncludeRule_closure6.prototype = {
  59241. call$1($content) {
  59242. var t1 = this.$this;
  59243. return new A.UserDefinedCallable($content, t1._async_evaluate$_environment.closure$0(), t1._async_evaluate$_inDependency, type$.UserDefinedCallable_AsyncEnvironment);
  59244. },
  59245. $signature: 283
  59246. };
  59247. A._EvaluateVisitor_visitIncludeRule_closure5.prototype = {
  59248. call$0() {
  59249. var $async$goto = 0,
  59250. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  59251. $async$self = this, t1;
  59252. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  59253. if ($async$errorCode === 1)
  59254. return A._asyncRethrow($async$result, $async$completer);
  59255. while (true)
  59256. switch ($async$goto) {
  59257. case 0:
  59258. // Function start
  59259. t1 = $async$self.$this;
  59260. $async$goto = 2;
  59261. return A._asyncAwait(t1._async_evaluate$_environment.withContent$2($async$self.contentCallable, new A._EvaluateVisitor_visitIncludeRule__closure0(t1, $async$self.mixin, $async$self.nodeWithSpan)), $async$call$0);
  59262. case 2:
  59263. // returning from await.
  59264. // implicit return
  59265. return A._asyncReturn(null, $async$completer);
  59266. }
  59267. });
  59268. return A._asyncStartSync($async$call$0, $async$completer);
  59269. },
  59270. $signature: 2
  59271. };
  59272. A._EvaluateVisitor_visitIncludeRule__closure0.prototype = {
  59273. call$0() {
  59274. var $async$goto = 0,
  59275. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  59276. $async$self = this, t1;
  59277. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  59278. if ($async$errorCode === 1)
  59279. return A._asyncRethrow($async$result, $async$completer);
  59280. while (true)
  59281. switch ($async$goto) {
  59282. case 0:
  59283. // Function start
  59284. t1 = $async$self.$this;
  59285. $async$goto = 2;
  59286. return A._asyncAwait(t1._async_evaluate$_environment.asMixin$1(new A._EvaluateVisitor_visitIncludeRule___closure0(t1, $async$self.mixin, $async$self.nodeWithSpan)), $async$call$0);
  59287. case 2:
  59288. // returning from await.
  59289. // implicit return
  59290. return A._asyncReturn(null, $async$completer);
  59291. }
  59292. });
  59293. return A._asyncStartSync($async$call$0, $async$completer);
  59294. },
  59295. $signature: 38
  59296. };
  59297. A._EvaluateVisitor_visitIncludeRule___closure0.prototype = {
  59298. call$0() {
  59299. var $async$goto = 0,
  59300. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  59301. $async$self = this, t1, t2, t3, t4, t5, _i;
  59302. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  59303. if ($async$errorCode === 1)
  59304. return A._asyncRethrow($async$result, $async$completer);
  59305. while (true)
  59306. switch ($async$goto) {
  59307. case 0:
  59308. // Function start
  59309. t1 = $async$self.mixin.declaration.children, t2 = t1.length, t3 = $async$self.$this, t4 = $async$self.nodeWithSpan, t5 = type$.nullable_Value, _i = 0;
  59310. case 2:
  59311. // for condition
  59312. if (!(_i < t2)) {
  59313. // goto after for
  59314. $async$goto = 4;
  59315. break;
  59316. }
  59317. $async$goto = 5;
  59318. return A._asyncAwait(t3._async_evaluate$_addErrorSpan$1$2(t4, new A._EvaluateVisitor_visitIncludeRule____closure0(t3, t1[_i]), t5), $async$call$0);
  59319. case 5:
  59320. // returning from await.
  59321. case 3:
  59322. // for update
  59323. ++_i;
  59324. // goto for condition
  59325. $async$goto = 2;
  59326. break;
  59327. case 4:
  59328. // after for
  59329. // implicit return
  59330. return A._asyncReturn(null, $async$completer);
  59331. }
  59332. });
  59333. return A._asyncStartSync($async$call$0, $async$completer);
  59334. },
  59335. $signature: 38
  59336. };
  59337. A._EvaluateVisitor_visitIncludeRule____closure0.prototype = {
  59338. call$0() {
  59339. return this.statement.accept$1(this.$this);
  59340. },
  59341. $signature: 67
  59342. };
  59343. A._EvaluateVisitor_visitMediaRule_closure2.prototype = {
  59344. call$1(mediaQueries) {
  59345. return this.$this._async_evaluate$_mergeMediaQueries$2(mediaQueries, this.queries);
  59346. },
  59347. $signature: 97
  59348. };
  59349. A._EvaluateVisitor_visitMediaRule_closure3.prototype = {
  59350. call$0() {
  59351. var $async$goto = 0,
  59352. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  59353. $async$self = this, t1, t2;
  59354. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  59355. if ($async$errorCode === 1)
  59356. return A._asyncRethrow($async$result, $async$completer);
  59357. while (true)
  59358. switch ($async$goto) {
  59359. case 0:
  59360. // Function start
  59361. t1 = $async$self.$this;
  59362. t2 = $async$self.mergedQueries;
  59363. if (t2 == null)
  59364. t2 = $async$self.queries;
  59365. $async$goto = 2;
  59366. return A._asyncAwait(t1._async_evaluate$_withMediaQueries$1$3(t2, $async$self.mergedSources, new A._EvaluateVisitor_visitMediaRule__closure0(t1, $async$self.node), type$.Null), $async$call$0);
  59367. case 2:
  59368. // returning from await.
  59369. // implicit return
  59370. return A._asyncReturn(null, $async$completer);
  59371. }
  59372. });
  59373. return A._asyncStartSync($async$call$0, $async$completer);
  59374. },
  59375. $signature: 2
  59376. };
  59377. A._EvaluateVisitor_visitMediaRule__closure0.prototype = {
  59378. call$0() {
  59379. var $async$goto = 0,
  59380. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  59381. $async$self = this, t2, t3, _i, t1, styleRule;
  59382. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  59383. if ($async$errorCode === 1)
  59384. return A._asyncRethrow($async$result, $async$completer);
  59385. while (true)
  59386. switch ($async$goto) {
  59387. case 0:
  59388. // Function start
  59389. t1 = $async$self.$this;
  59390. styleRule = t1._async_evaluate$_atRootExcludingStyleRule ? null : t1._async_evaluate$_styleRuleIgnoringAtRoot;
  59391. $async$goto = styleRule == null ? 2 : 4;
  59392. break;
  59393. case 2:
  59394. // then
  59395. t2 = $async$self.node.children, t3 = t2.length, _i = 0;
  59396. case 5:
  59397. // for condition
  59398. if (!(_i < t3)) {
  59399. // goto after for
  59400. $async$goto = 7;
  59401. break;
  59402. }
  59403. $async$goto = 8;
  59404. return A._asyncAwait(t2[_i].accept$1(t1), $async$call$0);
  59405. case 8:
  59406. // returning from await.
  59407. case 6:
  59408. // for update
  59409. ++_i;
  59410. // goto for condition
  59411. $async$goto = 5;
  59412. break;
  59413. case 7:
  59414. // after for
  59415. // goto join
  59416. $async$goto = 3;
  59417. break;
  59418. case 4:
  59419. // else
  59420. $async$goto = 9;
  59421. return A._asyncAwait(t1._async_evaluate$_withParent$2$3$scopeWhen(A.ModifiableCssStyleRule$(styleRule.selector, styleRule.span, styleRule.originalSelector), new A._EvaluateVisitor_visitMediaRule___closure0(t1, $async$self.node), false, type$.ModifiableCssStyleRule, type$.Null), $async$call$0);
  59422. case 9:
  59423. // returning from await.
  59424. case 3:
  59425. // join
  59426. // implicit return
  59427. return A._asyncReturn(null, $async$completer);
  59428. }
  59429. });
  59430. return A._asyncStartSync($async$call$0, $async$completer);
  59431. },
  59432. $signature: 2
  59433. };
  59434. A._EvaluateVisitor_visitMediaRule___closure0.prototype = {
  59435. call$0() {
  59436. var $async$goto = 0,
  59437. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  59438. $async$self = this, t1, t2, t3, _i;
  59439. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  59440. if ($async$errorCode === 1)
  59441. return A._asyncRethrow($async$result, $async$completer);
  59442. while (true)
  59443. switch ($async$goto) {
  59444. case 0:
  59445. // Function start
  59446. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  59447. case 2:
  59448. // for condition
  59449. if (!(_i < t2)) {
  59450. // goto after for
  59451. $async$goto = 4;
  59452. break;
  59453. }
  59454. $async$goto = 5;
  59455. return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  59456. case 5:
  59457. // returning from await.
  59458. case 3:
  59459. // for update
  59460. ++_i;
  59461. // goto for condition
  59462. $async$goto = 2;
  59463. break;
  59464. case 4:
  59465. // after for
  59466. // implicit return
  59467. return A._asyncReturn(null, $async$completer);
  59468. }
  59469. });
  59470. return A._asyncStartSync($async$call$0, $async$completer);
  59471. },
  59472. $signature: 2
  59473. };
  59474. A._EvaluateVisitor_visitMediaRule_closure4.prototype = {
  59475. call$1(node) {
  59476. var t1;
  59477. if (!type$.CssStyleRule._is(node)) {
  59478. t1 = this.mergedSources;
  59479. t1 = t1.get$isNotEmpty(t1) && type$.CssMediaRule._is(node) && B.JSArray_methods.every$1(node.queries, t1.get$contains(t1));
  59480. } else
  59481. t1 = true;
  59482. return t1;
  59483. },
  59484. $signature: 7
  59485. };
  59486. A._EvaluateVisitor__visitMediaQueries_closure0.prototype = {
  59487. call$0() {
  59488. var t1 = A.SpanScanner$(this.resolved, null);
  59489. return new A.MediaQueryParser(t1, this.$this._async_evaluate$_logger).parse$0();
  59490. },
  59491. $signature: 120
  59492. };
  59493. A._EvaluateVisitor_visitStyleRule_closure7.prototype = {
  59494. call$0() {
  59495. var t1 = this.selectorText;
  59496. return A.KeyframeSelectorParser$(t1.get$value(t1), this.$this._async_evaluate$_logger).parse$0();
  59497. },
  59498. $signature: 50
  59499. };
  59500. A._EvaluateVisitor_visitStyleRule_closure8.prototype = {
  59501. call$0() {
  59502. var $async$goto = 0,
  59503. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  59504. $async$self = this, t1, t2, t3, _i;
  59505. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  59506. if ($async$errorCode === 1)
  59507. return A._asyncRethrow($async$result, $async$completer);
  59508. while (true)
  59509. switch ($async$goto) {
  59510. case 0:
  59511. // Function start
  59512. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  59513. case 2:
  59514. // for condition
  59515. if (!(_i < t2)) {
  59516. // goto after for
  59517. $async$goto = 4;
  59518. break;
  59519. }
  59520. $async$goto = 5;
  59521. return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  59522. case 5:
  59523. // returning from await.
  59524. case 3:
  59525. // for update
  59526. ++_i;
  59527. // goto for condition
  59528. $async$goto = 2;
  59529. break;
  59530. case 4:
  59531. // after for
  59532. // implicit return
  59533. return A._asyncReturn(null, $async$completer);
  59534. }
  59535. });
  59536. return A._asyncStartSync($async$call$0, $async$completer);
  59537. },
  59538. $signature: 2
  59539. };
  59540. A._EvaluateVisitor_visitStyleRule_closure9.prototype = {
  59541. call$1(node) {
  59542. return type$.CssStyleRule._is(node);
  59543. },
  59544. $signature: 7
  59545. };
  59546. A._EvaluateVisitor_visitStyleRule_closure10.prototype = {
  59547. call$0() {
  59548. var _s11_ = "_stylesheet",
  59549. t1 = this.selectorText,
  59550. t2 = this.$this;
  59551. return A.SelectorList_SelectorList$parse(t1.get$value(t1), !t2._async_evaluate$_assertInModule$2(t2._async_evaluate$__stylesheet, _s11_).plainCss, !t2._async_evaluate$_assertInModule$2(t2._async_evaluate$__stylesheet, _s11_).plainCss, t2._async_evaluate$_logger);
  59552. },
  59553. $signature: 44
  59554. };
  59555. A._EvaluateVisitor_visitStyleRule_closure11.prototype = {
  59556. call$0() {
  59557. var t1 = this._box_0.parsedSelector,
  59558. t2 = this.$this,
  59559. t3 = t2._async_evaluate$_styleRuleIgnoringAtRoot;
  59560. t3 = t3 == null ? null : t3.originalSelector;
  59561. return t1.resolveParentSelectors$2$implicitParent(t3, !t2._async_evaluate$_atRootExcludingStyleRule);
  59562. },
  59563. $signature: 44
  59564. };
  59565. A._EvaluateVisitor_visitStyleRule_closure12.prototype = {
  59566. call$0() {
  59567. var $async$goto = 0,
  59568. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  59569. $async$self = this, t1;
  59570. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  59571. if ($async$errorCode === 1)
  59572. return A._asyncRethrow($async$result, $async$completer);
  59573. while (true)
  59574. switch ($async$goto) {
  59575. case 0:
  59576. // Function start
  59577. t1 = $async$self.$this;
  59578. $async$goto = 2;
  59579. return A._asyncAwait(t1._async_evaluate$_withStyleRule$1$2($async$self.rule, new A._EvaluateVisitor_visitStyleRule__closure0(t1, $async$self.node), type$.Null), $async$call$0);
  59580. case 2:
  59581. // returning from await.
  59582. // implicit return
  59583. return A._asyncReturn(null, $async$completer);
  59584. }
  59585. });
  59586. return A._asyncStartSync($async$call$0, $async$completer);
  59587. },
  59588. $signature: 2
  59589. };
  59590. A._EvaluateVisitor_visitStyleRule__closure0.prototype = {
  59591. call$0() {
  59592. var $async$goto = 0,
  59593. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  59594. $async$self = this, t1, t2, t3, _i;
  59595. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  59596. if ($async$errorCode === 1)
  59597. return A._asyncRethrow($async$result, $async$completer);
  59598. while (true)
  59599. switch ($async$goto) {
  59600. case 0:
  59601. // Function start
  59602. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  59603. case 2:
  59604. // for condition
  59605. if (!(_i < t2)) {
  59606. // goto after for
  59607. $async$goto = 4;
  59608. break;
  59609. }
  59610. $async$goto = 5;
  59611. return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  59612. case 5:
  59613. // returning from await.
  59614. case 3:
  59615. // for update
  59616. ++_i;
  59617. // goto for condition
  59618. $async$goto = 2;
  59619. break;
  59620. case 4:
  59621. // after for
  59622. // implicit return
  59623. return A._asyncReturn(null, $async$completer);
  59624. }
  59625. });
  59626. return A._asyncStartSync($async$call$0, $async$completer);
  59627. },
  59628. $signature: 2
  59629. };
  59630. A._EvaluateVisitor_visitStyleRule_closure13.prototype = {
  59631. call$1(node) {
  59632. return type$.CssStyleRule._is(node);
  59633. },
  59634. $signature: 7
  59635. };
  59636. A._EvaluateVisitor_visitStyleRule_closure14.prototype = {
  59637. call$1(child) {
  59638. return type$.CssComment._is(child);
  59639. },
  59640. $signature: 129
  59641. };
  59642. A._EvaluateVisitor_visitSupportsRule_closure1.prototype = {
  59643. call$0() {
  59644. var $async$goto = 0,
  59645. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  59646. $async$self = this, t2, t3, _i, t1, styleRule;
  59647. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  59648. if ($async$errorCode === 1)
  59649. return A._asyncRethrow($async$result, $async$completer);
  59650. while (true)
  59651. switch ($async$goto) {
  59652. case 0:
  59653. // Function start
  59654. t1 = $async$self.$this;
  59655. styleRule = t1._async_evaluate$_atRootExcludingStyleRule ? null : t1._async_evaluate$_styleRuleIgnoringAtRoot;
  59656. $async$goto = styleRule == null ? 2 : 4;
  59657. break;
  59658. case 2:
  59659. // then
  59660. t2 = $async$self.node.children, t3 = t2.length, _i = 0;
  59661. case 5:
  59662. // for condition
  59663. if (!(_i < t3)) {
  59664. // goto after for
  59665. $async$goto = 7;
  59666. break;
  59667. }
  59668. $async$goto = 8;
  59669. return A._asyncAwait(t2[_i].accept$1(t1), $async$call$0);
  59670. case 8:
  59671. // returning from await.
  59672. case 6:
  59673. // for update
  59674. ++_i;
  59675. // goto for condition
  59676. $async$goto = 5;
  59677. break;
  59678. case 7:
  59679. // after for
  59680. // goto join
  59681. $async$goto = 3;
  59682. break;
  59683. case 4:
  59684. // else
  59685. $async$goto = 9;
  59686. return A._asyncAwait(t1._async_evaluate$_withParent$2$2(A.ModifiableCssStyleRule$(styleRule.selector, styleRule.span, styleRule.originalSelector), new A._EvaluateVisitor_visitSupportsRule__closure0(t1, $async$self.node), type$.ModifiableCssStyleRule, type$.Null), $async$call$0);
  59687. case 9:
  59688. // returning from await.
  59689. case 3:
  59690. // join
  59691. // implicit return
  59692. return A._asyncReturn(null, $async$completer);
  59693. }
  59694. });
  59695. return A._asyncStartSync($async$call$0, $async$completer);
  59696. },
  59697. $signature: 2
  59698. };
  59699. A._EvaluateVisitor_visitSupportsRule__closure0.prototype = {
  59700. call$0() {
  59701. var $async$goto = 0,
  59702. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  59703. $async$self = this, t1, t2, t3, _i;
  59704. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  59705. if ($async$errorCode === 1)
  59706. return A._asyncRethrow($async$result, $async$completer);
  59707. while (true)
  59708. switch ($async$goto) {
  59709. case 0:
  59710. // Function start
  59711. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  59712. case 2:
  59713. // for condition
  59714. if (!(_i < t2)) {
  59715. // goto after for
  59716. $async$goto = 4;
  59717. break;
  59718. }
  59719. $async$goto = 5;
  59720. return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  59721. case 5:
  59722. // returning from await.
  59723. case 3:
  59724. // for update
  59725. ++_i;
  59726. // goto for condition
  59727. $async$goto = 2;
  59728. break;
  59729. case 4:
  59730. // after for
  59731. // implicit return
  59732. return A._asyncReturn(null, $async$completer);
  59733. }
  59734. });
  59735. return A._asyncStartSync($async$call$0, $async$completer);
  59736. },
  59737. $signature: 2
  59738. };
  59739. A._EvaluateVisitor_visitSupportsRule_closure2.prototype = {
  59740. call$1(node) {
  59741. return type$.CssStyleRule._is(node);
  59742. },
  59743. $signature: 7
  59744. };
  59745. A._EvaluateVisitor_visitVariableDeclaration_closure2.prototype = {
  59746. call$0() {
  59747. var t1 = this.override;
  59748. this.$this._async_evaluate$_environment.setVariable$4$global(this.node.name, t1.value, t1.assignmentNode, true);
  59749. },
  59750. $signature: 1
  59751. };
  59752. A._EvaluateVisitor_visitVariableDeclaration_closure3.prototype = {
  59753. call$0() {
  59754. var t1 = this.node;
  59755. return this.$this._async_evaluate$_environment.getVariable$2$namespace(t1.name, t1.namespace);
  59756. },
  59757. $signature: 39
  59758. };
  59759. A._EvaluateVisitor_visitVariableDeclaration_closure4.prototype = {
  59760. call$0() {
  59761. var t1 = this.$this,
  59762. t2 = this.node;
  59763. t1._async_evaluate$_environment.setVariable$5$global$namespace(t2.name, this.value, t1._async_evaluate$_expressionNode$1(t2.expression), t2.isGlobal, t2.namespace);
  59764. },
  59765. $signature: 1
  59766. };
  59767. A._EvaluateVisitor_visitUseRule_closure0.prototype = {
  59768. call$1(module) {
  59769. var t1 = this.node;
  59770. this.$this._async_evaluate$_environment.addModule$3$namespace(module, t1, t1.namespace);
  59771. },
  59772. $signature: 137
  59773. };
  59774. A._EvaluateVisitor_visitWarnRule_closure0.prototype = {
  59775. call$0() {
  59776. return this.node.expression.accept$1(this.$this);
  59777. },
  59778. $signature: 68
  59779. };
  59780. A._EvaluateVisitor_visitWhileRule_closure0.prototype = {
  59781. call$0() {
  59782. var $async$goto = 0,
  59783. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
  59784. $async$returnValue, $async$self = this, t1, t2, t3, result;
  59785. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  59786. if ($async$errorCode === 1)
  59787. return A._asyncRethrow($async$result, $async$completer);
  59788. while (true)
  59789. switch ($async$goto) {
  59790. case 0:
  59791. // Function start
  59792. t1 = $async$self.node, t2 = t1.condition, t3 = $async$self.$this, t1 = t1.children;
  59793. case 3:
  59794. // for condition
  59795. $async$goto = 5;
  59796. return A._asyncAwait(t2.accept$1(t3), $async$call$0);
  59797. case 5:
  59798. // returning from await.
  59799. if (!$async$result.get$isTruthy()) {
  59800. // goto after for
  59801. $async$goto = 4;
  59802. break;
  59803. }
  59804. $async$goto = 6;
  59805. return A._asyncAwait(t3._async_evaluate$_handleReturn$2(t1, new A._EvaluateVisitor_visitWhileRule__closure0(t3)), $async$call$0);
  59806. case 6:
  59807. // returning from await.
  59808. result = $async$result;
  59809. if (result != null) {
  59810. $async$returnValue = result;
  59811. // goto return
  59812. $async$goto = 1;
  59813. break;
  59814. }
  59815. // goto for condition
  59816. $async$goto = 3;
  59817. break;
  59818. case 4:
  59819. // after for
  59820. $async$returnValue = null;
  59821. // goto return
  59822. $async$goto = 1;
  59823. break;
  59824. case 1:
  59825. // return
  59826. return A._asyncReturn($async$returnValue, $async$completer);
  59827. }
  59828. });
  59829. return A._asyncStartSync($async$call$0, $async$completer);
  59830. },
  59831. $signature: 67
  59832. };
  59833. A._EvaluateVisitor_visitWhileRule__closure0.prototype = {
  59834. call$1(child) {
  59835. return child.accept$1(this.$this);
  59836. },
  59837. $signature: 96
  59838. };
  59839. A._EvaluateVisitor_visitBinaryOperationExpression_closure0.prototype = {
  59840. call$0() {
  59841. var $async$goto = 0,
  59842. $async$completer = A._makeAsyncAwaitCompleter(type$.Value),
  59843. $async$returnValue, $async$self = this, right, result, t1, t2, left, t3, $async$temp1;
  59844. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  59845. if ($async$errorCode === 1)
  59846. return A._asyncRethrow($async$result, $async$completer);
  59847. while (true)
  59848. switch ($async$goto) {
  59849. case 0:
  59850. // Function start
  59851. t1 = $async$self.node;
  59852. t2 = $async$self.$this;
  59853. $async$goto = 3;
  59854. return A._asyncAwait(t1.left.accept$1(t2), $async$call$0);
  59855. case 3:
  59856. // returning from await.
  59857. left = $async$result;
  59858. t3 = t1.operator;
  59859. case 4:
  59860. // switch
  59861. switch (t3) {
  59862. case B.BinaryOperator_axY:
  59863. // goto case
  59864. $async$goto = 6;
  59865. break;
  59866. case B.BinaryOperator_or_or_1_or:
  59867. // goto case
  59868. $async$goto = 7;
  59869. break;
  59870. case B.BinaryOperator_and_and_2_and:
  59871. // goto case
  59872. $async$goto = 8;
  59873. break;
  59874. case B.BinaryOperator_nZh:
  59875. // goto case
  59876. $async$goto = 9;
  59877. break;
  59878. case B.BinaryOperator_Vr9:
  59879. // goto case
  59880. $async$goto = 10;
  59881. break;
  59882. case B.BinaryOperator_cw1:
  59883. // goto case
  59884. $async$goto = 11;
  59885. break;
  59886. case B.BinaryOperator_Wma:
  59887. // goto case
  59888. $async$goto = 12;
  59889. break;
  59890. case B.BinaryOperator_apg:
  59891. // goto case
  59892. $async$goto = 13;
  59893. break;
  59894. case B.BinaryOperator_oqF:
  59895. // goto case
  59896. $async$goto = 14;
  59897. break;
  59898. case B.BinaryOperator_qbf:
  59899. // goto case
  59900. $async$goto = 15;
  59901. break;
  59902. case B.BinaryOperator_KlB:
  59903. // goto case
  59904. $async$goto = 16;
  59905. break;
  59906. case B.BinaryOperator_6pl:
  59907. // goto case
  59908. $async$goto = 17;
  59909. break;
  59910. case B.BinaryOperator_qpm:
  59911. // goto case
  59912. $async$goto = 18;
  59913. break;
  59914. case B.BinaryOperator_PHH:
  59915. // goto case
  59916. $async$goto = 19;
  59917. break;
  59918. default:
  59919. // goto default
  59920. $async$goto = 20;
  59921. break;
  59922. }
  59923. break;
  59924. case 6:
  59925. // case
  59926. $async$goto = 21;
  59927. return A._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  59928. case 21:
  59929. // returning from await.
  59930. right = $async$result;
  59931. $async$returnValue = new A.SassString(A.serializeValue(left, false, true) + "=" + A.serializeValue(right, false, true), false);
  59932. // goto return
  59933. $async$goto = 1;
  59934. break;
  59935. case 7:
  59936. // case
  59937. $async$goto = left.get$isTruthy() ? 22 : 24;
  59938. break;
  59939. case 22:
  59940. // then
  59941. $async$result = left;
  59942. // goto join
  59943. $async$goto = 23;
  59944. break;
  59945. case 24:
  59946. // else
  59947. $async$goto = 25;
  59948. return A._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  59949. case 25:
  59950. // returning from await.
  59951. case 23:
  59952. // join
  59953. $async$returnValue = $async$result;
  59954. // goto return
  59955. $async$goto = 1;
  59956. break;
  59957. case 8:
  59958. // case
  59959. $async$goto = left.get$isTruthy() ? 26 : 28;
  59960. break;
  59961. case 26:
  59962. // then
  59963. $async$goto = 29;
  59964. return A._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  59965. case 29:
  59966. // returning from await.
  59967. // goto join
  59968. $async$goto = 27;
  59969. break;
  59970. case 28:
  59971. // else
  59972. $async$result = left;
  59973. case 27:
  59974. // join
  59975. $async$returnValue = $async$result;
  59976. // goto return
  59977. $async$goto = 1;
  59978. break;
  59979. case 9:
  59980. // case
  59981. $async$temp1 = left;
  59982. $async$goto = 30;
  59983. return A._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  59984. case 30:
  59985. // returning from await.
  59986. $async$returnValue = $async$temp1.$eq(0, $async$result) ? B.SassBoolean_true : B.SassBoolean_false;
  59987. // goto return
  59988. $async$goto = 1;
  59989. break;
  59990. case 10:
  59991. // case
  59992. $async$temp1 = left;
  59993. $async$goto = 31;
  59994. return A._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  59995. case 31:
  59996. // returning from await.
  59997. $async$returnValue = !$async$temp1.$eq(0, $async$result) ? B.SassBoolean_true : B.SassBoolean_false;
  59998. // goto return
  59999. $async$goto = 1;
  60000. break;
  60001. case 11:
  60002. // case
  60003. $async$temp1 = left;
  60004. $async$goto = 32;
  60005. return A._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  60006. case 32:
  60007. // returning from await.
  60008. $async$returnValue = $async$temp1.greaterThan$1($async$result);
  60009. // goto return
  60010. $async$goto = 1;
  60011. break;
  60012. case 12:
  60013. // case
  60014. $async$temp1 = left;
  60015. $async$goto = 33;
  60016. return A._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  60017. case 33:
  60018. // returning from await.
  60019. $async$returnValue = $async$temp1.greaterThanOrEquals$1($async$result);
  60020. // goto return
  60021. $async$goto = 1;
  60022. break;
  60023. case 13:
  60024. // case
  60025. $async$temp1 = left;
  60026. $async$goto = 34;
  60027. return A._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  60028. case 34:
  60029. // returning from await.
  60030. $async$returnValue = $async$temp1.lessThan$1($async$result);
  60031. // goto return
  60032. $async$goto = 1;
  60033. break;
  60034. case 14:
  60035. // case
  60036. $async$temp1 = left;
  60037. $async$goto = 35;
  60038. return A._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  60039. case 35:
  60040. // returning from await.
  60041. $async$returnValue = $async$temp1.lessThanOrEquals$1($async$result);
  60042. // goto return
  60043. $async$goto = 1;
  60044. break;
  60045. case 15:
  60046. // case
  60047. $async$temp1 = left;
  60048. $async$goto = 36;
  60049. return A._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  60050. case 36:
  60051. // returning from await.
  60052. $async$returnValue = $async$temp1.plus$1($async$result);
  60053. // goto return
  60054. $async$goto = 1;
  60055. break;
  60056. case 16:
  60057. // case
  60058. $async$temp1 = left;
  60059. $async$goto = 37;
  60060. return A._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  60061. case 37:
  60062. // returning from await.
  60063. $async$returnValue = $async$temp1.minus$1($async$result);
  60064. // goto return
  60065. $async$goto = 1;
  60066. break;
  60067. case 17:
  60068. // case
  60069. $async$temp1 = left;
  60070. $async$goto = 38;
  60071. return A._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  60072. case 38:
  60073. // returning from await.
  60074. $async$returnValue = $async$temp1.times$1($async$result);
  60075. // goto return
  60076. $async$goto = 1;
  60077. break;
  60078. case 18:
  60079. // case
  60080. $async$goto = 39;
  60081. return A._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  60082. case 39:
  60083. // returning from await.
  60084. right = $async$result;
  60085. result = left.dividedBy$1(right);
  60086. if (t1.allowsSlash && left instanceof A.SassNumber && right instanceof A.SassNumber) {
  60087. $async$returnValue = type$.SassNumber._as(result).withSlash$2(left, right);
  60088. // goto return
  60089. $async$goto = 1;
  60090. break;
  60091. } else {
  60092. if (left instanceof A.SassNumber && right instanceof A.SassNumber)
  60093. t2._async_evaluate$_warn$3$deprecation(string$.Using__o + A.S(new A._EvaluateVisitor_visitBinaryOperationExpression_closure_recommendation0().call$1(t1)) + " or calc(" + t1.toString$0(0) + string$.x29x0a_Morx20, t1.get$span(t1), true);
  60094. $async$returnValue = result;
  60095. // goto return
  60096. $async$goto = 1;
  60097. break;
  60098. }
  60099. case 19:
  60100. // case
  60101. $async$temp1 = left;
  60102. $async$goto = 40;
  60103. return A._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  60104. case 40:
  60105. // returning from await.
  60106. $async$returnValue = $async$temp1.modulo$1($async$result);
  60107. // goto return
  60108. $async$goto = 1;
  60109. break;
  60110. case 20:
  60111. // default
  60112. throw A.wrapException(A.ArgumentError$("Unknown binary operator " + t3.toString$0(0) + ".", null));
  60113. case 5:
  60114. // after switch
  60115. case 1:
  60116. // return
  60117. return A._asyncReturn($async$returnValue, $async$completer);
  60118. }
  60119. });
  60120. return A._asyncStartSync($async$call$0, $async$completer);
  60121. },
  60122. $signature: 68
  60123. };
  60124. A._EvaluateVisitor_visitBinaryOperationExpression_closure_recommendation0.prototype = {
  60125. call$1(expression) {
  60126. if (expression instanceof A.BinaryOperationExpression && expression.operator === B.BinaryOperator_qpm)
  60127. return "math.div(" + A.S(this.call$1(expression.left)) + ", " + A.S(this.call$1(expression.right)) + ")";
  60128. else if (expression instanceof A.ParenthesizedExpression)
  60129. return expression.expression.toString$0(0);
  60130. else
  60131. return expression.toString$0(0);
  60132. },
  60133. $signature: 123
  60134. };
  60135. A._EvaluateVisitor_visitVariableExpression_closure0.prototype = {
  60136. call$0() {
  60137. var t1 = this.node;
  60138. return this.$this._async_evaluate$_environment.getVariable$2$namespace(t1.name, t1.namespace);
  60139. },
  60140. $signature: 39
  60141. };
  60142. A._EvaluateVisitor_visitUnaryOperationExpression_closure0.prototype = {
  60143. call$0() {
  60144. var _this = this,
  60145. t1 = _this.node.operator;
  60146. switch (t1) {
  60147. case B.UnaryOperator_gg4:
  60148. return _this.operand.unaryPlus$0();
  60149. case B.UnaryOperator_TLI:
  60150. return _this.operand.unaryMinus$0();
  60151. case B.UnaryOperator_Ix1:
  60152. return new A.SassString("/" + A.serializeValue(_this.operand, false, true), false);
  60153. case B.UnaryOperator_not_not_not:
  60154. return _this.operand.unaryNot$0();
  60155. default:
  60156. throw A.wrapException(A.StateError$("Unknown unary operator " + t1.toString$0(0) + "."));
  60157. }
  60158. },
  60159. $signature: 40
  60160. };
  60161. A._EvaluateVisitor__visitCalculationValue_closure0.prototype = {
  60162. call$0() {
  60163. var $async$goto = 0,
  60164. $async$completer = A._makeAsyncAwaitCompleter(type$.Object),
  60165. $async$returnValue, $async$self = this, t1, t2, t3, $async$temp1, $async$temp2, $async$temp3;
  60166. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  60167. if ($async$errorCode === 1)
  60168. return A._asyncRethrow($async$result, $async$completer);
  60169. while (true)
  60170. switch ($async$goto) {
  60171. case 0:
  60172. // Function start
  60173. t1 = $async$self.$this;
  60174. t2 = $async$self.node;
  60175. t3 = $async$self.inMinMax;
  60176. $async$temp1 = A;
  60177. $async$temp2 = t1._async_evaluate$_binaryOperatorToCalculationOperator$1(t2.operator);
  60178. $async$goto = 3;
  60179. return A._asyncAwait(t1._async_evaluate$_visitCalculationValue$2$inMinMax(t2.left, t3), $async$call$0);
  60180. case 3:
  60181. // returning from await.
  60182. $async$temp3 = $async$result;
  60183. $async$goto = 4;
  60184. return A._asyncAwait(t1._async_evaluate$_visitCalculationValue$2$inMinMax(t2.right, t3), $async$call$0);
  60185. case 4:
  60186. // returning from await.
  60187. $async$returnValue = $async$temp1.SassCalculation_operateInternal($async$temp2, $async$temp3, $async$result, t3, !t1._async_evaluate$_inSupportsDeclaration);
  60188. // goto return
  60189. $async$goto = 1;
  60190. break;
  60191. case 1:
  60192. // return
  60193. return A._asyncReturn($async$returnValue, $async$completer);
  60194. }
  60195. });
  60196. return A._asyncStartSync($async$call$0, $async$completer);
  60197. },
  60198. $signature: 241
  60199. };
  60200. A._EvaluateVisitor_visitListExpression_closure0.prototype = {
  60201. call$1(expression) {
  60202. return expression.accept$1(this.$this);
  60203. },
  60204. $signature: 280
  60205. };
  60206. A._EvaluateVisitor_visitFunctionExpression_closure1.prototype = {
  60207. call$0() {
  60208. var t1 = this.node;
  60209. return this.$this._async_evaluate$_getFunction$2$namespace(A.stringReplaceAllUnchecked(t1.originalName, "_", "-"), t1.namespace);
  60210. },
  60211. $signature: 135
  60212. };
  60213. A._EvaluateVisitor_visitFunctionExpression_closure2.prototype = {
  60214. call$0() {
  60215. var t1 = this.node;
  60216. return this.$this._async_evaluate$_runFunctionCallable$3(t1.$arguments, this._box_0.$function, t1);
  60217. },
  60218. $signature: 68
  60219. };
  60220. A._EvaluateVisitor_visitInterpolatedFunctionExpression_closure0.prototype = {
  60221. call$0() {
  60222. var t1 = this.node;
  60223. return this.$this._async_evaluate$_runFunctionCallable$3(t1.$arguments, this.$function, t1);
  60224. },
  60225. $signature: 68
  60226. };
  60227. A._EvaluateVisitor__runUserDefinedCallable_closure0.prototype = {
  60228. call$0() {
  60229. var _this = this,
  60230. t1 = _this.$this,
  60231. t2 = _this.callable,
  60232. t3 = _this.V;
  60233. return t1._async_evaluate$_withEnvironment$1$2(t2.environment.closure$0(), new A._EvaluateVisitor__runUserDefinedCallable__closure0(t1, _this.evaluated, t2, _this.nodeWithSpan, _this.run, t3), t3);
  60234. },
  60235. $signature() {
  60236. return this.V._eval$1("Future<0>()");
  60237. }
  60238. };
  60239. A._EvaluateVisitor__runUserDefinedCallable__closure0.prototype = {
  60240. call$0() {
  60241. var _this = this,
  60242. t1 = _this.$this,
  60243. t2 = _this.V;
  60244. return t1._async_evaluate$_environment.scope$1$1(new A._EvaluateVisitor__runUserDefinedCallable___closure0(t1, _this.evaluated, _this.callable, _this.nodeWithSpan, _this.run, t2), t2);
  60245. },
  60246. $signature() {
  60247. return this.V._eval$1("Future<0>()");
  60248. }
  60249. };
  60250. A._EvaluateVisitor__runUserDefinedCallable___closure0.prototype = {
  60251. call$0() {
  60252. return this.$call$body$_EvaluateVisitor__runUserDefinedCallable___closure(this.V);
  60253. },
  60254. $call$body$_EvaluateVisitor__runUserDefinedCallable___closure($async$type) {
  60255. var $async$goto = 0,
  60256. $async$completer = A._makeAsyncAwaitCompleter($async$type),
  60257. $async$returnValue, $async$self = this, declaredArguments, t7, minLength, t8, i, argument, t9, value, t10, t11, restArgument, rest, argumentList, result, t1, t2, t3, t4, t5, t6, $async$temp1;
  60258. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  60259. if ($async$errorCode === 1)
  60260. return A._asyncRethrow($async$result, $async$completer);
  60261. while (true)
  60262. switch ($async$goto) {
  60263. case 0:
  60264. // Function start
  60265. t1 = $async$self.$this;
  60266. t2 = $async$self.evaluated;
  60267. t3 = t2.positional;
  60268. t4 = t2.named;
  60269. t5 = $async$self.callable.declaration.$arguments;
  60270. t6 = $async$self.nodeWithSpan;
  60271. t1._async_evaluate$_verifyArguments$4(t3.length, t4, t5, t6);
  60272. declaredArguments = t5.$arguments;
  60273. t7 = declaredArguments.length;
  60274. minLength = Math.min(t3.length, t7);
  60275. for (t8 = t2.positionalNodes, i = 0; i < minLength; ++i)
  60276. t1._async_evaluate$_environment.setLocalVariable$3(declaredArguments[i].name, t3[i], t8[i]);
  60277. i = t3.length, t8 = t2.namedNodes;
  60278. case 3:
  60279. // for condition
  60280. if (!(i < t7)) {
  60281. // goto after for
  60282. $async$goto = 5;
  60283. break;
  60284. }
  60285. argument = declaredArguments[i];
  60286. t9 = argument.name;
  60287. value = t4.remove$1(0, t9);
  60288. $async$goto = value == null ? 6 : 7;
  60289. break;
  60290. case 6:
  60291. // then
  60292. t10 = argument.defaultValue;
  60293. $async$temp1 = t1;
  60294. $async$goto = 8;
  60295. return A._asyncAwait(t10.accept$1(t1), $async$call$0);
  60296. case 8:
  60297. // returning from await.
  60298. value = $async$temp1._async_evaluate$_withoutSlash$2($async$result, t1._async_evaluate$_expressionNode$1(t10));
  60299. case 7:
  60300. // join
  60301. t10 = t1._async_evaluate$_environment;
  60302. t11 = t8.$index(0, t9);
  60303. if (t11 == null) {
  60304. t11 = argument.defaultValue;
  60305. t11.toString;
  60306. t11 = t1._async_evaluate$_expressionNode$1(t11);
  60307. }
  60308. t10.setLocalVariable$3(t9, value, t11);
  60309. case 4:
  60310. // for update
  60311. ++i;
  60312. // goto for condition
  60313. $async$goto = 3;
  60314. break;
  60315. case 5:
  60316. // after for
  60317. restArgument = t5.restArgument;
  60318. if (restArgument != null) {
  60319. rest = t3.length > t7 ? B.JSArray_methods.sublist$1(t3, t7) : B.List_empty7;
  60320. t2 = t2.separator;
  60321. argumentList = A.SassArgumentList$(rest, t4, t2 === B.ListSeparator_undecided_null_undecided ? B.ListSeparator_rXA : t2);
  60322. t1._async_evaluate$_environment.setLocalVariable$3(restArgument, argumentList, t6);
  60323. } else
  60324. argumentList = null;
  60325. $async$goto = 9;
  60326. return A._asyncAwait($async$self.run.call$0(), $async$call$0);
  60327. case 9:
  60328. // returning from await.
  60329. result = $async$result;
  60330. if (argumentList == null) {
  60331. $async$returnValue = result;
  60332. // goto return
  60333. $async$goto = 1;
  60334. break;
  60335. }
  60336. t2 = t4.__js_helper$_length;
  60337. if (t2 === 0) {
  60338. $async$returnValue = result;
  60339. // goto return
  60340. $async$goto = 1;
  60341. break;
  60342. }
  60343. if (argumentList._wereKeywordsAccessed) {
  60344. $async$returnValue = result;
  60345. // goto return
  60346. $async$goto = 1;
  60347. break;
  60348. }
  60349. t3 = A._instanceType(t4)._eval$1("LinkedHashMapKeyIterable<1>");
  60350. throw A.wrapException(A.MultiSpanSassRuntimeException$("No " + A.pluralize("argument", t2, null) + " named " + A.toSentence(A.MappedIterable_MappedIterable(new A.LinkedHashMapKeyIterable(t4, t3), new A._EvaluateVisitor__runUserDefinedCallable____closure0(), t3._eval$1("Iterable.E"), type$.Object), "or") + ".", t6.get$span(t6), "invocation", A.LinkedHashMap_LinkedHashMap$_literal([t5.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), t1._async_evaluate$_stackTrace$1(t6.get$span(t6))));
  60351. case 1:
  60352. // return
  60353. return A._asyncReturn($async$returnValue, $async$completer);
  60354. }
  60355. });
  60356. return A._asyncStartSync($async$call$0, $async$completer);
  60357. },
  60358. $signature() {
  60359. return this.V._eval$1("Future<0>()");
  60360. }
  60361. };
  60362. A._EvaluateVisitor__runUserDefinedCallable____closure0.prototype = {
  60363. call$1($name) {
  60364. return "$" + $name;
  60365. },
  60366. $signature: 5
  60367. };
  60368. A._EvaluateVisitor__runFunctionCallable_closure0.prototype = {
  60369. call$0() {
  60370. var $async$goto = 0,
  60371. $async$completer = A._makeAsyncAwaitCompleter(type$.Value),
  60372. $async$returnValue, $async$self = this, t1, t2, t3, t4, _i, $returnValue;
  60373. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  60374. if ($async$errorCode === 1)
  60375. return A._asyncRethrow($async$result, $async$completer);
  60376. while (true)
  60377. switch ($async$goto) {
  60378. case 0:
  60379. // Function start
  60380. t1 = $async$self.callable.declaration, t2 = t1.children, t3 = t2.length, t4 = $async$self.$this, _i = 0;
  60381. case 3:
  60382. // for condition
  60383. if (!(_i < t3)) {
  60384. // goto after for
  60385. $async$goto = 5;
  60386. break;
  60387. }
  60388. $async$goto = 6;
  60389. return A._asyncAwait(t2[_i].accept$1(t4), $async$call$0);
  60390. case 6:
  60391. // returning from await.
  60392. $returnValue = $async$result;
  60393. if ($returnValue instanceof A.Value) {
  60394. $async$returnValue = $returnValue;
  60395. // goto return
  60396. $async$goto = 1;
  60397. break;
  60398. }
  60399. case 4:
  60400. // for update
  60401. ++_i;
  60402. // goto for condition
  60403. $async$goto = 3;
  60404. break;
  60405. case 5:
  60406. // after for
  60407. throw A.wrapException(t4._async_evaluate$_exception$2("Function finished without @return.", t1.span));
  60408. case 1:
  60409. // return
  60410. return A._asyncReturn($async$returnValue, $async$completer);
  60411. }
  60412. });
  60413. return A._asyncStartSync($async$call$0, $async$completer);
  60414. },
  60415. $signature: 68
  60416. };
  60417. A._EvaluateVisitor__runBuiltInCallable_closure1.prototype = {
  60418. call$0() {
  60419. return this.overload.verify$2(this.evaluated.positional.length, this.namedSet);
  60420. },
  60421. $signature: 0
  60422. };
  60423. A._EvaluateVisitor__runBuiltInCallable_closure2.prototype = {
  60424. call$1($name) {
  60425. return "$" + $name;
  60426. },
  60427. $signature: 5
  60428. };
  60429. A._EvaluateVisitor__evaluateArguments_closure3.prototype = {
  60430. call$1(value) {
  60431. return value;
  60432. },
  60433. $signature: 34
  60434. };
  60435. A._EvaluateVisitor__evaluateArguments_closure4.prototype = {
  60436. call$1(value) {
  60437. return this.$this._async_evaluate$_withoutSlash$2(value, this.restNodeForSpan);
  60438. },
  60439. $signature: 34
  60440. };
  60441. A._EvaluateVisitor__evaluateArguments_closure5.prototype = {
  60442. call$2(key, value) {
  60443. var _this = this,
  60444. t1 = _this.restNodeForSpan;
  60445. _this.named.$indexSet(0, key, _this.$this._async_evaluate$_withoutSlash$2(value, t1));
  60446. _this.namedNodes.$indexSet(0, key, t1);
  60447. },
  60448. $signature: 99
  60449. };
  60450. A._EvaluateVisitor__evaluateArguments_closure6.prototype = {
  60451. call$1(value) {
  60452. return value;
  60453. },
  60454. $signature: 34
  60455. };
  60456. A._EvaluateVisitor__evaluateMacroArguments_closure3.prototype = {
  60457. call$1(value) {
  60458. var t1 = this.restArgs;
  60459. return new A.ValueExpression(value, t1.get$span(t1));
  60460. },
  60461. $signature: 52
  60462. };
  60463. A._EvaluateVisitor__evaluateMacroArguments_closure4.prototype = {
  60464. call$1(value) {
  60465. var t1 = this.restArgs;
  60466. return new A.ValueExpression(this.$this._async_evaluate$_withoutSlash$2(value, this.restNodeForSpan), t1.get$span(t1));
  60467. },
  60468. $signature: 52
  60469. };
  60470. A._EvaluateVisitor__evaluateMacroArguments_closure5.prototype = {
  60471. call$2(key, value) {
  60472. var _this = this,
  60473. t1 = _this.restArgs;
  60474. _this.named.$indexSet(0, key, new A.ValueExpression(_this.$this._async_evaluate$_withoutSlash$2(value, _this.restNodeForSpan), t1.get$span(t1)));
  60475. },
  60476. $signature: 99
  60477. };
  60478. A._EvaluateVisitor__evaluateMacroArguments_closure6.prototype = {
  60479. call$1(value) {
  60480. var t1 = this.keywordRestArgs;
  60481. return new A.ValueExpression(this.$this._async_evaluate$_withoutSlash$2(value, this.keywordRestNodeForSpan), t1.get$span(t1));
  60482. },
  60483. $signature: 52
  60484. };
  60485. A._EvaluateVisitor__addRestMap_closure0.prototype = {
  60486. call$2(key, value) {
  60487. var t2, _this = this,
  60488. t1 = _this.$this;
  60489. if (key instanceof A.SassString)
  60490. _this.values.$indexSet(0, key._string$_text, _this.convert.call$1(t1._async_evaluate$_withoutSlash$2(value, _this.expressionNode)));
  60491. else {
  60492. t2 = _this.nodeWithSpan;
  60493. throw A.wrapException(t1._async_evaluate$_exception$2(string$.Variab_ + key.toString$0(0) + " is not a string in " + _this.map.toString$0(0) + ".", t2.get$span(t2)));
  60494. }
  60495. },
  60496. $signature: 59
  60497. };
  60498. A._EvaluateVisitor__verifyArguments_closure0.prototype = {
  60499. call$0() {
  60500. return this.$arguments.verify$2(this.positional, new A.MapKeySet(this.named, type$.MapKeySet_String));
  60501. },
  60502. $signature: 0
  60503. };
  60504. A._EvaluateVisitor_visitStringExpression_closure0.prototype = {
  60505. call$1(value) {
  60506. var $async$goto = 0,
  60507. $async$completer = A._makeAsyncAwaitCompleter(type$.String),
  60508. $async$returnValue, $async$self = this, t1, result;
  60509. var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  60510. if ($async$errorCode === 1)
  60511. return A._asyncRethrow($async$result, $async$completer);
  60512. while (true)
  60513. switch ($async$goto) {
  60514. case 0:
  60515. // Function start
  60516. if (typeof value == "string") {
  60517. $async$returnValue = value;
  60518. // goto return
  60519. $async$goto = 1;
  60520. break;
  60521. }
  60522. type$.Expression._as(value);
  60523. t1 = $async$self.$this;
  60524. $async$goto = 3;
  60525. return A._asyncAwait(value.accept$1(t1), $async$call$1);
  60526. case 3:
  60527. // returning from await.
  60528. result = $async$result;
  60529. $async$returnValue = result instanceof A.SassString ? result._string$_text : t1._async_evaluate$_serialize$3$quote(result, value, false);
  60530. // goto return
  60531. $async$goto = 1;
  60532. break;
  60533. case 1:
  60534. // return
  60535. return A._asyncReturn($async$returnValue, $async$completer);
  60536. }
  60537. });
  60538. return A._asyncStartSync($async$call$1, $async$completer);
  60539. },
  60540. $signature: 101
  60541. };
  60542. A._EvaluateVisitor_visitCssAtRule_closure1.prototype = {
  60543. call$0() {
  60544. var $async$goto = 0,
  60545. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  60546. $async$self = this, t1, t2, t3, t4;
  60547. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  60548. if ($async$errorCode === 1)
  60549. return A._asyncRethrow($async$result, $async$completer);
  60550. while (true)
  60551. switch ($async$goto) {
  60552. case 0:
  60553. // Function start
  60554. t1 = $async$self.node.children, t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this, t3 = A._instanceType(t1)._precomputed1;
  60555. case 2:
  60556. // for condition
  60557. if (!t1.moveNext$0()) {
  60558. // goto after for
  60559. $async$goto = 3;
  60560. break;
  60561. }
  60562. t4 = t1.__internal$_current;
  60563. $async$goto = 4;
  60564. return A._asyncAwait((t4 == null ? t3._as(t4) : t4).accept$1(t2), $async$call$0);
  60565. case 4:
  60566. // returning from await.
  60567. // goto for condition
  60568. $async$goto = 2;
  60569. break;
  60570. case 3:
  60571. // after for
  60572. // implicit return
  60573. return A._asyncReturn(null, $async$completer);
  60574. }
  60575. });
  60576. return A._asyncStartSync($async$call$0, $async$completer);
  60577. },
  60578. $signature: 2
  60579. };
  60580. A._EvaluateVisitor_visitCssAtRule_closure2.prototype = {
  60581. call$1(node) {
  60582. return type$.CssStyleRule._is(node);
  60583. },
  60584. $signature: 7
  60585. };
  60586. A._EvaluateVisitor_visitCssKeyframeBlock_closure1.prototype = {
  60587. call$0() {
  60588. var $async$goto = 0,
  60589. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  60590. $async$self = this, t1, t2, t3, t4;
  60591. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  60592. if ($async$errorCode === 1)
  60593. return A._asyncRethrow($async$result, $async$completer);
  60594. while (true)
  60595. switch ($async$goto) {
  60596. case 0:
  60597. // Function start
  60598. t1 = $async$self.node.children, t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this, t3 = A._instanceType(t1)._precomputed1;
  60599. case 2:
  60600. // for condition
  60601. if (!t1.moveNext$0()) {
  60602. // goto after for
  60603. $async$goto = 3;
  60604. break;
  60605. }
  60606. t4 = t1.__internal$_current;
  60607. $async$goto = 4;
  60608. return A._asyncAwait((t4 == null ? t3._as(t4) : t4).accept$1(t2), $async$call$0);
  60609. case 4:
  60610. // returning from await.
  60611. // goto for condition
  60612. $async$goto = 2;
  60613. break;
  60614. case 3:
  60615. // after for
  60616. // implicit return
  60617. return A._asyncReturn(null, $async$completer);
  60618. }
  60619. });
  60620. return A._asyncStartSync($async$call$0, $async$completer);
  60621. },
  60622. $signature: 2
  60623. };
  60624. A._EvaluateVisitor_visitCssKeyframeBlock_closure2.prototype = {
  60625. call$1(node) {
  60626. return type$.CssStyleRule._is(node);
  60627. },
  60628. $signature: 7
  60629. };
  60630. A._EvaluateVisitor_visitCssMediaRule_closure2.prototype = {
  60631. call$1(mediaQueries) {
  60632. return this.$this._async_evaluate$_mergeMediaQueries$2(mediaQueries, this.node.queries);
  60633. },
  60634. $signature: 97
  60635. };
  60636. A._EvaluateVisitor_visitCssMediaRule_closure3.prototype = {
  60637. call$0() {
  60638. var $async$goto = 0,
  60639. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  60640. $async$self = this, t1, t2;
  60641. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  60642. if ($async$errorCode === 1)
  60643. return A._asyncRethrow($async$result, $async$completer);
  60644. while (true)
  60645. switch ($async$goto) {
  60646. case 0:
  60647. // Function start
  60648. t1 = $async$self.$this;
  60649. t2 = $async$self.mergedQueries;
  60650. if (t2 == null)
  60651. t2 = $async$self.node.queries;
  60652. $async$goto = 2;
  60653. return A._asyncAwait(t1._async_evaluate$_withMediaQueries$1$3(t2, $async$self.mergedSources, new A._EvaluateVisitor_visitCssMediaRule__closure0(t1, $async$self.node), type$.Null), $async$call$0);
  60654. case 2:
  60655. // returning from await.
  60656. // implicit return
  60657. return A._asyncReturn(null, $async$completer);
  60658. }
  60659. });
  60660. return A._asyncStartSync($async$call$0, $async$completer);
  60661. },
  60662. $signature: 2
  60663. };
  60664. A._EvaluateVisitor_visitCssMediaRule__closure0.prototype = {
  60665. call$0() {
  60666. var $async$goto = 0,
  60667. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  60668. $async$self = this, t2, t3, t4, t1, styleRule;
  60669. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  60670. if ($async$errorCode === 1)
  60671. return A._asyncRethrow($async$result, $async$completer);
  60672. while (true)
  60673. switch ($async$goto) {
  60674. case 0:
  60675. // Function start
  60676. t1 = $async$self.$this;
  60677. styleRule = t1._async_evaluate$_atRootExcludingStyleRule ? null : t1._async_evaluate$_styleRuleIgnoringAtRoot;
  60678. $async$goto = styleRule == null ? 2 : 4;
  60679. break;
  60680. case 2:
  60681. // then
  60682. t2 = $async$self.node.children, t2 = new A.ListIterator(t2, t2.get$length(t2)), t3 = A._instanceType(t2)._precomputed1;
  60683. case 5:
  60684. // for condition
  60685. if (!t2.moveNext$0()) {
  60686. // goto after for
  60687. $async$goto = 6;
  60688. break;
  60689. }
  60690. t4 = t2.__internal$_current;
  60691. $async$goto = 7;
  60692. return A._asyncAwait((t4 == null ? t3._as(t4) : t4).accept$1(t1), $async$call$0);
  60693. case 7:
  60694. // returning from await.
  60695. // goto for condition
  60696. $async$goto = 5;
  60697. break;
  60698. case 6:
  60699. // after for
  60700. // goto join
  60701. $async$goto = 3;
  60702. break;
  60703. case 4:
  60704. // else
  60705. $async$goto = 8;
  60706. return A._asyncAwait(t1._async_evaluate$_withParent$2$3$scopeWhen(A.ModifiableCssStyleRule$(styleRule.selector, styleRule.span, styleRule.originalSelector), new A._EvaluateVisitor_visitCssMediaRule___closure0(t1, $async$self.node), false, type$.ModifiableCssStyleRule, type$.Null), $async$call$0);
  60707. case 8:
  60708. // returning from await.
  60709. case 3:
  60710. // join
  60711. // implicit return
  60712. return A._asyncReturn(null, $async$completer);
  60713. }
  60714. });
  60715. return A._asyncStartSync($async$call$0, $async$completer);
  60716. },
  60717. $signature: 2
  60718. };
  60719. A._EvaluateVisitor_visitCssMediaRule___closure0.prototype = {
  60720. call$0() {
  60721. var $async$goto = 0,
  60722. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  60723. $async$self = this, t1, t2, t3, t4;
  60724. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  60725. if ($async$errorCode === 1)
  60726. return A._asyncRethrow($async$result, $async$completer);
  60727. while (true)
  60728. switch ($async$goto) {
  60729. case 0:
  60730. // Function start
  60731. t1 = $async$self.node.children, t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this, t3 = A._instanceType(t1)._precomputed1;
  60732. case 2:
  60733. // for condition
  60734. if (!t1.moveNext$0()) {
  60735. // goto after for
  60736. $async$goto = 3;
  60737. break;
  60738. }
  60739. t4 = t1.__internal$_current;
  60740. $async$goto = 4;
  60741. return A._asyncAwait((t4 == null ? t3._as(t4) : t4).accept$1(t2), $async$call$0);
  60742. case 4:
  60743. // returning from await.
  60744. // goto for condition
  60745. $async$goto = 2;
  60746. break;
  60747. case 3:
  60748. // after for
  60749. // implicit return
  60750. return A._asyncReturn(null, $async$completer);
  60751. }
  60752. });
  60753. return A._asyncStartSync($async$call$0, $async$completer);
  60754. },
  60755. $signature: 2
  60756. };
  60757. A._EvaluateVisitor_visitCssMediaRule_closure4.prototype = {
  60758. call$1(node) {
  60759. var t1;
  60760. if (!type$.CssStyleRule._is(node)) {
  60761. t1 = this.mergedSources;
  60762. t1 = t1.get$isNotEmpty(t1) && type$.CssMediaRule._is(node) && B.JSArray_methods.every$1(node.queries, t1.get$contains(t1));
  60763. } else
  60764. t1 = true;
  60765. return t1;
  60766. },
  60767. $signature: 7
  60768. };
  60769. A._EvaluateVisitor_visitCssStyleRule_closure1.prototype = {
  60770. call$0() {
  60771. var $async$goto = 0,
  60772. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  60773. $async$self = this, t1;
  60774. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  60775. if ($async$errorCode === 1)
  60776. return A._asyncRethrow($async$result, $async$completer);
  60777. while (true)
  60778. switch ($async$goto) {
  60779. case 0:
  60780. // Function start
  60781. t1 = $async$self.$this;
  60782. $async$goto = 2;
  60783. return A._asyncAwait(t1._async_evaluate$_withStyleRule$1$2($async$self.rule, new A._EvaluateVisitor_visitCssStyleRule__closure0(t1, $async$self.node), type$.Null), $async$call$0);
  60784. case 2:
  60785. // returning from await.
  60786. // implicit return
  60787. return A._asyncReturn(null, $async$completer);
  60788. }
  60789. });
  60790. return A._asyncStartSync($async$call$0, $async$completer);
  60791. },
  60792. $signature: 2
  60793. };
  60794. A._EvaluateVisitor_visitCssStyleRule__closure0.prototype = {
  60795. call$0() {
  60796. var $async$goto = 0,
  60797. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  60798. $async$self = this, t1, t2, t3, t4;
  60799. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  60800. if ($async$errorCode === 1)
  60801. return A._asyncRethrow($async$result, $async$completer);
  60802. while (true)
  60803. switch ($async$goto) {
  60804. case 0:
  60805. // Function start
  60806. t1 = $async$self.node.children, t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this, t3 = A._instanceType(t1)._precomputed1;
  60807. case 2:
  60808. // for condition
  60809. if (!t1.moveNext$0()) {
  60810. // goto after for
  60811. $async$goto = 3;
  60812. break;
  60813. }
  60814. t4 = t1.__internal$_current;
  60815. $async$goto = 4;
  60816. return A._asyncAwait((t4 == null ? t3._as(t4) : t4).accept$1(t2), $async$call$0);
  60817. case 4:
  60818. // returning from await.
  60819. // goto for condition
  60820. $async$goto = 2;
  60821. break;
  60822. case 3:
  60823. // after for
  60824. // implicit return
  60825. return A._asyncReturn(null, $async$completer);
  60826. }
  60827. });
  60828. return A._asyncStartSync($async$call$0, $async$completer);
  60829. },
  60830. $signature: 2
  60831. };
  60832. A._EvaluateVisitor_visitCssStyleRule_closure2.prototype = {
  60833. call$1(node) {
  60834. return type$.CssStyleRule._is(node);
  60835. },
  60836. $signature: 7
  60837. };
  60838. A._EvaluateVisitor_visitCssSupportsRule_closure1.prototype = {
  60839. call$0() {
  60840. var $async$goto = 0,
  60841. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  60842. $async$self = this, t2, t3, t4, t1, styleRule;
  60843. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  60844. if ($async$errorCode === 1)
  60845. return A._asyncRethrow($async$result, $async$completer);
  60846. while (true)
  60847. switch ($async$goto) {
  60848. case 0:
  60849. // Function start
  60850. t1 = $async$self.$this;
  60851. styleRule = t1._async_evaluate$_atRootExcludingStyleRule ? null : t1._async_evaluate$_styleRuleIgnoringAtRoot;
  60852. $async$goto = styleRule == null ? 2 : 4;
  60853. break;
  60854. case 2:
  60855. // then
  60856. t2 = $async$self.node.children, t2 = new A.ListIterator(t2, t2.get$length(t2)), t3 = A._instanceType(t2)._precomputed1;
  60857. case 5:
  60858. // for condition
  60859. if (!t2.moveNext$0()) {
  60860. // goto after for
  60861. $async$goto = 6;
  60862. break;
  60863. }
  60864. t4 = t2.__internal$_current;
  60865. $async$goto = 7;
  60866. return A._asyncAwait((t4 == null ? t3._as(t4) : t4).accept$1(t1), $async$call$0);
  60867. case 7:
  60868. // returning from await.
  60869. // goto for condition
  60870. $async$goto = 5;
  60871. break;
  60872. case 6:
  60873. // after for
  60874. // goto join
  60875. $async$goto = 3;
  60876. break;
  60877. case 4:
  60878. // else
  60879. $async$goto = 8;
  60880. return A._asyncAwait(t1._async_evaluate$_withParent$2$2(A.ModifiableCssStyleRule$(styleRule.selector, styleRule.span, styleRule.originalSelector), new A._EvaluateVisitor_visitCssSupportsRule__closure0(t1, $async$self.node), type$.ModifiableCssStyleRule, type$.Null), $async$call$0);
  60881. case 8:
  60882. // returning from await.
  60883. case 3:
  60884. // join
  60885. // implicit return
  60886. return A._asyncReturn(null, $async$completer);
  60887. }
  60888. });
  60889. return A._asyncStartSync($async$call$0, $async$completer);
  60890. },
  60891. $signature: 2
  60892. };
  60893. A._EvaluateVisitor_visitCssSupportsRule__closure0.prototype = {
  60894. call$0() {
  60895. var $async$goto = 0,
  60896. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  60897. $async$self = this, t1, t2, t3, t4;
  60898. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  60899. if ($async$errorCode === 1)
  60900. return A._asyncRethrow($async$result, $async$completer);
  60901. while (true)
  60902. switch ($async$goto) {
  60903. case 0:
  60904. // Function start
  60905. t1 = $async$self.node.children, t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this, t3 = A._instanceType(t1)._precomputed1;
  60906. case 2:
  60907. // for condition
  60908. if (!t1.moveNext$0()) {
  60909. // goto after for
  60910. $async$goto = 3;
  60911. break;
  60912. }
  60913. t4 = t1.__internal$_current;
  60914. $async$goto = 4;
  60915. return A._asyncAwait((t4 == null ? t3._as(t4) : t4).accept$1(t2), $async$call$0);
  60916. case 4:
  60917. // returning from await.
  60918. // goto for condition
  60919. $async$goto = 2;
  60920. break;
  60921. case 3:
  60922. // after for
  60923. // implicit return
  60924. return A._asyncReturn(null, $async$completer);
  60925. }
  60926. });
  60927. return A._asyncStartSync($async$call$0, $async$completer);
  60928. },
  60929. $signature: 2
  60930. };
  60931. A._EvaluateVisitor_visitCssSupportsRule_closure2.prototype = {
  60932. call$1(node) {
  60933. return type$.CssStyleRule._is(node);
  60934. },
  60935. $signature: 7
  60936. };
  60937. A._EvaluateVisitor__performInterpolation_closure0.prototype = {
  60938. call$1(value) {
  60939. var $async$goto = 0,
  60940. $async$completer = A._makeAsyncAwaitCompleter(type$.String),
  60941. $async$returnValue, $async$self = this, t1, result, t2, t3;
  60942. var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  60943. if ($async$errorCode === 1)
  60944. return A._asyncRethrow($async$result, $async$completer);
  60945. while (true)
  60946. switch ($async$goto) {
  60947. case 0:
  60948. // Function start
  60949. if (typeof value == "string") {
  60950. $async$returnValue = value;
  60951. // goto return
  60952. $async$goto = 1;
  60953. break;
  60954. }
  60955. type$.Expression._as(value);
  60956. t1 = $async$self.$this;
  60957. $async$goto = 3;
  60958. return A._asyncAwait(value.accept$1(t1), $async$call$1);
  60959. case 3:
  60960. // returning from await.
  60961. result = $async$result;
  60962. if ($async$self.warnForColor && result instanceof A.SassColor && $.$get$namesByColor().containsKey$1(result)) {
  60963. t2 = A.Interpolation$(A._setArrayType([""], type$.JSArray_Object), $async$self.interpolation.span);
  60964. t3 = $.$get$namesByColor();
  60965. t1._async_evaluate$_warn$2(string$.You_pr + A.S(t3.$index(0, result)) + string$.x20in_in + result.toString$0(0) + string$.x2c_whic + A.S(t3.$index(0, result)) + string$.x22x29__If + new A.BinaryOperationExpression(B.BinaryOperator_qbf, new A.StringExpression(t2, true), value, false).toString$0(0) + "'.", value.get$span(value));
  60966. }
  60967. $async$returnValue = t1._async_evaluate$_serialize$3$quote(result, value, false);
  60968. // goto return
  60969. $async$goto = 1;
  60970. break;
  60971. case 1:
  60972. // return
  60973. return A._asyncReturn($async$returnValue, $async$completer);
  60974. }
  60975. });
  60976. return A._asyncStartSync($async$call$1, $async$completer);
  60977. },
  60978. $signature: 101
  60979. };
  60980. A._EvaluateVisitor__serialize_closure0.prototype = {
  60981. call$0() {
  60982. return A.serializeValue(this.value, false, this.quote);
  60983. },
  60984. $signature: 30
  60985. };
  60986. A._EvaluateVisitor__expressionNode_closure0.prototype = {
  60987. call$0() {
  60988. var t1 = this.expression;
  60989. return this.$this._async_evaluate$_environment.getVariableNode$2$namespace(t1.name, t1.namespace);
  60990. },
  60991. $signature: 246
  60992. };
  60993. A._EvaluateVisitor__withoutSlash_recommendation0.prototype = {
  60994. call$1(number) {
  60995. var asSlash = number.asSlash;
  60996. if (asSlash != null)
  60997. return "math.div(" + A.S(this.call$1(asSlash.item1)) + ", " + A.S(this.call$1(asSlash.item2)) + ")";
  60998. else
  60999. return A.serializeValue(number, true, true);
  61000. },
  61001. $signature: 247
  61002. };
  61003. A._EvaluateVisitor__stackFrame_closure0.prototype = {
  61004. call$1(url) {
  61005. var t1 = this.$this._async_evaluate$_importCache;
  61006. t1 = t1 == null ? null : t1.humanize$1(url);
  61007. return t1 == null ? url : t1;
  61008. },
  61009. $signature: 102
  61010. };
  61011. A._EvaluateVisitor__stackTrace_closure0.prototype = {
  61012. call$1(tuple) {
  61013. return this.$this._async_evaluate$_stackFrame$2(tuple.item1, J.get$span$z(tuple.item2));
  61014. },
  61015. $signature: 249
  61016. };
  61017. A._ImportedCssVisitor0.prototype = {
  61018. visitCssAtRule$1(node) {
  61019. var t1 = node.isChildless ? null : new A._ImportedCssVisitor_visitCssAtRule_closure0();
  61020. this._async_evaluate$_visitor._async_evaluate$_addChild$2$through(node, t1);
  61021. },
  61022. visitCssComment$1(node) {
  61023. return this._async_evaluate$_visitor._async_evaluate$_addChild$1(node);
  61024. },
  61025. visitCssDeclaration$1(node) {
  61026. },
  61027. visitCssImport$1(node) {
  61028. var t2,
  61029. _s13_ = "_endOfImports",
  61030. t1 = this._async_evaluate$_visitor;
  61031. if (t1._async_evaluate$_assertInModule$2(t1._async_evaluate$__parent, "__parent") !== t1._async_evaluate$_assertInModule$2(t1._async_evaluate$__root, "_root"))
  61032. t1._async_evaluate$_addChild$1(node);
  61033. else if (t1._async_evaluate$_assertInModule$2(t1._async_evaluate$__endOfImports, _s13_) === J.get$length$asx(t1._async_evaluate$_assertInModule$2(t1._async_evaluate$__root, "_root").children._collection$_source)) {
  61034. t1._async_evaluate$_addChild$1(node);
  61035. t1._async_evaluate$__endOfImports = t1._async_evaluate$_assertInModule$2(t1._async_evaluate$__endOfImports, _s13_) + 1;
  61036. } else {
  61037. t2 = t1._async_evaluate$_outOfOrderImports;
  61038. (t2 == null ? t1._async_evaluate$_outOfOrderImports = A._setArrayType([], type$.JSArray_ModifiableCssImport) : t2).push(node);
  61039. }
  61040. },
  61041. visitCssKeyframeBlock$1(node) {
  61042. },
  61043. visitCssMediaRule$1(node) {
  61044. var t1 = this._async_evaluate$_visitor,
  61045. mediaQueries = t1._async_evaluate$_mediaQueries;
  61046. t1._async_evaluate$_addChild$2$through(node, new A._ImportedCssVisitor_visitCssMediaRule_closure0(mediaQueries == null || t1._async_evaluate$_mergeMediaQueries$2(mediaQueries, node.queries) != null));
  61047. },
  61048. visitCssStyleRule$1(node) {
  61049. return this._async_evaluate$_visitor._async_evaluate$_addChild$2$through(node, new A._ImportedCssVisitor_visitCssStyleRule_closure0());
  61050. },
  61051. visitCssStylesheet$1(node) {
  61052. var t1, t2, t3;
  61053. for (t1 = node.children, t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) {
  61054. t3 = t1.__internal$_current;
  61055. (t3 == null ? t2._as(t3) : t3).accept$1(this);
  61056. }
  61057. },
  61058. visitCssSupportsRule$1(node) {
  61059. return this._async_evaluate$_visitor._async_evaluate$_addChild$2$through(node, new A._ImportedCssVisitor_visitCssSupportsRule_closure0());
  61060. }
  61061. };
  61062. A._ImportedCssVisitor_visitCssAtRule_closure0.prototype = {
  61063. call$1(node) {
  61064. return type$.CssStyleRule._is(node);
  61065. },
  61066. $signature: 7
  61067. };
  61068. A._ImportedCssVisitor_visitCssMediaRule_closure0.prototype = {
  61069. call$1(node) {
  61070. var t1;
  61071. if (!type$.CssStyleRule._is(node))
  61072. t1 = this.hasBeenMerged && type$.CssMediaRule._is(node);
  61073. else
  61074. t1 = true;
  61075. return t1;
  61076. },
  61077. $signature: 7
  61078. };
  61079. A._ImportedCssVisitor_visitCssStyleRule_closure0.prototype = {
  61080. call$1(node) {
  61081. return type$.CssStyleRule._is(node);
  61082. },
  61083. $signature: 7
  61084. };
  61085. A._ImportedCssVisitor_visitCssSupportsRule_closure0.prototype = {
  61086. call$1(node) {
  61087. return type$.CssStyleRule._is(node);
  61088. },
  61089. $signature: 7
  61090. };
  61091. A.EvaluateResult.prototype = {};
  61092. A._EvaluationContext0.prototype = {
  61093. get$currentCallableSpan() {
  61094. var callableNode = this._async_evaluate$_visitor._async_evaluate$_callableNode;
  61095. if (callableNode != null)
  61096. return callableNode.get$span(callableNode);
  61097. throw A.wrapException(A.StateError$(string$.No_Sasc));
  61098. },
  61099. warn$2$deprecation(_, message, deprecation) {
  61100. var t1 = this._async_evaluate$_visitor,
  61101. t2 = t1._async_evaluate$_importSpan;
  61102. if (t2 == null) {
  61103. t2 = t1._async_evaluate$_callableNode;
  61104. t2 = t2 == null ? null : t2.get$span(t2);
  61105. }
  61106. t1._async_evaluate$_warn$3$deprecation(message, t2 == null ? this._async_evaluate$_defaultWarnNodeWithSpan.span : t2, deprecation);
  61107. },
  61108. $isEvaluationContext: 1
  61109. };
  61110. A._ArgumentResults0.prototype = {};
  61111. A._LoadedStylesheet0.prototype = {};
  61112. A._CloneCssVisitor.prototype = {
  61113. visitCssAtRule$1(node) {
  61114. var t1 = node.isChildless,
  61115. rule = A.ModifiableCssAtRule$(node.name, node.span, t1, node.value);
  61116. return t1 ? rule : this._visitChildren$2(rule, node);
  61117. },
  61118. visitCssComment$1(node) {
  61119. return new A.ModifiableCssComment(node.text, node.span);
  61120. },
  61121. visitCssDeclaration$1(node) {
  61122. return A.ModifiableCssDeclaration$(node.name, node.value, node.span, node.parsedAsCustomProperty, node.valueSpanForMap);
  61123. },
  61124. visitCssImport$1(node) {
  61125. return new A.ModifiableCssImport(node.url, node.modifiers, node.span);
  61126. },
  61127. visitCssKeyframeBlock$1(node) {
  61128. return this._visitChildren$2(A.ModifiableCssKeyframeBlock$(node.selector, node.span), node);
  61129. },
  61130. visitCssMediaRule$1(node) {
  61131. return this._visitChildren$2(A.ModifiableCssMediaRule$(node.queries, node.span), node);
  61132. },
  61133. visitCssStyleRule$1(node) {
  61134. var newSelector = this._oldToNewSelectors.$index(0, node.selector);
  61135. if (newSelector == null)
  61136. throw A.wrapException(A.StateError$(string$.The_Ex));
  61137. return this._visitChildren$2(A.ModifiableCssStyleRule$(newSelector, node.span, node.originalSelector), node);
  61138. },
  61139. visitCssStylesheet$1(node) {
  61140. return this._visitChildren$2(A.ModifiableCssStylesheet$(node.get$span(node)), node);
  61141. },
  61142. visitCssSupportsRule$1(node) {
  61143. return this._visitChildren$2(A.ModifiableCssSupportsRule$(node.condition, node.span), node);
  61144. },
  61145. _visitChildren$1$2(newParent, oldParent) {
  61146. var t1, t2, newChild;
  61147. for (t1 = J.get$iterator$ax(oldParent.get$children(oldParent)); t1.moveNext$0();) {
  61148. t2 = t1.get$current(t1);
  61149. newChild = t2.accept$1(this);
  61150. newChild.isGroupEnd = t2.get$isGroupEnd();
  61151. newParent.addChild$1(newChild);
  61152. }
  61153. return newParent;
  61154. },
  61155. _visitChildren$2(newParent, oldParent) {
  61156. return this._visitChildren$1$2(newParent, oldParent, type$.ModifiableCssParentNode);
  61157. }
  61158. };
  61159. A.Evaluator.prototype = {};
  61160. A._EvaluateVisitor.prototype = {
  61161. _EvaluateVisitor$6$functions$importCache$logger$nodeImporter$quietDeps$sourceMap(functions, importCache, logger, nodeImporter, quietDeps, sourceMap) {
  61162. var t2, metaModule, t3, _i, module, $function, t4, _this = this,
  61163. _s20_ = "$name, $module: null",
  61164. _s9_ = "sass:meta",
  61165. t1 = type$.JSArray_BuiltInCallable,
  61166. metaFunctions = A._setArrayType([A.BuiltInCallable$function("global-variable-exists", _s20_, new A._EvaluateVisitor_closure(_this), _s9_), A.BuiltInCallable$function("variable-exists", "$name", new A._EvaluateVisitor_closure0(_this), _s9_), A.BuiltInCallable$function("function-exists", _s20_, new A._EvaluateVisitor_closure1(_this), _s9_), A.BuiltInCallable$function("mixin-exists", _s20_, new A._EvaluateVisitor_closure2(_this), _s9_), A.BuiltInCallable$function("content-exists", "", new A._EvaluateVisitor_closure3(_this), _s9_), A.BuiltInCallable$function("module-variables", "$module", new A._EvaluateVisitor_closure4(_this), _s9_), A.BuiltInCallable$function("module-functions", "$module", new A._EvaluateVisitor_closure5(_this), _s9_), A.BuiltInCallable$function("get-function", "$name, $css: false, $module: null", new A._EvaluateVisitor_closure6(_this), _s9_), A.BuiltInCallable$function("call", "$function, $args...", new A._EvaluateVisitor_closure7(_this), _s9_)], t1),
  61167. metaMixins = A._setArrayType([A.BuiltInCallable$mixin("load-css", "$url, $with: null", new A._EvaluateVisitor_closure8(_this), _s9_)], t1);
  61168. t1 = type$.BuiltInCallable;
  61169. t2 = A.List_List$of($.$get$global(), true, t1);
  61170. B.JSArray_methods.addAll$1(t2, $.$get$local());
  61171. B.JSArray_methods.addAll$1(t2, metaFunctions);
  61172. metaModule = A.BuiltInModule$("meta", t2, metaMixins, null, t1);
  61173. for (t1 = A.List_List$of($.$get$coreModules(), true, type$.BuiltInModule_Callable), t1.push(metaModule), t2 = t1.length, t3 = _this._builtInModules, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
  61174. module = t1[_i];
  61175. t3.$indexSet(0, module.url, module);
  61176. }
  61177. t1 = A._setArrayType([], type$.JSArray_Callable);
  61178. B.JSArray_methods.addAll$1(t1, $.$get$globalFunctions());
  61179. B.JSArray_methods.addAll$1(t1, metaFunctions);
  61180. for (t2 = t1.length, t3 = _this._builtInFunctions, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
  61181. $function = t1[_i];
  61182. t4 = J.get$name$x($function);
  61183. t3.$indexSet(0, A.stringReplaceAllUnchecked(t4, "_", "-"), $function);
  61184. }
  61185. },
  61186. run$2(_, importer, node) {
  61187. var t1 = type$.nullable_Object;
  61188. return A.runZoned(new A._EvaluateVisitor_run_closure(this, node, importer), A.LinkedHashMap_LinkedHashMap$_literal([B.Symbol__evaluationContext, new A._EvaluationContext(this, node)], t1, t1), type$.EvaluateResult);
  61189. },
  61190. runExpression$2(importer, expression) {
  61191. var t1 = type$.nullable_Object;
  61192. return A.runZoned(new A._EvaluateVisitor_runExpression_closure(this, importer, expression), A.LinkedHashMap_LinkedHashMap$_literal([B.Symbol__evaluationContext, new A._EvaluationContext(this, expression)], t1, t1), type$.Value);
  61193. },
  61194. runStatement$2(importer, statement) {
  61195. var t1 = type$.nullable_Object;
  61196. return A.runZoned(new A._EvaluateVisitor_runStatement_closure(this, importer, statement), A.LinkedHashMap_LinkedHashMap$_literal([B.Symbol__evaluationContext, new A._EvaluationContext(this, statement)], t1, t1), type$.void);
  61197. },
  61198. _assertInModule$1$2(value, $name) {
  61199. if (value != null)
  61200. return value;
  61201. throw A.wrapException(A.StateError$("Can't access " + $name + " outside of a module."));
  61202. },
  61203. _assertInModule$2(value, $name) {
  61204. return this._assertInModule$1$2(value, $name, type$.dynamic);
  61205. },
  61206. _withFakeStylesheet$1$3(importer, nodeWithSpan, callback) {
  61207. var t1, _this = this,
  61208. oldImporter = _this._importer;
  61209. _this._importer = importer;
  61210. _this.__stylesheet = A.Stylesheet$(B.List_empty12, nodeWithSpan.get$span(nodeWithSpan));
  61211. try {
  61212. t1 = callback.call$0();
  61213. return t1;
  61214. } finally {
  61215. _this._importer = oldImporter;
  61216. _this.__stylesheet = null;
  61217. }
  61218. },
  61219. _withFakeStylesheet$3(importer, nodeWithSpan, callback) {
  61220. return this._withFakeStylesheet$1$3(importer, nodeWithSpan, callback, type$.dynamic);
  61221. },
  61222. _loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors) {
  61223. var t1, t2, _this = this,
  61224. builtInModule = _this._builtInModules.$index(0, url);
  61225. if (builtInModule != null) {
  61226. if (configuration instanceof A.ExplicitConfiguration) {
  61227. t1 = namesInErrors ? "Built-in module " + url.toString$0(0) + " can't be configured." : "Built-in modules can't be configured.";
  61228. t2 = configuration.nodeWithSpan;
  61229. throw A.wrapException(_this._evaluate$_exception$2(t1, t2.get$span(t2)));
  61230. }
  61231. _this._addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__loadModule_closure(callback, builtInModule));
  61232. return;
  61233. }
  61234. _this._withStackFrame$3(stackFrame, nodeWithSpan, new A._EvaluateVisitor__loadModule_closure0(_this, url, nodeWithSpan, baseUrl, namesInErrors, configuration, callback));
  61235. },
  61236. _loadModule$5$configuration(url, stackFrame, nodeWithSpan, callback, configuration) {
  61237. return this._loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, configuration, false);
  61238. },
  61239. _loadModule$4(url, stackFrame, nodeWithSpan, callback) {
  61240. return this._loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, null, false);
  61241. },
  61242. _execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, configuration, namesInErrors, nodeWithSpan) {
  61243. var alreadyLoaded, currentConfiguration, t2, t3, message, existingSpan, configurationSpan, environment, css, extensionStore, module, _this = this,
  61244. t1 = stylesheet.span,
  61245. url = t1.get$sourceUrl(t1);
  61246. t1 = _this._modules;
  61247. alreadyLoaded = t1.$index(0, url);
  61248. if (alreadyLoaded != null) {
  61249. t1 = configuration == null;
  61250. currentConfiguration = t1 ? _this._configuration : configuration;
  61251. t2 = _this._moduleConfigurations.$index(0, url);
  61252. t3 = t2.__originalConfiguration;
  61253. t2 = t3 == null ? t2 : t3;
  61254. t3 = currentConfiguration.__originalConfiguration;
  61255. if (t2 !== (t3 == null ? currentConfiguration : t3) && currentConfiguration instanceof A.ExplicitConfiguration) {
  61256. message = namesInErrors ? $.$get$context().prettyUri$1(url) + string$.x20was_a : string$.This_mw;
  61257. t2 = _this._moduleNodes.$index(0, url);
  61258. existingSpan = t2 == null ? null : J.get$span$z(t2);
  61259. if (t1) {
  61260. t1 = currentConfiguration.nodeWithSpan;
  61261. configurationSpan = t1.get$span(t1);
  61262. } else
  61263. configurationSpan = null;
  61264. t1 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
  61265. if (existingSpan != null)
  61266. t1.$indexSet(0, existingSpan, "original load");
  61267. if (configurationSpan != null)
  61268. t1.$indexSet(0, configurationSpan, "configuration");
  61269. throw A.wrapException(t1.get$isEmpty(t1) ? _this._evaluate$_exception$1(message) : _this._multiSpanException$3(message, "new load", t1));
  61270. }
  61271. return alreadyLoaded;
  61272. }
  61273. environment = A.Environment$();
  61274. css = A._Cell$();
  61275. extensionStore = A.ExtensionStore$();
  61276. _this._withEnvironment$2(environment, new A._EvaluateVisitor__execute_closure(_this, importer, stylesheet, extensionStore, configuration, css));
  61277. module = environment.toModule$2(css._readLocal$0(), extensionStore);
  61278. if (url != null) {
  61279. t1.$indexSet(0, url, module);
  61280. _this._moduleConfigurations.$indexSet(0, url, _this._configuration);
  61281. if (nodeWithSpan != null)
  61282. _this._moduleNodes.$indexSet(0, url, nodeWithSpan);
  61283. }
  61284. return module;
  61285. },
  61286. _execute$2(importer, stylesheet) {
  61287. return this._execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, null, false, null);
  61288. },
  61289. _addOutOfOrderImports$0() {
  61290. var t1, t2, _this = this, _s5_ = "_root",
  61291. _s13_ = "_endOfImports",
  61292. outOfOrderImports = _this._outOfOrderImports;
  61293. if (outOfOrderImports == null)
  61294. return _this._assertInModule$2(_this.__root, _s5_).children;
  61295. t1 = _this._assertInModule$2(_this.__root, _s5_).children;
  61296. t1 = A.List_List$of(A.SubListIterable$(t1, 0, A.checkNotNullable(_this._assertInModule$2(_this.__endOfImports, _s13_), "count", type$.int), t1.$ti._eval$1("ListMixin.E")), true, type$.ModifiableCssNode);
  61297. B.JSArray_methods.addAll$1(t1, outOfOrderImports);
  61298. t2 = _this._assertInModule$2(_this.__root, _s5_).children;
  61299. B.JSArray_methods.addAll$1(t1, A.SubListIterable$(t2, _this._assertInModule$2(_this.__endOfImports, _s13_), null, t2.$ti._eval$1("ListMixin.E")));
  61300. return t1;
  61301. },
  61302. _combineCss$2$clone(root, clone) {
  61303. var selectors, unsatisfiedExtension, sortedModules, t1, imports, css, t2, t3, statements, index, _this = this;
  61304. if (!B.JSArray_methods.any$1(root.get$upstream(), new A._EvaluateVisitor__combineCss_closure())) {
  61305. selectors = root.get$extensionStore().get$simpleSelectors();
  61306. unsatisfiedExtension = A.firstOrNull(root.get$extensionStore().extensionsWhereTarget$1(new A._EvaluateVisitor__combineCss_closure0(selectors)));
  61307. if (unsatisfiedExtension != null)
  61308. _this._throwForUnsatisfiedExtension$1(unsatisfiedExtension);
  61309. return root.get$css(root);
  61310. }
  61311. sortedModules = _this._topologicalModules$1(root);
  61312. if (clone) {
  61313. t1 = sortedModules.$ti._eval$1("MappedListIterable<ListMixin.E,Module<Callable>>");
  61314. sortedModules = A.List_List$of(new A.MappedListIterable(sortedModules, new A._EvaluateVisitor__combineCss_closure1(), t1), true, t1._eval$1("ListIterable.E"));
  61315. }
  61316. _this._extendModules$1(sortedModules);
  61317. t1 = type$.JSArray_CssNode;
  61318. imports = A._setArrayType([], t1);
  61319. css = A._setArrayType([], t1);
  61320. for (t1 = J.get$reversed$ax(sortedModules), t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) {
  61321. t3 = t1.__internal$_current;
  61322. if (t3 == null)
  61323. t3 = t2._as(t3);
  61324. t3 = t3.get$css(t3);
  61325. statements = t3.get$children(t3);
  61326. index = _this._indexAfterImports$1(statements);
  61327. t3 = J.getInterceptor$ax(statements);
  61328. B.JSArray_methods.addAll$1(imports, t3.getRange$2(statements, 0, index));
  61329. B.JSArray_methods.addAll$1(css, t3.getRange$2(statements, index, t3.get$length(statements)));
  61330. }
  61331. t1 = B.JSArray_methods.$add(imports, css);
  61332. t2 = root.get$css(root);
  61333. return new A.CssStylesheet(new A.UnmodifiableListView(t1, type$.UnmodifiableListView_CssNode), t2.get$span(t2));
  61334. },
  61335. _combineCss$1(root) {
  61336. return this._combineCss$2$clone(root, false);
  61337. },
  61338. _extendModules$1(sortedModules) {
  61339. var t1, t2, originalSelectors, $self, t3, t4, _i, upstream, url,
  61340. downstreamExtensionStores = A.LinkedHashMap_LinkedHashMap$_empty(type$.Uri, type$.List_ExtensionStore),
  61341. unsatisfiedExtensions = new A._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_Extension);
  61342. for (t1 = J.get$iterator$ax(sortedModules); t1.moveNext$0();) {
  61343. t2 = t1.get$current(t1);
  61344. originalSelectors = t2.get$extensionStore().get$simpleSelectors().toSet$0(0);
  61345. unsatisfiedExtensions.addAll$1(0, t2.get$extensionStore().extensionsWhereTarget$1(new A._EvaluateVisitor__extendModules_closure(originalSelectors)));
  61346. $self = downstreamExtensionStores.$index(0, t2.get$url(t2));
  61347. t3 = t2.get$extensionStore().get$addExtensions();
  61348. if ($self != null)
  61349. t3.call$1($self);
  61350. t3 = t2.get$extensionStore();
  61351. if (t3.get$isEmpty(t3))
  61352. continue;
  61353. for (t3 = t2.get$upstream(), t4 = t3.length, _i = 0; _i < t3.length; t3.length === t4 || (0, A.throwConcurrentModificationError)(t3), ++_i) {
  61354. upstream = t3[_i];
  61355. url = upstream.get$url(upstream);
  61356. if (url == null)
  61357. continue;
  61358. J.add$1$ax(downstreamExtensionStores.putIfAbsent$2(url, new A._EvaluateVisitor__extendModules_closure0()), t2.get$extensionStore());
  61359. }
  61360. unsatisfiedExtensions.removeAll$1(t2.get$extensionStore().extensionsWhereTarget$1(originalSelectors.get$contains(originalSelectors)));
  61361. }
  61362. if (unsatisfiedExtensions._collection$_length !== 0)
  61363. this._throwForUnsatisfiedExtension$1(unsatisfiedExtensions.get$first(unsatisfiedExtensions));
  61364. },
  61365. _throwForUnsatisfiedExtension$1(extension) {
  61366. throw A.wrapException(A.SassException$(string$.The_ta + extension.target.toString$0(0) + ' !optional" to avoid this error.', extension.span));
  61367. },
  61368. _topologicalModules$1(root) {
  61369. var t1 = type$.Module_Callable,
  61370. sorted = A.QueueList$(null, t1);
  61371. new A._EvaluateVisitor__topologicalModules_visitModule(A.LinkedHashSet_LinkedHashSet$_empty(t1), sorted).call$1(root);
  61372. return sorted;
  61373. },
  61374. _indexAfterImports$1(statements) {
  61375. var t1, t2, t3, lastImport, i, statement;
  61376. for (t1 = J.getInterceptor$asx(statements), t2 = type$.CssComment, t3 = type$.CssImport, lastImport = -1, i = 0; i < t1.get$length(statements); ++i) {
  61377. statement = t1.$index(statements, i);
  61378. if (t3._is(statement))
  61379. lastImport = i;
  61380. else if (!t2._is(statement))
  61381. break;
  61382. }
  61383. return lastImport + 1;
  61384. },
  61385. visitStylesheet$1(node) {
  61386. var t1, t2, _i;
  61387. for (t1 = node.children, t2 = t1.length, _i = 0; _i < t2; ++_i)
  61388. t1[_i].accept$1(this);
  61389. return null;
  61390. },
  61391. visitAtRootRule$1(node) {
  61392. var t1, grandparent, root, innerCopy, t2, outerCopy, t3, copy, _this = this,
  61393. _s8_ = "__parent",
  61394. unparsedQuery = node.query,
  61395. query = unparsedQuery != null ? _this._adjustParseError$2(unparsedQuery, new A._EvaluateVisitor_visitAtRootRule_closure(_this, _this._performInterpolation$2$warnForColor(unparsedQuery, true))) : B.AtRootQuery_UsS,
  61396. $parent = _this._assertInModule$2(_this.__parent, _s8_),
  61397. included = A._setArrayType([], type$.JSArray_ModifiableCssParentNode);
  61398. for (t1 = type$.CssStylesheet; !t1._is($parent); $parent = grandparent) {
  61399. if (!query.excludes$1($parent))
  61400. included.push($parent);
  61401. grandparent = $parent._parent;
  61402. if (grandparent == null)
  61403. throw A.wrapException(A.StateError$(string$.CssNod));
  61404. }
  61405. root = _this._trimIncluded$1(included);
  61406. if (root === _this._assertInModule$2(_this.__parent, _s8_)) {
  61407. _this._environment.scope$1$2$when(new A._EvaluateVisitor_visitAtRootRule_closure0(_this, node), node.hasDeclarations, type$.Null);
  61408. return null;
  61409. }
  61410. if (included.length !== 0) {
  61411. innerCopy = B.JSArray_methods.get$first(included).copyWithoutChildren$0();
  61412. for (t1 = A.SubListIterable$(included, 1, null, type$.ModifiableCssParentNode), t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = A._instanceType(t1)._precomputed1, outerCopy = innerCopy; t1.moveNext$0(); outerCopy = copy) {
  61413. t3 = t1.__internal$_current;
  61414. copy = (t3 == null ? t2._as(t3) : t3).copyWithoutChildren$0();
  61415. copy.addChild$1(outerCopy);
  61416. }
  61417. root.addChild$1(outerCopy);
  61418. } else
  61419. innerCopy = root;
  61420. _this._scopeForAtRoot$4(node, innerCopy, query, included).call$1(new A._EvaluateVisitor_visitAtRootRule_closure1(_this, node));
  61421. return null;
  61422. },
  61423. _trimIncluded$1(nodes) {
  61424. var $parent, t1, innermostContiguous, i, t2, grandparent, root, _this = this, _null = null, _s5_ = "_root",
  61425. _s22_ = " to be an ancestor of ";
  61426. if (nodes.length === 0)
  61427. return _this._assertInModule$2(_this.__root, _s5_);
  61428. $parent = _this._assertInModule$2(_this.__parent, "__parent");
  61429. for (t1 = nodes.length, innermostContiguous = _null, i = 0; i < t1; ++i, $parent = grandparent) {
  61430. for (; t2 = nodes[i], $parent !== t2; innermostContiguous = _null, $parent = grandparent) {
  61431. grandparent = $parent._parent;
  61432. if (grandparent == null)
  61433. throw A.wrapException(A.ArgumentError$("Expected " + t2.toString$0(0) + _s22_ + _this.toString$0(0) + ".", _null));
  61434. }
  61435. if (innermostContiguous == null)
  61436. innermostContiguous = i;
  61437. grandparent = $parent._parent;
  61438. if (grandparent == null)
  61439. throw A.wrapException(A.ArgumentError$("Expected " + t2.toString$0(0) + _s22_ + _this.toString$0(0) + ".", _null));
  61440. }
  61441. if ($parent !== _this._assertInModule$2(_this.__root, _s5_))
  61442. return _this._assertInModule$2(_this.__root, _s5_);
  61443. innermostContiguous.toString;
  61444. root = nodes[innermostContiguous];
  61445. B.JSArray_methods.removeRange$2(nodes, innermostContiguous, nodes.length);
  61446. return root;
  61447. },
  61448. _scopeForAtRoot$4(node, newParent, query, included) {
  61449. var _this = this,
  61450. scope = new A._EvaluateVisitor__scopeForAtRoot_closure(_this, newParent, node),
  61451. t1 = query._all || query._at_root_query$_rule;
  61452. if (t1 !== query.include)
  61453. scope = new A._EvaluateVisitor__scopeForAtRoot_closure0(_this, scope);
  61454. if (_this._mediaQueries != null && query.excludesName$1("media"))
  61455. scope = new A._EvaluateVisitor__scopeForAtRoot_closure1(_this, scope);
  61456. if (_this._inKeyframes && query.excludesName$1("keyframes"))
  61457. scope = new A._EvaluateVisitor__scopeForAtRoot_closure2(_this, scope);
  61458. return _this._inUnknownAtRule && !B.JSArray_methods.any$1(included, new A._EvaluateVisitor__scopeForAtRoot_closure3()) ? new A._EvaluateVisitor__scopeForAtRoot_closure4(_this, scope) : scope;
  61459. },
  61460. visitContentBlock$1(node) {
  61461. return A.throwExpression(A.UnsupportedError$(string$.Evalua));
  61462. },
  61463. visitContentRule$1(node) {
  61464. var $content = this._environment._content;
  61465. if ($content == null)
  61466. return null;
  61467. this._runUserDefinedCallable$1$4(node.$arguments, $content, node, new A._EvaluateVisitor_visitContentRule_closure(this, $content), type$.Null);
  61468. return null;
  61469. },
  61470. visitDebugRule$1(node) {
  61471. var value = node.expression.accept$1(this),
  61472. t1 = value instanceof A.SassString ? value._string$_text : A.serializeValue(value, true, true);
  61473. this._evaluate$_logger.debug$2(0, t1, node.span);
  61474. return null;
  61475. },
  61476. visitDeclaration$1(node) {
  61477. var t1, $name, t2, cssValue, t3, t4, children, oldDeclarationName, _this = this, _null = null;
  61478. if ((_this._atRootExcludingStyleRule ? _null : _this._styleRuleIgnoringAtRoot) == null && !_this._inUnknownAtRule && !_this._inKeyframes)
  61479. throw A.wrapException(_this._evaluate$_exception$2(string$.Declarm, node.span));
  61480. t1 = node.name;
  61481. $name = _this._interpolationToValue$2$warnForColor(t1, true);
  61482. t2 = _this._declarationName;
  61483. if (t2 != null)
  61484. $name = new A.CssValue(t2 + "-" + A.S($name.value), $name.span, type$.CssValue_String);
  61485. t2 = node.value;
  61486. cssValue = A.NullableExtension_andThen(t2, new A._EvaluateVisitor_visitDeclaration_closure(_this));
  61487. t3 = cssValue != null;
  61488. if (t3)
  61489. t4 = !cssValue.get$value(cssValue).get$isBlank() || cssValue.get$value(cssValue).get$asList().length === 0;
  61490. else
  61491. t4 = false;
  61492. if (t4) {
  61493. t3 = _this._assertInModule$2(_this.__parent, "__parent");
  61494. t1 = B.JSString_methods.startsWith$1(t1.get$initialPlain(), "--");
  61495. if (_this._sourceMap) {
  61496. t2 = A.NullableExtension_andThen(t2, _this.get$_expressionNode());
  61497. t2 = t2 == null ? _null : J.get$span$z(t2);
  61498. } else
  61499. t2 = _null;
  61500. t3.addChild$1(A.ModifiableCssDeclaration$($name, cssValue, node.span, t1, t2));
  61501. } else if (J.startsWith$1$s($name.value, "--") && t3)
  61502. throw A.wrapException(_this._evaluate$_exception$2("Custom property values may not be empty.", cssValue.get$span(cssValue)));
  61503. children = node.children;
  61504. if (children != null) {
  61505. oldDeclarationName = _this._declarationName;
  61506. _this._declarationName = $name.value;
  61507. _this._environment.scope$1$2$when(new A._EvaluateVisitor_visitDeclaration_closure0(_this, children), node.hasDeclarations, type$.Null);
  61508. _this._declarationName = oldDeclarationName;
  61509. }
  61510. return _null;
  61511. },
  61512. visitEachRule$1(node) {
  61513. var _this = this,
  61514. t1 = node.list,
  61515. list = t1.accept$1(_this),
  61516. nodeWithSpan = _this._expressionNode$1(t1),
  61517. setVariables = node.variables.length === 1 ? new A._EvaluateVisitor_visitEachRule_closure(_this, node, nodeWithSpan) : new A._EvaluateVisitor_visitEachRule_closure0(_this, node, nodeWithSpan);
  61518. return _this._environment.scope$1$2$semiGlobal(new A._EvaluateVisitor_visitEachRule_closure1(_this, list, setVariables, node), true, type$.nullable_Value);
  61519. },
  61520. _setMultipleVariables$3(variables, value, nodeWithSpan) {
  61521. var i,
  61522. list = value.get$asList(),
  61523. t1 = variables.length,
  61524. minLength = Math.min(t1, list.length);
  61525. for (i = 0; i < minLength; ++i)
  61526. this._environment.setLocalVariable$3(variables[i], this._withoutSlash$2(list[i], nodeWithSpan), nodeWithSpan);
  61527. for (i = minLength; i < t1; ++i)
  61528. this._environment.setLocalVariable$3(variables[i], B.C__SassNull, nodeWithSpan);
  61529. },
  61530. visitErrorRule$1(node) {
  61531. throw A.wrapException(this._evaluate$_exception$2(J.toString$0$(node.expression.accept$1(this)), node.span));
  61532. },
  61533. visitExtendRule$1(node) {
  61534. var t1, t2, t3, t4, t5, t6, t7, _i, complex, visitor, t8, t9, targetText, compound, _this = this, _null = null,
  61535. styleRule = _this._atRootExcludingStyleRule ? _null : _this._styleRuleIgnoringAtRoot;
  61536. if (styleRule == null || _this._declarationName != null)
  61537. throw A.wrapException(_this._evaluate$_exception$2(string$.x40exten, node.span));
  61538. for (t1 = styleRule.originalSelector.components, t2 = t1.length, t3 = styleRule.selector, t4 = t3.span, t5 = node.span, t6 = type$.SourceSpan, t7 = type$.String, _i = 0; _i < t2; ++_i) {
  61539. complex = t1[_i];
  61540. if (!complex.accept$1(B._IsBogusVisitor_true))
  61541. continue;
  61542. visitor = A._SerializeVisitor$(_null, true, _null, true, false, _null, true);
  61543. complex.accept$1(visitor);
  61544. t8 = B.JSString_methods.trim$0(visitor._serialize$_buffer.toString$0(0));
  61545. t9 = complex.accept$1(B.C__IsUselessVisitor) ? "can't" : "shouldn't";
  61546. _this._warn$3$deprecation('The selector "' + t8 + '" is invalid CSS and ' + t9 + string$.x20be_an, new A.MultiSpan(t4, "invalid selector", A.ConstantMap_ConstantMap$from(A.LinkedHashMap_LinkedHashMap$_literal([t5, "@extend rule"], t6, t7), t6, t7)), true);
  61547. }
  61548. targetText = _this._interpolationToValue$2$warnForColor(node.selector, true);
  61549. for (t1 = _this._adjustParseError$2(targetText, new A._EvaluateVisitor_visitExtendRule_closure(_this, targetText)).components, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  61550. complex = t1[_i];
  61551. if (complex.leadingCombinators.length === 0) {
  61552. t4 = complex.components;
  61553. t4 = t4.length === 1 && B.JSArray_methods.get$first(t4).combinators.length === 0;
  61554. } else
  61555. t4 = false;
  61556. compound = t4 ? B.JSArray_methods.get$first(complex.components).selector : _null;
  61557. if (compound == null)
  61558. throw A.wrapException(A.SassFormatException$("complex selectors may not be extended.", targetText.span));
  61559. t4 = compound.components;
  61560. t5 = t4.length === 1 ? B.JSArray_methods.get$first(t4) : _null;
  61561. if (t5 == null)
  61562. throw A.wrapException(A.SassFormatException$(string$.compou + B.JSArray_methods.join$1(t4, ", ") + string$.x60_inst, targetText.span));
  61563. _this._assertInModule$2(_this.__extensionStore, "_extensionStore").addExtension$4(t3, t5, node, _this._mediaQueries);
  61564. }
  61565. return _null;
  61566. },
  61567. visitAtRule$1(node) {
  61568. var $name, value, children, wasInKeyframes, wasInUnknownAtRule, _this = this;
  61569. if (_this._declarationName != null)
  61570. throw A.wrapException(_this._evaluate$_exception$2(string$.At_rul, node.span));
  61571. $name = _this._interpolationToValue$1(node.name);
  61572. value = A.NullableExtension_andThen(node.value, new A._EvaluateVisitor_visitAtRule_closure(_this));
  61573. children = node.children;
  61574. if (children == null) {
  61575. _this._assertInModule$2(_this.__parent, "__parent").addChild$1(A.ModifiableCssAtRule$($name, node.span, true, value));
  61576. return null;
  61577. }
  61578. wasInKeyframes = _this._inKeyframes;
  61579. wasInUnknownAtRule = _this._inUnknownAtRule;
  61580. if (A.unvendor($name.value) === "keyframes")
  61581. _this._inKeyframes = true;
  61582. else
  61583. _this._inUnknownAtRule = true;
  61584. _this._withParent$2$4$scopeWhen$through(A.ModifiableCssAtRule$($name, node.span, false, value), new A._EvaluateVisitor_visitAtRule_closure0(_this, children), node.hasDeclarations, new A._EvaluateVisitor_visitAtRule_closure1(), type$.ModifiableCssAtRule, type$.Null);
  61585. _this._inUnknownAtRule = wasInUnknownAtRule;
  61586. _this._inKeyframes = wasInKeyframes;
  61587. return null;
  61588. },
  61589. visitForRule$1(node) {
  61590. var _this = this, t1 = {},
  61591. t2 = node.from,
  61592. fromNumber = _this._addExceptionSpan$2(t2, new A._EvaluateVisitor_visitForRule_closure(_this, node)),
  61593. t3 = node.to,
  61594. toNumber = _this._addExceptionSpan$2(t3, new A._EvaluateVisitor_visitForRule_closure0(_this, node)),
  61595. from = _this._addExceptionSpan$2(t2, new A._EvaluateVisitor_visitForRule_closure1(fromNumber)),
  61596. to = t1.to = _this._addExceptionSpan$2(t3, new A._EvaluateVisitor_visitForRule_closure2(toNumber, fromNumber)),
  61597. direction = from > to ? -1 : 1;
  61598. if (from === (!node.isExclusive ? t1.to = to + direction : to))
  61599. return null;
  61600. return _this._environment.scope$1$2$semiGlobal(new A._EvaluateVisitor_visitForRule_closure3(t1, _this, node, from, direction, fromNumber), true, type$.nullable_Value);
  61601. },
  61602. visitForwardRule$1(node) {
  61603. var newConfiguration, t4, _i, variable, $name, _this = this,
  61604. _s8_ = "@forward",
  61605. oldConfiguration = _this._configuration,
  61606. adjustedConfiguration = oldConfiguration.throughForward$1(node),
  61607. t1 = node.configuration,
  61608. t2 = t1.length,
  61609. t3 = node.url;
  61610. if (t2 !== 0) {
  61611. newConfiguration = _this._addForwardConfiguration$2(adjustedConfiguration, node);
  61612. _this._loadModule$5$configuration(t3, _s8_, node, new A._EvaluateVisitor_visitForwardRule_closure(_this, node), newConfiguration);
  61613. t3 = type$.String;
  61614. t4 = A.LinkedHashSet_LinkedHashSet$_empty(t3);
  61615. for (_i = 0; _i < t2; ++_i) {
  61616. variable = t1[_i];
  61617. if (!variable.isGuarded)
  61618. t4.add$1(0, variable.name);
  61619. }
  61620. _this._removeUsedConfiguration$3$except(adjustedConfiguration, newConfiguration, t4);
  61621. t3 = A.LinkedHashSet_LinkedHashSet$_empty(t3);
  61622. for (_i = 0; _i < t2; ++_i)
  61623. t3.add$1(0, t1[_i].name);
  61624. for (t1 = newConfiguration._values, t2 = J.toList$0$ax(t1.get$keys(t1)), t4 = t2.length, _i = 0; _i < t2.length; t2.length === t4 || (0, A.throwConcurrentModificationError)(t2), ++_i) {
  61625. $name = t2[_i];
  61626. if (!t3.contains$1(0, $name))
  61627. if (!t1.get$isEmpty(t1))
  61628. t1.remove$1(0, $name);
  61629. }
  61630. _this._assertConfigurationIsEmpty$1(newConfiguration);
  61631. } else {
  61632. _this._configuration = adjustedConfiguration;
  61633. _this._loadModule$4(t3, _s8_, node, new A._EvaluateVisitor_visitForwardRule_closure0(_this, node));
  61634. _this._configuration = oldConfiguration;
  61635. }
  61636. return null;
  61637. },
  61638. _addForwardConfiguration$2(configuration, node) {
  61639. var t2, t3, _i, variable, t4, t5, variableNodeWithSpan,
  61640. t1 = configuration._values,
  61641. newValues = A.LinkedHashMap_LinkedHashMap$of(new A.UnmodifiableMapView(t1, type$.UnmodifiableMapView_String_ConfiguredValue), type$.String, type$.ConfiguredValue);
  61642. for (t2 = node.configuration, t3 = t2.length, _i = 0; _i < t3; ++_i) {
  61643. variable = t2[_i];
  61644. if (variable.isGuarded) {
  61645. t4 = variable.name;
  61646. t5 = t1.get$isEmpty(t1) ? null : t1.remove$1(0, t4);
  61647. if (t5 != null && !t5.value.$eq(0, B.C__SassNull)) {
  61648. newValues.$indexSet(0, t4, t5);
  61649. continue;
  61650. }
  61651. }
  61652. t4 = variable.expression;
  61653. variableNodeWithSpan = this._expressionNode$1(t4);
  61654. newValues.$indexSet(0, variable.name, new A.ConfiguredValue(this._withoutSlash$2(t4.accept$1(this), variableNodeWithSpan), variable.span, variableNodeWithSpan));
  61655. }
  61656. if (configuration instanceof A.ExplicitConfiguration || t1.get$isEmpty(t1))
  61657. return new A.ExplicitConfiguration(node, newValues, null);
  61658. else
  61659. return new A.Configuration(newValues, null);
  61660. },
  61661. _removeUsedConfiguration$3$except(upstream, downstream, except) {
  61662. var t1, t2, t3, t4, _i, $name;
  61663. for (t1 = upstream._values, t2 = J.toList$0$ax(t1.get$keys(t1)), t3 = t2.length, t4 = downstream._values, _i = 0; _i < t2.length; t2.length === t3 || (0, A.throwConcurrentModificationError)(t2), ++_i) {
  61664. $name = t2[_i];
  61665. if (except.contains$1(0, $name))
  61666. continue;
  61667. if (!t4.containsKey$1($name))
  61668. if (!t1.get$isEmpty(t1))
  61669. t1.remove$1(0, $name);
  61670. }
  61671. },
  61672. _assertConfigurationIsEmpty$2$nameInError(configuration, nameInError) {
  61673. var t1, entry;
  61674. if (!(configuration instanceof A.ExplicitConfiguration))
  61675. return;
  61676. t1 = configuration._values;
  61677. if (t1.get$isEmpty(t1))
  61678. return;
  61679. t1 = t1.get$entries(t1);
  61680. entry = t1.get$first(t1);
  61681. t1 = nameInError ? "$" + A.S(entry.key) + string$.x20was_n : string$.This_v;
  61682. throw A.wrapException(this._evaluate$_exception$2(t1, entry.value.configurationSpan));
  61683. },
  61684. _assertConfigurationIsEmpty$1(configuration) {
  61685. return this._assertConfigurationIsEmpty$2$nameInError(configuration, false);
  61686. },
  61687. visitFunctionRule$1(node) {
  61688. var t1 = this._environment,
  61689. t2 = t1.closure$0(),
  61690. t3 = this._inDependency,
  61691. t4 = t1._functions,
  61692. index = t4.length - 1,
  61693. t5 = node.name;
  61694. t1._functionIndices.$indexSet(0, t5, index);
  61695. J.$indexSet$ax(t4[index], t5, new A.UserDefinedCallable(node, t2, t3, type$.UserDefinedCallable_Environment));
  61696. return null;
  61697. },
  61698. visitIfRule$1(node) {
  61699. var t1, t2, _i, clauseToCheck, _box_0 = {};
  61700. _box_0.clause = node.lastClause;
  61701. for (t1 = node.clauses, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  61702. clauseToCheck = t1[_i];
  61703. if (clauseToCheck.expression.accept$1(this).get$isTruthy()) {
  61704. _box_0.clause = clauseToCheck;
  61705. break;
  61706. }
  61707. }
  61708. t1 = _box_0.clause;
  61709. if (t1 == null)
  61710. return null;
  61711. return this._environment.scope$1$3$semiGlobal$when(new A._EvaluateVisitor_visitIfRule_closure(_box_0, this), true, t1.hasDeclarations, type$.nullable_Value);
  61712. },
  61713. visitImportRule$1(node) {
  61714. var t1, t2, t3, t4, t5, t6, _i, $import, t7, result, $self, t8, _this = this,
  61715. _s8_ = "__parent",
  61716. _s5_ = "_root",
  61717. _s13_ = "_endOfImports";
  61718. for (t1 = node.imports, t2 = t1.length, t3 = type$.CssValue_String, t4 = _this.get$_interpolationToValue(), t5 = type$.StaticImport, t6 = type$.JSArray_ModifiableCssImport, _i = 0; _i < t2; ++_i) {
  61719. $import = t1[_i];
  61720. if ($import instanceof A.DynamicImport)
  61721. _this._visitDynamicImport$1($import);
  61722. else {
  61723. t5._as($import);
  61724. t7 = $import.url;
  61725. result = _this._performInterpolation$2$warnForColor(t7, false);
  61726. $self = $import.modifiers;
  61727. t8 = $self == null ? null : t4.call$1($self);
  61728. node = new A.ModifiableCssImport(new A.CssValue(result, t7.span, t3), t8, $import.span);
  61729. if (_this._assertInModule$2(_this.__parent, _s8_) !== _this._assertInModule$2(_this.__root, _s5_))
  61730. _this._assertInModule$2(_this.__parent, _s8_).addChild$1(node);
  61731. else if (_this._assertInModule$2(_this.__endOfImports, _s13_) === J.get$length$asx(_this._assertInModule$2(_this.__root, _s5_).children._collection$_source)) {
  61732. t7 = _this._assertInModule$2(_this.__root, _s5_);
  61733. node._parent = t7;
  61734. t7 = t7._children;
  61735. node._indexInParent = t7.length;
  61736. t7.push(node);
  61737. _this.__endOfImports = _this._assertInModule$2(_this.__endOfImports, _s13_) + 1;
  61738. } else {
  61739. t7 = _this._outOfOrderImports;
  61740. (t7 == null ? _this._outOfOrderImports = A._setArrayType([], t6) : t7).push(node);
  61741. }
  61742. }
  61743. }
  61744. return null;
  61745. },
  61746. _visitDynamicImport$1($import) {
  61747. return this._withStackFrame$3("@import", $import, new A._EvaluateVisitor__visitDynamicImport_closure(this, $import));
  61748. },
  61749. _loadStylesheet$4$baseUrl$forImport(url, span, baseUrl, forImport) {
  61750. var importCache, tuple, isDependency, stylesheet, result, error, stackTrace, error0, stackTrace0, error1, stackTrace1, message, t1, t2, t3, t4, exception, message0, _this = this,
  61751. _s11_ = "_stylesheet";
  61752. baseUrl = baseUrl;
  61753. try {
  61754. _this._importSpan = span;
  61755. importCache = _this._evaluate$_importCache;
  61756. if (importCache != null) {
  61757. if (baseUrl == null) {
  61758. t1 = _this._assertInModule$2(_this.__stylesheet, _s11_).span;
  61759. baseUrl = t1.get$sourceUrl(t1);
  61760. }
  61761. tuple = J.canonicalize$4$baseImporter$baseUrl$forImport$x(importCache, A.Uri_parse(url), _this._importer, baseUrl, forImport);
  61762. if (tuple != null) {
  61763. isDependency = _this._inDependency || tuple.item1 !== _this._importer;
  61764. t1 = tuple.item1;
  61765. t2 = tuple.item2;
  61766. t3 = tuple.item3;
  61767. t4 = _this._quietDeps && isDependency;
  61768. stylesheet = importCache.importCanonical$4$originalUrl$quiet(t1, t2, t3, t4);
  61769. if (stylesheet != null) {
  61770. _this._loadedUrls.add$1(0, tuple.item2);
  61771. t1 = tuple.item1;
  61772. return new A._LoadedStylesheet(stylesheet, t1, isDependency);
  61773. }
  61774. }
  61775. } else {
  61776. t1 = baseUrl;
  61777. if (t1 == null) {
  61778. t1 = _this._assertInModule$2(_this.__stylesheet, _s11_).span;
  61779. t1 = t1.get$sourceUrl(t1);
  61780. }
  61781. result = _this._importLikeNode$3(url, t1, forImport);
  61782. if (result != null) {
  61783. t1 = result.stylesheet.span;
  61784. t2 = _this._loadedUrls;
  61785. A.NullableExtension_andThen(t1.get$sourceUrl(t1), t2.get$add(t2));
  61786. return result;
  61787. }
  61788. }
  61789. if (B.JSString_methods.startsWith$1(url, "package:") && true)
  61790. throw A.wrapException(string$.x22packa);
  61791. else
  61792. throw A.wrapException("Can't find stylesheet to import.");
  61793. } catch (exception) {
  61794. t1 = A.unwrapException(exception);
  61795. if (t1 instanceof A.SassException) {
  61796. error = t1;
  61797. stackTrace = A.getTraceFromException(exception);
  61798. t1 = error;
  61799. t2 = J.getInterceptor$z(t1);
  61800. A.throwWithTrace(_this._evaluate$_exception$2(error._span_exception$_message, A.SourceSpanException.prototype.get$span.call(t2, t1)), stackTrace);
  61801. } else if (t1 instanceof A.ArgumentError) {
  61802. error0 = t1;
  61803. stackTrace0 = A.getTraceFromException(exception);
  61804. A.throwWithTrace(_this._evaluate$_exception$1(J.toString$0$(error0)), stackTrace0);
  61805. } else {
  61806. error1 = t1;
  61807. stackTrace1 = A.getTraceFromException(exception);
  61808. message = null;
  61809. try {
  61810. message = A._asString(J.get$message$x(error1));
  61811. } catch (exception) {
  61812. message0 = J.toString$0$(error1);
  61813. message = message0;
  61814. }
  61815. A.throwWithTrace(_this._evaluate$_exception$1(message), stackTrace1);
  61816. }
  61817. } finally {
  61818. _this._importSpan = null;
  61819. }
  61820. },
  61821. _loadStylesheet$3$baseUrl(url, span, baseUrl) {
  61822. return this._loadStylesheet$4$baseUrl$forImport(url, span, baseUrl, false);
  61823. },
  61824. _loadStylesheet$3$forImport(url, span, forImport) {
  61825. return this._loadStylesheet$4$baseUrl$forImport(url, span, null, forImport);
  61826. },
  61827. _importLikeNode$3(originalUrl, previous, forImport) {
  61828. var _this = this,
  61829. result = _this._nodeImporter.loadRelative$3(originalUrl, previous, forImport),
  61830. isDependency = _this._inDependency,
  61831. contents = result.get$item1(),
  61832. url = result.get$item2(),
  61833. t1 = url.startsWith$1(0, "file") ? A.Syntax_forPath(url) : B.Syntax_SCSS_scss;
  61834. return new A._LoadedStylesheet(A.Stylesheet_Stylesheet$parse(contents, t1, _this._quietDeps && isDependency ? $.$get$Logger_quiet() : _this._evaluate$_logger, url), null, isDependency);
  61835. },
  61836. visitIncludeRule$1(node) {
  61837. var nodeWithSpan, t1, _this = this,
  61838. _s37_ = "Mixin doesn't accept a content block.",
  61839. mixin = _this._addExceptionSpan$2(node, new A._EvaluateVisitor_visitIncludeRule_closure(_this, node));
  61840. if (mixin == null)
  61841. throw A.wrapException(_this._evaluate$_exception$2("Undefined mixin.", node.span));
  61842. nodeWithSpan = new A._FakeAstNode(new A._EvaluateVisitor_visitIncludeRule_closure0(node));
  61843. if (mixin instanceof A.BuiltInCallable) {
  61844. if (node.content != null)
  61845. throw A.wrapException(_this._evaluate$_exception$2(_s37_, node.span));
  61846. _this._runBuiltInCallable$3(node.$arguments, mixin, nodeWithSpan);
  61847. } else if (type$.UserDefinedCallable_Environment._is(mixin)) {
  61848. t1 = node.content;
  61849. if (t1 != null && !type$.MixinRule._as(mixin.declaration).get$hasContent())
  61850. throw A.wrapException(A.MultiSpanSassRuntimeException$(_s37_, node.get$spanWithoutContent(), "invocation", A.LinkedHashMap_LinkedHashMap$_literal([mixin.declaration.$arguments.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), _this._evaluate$_stackTrace$1(node.get$spanWithoutContent())));
  61851. _this._runUserDefinedCallable$1$4(node.$arguments, mixin, nodeWithSpan, new A._EvaluateVisitor_visitIncludeRule_closure1(_this, A.NullableExtension_andThen(t1, new A._EvaluateVisitor_visitIncludeRule_closure2(_this)), mixin, nodeWithSpan), type$.Null);
  61852. } else
  61853. throw A.wrapException(A.UnsupportedError$("Unknown callable type " + mixin.toString$0(0) + "."));
  61854. return null;
  61855. },
  61856. visitMixinRule$1(node) {
  61857. var t1 = this._environment,
  61858. t2 = t1.closure$0(),
  61859. t3 = this._inDependency,
  61860. t4 = t1._mixins,
  61861. index = t4.length - 1,
  61862. t5 = node.name;
  61863. t1._mixinIndices.$indexSet(0, t5, index);
  61864. J.$indexSet$ax(t4[index], t5, new A.UserDefinedCallable(node, t2, t3, type$.UserDefinedCallable_Environment));
  61865. return null;
  61866. },
  61867. visitLoudComment$1(node) {
  61868. var t1, _this = this,
  61869. _s8_ = "__parent",
  61870. _s13_ = "_endOfImports";
  61871. if (_this._inFunction)
  61872. return null;
  61873. if (_this._assertInModule$2(_this.__parent, _s8_) === _this._assertInModule$2(_this.__root, "_root") && _this._assertInModule$2(_this.__endOfImports, _s13_) === J.get$length$asx(_this._assertInModule$2(_this.__root, "_root").children._collection$_source))
  61874. _this.__endOfImports = _this._assertInModule$2(_this.__endOfImports, _s13_) + 1;
  61875. t1 = node.text;
  61876. _this._assertInModule$2(_this.__parent, _s8_).addChild$1(new A.ModifiableCssComment(_this._performInterpolation$1(t1), t1.span));
  61877. return null;
  61878. },
  61879. visitMediaRule$1(node) {
  61880. var queries, mergedQueries, t1, mergedSources, t2, t3, _this = this;
  61881. if (_this._declarationName != null)
  61882. throw A.wrapException(_this._evaluate$_exception$2(string$.Media_, node.span));
  61883. queries = _this._visitMediaQueries$1(node.query);
  61884. mergedQueries = A.NullableExtension_andThen(_this._mediaQueries, new A._EvaluateVisitor_visitMediaRule_closure(_this, queries));
  61885. t1 = mergedQueries == null;
  61886. if (!t1 && J.get$isEmpty$asx(mergedQueries))
  61887. return null;
  61888. if (t1)
  61889. mergedSources = B.Set_empty0;
  61890. else {
  61891. t2 = _this._mediaQuerySources;
  61892. t2.toString;
  61893. t2 = A.LinkedHashSet_LinkedHashSet$of(t2, type$.CssMediaQuery);
  61894. t3 = _this._mediaQueries;
  61895. t3.toString;
  61896. t2.addAll$1(0, t3);
  61897. t2.addAll$1(0, queries);
  61898. mergedSources = t2;
  61899. }
  61900. t1 = t1 ? queries : mergedQueries;
  61901. _this._withParent$2$4$scopeWhen$through(A.ModifiableCssMediaRule$(t1, node.span), new A._EvaluateVisitor_visitMediaRule_closure0(_this, mergedQueries, queries, mergedSources, node), node.hasDeclarations, new A._EvaluateVisitor_visitMediaRule_closure1(mergedSources), type$.ModifiableCssMediaRule, type$.Null);
  61902. return null;
  61903. },
  61904. _visitMediaQueries$1(interpolation) {
  61905. return this._adjustParseError$2(interpolation, new A._EvaluateVisitor__visitMediaQueries_closure(this, this._performInterpolation$2$warnForColor(interpolation, true)));
  61906. },
  61907. _mergeMediaQueries$2(queries1, queries2) {
  61908. var t1, t2, t3, t4, t5, result,
  61909. queries = A._setArrayType([], type$.JSArray_CssMediaQuery);
  61910. for (t1 = J.get$iterator$ax(queries1), t2 = J.getInterceptor$ax(queries2), t3 = type$.MediaQuerySuccessfulMergeResult; t1.moveNext$0();) {
  61911. t4 = t1.get$current(t1);
  61912. for (t5 = t2.get$iterator(queries2); t5.moveNext$0();) {
  61913. result = t4.merge$1(t5.get$current(t5));
  61914. if (result === B._SingletonCssMediaQueryMergeResult_empty)
  61915. continue;
  61916. if (result === B._SingletonCssMediaQueryMergeResult_unrepresentable)
  61917. return null;
  61918. queries.push(t3._as(result).query);
  61919. }
  61920. }
  61921. return queries;
  61922. },
  61923. visitReturnRule$1(node) {
  61924. var t1 = node.expression;
  61925. return this._withoutSlash$2(t1.accept$1(this), t1);
  61926. },
  61927. visitSilentComment$1(node) {
  61928. return null;
  61929. },
  61930. visitStyleRule$1(node) {
  61931. var t1, selectorText, rule, oldAtRootExcludingStyleRule, t2, t3, t4, t5, t6, _i, complex, visitor, t7, t8, t9, _this = this, _null = null,
  61932. _s8_ = "__parent",
  61933. _box_0 = {};
  61934. if (_this._declarationName != null)
  61935. throw A.wrapException(_this._evaluate$_exception$2(string$.Style_, node.span));
  61936. t1 = node.selector;
  61937. selectorText = _this._interpolationToValue$3$trim$warnForColor(t1, true, true);
  61938. if (_this._inKeyframes) {
  61939. _this._withParent$2$4$scopeWhen$through(A.ModifiableCssKeyframeBlock$(new A.CssValue(A.List_List$unmodifiable(_this._adjustParseError$2(t1, new A._EvaluateVisitor_visitStyleRule_closure(_this, selectorText)), type$.String), t1.span, type$.CssValue_List_String), node.span), new A._EvaluateVisitor_visitStyleRule_closure0(_this, node), node.hasDeclarations, new A._EvaluateVisitor_visitStyleRule_closure1(), type$.ModifiableCssKeyframeBlock, type$.Null);
  61940. return _null;
  61941. }
  61942. _box_0.parsedSelector = _this._adjustParseError$2(t1, new A._EvaluateVisitor_visitStyleRule_closure2(_this, selectorText));
  61943. _box_0.parsedSelector = _this._addExceptionSpan$2(t1, new A._EvaluateVisitor_visitStyleRule_closure3(_box_0, _this));
  61944. t1 = t1.span;
  61945. rule = A.ModifiableCssStyleRule$(_this._assertInModule$2(_this.__extensionStore, "_extensionStore").addSelector$3(_box_0.parsedSelector, t1, _this._mediaQueries), node.span, _box_0.parsedSelector);
  61946. oldAtRootExcludingStyleRule = _this._atRootExcludingStyleRule;
  61947. _this._atRootExcludingStyleRule = false;
  61948. _this._withParent$2$4$scopeWhen$through(rule, new A._EvaluateVisitor_visitStyleRule_closure4(_this, rule, node), node.hasDeclarations, new A._EvaluateVisitor_visitStyleRule_closure5(), type$.ModifiableCssStyleRule, type$.Null);
  61949. _this._atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  61950. if (!rule.accept$1(B._IsInvisibleVisitor_false_false))
  61951. for (t2 = _box_0.parsedSelector.components, t3 = t2.length, t4 = type$.SourceSpan, t5 = type$.String, t6 = rule.children, _i = 0; _i < t3; ++_i) {
  61952. complex = t2[_i];
  61953. if (!complex.accept$1(B._IsBogusVisitor_true))
  61954. continue;
  61955. if (complex.accept$1(B.C__IsUselessVisitor)) {
  61956. visitor = A._SerializeVisitor$(_null, true, _null, true, false, _null, true);
  61957. complex.accept$1(visitor);
  61958. _this._warn$3$deprecation('The selector "' + B.JSString_methods.trim$0(visitor._serialize$_buffer.toString$0(0)) + string$.x22x20is_ix20, t1, true);
  61959. } else if (complex.leadingCombinators.length !== 0) {
  61960. visitor = A._SerializeVisitor$(_null, true, _null, true, false, _null, true);
  61961. complex.accept$1(visitor);
  61962. _this._warn$3$deprecation('The selector "' + B.JSString_methods.trim$0(visitor._serialize$_buffer.toString$0(0)) + string$.x22x20is_ix0a, t1, true);
  61963. } else {
  61964. visitor = A._SerializeVisitor$(_null, true, _null, true, false, _null, true);
  61965. complex.accept$1(visitor);
  61966. t7 = B.JSString_methods.trim$0(visitor._serialize$_buffer.toString$0(0));
  61967. t8 = complex.accept$1(B._IsBogusVisitor_false) ? string$.x20It_wi : "";
  61968. if (t6.get$length(t6) === 0)
  61969. A.throwExpression(A.IterableElementError_noElement());
  61970. t9 = J.get$span$z(t6.$index(0, 0));
  61971. _this._warn$3$deprecation('The selector "' + t7 + string$.x22x20is_o + t8 + string$.x0aThis_, new A.MultiSpan(t1, "invalid selector", A.ConstantMap_ConstantMap$from(A.LinkedHashMap_LinkedHashMap$_literal([t9, "this is not a style rule" + (t6.every$1(t6, new A._EvaluateVisitor_visitStyleRule_closure6()) ? "\n(try converting to a //-style comment)" : "")], t4, t5), t4, t5)), true);
  61972. }
  61973. }
  61974. if ((_this._atRootExcludingStyleRule ? _null : _this._styleRuleIgnoringAtRoot) == null) {
  61975. t1 = _this._assertInModule$2(_this.__parent, _s8_).children;
  61976. t1 = !t1.get$isEmpty(t1);
  61977. } else
  61978. t1 = false;
  61979. if (t1) {
  61980. t1 = _this._assertInModule$2(_this.__parent, _s8_).children;
  61981. t1.get$last(t1).isGroupEnd = true;
  61982. }
  61983. return _null;
  61984. },
  61985. visitSupportsRule$1(node) {
  61986. var t1, _this = this;
  61987. if (_this._declarationName != null)
  61988. throw A.wrapException(_this._evaluate$_exception$2(string$.Suppor, node.span));
  61989. t1 = node.condition;
  61990. _this._withParent$2$4$scopeWhen$through(A.ModifiableCssSupportsRule$(new A.CssValue(_this._visitSupportsCondition$1(t1), t1.get$span(t1), type$.CssValue_String), node.span), new A._EvaluateVisitor_visitSupportsRule_closure(_this, node), node.hasDeclarations, new A._EvaluateVisitor_visitSupportsRule_closure0(), type$.ModifiableCssSupportsRule, type$.Null);
  61991. return null;
  61992. },
  61993. _visitSupportsCondition$1(condition) {
  61994. var t1, oldInSupportsDeclaration, t2, t3, _this = this;
  61995. if (condition instanceof A.SupportsOperation) {
  61996. t1 = condition.operator;
  61997. return _this._parenthesize$2(condition.left, t1) + " " + t1 + " " + _this._parenthesize$2(condition.right, t1);
  61998. } else if (condition instanceof A.SupportsNegation)
  61999. return "not " + _this._parenthesize$1(condition.condition);
  62000. else if (condition instanceof A.SupportsInterpolation) {
  62001. t1 = condition.expression;
  62002. return _this._evaluate$_serialize$3$quote(t1.accept$1(_this), t1, false);
  62003. } else if (condition instanceof A.SupportsDeclaration) {
  62004. oldInSupportsDeclaration = _this._inSupportsDeclaration;
  62005. _this._inSupportsDeclaration = true;
  62006. t1 = condition.name;
  62007. t1 = _this._evaluate$_serialize$3$quote(t1.accept$1(_this), t1, true);
  62008. t2 = condition.get$isCustomProperty() ? "" : " ";
  62009. t3 = condition.value;
  62010. t3 = _this._evaluate$_serialize$3$quote(t3.accept$1(_this), t3, true);
  62011. _this._inSupportsDeclaration = oldInSupportsDeclaration;
  62012. return "(" + t1 + ":" + t2 + t3 + ")";
  62013. } else if (condition instanceof A.SupportsFunction)
  62014. return _this._performInterpolation$1(condition.name) + "(" + _this._performInterpolation$1(condition.$arguments) + ")";
  62015. else if (condition instanceof A.SupportsAnything)
  62016. return "(" + _this._performInterpolation$1(condition.contents) + ")";
  62017. else
  62018. throw A.wrapException(A.ArgumentError$("Unknown supports condition type " + A.getRuntimeType(condition).toString$0(0) + ".", null));
  62019. },
  62020. _parenthesize$2(condition, operator) {
  62021. var t1;
  62022. if (!(condition instanceof A.SupportsNegation))
  62023. if (condition instanceof A.SupportsOperation)
  62024. t1 = operator == null || operator !== condition.operator;
  62025. else
  62026. t1 = false;
  62027. else
  62028. t1 = true;
  62029. if (t1)
  62030. return "(" + this._visitSupportsCondition$1(condition) + ")";
  62031. else
  62032. return this._visitSupportsCondition$1(condition);
  62033. },
  62034. _parenthesize$1(condition) {
  62035. return this._parenthesize$2(condition, null);
  62036. },
  62037. visitVariableDeclaration$1(node) {
  62038. var t1, value, _this = this, _null = null;
  62039. if (node.isGuarded) {
  62040. if (node.namespace == null && _this._environment._variables.length === 1) {
  62041. t1 = _this._configuration._values;
  62042. t1 = t1.get$isEmpty(t1) ? _null : t1.remove$1(0, node.name);
  62043. if (t1 != null && !t1.value.$eq(0, B.C__SassNull)) {
  62044. _this._addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableDeclaration_closure(_this, node, t1));
  62045. return _null;
  62046. }
  62047. }
  62048. value = _this._addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableDeclaration_closure0(_this, node));
  62049. if (value != null && !value.$eq(0, B.C__SassNull))
  62050. return _null;
  62051. }
  62052. if (node.isGlobal && !_this._environment.globalVariableExists$1(node.name)) {
  62053. t1 = _this._environment._variables.length === 1 ? string$.As_of_S : string$.As_of_R + A.declarationName(node.span) + ": null` at the stylesheet root.";
  62054. _this._warn$3$deprecation(t1, node.span, true);
  62055. }
  62056. t1 = node.expression;
  62057. _this._addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableDeclaration_closure1(_this, node, _this._withoutSlash$2(t1.accept$1(_this), t1)));
  62058. return _null;
  62059. },
  62060. visitUseRule$1(node) {
  62061. var values, _i, variable, t3, variableNodeWithSpan, configuration, _this = this,
  62062. t1 = node.configuration,
  62063. t2 = t1.length;
  62064. if (t2 !== 0) {
  62065. values = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.ConfiguredValue);
  62066. for (_i = 0; _i < t2; ++_i) {
  62067. variable = t1[_i];
  62068. t3 = variable.expression;
  62069. variableNodeWithSpan = _this._expressionNode$1(t3);
  62070. values.$indexSet(0, variable.name, new A.ConfiguredValue(_this._withoutSlash$2(t3.accept$1(_this), variableNodeWithSpan), variable.span, variableNodeWithSpan));
  62071. }
  62072. configuration = new A.ExplicitConfiguration(node, values, null);
  62073. } else
  62074. configuration = B.Configuration_Map_empty_null;
  62075. _this._loadModule$5$configuration(node.url, "@use", node, new A._EvaluateVisitor_visitUseRule_closure(_this, node), configuration);
  62076. _this._assertConfigurationIsEmpty$1(configuration);
  62077. return null;
  62078. },
  62079. visitWarnRule$1(node) {
  62080. var _this = this,
  62081. value = _this._addExceptionSpan$2(node, new A._EvaluateVisitor_visitWarnRule_closure(_this, node)),
  62082. t1 = value instanceof A.SassString ? value._string$_text : _this._evaluate$_serialize$2(value, node.expression);
  62083. _this._evaluate$_logger.warn$2$trace(0, t1, _this._evaluate$_stackTrace$1(node.span));
  62084. return null;
  62085. },
  62086. visitWhileRule$1(node) {
  62087. return this._environment.scope$1$3$semiGlobal$when(new A._EvaluateVisitor_visitWhileRule_closure(this, node), true, node.hasDeclarations, type$.nullable_Value);
  62088. },
  62089. visitBinaryOperationExpression$1(node) {
  62090. return this._addExceptionSpan$2(node, new A._EvaluateVisitor_visitBinaryOperationExpression_closure(this, node));
  62091. },
  62092. visitValueExpression$1(node) {
  62093. return node.value;
  62094. },
  62095. visitVariableExpression$1(node) {
  62096. var result = this._addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableExpression_closure(this, node));
  62097. if (result != null)
  62098. return result;
  62099. throw A.wrapException(this._evaluate$_exception$2("Undefined variable.", node.span));
  62100. },
  62101. visitUnaryOperationExpression$1(node) {
  62102. return this._addExceptionSpan$2(node, new A._EvaluateVisitor_visitUnaryOperationExpression_closure(node, node.operand.accept$1(this)));
  62103. },
  62104. visitBooleanExpression$1(node) {
  62105. return node.value ? B.SassBoolean_true : B.SassBoolean_false;
  62106. },
  62107. visitIfExpression$1(node) {
  62108. var condition, t2, ifTrue, ifFalse, result, _this = this,
  62109. pair = _this._evaluateMacroArguments$1(node),
  62110. positional = pair.item1,
  62111. named = pair.item2,
  62112. t1 = J.getInterceptor$asx(positional);
  62113. _this._verifyArguments$4(t1.get$length(positional), named, $.$get$IfExpression_declaration(), node);
  62114. if (t1.get$length(positional) > 0)
  62115. condition = t1.$index(positional, 0);
  62116. else {
  62117. t2 = named.$index(0, "condition");
  62118. t2.toString;
  62119. condition = t2;
  62120. }
  62121. if (t1.get$length(positional) > 1)
  62122. ifTrue = t1.$index(positional, 1);
  62123. else {
  62124. t2 = named.$index(0, "if-true");
  62125. t2.toString;
  62126. ifTrue = t2;
  62127. }
  62128. if (t1.get$length(positional) > 2)
  62129. ifFalse = t1.$index(positional, 2);
  62130. else {
  62131. t1 = named.$index(0, "if-false");
  62132. t1.toString;
  62133. ifFalse = t1;
  62134. }
  62135. result = condition.accept$1(_this).get$isTruthy() ? ifTrue : ifFalse;
  62136. return _this._withoutSlash$2(result.accept$1(_this), _this._expressionNode$1(result));
  62137. },
  62138. visitNullExpression$1(node) {
  62139. return B.C__SassNull;
  62140. },
  62141. visitNumberExpression$1(node) {
  62142. return A.SassNumber_SassNumber(node.value, node.unit);
  62143. },
  62144. visitParenthesizedExpression$1(node) {
  62145. return node.expression.accept$1(this);
  62146. },
  62147. visitCalculationExpression$1(node) {
  62148. var $arguments, error, stackTrace, t2, t3, t4, t5, t6, _i, argument, exception, _this = this,
  62149. t1 = A._setArrayType([], type$.JSArray_Object);
  62150. for (t2 = node.$arguments, t3 = t2.length, t4 = node.name, t5 = t4 !== "min", t6 = t4 === "max", _i = 0; _i < t3; ++_i) {
  62151. argument = t2[_i];
  62152. t1.push(_this._visitCalculationValue$2$inMinMax(argument, !t5 || t6));
  62153. }
  62154. $arguments = t1;
  62155. if (_this._inSupportsDeclaration)
  62156. return new A.SassCalculation(t4, A.List_List$unmodifiable($arguments, type$.Object));
  62157. try {
  62158. switch (t4) {
  62159. case "calc":
  62160. t1 = A.SassCalculation_calc(J.$index$asx($arguments, 0));
  62161. return t1;
  62162. case "min":
  62163. t1 = A.SassCalculation_min($arguments);
  62164. return t1;
  62165. case "max":
  62166. t1 = A.SassCalculation_max($arguments);
  62167. return t1;
  62168. case "clamp":
  62169. t1 = J.$index$asx($arguments, 0);
  62170. t3 = J.get$length$asx($arguments) > 1 ? J.$index$asx($arguments, 1) : null;
  62171. t1 = A.SassCalculation_clamp(t1, t3, J.get$length$asx($arguments) > 2 ? J.$index$asx($arguments, 2) : null);
  62172. return t1;
  62173. default:
  62174. t1 = A.UnsupportedError$('Unknown calculation name "' + t4 + '".');
  62175. throw A.wrapException(t1);
  62176. }
  62177. } catch (exception) {
  62178. t1 = A.unwrapException(exception);
  62179. if (t1 instanceof A.SassScriptException) {
  62180. error = t1;
  62181. stackTrace = A.getTraceFromException(exception);
  62182. _this._verifyCompatibleNumbers$2($arguments, t2);
  62183. A.throwWithTrace(_this._evaluate$_exception$2(error.message, node.span), stackTrace);
  62184. } else
  62185. throw exception;
  62186. }
  62187. },
  62188. _verifyCompatibleNumbers$2(args, nodesWithSpans) {
  62189. var i, t1, arg, number1, j, number2;
  62190. for (i = 0; t1 = args.length, i < t1; ++i) {
  62191. arg = args[i];
  62192. if (!(arg instanceof A.SassNumber))
  62193. continue;
  62194. if (arg.get$numeratorUnits(arg).length > 1 || arg.get$denominatorUnits(arg).length !== 0)
  62195. throw A.wrapException(this._evaluate$_exception$2("Number " + arg.toString$0(0) + " isn't compatible with CSS calculations.", J.get$span$z(nodesWithSpans[i])));
  62196. }
  62197. for (i = 0; i < t1 - 1; ++i) {
  62198. number1 = args[i];
  62199. if (!(number1 instanceof A.SassNumber))
  62200. continue;
  62201. for (j = i + 1; t1 = args.length, j < t1; ++j) {
  62202. number2 = args[j];
  62203. if (!(number2 instanceof A.SassNumber))
  62204. continue;
  62205. if (number1.hasPossiblyCompatibleUnits$1(number2))
  62206. continue;
  62207. throw A.wrapException(A.MultiSpanSassRuntimeException$(number1.toString$0(0) + " and " + number2.toString$0(0) + " are incompatible.", J.get$span$z(nodesWithSpans[i]), number1.toString$0(0), A.LinkedHashMap_LinkedHashMap$_literal([J.get$span$z(nodesWithSpans[j]), number2.toString$0(0)], type$.FileSpan, type$.String), this._evaluate$_stackTrace$1(J.get$span$z(nodesWithSpans[i]))));
  62208. }
  62209. }
  62210. },
  62211. _visitCalculationValue$2$inMinMax(node, inMinMax) {
  62212. var inner, result, t1, _this = this;
  62213. if (node instanceof A.ParenthesizedExpression) {
  62214. inner = node.expression;
  62215. result = _this._visitCalculationValue$2$inMinMax(inner, inMinMax);
  62216. if (inner instanceof A.FunctionExpression)
  62217. t1 = A.stringReplaceAllUnchecked(inner.originalName, "_", "-").toLowerCase() === "var" && result instanceof A.SassString && !result._hasQuotes;
  62218. else
  62219. t1 = false;
  62220. return t1 ? new A.SassString("(" + result._string$_text + ")", false) : result;
  62221. } else if (node instanceof A.StringExpression)
  62222. return new A.CalculationInterpolation(_this._performInterpolation$1(node.text));
  62223. else if (node instanceof A.BinaryOperationExpression)
  62224. return _this._addExceptionSpan$2(node, new A._EvaluateVisitor__visitCalculationValue_closure(_this, node, inMinMax));
  62225. else {
  62226. result = node.accept$1(_this);
  62227. if (result instanceof A.SassNumber || result instanceof A.SassCalculation)
  62228. return result;
  62229. if (result instanceof A.SassString && !result._hasQuotes)
  62230. return result;
  62231. throw A.wrapException(_this._evaluate$_exception$2("Value " + result.toString$0(0) + " can't be used in a calculation.", node.get$span(node)));
  62232. }
  62233. },
  62234. _binaryOperatorToCalculationOperator$1(operator) {
  62235. switch (operator) {
  62236. case B.BinaryOperator_qbf:
  62237. return B.CalculationOperator_IyK;
  62238. case B.BinaryOperator_KlB:
  62239. return B.CalculationOperator_2bx;
  62240. case B.BinaryOperator_6pl:
  62241. return B.CalculationOperator_jFr;
  62242. case B.BinaryOperator_qpm:
  62243. return B.CalculationOperator_OvN;
  62244. default:
  62245. throw A.wrapException(A.UnsupportedError$("Invalid calculation operator " + operator.toString$0(0) + "."));
  62246. }
  62247. },
  62248. visitColorExpression$1(node) {
  62249. return node.value;
  62250. },
  62251. visitListExpression$1(node) {
  62252. var t1 = node.contents;
  62253. return A.SassList$(new A.MappedListIterable(t1, new A._EvaluateVisitor_visitListExpression_closure(this), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value>")), node.separator, node.hasBrackets);
  62254. },
  62255. visitMapExpression$1(node) {
  62256. var t2, t3, _i, pair, t4, keyValue, valueValue, oldValueSpan,
  62257. t1 = type$.Value,
  62258. map = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1),
  62259. keyNodes = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.AstNode);
  62260. for (t2 = node.pairs, t3 = t2.length, _i = 0; _i < t3; ++_i) {
  62261. pair = t2[_i];
  62262. t4 = pair.item1;
  62263. keyValue = t4.accept$1(this);
  62264. valueValue = pair.item2.accept$1(this);
  62265. if (map.$index(0, keyValue) != null) {
  62266. t1 = keyNodes.$index(0, keyValue);
  62267. oldValueSpan = t1 == null ? null : t1.get$span(t1);
  62268. t1 = J.getInterceptor$z(t4);
  62269. t2 = t1.get$span(t4);
  62270. t3 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
  62271. if (oldValueSpan != null)
  62272. t3.$indexSet(0, oldValueSpan, "first key");
  62273. throw A.wrapException(A.MultiSpanSassRuntimeException$("Duplicate key.", t2, "second key", t3, this._evaluate$_stackTrace$1(t1.get$span(t4))));
  62274. }
  62275. map.$indexSet(0, keyValue, valueValue);
  62276. keyNodes.$indexSet(0, keyValue, t4);
  62277. }
  62278. return new A.SassMap(A.ConstantMap_ConstantMap$from(map, t1, t1));
  62279. },
  62280. visitFunctionExpression$1(node) {
  62281. var oldInFunction, result, _this = this, t1 = {},
  62282. $function = _this._addExceptionSpan$2(node, new A._EvaluateVisitor_visitFunctionExpression_closure(_this, node));
  62283. t1.$function = $function;
  62284. if ($function == null) {
  62285. if (node.namespace != null)
  62286. throw A.wrapException(_this._evaluate$_exception$2("Undefined function.", node.span));
  62287. t1.$function = new A.PlainCssCallable(node.originalName);
  62288. }
  62289. oldInFunction = _this._inFunction;
  62290. _this._inFunction = true;
  62291. result = _this._addErrorSpan$2(node, new A._EvaluateVisitor_visitFunctionExpression_closure0(t1, _this, node));
  62292. _this._inFunction = oldInFunction;
  62293. return result;
  62294. },
  62295. visitInterpolatedFunctionExpression$1(node) {
  62296. var result, _this = this,
  62297. t1 = _this._performInterpolation$1(node.name),
  62298. oldInFunction = _this._inFunction;
  62299. _this._inFunction = true;
  62300. result = _this._addErrorSpan$2(node, new A._EvaluateVisitor_visitInterpolatedFunctionExpression_closure(_this, node, new A.PlainCssCallable(t1)));
  62301. _this._inFunction = oldInFunction;
  62302. return result;
  62303. },
  62304. _getFunction$2$namespace($name, namespace) {
  62305. var local = this._environment.getFunction$2$namespace($name, namespace);
  62306. if (local != null || namespace != null)
  62307. return local;
  62308. return this._builtInFunctions.$index(0, $name);
  62309. },
  62310. _runUserDefinedCallable$1$4($arguments, callable, nodeWithSpan, run, $V) {
  62311. var oldCallable, result, _this = this,
  62312. evaluated = _this._evaluateArguments$1($arguments),
  62313. $name = callable.declaration.name;
  62314. if ($name !== "@content")
  62315. $name += "()";
  62316. oldCallable = _this._currentCallable;
  62317. _this._currentCallable = callable;
  62318. result = _this._withStackFrame$3($name, nodeWithSpan, new A._EvaluateVisitor__runUserDefinedCallable_closure(_this, callable, evaluated, nodeWithSpan, run, $V));
  62319. _this._currentCallable = oldCallable;
  62320. return result;
  62321. },
  62322. _runFunctionCallable$3($arguments, callable, nodeWithSpan) {
  62323. var t1, t2, t3, first, _i, argument, restArg, rest, _this = this;
  62324. if (callable instanceof A.BuiltInCallable)
  62325. return _this._withoutSlash$2(_this._runBuiltInCallable$3($arguments, callable, nodeWithSpan), nodeWithSpan);
  62326. else if (type$.UserDefinedCallable_Environment._is(callable))
  62327. return _this._runUserDefinedCallable$1$4($arguments, callable, nodeWithSpan, new A._EvaluateVisitor__runFunctionCallable_closure(_this, callable), type$.Value);
  62328. else if (callable instanceof A.PlainCssCallable) {
  62329. t1 = $arguments.named;
  62330. if (t1.get$isNotEmpty(t1) || $arguments.keywordRest != null)
  62331. throw A.wrapException(_this._evaluate$_exception$2(string$.Plain_, nodeWithSpan.get$span(nodeWithSpan)));
  62332. t1 = callable.name + "(";
  62333. for (t2 = $arguments.positional, t3 = t2.length, first = true, _i = 0; _i < t3; ++_i) {
  62334. argument = t2[_i];
  62335. if (first)
  62336. first = false;
  62337. else
  62338. t1 += ", ";
  62339. t1 += _this._evaluate$_serialize$3$quote(argument.accept$1(_this), argument, true);
  62340. }
  62341. restArg = $arguments.rest;
  62342. if (restArg != null) {
  62343. rest = restArg.accept$1(_this);
  62344. if (!first)
  62345. t1 += ", ";
  62346. t1 += _this._evaluate$_serialize$2(rest, restArg);
  62347. }
  62348. t1 += A.Primitives_stringFromCharCode(41);
  62349. return new A.SassString(t1.charCodeAt(0) == 0 ? t1 : t1, false);
  62350. } else
  62351. throw A.wrapException(A.ArgumentError$("Unknown callable type " + J.get$runtimeType$u(callable).toString$0(0) + ".", null));
  62352. },
  62353. _runBuiltInCallable$3($arguments, callable, nodeWithSpan) {
  62354. var callback, result, error, stackTrace, error0, stackTrace0, error1, stackTrace1, message, namedSet, tuple, overload, declaredArguments, i, t1, argument, t2, t3, rest, argumentList, exception, t4, t5, t6, message0, _this = this,
  62355. evaluated = _this._evaluateArguments$1($arguments),
  62356. oldCallableNode = _this._callableNode;
  62357. _this._callableNode = nodeWithSpan;
  62358. namedSet = new A.MapKeySet(evaluated.named, type$.MapKeySet_String);
  62359. tuple = callable.callbackFor$2(evaluated.positional.length, namedSet);
  62360. overload = tuple.item1;
  62361. callback = tuple.item2;
  62362. _this._addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__runBuiltInCallable_closure(overload, evaluated, namedSet));
  62363. declaredArguments = overload.$arguments;
  62364. for (i = evaluated.positional.length, t1 = declaredArguments.length; i < t1; ++i) {
  62365. argument = declaredArguments[i];
  62366. t2 = evaluated.positional;
  62367. t3 = evaluated.named.remove$1(0, argument.name);
  62368. if (t3 == null) {
  62369. t3 = argument.defaultValue;
  62370. t3 = _this._withoutSlash$2(t3.accept$1(_this), t3);
  62371. }
  62372. t2.push(t3);
  62373. }
  62374. if (overload.restArgument != null) {
  62375. if (evaluated.positional.length > t1) {
  62376. rest = B.JSArray_methods.sublist$1(evaluated.positional, t1);
  62377. B.JSArray_methods.removeRange$2(evaluated.positional, t1, evaluated.positional.length);
  62378. } else
  62379. rest = B.List_empty7;
  62380. t1 = evaluated.named;
  62381. argumentList = A.SassArgumentList$(rest, t1, evaluated.separator === B.ListSeparator_undecided_null_undecided ? B.ListSeparator_rXA : evaluated.separator);
  62382. evaluated.positional.push(argumentList);
  62383. } else
  62384. argumentList = null;
  62385. result = null;
  62386. try {
  62387. result = callback.call$1(evaluated.positional);
  62388. } catch (exception) {
  62389. t1 = A.unwrapException(exception);
  62390. if (type$.SassRuntimeException._is(t1))
  62391. throw exception;
  62392. else if (t1 instanceof A.MultiSpanSassScriptException) {
  62393. error = t1;
  62394. stackTrace = A.getTraceFromException(exception);
  62395. t1 = error.message;
  62396. t2 = nodeWithSpan.get$span(nodeWithSpan);
  62397. t3 = error.primaryLabel;
  62398. t4 = error.secondarySpans;
  62399. A.throwWithTrace(new A.MultiSpanSassRuntimeException(_this._evaluate$_stackTrace$1(nodeWithSpan.get$span(nodeWithSpan)), t3, A.ConstantMap_ConstantMap$from(t4, type$.FileSpan, type$.String), t1, t2), stackTrace);
  62400. } else if (t1 instanceof A.MultiSpanSassException) {
  62401. error0 = t1;
  62402. stackTrace0 = A.getTraceFromException(exception);
  62403. t1 = error0._span_exception$_message;
  62404. t2 = error0;
  62405. t3 = J.getInterceptor$z(t2);
  62406. t2 = A.SourceSpanException.prototype.get$span.call(t3, t2);
  62407. t3 = error0.primaryLabel;
  62408. t4 = error0.secondarySpans;
  62409. t5 = error0;
  62410. t6 = J.getInterceptor$z(t5);
  62411. A.throwWithTrace(new A.MultiSpanSassRuntimeException(_this._evaluate$_stackTrace$1(A.SourceSpanException.prototype.get$span.call(t6, t5)), t3, A.ConstantMap_ConstantMap$from(t4, type$.FileSpan, type$.String), t1, t2), stackTrace0);
  62412. } else {
  62413. error1 = t1;
  62414. stackTrace1 = A.getTraceFromException(exception);
  62415. message = null;
  62416. try {
  62417. message = A._asString(J.get$message$x(error1));
  62418. } catch (exception) {
  62419. message0 = J.toString$0$(error1);
  62420. message = message0;
  62421. }
  62422. A.throwWithTrace(_this._evaluate$_exception$2(message, nodeWithSpan.get$span(nodeWithSpan)), stackTrace1);
  62423. }
  62424. }
  62425. _this._callableNode = oldCallableNode;
  62426. if (argumentList == null)
  62427. return result;
  62428. if (evaluated.named.__js_helper$_length === 0)
  62429. return result;
  62430. if (argumentList._wereKeywordsAccessed)
  62431. return result;
  62432. t1 = evaluated.named;
  62433. t1 = t1.get$keys(t1);
  62434. t1 = A.pluralize("argument", t1.get$length(t1), null);
  62435. t2 = evaluated.named;
  62436. throw A.wrapException(A.MultiSpanSassRuntimeException$("No " + t1 + " named " + A.S(A.toSentence(t2.get$keys(t2).map$1$1(0, new A._EvaluateVisitor__runBuiltInCallable_closure0(), type$.Object), "or")) + ".", nodeWithSpan.get$span(nodeWithSpan), "invocation", A.LinkedHashMap_LinkedHashMap$_literal([overload.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), _this._evaluate$_stackTrace$1(nodeWithSpan.get$span(nodeWithSpan))));
  62437. },
  62438. _evaluateArguments$1($arguments) {
  62439. var t1, t2, _i, expression, nodeForSpan, named, namedNodes, t3, t4, t5, restArgs, rest, restNodeForSpan, separator, keywordRestArgs, keywordRest, keywordRestNodeForSpan, _this = this,
  62440. positional = A._setArrayType([], type$.JSArray_Value),
  62441. positionalNodes = A._setArrayType([], type$.JSArray_AstNode);
  62442. for (t1 = $arguments.positional, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  62443. expression = t1[_i];
  62444. nodeForSpan = _this._expressionNode$1(expression);
  62445. positional.push(_this._withoutSlash$2(expression.accept$1(_this), nodeForSpan));
  62446. positionalNodes.push(nodeForSpan);
  62447. }
  62448. t1 = type$.String;
  62449. named = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Value);
  62450. t2 = type$.AstNode;
  62451. namedNodes = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
  62452. for (t3 = $arguments.named, t3 = t3.get$entries(t3), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  62453. t4 = t3.get$current(t3);
  62454. t5 = t4.value;
  62455. nodeForSpan = _this._expressionNode$1(t5);
  62456. t4 = t4.key;
  62457. named.$indexSet(0, t4, _this._withoutSlash$2(t5.accept$1(_this), nodeForSpan));
  62458. namedNodes.$indexSet(0, t4, nodeForSpan);
  62459. }
  62460. restArgs = $arguments.rest;
  62461. if (restArgs == null)
  62462. return new A._ArgumentResults(positional, positionalNodes, named, namedNodes, B.ListSeparator_undecided_null_undecided);
  62463. rest = restArgs.accept$1(_this);
  62464. restNodeForSpan = _this._expressionNode$1(restArgs);
  62465. if (rest instanceof A.SassMap) {
  62466. _this._addRestMap$4(named, rest, restArgs, new A._EvaluateVisitor__evaluateArguments_closure());
  62467. t3 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
  62468. for (t4 = rest._map$_contents, t4 = J.get$iterator$ax(t4.get$keys(t4)), t5 = type$.SassString; t4.moveNext$0();)
  62469. t3.$indexSet(0, t5._as(t4.get$current(t4))._string$_text, restNodeForSpan);
  62470. namedNodes.addAll$1(0, t3);
  62471. separator = B.ListSeparator_undecided_null_undecided;
  62472. } else if (rest instanceof A.SassList) {
  62473. t3 = rest._list$_contents;
  62474. B.JSArray_methods.addAll$1(positional, new A.MappedListIterable(t3, new A._EvaluateVisitor__evaluateArguments_closure0(_this, restNodeForSpan), A._arrayInstanceType(t3)._eval$1("MappedListIterable<1,Value>")));
  62475. B.JSArray_methods.addAll$1(positionalNodes, A.List_List$filled(t3.length, restNodeForSpan, false, t2));
  62476. separator = rest._separator;
  62477. if (rest instanceof A.SassArgumentList) {
  62478. rest._wereKeywordsAccessed = true;
  62479. rest._keywords.forEach$1(0, new A._EvaluateVisitor__evaluateArguments_closure1(_this, named, restNodeForSpan, namedNodes));
  62480. }
  62481. } else {
  62482. positional.push(_this._withoutSlash$2(rest, restNodeForSpan));
  62483. positionalNodes.push(restNodeForSpan);
  62484. separator = B.ListSeparator_undecided_null_undecided;
  62485. }
  62486. keywordRestArgs = $arguments.keywordRest;
  62487. if (keywordRestArgs == null)
  62488. return new A._ArgumentResults(positional, positionalNodes, named, namedNodes, separator);
  62489. keywordRest = keywordRestArgs.accept$1(_this);
  62490. keywordRestNodeForSpan = _this._expressionNode$1(keywordRestArgs);
  62491. if (keywordRest instanceof A.SassMap) {
  62492. _this._addRestMap$4(named, keywordRest, keywordRestArgs, new A._EvaluateVisitor__evaluateArguments_closure2());
  62493. t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
  62494. for (t2 = keywordRest._map$_contents, t2 = J.get$iterator$ax(t2.get$keys(t2)), t3 = type$.SassString; t2.moveNext$0();)
  62495. t1.$indexSet(0, t3._as(t2.get$current(t2))._string$_text, keywordRestNodeForSpan);
  62496. namedNodes.addAll$1(0, t1);
  62497. return new A._ArgumentResults(positional, positionalNodes, named, namedNodes, separator);
  62498. } else
  62499. throw A.wrapException(_this._evaluate$_exception$2(string$.Variabs + keywordRest.toString$0(0) + ").", keywordRestArgs.get$span(keywordRestArgs)));
  62500. },
  62501. _evaluateMacroArguments$1(invocation) {
  62502. var t2, positional, named, rest, restNodeForSpan, keywordRestArgs_, keywordRest, keywordRestNodeForSpan, _this = this,
  62503. t1 = invocation.$arguments,
  62504. restArgs_ = t1.rest;
  62505. if (restArgs_ == null)
  62506. return new A.Tuple2(t1.positional, t1.named, type$.Tuple2_of_List_Expression_and_Map_String_Expression);
  62507. t2 = t1.positional;
  62508. positional = A._setArrayType(t2.slice(0), A._arrayInstanceType(t2));
  62509. named = A.LinkedHashMap_LinkedHashMap$of(t1.named, type$.String, type$.Expression);
  62510. rest = restArgs_.accept$1(_this);
  62511. restNodeForSpan = _this._expressionNode$1(restArgs_);
  62512. if (rest instanceof A.SassMap)
  62513. _this._addRestMap$4(named, rest, invocation, new A._EvaluateVisitor__evaluateMacroArguments_closure(restArgs_));
  62514. else if (rest instanceof A.SassList) {
  62515. t2 = rest._list$_contents;
  62516. B.JSArray_methods.addAll$1(positional, new A.MappedListIterable(t2, new A._EvaluateVisitor__evaluateMacroArguments_closure0(_this, restNodeForSpan, restArgs_), A._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Expression>")));
  62517. if (rest instanceof A.SassArgumentList) {
  62518. rest._wereKeywordsAccessed = true;
  62519. rest._keywords.forEach$1(0, new A._EvaluateVisitor__evaluateMacroArguments_closure1(_this, named, restNodeForSpan, restArgs_));
  62520. }
  62521. } else
  62522. positional.push(new A.ValueExpression(_this._withoutSlash$2(rest, restNodeForSpan), restArgs_.get$span(restArgs_)));
  62523. keywordRestArgs_ = t1.keywordRest;
  62524. if (keywordRestArgs_ == null)
  62525. return new A.Tuple2(positional, named, type$.Tuple2_of_List_Expression_and_Map_String_Expression);
  62526. keywordRest = keywordRestArgs_.accept$1(_this);
  62527. keywordRestNodeForSpan = _this._expressionNode$1(keywordRestArgs_);
  62528. if (keywordRest instanceof A.SassMap) {
  62529. _this._addRestMap$4(named, keywordRest, invocation, new A._EvaluateVisitor__evaluateMacroArguments_closure2(_this, keywordRestNodeForSpan, keywordRestArgs_));
  62530. return new A.Tuple2(positional, named, type$.Tuple2_of_List_Expression_and_Map_String_Expression);
  62531. } else
  62532. throw A.wrapException(_this._evaluate$_exception$2(string$.Variabs + keywordRest.toString$0(0) + ").", keywordRestArgs_.get$span(keywordRestArgs_)));
  62533. },
  62534. _addRestMap$1$4(values, map, nodeWithSpan, convert) {
  62535. map._map$_contents.forEach$1(0, new A._EvaluateVisitor__addRestMap_closure(this, values, convert, this._expressionNode$1(nodeWithSpan), map, nodeWithSpan));
  62536. },
  62537. _addRestMap$4(values, map, nodeWithSpan, convert) {
  62538. return this._addRestMap$1$4(values, map, nodeWithSpan, convert, type$.dynamic);
  62539. },
  62540. _verifyArguments$4(positional, named, $arguments, nodeWithSpan) {
  62541. return this._addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__verifyArguments_closure($arguments, positional, named));
  62542. },
  62543. visitSelectorExpression$1(node) {
  62544. var t1 = this._styleRuleIgnoringAtRoot;
  62545. t1 = t1 == null ? null : t1.originalSelector.get$asSassList();
  62546. return t1 == null ? B.C__SassNull : t1;
  62547. },
  62548. visitStringExpression$1(node) {
  62549. var t1, _this = this,
  62550. oldInSupportsDeclaration = _this._inSupportsDeclaration;
  62551. _this._inSupportsDeclaration = false;
  62552. t1 = node.text.contents;
  62553. t1 = new A.MappedListIterable(t1, new A._EvaluateVisitor_visitStringExpression_closure(_this), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$0(0);
  62554. _this._inSupportsDeclaration = oldInSupportsDeclaration;
  62555. return new A.SassString(t1, node.hasQuotes);
  62556. },
  62557. visitSupportsExpression$1(expression) {
  62558. return new A.SassString(this._visitSupportsCondition$1(expression.condition), false);
  62559. },
  62560. visitCssAtRule$1(node) {
  62561. var wasInKeyframes, wasInUnknownAtRule, t1, _this = this;
  62562. if (_this._declarationName != null)
  62563. throw A.wrapException(_this._evaluate$_exception$2(string$.At_rul, node.span));
  62564. if (node.isChildless) {
  62565. _this._assertInModule$2(_this.__parent, "__parent").addChild$1(A.ModifiableCssAtRule$(node.name, node.span, true, node.value));
  62566. return;
  62567. }
  62568. wasInKeyframes = _this._inKeyframes;
  62569. wasInUnknownAtRule = _this._inUnknownAtRule;
  62570. t1 = node.name;
  62571. if (A.unvendor(t1.get$value(t1)) === "keyframes")
  62572. _this._inKeyframes = true;
  62573. else
  62574. _this._inUnknownAtRule = true;
  62575. _this._withParent$2$4$scopeWhen$through(A.ModifiableCssAtRule$(t1, node.span, false, node.value), new A._EvaluateVisitor_visitCssAtRule_closure(_this, node), false, new A._EvaluateVisitor_visitCssAtRule_closure0(), type$.ModifiableCssAtRule, type$.Null);
  62576. _this._inUnknownAtRule = wasInUnknownAtRule;
  62577. _this._inKeyframes = wasInKeyframes;
  62578. },
  62579. visitCssComment$1(node) {
  62580. var _this = this,
  62581. _s8_ = "__parent",
  62582. _s13_ = "_endOfImports";
  62583. if (_this._assertInModule$2(_this.__parent, _s8_) === _this._assertInModule$2(_this.__root, "_root") && _this._assertInModule$2(_this.__endOfImports, _s13_) === J.get$length$asx(_this._assertInModule$2(_this.__root, "_root").children._collection$_source))
  62584. _this.__endOfImports = _this._assertInModule$2(_this.__endOfImports, _s13_) + 1;
  62585. _this._assertInModule$2(_this.__parent, _s8_).addChild$1(new A.ModifiableCssComment(node.text, node.span));
  62586. },
  62587. visitCssDeclaration$1(node) {
  62588. var t1 = node.name;
  62589. this._assertInModule$2(this.__parent, "__parent").addChild$1(A.ModifiableCssDeclaration$(t1, node.value, node.span, J.startsWith$1$s(t1.get$value(t1), "--"), node.valueSpanForMap));
  62590. },
  62591. visitCssImport$1(node) {
  62592. var t1, _this = this,
  62593. _s8_ = "__parent",
  62594. _s5_ = "_root",
  62595. _s13_ = "_endOfImports",
  62596. modifiableNode = new A.ModifiableCssImport(node.url, node.modifiers, node.span);
  62597. if (_this._assertInModule$2(_this.__parent, _s8_) !== _this._assertInModule$2(_this.__root, _s5_))
  62598. _this._assertInModule$2(_this.__parent, _s8_).addChild$1(modifiableNode);
  62599. else if (_this._assertInModule$2(_this.__endOfImports, _s13_) === J.get$length$asx(_this._assertInModule$2(_this.__root, _s5_).children._collection$_source)) {
  62600. _this._assertInModule$2(_this.__root, _s5_).addChild$1(modifiableNode);
  62601. _this.__endOfImports = _this._assertInModule$2(_this.__endOfImports, _s13_) + 1;
  62602. } else {
  62603. t1 = _this._outOfOrderImports;
  62604. (t1 == null ? _this._outOfOrderImports = A._setArrayType([], type$.JSArray_ModifiableCssImport) : t1).push(modifiableNode);
  62605. }
  62606. },
  62607. visitCssKeyframeBlock$1(node) {
  62608. this._withParent$2$4$scopeWhen$through(A.ModifiableCssKeyframeBlock$(node.selector, node.span), new A._EvaluateVisitor_visitCssKeyframeBlock_closure(this, node), false, new A._EvaluateVisitor_visitCssKeyframeBlock_closure0(), type$.ModifiableCssKeyframeBlock, type$.Null);
  62609. },
  62610. visitCssMediaRule$1(node) {
  62611. var mergedQueries, t1, mergedSources, t2, t3, _this = this;
  62612. if (_this._declarationName != null)
  62613. throw A.wrapException(_this._evaluate$_exception$2(string$.Media_, node.span));
  62614. mergedQueries = A.NullableExtension_andThen(_this._mediaQueries, new A._EvaluateVisitor_visitCssMediaRule_closure(_this, node));
  62615. t1 = mergedQueries == null;
  62616. if (!t1 && J.get$isEmpty$asx(mergedQueries))
  62617. return;
  62618. if (t1)
  62619. mergedSources = B.Set_empty0;
  62620. else {
  62621. t2 = _this._mediaQuerySources;
  62622. t2.toString;
  62623. t2 = A.LinkedHashSet_LinkedHashSet$of(t2, type$.CssMediaQuery);
  62624. t3 = _this._mediaQueries;
  62625. t3.toString;
  62626. t2.addAll$1(0, t3);
  62627. t2.addAll$1(0, node.queries);
  62628. mergedSources = t2;
  62629. }
  62630. t1 = t1 ? node.queries : mergedQueries;
  62631. _this._withParent$2$4$scopeWhen$through(A.ModifiableCssMediaRule$(t1, node.span), new A._EvaluateVisitor_visitCssMediaRule_closure0(_this, mergedQueries, node, mergedSources), false, new A._EvaluateVisitor_visitCssMediaRule_closure1(mergedSources), type$.ModifiableCssMediaRule, type$.Null);
  62632. },
  62633. visitCssStyleRule$1(node) {
  62634. var t1, styleRule, t2, t3, t4, t5, originalSelector, rule, oldAtRootExcludingStyleRule, _this = this,
  62635. _s8_ = "__parent";
  62636. if (_this._declarationName != null)
  62637. throw A.wrapException(_this._evaluate$_exception$2(string$.Style_, node.span));
  62638. t1 = _this._atRootExcludingStyleRule;
  62639. styleRule = t1 ? null : _this._styleRuleIgnoringAtRoot;
  62640. t2 = node.selector;
  62641. t3 = t2.value;
  62642. t4 = styleRule == null;
  62643. t5 = t4 ? null : styleRule.originalSelector;
  62644. originalSelector = t3.resolveParentSelectors$2$implicitParent(t5, !t1);
  62645. rule = A.ModifiableCssStyleRule$(_this._assertInModule$2(_this.__extensionStore, "_extensionStore").addSelector$3(originalSelector, t2.span, _this._mediaQueries), node.span, originalSelector);
  62646. oldAtRootExcludingStyleRule = _this._atRootExcludingStyleRule;
  62647. _this._atRootExcludingStyleRule = false;
  62648. _this._withParent$2$4$scopeWhen$through(rule, new A._EvaluateVisitor_visitCssStyleRule_closure(_this, rule, node), false, new A._EvaluateVisitor_visitCssStyleRule_closure0(), type$.ModifiableCssStyleRule, type$.Null);
  62649. _this._atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  62650. if (t4) {
  62651. t1 = _this._assertInModule$2(_this.__parent, _s8_).children;
  62652. t1 = !t1.get$isEmpty(t1);
  62653. } else
  62654. t1 = false;
  62655. if (t1) {
  62656. t1 = _this._assertInModule$2(_this.__parent, _s8_).children;
  62657. t1.get$last(t1).isGroupEnd = true;
  62658. }
  62659. },
  62660. visitCssStylesheet$1(node) {
  62661. var t1;
  62662. for (t1 = J.get$iterator$ax(node.get$children(node)); t1.moveNext$0();)
  62663. t1.get$current(t1).accept$1(this);
  62664. },
  62665. visitCssSupportsRule$1(node) {
  62666. var _this = this;
  62667. if (_this._declarationName != null)
  62668. throw A.wrapException(_this._evaluate$_exception$2(string$.Suppor, node.span));
  62669. _this._withParent$2$4$scopeWhen$through(A.ModifiableCssSupportsRule$(node.condition, node.span), new A._EvaluateVisitor_visitCssSupportsRule_closure(_this, node), false, new A._EvaluateVisitor_visitCssSupportsRule_closure0(), type$.ModifiableCssSupportsRule, type$.Null);
  62670. },
  62671. _handleReturn$1$2(list, callback) {
  62672. var t1, _i, result;
  62673. for (t1 = list.length, _i = 0; _i < list.length; list.length === t1 || (0, A.throwConcurrentModificationError)(list), ++_i) {
  62674. result = callback.call$1(list[_i]);
  62675. if (result != null)
  62676. return result;
  62677. }
  62678. return null;
  62679. },
  62680. _handleReturn$2(list, callback) {
  62681. return this._handleReturn$1$2(list, callback, type$.dynamic);
  62682. },
  62683. _withEnvironment$1$2(environment, callback) {
  62684. var result,
  62685. oldEnvironment = this._environment;
  62686. this._environment = environment;
  62687. result = callback.call$0();
  62688. this._environment = oldEnvironment;
  62689. return result;
  62690. },
  62691. _withEnvironment$2(environment, callback) {
  62692. return this._withEnvironment$1$2(environment, callback, type$.dynamic);
  62693. },
  62694. _interpolationToValue$3$trim$warnForColor(interpolation, trim, warnForColor) {
  62695. var result = this._performInterpolation$2$warnForColor(interpolation, warnForColor),
  62696. t1 = trim ? A.trimAscii(result, true) : result;
  62697. return new A.CssValue(t1, interpolation.span, type$.CssValue_String);
  62698. },
  62699. _interpolationToValue$1(interpolation) {
  62700. return this._interpolationToValue$3$trim$warnForColor(interpolation, false, false);
  62701. },
  62702. _interpolationToValue$2$warnForColor(interpolation, warnForColor) {
  62703. return this._interpolationToValue$3$trim$warnForColor(interpolation, false, warnForColor);
  62704. },
  62705. _performInterpolation$2$warnForColor(interpolation, warnForColor) {
  62706. var t1, result, _this = this,
  62707. oldInSupportsDeclaration = _this._inSupportsDeclaration;
  62708. _this._inSupportsDeclaration = false;
  62709. t1 = interpolation.contents;
  62710. result = new A.MappedListIterable(t1, new A._EvaluateVisitor__performInterpolation_closure(_this, warnForColor, interpolation), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$0(0);
  62711. _this._inSupportsDeclaration = oldInSupportsDeclaration;
  62712. return result;
  62713. },
  62714. _performInterpolation$1(interpolation) {
  62715. return this._performInterpolation$2$warnForColor(interpolation, false);
  62716. },
  62717. _evaluate$_serialize$3$quote(value, nodeWithSpan, quote) {
  62718. return this._addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__serialize_closure(value, quote));
  62719. },
  62720. _evaluate$_serialize$2(value, nodeWithSpan) {
  62721. return this._evaluate$_serialize$3$quote(value, nodeWithSpan, true);
  62722. },
  62723. _expressionNode$1(expression) {
  62724. var t1;
  62725. if (expression instanceof A.VariableExpression) {
  62726. t1 = this._addExceptionSpan$2(expression, new A._EvaluateVisitor__expressionNode_closure(this, expression));
  62727. return t1 == null ? expression : t1;
  62728. } else
  62729. return expression;
  62730. },
  62731. _withParent$2$4$scopeWhen$through(node, callback, scopeWhen, through, $S, $T) {
  62732. var t1, result, _this = this;
  62733. _this._addChild$2$through(node, through);
  62734. t1 = _this._assertInModule$2(_this.__parent, "__parent");
  62735. _this.__parent = node;
  62736. result = _this._environment.scope$1$2$when(callback, scopeWhen, $T);
  62737. _this.__parent = t1;
  62738. return result;
  62739. },
  62740. _withParent$2$3$scopeWhen(node, callback, scopeWhen, $S, $T) {
  62741. return this._withParent$2$4$scopeWhen$through(node, callback, scopeWhen, null, $S, $T);
  62742. },
  62743. _withParent$2$2(node, callback, $S, $T) {
  62744. return this._withParent$2$4$scopeWhen$through(node, callback, true, null, $S, $T);
  62745. },
  62746. _addChild$2$through(node, through) {
  62747. var grandparent, t1,
  62748. $parent = this._assertInModule$2(this.__parent, "__parent");
  62749. if (through != null) {
  62750. for (; through.call$1($parent); $parent = grandparent) {
  62751. grandparent = $parent._parent;
  62752. if (grandparent == null)
  62753. throw A.wrapException(A.ArgumentError$(string$.throug + node.toString$0(0) + ".", null));
  62754. }
  62755. if ($parent.get$hasFollowingSibling()) {
  62756. t1 = $parent._parent;
  62757. t1.toString;
  62758. $parent = $parent.copyWithoutChildren$0();
  62759. t1.addChild$1($parent);
  62760. }
  62761. }
  62762. $parent.addChild$1(node);
  62763. },
  62764. _addChild$1(node) {
  62765. return this._addChild$2$through(node, null);
  62766. },
  62767. _withStyleRule$1$2(rule, callback) {
  62768. var result,
  62769. oldRule = this._styleRuleIgnoringAtRoot;
  62770. this._styleRuleIgnoringAtRoot = rule;
  62771. result = callback.call$0();
  62772. this._styleRuleIgnoringAtRoot = oldRule;
  62773. return result;
  62774. },
  62775. _withStyleRule$2(rule, callback) {
  62776. return this._withStyleRule$1$2(rule, callback, type$.dynamic);
  62777. },
  62778. _withMediaQueries$1$3(queries, sources, callback) {
  62779. var result, _this = this,
  62780. oldMediaQueries = _this._mediaQueries,
  62781. oldSources = _this._mediaQuerySources;
  62782. _this._mediaQueries = queries;
  62783. _this._mediaQuerySources = sources;
  62784. result = callback.call$0();
  62785. _this._mediaQueries = oldMediaQueries;
  62786. _this._mediaQuerySources = oldSources;
  62787. return result;
  62788. },
  62789. _withMediaQueries$3(queries, sources, callback) {
  62790. return this._withMediaQueries$1$3(queries, sources, callback, type$.dynamic);
  62791. },
  62792. _withStackFrame$1$3(member, nodeWithSpan, callback) {
  62793. var oldMember, result, _this = this,
  62794. t1 = _this._stack;
  62795. t1.push(new A.Tuple2(_this._member, nodeWithSpan, type$.Tuple2_String_AstNode));
  62796. oldMember = _this._member;
  62797. _this._member = member;
  62798. result = callback.call$0();
  62799. _this._member = oldMember;
  62800. t1.pop();
  62801. return result;
  62802. },
  62803. _withStackFrame$3(member, nodeWithSpan, callback) {
  62804. return this._withStackFrame$1$3(member, nodeWithSpan, callback, type$.dynamic);
  62805. },
  62806. _withoutSlash$2(value, nodeForSpan) {
  62807. if (value instanceof A.SassNumber && value.asSlash != null)
  62808. this._warn$3$deprecation(string$.Using__i + A.S(new A._EvaluateVisitor__withoutSlash_recommendation().call$1(value)) + string$.x0a_Morex20, nodeForSpan.get$span(nodeForSpan), true);
  62809. return value.withoutSlash$0();
  62810. },
  62811. _stackFrame$2(member, span) {
  62812. return A.frameForSpan(span, member, A.NullableExtension_andThen(span.get$sourceUrl(span), new A._EvaluateVisitor__stackFrame_closure(this)));
  62813. },
  62814. _evaluate$_stackTrace$1(span) {
  62815. var _this = this,
  62816. t1 = _this._stack;
  62817. t1 = A.List_List$of(new A.MappedListIterable(t1, new A._EvaluateVisitor__stackTrace_closure(_this), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Frame>")), true, type$.Frame);
  62818. if (span != null)
  62819. t1.push(_this._stackFrame$2(_this._member, span));
  62820. return A.Trace$(new A.ReversedListIterable(t1, A._arrayInstanceType(t1)._eval$1("ReversedListIterable<1>")), null);
  62821. },
  62822. _evaluate$_stackTrace$0() {
  62823. return this._evaluate$_stackTrace$1(null);
  62824. },
  62825. _warn$3$deprecation(message, span, deprecation) {
  62826. var t1, _this = this;
  62827. if (_this._quietDeps)
  62828. if (!_this._inDependency) {
  62829. t1 = _this._currentCallable;
  62830. t1 = t1 == null ? null : t1.inDependency;
  62831. t1 = t1 === true;
  62832. } else
  62833. t1 = true;
  62834. else
  62835. t1 = false;
  62836. if (t1)
  62837. return;
  62838. if (!_this._warningsEmitted.add$1(0, new A.Tuple2(message, span, type$.Tuple2_String_SourceSpan)))
  62839. return;
  62840. _this._evaluate$_logger.warn$4$deprecation$span$trace(0, message, deprecation, span, _this._evaluate$_stackTrace$1(span));
  62841. },
  62842. _warn$2(message, span) {
  62843. return this._warn$3$deprecation(message, span, false);
  62844. },
  62845. _evaluate$_exception$2(message, span) {
  62846. var t1 = span == null ? J.get$span$z(B.JSArray_methods.get$last(this._stack).item2) : span;
  62847. return new A.SassRuntimeException(this._evaluate$_stackTrace$1(span), message, t1);
  62848. },
  62849. _evaluate$_exception$1(message) {
  62850. return this._evaluate$_exception$2(message, null);
  62851. },
  62852. _multiSpanException$3(message, primaryLabel, secondaryLabels) {
  62853. var t1 = J.get$span$z(B.JSArray_methods.get$last(this._stack).item2);
  62854. return new A.MultiSpanSassRuntimeException(this._evaluate$_stackTrace$0(), primaryLabel, A.ConstantMap_ConstantMap$from(secondaryLabels, type$.FileSpan, type$.String), message, t1);
  62855. },
  62856. _adjustParseError$1$2(nodeWithSpan, callback) {
  62857. var error, stackTrace, errorText, span, syntheticFile, syntheticSpan, t1, exception, t2, t3, t4, t5, t6, _null = null;
  62858. try {
  62859. t1 = callback.call$0();
  62860. return t1;
  62861. } catch (exception) {
  62862. t1 = A.unwrapException(exception);
  62863. if (t1 instanceof A.SassFormatException) {
  62864. error = t1;
  62865. stackTrace = A.getTraceFromException(exception);
  62866. t1 = error;
  62867. t2 = J.getInterceptor$z(t1);
  62868. t1 = A.SourceSpanException.prototype.get$span.call(t2, t1);
  62869. errorText = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t1.get$file(t1)._decodedChars, 0, _null), 0, _null);
  62870. span = nodeWithSpan.get$span(nodeWithSpan);
  62871. syntheticFile = B.JSString_methods.replaceRange$3(A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(J.get$file$x(span)._decodedChars, 0, _null), 0, _null), J.get$start$z(span).offset, J.get$end$z(span).offset, errorText);
  62872. t1 = A.SourceFile$fromString(syntheticFile, J.get$file$x(span).url);
  62873. t2 = J.get$start$z(span);
  62874. t3 = error;
  62875. t4 = J.getInterceptor$z(t3);
  62876. t3 = A.SourceSpanException.prototype.get$span.call(t4, t3);
  62877. t3 = t3.get$start(t3);
  62878. t4 = J.get$start$z(span);
  62879. t5 = error;
  62880. t6 = J.getInterceptor$z(t5);
  62881. t5 = A.SourceSpanException.prototype.get$span.call(t6, t5);
  62882. syntheticSpan = t1.span$2(0, t2.offset + t3.offset, t4.offset + t5.get$end(t5).offset);
  62883. A.throwWithTrace(this._evaluate$_exception$2(error._span_exception$_message, syntheticSpan), stackTrace);
  62884. } else
  62885. throw exception;
  62886. }
  62887. },
  62888. _adjustParseError$2(nodeWithSpan, callback) {
  62889. return this._adjustParseError$1$2(nodeWithSpan, callback, type$.dynamic);
  62890. },
  62891. _addExceptionSpan$1$2(nodeWithSpan, callback) {
  62892. var error, stackTrace, error0, stackTrace0, t1, exception, t2, t3, t4;
  62893. try {
  62894. t1 = callback.call$0();
  62895. return t1;
  62896. } catch (exception) {
  62897. t1 = A.unwrapException(exception);
  62898. if (t1 instanceof A.MultiSpanSassScriptException) {
  62899. error = t1;
  62900. stackTrace = A.getTraceFromException(exception);
  62901. t1 = error.message;
  62902. t2 = nodeWithSpan.get$span(nodeWithSpan);
  62903. t3 = error.primaryLabel;
  62904. t4 = error.secondarySpans;
  62905. A.throwWithTrace(new A.MultiSpanSassRuntimeException(this._evaluate$_stackTrace$1(nodeWithSpan.get$span(nodeWithSpan)), t3, A.ConstantMap_ConstantMap$from(t4, type$.FileSpan, type$.String), t1, t2), stackTrace);
  62906. } else if (t1 instanceof A.SassScriptException) {
  62907. error0 = t1;
  62908. stackTrace0 = A.getTraceFromException(exception);
  62909. A.throwWithTrace(this._evaluate$_exception$2(error0.message, nodeWithSpan.get$span(nodeWithSpan)), stackTrace0);
  62910. } else
  62911. throw exception;
  62912. }
  62913. },
  62914. _addExceptionSpan$2(nodeWithSpan, callback) {
  62915. return this._addExceptionSpan$1$2(nodeWithSpan, callback, type$.dynamic);
  62916. },
  62917. _addErrorSpan$1$2(nodeWithSpan, callback) {
  62918. var error, stackTrace, t1, exception, t2;
  62919. try {
  62920. t1 = callback.call$0();
  62921. return t1;
  62922. } catch (exception) {
  62923. t1 = A.unwrapException(exception);
  62924. if (type$.SassRuntimeException._is(t1)) {
  62925. error = t1;
  62926. stackTrace = A.getTraceFromException(exception);
  62927. if (!B.JSString_methods.startsWith$1(J.get$span$z(error).get$text(), "@error"))
  62928. throw exception;
  62929. t1 = error._span_exception$_message;
  62930. t2 = nodeWithSpan.get$span(nodeWithSpan);
  62931. A.throwWithTrace(new A.SassRuntimeException(this._evaluate$_stackTrace$0(), t1, t2), stackTrace);
  62932. } else
  62933. throw exception;
  62934. }
  62935. },
  62936. _addErrorSpan$2(nodeWithSpan, callback) {
  62937. return this._addErrorSpan$1$2(nodeWithSpan, callback, type$.dynamic);
  62938. }
  62939. };
  62940. A._EvaluateVisitor_closure.prototype = {
  62941. call$1($arguments) {
  62942. var module, t2,
  62943. t1 = J.getInterceptor$asx($arguments),
  62944. variable = t1.$index($arguments, 0).assertString$1("name");
  62945. t1 = t1.$index($arguments, 1).get$realNull();
  62946. module = t1 == null ? null : t1.assertString$1("module");
  62947. t1 = this.$this._environment;
  62948. t2 = A.stringReplaceAllUnchecked(variable._string$_text, "_", "-");
  62949. return t1.globalVariableExists$2$namespace(t2, module == null ? null : module._string$_text) ? B.SassBoolean_true : B.SassBoolean_false;
  62950. },
  62951. $signature: 19
  62952. };
  62953. A._EvaluateVisitor_closure0.prototype = {
  62954. call$1($arguments) {
  62955. var variable = J.$index$asx($arguments, 0).assertString$1("name"),
  62956. t1 = this.$this._environment;
  62957. return t1.getVariable$1(A.stringReplaceAllUnchecked(variable._string$_text, "_", "-")) != null ? B.SassBoolean_true : B.SassBoolean_false;
  62958. },
  62959. $signature: 19
  62960. };
  62961. A._EvaluateVisitor_closure1.prototype = {
  62962. call$1($arguments) {
  62963. var module, t2, t3, t4,
  62964. t1 = J.getInterceptor$asx($arguments),
  62965. variable = t1.$index($arguments, 0).assertString$1("name");
  62966. t1 = t1.$index($arguments, 1).get$realNull();
  62967. module = t1 == null ? null : t1.assertString$1("module");
  62968. t1 = this.$this;
  62969. t2 = t1._environment;
  62970. t3 = variable._string$_text;
  62971. t4 = A.stringReplaceAllUnchecked(t3, "_", "-");
  62972. return t2.getFunction$2$namespace(t4, module == null ? null : module._string$_text) != null || t1._builtInFunctions.containsKey$1(t3) ? B.SassBoolean_true : B.SassBoolean_false;
  62973. },
  62974. $signature: 19
  62975. };
  62976. A._EvaluateVisitor_closure2.prototype = {
  62977. call$1($arguments) {
  62978. var module, t2,
  62979. t1 = J.getInterceptor$asx($arguments),
  62980. variable = t1.$index($arguments, 0).assertString$1("name");
  62981. t1 = t1.$index($arguments, 1).get$realNull();
  62982. module = t1 == null ? null : t1.assertString$1("module");
  62983. t1 = this.$this._environment;
  62984. t2 = A.stringReplaceAllUnchecked(variable._string$_text, "_", "-");
  62985. return t1.getMixin$2$namespace(t2, module == null ? null : module._string$_text) != null ? B.SassBoolean_true : B.SassBoolean_false;
  62986. },
  62987. $signature: 19
  62988. };
  62989. A._EvaluateVisitor_closure3.prototype = {
  62990. call$1($arguments) {
  62991. var t1 = this.$this._environment;
  62992. if (!t1._inMixin)
  62993. throw A.wrapException(A.SassScriptException$(string$.conten, null));
  62994. return t1._content != null ? B.SassBoolean_true : B.SassBoolean_false;
  62995. },
  62996. $signature: 19
  62997. };
  62998. A._EvaluateVisitor_closure4.prototype = {
  62999. call$1($arguments) {
  63000. var t2, t3, t4,
  63001. t1 = J.$index$asx($arguments, 0).assertString$1("module")._string$_text,
  63002. module = this.$this._environment._environment$_modules.$index(0, t1);
  63003. if (module == null)
  63004. throw A.wrapException('There is no module with namespace "' + t1 + '".');
  63005. t1 = type$.Value;
  63006. t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  63007. for (t3 = module.get$variables(), t3 = t3.get$entries(t3), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  63008. t4 = t3.get$current(t3);
  63009. t2.$indexSet(0, new A.SassString(t4.key, true), t4.value);
  63010. }
  63011. return new A.SassMap(A.ConstantMap_ConstantMap$from(t2, t1, t1));
  63012. },
  63013. $signature: 35
  63014. };
  63015. A._EvaluateVisitor_closure5.prototype = {
  63016. call$1($arguments) {
  63017. var t2, t3, t4,
  63018. t1 = J.$index$asx($arguments, 0).assertString$1("module")._string$_text,
  63019. module = this.$this._environment._environment$_modules.$index(0, t1);
  63020. if (module == null)
  63021. throw A.wrapException('There is no module with namespace "' + t1 + '".');
  63022. t1 = type$.Value;
  63023. t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  63024. for (t3 = module.get$functions(module), t3 = t3.get$entries(t3), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  63025. t4 = t3.get$current(t3);
  63026. t2.$indexSet(0, new A.SassString(t4.key, true), new A.SassFunction(t4.value));
  63027. }
  63028. return new A.SassMap(A.ConstantMap_ConstantMap$from(t2, t1, t1));
  63029. },
  63030. $signature: 35
  63031. };
  63032. A._EvaluateVisitor_closure6.prototype = {
  63033. call$1($arguments) {
  63034. var module, callable, t2,
  63035. t1 = J.getInterceptor$asx($arguments),
  63036. $name = t1.$index($arguments, 0).assertString$1("name"),
  63037. css = t1.$index($arguments, 1).get$isTruthy();
  63038. t1 = t1.$index($arguments, 2).get$realNull();
  63039. module = t1 == null ? null : t1.assertString$1("module");
  63040. if (css && module != null)
  63041. throw A.wrapException(string$.x24css_a);
  63042. if (css)
  63043. callable = new A.PlainCssCallable($name._string$_text);
  63044. else {
  63045. t1 = this.$this;
  63046. t2 = t1._callableNode;
  63047. t2.toString;
  63048. callable = t1._addExceptionSpan$2(t2, new A._EvaluateVisitor__closure1(t1, $name, module));
  63049. }
  63050. if (callable != null)
  63051. return new A.SassFunction(callable);
  63052. throw A.wrapException("Function not found: " + $name.toString$0(0));
  63053. },
  63054. $signature: 215
  63055. };
  63056. A._EvaluateVisitor__closure1.prototype = {
  63057. call$0() {
  63058. var t1 = A.stringReplaceAllUnchecked(this.name._string$_text, "_", "-"),
  63059. t2 = this.module;
  63060. t2 = t2 == null ? null : t2._string$_text;
  63061. return this.$this._getFunction$2$namespace(t1, t2);
  63062. },
  63063. $signature: 128
  63064. };
  63065. A._EvaluateVisitor_closure7.prototype = {
  63066. call$1($arguments) {
  63067. var t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, invocation, callableNode, callable,
  63068. t1 = J.getInterceptor$asx($arguments),
  63069. $function = t1.$index($arguments, 0),
  63070. args = type$.SassArgumentList._as(t1.$index($arguments, 1));
  63071. t1 = this.$this;
  63072. t2 = t1._callableNode;
  63073. t2.toString;
  63074. t3 = A._setArrayType([], type$.JSArray_Expression);
  63075. t4 = type$.String;
  63076. t5 = type$.Expression;
  63077. t6 = t2.get$span(t2);
  63078. t7 = t2.get$span(t2);
  63079. args._wereKeywordsAccessed = true;
  63080. t8 = args._keywords;
  63081. if (t8.get$isEmpty(t8))
  63082. t2 = null;
  63083. else {
  63084. t9 = type$.Value;
  63085. t10 = A.LinkedHashMap_LinkedHashMap$_empty(t9, t9);
  63086. for (args._wereKeywordsAccessed = true, t8 = t8.get$entries(t8), t8 = t8.get$iterator(t8); t8.moveNext$0();) {
  63087. t11 = t8.get$current(t8);
  63088. t10.$indexSet(0, new A.SassString(t11.key, false), t11.value);
  63089. }
  63090. t2 = new A.ValueExpression(new A.SassMap(A.ConstantMap_ConstantMap$from(t10, t9, t9)), t2.get$span(t2));
  63091. }
  63092. invocation = new A.ArgumentInvocation(A.List_List$unmodifiable(t3, t5), A.ConstantMap_ConstantMap$from(A.LinkedHashMap_LinkedHashMap$_empty(t4, t5), t4, t5), new A.ValueExpression(args, t7), t2, t6);
  63093. if ($function instanceof A.SassString) {
  63094. t2 = $function.toString$0(0);
  63095. A.EvaluationContext_current().warn$2$deprecation(0, string$.Passin + t2 + "))", true);
  63096. callableNode = t1._callableNode;
  63097. return t1.visitFunctionExpression$1(new A.FunctionExpression(null, $function._string$_text, invocation, callableNode.get$span(callableNode)));
  63098. }
  63099. callable = $function.assertFunction$1("function").callable;
  63100. if (type$.Callable._is(callable)) {
  63101. t2 = t1._callableNode;
  63102. t2.toString;
  63103. return t1._runFunctionCallable$3(invocation, callable, t2);
  63104. } else
  63105. throw A.wrapException(A.SassScriptException$("The function " + callable.get$name(callable) + string$.x20is_as, null));
  63106. },
  63107. $signature: 4
  63108. };
  63109. A._EvaluateVisitor_closure8.prototype = {
  63110. call$1($arguments) {
  63111. var withMap, t2, values, configuration, t3,
  63112. t1 = J.getInterceptor$asx($arguments),
  63113. url = A.Uri_parse(t1.$index($arguments, 0).assertString$1("url")._string$_text);
  63114. t1 = t1.$index($arguments, 1).get$realNull();
  63115. withMap = t1 == null ? null : t1.assertMap$1("with")._map$_contents;
  63116. t1 = this.$this;
  63117. t2 = t1._callableNode;
  63118. t2.toString;
  63119. if (withMap != null) {
  63120. values = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.ConfiguredValue);
  63121. withMap.forEach$1(0, new A._EvaluateVisitor__closure(values, t2.get$span(t2), t2));
  63122. configuration = new A.ExplicitConfiguration(t2, values, null);
  63123. } else
  63124. configuration = B.Configuration_Map_empty_null;
  63125. t3 = t2.get$span(t2);
  63126. t1._loadModule$7$baseUrl$configuration$namesInErrors(url, "load-css()", t2, new A._EvaluateVisitor__closure0(t1), t3.get$sourceUrl(t3), configuration, true);
  63127. t1._assertConfigurationIsEmpty$2$nameInError(configuration, true);
  63128. },
  63129. $signature: 262
  63130. };
  63131. A._EvaluateVisitor__closure.prototype = {
  63132. call$2(variable, value) {
  63133. var t1 = variable.assertString$1("with key"),
  63134. $name = A.stringReplaceAllUnchecked(t1._string$_text, "_", "-");
  63135. t1 = this.values;
  63136. if (t1.containsKey$1($name))
  63137. throw A.wrapException("The variable $" + $name + " was configured twice.");
  63138. t1.$indexSet(0, $name, new A.ConfiguredValue(value, this.span, this.callableNode));
  63139. },
  63140. $signature: 59
  63141. };
  63142. A._EvaluateVisitor__closure0.prototype = {
  63143. call$1(module) {
  63144. var t1 = this.$this;
  63145. return t1._combineCss$2$clone(module, true).accept$1(t1);
  63146. },
  63147. $signature: 69
  63148. };
  63149. A._EvaluateVisitor_run_closure.prototype = {
  63150. call$0() {
  63151. var _this = this,
  63152. t1 = _this.node,
  63153. t2 = t1.span,
  63154. url = t2.get$sourceUrl(t2);
  63155. if (url != null) {
  63156. t2 = _this.$this;
  63157. t2._activeModules.$indexSet(0, url, null);
  63158. t2._loadedUrls.add$1(0, url);
  63159. }
  63160. t2 = _this.$this;
  63161. return new A.EvaluateResult(t2._combineCss$1(t2._execute$2(_this.importer, t1)));
  63162. },
  63163. $signature: 260
  63164. };
  63165. A._EvaluateVisitor_runExpression_closure.prototype = {
  63166. call$0() {
  63167. var t1 = this.$this,
  63168. t2 = this.expression;
  63169. return t1._withFakeStylesheet$3(this.importer, t2, new A._EvaluateVisitor_runExpression__closure(t1, t2));
  63170. },
  63171. $signature: 40
  63172. };
  63173. A._EvaluateVisitor_runExpression__closure.prototype = {
  63174. call$0() {
  63175. return this.expression.accept$1(this.$this);
  63176. },
  63177. $signature: 40
  63178. };
  63179. A._EvaluateVisitor_runStatement_closure.prototype = {
  63180. call$0() {
  63181. var t1 = this.$this,
  63182. t2 = this.statement;
  63183. return t1._withFakeStylesheet$3(this.importer, t2, new A._EvaluateVisitor_runStatement__closure(t1, t2));
  63184. },
  63185. $signature: 0
  63186. };
  63187. A._EvaluateVisitor_runStatement__closure.prototype = {
  63188. call$0() {
  63189. return this.statement.accept$1(this.$this);
  63190. },
  63191. $signature: 0
  63192. };
  63193. A._EvaluateVisitor__loadModule_closure.prototype = {
  63194. call$0() {
  63195. return this.callback.call$1(this.builtInModule);
  63196. },
  63197. $signature: 0
  63198. };
  63199. A._EvaluateVisitor__loadModule_closure0.prototype = {
  63200. call$0() {
  63201. var oldInDependency, module, error, stackTrace, error0, stackTrace0, error1, stackTrace1, error2, stackTrace2, message, exception, t4, t5, t6, t7, _this = this,
  63202. t1 = _this.$this,
  63203. t2 = _this.nodeWithSpan,
  63204. result = t1._loadStylesheet$3$baseUrl(_this.url.toString$0(0), t2.get$span(t2), _this.baseUrl),
  63205. stylesheet = result.stylesheet,
  63206. t3 = stylesheet.span,
  63207. canonicalUrl = t3.get$sourceUrl(t3);
  63208. if (canonicalUrl != null && t1._activeModules.containsKey$1(canonicalUrl)) {
  63209. message = _this.namesInErrors ? "Module loop: " + $.$get$context().prettyUri$1(canonicalUrl) + " is already being loaded." : string$.Modulel;
  63210. t2 = A.NullableExtension_andThen(t1._activeModules.$index(0, canonicalUrl), new A._EvaluateVisitor__loadModule__closure(t1, message));
  63211. throw A.wrapException(t2 == null ? t1._evaluate$_exception$1(message) : t2);
  63212. }
  63213. if (canonicalUrl != null)
  63214. t1._activeModules.$indexSet(0, canonicalUrl, t2);
  63215. oldInDependency = t1._inDependency;
  63216. t1._inDependency = result.isDependency;
  63217. module = null;
  63218. try {
  63219. module = t1._execute$5$configuration$namesInErrors$nodeWithSpan(result.importer, stylesheet, _this.configuration, _this.namesInErrors, t2);
  63220. } finally {
  63221. t1._activeModules.remove$1(0, canonicalUrl);
  63222. t1._inDependency = oldInDependency;
  63223. }
  63224. try {
  63225. _this.callback.call$1(module);
  63226. } catch (exception) {
  63227. t2 = A.unwrapException(exception);
  63228. if (type$.SassRuntimeException._is(t2))
  63229. throw exception;
  63230. else if (t2 instanceof A.MultiSpanSassException) {
  63231. error = t2;
  63232. stackTrace = A.getTraceFromException(exception);
  63233. t2 = error._span_exception$_message;
  63234. t3 = error;
  63235. t4 = J.getInterceptor$z(t3);
  63236. t3 = A.SourceSpanException.prototype.get$span.call(t4, t3);
  63237. t4 = error.primaryLabel;
  63238. t5 = error.secondarySpans;
  63239. t6 = error;
  63240. t7 = J.getInterceptor$z(t6);
  63241. A.throwWithTrace(new A.MultiSpanSassRuntimeException(t1._evaluate$_stackTrace$1(A.SourceSpanException.prototype.get$span.call(t7, t6)), t4, A.ConstantMap_ConstantMap$from(t5, type$.FileSpan, type$.String), t2, t3), stackTrace);
  63242. } else if (t2 instanceof A.SassException) {
  63243. error0 = t2;
  63244. stackTrace0 = A.getTraceFromException(exception);
  63245. t2 = error0;
  63246. t3 = J.getInterceptor$z(t2);
  63247. A.throwWithTrace(t1._evaluate$_exception$2(error0._span_exception$_message, A.SourceSpanException.prototype.get$span.call(t3, t2)), stackTrace0);
  63248. } else if (t2 instanceof A.MultiSpanSassScriptException) {
  63249. error1 = t2;
  63250. stackTrace1 = A.getTraceFromException(exception);
  63251. A.throwWithTrace(t1._multiSpanException$3(error1.message, error1.primaryLabel, error1.secondarySpans), stackTrace1);
  63252. } else if (t2 instanceof A.SassScriptException) {
  63253. error2 = t2;
  63254. stackTrace2 = A.getTraceFromException(exception);
  63255. A.throwWithTrace(t1._evaluate$_exception$1(error2.message), stackTrace2);
  63256. } else
  63257. throw exception;
  63258. }
  63259. },
  63260. $signature: 1
  63261. };
  63262. A._EvaluateVisitor__loadModule__closure.prototype = {
  63263. call$1(previousLoad) {
  63264. return this.$this._multiSpanException$3(this.message, "new load", A.LinkedHashMap_LinkedHashMap$_literal([previousLoad.get$span(previousLoad), "original load"], type$.FileSpan, type$.String));
  63265. },
  63266. $signature: 94
  63267. };
  63268. A._EvaluateVisitor__execute_closure.prototype = {
  63269. call$0() {
  63270. var t3, t4, t5, t6, _this = this,
  63271. t1 = _this.$this,
  63272. oldImporter = t1._importer,
  63273. oldStylesheet = t1.__stylesheet,
  63274. oldRoot = t1.__root,
  63275. oldParent = t1.__parent,
  63276. oldEndOfImports = t1.__endOfImports,
  63277. oldOutOfOrderImports = t1._outOfOrderImports,
  63278. oldExtensionStore = t1.__extensionStore,
  63279. t2 = t1._atRootExcludingStyleRule,
  63280. oldStyleRule = t2 ? null : t1._styleRuleIgnoringAtRoot,
  63281. oldMediaQueries = t1._mediaQueries,
  63282. oldDeclarationName = t1._declarationName,
  63283. oldInUnknownAtRule = t1._inUnknownAtRule,
  63284. oldInKeyframes = t1._inKeyframes,
  63285. oldConfiguration = t1._configuration;
  63286. t1._importer = _this.importer;
  63287. t3 = t1.__stylesheet = _this.stylesheet;
  63288. t4 = t3.span;
  63289. t5 = t1.__parent = t1.__root = A.ModifiableCssStylesheet$(t4);
  63290. t1.__endOfImports = 0;
  63291. t1._outOfOrderImports = null;
  63292. t1.__extensionStore = _this.extensionStore;
  63293. t1._declarationName = t1._mediaQueries = t1._styleRuleIgnoringAtRoot = null;
  63294. t1._inKeyframes = t1._atRootExcludingStyleRule = t1._inUnknownAtRule = false;
  63295. t6 = _this.configuration;
  63296. if (t6 != null)
  63297. t1._configuration = t6;
  63298. t1.visitStylesheet$1(t3);
  63299. t3 = t1._outOfOrderImports == null ? t5 : new A.CssStylesheet(new A.UnmodifiableListView(t1._addOutOfOrderImports$0(), type$.UnmodifiableListView_CssNode), t4);
  63300. _this.css._value = t3;
  63301. t1._importer = oldImporter;
  63302. t1.__stylesheet = oldStylesheet;
  63303. t1.__root = oldRoot;
  63304. t1.__parent = oldParent;
  63305. t1.__endOfImports = oldEndOfImports;
  63306. t1._outOfOrderImports = oldOutOfOrderImports;
  63307. t1.__extensionStore = oldExtensionStore;
  63308. t1._styleRuleIgnoringAtRoot = oldStyleRule;
  63309. t1._mediaQueries = oldMediaQueries;
  63310. t1._declarationName = oldDeclarationName;
  63311. t1._inUnknownAtRule = oldInUnknownAtRule;
  63312. t1._atRootExcludingStyleRule = t2;
  63313. t1._inKeyframes = oldInKeyframes;
  63314. t1._configuration = oldConfiguration;
  63315. },
  63316. $signature: 1
  63317. };
  63318. A._EvaluateVisitor__combineCss_closure.prototype = {
  63319. call$1(module) {
  63320. return module.get$transitivelyContainsCss();
  63321. },
  63322. $signature: 138
  63323. };
  63324. A._EvaluateVisitor__combineCss_closure0.prototype = {
  63325. call$1(target) {
  63326. return !this.selectors.contains$1(0, target);
  63327. },
  63328. $signature: 14
  63329. };
  63330. A._EvaluateVisitor__combineCss_closure1.prototype = {
  63331. call$1(module) {
  63332. return module.cloneCss$0();
  63333. },
  63334. $signature: 258
  63335. };
  63336. A._EvaluateVisitor__extendModules_closure.prototype = {
  63337. call$1(target) {
  63338. return !this.originalSelectors.contains$1(0, target);
  63339. },
  63340. $signature: 14
  63341. };
  63342. A._EvaluateVisitor__extendModules_closure0.prototype = {
  63343. call$0() {
  63344. return A._setArrayType([], type$.JSArray_ExtensionStore);
  63345. },
  63346. $signature: 222
  63347. };
  63348. A._EvaluateVisitor__topologicalModules_visitModule.prototype = {
  63349. call$1(module) {
  63350. var t1, t2, t3, _i, upstream;
  63351. for (t1 = module.get$upstream(), t2 = t1.length, t3 = this.seen, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
  63352. upstream = t1[_i];
  63353. if (upstream.get$transitivelyContainsCss() && t3.add$1(0, upstream))
  63354. this.call$1(upstream);
  63355. }
  63356. this.sorted.addFirst$1(module);
  63357. },
  63358. $signature: 69
  63359. };
  63360. A._EvaluateVisitor_visitAtRootRule_closure.prototype = {
  63361. call$0() {
  63362. var t1 = A.SpanScanner$(this.resolved, null);
  63363. return new A.AtRootQueryParser(t1, this.$this._evaluate$_logger).parse$0();
  63364. },
  63365. $signature: 119
  63366. };
  63367. A._EvaluateVisitor_visitAtRootRule_closure0.prototype = {
  63368. call$0() {
  63369. var t1, t2, t3, _i;
  63370. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  63371. t1[_i].accept$1(t3);
  63372. },
  63373. $signature: 1
  63374. };
  63375. A._EvaluateVisitor_visitAtRootRule_closure1.prototype = {
  63376. call$0() {
  63377. var t1, t2, t3, _i;
  63378. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  63379. t1[_i].accept$1(t3);
  63380. },
  63381. $signature: 0
  63382. };
  63383. A._EvaluateVisitor__scopeForAtRoot_closure.prototype = {
  63384. call$1(callback) {
  63385. var t1 = this.$this,
  63386. t2 = t1._assertInModule$2(t1.__parent, "__parent");
  63387. t1.__parent = this.newParent;
  63388. t1._environment.scope$1$2$when(callback, this.node.hasDeclarations, type$.void);
  63389. t1.__parent = t2;
  63390. },
  63391. $signature: 28
  63392. };
  63393. A._EvaluateVisitor__scopeForAtRoot_closure0.prototype = {
  63394. call$1(callback) {
  63395. var t1 = this.$this,
  63396. oldAtRootExcludingStyleRule = t1._atRootExcludingStyleRule;
  63397. t1._atRootExcludingStyleRule = true;
  63398. this.innerScope.call$1(callback);
  63399. t1._atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  63400. },
  63401. $signature: 28
  63402. };
  63403. A._EvaluateVisitor__scopeForAtRoot_closure1.prototype = {
  63404. call$1(callback) {
  63405. return this.$this._withMediaQueries$3(null, null, new A._EvaluateVisitor__scopeForAtRoot__closure(this.innerScope, callback));
  63406. },
  63407. $signature: 28
  63408. };
  63409. A._EvaluateVisitor__scopeForAtRoot__closure.prototype = {
  63410. call$0() {
  63411. return this.innerScope.call$1(this.callback);
  63412. },
  63413. $signature: 1
  63414. };
  63415. A._EvaluateVisitor__scopeForAtRoot_closure2.prototype = {
  63416. call$1(callback) {
  63417. var t1 = this.$this,
  63418. wasInKeyframes = t1._inKeyframes;
  63419. t1._inKeyframes = false;
  63420. this.innerScope.call$1(callback);
  63421. t1._inKeyframes = wasInKeyframes;
  63422. },
  63423. $signature: 28
  63424. };
  63425. A._EvaluateVisitor__scopeForAtRoot_closure3.prototype = {
  63426. call$1($parent) {
  63427. return type$.CssAtRule._is($parent);
  63428. },
  63429. $signature: 224
  63430. };
  63431. A._EvaluateVisitor__scopeForAtRoot_closure4.prototype = {
  63432. call$1(callback) {
  63433. var t1 = this.$this,
  63434. wasInUnknownAtRule = t1._inUnknownAtRule;
  63435. t1._inUnknownAtRule = false;
  63436. this.innerScope.call$1(callback);
  63437. t1._inUnknownAtRule = wasInUnknownAtRule;
  63438. },
  63439. $signature: 28
  63440. };
  63441. A._EvaluateVisitor_visitContentRule_closure.prototype = {
  63442. call$0() {
  63443. var t1, t2, t3, _i;
  63444. for (t1 = this.content.declaration.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  63445. t1[_i].accept$1(t3);
  63446. return null;
  63447. },
  63448. $signature: 1
  63449. };
  63450. A._EvaluateVisitor_visitDeclaration_closure.prototype = {
  63451. call$1(value) {
  63452. return new A.CssValue(value.accept$1(this.$this), value.get$span(value), type$.CssValue_Value);
  63453. },
  63454. $signature: 256
  63455. };
  63456. A._EvaluateVisitor_visitDeclaration_closure0.prototype = {
  63457. call$0() {
  63458. var t1, t2, t3, _i;
  63459. for (t1 = this.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  63460. t1[_i].accept$1(t3);
  63461. },
  63462. $signature: 1
  63463. };
  63464. A._EvaluateVisitor_visitEachRule_closure.prototype = {
  63465. call$1(value) {
  63466. var t1 = this.$this,
  63467. t2 = this.nodeWithSpan;
  63468. return t1._environment.setLocalVariable$3(B.JSArray_methods.get$first(this.node.variables), t1._withoutSlash$2(value, t2), t2);
  63469. },
  63470. $signature: 53
  63471. };
  63472. A._EvaluateVisitor_visitEachRule_closure0.prototype = {
  63473. call$1(value) {
  63474. return this.$this._setMultipleVariables$3(this.node.variables, value, this.nodeWithSpan);
  63475. },
  63476. $signature: 53
  63477. };
  63478. A._EvaluateVisitor_visitEachRule_closure1.prototype = {
  63479. call$0() {
  63480. var _this = this,
  63481. t1 = _this.$this;
  63482. return t1._handleReturn$2(_this.list.get$asList(), new A._EvaluateVisitor_visitEachRule__closure(t1, _this.setVariables, _this.node));
  63483. },
  63484. $signature: 39
  63485. };
  63486. A._EvaluateVisitor_visitEachRule__closure.prototype = {
  63487. call$1(element) {
  63488. var t1;
  63489. this.setVariables.call$1(element);
  63490. t1 = this.$this;
  63491. return t1._handleReturn$2(this.node.children, new A._EvaluateVisitor_visitEachRule___closure(t1));
  63492. },
  63493. $signature: 257
  63494. };
  63495. A._EvaluateVisitor_visitEachRule___closure.prototype = {
  63496. call$1(child) {
  63497. return child.accept$1(this.$this);
  63498. },
  63499. $signature: 91
  63500. };
  63501. A._EvaluateVisitor_visitExtendRule_closure.prototype = {
  63502. call$0() {
  63503. return A.SelectorList_SelectorList$parse(A.trimAscii(this.targetText.value, true), false, true, this.$this._evaluate$_logger);
  63504. },
  63505. $signature: 44
  63506. };
  63507. A._EvaluateVisitor_visitAtRule_closure.prototype = {
  63508. call$1(value) {
  63509. return this.$this._interpolationToValue$3$trim$warnForColor(value, true, true);
  63510. },
  63511. $signature: 259
  63512. };
  63513. A._EvaluateVisitor_visitAtRule_closure0.prototype = {
  63514. call$0() {
  63515. var t2, t3, _i,
  63516. t1 = this.$this,
  63517. styleRule = t1._atRootExcludingStyleRule ? null : t1._styleRuleIgnoringAtRoot;
  63518. if (styleRule == null || t1._inKeyframes)
  63519. for (t2 = this.children, t3 = t2.length, _i = 0; _i < t3; ++_i)
  63520. t2[_i].accept$1(t1);
  63521. else
  63522. t1._withParent$2$3$scopeWhen(A.ModifiableCssStyleRule$(styleRule.selector, styleRule.span, styleRule.originalSelector), new A._EvaluateVisitor_visitAtRule__closure(t1, this.children), false, type$.ModifiableCssStyleRule, type$.Null);
  63523. },
  63524. $signature: 1
  63525. };
  63526. A._EvaluateVisitor_visitAtRule__closure.prototype = {
  63527. call$0() {
  63528. var t1, t2, t3, _i;
  63529. for (t1 = this.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  63530. t1[_i].accept$1(t3);
  63531. },
  63532. $signature: 1
  63533. };
  63534. A._EvaluateVisitor_visitAtRule_closure1.prototype = {
  63535. call$1(node) {
  63536. return type$.CssStyleRule._is(node);
  63537. },
  63538. $signature: 7
  63539. };
  63540. A._EvaluateVisitor_visitForRule_closure.prototype = {
  63541. call$0() {
  63542. return this.node.from.accept$1(this.$this).assertNumber$0();
  63543. },
  63544. $signature: 204
  63545. };
  63546. A._EvaluateVisitor_visitForRule_closure0.prototype = {
  63547. call$0() {
  63548. return this.node.to.accept$1(this.$this).assertNumber$0();
  63549. },
  63550. $signature: 204
  63551. };
  63552. A._EvaluateVisitor_visitForRule_closure1.prototype = {
  63553. call$0() {
  63554. return this.fromNumber.assertInt$0();
  63555. },
  63556. $signature: 12
  63557. };
  63558. A._EvaluateVisitor_visitForRule_closure2.prototype = {
  63559. call$0() {
  63560. var t1 = this.fromNumber;
  63561. return this.toNumber.coerce$2(t1.get$numeratorUnits(t1), t1.get$denominatorUnits(t1)).assertInt$0();
  63562. },
  63563. $signature: 12
  63564. };
  63565. A._EvaluateVisitor_visitForRule_closure3.prototype = {
  63566. call$0() {
  63567. var i, t3, t4, t5, t6, t7, t8, result, _this = this,
  63568. t1 = _this.$this,
  63569. t2 = _this.node,
  63570. nodeWithSpan = t1._expressionNode$1(t2.from);
  63571. for (i = _this.from, t3 = _this._box_0, t4 = _this.direction, t5 = t2.variable, t6 = _this.fromNumber, t2 = t2.children; i !== t3.to; i += t4) {
  63572. t7 = t1._environment;
  63573. t8 = t6.get$numeratorUnits(t6);
  63574. t7.setLocalVariable$3(t5, A.SassNumber_SassNumber$withUnits(i, t6.get$denominatorUnits(t6), t8), nodeWithSpan);
  63575. result = t1._handleReturn$2(t2, new A._EvaluateVisitor_visitForRule__closure(t1));
  63576. if (result != null)
  63577. return result;
  63578. }
  63579. return null;
  63580. },
  63581. $signature: 39
  63582. };
  63583. A._EvaluateVisitor_visitForRule__closure.prototype = {
  63584. call$1(child) {
  63585. return child.accept$1(this.$this);
  63586. },
  63587. $signature: 91
  63588. };
  63589. A._EvaluateVisitor_visitForwardRule_closure.prototype = {
  63590. call$1(module) {
  63591. this.$this._environment.forwardModule$2(module, this.node);
  63592. },
  63593. $signature: 69
  63594. };
  63595. A._EvaluateVisitor_visitForwardRule_closure0.prototype = {
  63596. call$1(module) {
  63597. this.$this._environment.forwardModule$2(module, this.node);
  63598. },
  63599. $signature: 69
  63600. };
  63601. A._EvaluateVisitor_visitIfRule_closure.prototype = {
  63602. call$0() {
  63603. var t1 = this.$this;
  63604. return t1._handleReturn$2(this._box_0.clause.children, new A._EvaluateVisitor_visitIfRule__closure(t1));
  63605. },
  63606. $signature: 39
  63607. };
  63608. A._EvaluateVisitor_visitIfRule__closure.prototype = {
  63609. call$1(child) {
  63610. return child.accept$1(this.$this);
  63611. },
  63612. $signature: 91
  63613. };
  63614. A._EvaluateVisitor__visitDynamicImport_closure.prototype = {
  63615. call$0() {
  63616. var t4, oldImporter, oldInDependency, loadsUserDefinedModules, children, t5, t6, t7, t8, t9, t10, environment, module, visitor,
  63617. t1 = this.$this,
  63618. t2 = this.$import,
  63619. result = t1._loadStylesheet$3$forImport(t2.urlString, t2.span, true),
  63620. stylesheet = result.stylesheet,
  63621. t3 = stylesheet.span,
  63622. url = t3.get$sourceUrl(t3);
  63623. if (url != null) {
  63624. t3 = t1._activeModules;
  63625. if (t3.containsKey$1(url)) {
  63626. t2 = A.NullableExtension_andThen(t3.$index(0, url), new A._EvaluateVisitor__visitDynamicImport__closure(t1));
  63627. throw A.wrapException(t2 == null ? t1._evaluate$_exception$1("This file is already being loaded.") : t2);
  63628. }
  63629. t3.$indexSet(0, url, t2);
  63630. }
  63631. t2 = stylesheet._uses;
  63632. t3 = type$.UnmodifiableListView_UseRule;
  63633. t4 = new A.UnmodifiableListView(t2, t3);
  63634. if (t4.get$length(t4) === 0) {
  63635. t4 = new A.UnmodifiableListView(stylesheet._forwards, type$.UnmodifiableListView_ForwardRule);
  63636. t4 = t4.get$length(t4) === 0;
  63637. } else
  63638. t4 = false;
  63639. if (t4) {
  63640. oldImporter = t1._importer;
  63641. t2 = t1._assertInModule$2(t1.__stylesheet, "_stylesheet");
  63642. oldInDependency = t1._inDependency;
  63643. t1._importer = result.importer;
  63644. t1.__stylesheet = stylesheet;
  63645. t1._inDependency = result.isDependency;
  63646. t1.visitStylesheet$1(stylesheet);
  63647. t1._importer = oldImporter;
  63648. t1.__stylesheet = t2;
  63649. t1._inDependency = oldInDependency;
  63650. t1._activeModules.remove$1(0, url);
  63651. return;
  63652. }
  63653. t2 = new A.UnmodifiableListView(t2, t3);
  63654. if (!t2.any$1(t2, new A._EvaluateVisitor__visitDynamicImport__closure0())) {
  63655. t2 = new A.UnmodifiableListView(stylesheet._forwards, type$.UnmodifiableListView_ForwardRule);
  63656. loadsUserDefinedModules = t2.any$1(t2, new A._EvaluateVisitor__visitDynamicImport__closure1());
  63657. } else
  63658. loadsUserDefinedModules = true;
  63659. children = A._Cell$();
  63660. t2 = t1._environment;
  63661. t3 = type$.String;
  63662. t4 = type$.Module_Callable;
  63663. t5 = type$.AstNode;
  63664. t6 = A._setArrayType([], type$.JSArray_Module_Callable);
  63665. t7 = t2._variables;
  63666. t7 = A._setArrayType(t7.slice(0), A._arrayInstanceType(t7));
  63667. t8 = t2._variableNodes;
  63668. t8 = A._setArrayType(t8.slice(0), A._arrayInstanceType(t8));
  63669. t9 = t2._functions;
  63670. t9 = A._setArrayType(t9.slice(0), A._arrayInstanceType(t9));
  63671. t10 = t2._mixins;
  63672. t10 = A._setArrayType(t10.slice(0), A._arrayInstanceType(t10));
  63673. environment = A.Environment$_(A.LinkedHashMap_LinkedHashMap$_empty(t3, t4), A.LinkedHashMap_LinkedHashMap$_empty(t3, t5), A.LinkedHashMap_LinkedHashMap$_empty(t4, t5), t2._importedModules, null, null, t6, t7, t8, t9, t10, t2._content);
  63674. t1._withEnvironment$2(environment, new A._EvaluateVisitor__visitDynamicImport__closure2(t1, result, stylesheet, loadsUserDefinedModules, environment, children));
  63675. module = environment.toDummyModule$0();
  63676. t1._environment.importForwards$1(module);
  63677. if (loadsUserDefinedModules) {
  63678. if (module.transitivelyContainsCss)
  63679. t1._combineCss$2$clone(module, module.transitivelyContainsExtensions).accept$1(t1);
  63680. visitor = new A._ImportedCssVisitor(t1);
  63681. for (t2 = J.get$iterator$ax(children._readLocal$0()); t2.moveNext$0();)
  63682. t2.get$current(t2).accept$1(visitor);
  63683. }
  63684. t1._activeModules.remove$1(0, url);
  63685. },
  63686. $signature: 0
  63687. };
  63688. A._EvaluateVisitor__visitDynamicImport__closure.prototype = {
  63689. call$1(previousLoad) {
  63690. return this.$this._multiSpanException$3("This file is already being loaded.", "new load", A.LinkedHashMap_LinkedHashMap$_literal([previousLoad.get$span(previousLoad), "original load"], type$.FileSpan, type$.String));
  63691. },
  63692. $signature: 94
  63693. };
  63694. A._EvaluateVisitor__visitDynamicImport__closure0.prototype = {
  63695. call$1(rule) {
  63696. return rule.url.get$scheme() !== "sass";
  63697. },
  63698. $signature: 234
  63699. };
  63700. A._EvaluateVisitor__visitDynamicImport__closure1.prototype = {
  63701. call$1(rule) {
  63702. return rule.url.get$scheme() !== "sass";
  63703. },
  63704. $signature: 235
  63705. };
  63706. A._EvaluateVisitor__visitDynamicImport__closure2.prototype = {
  63707. call$0() {
  63708. var t7, t8, t9, _this = this,
  63709. t1 = _this.$this,
  63710. oldImporter = t1._importer,
  63711. t2 = t1._assertInModule$2(t1.__stylesheet, "_stylesheet"),
  63712. t3 = t1._assertInModule$2(t1.__root, "_root"),
  63713. t4 = t1._assertInModule$2(t1.__parent, "__parent"),
  63714. t5 = t1._assertInModule$2(t1.__endOfImports, "_endOfImports"),
  63715. oldOutOfOrderImports = t1._outOfOrderImports,
  63716. oldConfiguration = t1._configuration,
  63717. oldInDependency = t1._inDependency,
  63718. t6 = _this.result;
  63719. t1._importer = t6.importer;
  63720. t7 = t1.__stylesheet = _this.stylesheet;
  63721. t8 = _this.loadsUserDefinedModules;
  63722. if (t8) {
  63723. t9 = A.ModifiableCssStylesheet$(t7.span);
  63724. t1.__root = t9;
  63725. t1.__parent = t1._assertInModule$2(t9, "_root");
  63726. t1.__endOfImports = 0;
  63727. t1._outOfOrderImports = null;
  63728. }
  63729. t1._inDependency = t6.isDependency;
  63730. t6 = new A.UnmodifiableListView(t7._forwards, type$.UnmodifiableListView_ForwardRule);
  63731. if (!t6.get$isEmpty(t6))
  63732. t1._configuration = _this.environment.toImplicitConfiguration$0();
  63733. t1.visitStylesheet$1(t7);
  63734. t6 = t8 ? t1._addOutOfOrderImports$0() : A._setArrayType([], type$.JSArray_ModifiableCssNode);
  63735. _this.children._value = t6;
  63736. t1._importer = oldImporter;
  63737. t1.__stylesheet = t2;
  63738. if (t8) {
  63739. t1.__root = t3;
  63740. t1.__parent = t4;
  63741. t1.__endOfImports = t5;
  63742. t1._outOfOrderImports = oldOutOfOrderImports;
  63743. }
  63744. t1._configuration = oldConfiguration;
  63745. t1._inDependency = oldInDependency;
  63746. },
  63747. $signature: 1
  63748. };
  63749. A._EvaluateVisitor_visitIncludeRule_closure.prototype = {
  63750. call$0() {
  63751. var t1 = this.node;
  63752. return this.$this._environment.getMixin$2$namespace(t1.name, t1.namespace);
  63753. },
  63754. $signature: 128
  63755. };
  63756. A._EvaluateVisitor_visitIncludeRule_closure0.prototype = {
  63757. call$0() {
  63758. return this.node.get$spanWithoutContent();
  63759. },
  63760. $signature: 31
  63761. };
  63762. A._EvaluateVisitor_visitIncludeRule_closure2.prototype = {
  63763. call$1($content) {
  63764. var t1 = this.$this;
  63765. return new A.UserDefinedCallable($content, t1._environment.closure$0(), t1._inDependency, type$.UserDefinedCallable_Environment);
  63766. },
  63767. $signature: 261
  63768. };
  63769. A._EvaluateVisitor_visitIncludeRule_closure1.prototype = {
  63770. call$0() {
  63771. var _this = this,
  63772. t1 = _this.$this,
  63773. t2 = t1._environment,
  63774. oldContent = t2._content;
  63775. t2._content = _this.contentCallable;
  63776. new A._EvaluateVisitor_visitIncludeRule__closure(t1, _this.mixin, _this.nodeWithSpan).call$0();
  63777. t2._content = oldContent;
  63778. },
  63779. $signature: 1
  63780. };
  63781. A._EvaluateVisitor_visitIncludeRule__closure.prototype = {
  63782. call$0() {
  63783. var t1 = this.$this,
  63784. t2 = t1._environment,
  63785. oldInMixin = t2._inMixin;
  63786. t2._inMixin = true;
  63787. new A._EvaluateVisitor_visitIncludeRule___closure(t1, this.mixin, this.nodeWithSpan).call$0();
  63788. t2._inMixin = oldInMixin;
  63789. },
  63790. $signature: 0
  63791. };
  63792. A._EvaluateVisitor_visitIncludeRule___closure.prototype = {
  63793. call$0() {
  63794. var t1, t2, t3, t4, _i;
  63795. for (t1 = this.mixin.declaration.children, t2 = t1.length, t3 = this.$this, t4 = this.nodeWithSpan, _i = 0; _i < t2; ++_i)
  63796. t3._addErrorSpan$2(t4, new A._EvaluateVisitor_visitIncludeRule____closure(t3, t1[_i]));
  63797. },
  63798. $signature: 0
  63799. };
  63800. A._EvaluateVisitor_visitIncludeRule____closure.prototype = {
  63801. call$0() {
  63802. return this.statement.accept$1(this.$this);
  63803. },
  63804. $signature: 39
  63805. };
  63806. A._EvaluateVisitor_visitMediaRule_closure.prototype = {
  63807. call$1(mediaQueries) {
  63808. return this.$this._mergeMediaQueries$2(mediaQueries, this.queries);
  63809. },
  63810. $signature: 97
  63811. };
  63812. A._EvaluateVisitor_visitMediaRule_closure0.prototype = {
  63813. call$0() {
  63814. var _this = this,
  63815. t1 = _this.$this,
  63816. t2 = _this.mergedQueries;
  63817. if (t2 == null)
  63818. t2 = _this.queries;
  63819. t1._withMediaQueries$3(t2, _this.mergedSources, new A._EvaluateVisitor_visitMediaRule__closure(t1, _this.node));
  63820. },
  63821. $signature: 1
  63822. };
  63823. A._EvaluateVisitor_visitMediaRule__closure.prototype = {
  63824. call$0() {
  63825. var t2, t3, _i,
  63826. t1 = this.$this,
  63827. styleRule = t1._atRootExcludingStyleRule ? null : t1._styleRuleIgnoringAtRoot;
  63828. if (styleRule == null)
  63829. for (t2 = this.node.children, t3 = t2.length, _i = 0; _i < t3; ++_i)
  63830. t2[_i].accept$1(t1);
  63831. else
  63832. t1._withParent$2$3$scopeWhen(A.ModifiableCssStyleRule$(styleRule.selector, styleRule.span, styleRule.originalSelector), new A._EvaluateVisitor_visitMediaRule___closure(t1, this.node), false, type$.ModifiableCssStyleRule, type$.Null);
  63833. },
  63834. $signature: 1
  63835. };
  63836. A._EvaluateVisitor_visitMediaRule___closure.prototype = {
  63837. call$0() {
  63838. var t1, t2, t3, _i;
  63839. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  63840. t1[_i].accept$1(t3);
  63841. },
  63842. $signature: 1
  63843. };
  63844. A._EvaluateVisitor_visitMediaRule_closure1.prototype = {
  63845. call$1(node) {
  63846. var t1;
  63847. if (!type$.CssStyleRule._is(node)) {
  63848. t1 = this.mergedSources;
  63849. t1 = t1.get$isNotEmpty(t1) && type$.CssMediaRule._is(node) && B.JSArray_methods.every$1(node.queries, t1.get$contains(t1));
  63850. } else
  63851. t1 = true;
  63852. return t1;
  63853. },
  63854. $signature: 7
  63855. };
  63856. A._EvaluateVisitor__visitMediaQueries_closure.prototype = {
  63857. call$0() {
  63858. var t1 = A.SpanScanner$(this.resolved, null);
  63859. return new A.MediaQueryParser(t1, this.$this._evaluate$_logger).parse$0();
  63860. },
  63861. $signature: 120
  63862. };
  63863. A._EvaluateVisitor_visitStyleRule_closure.prototype = {
  63864. call$0() {
  63865. return A.KeyframeSelectorParser$(this.selectorText.value, this.$this._evaluate$_logger).parse$0();
  63866. },
  63867. $signature: 50
  63868. };
  63869. A._EvaluateVisitor_visitStyleRule_closure0.prototype = {
  63870. call$0() {
  63871. var t1, t2, t3, _i;
  63872. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  63873. t1[_i].accept$1(t3);
  63874. },
  63875. $signature: 1
  63876. };
  63877. A._EvaluateVisitor_visitStyleRule_closure1.prototype = {
  63878. call$1(node) {
  63879. return type$.CssStyleRule._is(node);
  63880. },
  63881. $signature: 7
  63882. };
  63883. A._EvaluateVisitor_visitStyleRule_closure2.prototype = {
  63884. call$0() {
  63885. var _s11_ = "_stylesheet",
  63886. t1 = this.$this;
  63887. return A.SelectorList_SelectorList$parse(this.selectorText.value, !t1._assertInModule$2(t1.__stylesheet, _s11_).plainCss, !t1._assertInModule$2(t1.__stylesheet, _s11_).plainCss, t1._evaluate$_logger);
  63888. },
  63889. $signature: 44
  63890. };
  63891. A._EvaluateVisitor_visitStyleRule_closure3.prototype = {
  63892. call$0() {
  63893. var t1 = this._box_0.parsedSelector,
  63894. t2 = this.$this,
  63895. t3 = t2._styleRuleIgnoringAtRoot;
  63896. t3 = t3 == null ? null : t3.originalSelector;
  63897. return t1.resolveParentSelectors$2$implicitParent(t3, !t2._atRootExcludingStyleRule);
  63898. },
  63899. $signature: 44
  63900. };
  63901. A._EvaluateVisitor_visitStyleRule_closure4.prototype = {
  63902. call$0() {
  63903. var t1 = this.$this;
  63904. t1._withStyleRule$2(this.rule, new A._EvaluateVisitor_visitStyleRule__closure(t1, this.node));
  63905. },
  63906. $signature: 1
  63907. };
  63908. A._EvaluateVisitor_visitStyleRule__closure.prototype = {
  63909. call$0() {
  63910. var t1, t2, t3, _i;
  63911. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  63912. t1[_i].accept$1(t3);
  63913. },
  63914. $signature: 1
  63915. };
  63916. A._EvaluateVisitor_visitStyleRule_closure5.prototype = {
  63917. call$1(node) {
  63918. return type$.CssStyleRule._is(node);
  63919. },
  63920. $signature: 7
  63921. };
  63922. A._EvaluateVisitor_visitStyleRule_closure6.prototype = {
  63923. call$1(child) {
  63924. return type$.CssComment._is(child);
  63925. },
  63926. $signature: 129
  63927. };
  63928. A._EvaluateVisitor_visitSupportsRule_closure.prototype = {
  63929. call$0() {
  63930. var t2, t3, _i,
  63931. t1 = this.$this,
  63932. styleRule = t1._atRootExcludingStyleRule ? null : t1._styleRuleIgnoringAtRoot;
  63933. if (styleRule == null)
  63934. for (t2 = this.node.children, t3 = t2.length, _i = 0; _i < t3; ++_i)
  63935. t2[_i].accept$1(t1);
  63936. else
  63937. t1._withParent$2$2(A.ModifiableCssStyleRule$(styleRule.selector, styleRule.span, styleRule.originalSelector), new A._EvaluateVisitor_visitSupportsRule__closure(t1, this.node), type$.ModifiableCssStyleRule, type$.Null);
  63938. },
  63939. $signature: 1
  63940. };
  63941. A._EvaluateVisitor_visitSupportsRule__closure.prototype = {
  63942. call$0() {
  63943. var t1, t2, t3, _i;
  63944. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  63945. t1[_i].accept$1(t3);
  63946. },
  63947. $signature: 1
  63948. };
  63949. A._EvaluateVisitor_visitSupportsRule_closure0.prototype = {
  63950. call$1(node) {
  63951. return type$.CssStyleRule._is(node);
  63952. },
  63953. $signature: 7
  63954. };
  63955. A._EvaluateVisitor_visitVariableDeclaration_closure.prototype = {
  63956. call$0() {
  63957. var t1 = this.override;
  63958. this.$this._environment.setVariable$4$global(this.node.name, t1.value, t1.assignmentNode, true);
  63959. },
  63960. $signature: 1
  63961. };
  63962. A._EvaluateVisitor_visitVariableDeclaration_closure0.prototype = {
  63963. call$0() {
  63964. var t1 = this.node;
  63965. return this.$this._environment.getVariable$2$namespace(t1.name, t1.namespace);
  63966. },
  63967. $signature: 39
  63968. };
  63969. A._EvaluateVisitor_visitVariableDeclaration_closure1.prototype = {
  63970. call$0() {
  63971. var t1 = this.$this,
  63972. t2 = this.node;
  63973. t1._environment.setVariable$5$global$namespace(t2.name, this.value, t1._expressionNode$1(t2.expression), t2.isGlobal, t2.namespace);
  63974. },
  63975. $signature: 1
  63976. };
  63977. A._EvaluateVisitor_visitUseRule_closure.prototype = {
  63978. call$1(module) {
  63979. var t1 = this.node;
  63980. this.$this._environment.addModule$3$namespace(module, t1, t1.namespace);
  63981. },
  63982. $signature: 69
  63983. };
  63984. A._EvaluateVisitor_visitWarnRule_closure.prototype = {
  63985. call$0() {
  63986. return this.node.expression.accept$1(this.$this);
  63987. },
  63988. $signature: 40
  63989. };
  63990. A._EvaluateVisitor_visitWhileRule_closure.prototype = {
  63991. call$0() {
  63992. var t1, t2, t3, result;
  63993. for (t1 = this.node, t2 = t1.condition, t3 = this.$this, t1 = t1.children; t2.accept$1(t3).get$isTruthy();) {
  63994. result = t3._handleReturn$2(t1, new A._EvaluateVisitor_visitWhileRule__closure(t3));
  63995. if (result != null)
  63996. return result;
  63997. }
  63998. return null;
  63999. },
  64000. $signature: 39
  64001. };
  64002. A._EvaluateVisitor_visitWhileRule__closure.prototype = {
  64003. call$1(child) {
  64004. return child.accept$1(this.$this);
  64005. },
  64006. $signature: 91
  64007. };
  64008. A._EvaluateVisitor_visitBinaryOperationExpression_closure.prototype = {
  64009. call$0() {
  64010. var right, result,
  64011. t1 = this.node,
  64012. t2 = this.$this,
  64013. left = t1.left.accept$1(t2),
  64014. t3 = t1.operator;
  64015. switch (t3) {
  64016. case B.BinaryOperator_axY:
  64017. right = t1.right.accept$1(t2);
  64018. return new A.SassString(A.serializeValue(left, false, true) + "=" + A.serializeValue(right, false, true), false);
  64019. case B.BinaryOperator_or_or_1_or:
  64020. return left.get$isTruthy() ? left : t1.right.accept$1(t2);
  64021. case B.BinaryOperator_and_and_2_and:
  64022. return left.get$isTruthy() ? t1.right.accept$1(t2) : left;
  64023. case B.BinaryOperator_nZh:
  64024. return left.$eq(0, t1.right.accept$1(t2)) ? B.SassBoolean_true : B.SassBoolean_false;
  64025. case B.BinaryOperator_Vr9:
  64026. return !left.$eq(0, t1.right.accept$1(t2)) ? B.SassBoolean_true : B.SassBoolean_false;
  64027. case B.BinaryOperator_cw1:
  64028. return left.greaterThan$1(t1.right.accept$1(t2));
  64029. case B.BinaryOperator_Wma:
  64030. return left.greaterThanOrEquals$1(t1.right.accept$1(t2));
  64031. case B.BinaryOperator_apg:
  64032. return left.lessThan$1(t1.right.accept$1(t2));
  64033. case B.BinaryOperator_oqF:
  64034. return left.lessThanOrEquals$1(t1.right.accept$1(t2));
  64035. case B.BinaryOperator_qbf:
  64036. return left.plus$1(t1.right.accept$1(t2));
  64037. case B.BinaryOperator_KlB:
  64038. return left.minus$1(t1.right.accept$1(t2));
  64039. case B.BinaryOperator_6pl:
  64040. return left.times$1(t1.right.accept$1(t2));
  64041. case B.BinaryOperator_qpm:
  64042. right = t1.right.accept$1(t2);
  64043. result = left.dividedBy$1(right);
  64044. if (t1.allowsSlash && left instanceof A.SassNumber && right instanceof A.SassNumber)
  64045. return type$.SassNumber._as(result).withSlash$2(left, right);
  64046. else {
  64047. if (left instanceof A.SassNumber && right instanceof A.SassNumber)
  64048. t2._warn$3$deprecation(string$.Using__o + A.S(new A._EvaluateVisitor_visitBinaryOperationExpression_closure_recommendation().call$1(t1)) + " or calc(" + t1.toString$0(0) + string$.x29x0a_Morx20, t1.get$span(t1), true);
  64049. return result;
  64050. }
  64051. case B.BinaryOperator_PHH:
  64052. return left.modulo$1(t1.right.accept$1(t2));
  64053. default:
  64054. throw A.wrapException(A.ArgumentError$("Unknown binary operator " + t3.toString$0(0) + ".", null));
  64055. }
  64056. },
  64057. $signature: 40
  64058. };
  64059. A._EvaluateVisitor_visitBinaryOperationExpression_closure_recommendation.prototype = {
  64060. call$1(expression) {
  64061. if (expression instanceof A.BinaryOperationExpression && expression.operator === B.BinaryOperator_qpm)
  64062. return "math.div(" + A.S(this.call$1(expression.left)) + ", " + A.S(this.call$1(expression.right)) + ")";
  64063. else if (expression instanceof A.ParenthesizedExpression)
  64064. return expression.expression.toString$0(0);
  64065. else
  64066. return expression.toString$0(0);
  64067. },
  64068. $signature: 123
  64069. };
  64070. A._EvaluateVisitor_visitVariableExpression_closure.prototype = {
  64071. call$0() {
  64072. var t1 = this.node;
  64073. return this.$this._environment.getVariable$2$namespace(t1.name, t1.namespace);
  64074. },
  64075. $signature: 39
  64076. };
  64077. A._EvaluateVisitor_visitUnaryOperationExpression_closure.prototype = {
  64078. call$0() {
  64079. var _this = this,
  64080. t1 = _this.node.operator;
  64081. switch (t1) {
  64082. case B.UnaryOperator_gg4:
  64083. return _this.operand.unaryPlus$0();
  64084. case B.UnaryOperator_TLI:
  64085. return _this.operand.unaryMinus$0();
  64086. case B.UnaryOperator_Ix1:
  64087. return new A.SassString("/" + A.serializeValue(_this.operand, false, true), false);
  64088. case B.UnaryOperator_not_not_not:
  64089. return _this.operand.unaryNot$0();
  64090. default:
  64091. throw A.wrapException(A.StateError$("Unknown unary operator " + t1.toString$0(0) + "."));
  64092. }
  64093. },
  64094. $signature: 40
  64095. };
  64096. A._EvaluateVisitor__visitCalculationValue_closure.prototype = {
  64097. call$0() {
  64098. var t1 = this.$this,
  64099. t2 = this.node,
  64100. t3 = this.inMinMax;
  64101. return A.SassCalculation_operateInternal(t1._binaryOperatorToCalculationOperator$1(t2.operator), t1._visitCalculationValue$2$inMinMax(t2.left, t3), t1._visitCalculationValue$2$inMinMax(t2.right, t3), t3, !t1._inSupportsDeclaration);
  64102. },
  64103. $signature: 76
  64104. };
  64105. A._EvaluateVisitor_visitListExpression_closure.prototype = {
  64106. call$1(expression) {
  64107. return expression.accept$1(this.$this);
  64108. },
  64109. $signature: 263
  64110. };
  64111. A._EvaluateVisitor_visitFunctionExpression_closure.prototype = {
  64112. call$0() {
  64113. var t1 = this.node;
  64114. return this.$this._getFunction$2$namespace(A.stringReplaceAllUnchecked(t1.originalName, "_", "-"), t1.namespace);
  64115. },
  64116. $signature: 128
  64117. };
  64118. A._EvaluateVisitor_visitFunctionExpression_closure0.prototype = {
  64119. call$0() {
  64120. var t1 = this.node;
  64121. return this.$this._runFunctionCallable$3(t1.$arguments, this._box_0.$function, t1);
  64122. },
  64123. $signature: 40
  64124. };
  64125. A._EvaluateVisitor_visitInterpolatedFunctionExpression_closure.prototype = {
  64126. call$0() {
  64127. var t1 = this.node;
  64128. return this.$this._runFunctionCallable$3(t1.$arguments, this.$function, t1);
  64129. },
  64130. $signature: 40
  64131. };
  64132. A._EvaluateVisitor__runUserDefinedCallable_closure.prototype = {
  64133. call$0() {
  64134. var _this = this,
  64135. t1 = _this.$this,
  64136. t2 = _this.callable;
  64137. return t1._withEnvironment$2(t2.environment.closure$0(), new A._EvaluateVisitor__runUserDefinedCallable__closure(t1, _this.evaluated, t2, _this.nodeWithSpan, _this.run, _this.V));
  64138. },
  64139. $signature() {
  64140. return this.V._eval$1("0()");
  64141. }
  64142. };
  64143. A._EvaluateVisitor__runUserDefinedCallable__closure.prototype = {
  64144. call$0() {
  64145. var _this = this,
  64146. t1 = _this.$this,
  64147. t2 = _this.V;
  64148. return t1._environment.scope$1$1(new A._EvaluateVisitor__runUserDefinedCallable___closure(t1, _this.evaluated, _this.callable, _this.nodeWithSpan, _this.run, t2), t2);
  64149. },
  64150. $signature() {
  64151. return this.V._eval$1("0()");
  64152. }
  64153. };
  64154. A._EvaluateVisitor__runUserDefinedCallable___closure.prototype = {
  64155. call$0() {
  64156. var declaredArguments, t7, minLength, t8, i, argument, t9, value, t10, t11, restArgument, rest, argumentList, result, _this = this,
  64157. t1 = _this.$this,
  64158. t2 = _this.evaluated,
  64159. t3 = t2.positional,
  64160. t4 = t2.named,
  64161. t5 = _this.callable.declaration.$arguments,
  64162. t6 = _this.nodeWithSpan;
  64163. t1._verifyArguments$4(t3.length, t4, t5, t6);
  64164. declaredArguments = t5.$arguments;
  64165. t7 = declaredArguments.length;
  64166. minLength = Math.min(t3.length, t7);
  64167. for (t8 = t2.positionalNodes, i = 0; i < minLength; ++i)
  64168. t1._environment.setLocalVariable$3(declaredArguments[i].name, t3[i], t8[i]);
  64169. for (i = t3.length, t8 = t2.namedNodes; i < t7; ++i) {
  64170. argument = declaredArguments[i];
  64171. t9 = argument.name;
  64172. value = t4.remove$1(0, t9);
  64173. if (value == null) {
  64174. t10 = argument.defaultValue;
  64175. value = t1._withoutSlash$2(t10.accept$1(t1), t1._expressionNode$1(t10));
  64176. }
  64177. t10 = t1._environment;
  64178. t11 = t8.$index(0, t9);
  64179. if (t11 == null) {
  64180. t11 = argument.defaultValue;
  64181. t11.toString;
  64182. t11 = t1._expressionNode$1(t11);
  64183. }
  64184. t10.setLocalVariable$3(t9, value, t11);
  64185. }
  64186. restArgument = t5.restArgument;
  64187. if (restArgument != null) {
  64188. rest = t3.length > t7 ? B.JSArray_methods.sublist$1(t3, t7) : B.List_empty7;
  64189. t2 = t2.separator;
  64190. argumentList = A.SassArgumentList$(rest, t4, t2 === B.ListSeparator_undecided_null_undecided ? B.ListSeparator_rXA : t2);
  64191. t1._environment.setLocalVariable$3(restArgument, argumentList, t6);
  64192. } else
  64193. argumentList = null;
  64194. result = _this.run.call$0();
  64195. if (argumentList == null)
  64196. return result;
  64197. t2 = t4.__js_helper$_length;
  64198. if (t2 === 0)
  64199. return result;
  64200. if (argumentList._wereKeywordsAccessed)
  64201. return result;
  64202. t3 = A._instanceType(t4)._eval$1("LinkedHashMapKeyIterable<1>");
  64203. throw A.wrapException(A.MultiSpanSassRuntimeException$("No " + A.pluralize("argument", t2, null) + " named " + A.toSentence(A.MappedIterable_MappedIterable(new A.LinkedHashMapKeyIterable(t4, t3), new A._EvaluateVisitor__runUserDefinedCallable____closure(), t3._eval$1("Iterable.E"), type$.Object), "or") + ".", t6.get$span(t6), "invocation", A.LinkedHashMap_LinkedHashMap$_literal([t5.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), t1._evaluate$_stackTrace$1(t6.get$span(t6))));
  64204. },
  64205. $signature() {
  64206. return this.V._eval$1("0()");
  64207. }
  64208. };
  64209. A._EvaluateVisitor__runUserDefinedCallable____closure.prototype = {
  64210. call$1($name) {
  64211. return "$" + $name;
  64212. },
  64213. $signature: 5
  64214. };
  64215. A._EvaluateVisitor__runFunctionCallable_closure.prototype = {
  64216. call$0() {
  64217. var t1, t2, t3, t4, _i, $returnValue;
  64218. for (t1 = this.callable.declaration, t2 = t1.children, t3 = t2.length, t4 = this.$this, _i = 0; _i < t3; ++_i) {
  64219. $returnValue = t2[_i].accept$1(t4);
  64220. if ($returnValue instanceof A.Value)
  64221. return $returnValue;
  64222. }
  64223. throw A.wrapException(t4._evaluate$_exception$2("Function finished without @return.", t1.span));
  64224. },
  64225. $signature: 40
  64226. };
  64227. A._EvaluateVisitor__runBuiltInCallable_closure.prototype = {
  64228. call$0() {
  64229. return this.overload.verify$2(this.evaluated.positional.length, this.namedSet);
  64230. },
  64231. $signature: 0
  64232. };
  64233. A._EvaluateVisitor__runBuiltInCallable_closure0.prototype = {
  64234. call$1($name) {
  64235. return "$" + $name;
  64236. },
  64237. $signature: 5
  64238. };
  64239. A._EvaluateVisitor__evaluateArguments_closure.prototype = {
  64240. call$1(value) {
  64241. return value;
  64242. },
  64243. $signature: 34
  64244. };
  64245. A._EvaluateVisitor__evaluateArguments_closure0.prototype = {
  64246. call$1(value) {
  64247. return this.$this._withoutSlash$2(value, this.restNodeForSpan);
  64248. },
  64249. $signature: 34
  64250. };
  64251. A._EvaluateVisitor__evaluateArguments_closure1.prototype = {
  64252. call$2(key, value) {
  64253. var _this = this,
  64254. t1 = _this.restNodeForSpan;
  64255. _this.named.$indexSet(0, key, _this.$this._withoutSlash$2(value, t1));
  64256. _this.namedNodes.$indexSet(0, key, t1);
  64257. },
  64258. $signature: 99
  64259. };
  64260. A._EvaluateVisitor__evaluateArguments_closure2.prototype = {
  64261. call$1(value) {
  64262. return value;
  64263. },
  64264. $signature: 34
  64265. };
  64266. A._EvaluateVisitor__evaluateMacroArguments_closure.prototype = {
  64267. call$1(value) {
  64268. var t1 = this.restArgs;
  64269. return new A.ValueExpression(value, t1.get$span(t1));
  64270. },
  64271. $signature: 52
  64272. };
  64273. A._EvaluateVisitor__evaluateMacroArguments_closure0.prototype = {
  64274. call$1(value) {
  64275. var t1 = this.restArgs;
  64276. return new A.ValueExpression(this.$this._withoutSlash$2(value, this.restNodeForSpan), t1.get$span(t1));
  64277. },
  64278. $signature: 52
  64279. };
  64280. A._EvaluateVisitor__evaluateMacroArguments_closure1.prototype = {
  64281. call$2(key, value) {
  64282. var _this = this,
  64283. t1 = _this.restArgs;
  64284. _this.named.$indexSet(0, key, new A.ValueExpression(_this.$this._withoutSlash$2(value, _this.restNodeForSpan), t1.get$span(t1)));
  64285. },
  64286. $signature: 99
  64287. };
  64288. A._EvaluateVisitor__evaluateMacroArguments_closure2.prototype = {
  64289. call$1(value) {
  64290. var t1 = this.keywordRestArgs;
  64291. return new A.ValueExpression(this.$this._withoutSlash$2(value, this.keywordRestNodeForSpan), t1.get$span(t1));
  64292. },
  64293. $signature: 52
  64294. };
  64295. A._EvaluateVisitor__addRestMap_closure.prototype = {
  64296. call$2(key, value) {
  64297. var t2, _this = this,
  64298. t1 = _this.$this;
  64299. if (key instanceof A.SassString)
  64300. _this.values.$indexSet(0, key._string$_text, _this.convert.call$1(t1._withoutSlash$2(value, _this.expressionNode)));
  64301. else {
  64302. t2 = _this.nodeWithSpan;
  64303. throw A.wrapException(t1._evaluate$_exception$2(string$.Variab_ + key.toString$0(0) + " is not a string in " + _this.map.toString$0(0) + ".", t2.get$span(t2)));
  64304. }
  64305. },
  64306. $signature: 59
  64307. };
  64308. A._EvaluateVisitor__verifyArguments_closure.prototype = {
  64309. call$0() {
  64310. return this.$arguments.verify$2(this.positional, new A.MapKeySet(this.named, type$.MapKeySet_String));
  64311. },
  64312. $signature: 0
  64313. };
  64314. A._EvaluateVisitor_visitStringExpression_closure.prototype = {
  64315. call$1(value) {
  64316. var t1, result;
  64317. if (typeof value == "string")
  64318. return value;
  64319. type$.Expression._as(value);
  64320. t1 = this.$this;
  64321. result = value.accept$1(t1);
  64322. return result instanceof A.SassString ? result._string$_text : t1._evaluate$_serialize$3$quote(result, value, false);
  64323. },
  64324. $signature: 46
  64325. };
  64326. A._EvaluateVisitor_visitCssAtRule_closure.prototype = {
  64327. call$0() {
  64328. var t1, t2, t3, t4;
  64329. for (t1 = this.node.children, t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = this.$this, t3 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) {
  64330. t4 = t1.__internal$_current;
  64331. (t4 == null ? t3._as(t4) : t4).accept$1(t2);
  64332. }
  64333. },
  64334. $signature: 1
  64335. };
  64336. A._EvaluateVisitor_visitCssAtRule_closure0.prototype = {
  64337. call$1(node) {
  64338. return type$.CssStyleRule._is(node);
  64339. },
  64340. $signature: 7
  64341. };
  64342. A._EvaluateVisitor_visitCssKeyframeBlock_closure.prototype = {
  64343. call$0() {
  64344. var t1, t2, t3, t4;
  64345. for (t1 = this.node.children, t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = this.$this, t3 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) {
  64346. t4 = t1.__internal$_current;
  64347. (t4 == null ? t3._as(t4) : t4).accept$1(t2);
  64348. }
  64349. },
  64350. $signature: 1
  64351. };
  64352. A._EvaluateVisitor_visitCssKeyframeBlock_closure0.prototype = {
  64353. call$1(node) {
  64354. return type$.CssStyleRule._is(node);
  64355. },
  64356. $signature: 7
  64357. };
  64358. A._EvaluateVisitor_visitCssMediaRule_closure.prototype = {
  64359. call$1(mediaQueries) {
  64360. return this.$this._mergeMediaQueries$2(mediaQueries, this.node.queries);
  64361. },
  64362. $signature: 97
  64363. };
  64364. A._EvaluateVisitor_visitCssMediaRule_closure0.prototype = {
  64365. call$0() {
  64366. var _this = this,
  64367. t1 = _this.$this,
  64368. t2 = _this.mergedQueries;
  64369. if (t2 == null)
  64370. t2 = _this.node.queries;
  64371. t1._withMediaQueries$3(t2, _this.mergedSources, new A._EvaluateVisitor_visitCssMediaRule__closure(t1, _this.node));
  64372. },
  64373. $signature: 1
  64374. };
  64375. A._EvaluateVisitor_visitCssMediaRule__closure.prototype = {
  64376. call$0() {
  64377. var t2, t3, t4,
  64378. t1 = this.$this,
  64379. styleRule = t1._atRootExcludingStyleRule ? null : t1._styleRuleIgnoringAtRoot;
  64380. if (styleRule == null)
  64381. for (t2 = this.node.children, t2 = new A.ListIterator(t2, t2.get$length(t2)), t3 = A._instanceType(t2)._precomputed1; t2.moveNext$0();) {
  64382. t4 = t2.__internal$_current;
  64383. (t4 == null ? t3._as(t4) : t4).accept$1(t1);
  64384. }
  64385. else
  64386. t1._withParent$2$3$scopeWhen(A.ModifiableCssStyleRule$(styleRule.selector, styleRule.span, styleRule.originalSelector), new A._EvaluateVisitor_visitCssMediaRule___closure(t1, this.node), false, type$.ModifiableCssStyleRule, type$.Null);
  64387. },
  64388. $signature: 1
  64389. };
  64390. A._EvaluateVisitor_visitCssMediaRule___closure.prototype = {
  64391. call$0() {
  64392. var t1, t2, t3, t4;
  64393. for (t1 = this.node.children, t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = this.$this, t3 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) {
  64394. t4 = t1.__internal$_current;
  64395. (t4 == null ? t3._as(t4) : t4).accept$1(t2);
  64396. }
  64397. },
  64398. $signature: 1
  64399. };
  64400. A._EvaluateVisitor_visitCssMediaRule_closure1.prototype = {
  64401. call$1(node) {
  64402. var t1;
  64403. if (!type$.CssStyleRule._is(node)) {
  64404. t1 = this.mergedSources;
  64405. t1 = t1.get$isNotEmpty(t1) && type$.CssMediaRule._is(node) && B.JSArray_methods.every$1(node.queries, t1.get$contains(t1));
  64406. } else
  64407. t1 = true;
  64408. return t1;
  64409. },
  64410. $signature: 7
  64411. };
  64412. A._EvaluateVisitor_visitCssStyleRule_closure.prototype = {
  64413. call$0() {
  64414. var t1 = this.$this;
  64415. t1._withStyleRule$2(this.rule, new A._EvaluateVisitor_visitCssStyleRule__closure(t1, this.node));
  64416. },
  64417. $signature: 1
  64418. };
  64419. A._EvaluateVisitor_visitCssStyleRule__closure.prototype = {
  64420. call$0() {
  64421. var t1, t2, t3, t4;
  64422. for (t1 = this.node.children, t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = this.$this, t3 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) {
  64423. t4 = t1.__internal$_current;
  64424. (t4 == null ? t3._as(t4) : t4).accept$1(t2);
  64425. }
  64426. },
  64427. $signature: 1
  64428. };
  64429. A._EvaluateVisitor_visitCssStyleRule_closure0.prototype = {
  64430. call$1(node) {
  64431. return type$.CssStyleRule._is(node);
  64432. },
  64433. $signature: 7
  64434. };
  64435. A._EvaluateVisitor_visitCssSupportsRule_closure.prototype = {
  64436. call$0() {
  64437. var t2, t3, t4,
  64438. t1 = this.$this,
  64439. styleRule = t1._atRootExcludingStyleRule ? null : t1._styleRuleIgnoringAtRoot;
  64440. if (styleRule == null)
  64441. for (t2 = this.node.children, t2 = new A.ListIterator(t2, t2.get$length(t2)), t3 = A._instanceType(t2)._precomputed1; t2.moveNext$0();) {
  64442. t4 = t2.__internal$_current;
  64443. (t4 == null ? t3._as(t4) : t4).accept$1(t1);
  64444. }
  64445. else
  64446. t1._withParent$2$2(A.ModifiableCssStyleRule$(styleRule.selector, styleRule.span, styleRule.originalSelector), new A._EvaluateVisitor_visitCssSupportsRule__closure(t1, this.node), type$.ModifiableCssStyleRule, type$.Null);
  64447. },
  64448. $signature: 1
  64449. };
  64450. A._EvaluateVisitor_visitCssSupportsRule__closure.prototype = {
  64451. call$0() {
  64452. var t1, t2, t3, t4;
  64453. for (t1 = this.node.children, t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = this.$this, t3 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) {
  64454. t4 = t1.__internal$_current;
  64455. (t4 == null ? t3._as(t4) : t4).accept$1(t2);
  64456. }
  64457. },
  64458. $signature: 1
  64459. };
  64460. A._EvaluateVisitor_visitCssSupportsRule_closure0.prototype = {
  64461. call$1(node) {
  64462. return type$.CssStyleRule._is(node);
  64463. },
  64464. $signature: 7
  64465. };
  64466. A._EvaluateVisitor__performInterpolation_closure.prototype = {
  64467. call$1(value) {
  64468. var t1, result, t2, t3;
  64469. if (typeof value == "string")
  64470. return value;
  64471. type$.Expression._as(value);
  64472. t1 = this.$this;
  64473. result = value.accept$1(t1);
  64474. if (this.warnForColor && result instanceof A.SassColor && $.$get$namesByColor().containsKey$1(result)) {
  64475. t2 = A.Interpolation$(A._setArrayType([""], type$.JSArray_Object), this.interpolation.span);
  64476. t3 = $.$get$namesByColor();
  64477. t1._warn$2(string$.You_pr + A.S(t3.$index(0, result)) + string$.x20in_in + result.toString$0(0) + string$.x2c_whic + A.S(t3.$index(0, result)) + string$.x22x29__If + new A.BinaryOperationExpression(B.BinaryOperator_qbf, new A.StringExpression(t2, true), value, false).toString$0(0) + "'.", value.get$span(value));
  64478. }
  64479. return t1._evaluate$_serialize$3$quote(result, value, false);
  64480. },
  64481. $signature: 46
  64482. };
  64483. A._EvaluateVisitor__serialize_closure.prototype = {
  64484. call$0() {
  64485. return A.serializeValue(this.value, false, this.quote);
  64486. },
  64487. $signature: 30
  64488. };
  64489. A._EvaluateVisitor__expressionNode_closure.prototype = {
  64490. call$0() {
  64491. var t1 = this.expression;
  64492. return this.$this._environment.getVariableNode$2$namespace(t1.name, t1.namespace);
  64493. },
  64494. $signature: 246
  64495. };
  64496. A._EvaluateVisitor__withoutSlash_recommendation.prototype = {
  64497. call$1(number) {
  64498. var asSlash = number.asSlash;
  64499. if (asSlash != null)
  64500. return "math.div(" + A.S(this.call$1(asSlash.item1)) + ", " + A.S(this.call$1(asSlash.item2)) + ")";
  64501. else
  64502. return A.serializeValue(number, true, true);
  64503. },
  64504. $signature: 247
  64505. };
  64506. A._EvaluateVisitor__stackFrame_closure.prototype = {
  64507. call$1(url) {
  64508. var t1 = this.$this._evaluate$_importCache;
  64509. t1 = t1 == null ? null : t1.humanize$1(url);
  64510. return t1 == null ? url : t1;
  64511. },
  64512. $signature: 102
  64513. };
  64514. A._EvaluateVisitor__stackTrace_closure.prototype = {
  64515. call$1(tuple) {
  64516. return this.$this._stackFrame$2(tuple.item1, J.get$span$z(tuple.item2));
  64517. },
  64518. $signature: 249
  64519. };
  64520. A._ImportedCssVisitor.prototype = {
  64521. visitCssAtRule$1(node) {
  64522. var t1 = node.isChildless ? null : new A._ImportedCssVisitor_visitCssAtRule_closure();
  64523. this._visitor._addChild$2$through(node, t1);
  64524. },
  64525. visitCssComment$1(node) {
  64526. return this._visitor._addChild$1(node);
  64527. },
  64528. visitCssDeclaration$1(node) {
  64529. },
  64530. visitCssImport$1(node) {
  64531. var t2,
  64532. _s13_ = "_endOfImports",
  64533. t1 = this._visitor;
  64534. if (t1._assertInModule$2(t1.__parent, "__parent") !== t1._assertInModule$2(t1.__root, "_root"))
  64535. t1._addChild$1(node);
  64536. else if (t1._assertInModule$2(t1.__endOfImports, _s13_) === J.get$length$asx(t1._assertInModule$2(t1.__root, "_root").children._collection$_source)) {
  64537. t1._addChild$1(node);
  64538. t1.__endOfImports = t1._assertInModule$2(t1.__endOfImports, _s13_) + 1;
  64539. } else {
  64540. t2 = t1._outOfOrderImports;
  64541. (t2 == null ? t1._outOfOrderImports = A._setArrayType([], type$.JSArray_ModifiableCssImport) : t2).push(node);
  64542. }
  64543. },
  64544. visitCssKeyframeBlock$1(node) {
  64545. },
  64546. visitCssMediaRule$1(node) {
  64547. var t1 = this._visitor,
  64548. mediaQueries = t1._mediaQueries;
  64549. t1._addChild$2$through(node, new A._ImportedCssVisitor_visitCssMediaRule_closure(mediaQueries == null || t1._mergeMediaQueries$2(mediaQueries, node.queries) != null));
  64550. },
  64551. visitCssStyleRule$1(node) {
  64552. return this._visitor._addChild$2$through(node, new A._ImportedCssVisitor_visitCssStyleRule_closure());
  64553. },
  64554. visitCssStylesheet$1(node) {
  64555. var t1, t2, t3;
  64556. for (t1 = node.children, t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) {
  64557. t3 = t1.__internal$_current;
  64558. (t3 == null ? t2._as(t3) : t3).accept$1(this);
  64559. }
  64560. },
  64561. visitCssSupportsRule$1(node) {
  64562. return this._visitor._addChild$2$through(node, new A._ImportedCssVisitor_visitCssSupportsRule_closure());
  64563. }
  64564. };
  64565. A._ImportedCssVisitor_visitCssAtRule_closure.prototype = {
  64566. call$1(node) {
  64567. return type$.CssStyleRule._is(node);
  64568. },
  64569. $signature: 7
  64570. };
  64571. A._ImportedCssVisitor_visitCssMediaRule_closure.prototype = {
  64572. call$1(node) {
  64573. var t1;
  64574. if (!type$.CssStyleRule._is(node))
  64575. t1 = this.hasBeenMerged && type$.CssMediaRule._is(node);
  64576. else
  64577. t1 = true;
  64578. return t1;
  64579. },
  64580. $signature: 7
  64581. };
  64582. A._ImportedCssVisitor_visitCssStyleRule_closure.prototype = {
  64583. call$1(node) {
  64584. return type$.CssStyleRule._is(node);
  64585. },
  64586. $signature: 7
  64587. };
  64588. A._ImportedCssVisitor_visitCssSupportsRule_closure.prototype = {
  64589. call$1(node) {
  64590. return type$.CssStyleRule._is(node);
  64591. },
  64592. $signature: 7
  64593. };
  64594. A._EvaluationContext.prototype = {
  64595. get$currentCallableSpan() {
  64596. var callableNode = this._visitor._callableNode;
  64597. if (callableNode != null)
  64598. return callableNode.get$span(callableNode);
  64599. throw A.wrapException(A.StateError$(string$.No_Sasc));
  64600. },
  64601. warn$2$deprecation(_, message, deprecation) {
  64602. var t1 = this._visitor,
  64603. t2 = t1._importSpan;
  64604. if (t2 == null) {
  64605. t2 = t1._callableNode;
  64606. t2 = t2 == null ? null : t2.get$span(t2);
  64607. }
  64608. if (t2 == null) {
  64609. t2 = this._defaultWarnNodeWithSpan;
  64610. t2 = t2.get$span(t2);
  64611. }
  64612. t1._warn$3$deprecation(message, t2, deprecation);
  64613. },
  64614. $isEvaluationContext: 1
  64615. };
  64616. A._ArgumentResults.prototype = {};
  64617. A._LoadedStylesheet.prototype = {};
  64618. A.EveryCssVisitor.prototype = {
  64619. visitCssAtRule$1(node) {
  64620. var t1 = node.children;
  64621. return t1.every$1(t1, new A.EveryCssVisitor_visitCssAtRule_closure(this));
  64622. },
  64623. visitCssComment$1(node) {
  64624. return false;
  64625. },
  64626. visitCssDeclaration$1(node) {
  64627. return false;
  64628. },
  64629. visitCssImport$1(node) {
  64630. return false;
  64631. },
  64632. visitCssKeyframeBlock$1(node) {
  64633. var t1 = node.children;
  64634. return t1.every$1(t1, new A.EveryCssVisitor_visitCssKeyframeBlock_closure(this));
  64635. },
  64636. visitCssMediaRule$1(node) {
  64637. var t1 = node.children;
  64638. return t1.every$1(t1, new A.EveryCssVisitor_visitCssMediaRule_closure(this));
  64639. },
  64640. visitCssStyleRule$1(node) {
  64641. var t1 = node.children;
  64642. return t1.every$1(t1, new A.EveryCssVisitor_visitCssStyleRule_closure(this));
  64643. },
  64644. visitCssStylesheet$1(node) {
  64645. return J.every$1$ax(node.get$children(node), new A.EveryCssVisitor_visitCssStylesheet_closure(this));
  64646. },
  64647. visitCssSupportsRule$1(node) {
  64648. var t1 = node.children;
  64649. return t1.every$1(t1, new A.EveryCssVisitor_visitCssSupportsRule_closure(this));
  64650. }
  64651. };
  64652. A.EveryCssVisitor_visitCssAtRule_closure.prototype = {
  64653. call$1(child) {
  64654. return child.accept$1(this.$this);
  64655. },
  64656. $signature: 7
  64657. };
  64658. A.EveryCssVisitor_visitCssKeyframeBlock_closure.prototype = {
  64659. call$1(child) {
  64660. return child.accept$1(this.$this);
  64661. },
  64662. $signature: 7
  64663. };
  64664. A.EveryCssVisitor_visitCssMediaRule_closure.prototype = {
  64665. call$1(child) {
  64666. return child.accept$1(this.$this);
  64667. },
  64668. $signature: 7
  64669. };
  64670. A.EveryCssVisitor_visitCssStyleRule_closure.prototype = {
  64671. call$1(child) {
  64672. return child.accept$1(this.$this);
  64673. },
  64674. $signature: 7
  64675. };
  64676. A.EveryCssVisitor_visitCssStylesheet_closure.prototype = {
  64677. call$1(child) {
  64678. return child.accept$1(this.$this);
  64679. },
  64680. $signature: 7
  64681. };
  64682. A.EveryCssVisitor_visitCssSupportsRule_closure.prototype = {
  64683. call$1(child) {
  64684. return child.accept$1(this.$this);
  64685. },
  64686. $signature: 7
  64687. };
  64688. A._FindDependenciesVisitor.prototype = {
  64689. visitEachRule$1(node) {
  64690. },
  64691. visitForRule$1(node) {
  64692. },
  64693. visitIfRule$1(node) {
  64694. },
  64695. visitWhileRule$1(node) {
  64696. },
  64697. visitUseRule$1(node) {
  64698. var t1 = node.url;
  64699. if (t1.get$scheme() !== "sass")
  64700. this._usesAndForwards.push(t1);
  64701. },
  64702. visitForwardRule$1(node) {
  64703. var t1 = node.url;
  64704. if (t1.get$scheme() !== "sass")
  64705. this._usesAndForwards.push(t1);
  64706. },
  64707. visitImportRule$1(node) {
  64708. var t1, t2, t3, _i, $import;
  64709. for (t1 = node.imports, t2 = t1.length, t3 = this._imports, _i = 0; _i < t2; ++_i) {
  64710. $import = t1[_i];
  64711. if ($import instanceof A.DynamicImport)
  64712. t3.push(A.Uri_parse($import.urlString));
  64713. }
  64714. }
  64715. };
  64716. A.__FindDependenciesVisitor_Object_RecursiveStatementVisitor.prototype = {};
  64717. A.RecursiveStatementVisitor.prototype = {
  64718. visitAtRootRule$1(node) {
  64719. this.visitChildren$1(node.children);
  64720. },
  64721. visitAtRule$1(node) {
  64722. return A.NullableExtension_andThen(node.children, this.get$visitChildren());
  64723. },
  64724. visitContentBlock$1(node) {
  64725. return null;
  64726. },
  64727. visitContentRule$1(node) {
  64728. },
  64729. visitDebugRule$1(node) {
  64730. },
  64731. visitDeclaration$1(node) {
  64732. return A.NullableExtension_andThen(node.children, this.get$visitChildren());
  64733. },
  64734. visitErrorRule$1(node) {
  64735. },
  64736. visitExtendRule$1(node) {
  64737. },
  64738. visitFunctionRule$1(node) {
  64739. return null;
  64740. },
  64741. visitIncludeRule$1(node) {
  64742. return A.NullableExtension_andThen(node.content, this.get$visitContentBlock());
  64743. },
  64744. visitLoudComment$1(node) {
  64745. },
  64746. visitMediaRule$1(node) {
  64747. return this.visitChildren$1(node.children);
  64748. },
  64749. visitMixinRule$1(node) {
  64750. return null;
  64751. },
  64752. visitReturnRule$1(node) {
  64753. },
  64754. visitSilentComment$1(node) {
  64755. },
  64756. visitStyleRule$1(node) {
  64757. return this.visitChildren$1(node.children);
  64758. },
  64759. visitStylesheet$1(node) {
  64760. return this.visitChildren$1(node.children);
  64761. },
  64762. visitSupportsRule$1(node) {
  64763. return this.visitChildren$1(node.children);
  64764. },
  64765. visitVariableDeclaration$1(node) {
  64766. },
  64767. visitWarnRule$1(node) {
  64768. },
  64769. visitChildren$1(children) {
  64770. var t1;
  64771. for (t1 = J.get$iterator$ax(children); t1.moveNext$0();)
  64772. t1.get$current(t1).accept$1(this);
  64773. }
  64774. };
  64775. A.serialize_closure.prototype = {
  64776. call$1(codeUnit) {
  64777. return codeUnit > 127;
  64778. },
  64779. $signature: 57
  64780. };
  64781. A._SerializeVisitor.prototype = {
  64782. visitCssStylesheet$1(node) {
  64783. var t1, t2, t3, t4, t5, t6, t7, previous, previous0, t8, _this = this;
  64784. for (t1 = J.get$iterator$ax(node.get$children(node)), t2 = !_this._inspect, t3 = _this._style === B.OutputStyle_1, t4 = !t3, t5 = type$.CssComment, t6 = type$.CssParentNode, t7 = _this._serialize$_buffer, previous = null; t1.moveNext$0();) {
  64785. previous0 = t1.get$current(t1);
  64786. if (t2)
  64787. t8 = t3 ? previous0.accept$1(B._IsInvisibleVisitor_true_true) : previous0.accept$1(B._IsInvisibleVisitor_true_false);
  64788. else
  64789. t8 = false;
  64790. if (t8)
  64791. continue;
  64792. if (previous != null) {
  64793. if (t6._is(previous) ? previous.get$isChildless() : !t5._is(previous))
  64794. t7.writeCharCode$1(59);
  64795. if (_this._isTrailingComment$2(previous0, previous)) {
  64796. if (t4)
  64797. t7.writeCharCode$1(32);
  64798. } else {
  64799. if (t4)
  64800. t7.write$1(0, "\n");
  64801. if (previous.get$isGroupEnd())
  64802. if (t4)
  64803. t7.write$1(0, "\n");
  64804. }
  64805. }
  64806. previous0.accept$1(_this);
  64807. previous = previous0;
  64808. }
  64809. if (previous != null)
  64810. t1 = (t6._is(previous) ? previous.get$isChildless() : !t5._is(previous)) && t4;
  64811. else
  64812. t1 = false;
  64813. if (t1)
  64814. t7.writeCharCode$1(59);
  64815. },
  64816. visitCssComment$1(node) {
  64817. this._serialize$_buffer.forSpan$2(node.span, new A._SerializeVisitor_visitCssComment_closure(this, node));
  64818. },
  64819. visitCssAtRule$1(node) {
  64820. var t1, _this = this;
  64821. _this._writeIndentation$0();
  64822. t1 = _this._serialize$_buffer;
  64823. t1.forSpan$2(node.span, new A._SerializeVisitor_visitCssAtRule_closure(_this, node));
  64824. if (!node.isChildless) {
  64825. if (_this._style !== B.OutputStyle_1)
  64826. t1.writeCharCode$1(32);
  64827. _this._serialize$_visitChildren$1(node);
  64828. }
  64829. },
  64830. visitCssMediaRule$1(node) {
  64831. var t1, _this = this;
  64832. _this._writeIndentation$0();
  64833. t1 = _this._serialize$_buffer;
  64834. t1.forSpan$2(node.span, new A._SerializeVisitor_visitCssMediaRule_closure(_this, node));
  64835. if (_this._style !== B.OutputStyle_1)
  64836. t1.writeCharCode$1(32);
  64837. _this._serialize$_visitChildren$1(node);
  64838. },
  64839. visitCssImport$1(node) {
  64840. this._writeIndentation$0();
  64841. this._serialize$_buffer.forSpan$2(node.span, new A._SerializeVisitor_visitCssImport_closure(this, node));
  64842. },
  64843. _writeImportUrl$1(url) {
  64844. var urlContents, maybeQuote, _this = this;
  64845. if (_this._style !== B.OutputStyle_1 || B.JSString_methods._codeUnitAt$1(url, 0) !== 117) {
  64846. _this._serialize$_buffer.write$1(0, url);
  64847. return;
  64848. }
  64849. urlContents = B.JSString_methods.substring$2(url, 4, url.length - 1);
  64850. maybeQuote = B.JSString_methods._codeUnitAt$1(urlContents, 0);
  64851. if (maybeQuote === 39 || maybeQuote === 34)
  64852. _this._serialize$_buffer.write$1(0, urlContents);
  64853. else
  64854. _this._visitQuotedString$1(urlContents);
  64855. },
  64856. visitCssKeyframeBlock$1(node) {
  64857. var t1, _this = this;
  64858. _this._writeIndentation$0();
  64859. t1 = _this._serialize$_buffer;
  64860. t1.forSpan$2(node.selector.span, new A._SerializeVisitor_visitCssKeyframeBlock_closure(_this, node));
  64861. if (_this._style !== B.OutputStyle_1)
  64862. t1.writeCharCode$1(32);
  64863. _this._serialize$_visitChildren$1(node);
  64864. },
  64865. _visitMediaQuery$1(query) {
  64866. var t2, condition, operator, t3, _this = this,
  64867. t1 = query.modifier;
  64868. if (t1 != null) {
  64869. t2 = _this._serialize$_buffer;
  64870. t2.write$1(0, t1);
  64871. t2.writeCharCode$1(32);
  64872. }
  64873. t1 = query.type;
  64874. if (t1 != null) {
  64875. t2 = _this._serialize$_buffer;
  64876. t2.write$1(0, t1);
  64877. if (query.conditions.length !== 0)
  64878. t2.write$1(0, " and ");
  64879. }
  64880. t1 = query.conditions;
  64881. if (t1.length === 1 && J.startsWith$1$s(B.JSArray_methods.get$first(t1), "(not ")) {
  64882. t2 = _this._serialize$_buffer;
  64883. t2.write$1(0, "not ");
  64884. condition = B.JSArray_methods.get$first(t1);
  64885. t2.write$1(0, B.JSString_methods.substring$2(condition, 5, condition.length - 1));
  64886. } else {
  64887. operator = query.conjunction ? "and" : "or";
  64888. t2 = _this._style === B.OutputStyle_1 ? operator + " " : " " + operator + " ";
  64889. t3 = _this._serialize$_buffer;
  64890. _this._writeBetween$3(t1, t2, t3.get$write(t3));
  64891. }
  64892. },
  64893. visitCssStyleRule$1(node) {
  64894. var t1, _this = this;
  64895. _this._writeIndentation$0();
  64896. t1 = _this._serialize$_buffer;
  64897. t1.forSpan$2(node.selector.span, new A._SerializeVisitor_visitCssStyleRule_closure(_this, node));
  64898. if (_this._style !== B.OutputStyle_1)
  64899. t1.writeCharCode$1(32);
  64900. _this._serialize$_visitChildren$1(node);
  64901. },
  64902. visitCssSupportsRule$1(node) {
  64903. var t1, _this = this;
  64904. _this._writeIndentation$0();
  64905. t1 = _this._serialize$_buffer;
  64906. t1.forSpan$2(node.span, new A._SerializeVisitor_visitCssSupportsRule_closure(_this, node));
  64907. if (_this._style !== B.OutputStyle_1)
  64908. t1.writeCharCode$1(32);
  64909. _this._serialize$_visitChildren$1(node);
  64910. },
  64911. visitCssDeclaration$1(node) {
  64912. var error, stackTrace, error0, stackTrace0, t1, t2, exception, _this = this;
  64913. _this._writeIndentation$0();
  64914. t1 = node.name;
  64915. _this._serialize$_write$1(t1);
  64916. t2 = _this._serialize$_buffer;
  64917. t2.writeCharCode$1(58);
  64918. if (J.startsWith$1$s(t1.get$value(t1), "--") && node.parsedAsCustomProperty) {
  64919. t1 = node.value;
  64920. t2.forSpan$2(t1.get$span(t1), new A._SerializeVisitor_visitCssDeclaration_closure(_this, node));
  64921. } else {
  64922. if (_this._style !== B.OutputStyle_1)
  64923. t2.writeCharCode$1(32);
  64924. try {
  64925. t2.forSpan$2(node.valueSpanForMap, new A._SerializeVisitor_visitCssDeclaration_closure0(_this, node));
  64926. } catch (exception) {
  64927. t1 = A.unwrapException(exception);
  64928. if (t1 instanceof A.MultiSpanSassScriptException) {
  64929. error = t1;
  64930. stackTrace = A.getTraceFromException(exception);
  64931. t1 = error.message;
  64932. t2 = node.value;
  64933. t2 = t2.get$span(t2);
  64934. A.throwWithTrace(new A.MultiSpanSassException(error.primaryLabel, A.ConstantMap_ConstantMap$from(error.secondarySpans, type$.FileSpan, type$.String), t1, t2), stackTrace);
  64935. } else if (t1 instanceof A.SassScriptException) {
  64936. error0 = t1;
  64937. stackTrace0 = A.getTraceFromException(exception);
  64938. t1 = node.value;
  64939. A.throwWithTrace(new A.SassException(error0.message, t1.get$span(t1)), stackTrace0);
  64940. } else
  64941. throw exception;
  64942. }
  64943. }
  64944. },
  64945. _writeFoldedValue$1(node) {
  64946. var t2, next, t3,
  64947. t1 = node.value,
  64948. scanner = A.StringScanner$(type$.SassString._as(t1.get$value(t1))._string$_text, null, null);
  64949. for (t1 = scanner.string.length, t2 = this._serialize$_buffer; scanner._string_scanner$_position !== t1;) {
  64950. next = scanner.readChar$0();
  64951. if (next !== 10) {
  64952. t2.writeCharCode$1(next);
  64953. continue;
  64954. }
  64955. t2.writeCharCode$1(32);
  64956. while (true) {
  64957. t3 = scanner.peekChar$0();
  64958. if (!(t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12))
  64959. break;
  64960. scanner.readChar$0();
  64961. }
  64962. }
  64963. },
  64964. _writeReindentedValue$1(node) {
  64965. var _this = this,
  64966. t1 = node.value,
  64967. value = type$.SassString._as(t1.get$value(t1))._string$_text,
  64968. minimumIndentation = _this._minimumIndentation$1(value);
  64969. if (minimumIndentation == null) {
  64970. _this._serialize$_buffer.write$1(0, value);
  64971. return;
  64972. } else if (minimumIndentation === -1) {
  64973. t1 = _this._serialize$_buffer;
  64974. t1.write$1(0, A.trimAsciiRight(value, true));
  64975. t1.writeCharCode$1(32);
  64976. return;
  64977. }
  64978. t1 = node.name;
  64979. t1 = t1.get$span(t1);
  64980. t1 = t1.get$start(t1);
  64981. _this._writeWithIndent$2(value, Math.min(minimumIndentation, t1.file.getColumn$1(t1.offset)));
  64982. },
  64983. _minimumIndentation$1(text) {
  64984. var character, t2, min, next, min0,
  64985. scanner = A.LineScanner$(text),
  64986. t1 = scanner.string.length;
  64987. while (true) {
  64988. if (scanner._string_scanner$_position !== t1) {
  64989. character = scanner.super$StringScanner$readChar();
  64990. scanner._adjustLineAndColumn$1(character);
  64991. t2 = character !== 10;
  64992. } else
  64993. t2 = false;
  64994. if (!t2)
  64995. break;
  64996. }
  64997. if (scanner._string_scanner$_position === t1)
  64998. return scanner.peekChar$1(-1) === 10 ? -1 : null;
  64999. for (min = null; scanner._string_scanner$_position !== t1;) {
  65000. for (; scanner._string_scanner$_position !== t1;) {
  65001. next = scanner.peekChar$0();
  65002. if (next !== 32 && next !== 9)
  65003. break;
  65004. scanner._adjustLineAndColumn$1(scanner.super$StringScanner$readChar());
  65005. }
  65006. if (scanner._string_scanner$_position === t1 || scanner.scanChar$1(10))
  65007. continue;
  65008. min0 = scanner._line_scanner$_column;
  65009. min = min == null ? min0 : Math.min(min, min0);
  65010. while (true) {
  65011. if (scanner._string_scanner$_position !== t1) {
  65012. character = scanner.super$StringScanner$readChar();
  65013. scanner._adjustLineAndColumn$1(character);
  65014. t2 = character !== 10;
  65015. } else
  65016. t2 = false;
  65017. if (!t2)
  65018. break;
  65019. }
  65020. }
  65021. return min == null ? -1 : min;
  65022. },
  65023. _writeWithIndent$2(text, minimumIndentation) {
  65024. var t1, t2, t3, character, lineStart, newlines, end,
  65025. scanner = A.LineScanner$(text);
  65026. for (t1 = scanner.string, t2 = t1.length, t3 = this._serialize$_buffer; scanner._string_scanner$_position !== t2;) {
  65027. character = scanner.super$StringScanner$readChar();
  65028. scanner._adjustLineAndColumn$1(character);
  65029. if (character === 10)
  65030. break;
  65031. t3.writeCharCode$1(character);
  65032. }
  65033. for (; true;) {
  65034. lineStart = scanner._string_scanner$_position;
  65035. for (newlines = 1; true;) {
  65036. if (scanner._string_scanner$_position === t2) {
  65037. t3.writeCharCode$1(32);
  65038. return;
  65039. }
  65040. character = scanner.super$StringScanner$readChar();
  65041. scanner._adjustLineAndColumn$1(character);
  65042. if (character === 32 || character === 9)
  65043. continue;
  65044. if (character !== 10)
  65045. break;
  65046. lineStart = scanner._string_scanner$_position;
  65047. ++newlines;
  65048. }
  65049. this._writeTimes$2(10, newlines);
  65050. this._writeIndentation$0();
  65051. end = scanner._string_scanner$_position;
  65052. t3.write$1(0, B.JSString_methods.substring$2(t1, lineStart + minimumIndentation, end));
  65053. for (; true;) {
  65054. if (scanner._string_scanner$_position === t2)
  65055. return;
  65056. character = scanner.super$StringScanner$readChar();
  65057. scanner._adjustLineAndColumn$1(character);
  65058. if (character === 10)
  65059. break;
  65060. t3.writeCharCode$1(character);
  65061. }
  65062. }
  65063. },
  65064. _writeCalculationValue$1(value) {
  65065. var left, parenthesizeLeft, operatorWhitespace, t1, t2, right, parenthesizeRight, _this = this;
  65066. if (value instanceof A.Value)
  65067. value.accept$1(_this);
  65068. else if (value instanceof A.CalculationInterpolation)
  65069. _this._serialize$_buffer.write$1(0, value.value);
  65070. else if (value instanceof A.CalculationOperation) {
  65071. left = value.left;
  65072. if (!(left instanceof A.CalculationInterpolation))
  65073. parenthesizeLeft = left instanceof A.CalculationOperation && left.operator.precedence < value.operator.precedence;
  65074. else
  65075. parenthesizeLeft = true;
  65076. if (parenthesizeLeft)
  65077. _this._serialize$_buffer.writeCharCode$1(40);
  65078. _this._writeCalculationValue$1(left);
  65079. if (parenthesizeLeft)
  65080. _this._serialize$_buffer.writeCharCode$1(41);
  65081. operatorWhitespace = _this._style !== B.OutputStyle_1 || value.operator.precedence === 1;
  65082. if (operatorWhitespace)
  65083. _this._serialize$_buffer.writeCharCode$1(32);
  65084. t1 = _this._serialize$_buffer;
  65085. t2 = value.operator;
  65086. t1.write$1(0, t2.operator);
  65087. if (operatorWhitespace)
  65088. t1.writeCharCode$1(32);
  65089. right = value.right;
  65090. if (!(right instanceof A.CalculationInterpolation))
  65091. parenthesizeRight = right instanceof A.CalculationOperation && _this._parenthesizeCalculationRhs$2(t2, right.operator);
  65092. else
  65093. parenthesizeRight = true;
  65094. if (parenthesizeRight)
  65095. t1.writeCharCode$1(40);
  65096. _this._writeCalculationValue$1(right);
  65097. if (parenthesizeRight)
  65098. t1.writeCharCode$1(41);
  65099. }
  65100. },
  65101. _parenthesizeCalculationRhs$2(outer, right) {
  65102. if (outer === B.CalculationOperator_OvN)
  65103. return true;
  65104. if (outer === B.CalculationOperator_IyK)
  65105. return false;
  65106. return right === B.CalculationOperator_IyK || right === B.CalculationOperator_2bx;
  65107. },
  65108. _writeRgb$1(value) {
  65109. var t3,
  65110. t1 = value._alpha,
  65111. opaque = A.fuzzyEquals(t1, 1),
  65112. t2 = this._serialize$_buffer;
  65113. t2.write$1(0, opaque ? "rgb(" : "rgba(");
  65114. t2.write$1(0, value.get$red(value));
  65115. t3 = this._style === B.OutputStyle_1;
  65116. t2.write$1(0, t3 ? "," : ", ");
  65117. t2.write$1(0, value.get$green(value));
  65118. t2.write$1(0, t3 ? "," : ", ");
  65119. t2.write$1(0, value.get$blue(value));
  65120. if (!opaque) {
  65121. t2.write$1(0, t3 ? "," : ", ");
  65122. this._writeNumber$1(t1);
  65123. }
  65124. t2.writeCharCode$1(41);
  65125. },
  65126. _canUseShortHex$1(color) {
  65127. var t1 = color.get$red(color);
  65128. if ((t1 & 15) === B.JSInt_methods._shrOtherPositive$1(t1, 4)) {
  65129. t1 = color.get$green(color);
  65130. if ((t1 & 15) === B.JSInt_methods._shrOtherPositive$1(t1, 4)) {
  65131. t1 = color.get$blue(color);
  65132. t1 = (t1 & 15) === B.JSInt_methods._shrOtherPositive$1(t1, 4);
  65133. } else
  65134. t1 = false;
  65135. } else
  65136. t1 = false;
  65137. return t1;
  65138. },
  65139. _writeHexComponent$1(color) {
  65140. var t1 = this._serialize$_buffer;
  65141. t1.writeCharCode$1(A.hexCharFor(B.JSInt_methods._shrOtherPositive$1(color, 4)));
  65142. t1.writeCharCode$1(A.hexCharFor(color & 15));
  65143. },
  65144. visitList$1(value) {
  65145. var t2, t3, singleton, t4, t5, _this = this,
  65146. t1 = value._hasBrackets;
  65147. if (t1)
  65148. _this._serialize$_buffer.writeCharCode$1(91);
  65149. else if (value._list$_contents.length === 0) {
  65150. if (!_this._inspect)
  65151. throw A.wrapException(A.SassScriptException$("() isn't a valid CSS value.", null));
  65152. _this._serialize$_buffer.write$1(0, "()");
  65153. return;
  65154. }
  65155. t2 = _this._inspect;
  65156. if (t2)
  65157. if (value._list$_contents.length === 1) {
  65158. t3 = value._separator;
  65159. t3 = t3 === B.ListSeparator_rXA || t3 === B.ListSeparator_zg9;
  65160. singleton = t3;
  65161. } else
  65162. singleton = false;
  65163. else
  65164. singleton = false;
  65165. if (singleton && !t1)
  65166. _this._serialize$_buffer.writeCharCode$1(40);
  65167. t3 = value._list$_contents;
  65168. t3 = t2 ? t3 : new A.WhereIterable(t3, new A._SerializeVisitor_visitList_closure(), A._arrayInstanceType(t3)._eval$1("WhereIterable<1>"));
  65169. t4 = value._separator;
  65170. t5 = _this._separatorString$1(t4);
  65171. _this._writeBetween$3(t3, t5, t2 ? new A._SerializeVisitor_visitList_closure0(_this, value) : new A._SerializeVisitor_visitList_closure1(_this));
  65172. if (singleton) {
  65173. t2 = _this._serialize$_buffer;
  65174. t2.write$1(0, t4.separator);
  65175. if (!t1)
  65176. t2.writeCharCode$1(41);
  65177. }
  65178. if (t1)
  65179. _this._serialize$_buffer.writeCharCode$1(93);
  65180. },
  65181. _separatorString$1(separator) {
  65182. switch (separator) {
  65183. case B.ListSeparator_rXA:
  65184. return this._style === B.OutputStyle_1 ? "," : ", ";
  65185. case B.ListSeparator_zg9:
  65186. return this._style === B.OutputStyle_1 ? "/" : " / ";
  65187. case B.ListSeparator_EVt:
  65188. return " ";
  65189. default:
  65190. return "";
  65191. }
  65192. },
  65193. _elementNeedsParens$2(separator, value) {
  65194. var t1;
  65195. if (value instanceof A.SassList) {
  65196. if (value._list$_contents.length < 2)
  65197. return false;
  65198. if (value._hasBrackets)
  65199. return false;
  65200. switch (separator) {
  65201. case B.ListSeparator_rXA:
  65202. return value._separator === B.ListSeparator_rXA;
  65203. case B.ListSeparator_zg9:
  65204. t1 = value._separator;
  65205. return t1 === B.ListSeparator_rXA || t1 === B.ListSeparator_zg9;
  65206. default:
  65207. return value._separator !== B.ListSeparator_undecided_null_undecided;
  65208. }
  65209. }
  65210. return false;
  65211. },
  65212. visitMap$1(map) {
  65213. var t1, t2, _this = this;
  65214. if (!_this._inspect)
  65215. throw A.wrapException(A.SassScriptException$(map.toString$0(0) + " isn't a valid CSS value.", null));
  65216. t1 = _this._serialize$_buffer;
  65217. t1.writeCharCode$1(40);
  65218. t2 = map._map$_contents;
  65219. _this._writeBetween$3(t2.get$entries(t2), ", ", new A._SerializeVisitor_visitMap_closure(_this));
  65220. t1.writeCharCode$1(41);
  65221. },
  65222. _writeMapElement$1(value) {
  65223. var needsParens = value instanceof A.SassList && value._separator === B.ListSeparator_rXA && !value._hasBrackets;
  65224. if (needsParens)
  65225. this._serialize$_buffer.writeCharCode$1(40);
  65226. value.accept$1(this);
  65227. if (needsParens)
  65228. this._serialize$_buffer.writeCharCode$1(41);
  65229. },
  65230. visitNumber$1(value) {
  65231. var _this = this,
  65232. asSlash = value.asSlash;
  65233. if (asSlash != null) {
  65234. _this.visitNumber$1(asSlash.item1);
  65235. _this._serialize$_buffer.writeCharCode$1(47);
  65236. _this.visitNumber$1(asSlash.item2);
  65237. return;
  65238. }
  65239. _this._writeNumber$1(value._number$_value);
  65240. if (!_this._inspect) {
  65241. if (value.get$numeratorUnits(value).length > 1 || value.get$denominatorUnits(value).length !== 0)
  65242. throw A.wrapException(A.SassScriptException$(value.toString$0(0) + " isn't a valid CSS value.", null));
  65243. if (value.get$numeratorUnits(value).length !== 0)
  65244. _this._serialize$_buffer.write$1(0, B.JSArray_methods.get$first(value.get$numeratorUnits(value)));
  65245. } else
  65246. _this._serialize$_buffer.write$1(0, value.get$unitString());
  65247. },
  65248. _writeNumber$1(number) {
  65249. var text, _this = this,
  65250. integer = A.fuzzyAsInt(number);
  65251. if (integer != null) {
  65252. _this._serialize$_buffer.write$1(0, _this._removeExponent$1(B.JSInt_methods.toString$0(integer)));
  65253. return;
  65254. }
  65255. text = _this._removeExponent$1(B.JSNumber_methods.toString$0(number));
  65256. if (text.length < 12) {
  65257. if (_this._style === B.OutputStyle_1 && B.JSString_methods._codeUnitAt$1(text, 0) === 48)
  65258. text = B.JSString_methods.substring$1(text, 1);
  65259. _this._serialize$_buffer.write$1(0, text);
  65260. return;
  65261. }
  65262. _this._writeRounded$1(text);
  65263. },
  65264. _removeExponent$1(text) {
  65265. var buffer, t3, additionalZeroes,
  65266. t1 = B.JSString_methods._codeUnitAt$1(text, 0),
  65267. negative = t1 === 45,
  65268. exponent = A._Cell$(),
  65269. t2 = text.length,
  65270. i = 0;
  65271. while (true) {
  65272. if (!(i < t2)) {
  65273. buffer = null;
  65274. break;
  65275. }
  65276. c$0: {
  65277. if (B.JSString_methods._codeUnitAt$1(text, i) !== 101)
  65278. break c$0;
  65279. buffer = new A.StringBuffer("");
  65280. t1 = buffer._contents = "" + A.Primitives_stringFromCharCode(t1);
  65281. if (negative) {
  65282. t1 += A.Primitives_stringFromCharCode(B.JSString_methods._codeUnitAt$1(text, 1));
  65283. buffer._contents = t1;
  65284. if (i > 3)
  65285. buffer._contents = t1 + B.JSString_methods.substring$2(text, 3, i);
  65286. } else if (i > 2)
  65287. buffer._contents = t1 + B.JSString_methods.substring$2(text, 2, i);
  65288. exponent._value = A.int_parse(B.JSString_methods.substring$2(text, i + 1, t2), null);
  65289. break;
  65290. }
  65291. ++i;
  65292. }
  65293. if (buffer == null)
  65294. return text;
  65295. if (exponent._readLocal$0() > 0) {
  65296. t1 = exponent._readLocal$0();
  65297. t2 = buffer._contents;
  65298. t3 = negative ? 1 : 0;
  65299. additionalZeroes = t1 - (t2.length - 1 - t3);
  65300. for (t1 = t2, i = 0; i < additionalZeroes; ++i) {
  65301. t1 += A.Primitives_stringFromCharCode(48);
  65302. buffer._contents = t1;
  65303. }
  65304. return t1.charCodeAt(0) == 0 ? t1 : t1;
  65305. } else {
  65306. t1 = (negative ? "" + A.Primitives_stringFromCharCode(45) : "") + "0.";
  65307. t2 = exponent.__late_helper$_name;
  65308. i = -1;
  65309. while (true) {
  65310. t3 = exponent._value;
  65311. if (t3 === exponent)
  65312. A.throwExpression(A.LateError$localNI(t2));
  65313. if (!(i > t3))
  65314. break;
  65315. t1 += A.Primitives_stringFromCharCode(48);
  65316. --i;
  65317. }
  65318. if (negative) {
  65319. t2 = buffer._contents;
  65320. t2 = B.JSString_methods.substring$1(t2.charCodeAt(0) == 0 ? t2 : t2, 1);
  65321. } else
  65322. t2 = buffer;
  65323. t2 = t1 + A.S(t2);
  65324. return t2.charCodeAt(0) == 0 ? t2 : t2;
  65325. }
  65326. },
  65327. _writeRounded$1(text) {
  65328. var t1, digits, negative, textIndex, digitsIndex, textIndex0, codeUnit, digitsIndex0, indexAfterPrecision, digitsIndex1, newDigit, writtenIndex, t2, _this = this;
  65329. if (B.JSString_methods.endsWith$1(text, ".0")) {
  65330. _this._serialize$_buffer.write$1(0, B.JSString_methods.substring$2(text, 0, text.length - 2));
  65331. return;
  65332. }
  65333. t1 = text.length;
  65334. digits = new Uint8Array(t1 + 1);
  65335. negative = B.JSString_methods._codeUnitAt$1(text, 0) === 45;
  65336. textIndex = negative ? 1 : 0;
  65337. for (digitsIndex = 1; true; textIndex = textIndex0, digitsIndex = digitsIndex0) {
  65338. if (textIndex === t1) {
  65339. _this._serialize$_buffer.write$1(0, text);
  65340. return;
  65341. }
  65342. textIndex0 = textIndex + 1;
  65343. codeUnit = B.JSString_methods._codeUnitAt$1(text, textIndex);
  65344. if (codeUnit === 46) {
  65345. textIndex = textIndex0;
  65346. break;
  65347. }
  65348. digitsIndex0 = digitsIndex + 1;
  65349. digits[digitsIndex] = codeUnit - 48;
  65350. }
  65351. indexAfterPrecision = textIndex + 10;
  65352. if (indexAfterPrecision >= t1) {
  65353. _this._serialize$_buffer.write$1(0, text);
  65354. return;
  65355. }
  65356. for (digitsIndex0 = digitsIndex; textIndex < indexAfterPrecision; textIndex = textIndex0, digitsIndex0 = digitsIndex1) {
  65357. digitsIndex1 = digitsIndex0 + 1;
  65358. textIndex0 = textIndex + 1;
  65359. digits[digitsIndex0] = B.JSString_methods._codeUnitAt$1(text, textIndex) - 48;
  65360. }
  65361. if (B.JSString_methods._codeUnitAt$1(text, textIndex) - 48 >= 5)
  65362. for (; true; digitsIndex0 = digitsIndex1) {
  65363. digitsIndex1 = digitsIndex0 - 1;
  65364. newDigit = digits[digitsIndex1] + 1;
  65365. digits[digitsIndex1] = newDigit;
  65366. if (newDigit !== 10)
  65367. break;
  65368. }
  65369. for (; digitsIndex0 < digitsIndex; ++digitsIndex0)
  65370. digits[digitsIndex0] = 0;
  65371. while (true) {
  65372. t1 = digitsIndex0 > digitsIndex;
  65373. if (!(t1 && digits[digitsIndex0 - 1] === 0))
  65374. break;
  65375. --digitsIndex0;
  65376. }
  65377. if (digitsIndex0 === 2 && digits[0] === 0 && digits[1] === 0) {
  65378. _this._serialize$_buffer.writeCharCode$1(48);
  65379. return;
  65380. }
  65381. if (negative)
  65382. _this._serialize$_buffer.writeCharCode$1(45);
  65383. if (digits[0] === 0)
  65384. writtenIndex = _this._style === B.OutputStyle_1 && digits[1] === 0 ? 2 : 1;
  65385. else
  65386. writtenIndex = 0;
  65387. for (t2 = _this._serialize$_buffer; writtenIndex < digitsIndex; ++writtenIndex)
  65388. t2.writeCharCode$1(48 + digits[writtenIndex]);
  65389. if (t1) {
  65390. t2.writeCharCode$1(46);
  65391. for (; writtenIndex < digitsIndex0; ++writtenIndex)
  65392. t2.writeCharCode$1(48 + digits[writtenIndex]);
  65393. }
  65394. },
  65395. _visitQuotedString$2$forceDoubleQuote(string, forceDoubleQuote) {
  65396. var t1, includesSingleQuote, includesDoubleQuote, i, char, newIndex, quote, _this = this,
  65397. buffer = forceDoubleQuote ? _this._serialize$_buffer : new A.StringBuffer("");
  65398. if (forceDoubleQuote)
  65399. buffer.writeCharCode$1(34);
  65400. for (t1 = string.length, includesSingleQuote = false, includesDoubleQuote = false, i = 0; i < t1; ++i) {
  65401. char = B.JSString_methods._codeUnitAt$1(string, i);
  65402. switch (char) {
  65403. case 39:
  65404. if (forceDoubleQuote)
  65405. buffer.writeCharCode$1(39);
  65406. else {
  65407. if (includesDoubleQuote) {
  65408. _this._visitQuotedString$2$forceDoubleQuote(string, true);
  65409. return;
  65410. } else
  65411. buffer.writeCharCode$1(39);
  65412. includesSingleQuote = true;
  65413. }
  65414. break;
  65415. case 34:
  65416. if (forceDoubleQuote) {
  65417. buffer.writeCharCode$1(92);
  65418. buffer.writeCharCode$1(34);
  65419. } else {
  65420. if (includesSingleQuote) {
  65421. _this._visitQuotedString$2$forceDoubleQuote(string, true);
  65422. return;
  65423. } else
  65424. buffer.writeCharCode$1(34);
  65425. includesDoubleQuote = true;
  65426. }
  65427. break;
  65428. case 0:
  65429. case 1:
  65430. case 2:
  65431. case 3:
  65432. case 4:
  65433. case 5:
  65434. case 6:
  65435. case 7:
  65436. case 8:
  65437. case 10:
  65438. case 11:
  65439. case 12:
  65440. case 13:
  65441. case 14:
  65442. case 15:
  65443. case 16:
  65444. case 17:
  65445. case 18:
  65446. case 19:
  65447. case 20:
  65448. case 21:
  65449. case 22:
  65450. case 23:
  65451. case 24:
  65452. case 25:
  65453. case 26:
  65454. case 27:
  65455. case 28:
  65456. case 29:
  65457. case 30:
  65458. case 31:
  65459. _this._writeEscape$4(buffer, char, string, i);
  65460. break;
  65461. case 92:
  65462. buffer.writeCharCode$1(92);
  65463. buffer.writeCharCode$1(92);
  65464. break;
  65465. default:
  65466. newIndex = _this._tryPrivateUseCharacter$4(buffer, char, string, i);
  65467. if (newIndex != null) {
  65468. i = newIndex;
  65469. break;
  65470. }
  65471. buffer.writeCharCode$1(char);
  65472. break;
  65473. }
  65474. }
  65475. if (forceDoubleQuote)
  65476. buffer.writeCharCode$1(34);
  65477. else {
  65478. quote = includesDoubleQuote ? 39 : 34;
  65479. t1 = _this._serialize$_buffer;
  65480. t1.writeCharCode$1(quote);
  65481. t1.write$1(0, buffer);
  65482. t1.writeCharCode$1(quote);
  65483. }
  65484. },
  65485. _visitQuotedString$1(string) {
  65486. return this._visitQuotedString$2$forceDoubleQuote(string, false);
  65487. },
  65488. _visitUnquotedString$1(string) {
  65489. var t1, t2, afterNewline, i, char, newIndex;
  65490. for (t1 = string.length, t2 = this._serialize$_buffer, afterNewline = false, i = 0; i < t1; ++i) {
  65491. char = B.JSString_methods._codeUnitAt$1(string, i);
  65492. switch (char) {
  65493. case 10:
  65494. t2.writeCharCode$1(32);
  65495. afterNewline = true;
  65496. break;
  65497. case 32:
  65498. if (!afterNewline)
  65499. t2.writeCharCode$1(32);
  65500. break;
  65501. default:
  65502. newIndex = this._tryPrivateUseCharacter$4(t2, char, string, i);
  65503. if (newIndex != null) {
  65504. i = newIndex;
  65505. afterNewline = false;
  65506. break;
  65507. }
  65508. t2.writeCharCode$1(char);
  65509. afterNewline = false;
  65510. break;
  65511. }
  65512. }
  65513. },
  65514. _tryPrivateUseCharacter$4(buffer, codeUnit, string, i) {
  65515. var t1;
  65516. if (this._style === B.OutputStyle_1)
  65517. return null;
  65518. if (codeUnit >= 57344 && codeUnit <= 63743) {
  65519. this._writeEscape$4(buffer, codeUnit, string, i);
  65520. return i;
  65521. }
  65522. if (codeUnit >>> 7 === 439 && string.length > i + 1) {
  65523. t1 = i + 1;
  65524. this._writeEscape$4(buffer, 65536 + ((codeUnit & 1023) << 10) + (B.JSString_methods._codeUnitAt$1(string, t1) & 1023), string, t1);
  65525. return t1;
  65526. }
  65527. return null;
  65528. },
  65529. _writeEscape$4(buffer, character, string, i) {
  65530. var t1, next;
  65531. buffer.writeCharCode$1(92);
  65532. buffer.write$1(0, B.JSInt_methods.toRadixString$1(character, 16));
  65533. t1 = i + 1;
  65534. if (string.length === t1)
  65535. return;
  65536. next = B.JSString_methods._codeUnitAt$1(string, t1);
  65537. if (A.isHex(next) || next === 32 || next === 9)
  65538. buffer.writeCharCode$1(32);
  65539. },
  65540. visitAttributeSelector$1(attribute) {
  65541. var value, t2,
  65542. t1 = this._serialize$_buffer;
  65543. t1.writeCharCode$1(91);
  65544. t1.write$1(0, attribute.name);
  65545. value = attribute.value;
  65546. if (value != null) {
  65547. t1.write$1(0, attribute.op);
  65548. if (A.Parser_isIdentifier(value) && !B.JSString_methods.startsWith$1(value, "--")) {
  65549. t1.write$1(0, value);
  65550. t2 = attribute.modifier;
  65551. if (t2 != null)
  65552. t1.writeCharCode$1(32);
  65553. } else {
  65554. this._visitQuotedString$1(value);
  65555. t2 = attribute.modifier;
  65556. if (t2 != null)
  65557. if (this._style !== B.OutputStyle_1)
  65558. t1.writeCharCode$1(32);
  65559. }
  65560. if (t2 != null)
  65561. t1.write$1(0, t2);
  65562. }
  65563. t1.writeCharCode$1(93);
  65564. },
  65565. visitClassSelector$1(klass) {
  65566. var t1 = this._serialize$_buffer;
  65567. t1.writeCharCode$1(46);
  65568. t1.write$1(0, klass.name);
  65569. },
  65570. visitComplexSelector$1(complex) {
  65571. var t2, t3, t4, t5, t6, i, component, t7, t8, t9, _this = this,
  65572. t1 = complex.leadingCombinators;
  65573. _this._writeCombinators$1(t1);
  65574. if (t1.length !== 0 && complex.components.length !== 0)
  65575. if (_this._style !== B.OutputStyle_1)
  65576. _this._serialize$_buffer.writeCharCode$1(32);
  65577. for (t1 = complex.components, t2 = t1.length, t3 = t2 - 1, t4 = _this._serialize$_buffer, t5 = _this._style === B.OutputStyle_1, t6 = !t5, i = 0; i < t2; ++i) {
  65578. component = t1[i];
  65579. _this.visitCompoundSelector$1(component.selector);
  65580. t7 = component.combinators;
  65581. t8 = t7.length === 0;
  65582. if (!t8)
  65583. if (t6)
  65584. t4.writeCharCode$1(32);
  65585. t9 = t5 ? "" : " ";
  65586. _this._writeBetween$3(t7, t9, t4.get$write(t4));
  65587. if (i !== t3)
  65588. t7 = !t5 || t8;
  65589. else
  65590. t7 = false;
  65591. if (t7)
  65592. t4.writeCharCode$1(32);
  65593. }
  65594. },
  65595. _writeCombinators$1(combinators) {
  65596. var t1 = this._style === B.OutputStyle_1 ? "" : " ",
  65597. t2 = this._serialize$_buffer;
  65598. return this._writeBetween$3(combinators, t1, t2.get$write(t2));
  65599. },
  65600. visitCompoundSelector$1(compound) {
  65601. var t2, t3, _i,
  65602. t1 = this._serialize$_buffer,
  65603. start = t1.get$length(t1);
  65604. for (t2 = compound.components, t3 = t2.length, _i = 0; _i < t3; ++_i)
  65605. t2[_i].accept$1(this);
  65606. if (t1.get$length(t1) === start)
  65607. t1.writeCharCode$1(42);
  65608. },
  65609. visitIDSelector$1(id) {
  65610. var t1 = this._serialize$_buffer;
  65611. t1.writeCharCode$1(35);
  65612. t1.write$1(0, id.name);
  65613. },
  65614. visitSelectorList$1(list) {
  65615. var t1, t2, t3, first, t4, _this = this,
  65616. complexes = list.components;
  65617. for (t1 = J.get$iterator$ax(_this._inspect ? complexes : new A.WhereIterable(complexes, new A._SerializeVisitor_visitSelectorList_closure(), A._arrayInstanceType(complexes)._eval$1("WhereIterable<1>"))), t2 = _this._style !== B.OutputStyle_1, t3 = _this._serialize$_buffer, first = true; t1.moveNext$0();) {
  65618. t4 = t1.get$current(t1);
  65619. if (first)
  65620. first = false;
  65621. else {
  65622. t3.writeCharCode$1(44);
  65623. if (t4.lineBreak) {
  65624. if (t2)
  65625. t3.write$1(0, "\n");
  65626. _this._writeIndentation$0();
  65627. } else if (t2)
  65628. t3.writeCharCode$1(32);
  65629. }
  65630. _this.visitComplexSelector$1(t4);
  65631. }
  65632. },
  65633. visitParentSelector$1($parent) {
  65634. var t2,
  65635. t1 = this._serialize$_buffer;
  65636. t1.writeCharCode$1(38);
  65637. t2 = $parent.suffix;
  65638. if (t2 != null)
  65639. t1.write$1(0, t2);
  65640. },
  65641. visitPlaceholderSelector$1(placeholder) {
  65642. var t1 = this._serialize$_buffer;
  65643. t1.writeCharCode$1(37);
  65644. t1.write$1(0, placeholder.name);
  65645. },
  65646. visitPseudoSelector$1(pseudo) {
  65647. var t3, t4, t5,
  65648. innerSelector = pseudo.selector,
  65649. t1 = innerSelector == null,
  65650. t2 = !t1;
  65651. if (t2 && pseudo.name === "not" && innerSelector.accept$1(B._IsInvisibleVisitor_true))
  65652. return;
  65653. t3 = this._serialize$_buffer;
  65654. t3.writeCharCode$1(58);
  65655. if (!pseudo.isSyntacticClass)
  65656. t3.writeCharCode$1(58);
  65657. t3.write$1(0, pseudo.name);
  65658. t4 = pseudo.argument;
  65659. t5 = t4 == null;
  65660. if (t5 && t1)
  65661. return;
  65662. t3.writeCharCode$1(40);
  65663. if (!t5) {
  65664. t3.write$1(0, t4);
  65665. if (t2)
  65666. t3.writeCharCode$1(32);
  65667. }
  65668. if (t2)
  65669. this.visitSelectorList$1(innerSelector);
  65670. t3.writeCharCode$1(41);
  65671. },
  65672. visitTypeSelector$1(type) {
  65673. this._serialize$_buffer.write$1(0, type.name);
  65674. },
  65675. visitUniversalSelector$1(universal) {
  65676. var t2,
  65677. t1 = universal.namespace;
  65678. if (t1 != null) {
  65679. t2 = this._serialize$_buffer;
  65680. t2.write$1(0, t1);
  65681. t2.writeCharCode$1(124);
  65682. }
  65683. this._serialize$_buffer.writeCharCode$1(42);
  65684. },
  65685. _serialize$_write$1(value) {
  65686. return this._serialize$_buffer.forSpan$2(value.get$span(value), new A._SerializeVisitor__write_closure(this, value));
  65687. },
  65688. _serialize$_visitChildren$1($parent) {
  65689. var t2, t3, t4, t5, t6, t7, t8, prePrevious, previous, t9, previous0, t10, savedIndentation, _this = this,
  65690. t1 = _this._serialize$_buffer;
  65691. t1.writeCharCode$1(123);
  65692. for (t2 = $parent.children, t2 = new A.ListIterator(t2, t2.get$length(t2)), t3 = _this._style === B.OutputStyle_1, t4 = !t3, t5 = !_this._inspect, t6 = A._instanceType(t2)._precomputed1, t7 = type$.CssComment, t8 = type$.CssParentNode, prePrevious = null, previous = null; t2.moveNext$0();) {
  65693. t9 = t2.__internal$_current;
  65694. previous0 = t9 == null ? t6._as(t9) : t9;
  65695. if (t5)
  65696. t9 = t3 ? previous0.accept$1(B._IsInvisibleVisitor_true_true) : previous0.accept$1(B._IsInvisibleVisitor_true_false);
  65697. else
  65698. t9 = false;
  65699. if (t9)
  65700. continue;
  65701. t9 = previous == null;
  65702. if (!t9)
  65703. t10 = t8._is(previous) ? previous.get$isChildless() : !t7._is(previous);
  65704. else
  65705. t10 = false;
  65706. if (t10)
  65707. t1.writeCharCode$1(59);
  65708. if (_this._isTrailingComment$2(previous0, t9 ? $parent : previous)) {
  65709. if (t4)
  65710. t1.writeCharCode$1(32);
  65711. savedIndentation = _this._indentation;
  65712. _this._indentation = 0;
  65713. new A._SerializeVisitor__visitChildren_closure(_this, previous0).call$0();
  65714. _this._indentation = savedIndentation;
  65715. } else {
  65716. if (t4)
  65717. t1.write$1(0, "\n");
  65718. ++_this._indentation;
  65719. new A._SerializeVisitor__visitChildren_closure0(_this, previous0).call$0();
  65720. --_this._indentation;
  65721. }
  65722. prePrevious = previous;
  65723. previous = previous0;
  65724. }
  65725. if (previous != null) {
  65726. if ((t8._is(previous) ? previous.get$isChildless() : !t7._is(previous)) && t4)
  65727. t1.writeCharCode$1(59);
  65728. if (prePrevious == null && _this._isTrailingComment$2(previous, $parent)) {
  65729. if (t4)
  65730. t1.writeCharCode$1(32);
  65731. } else {
  65732. _this._writeLineFeed$0();
  65733. _this._writeIndentation$0();
  65734. }
  65735. }
  65736. t1.writeCharCode$1(125);
  65737. },
  65738. _isTrailingComment$2(node, previous) {
  65739. var t1, t2, t3, searchFrom, endOffset, t4, span;
  65740. if (this._style === B.OutputStyle_1)
  65741. return false;
  65742. if (!type$.CssComment._is(node))
  65743. return false;
  65744. t1 = previous.get$span(previous);
  65745. t2 = node.span;
  65746. if (!(J.$eq$(t1.get$file(t1).url, t2.get$file(t2).url) && t1.get$start(t1).offset <= t2.get$start(t2).offset && t1.get$end(t1).offset >= t2.get$end(t2).offset)) {
  65747. t1 = t2.get$start(t2);
  65748. t1 = t1.file.getLine$1(t1.offset);
  65749. t2 = previous.get$span(previous);
  65750. t2 = t2.get$end(t2);
  65751. return t1 === t2.file.getLine$1(t2.offset);
  65752. }
  65753. t1 = t2.get$start(t2);
  65754. t3 = previous.get$span(previous);
  65755. searchFrom = t1.offset - t3.get$start(t3).offset - 1;
  65756. if (searchFrom < 0)
  65757. return false;
  65758. endOffset = Math.max(0, B.JSString_methods.lastIndexOf$2(previous.get$span(previous).get$text(), "{", searchFrom));
  65759. t1 = previous.get$span(previous);
  65760. t1 = t1.get$file(t1);
  65761. t3 = previous.get$span(previous);
  65762. t3 = t3.get$start(t3);
  65763. t4 = previous.get$span(previous);
  65764. span = t1.span$2(0, t3.offset, t4.get$start(t4).offset + endOffset);
  65765. t2 = t2.get$start(t2);
  65766. t2 = t2.file.getLine$1(t2.offset);
  65767. t4 = A.FileLocation$_(span.file, span._end);
  65768. return t2 === t4.file.getLine$1(t4.offset);
  65769. },
  65770. _writeLineFeed$0() {
  65771. if (this._style !== B.OutputStyle_1)
  65772. this._serialize$_buffer.write$1(0, "\n");
  65773. },
  65774. _writeIndentation$0() {
  65775. var _this = this;
  65776. if (_this._style === B.OutputStyle_1)
  65777. return;
  65778. _this._writeTimes$2(_this._indentCharacter, _this._indentation * _this._indentWidth);
  65779. },
  65780. _writeTimes$2(char, times) {
  65781. var t1, i;
  65782. for (t1 = this._serialize$_buffer, i = 0; i < times; ++i)
  65783. t1.writeCharCode$1(char);
  65784. },
  65785. _writeBetween$1$3(iterable, text, callback) {
  65786. var t1, t2, first, value;
  65787. for (t1 = J.get$iterator$ax(iterable), t2 = this._serialize$_buffer, first = true; t1.moveNext$0();) {
  65788. value = t1.get$current(t1);
  65789. if (first)
  65790. first = false;
  65791. else
  65792. t2.write$1(0, text);
  65793. callback.call$1(value);
  65794. }
  65795. },
  65796. _writeBetween$3(iterable, text, callback) {
  65797. return this._writeBetween$1$3(iterable, text, callback, type$.dynamic);
  65798. }
  65799. };
  65800. A._SerializeVisitor_visitCssComment_closure.prototype = {
  65801. call$0() {
  65802. var t2, t3, minimumIndentation,
  65803. t1 = this.$this;
  65804. if (t1._style === B.OutputStyle_1 && B.JSString_methods._codeUnitAt$1(this.node.text, 2) !== 33)
  65805. return;
  65806. t2 = this.node;
  65807. t3 = t2.text;
  65808. minimumIndentation = t1._minimumIndentation$1(t3);
  65809. if (minimumIndentation == null) {
  65810. t1._writeIndentation$0();
  65811. t1._serialize$_buffer.write$1(0, t3);
  65812. return;
  65813. }
  65814. t2 = t2.span;
  65815. t2 = t2.get$start(t2);
  65816. minimumIndentation = Math.min(minimumIndentation, t2.file.getColumn$1(t2.offset));
  65817. t1._writeIndentation$0();
  65818. t1._writeWithIndent$2(t3, minimumIndentation);
  65819. },
  65820. $signature: 1
  65821. };
  65822. A._SerializeVisitor_visitCssAtRule_closure.prototype = {
  65823. call$0() {
  65824. var t3, value,
  65825. t1 = this.$this,
  65826. t2 = t1._serialize$_buffer;
  65827. t2.writeCharCode$1(64);
  65828. t3 = this.node;
  65829. t1._serialize$_write$1(t3.name);
  65830. value = t3.value;
  65831. if (value != null) {
  65832. t2.writeCharCode$1(32);
  65833. t1._serialize$_write$1(value);
  65834. }
  65835. },
  65836. $signature: 1
  65837. };
  65838. A._SerializeVisitor_visitCssMediaRule_closure.prototype = {
  65839. call$0() {
  65840. var t3, firstQuery, t4, t5,
  65841. t1 = this.$this,
  65842. t2 = t1._serialize$_buffer;
  65843. t2.write$1(0, "@media");
  65844. t3 = this.node.queries;
  65845. firstQuery = B.JSArray_methods.get$first(t3);
  65846. t4 = t1._style === B.OutputStyle_1;
  65847. if (t4)
  65848. if (firstQuery.modifier == null)
  65849. if (firstQuery.type == null) {
  65850. t5 = firstQuery.conditions;
  65851. t5 = t5.length === 1 && J.startsWith$1$s(B.JSArray_methods.get$first(t5), "(not ");
  65852. } else
  65853. t5 = true;
  65854. else
  65855. t5 = true;
  65856. else
  65857. t5 = true;
  65858. if (t5)
  65859. t2.writeCharCode$1(32);
  65860. t2 = t4 ? "," : ", ";
  65861. t1._writeBetween$3(t3, t2, t1.get$_visitMediaQuery());
  65862. },
  65863. $signature: 1
  65864. };
  65865. A._SerializeVisitor_visitCssImport_closure.prototype = {
  65866. call$0() {
  65867. var t3, t4, t5, modifiers,
  65868. t1 = this.$this,
  65869. t2 = t1._serialize$_buffer;
  65870. t2.write$1(0, "@import");
  65871. t3 = t1._style !== B.OutputStyle_1;
  65872. if (t3)
  65873. t2.writeCharCode$1(32);
  65874. t4 = this.node;
  65875. t5 = t4.url;
  65876. t2.forSpan$2(t5.get$span(t5), new A._SerializeVisitor_visitCssImport__closure(t1, t4));
  65877. modifiers = t4.modifiers;
  65878. if (modifiers != null) {
  65879. if (t3)
  65880. t2.writeCharCode$1(32);
  65881. t2.write$1(0, modifiers);
  65882. }
  65883. },
  65884. $signature: 1
  65885. };
  65886. A._SerializeVisitor_visitCssImport__closure.prototype = {
  65887. call$0() {
  65888. var t1 = this.node.url;
  65889. return this.$this._writeImportUrl$1(t1.get$value(t1));
  65890. },
  65891. $signature: 0
  65892. };
  65893. A._SerializeVisitor_visitCssKeyframeBlock_closure.prototype = {
  65894. call$0() {
  65895. var t1 = this.$this,
  65896. t2 = t1._style === B.OutputStyle_1 ? "," : ", ",
  65897. t3 = t1._serialize$_buffer;
  65898. return t1._writeBetween$3(this.node.selector.value, t2, t3.get$write(t3));
  65899. },
  65900. $signature: 0
  65901. };
  65902. A._SerializeVisitor_visitCssStyleRule_closure.prototype = {
  65903. call$0() {
  65904. return this.$this.visitSelectorList$1(this.node.selector.value);
  65905. },
  65906. $signature: 0
  65907. };
  65908. A._SerializeVisitor_visitCssSupportsRule_closure.prototype = {
  65909. call$0() {
  65910. var t1 = this.$this,
  65911. t2 = t1._serialize$_buffer;
  65912. t2.write$1(0, "@supports");
  65913. if (!(t1._style === B.OutputStyle_1 && J.codeUnitAt$1$s(this.node.condition.value, 0) === 40))
  65914. t2.writeCharCode$1(32);
  65915. t1._serialize$_write$1(this.node.condition);
  65916. },
  65917. $signature: 1
  65918. };
  65919. A._SerializeVisitor_visitCssDeclaration_closure.prototype = {
  65920. call$0() {
  65921. var t1 = this.$this,
  65922. t2 = this.node;
  65923. if (t1._style === B.OutputStyle_1)
  65924. t1._writeFoldedValue$1(t2);
  65925. else
  65926. t1._writeReindentedValue$1(t2);
  65927. },
  65928. $signature: 1
  65929. };
  65930. A._SerializeVisitor_visitCssDeclaration_closure0.prototype = {
  65931. call$0() {
  65932. var t1 = this.node.value;
  65933. return t1.get$value(t1).accept$1(this.$this);
  65934. },
  65935. $signature: 0
  65936. };
  65937. A._SerializeVisitor_visitList_closure.prototype = {
  65938. call$1(element) {
  65939. return !element.get$isBlank();
  65940. },
  65941. $signature: 65
  65942. };
  65943. A._SerializeVisitor_visitList_closure0.prototype = {
  65944. call$1(element) {
  65945. var t1 = this.$this,
  65946. needsParens = t1._elementNeedsParens$2(this.value._separator, element);
  65947. if (needsParens)
  65948. t1._serialize$_buffer.writeCharCode$1(40);
  65949. element.accept$1(t1);
  65950. if (needsParens)
  65951. t1._serialize$_buffer.writeCharCode$1(41);
  65952. },
  65953. $signature: 53
  65954. };
  65955. A._SerializeVisitor_visitList_closure1.prototype = {
  65956. call$1(element) {
  65957. element.accept$1(this.$this);
  65958. },
  65959. $signature: 53
  65960. };
  65961. A._SerializeVisitor_visitMap_closure.prototype = {
  65962. call$1(entry) {
  65963. var t1 = this.$this;
  65964. t1._writeMapElement$1(entry.key);
  65965. t1._serialize$_buffer.write$1(0, ": ");
  65966. t1._writeMapElement$1(entry.value);
  65967. },
  65968. $signature: 267
  65969. };
  65970. A._SerializeVisitor_visitSelectorList_closure.prototype = {
  65971. call$1(complex) {
  65972. return !complex.accept$1(B._IsInvisibleVisitor_true);
  65973. },
  65974. $signature: 16
  65975. };
  65976. A._SerializeVisitor__write_closure.prototype = {
  65977. call$0() {
  65978. var t1 = this.value;
  65979. return this.$this._serialize$_buffer.write$1(0, t1.get$value(t1));
  65980. },
  65981. $signature: 0
  65982. };
  65983. A._SerializeVisitor__visitChildren_closure.prototype = {
  65984. call$0() {
  65985. return this.child.accept$1(this.$this);
  65986. },
  65987. $signature: 0
  65988. };
  65989. A._SerializeVisitor__visitChildren_closure0.prototype = {
  65990. call$0() {
  65991. this.child.accept$1(this.$this);
  65992. },
  65993. $signature: 0
  65994. };
  65995. A.OutputStyle.prototype = {
  65996. toString$0(_) {
  65997. return "OutputStyle." + this._name;
  65998. }
  65999. };
  66000. A.LineFeed.prototype = {
  66001. toString$0(_) {
  66002. return "lf";
  66003. }
  66004. };
  66005. A.SerializeResult.prototype = {};
  66006. A.StatementSearchVisitor.prototype = {
  66007. visitAtRootRule$1(node) {
  66008. return this.visitChildren$1(node.children);
  66009. },
  66010. visitAtRule$1(node) {
  66011. return A.NullableExtension_andThen(node.children, this.get$visitChildren());
  66012. },
  66013. visitContentBlock$1(node) {
  66014. return this.visitChildren$1(node.children);
  66015. },
  66016. visitDebugRule$1(node) {
  66017. return null;
  66018. },
  66019. visitDeclaration$1(node) {
  66020. return A.NullableExtension_andThen(node.children, this.get$visitChildren());
  66021. },
  66022. visitEachRule$1(node) {
  66023. return this.visitChildren$1(node.children);
  66024. },
  66025. visitErrorRule$1(node) {
  66026. return null;
  66027. },
  66028. visitExtendRule$1(node) {
  66029. return null;
  66030. },
  66031. visitForRule$1(node) {
  66032. return this.visitChildren$1(node.children);
  66033. },
  66034. visitForwardRule$1(node) {
  66035. return null;
  66036. },
  66037. visitFunctionRule$1(node) {
  66038. return this.visitChildren$1(node.children);
  66039. },
  66040. visitIfRule$1(node) {
  66041. var t1 = A._IterableExtension__search(node.clauses, new A.StatementSearchVisitor_visitIfRule_closure(this));
  66042. return t1 == null ? A.NullableExtension_andThen(node.lastClause, new A.StatementSearchVisitor_visitIfRule_closure0(this)) : t1;
  66043. },
  66044. visitImportRule$1(node) {
  66045. return null;
  66046. },
  66047. visitIncludeRule$1(node) {
  66048. return A.NullableExtension_andThen(node.content, this.get$visitContentBlock());
  66049. },
  66050. visitLoudComment$1(node) {
  66051. return null;
  66052. },
  66053. visitMediaRule$1(node) {
  66054. return this.visitChildren$1(node.children);
  66055. },
  66056. visitMixinRule$1(node) {
  66057. return this.visitChildren$1(node.children);
  66058. },
  66059. visitReturnRule$1(node) {
  66060. return null;
  66061. },
  66062. visitSilentComment$1(node) {
  66063. return null;
  66064. },
  66065. visitStyleRule$1(node) {
  66066. return this.visitChildren$1(node.children);
  66067. },
  66068. visitStylesheet$1(node) {
  66069. return this.visitChildren$1(node.children);
  66070. },
  66071. visitSupportsRule$1(node) {
  66072. return this.visitChildren$1(node.children);
  66073. },
  66074. visitUseRule$1(node) {
  66075. return null;
  66076. },
  66077. visitVariableDeclaration$1(node) {
  66078. return null;
  66079. },
  66080. visitWarnRule$1(node) {
  66081. return null;
  66082. },
  66083. visitWhileRule$1(node) {
  66084. return this.visitChildren$1(node.children);
  66085. },
  66086. visitChildren$1(children) {
  66087. return A._IterableExtension__search(children, new A.StatementSearchVisitor_visitChildren_closure(this));
  66088. }
  66089. };
  66090. A.StatementSearchVisitor_visitIfRule_closure.prototype = {
  66091. call$1(clause) {
  66092. return A._IterableExtension__search(clause.children, new A.StatementSearchVisitor_visitIfRule__closure0(this.$this));
  66093. },
  66094. $signature() {
  66095. return A._instanceType(this.$this)._eval$1("StatementSearchVisitor.T?(IfClause)");
  66096. }
  66097. };
  66098. A.StatementSearchVisitor_visitIfRule__closure0.prototype = {
  66099. call$1(child) {
  66100. return child.accept$1(this.$this);
  66101. },
  66102. $signature() {
  66103. return A._instanceType(this.$this)._eval$1("StatementSearchVisitor.T?(Statement)");
  66104. }
  66105. };
  66106. A.StatementSearchVisitor_visitIfRule_closure0.prototype = {
  66107. call$1(lastClause) {
  66108. return A._IterableExtension__search(lastClause.children, new A.StatementSearchVisitor_visitIfRule__closure(this.$this));
  66109. },
  66110. $signature() {
  66111. return A._instanceType(this.$this)._eval$1("StatementSearchVisitor.T?(ElseClause)");
  66112. }
  66113. };
  66114. A.StatementSearchVisitor_visitIfRule__closure.prototype = {
  66115. call$1(child) {
  66116. return child.accept$1(this.$this);
  66117. },
  66118. $signature() {
  66119. return A._instanceType(this.$this)._eval$1("StatementSearchVisitor.T?(Statement)");
  66120. }
  66121. };
  66122. A.StatementSearchVisitor_visitChildren_closure.prototype = {
  66123. call$1(child) {
  66124. return child.accept$1(this.$this);
  66125. },
  66126. $signature() {
  66127. return A._instanceType(this.$this)._eval$1("StatementSearchVisitor.T?(Statement)");
  66128. }
  66129. };
  66130. A.Entry.prototype = {
  66131. compareTo$1(_, other) {
  66132. var t1, t2,
  66133. res = this.target.compareTo$1(0, other.target);
  66134. if (res !== 0)
  66135. return res;
  66136. t1 = this.source;
  66137. t2 = other.source;
  66138. res = B.JSString_methods.compareTo$1(J.toString$0$(t1.file.url), J.toString$0$(t2.file.url));
  66139. if (res !== 0)
  66140. return res;
  66141. return t1.compareTo$1(0, t2);
  66142. },
  66143. $isComparable: 1
  66144. };
  66145. A.Mapping.prototype = {};
  66146. A.SingleMapping.prototype = {
  66147. toJson$1$includeSourceContents(includeSourceContents) {
  66148. var t1, t2, line, column, srcLine, srcColumn, srcUrlId, srcNameId, first, _i, entry, nextLine, i, t3, t4, column0, t5, newUrlId, srcLine0, srcColumn0, srcNameId0, result, _this = this,
  66149. buff = new A.StringBuffer("");
  66150. for (t1 = _this.lines, t2 = t1.length, line = 0, column = 0, srcLine = 0, srcColumn = 0, srcUrlId = 0, srcNameId = 0, first = true, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
  66151. entry = t1[_i];
  66152. nextLine = entry.line;
  66153. if (nextLine > line) {
  66154. for (i = line; i < nextLine; ++i)
  66155. buff._contents += ";";
  66156. line = nextLine;
  66157. column = 0;
  66158. first = true;
  66159. }
  66160. for (t3 = J.get$iterator$ax(entry.entries); t3.moveNext$0(); column = column0, first = false) {
  66161. t4 = t3.get$current(t3);
  66162. if (!first)
  66163. buff._contents += ",";
  66164. column0 = t4.column;
  66165. t5 = A.encodeVlq(column0 - column);
  66166. t5 = A.StringBuffer__writeAll(buff._contents, t5, "");
  66167. buff._contents = t5;
  66168. newUrlId = t4.sourceUrlId;
  66169. t5 = A.StringBuffer__writeAll(t5, A.encodeVlq(newUrlId - srcUrlId), "");
  66170. buff._contents = t5;
  66171. srcLine0 = t4.sourceLine;
  66172. t5 = A.StringBuffer__writeAll(t5, A.encodeVlq(srcLine0 - srcLine), "");
  66173. buff._contents = t5;
  66174. srcColumn0 = t4.sourceColumn;
  66175. t5 = A.StringBuffer__writeAll(t5, A.encodeVlq(srcColumn0 - srcColumn), "");
  66176. buff._contents = t5;
  66177. srcNameId0 = t4.sourceNameId;
  66178. if (srcNameId0 == null) {
  66179. srcUrlId = newUrlId;
  66180. srcColumn = srcColumn0;
  66181. srcLine = srcLine0;
  66182. continue;
  66183. }
  66184. buff._contents = A.StringBuffer__writeAll(t5, A.encodeVlq(srcNameId0 - srcNameId), "");
  66185. srcNameId = srcNameId0;
  66186. srcUrlId = newUrlId;
  66187. srcColumn = srcColumn0;
  66188. srcLine = srcLine0;
  66189. }
  66190. }
  66191. t1 = _this.sourceRoot;
  66192. if (t1 == null)
  66193. t1 = "";
  66194. t2 = buff._contents;
  66195. result = A.LinkedHashMap_LinkedHashMap$_literal(["version", 3, "sourceRoot", t1, "sources", _this.urls, "names", _this.names, "mappings", t2.charCodeAt(0) == 0 ? t2 : t2], type$.String, type$.Object);
  66196. t1 = _this.targetUrl;
  66197. if (t1 != null)
  66198. result.$indexSet(0, "file", t1);
  66199. if (includeSourceContents) {
  66200. t1 = _this.files;
  66201. t2 = A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String?>");
  66202. result.$indexSet(0, "sourcesContent", A.List_List$of(new A.MappedListIterable(t1, new A.SingleMapping_toJson_closure(), t2), true, t2._eval$1("ListIterable.E")));
  66203. }
  66204. _this.extensions.forEach$1(0, new A.SingleMapping_toJson_closure0(result));
  66205. return result;
  66206. },
  66207. toJson$0() {
  66208. return this.toJson$1$includeSourceContents(false);
  66209. },
  66210. toString$0(_) {
  66211. var _this = this,
  66212. t1 = A.getRuntimeType(_this).toString$0(0) + " : [" + "targetUrl: " + A.S(_this.targetUrl) + ", sourceRoot: " + A.S(_this.sourceRoot) + ", urls: " + A.S(_this.urls) + ", names: " + A.S(_this.names) + ", lines: " + A.S(_this.lines) + "]";
  66213. return t1.charCodeAt(0) == 0 ? t1 : t1;
  66214. }
  66215. };
  66216. A.SingleMapping_SingleMapping$fromEntries_closure.prototype = {
  66217. call$0() {
  66218. return this.urls.__js_helper$_length;
  66219. },
  66220. $signature: 12
  66221. };
  66222. A.SingleMapping_SingleMapping$fromEntries_closure0.prototype = {
  66223. call$0() {
  66224. return this.sourceEntry.source.file;
  66225. },
  66226. $signature: 268
  66227. };
  66228. A.SingleMapping_SingleMapping$fromEntries_closure1.prototype = {
  66229. call$1(i) {
  66230. return this.files.$index(0, i);
  66231. },
  66232. $signature: 269
  66233. };
  66234. A.SingleMapping_toJson_closure.prototype = {
  66235. call$1(file) {
  66236. return file == null ? null : A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(file._decodedChars, 0, null), 0, null);
  66237. },
  66238. $signature: 270
  66239. };
  66240. A.SingleMapping_toJson_closure0.prototype = {
  66241. call$2($name, value) {
  66242. this.result.$indexSet(0, $name, value);
  66243. return value;
  66244. },
  66245. $signature: 231
  66246. };
  66247. A.TargetLineEntry.prototype = {
  66248. toString$0(_) {
  66249. return A.getRuntimeType(this).toString$0(0) + ": " + this.line + " " + A.S(this.entries);
  66250. }
  66251. };
  66252. A.TargetEntry.prototype = {
  66253. toString$0(_) {
  66254. var _this = this;
  66255. return A.getRuntimeType(_this).toString$0(0) + ": (" + _this.column + ", " + _this.sourceUrlId + ", " + _this.sourceLine + ", " + _this.sourceColumn + ", " + A.S(_this.sourceNameId) + ")";
  66256. }
  66257. };
  66258. A.SourceFile.prototype = {
  66259. get$length(_) {
  66260. return this._decodedChars.length;
  66261. },
  66262. get$lines() {
  66263. return this._lineStarts.length;
  66264. },
  66265. SourceFile$decoded$2$url(decodedChars, url) {
  66266. var t1, t2, t3, i, c, j;
  66267. for (t1 = this._decodedChars, t2 = t1.length, t3 = this._lineStarts, i = 0; i < t2; ++i) {
  66268. c = t1[i];
  66269. if (c === 13) {
  66270. j = i + 1;
  66271. if (j >= t2 || t1[j] !== 10)
  66272. c = 10;
  66273. }
  66274. if (c === 10)
  66275. t3.push(i + 1);
  66276. }
  66277. },
  66278. span$2(_, start, end) {
  66279. return A._FileSpan$(this, start, end == null ? this._decodedChars.length : end);
  66280. },
  66281. span$1($receiver, start) {
  66282. return this.span$2($receiver, start, null);
  66283. },
  66284. getLine$1(offset) {
  66285. var t1, _this = this;
  66286. if (offset < 0)
  66287. throw A.wrapException(A.RangeError$("Offset may not be negative, was " + offset + "."));
  66288. else if (offset > _this._decodedChars.length)
  66289. throw A.wrapException(A.RangeError$("Offset " + offset + string$.x20must_ + _this.get$length(_this) + "."));
  66290. t1 = _this._lineStarts;
  66291. if (offset < B.JSArray_methods.get$first(t1))
  66292. return -1;
  66293. if (offset >= B.JSArray_methods.get$last(t1))
  66294. return t1.length - 1;
  66295. if (_this._isNearCachedLine$1(offset)) {
  66296. t1 = _this._cachedLine;
  66297. t1.toString;
  66298. return t1;
  66299. }
  66300. return _this._cachedLine = _this._binarySearch$1(offset) - 1;
  66301. },
  66302. _isNearCachedLine$1(offset) {
  66303. var t2, t3,
  66304. t1 = this._cachedLine;
  66305. if (t1 == null)
  66306. return false;
  66307. t2 = this._lineStarts;
  66308. if (offset < t2[t1])
  66309. return false;
  66310. t3 = t2.length;
  66311. if (t1 >= t3 - 1 || offset < t2[t1 + 1])
  66312. return true;
  66313. if (t1 >= t3 - 2 || offset < t2[t1 + 2]) {
  66314. this._cachedLine = t1 + 1;
  66315. return true;
  66316. }
  66317. return false;
  66318. },
  66319. _binarySearch$1(offset) {
  66320. var min, half,
  66321. t1 = this._lineStarts,
  66322. max = t1.length - 1;
  66323. for (min = 0; min < max;) {
  66324. half = min + B.JSInt_methods._tdivFast$1(max - min, 2);
  66325. if (t1[half] > offset)
  66326. max = half;
  66327. else
  66328. min = half + 1;
  66329. }
  66330. return max;
  66331. },
  66332. getColumn$1(offset) {
  66333. var line, lineStart, _this = this;
  66334. if (offset < 0)
  66335. throw A.wrapException(A.RangeError$("Offset may not be negative, was " + offset + "."));
  66336. else if (offset > _this._decodedChars.length)
  66337. throw A.wrapException(A.RangeError$("Offset " + offset + " must be not be greater than the number of characters in the file, " + _this.get$length(_this) + "."));
  66338. line = _this.getLine$1(offset);
  66339. lineStart = _this._lineStarts[line];
  66340. if (lineStart > offset)
  66341. throw A.wrapException(A.RangeError$("Line " + line + " comes after offset " + offset + "."));
  66342. return offset - lineStart;
  66343. },
  66344. getOffset$1(line) {
  66345. var t1, t2, result, t3;
  66346. if (line < 0)
  66347. throw A.wrapException(A.RangeError$("Line may not be negative, was " + line + "."));
  66348. else {
  66349. t1 = this._lineStarts;
  66350. t2 = t1.length;
  66351. if (line >= t2)
  66352. throw A.wrapException(A.RangeError$("Line " + line + " must be less than the number of lines in the file, " + this.get$lines() + "."));
  66353. }
  66354. result = t1[line];
  66355. if (result <= this._decodedChars.length) {
  66356. t3 = line + 1;
  66357. t1 = t3 < t2 && result >= t1[t3];
  66358. } else
  66359. t1 = true;
  66360. if (t1)
  66361. throw A.wrapException(A.RangeError$("Line " + line + " doesn't have 0 columns."));
  66362. return result;
  66363. }
  66364. };
  66365. A.FileLocation.prototype = {
  66366. get$sourceUrl(_) {
  66367. return this.file.url;
  66368. },
  66369. get$line() {
  66370. return this.file.getLine$1(this.offset);
  66371. },
  66372. get$column() {
  66373. return this.file.getColumn$1(this.offset);
  66374. },
  66375. FileLocation$_$2(file, offset) {
  66376. var t2,
  66377. t1 = this.offset;
  66378. if (t1 < 0)
  66379. throw A.wrapException(A.RangeError$("Offset may not be negative, was " + t1 + "."));
  66380. else {
  66381. t2 = this.file;
  66382. if (t1 > t2._decodedChars.length)
  66383. throw A.wrapException(A.RangeError$("Offset " + t1 + string$.x20must_ + t2.get$length(t2) + "."));
  66384. }
  66385. },
  66386. pointSpan$0() {
  66387. var t1 = this.offset;
  66388. return A._FileSpan$(this.file, t1, t1);
  66389. },
  66390. get$offset() {
  66391. return this.offset;
  66392. }
  66393. };
  66394. A._FileSpan.prototype = {
  66395. get$sourceUrl(_) {
  66396. return this.file.url;
  66397. },
  66398. get$length(_) {
  66399. return this._end - this._file$_start;
  66400. },
  66401. get$start(_) {
  66402. return A.FileLocation$_(this.file, this._file$_start);
  66403. },
  66404. get$end(_) {
  66405. return A.FileLocation$_(this.file, this._end);
  66406. },
  66407. get$text() {
  66408. return A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(this.file._decodedChars, this._file$_start, this._end), 0, null);
  66409. },
  66410. get$context(_) {
  66411. var _this = this,
  66412. t1 = _this.file,
  66413. endOffset = _this._end,
  66414. endLine = t1.getLine$1(endOffset);
  66415. if (t1.getColumn$1(endOffset) === 0 && endLine !== 0) {
  66416. if (endOffset - _this._file$_start === 0)
  66417. return endLine === t1._lineStarts.length - 1 ? "" : A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t1._decodedChars, t1.getOffset$1(endLine), t1.getOffset$1(endLine + 1)), 0, null);
  66418. } else
  66419. endOffset = endLine === t1._lineStarts.length - 1 ? t1._decodedChars.length : t1.getOffset$1(endLine + 1);
  66420. return A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t1._decodedChars, t1.getOffset$1(t1.getLine$1(_this._file$_start)), endOffset), 0, null);
  66421. },
  66422. _FileSpan$3(file, _start, _end) {
  66423. var t3,
  66424. t1 = this._end,
  66425. t2 = this._file$_start;
  66426. if (t1 < t2)
  66427. throw A.wrapException(A.ArgumentError$("End " + t1 + " must come after start " + t2 + ".", null));
  66428. else {
  66429. t3 = this.file;
  66430. if (t1 > t3._decodedChars.length)
  66431. throw A.wrapException(A.RangeError$("End " + t1 + string$.x20must_ + t3.get$length(t3) + "."));
  66432. else if (t2 < 0)
  66433. throw A.wrapException(A.RangeError$("Start may not be negative, was " + t2 + "."));
  66434. }
  66435. },
  66436. compareTo$1(_, other) {
  66437. var result;
  66438. if (!(other instanceof A._FileSpan))
  66439. return this.super$SourceSpanMixin$compareTo(0, other);
  66440. result = B.JSInt_methods.compareTo$1(this._file$_start, other._file$_start);
  66441. return result === 0 ? B.JSInt_methods.compareTo$1(this._end, other._end) : result;
  66442. },
  66443. $eq(_, other) {
  66444. var _this = this;
  66445. if (other == null)
  66446. return false;
  66447. if (!type$.FileSpan._is(other))
  66448. return _this.super$SourceSpanMixin$$eq(0, other);
  66449. if (!(other instanceof A._FileSpan))
  66450. return _this.super$SourceSpanMixin$$eq(0, other) && J.$eq$(_this.file.url, other.get$sourceUrl(other));
  66451. return _this._file$_start === other._file$_start && _this._end === other._end && J.$eq$(_this.file.url, other.file.url);
  66452. },
  66453. get$hashCode(_) {
  66454. return A.Object_hash(this._file$_start, this._end, this.file.url, B.C_SentinelValue);
  66455. },
  66456. expand$1(_, other) {
  66457. var t2, t3, _this = this,
  66458. t1 = _this.file;
  66459. if (!J.$eq$(t1.url, other.get$sourceUrl(other)))
  66460. throw A.wrapException(A.ArgumentError$('Source URLs "' + A.S(_this.get$sourceUrl(_this)) + '" and "' + A.S(other.get$sourceUrl(other)) + "\" don't match.", null));
  66461. t2 = _this._file$_start;
  66462. t3 = _this._end;
  66463. if (other instanceof A._FileSpan)
  66464. return A._FileSpan$(t1, Math.min(t2, other._file$_start), Math.max(t3, other._end));
  66465. else
  66466. return A._FileSpan$(t1, Math.min(t2, other.get$start(other).offset), Math.max(t3, other.get$end(other).offset));
  66467. },
  66468. $isFileSpan: 1,
  66469. $isSourceSpanWithContext: 1,
  66470. get$file(receiver) {
  66471. return this.file;
  66472. }
  66473. };
  66474. A.Highlighter.prototype = {
  66475. highlight$0() {
  66476. var t2, highlightsByColumn, t3, t4, i, line, lastLine, t5, t6, t7, t8, t9, t10, t11, index, primaryIdx, primary, _i, highlight, _this = this, _null = null,
  66477. t1 = _this._lines;
  66478. _this._writeFileStart$1(B.JSArray_methods.get$first(t1).url);
  66479. t2 = _this._maxMultilineSpans;
  66480. highlightsByColumn = A.List_List$filled(t2, _null, false, type$.nullable__Highlight);
  66481. for (t3 = _this._highlighter$_buffer, t2 = t2 !== 0, t4 = _this._primaryColor, i = 0; i < t1.length; ++i) {
  66482. line = t1[i];
  66483. if (i > 0) {
  66484. lastLine = t1[i - 1];
  66485. t5 = lastLine.url;
  66486. t6 = line.url;
  66487. if (!J.$eq$(t5, t6)) {
  66488. _this._writeSidebar$1$end($._glyphs.get$upEnd());
  66489. t3._contents += "\n";
  66490. _this._writeFileStart$1(t6);
  66491. } else if (lastLine.number + 1 !== line.number) {
  66492. _this._writeSidebar$1$text("...");
  66493. t3._contents += "\n";
  66494. }
  66495. }
  66496. for (t5 = line.highlights, t6 = new A.ReversedListIterable(t5, A._arrayInstanceType(t5)._eval$1("ReversedListIterable<1>")), t6 = new A.ListIterator(t6, t6.get$length(t6)), t7 = A._instanceType(t6)._precomputed1, t8 = line.number, t9 = line.text; t6.moveNext$0();) {
  66497. t10 = t6.__internal$_current;
  66498. if (t10 == null)
  66499. t10 = t7._as(t10);
  66500. t11 = t10.span;
  66501. if (t11.get$start(t11).get$line() !== t11.get$end(t11).get$line() && t11.get$start(t11).get$line() === t8 && _this._isOnlyWhitespace$1(B.JSString_methods.substring$2(t9, 0, t11.get$start(t11).get$column()))) {
  66502. index = B.JSArray_methods.indexOf$1(highlightsByColumn, _null);
  66503. if (index < 0)
  66504. A.throwExpression(A.ArgumentError$(A.S(highlightsByColumn) + " contains no null elements.", _null));
  66505. highlightsByColumn[index] = t10;
  66506. }
  66507. }
  66508. _this._writeSidebar$1$line(t8);
  66509. t3._contents += " ";
  66510. _this._writeMultilineHighlights$2(line, highlightsByColumn);
  66511. if (t2)
  66512. t3._contents += " ";
  66513. primaryIdx = B.JSArray_methods.indexWhere$1(t5, new A.Highlighter_highlight_closure());
  66514. primary = primaryIdx === -1 ? _null : t5[primaryIdx];
  66515. t6 = primary != null;
  66516. if (t6) {
  66517. t7 = primary.span;
  66518. t10 = t7.get$start(t7).get$line() === t8 ? t7.get$start(t7).get$column() : 0;
  66519. _this._writeHighlightedText$4$color(t9, t10, t7.get$end(t7).get$line() === t8 ? t7.get$end(t7).get$column() : t9.length, t4);
  66520. } else
  66521. _this._writeText$1(t9);
  66522. t3._contents += "\n";
  66523. if (t6)
  66524. _this._writeIndicator$3(line, primary, highlightsByColumn);
  66525. for (t6 = t5.length, _i = 0; _i < t5.length; t5.length === t6 || (0, A.throwConcurrentModificationError)(t5), ++_i) {
  66526. highlight = t5[_i];
  66527. if (highlight.isPrimary)
  66528. continue;
  66529. _this._writeIndicator$3(line, highlight, highlightsByColumn);
  66530. }
  66531. }
  66532. _this._writeSidebar$1$end($._glyphs.get$upEnd());
  66533. t1 = t3._contents;
  66534. return t1.charCodeAt(0) == 0 ? t1 : t1;
  66535. },
  66536. _writeFileStart$1(url) {
  66537. var _this = this,
  66538. t1 = !_this._multipleFiles || !type$.Uri._is(url),
  66539. t2 = $._glyphs;
  66540. if (t1)
  66541. _this._writeSidebar$1$end(t2.get$downEnd());
  66542. else {
  66543. _this._writeSidebar$1$end(t2.get$topLeftCorner());
  66544. _this._colorize$2$color(new A.Highlighter__writeFileStart_closure(_this), "\x1b[34m");
  66545. _this._highlighter$_buffer._contents += " " + $.$get$context().prettyUri$1(url);
  66546. }
  66547. _this._highlighter$_buffer._contents += "\n";
  66548. },
  66549. _writeMultilineHighlights$3$current(line, highlightsByColumn, current) {
  66550. var t1, currentColor, t2, t3, t4, t5, foundCurrent, _i, highlight, t6, startLine, t7, endLine, _this = this, _box_0 = {};
  66551. _box_0.openedOnThisLine = false;
  66552. _box_0.openedOnThisLineColor = null;
  66553. t1 = current == null;
  66554. if (t1)
  66555. currentColor = null;
  66556. else
  66557. currentColor = current.isPrimary ? _this._primaryColor : _this._secondaryColor;
  66558. for (t2 = highlightsByColumn.length, t3 = _this._secondaryColor, t1 = !t1, t4 = _this._primaryColor, t5 = _this._highlighter$_buffer, foundCurrent = false, _i = 0; _i < t2; ++_i) {
  66559. highlight = highlightsByColumn[_i];
  66560. t6 = highlight == null;
  66561. if (t6)
  66562. startLine = null;
  66563. else {
  66564. t7 = highlight.span;
  66565. startLine = t7.get$start(t7).get$line();
  66566. }
  66567. if (t6)
  66568. endLine = null;
  66569. else {
  66570. t7 = highlight.span;
  66571. endLine = t7.get$end(t7).get$line();
  66572. }
  66573. if (t1 && highlight === current) {
  66574. _this._colorize$2$color(new A.Highlighter__writeMultilineHighlights_closure(_this, startLine, line), currentColor);
  66575. foundCurrent = true;
  66576. } else if (foundCurrent)
  66577. _this._colorize$2$color(new A.Highlighter__writeMultilineHighlights_closure0(_this, highlight), currentColor);
  66578. else if (t6)
  66579. if (_box_0.openedOnThisLine)
  66580. _this._colorize$2$color(new A.Highlighter__writeMultilineHighlights_closure1(_this), _box_0.openedOnThisLineColor);
  66581. else
  66582. t5._contents += " ";
  66583. else {
  66584. t6 = highlight.isPrimary ? t4 : t3;
  66585. _this._colorize$2$color(new A.Highlighter__writeMultilineHighlights_closure2(_box_0, _this, current, startLine, line, highlight, endLine), t6);
  66586. }
  66587. }
  66588. },
  66589. _writeMultilineHighlights$2(line, highlightsByColumn) {
  66590. return this._writeMultilineHighlights$3$current(line, highlightsByColumn, null);
  66591. },
  66592. _writeHighlightedText$4$color(text, startColumn, endColumn, color) {
  66593. var _this = this;
  66594. _this._writeText$1(B.JSString_methods.substring$2(text, 0, startColumn));
  66595. _this._colorize$2$color(new A.Highlighter__writeHighlightedText_closure(_this, text, startColumn, endColumn), color);
  66596. _this._writeText$1(B.JSString_methods.substring$2(text, endColumn, text.length));
  66597. },
  66598. _writeIndicator$3(line, highlight, highlightsByColumn) {
  66599. var t2, coversWholeLine, _this = this,
  66600. color = highlight.isPrimary ? _this._primaryColor : _this._secondaryColor,
  66601. t1 = highlight.span;
  66602. if (t1.get$start(t1).get$line() === t1.get$end(t1).get$line()) {
  66603. _this._writeSidebar$0();
  66604. t1 = _this._highlighter$_buffer;
  66605. t1._contents += " ";
  66606. _this._writeMultilineHighlights$3$current(line, highlightsByColumn, highlight);
  66607. if (highlightsByColumn.length !== 0)
  66608. t1._contents += " ";
  66609. _this._writeLabel$3(highlight, highlightsByColumn, _this._colorize$2$color(new A.Highlighter__writeIndicator_closure(_this, line, highlight), color));
  66610. } else {
  66611. t2 = line.number;
  66612. if (t1.get$start(t1).get$line() === t2) {
  66613. if (B.JSArray_methods.contains$1(highlightsByColumn, highlight))
  66614. return;
  66615. A.replaceFirstNull(highlightsByColumn, highlight);
  66616. _this._writeSidebar$0();
  66617. t1 = _this._highlighter$_buffer;
  66618. t1._contents += " ";
  66619. _this._writeMultilineHighlights$3$current(line, highlightsByColumn, highlight);
  66620. _this._colorize$2$color(new A.Highlighter__writeIndicator_closure0(_this, line, highlight), color);
  66621. t1._contents += "\n";
  66622. } else if (t1.get$end(t1).get$line() === t2) {
  66623. coversWholeLine = t1.get$end(t1).get$column() === line.text.length;
  66624. if (coversWholeLine && highlight.label == null) {
  66625. A.replaceWithNull(highlightsByColumn, highlight);
  66626. return;
  66627. }
  66628. _this._writeSidebar$0();
  66629. _this._highlighter$_buffer._contents += " ";
  66630. _this._writeMultilineHighlights$3$current(line, highlightsByColumn, highlight);
  66631. _this._writeLabel$3(highlight, highlightsByColumn, _this._colorize$2$color(new A.Highlighter__writeIndicator_closure1(_this, coversWholeLine, line, highlight), color));
  66632. A.replaceWithNull(highlightsByColumn, highlight);
  66633. }
  66634. }
  66635. },
  66636. _writeArrow$3$beginning(line, column, beginning) {
  66637. var t2,
  66638. t1 = beginning ? 0 : 1,
  66639. tabs = this._countTabs$1(B.JSString_methods.substring$2(line.text, 0, column + t1));
  66640. t1 = this._highlighter$_buffer;
  66641. t2 = t1._contents += B.JSString_methods.$mul($._glyphs.get$horizontalLine(), 1 + column + tabs * 3);
  66642. t1._contents = t2 + "^";
  66643. },
  66644. _writeArrow$2(line, column) {
  66645. return this._writeArrow$3$beginning(line, column, true);
  66646. },
  66647. _writeLabel$3(highlight, highlightsByColumn, underlineLength) {
  66648. var lines, color, t1, t2, t3, t4, t5, t6, _i, columnHighlight, _this = this,
  66649. label = highlight.label;
  66650. if (label == null) {
  66651. _this._highlighter$_buffer._contents += "\n";
  66652. return;
  66653. }
  66654. lines = A._setArrayType(label.split("\n"), type$.JSArray_String);
  66655. color = highlight.isPrimary ? _this._primaryColor : _this._secondaryColor;
  66656. _this._colorize$2$color(new A.Highlighter__writeLabel_closure(_this, lines), color);
  66657. t1 = _this._highlighter$_buffer;
  66658. t1._contents += "\n";
  66659. for (t2 = A.SubListIterable$(lines, 1, null, type$.String), t2 = new A.ListIterator(t2, t2.get$length(t2)), t3 = highlightsByColumn.length, t4 = A._instanceType(t2)._precomputed1; t2.moveNext$0();) {
  66660. t5 = t2.__internal$_current;
  66661. if (t5 == null)
  66662. t5 = t4._as(t5);
  66663. _this._writeSidebar$0();
  66664. t6 = t1._contents += " ";
  66665. for (_i = 0; _i < t3; ++_i) {
  66666. columnHighlight = highlightsByColumn[_i];
  66667. if (columnHighlight == null || columnHighlight === highlight) {
  66668. t6 += " ";
  66669. t1._contents = t6;
  66670. } else
  66671. t6 = t1._contents += $._glyphs.get$verticalLine();
  66672. }
  66673. t1._contents += B.JSString_methods.$mul(" ", underlineLength);
  66674. _this._colorize$2$color(new A.Highlighter__writeLabel_closure0(_this, t5), color);
  66675. t1._contents += "\n";
  66676. }
  66677. },
  66678. _writeText$1(text) {
  66679. var t1, t2, t3, t4;
  66680. for (t1 = new A.CodeUnits(text), t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = this._highlighter$_buffer, t3 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) {
  66681. t4 = t1.__internal$_current;
  66682. if (t4 == null)
  66683. t4 = t3._as(t4);
  66684. if (t4 === 9)
  66685. t2._contents += B.JSString_methods.$mul(" ", 4);
  66686. else
  66687. t2._contents += A.Primitives_stringFromCharCode(t4);
  66688. }
  66689. },
  66690. _writeSidebar$3$end$line$text(end, line, text) {
  66691. var t1 = {};
  66692. t1.text = text;
  66693. if (line != null)
  66694. t1.text = B.JSInt_methods.toString$0(line + 1);
  66695. this._colorize$2$color(new A.Highlighter__writeSidebar_closure(t1, this, end), "\x1b[34m");
  66696. },
  66697. _writeSidebar$1$end(end) {
  66698. return this._writeSidebar$3$end$line$text(end, null, null);
  66699. },
  66700. _writeSidebar$1$text(text) {
  66701. return this._writeSidebar$3$end$line$text(null, null, text);
  66702. },
  66703. _writeSidebar$1$line(line) {
  66704. return this._writeSidebar$3$end$line$text(null, line, null);
  66705. },
  66706. _writeSidebar$0() {
  66707. return this._writeSidebar$3$end$line$text(null, null, null);
  66708. },
  66709. _countTabs$1(text) {
  66710. var t1, t2, count, t3;
  66711. for (t1 = new A.CodeUnits(text), t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = A._instanceType(t1)._precomputed1, count = 0; t1.moveNext$0();) {
  66712. t3 = t1.__internal$_current;
  66713. if ((t3 == null ? t2._as(t3) : t3) === 9)
  66714. ++count;
  66715. }
  66716. return count;
  66717. },
  66718. _isOnlyWhitespace$1(text) {
  66719. var t1, t2, t3;
  66720. for (t1 = new A.CodeUnits(text), t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) {
  66721. t3 = t1.__internal$_current;
  66722. if (t3 == null)
  66723. t3 = t2._as(t3);
  66724. if (t3 !== 32 && t3 !== 9)
  66725. return false;
  66726. }
  66727. return true;
  66728. },
  66729. _colorize$1$2$color(callback, color) {
  66730. var result,
  66731. t1 = this._primaryColor != null;
  66732. if (t1 && color != null)
  66733. this._highlighter$_buffer._contents += color;
  66734. result = callback.call$0();
  66735. if (t1 && color != null)
  66736. this._highlighter$_buffer._contents += "\x1b[0m";
  66737. return result;
  66738. },
  66739. _colorize$2$color(callback, color) {
  66740. return this._colorize$1$2$color(callback, color, type$.dynamic);
  66741. }
  66742. };
  66743. A.Highlighter_closure.prototype = {
  66744. call$0() {
  66745. var t1 = this.color,
  66746. t2 = J.getInterceptor$(t1);
  66747. if (t2.$eq(t1, true))
  66748. return "\x1b[31m";
  66749. if (t2.$eq(t1, false))
  66750. return null;
  66751. return A._asStringQ(t1);
  66752. },
  66753. $signature: 42
  66754. };
  66755. A.Highlighter$__closure.prototype = {
  66756. call$1(line) {
  66757. var t1 = line.highlights;
  66758. t1 = new A.WhereIterable(t1, new A.Highlighter$___closure(), A._arrayInstanceType(t1)._eval$1("WhereIterable<1>"));
  66759. return t1.get$length(t1);
  66760. },
  66761. $signature: 271
  66762. };
  66763. A.Highlighter$___closure.prototype = {
  66764. call$1(highlight) {
  66765. var t1 = highlight.span;
  66766. return t1.get$start(t1).get$line() !== t1.get$end(t1).get$line();
  66767. },
  66768. $signature: 139
  66769. };
  66770. A.Highlighter$__closure0.prototype = {
  66771. call$1(line) {
  66772. return line.url;
  66773. },
  66774. $signature: 273
  66775. };
  66776. A.Highlighter__collateLines_closure.prototype = {
  66777. call$1(highlight) {
  66778. var t1 = highlight.span;
  66779. t1 = t1.get$sourceUrl(t1);
  66780. return t1 == null ? new A.Object() : t1;
  66781. },
  66782. $signature: 274
  66783. };
  66784. A.Highlighter__collateLines_closure0.prototype = {
  66785. call$2(highlight1, highlight2) {
  66786. return highlight1.span.compareTo$1(0, highlight2.span);
  66787. },
  66788. $signature: 275
  66789. };
  66790. A.Highlighter__collateLines_closure1.prototype = {
  66791. call$1(entry) {
  66792. var t1, t2, t3, t4, context, t5, linesBeforeSpan, lineNumber, _i, line, activeHighlights, highlightIndex, oldHighlightLength,
  66793. url = entry.key,
  66794. highlightsForFile = entry.value,
  66795. lines = A._setArrayType([], type$.JSArray__Line);
  66796. for (t1 = J.getInterceptor$ax(highlightsForFile), t2 = t1.get$iterator(highlightsForFile), t3 = type$.JSArray__Highlight; t2.moveNext$0();) {
  66797. t4 = t2.get$current(t2).span;
  66798. context = t4.get$context(t4);
  66799. t5 = A.findLineStart(context, t4.get$text(), t4.get$start(t4).get$column());
  66800. t5.toString;
  66801. t5 = B.JSString_methods.allMatches$1("\n", B.JSString_methods.substring$2(context, 0, t5));
  66802. linesBeforeSpan = t5.get$length(t5);
  66803. lineNumber = t4.get$start(t4).get$line() - linesBeforeSpan;
  66804. for (t4 = context.split("\n"), t5 = t4.length, _i = 0; _i < t5; ++_i) {
  66805. line = t4[_i];
  66806. if (lines.length === 0 || lineNumber > B.JSArray_methods.get$last(lines).number)
  66807. lines.push(new A._Line(line, lineNumber, url, A._setArrayType([], t3)));
  66808. ++lineNumber;
  66809. }
  66810. }
  66811. activeHighlights = A._setArrayType([], t3);
  66812. for (t2 = lines.length, highlightIndex = 0, _i = 0; _i < lines.length; lines.length === t2 || (0, A.throwConcurrentModificationError)(lines), ++_i) {
  66813. line = lines[_i];
  66814. if (!!activeHighlights.fixed$length)
  66815. A.throwExpression(A.UnsupportedError$("removeWhere"));
  66816. B.JSArray_methods._removeWhere$2(activeHighlights, new A.Highlighter__collateLines__closure(line), true);
  66817. oldHighlightLength = activeHighlights.length;
  66818. for (t3 = t1.skip$1(highlightsForFile, highlightIndex), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  66819. t4 = t3.get$current(t3);
  66820. t5 = t4.span;
  66821. if (t5.get$start(t5).get$line() > line.number)
  66822. break;
  66823. activeHighlights.push(t4);
  66824. }
  66825. highlightIndex += activeHighlights.length - oldHighlightLength;
  66826. B.JSArray_methods.addAll$1(line.highlights, activeHighlights);
  66827. }
  66828. return lines;
  66829. },
  66830. $signature: 276
  66831. };
  66832. A.Highlighter__collateLines__closure.prototype = {
  66833. call$1(highlight) {
  66834. var t1 = highlight.span;
  66835. return t1.get$end(t1).get$line() < this.line.number;
  66836. },
  66837. $signature: 139
  66838. };
  66839. A.Highlighter_highlight_closure.prototype = {
  66840. call$1(highlight) {
  66841. return highlight.isPrimary;
  66842. },
  66843. $signature: 139
  66844. };
  66845. A.Highlighter__writeFileStart_closure.prototype = {
  66846. call$0() {
  66847. this.$this._highlighter$_buffer._contents += B.JSString_methods.$mul($._glyphs.get$horizontalLine(), 2) + ">";
  66848. return null;
  66849. },
  66850. $signature: 0
  66851. };
  66852. A.Highlighter__writeMultilineHighlights_closure.prototype = {
  66853. call$0() {
  66854. var t1 = $._glyphs;
  66855. t1 = this.startLine === this.line.number ? t1.get$topLeftCorner() : t1.get$bottomLeftCorner();
  66856. this.$this._highlighter$_buffer._contents += t1;
  66857. },
  66858. $signature: 1
  66859. };
  66860. A.Highlighter__writeMultilineHighlights_closure0.prototype = {
  66861. call$0() {
  66862. var t1 = $._glyphs;
  66863. t1 = this.highlight == null ? t1.get$horizontalLine() : t1.get$cross();
  66864. this.$this._highlighter$_buffer._contents += t1;
  66865. },
  66866. $signature: 1
  66867. };
  66868. A.Highlighter__writeMultilineHighlights_closure1.prototype = {
  66869. call$0() {
  66870. this.$this._highlighter$_buffer._contents += $._glyphs.get$horizontalLine();
  66871. return null;
  66872. },
  66873. $signature: 0
  66874. };
  66875. A.Highlighter__writeMultilineHighlights_closure2.prototype = {
  66876. call$0() {
  66877. var _this = this,
  66878. t1 = _this._box_0,
  66879. t2 = t1.openedOnThisLine,
  66880. t3 = $._glyphs,
  66881. vertical = t2 ? t3.get$cross() : t3.get$verticalLine();
  66882. if (_this.current != null)
  66883. _this.$this._highlighter$_buffer._contents += vertical;
  66884. else {
  66885. t2 = _this.line;
  66886. t3 = t2.number;
  66887. if (_this.startLine === t3) {
  66888. t2 = _this.$this;
  66889. t2._colorize$2$color(new A.Highlighter__writeMultilineHighlights__closure(t1, t2), t1.openedOnThisLineColor);
  66890. t1.openedOnThisLine = true;
  66891. if (t1.openedOnThisLineColor == null)
  66892. t1.openedOnThisLineColor = _this.highlight.isPrimary ? t2._primaryColor : t2._secondaryColor;
  66893. } else {
  66894. if (_this.endLine === t3) {
  66895. t3 = _this.highlight.span;
  66896. t2 = t3.get$end(t3).get$column() === t2.text.length;
  66897. } else
  66898. t2 = false;
  66899. t3 = _this.$this;
  66900. if (t2) {
  66901. t1 = _this.highlight.label == null ? $._glyphs.glyphOrAscii$2("\u2514", "\\") : vertical;
  66902. t3._highlighter$_buffer._contents += t1;
  66903. } else
  66904. t3._colorize$2$color(new A.Highlighter__writeMultilineHighlights__closure0(t3, vertical), t1.openedOnThisLineColor);
  66905. }
  66906. }
  66907. },
  66908. $signature: 1
  66909. };
  66910. A.Highlighter__writeMultilineHighlights__closure.prototype = {
  66911. call$0() {
  66912. var t1 = this._box_0.openedOnThisLine ? "\u252c" : "\u250c";
  66913. this.$this._highlighter$_buffer._contents += $._glyphs.glyphOrAscii$2(t1, "/");
  66914. },
  66915. $signature: 1
  66916. };
  66917. A.Highlighter__writeMultilineHighlights__closure0.prototype = {
  66918. call$0() {
  66919. this.$this._highlighter$_buffer._contents += this.vertical;
  66920. },
  66921. $signature: 1
  66922. };
  66923. A.Highlighter__writeHighlightedText_closure.prototype = {
  66924. call$0() {
  66925. var _this = this;
  66926. return _this.$this._writeText$1(B.JSString_methods.substring$2(_this.text, _this.startColumn, _this.endColumn));
  66927. },
  66928. $signature: 0
  66929. };
  66930. A.Highlighter__writeIndicator_closure.prototype = {
  66931. call$0() {
  66932. var startColumn, endColumn, tabsBefore, tabsInside,
  66933. t1 = this.$this,
  66934. t2 = t1._highlighter$_buffer,
  66935. t3 = t2._contents,
  66936. t4 = this.highlight,
  66937. t5 = t4.span;
  66938. t4 = t4.isPrimary ? "^" : $._glyphs.get$horizontalLineBold();
  66939. startColumn = t5.get$start(t5).get$column();
  66940. endColumn = t5.get$end(t5).get$column();
  66941. t5 = this.line.text;
  66942. tabsBefore = t1._countTabs$1(B.JSString_methods.substring$2(t5, 0, startColumn));
  66943. tabsInside = t1._countTabs$1(B.JSString_methods.substring$2(t5, startColumn, endColumn));
  66944. startColumn += tabsBefore * 3;
  66945. t2._contents += B.JSString_methods.$mul(" ", startColumn);
  66946. t4 = t2._contents += B.JSString_methods.$mul(t4, Math.max(endColumn + (tabsBefore + tabsInside) * 3 - startColumn, 1));
  66947. return t4.length - t3.length;
  66948. },
  66949. $signature: 12
  66950. };
  66951. A.Highlighter__writeIndicator_closure0.prototype = {
  66952. call$0() {
  66953. var t1 = this.highlight.span;
  66954. return this.$this._writeArrow$2(this.line, t1.get$start(t1).get$column());
  66955. },
  66956. $signature: 0
  66957. };
  66958. A.Highlighter__writeIndicator_closure1.prototype = {
  66959. call$0() {
  66960. var t4, _this = this,
  66961. t1 = _this.$this,
  66962. t2 = t1._highlighter$_buffer,
  66963. t3 = t2._contents;
  66964. if (_this.coversWholeLine)
  66965. t2._contents += B.JSString_methods.$mul($._glyphs.get$horizontalLine(), 3);
  66966. else {
  66967. t4 = _this.highlight.span;
  66968. t1._writeArrow$3$beginning(_this.line, Math.max(t4.get$end(t4).get$column() - 1, 0), false);
  66969. }
  66970. return t2._contents.length - t3.length;
  66971. },
  66972. $signature: 12
  66973. };
  66974. A.Highlighter__writeLabel_closure.prototype = {
  66975. call$0() {
  66976. this.$this._highlighter$_buffer._contents += " " + A.S(B.JSArray_methods.get$first(this.lines));
  66977. return null;
  66978. },
  66979. $signature: 0
  66980. };
  66981. A.Highlighter__writeLabel_closure0.prototype = {
  66982. call$0() {
  66983. this.$this._highlighter$_buffer._contents += " " + this.text;
  66984. return null;
  66985. },
  66986. $signature: 0
  66987. };
  66988. A.Highlighter__writeSidebar_closure.prototype = {
  66989. call$0() {
  66990. var t1 = this.$this,
  66991. t2 = t1._highlighter$_buffer,
  66992. t3 = this._box_0.text;
  66993. if (t3 == null)
  66994. t3 = "";
  66995. t2._contents += B.JSString_methods.padRight$1(t3, t1._paddingBeforeSidebar);
  66996. t1 = this.end;
  66997. t2._contents += t1 == null ? $._glyphs.get$verticalLine() : t1;
  66998. },
  66999. $signature: 1
  67000. };
  67001. A._Highlight.prototype = {
  67002. toString$0(_) {
  67003. var t1 = this.isPrimary ? "" + "primary " : "",
  67004. t2 = this.span;
  67005. t2 = t1 + ("" + t2.get$start(t2).get$line() + ":" + t2.get$start(t2).get$column() + "-" + t2.get$end(t2).get$line() + ":" + t2.get$end(t2).get$column());
  67006. t1 = this.label;
  67007. t1 = t1 != null ? t2 + (" (" + t1 + ")") : t2;
  67008. return t1.charCodeAt(0) == 0 ? t1 : t1;
  67009. }
  67010. };
  67011. A._Highlight_closure.prototype = {
  67012. call$0() {
  67013. var t2, t3, t4, t5,
  67014. t1 = this.span;
  67015. if (!(type$.SourceSpanWithContext._is(t1) && A.findLineStart(t1.get$context(t1), t1.get$text(), t1.get$start(t1).get$column()) != null)) {
  67016. t2 = A.SourceLocation$(t1.get$start(t1).get$offset(), 0, 0, t1.get$sourceUrl(t1));
  67017. t3 = t1.get$end(t1).get$offset();
  67018. t4 = t1.get$sourceUrl(t1);
  67019. t5 = A.countCodeUnits(t1.get$text(), 10);
  67020. t1 = A.SourceSpanWithContext$(t2, A.SourceLocation$(t3, A._Highlight__lastLineLength(t1.get$text()), t5, t4), t1.get$text(), t1.get$text());
  67021. }
  67022. return A._Highlight__normalizeEndOfLine(A._Highlight__normalizeTrailingNewline(A._Highlight__normalizeNewlines(t1)));
  67023. },
  67024. $signature: 277
  67025. };
  67026. A._Line.prototype = {
  67027. toString$0(_) {
  67028. return "" + this.number + ': "' + this.text + '" (' + B.JSArray_methods.join$1(this.highlights, ", ") + ")";
  67029. }
  67030. };
  67031. A.SourceLocation.prototype = {
  67032. distance$1(other) {
  67033. var t1 = this.sourceUrl;
  67034. if (!J.$eq$(t1, other.get$sourceUrl(other)))
  67035. throw A.wrapException(A.ArgumentError$('Source URLs "' + A.S(t1) + '" and "' + A.S(other.get$sourceUrl(other)) + "\" don't match.", null));
  67036. return Math.abs(this.offset - other.get$offset());
  67037. },
  67038. compareTo$1(_, other) {
  67039. var t1 = this.sourceUrl;
  67040. if (!J.$eq$(t1, other.get$sourceUrl(other)))
  67041. throw A.wrapException(A.ArgumentError$('Source URLs "' + A.S(t1) + '" and "' + A.S(other.get$sourceUrl(other)) + "\" don't match.", null));
  67042. return this.offset - other.get$offset();
  67043. },
  67044. $eq(_, other) {
  67045. if (other == null)
  67046. return false;
  67047. return type$.SourceLocation._is(other) && J.$eq$(this.sourceUrl, other.get$sourceUrl(other)) && this.offset === other.get$offset();
  67048. },
  67049. get$hashCode(_) {
  67050. var t1 = this.sourceUrl;
  67051. t1 = t1 == null ? null : t1.get$hashCode(t1);
  67052. if (t1 == null)
  67053. t1 = 0;
  67054. return t1 + this.offset;
  67055. },
  67056. toString$0(_) {
  67057. var _this = this,
  67058. t1 = A.getRuntimeType(_this).toString$0(0),
  67059. source = _this.sourceUrl;
  67060. return "<" + t1 + ": " + _this.offset + " " + (A.S(source == null ? "unknown source" : source) + ":" + (_this.line + 1) + ":" + (_this.column + 1)) + ">";
  67061. },
  67062. $isComparable: 1,
  67063. get$sourceUrl(receiver) {
  67064. return this.sourceUrl;
  67065. },
  67066. get$offset() {
  67067. return this.offset;
  67068. },
  67069. get$line() {
  67070. return this.line;
  67071. },
  67072. get$column() {
  67073. return this.column;
  67074. }
  67075. };
  67076. A.SourceLocationMixin.prototype = {
  67077. distance$1(other) {
  67078. var _this = this;
  67079. if (!J.$eq$(_this.file.url, other.get$sourceUrl(other)))
  67080. throw A.wrapException(A.ArgumentError$('Source URLs "' + A.S(_this.get$sourceUrl(_this)) + '" and "' + A.S(other.get$sourceUrl(other)) + "\" don't match.", null));
  67081. return Math.abs(_this.offset - other.get$offset());
  67082. },
  67083. compareTo$1(_, other) {
  67084. var _this = this;
  67085. if (!J.$eq$(_this.file.url, other.get$sourceUrl(other)))
  67086. throw A.wrapException(A.ArgumentError$('Source URLs "' + A.S(_this.get$sourceUrl(_this)) + '" and "' + A.S(other.get$sourceUrl(other)) + "\" don't match.", null));
  67087. return _this.offset - other.get$offset();
  67088. },
  67089. $eq(_, other) {
  67090. if (other == null)
  67091. return false;
  67092. return type$.SourceLocation._is(other) && J.$eq$(this.file.url, other.get$sourceUrl(other)) && this.offset === other.get$offset();
  67093. },
  67094. get$hashCode(_) {
  67095. var t1 = this.file.url;
  67096. t1 = t1 == null ? null : t1.get$hashCode(t1);
  67097. if (t1 == null)
  67098. t1 = 0;
  67099. return t1 + this.offset;
  67100. },
  67101. toString$0(_) {
  67102. var t1 = A.getRuntimeType(this).toString$0(0),
  67103. t2 = this.offset,
  67104. t3 = this.file,
  67105. source = t3.url;
  67106. return "<" + t1 + ": " + t2 + " " + (A.S(source == null ? "unknown source" : source) + ":" + (t3.getLine$1(t2) + 1) + ":" + (t3.getColumn$1(t2) + 1)) + ">";
  67107. },
  67108. $isComparable: 1,
  67109. $isSourceLocation: 1
  67110. };
  67111. A.SourceSpanBase.prototype = {
  67112. SourceSpanBase$3(start, end, text) {
  67113. var t3,
  67114. t1 = this.end,
  67115. t2 = this.start;
  67116. if (!J.$eq$(t1.get$sourceUrl(t1), t2.get$sourceUrl(t2)))
  67117. throw A.wrapException(A.ArgumentError$('Source URLs "' + A.S(t2.get$sourceUrl(t2)) + '" and "' + A.S(t1.get$sourceUrl(t1)) + "\" don't match.", null));
  67118. else if (t1.get$offset() < t2.get$offset())
  67119. throw A.wrapException(A.ArgumentError$("End " + t1.toString$0(0) + " must come after start " + t2.toString$0(0) + ".", null));
  67120. else {
  67121. t3 = this.text;
  67122. if (t3.length !== t2.distance$1(t1))
  67123. throw A.wrapException(A.ArgumentError$('Text "' + t3 + '" must be ' + t2.distance$1(t1) + " characters long.", null));
  67124. }
  67125. },
  67126. get$start(receiver) {
  67127. return this.start;
  67128. },
  67129. get$end(receiver) {
  67130. return this.end;
  67131. },
  67132. get$text() {
  67133. return this.text;
  67134. }
  67135. };
  67136. A.SourceSpanException.prototype = {
  67137. get$message(_) {
  67138. return this._span_exception$_message;
  67139. },
  67140. get$span(_) {
  67141. return this._span;
  67142. },
  67143. toString$1$color(_, color) {
  67144. var _this = this;
  67145. _this.get$span(_this);
  67146. return "Error on " + _this.get$span(_this).message$2$color(0, _this._span_exception$_message, color);
  67147. },
  67148. toString$0($receiver) {
  67149. return this.toString$1$color($receiver, null);
  67150. },
  67151. $isException: 1
  67152. };
  67153. A.SourceSpanFormatException.prototype = {$isFormatException: 1,
  67154. get$source() {
  67155. return this.source;
  67156. }
  67157. };
  67158. A.SourceSpanMixin.prototype = {
  67159. get$sourceUrl(_) {
  67160. var t1 = this.get$start(this);
  67161. return t1.get$sourceUrl(t1);
  67162. },
  67163. get$length(_) {
  67164. var _this = this;
  67165. return _this.get$end(_this).get$offset() - _this.get$start(_this).get$offset();
  67166. },
  67167. compareTo$1(_, other) {
  67168. var _this = this,
  67169. result = _this.get$start(_this).compareTo$1(0, other.get$start(other));
  67170. return result === 0 ? _this.get$end(_this).compareTo$1(0, other.get$end(other)) : result;
  67171. },
  67172. message$2$color(_, message, color) {
  67173. var t2, highlight, _this = this,
  67174. t1 = "" + ("line " + (_this.get$start(_this).get$line() + 1) + ", column " + (_this.get$start(_this).get$column() + 1));
  67175. if (_this.get$sourceUrl(_this) != null) {
  67176. t2 = _this.get$sourceUrl(_this);
  67177. t2 = t1 + (" of " + $.$get$context().prettyUri$1(t2));
  67178. t1 = t2;
  67179. }
  67180. t1 += ": " + message;
  67181. highlight = _this.highlight$1$color(color);
  67182. if (highlight.length !== 0)
  67183. t1 = t1 + "\n" + highlight;
  67184. return t1.charCodeAt(0) == 0 ? t1 : t1;
  67185. },
  67186. message$1($receiver, message) {
  67187. return this.message$2$color($receiver, message, null);
  67188. },
  67189. highlight$1$color(color) {
  67190. var _this = this;
  67191. if (!type$.SourceSpanWithContext._is(_this) && _this.get$length(_this) === 0)
  67192. return "";
  67193. return A.Highlighter$(_this, color).highlight$0();
  67194. },
  67195. $eq(_, other) {
  67196. var _this = this;
  67197. if (other == null)
  67198. return false;
  67199. return type$.SourceSpan._is(other) && _this.get$start(_this).$eq(0, other.get$start(other)) && _this.get$end(_this).$eq(0, other.get$end(other));
  67200. },
  67201. get$hashCode(_) {
  67202. var _this = this;
  67203. return A.Object_hash(_this.get$start(_this), _this.get$end(_this), B.C_SentinelValue, B.C_SentinelValue);
  67204. },
  67205. toString$0(_) {
  67206. var _this = this;
  67207. return "<" + A.getRuntimeType(_this).toString$0(0) + ": from " + _this.get$start(_this).toString$0(0) + " to " + _this.get$end(_this).toString$0(0) + ' "' + _this.get$text() + '">';
  67208. },
  67209. $isComparable: 1,
  67210. $isSourceSpan: 1
  67211. };
  67212. A.SourceSpanWithContext.prototype = {
  67213. get$context(_) {
  67214. return this._context;
  67215. }
  67216. };
  67217. A.Chain.prototype = {
  67218. toTrace$0() {
  67219. var t1 = this.traces;
  67220. return A.Trace$(new A.ExpandIterable(t1, new A.Chain_toTrace_closure(), A._arrayInstanceType(t1)._eval$1("ExpandIterable<1,Frame>")), null);
  67221. },
  67222. toString$0(_) {
  67223. var t1 = this.traces,
  67224. t2 = A._arrayInstanceType(t1);
  67225. return new A.MappedListIterable(t1, new A.Chain_toString_closure(new A.MappedListIterable(t1, new A.Chain_toString_closure0(), t2._eval$1("MappedListIterable<1,int>")).fold$2(0, 0, B.CONSTANT)), t2._eval$1("MappedListIterable<1,String>")).join$1(0, string$.x3d_____);
  67226. },
  67227. $isStackTrace: 1
  67228. };
  67229. A.Chain_Chain$parse_closure.prototype = {
  67230. call$1(line) {
  67231. return line.length !== 0;
  67232. },
  67233. $signature: 8
  67234. };
  67235. A.Chain_toTrace_closure.prototype = {
  67236. call$1(trace) {
  67237. return trace.get$frames();
  67238. },
  67239. $signature: 278
  67240. };
  67241. A.Chain_toString_closure0.prototype = {
  67242. call$1(trace) {
  67243. var t1 = trace.get$frames();
  67244. return new A.MappedListIterable(t1, new A.Chain_toString__closure0(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,int>")).fold$2(0, 0, B.CONSTANT);
  67245. },
  67246. $signature: 279
  67247. };
  67248. A.Chain_toString__closure0.prototype = {
  67249. call$1(frame) {
  67250. return frame.get$location().length;
  67251. },
  67252. $signature: 242
  67253. };
  67254. A.Chain_toString_closure.prototype = {
  67255. call$1(trace) {
  67256. var t1 = trace.get$frames();
  67257. return new A.MappedListIterable(t1, new A.Chain_toString__closure(this.longest), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$0(0);
  67258. },
  67259. $signature: 281
  67260. };
  67261. A.Chain_toString__closure.prototype = {
  67262. call$1(frame) {
  67263. return B.JSString_methods.padRight$1(frame.get$location(), this.longest) + " " + A.S(frame.get$member()) + "\n";
  67264. },
  67265. $signature: 238
  67266. };
  67267. A.Frame.prototype = {
  67268. get$isCore() {
  67269. return this.uri.get$scheme() === "dart";
  67270. },
  67271. get$library() {
  67272. var t1 = this.uri;
  67273. if (t1.get$scheme() === "data")
  67274. return "data:...";
  67275. return $.$get$context().prettyUri$1(t1);
  67276. },
  67277. get$$package() {
  67278. var t1 = this.uri;
  67279. if (t1.get$scheme() !== "package")
  67280. return null;
  67281. return B.JSArray_methods.get$first(t1.get$path(t1).split("/"));
  67282. },
  67283. get$location() {
  67284. var t2, _this = this,
  67285. t1 = _this.line;
  67286. if (t1 == null)
  67287. return _this.get$library();
  67288. t2 = _this.column;
  67289. if (t2 == null)
  67290. return _this.get$library() + " " + A.S(t1);
  67291. return _this.get$library() + " " + A.S(t1) + ":" + A.S(t2);
  67292. },
  67293. toString$0(_) {
  67294. return this.get$location() + " in " + A.S(this.member);
  67295. },
  67296. get$uri() {
  67297. return this.uri;
  67298. },
  67299. get$line() {
  67300. return this.line;
  67301. },
  67302. get$column() {
  67303. return this.column;
  67304. },
  67305. get$member() {
  67306. return this.member;
  67307. }
  67308. };
  67309. A.Frame_Frame$parseVM_closure.prototype = {
  67310. call$0() {
  67311. var match, t2, t3, member, uri, lineAndColumn, line, _null = null,
  67312. t1 = this.frame;
  67313. if (t1 === "...")
  67314. return new A.Frame(A._Uri__Uri(_null, _null, _null, _null), _null, _null, "...");
  67315. match = $.$get$_vmFrame().firstMatch$1(t1);
  67316. if (match == null)
  67317. return new A.UnparsedFrame(A._Uri__Uri(_null, "unparsed", _null, _null), t1);
  67318. t1 = match._match;
  67319. t2 = t1[1];
  67320. t2.toString;
  67321. t3 = $.$get$_asyncBody();
  67322. t2 = A.stringReplaceAllUnchecked(t2, t3, "<async>");
  67323. member = A.stringReplaceAllUnchecked(t2, "<anonymous closure>", "<fn>");
  67324. t2 = t1[2];
  67325. t3 = t2;
  67326. t3.toString;
  67327. if (B.JSString_methods.startsWith$1(t3, "<data:"))
  67328. uri = A.Uri_Uri$dataFromString("", _null, _null);
  67329. else {
  67330. t2 = t2;
  67331. t2.toString;
  67332. uri = A.Uri_parse(t2);
  67333. }
  67334. lineAndColumn = t1[3].split(":");
  67335. t1 = lineAndColumn.length;
  67336. line = t1 > 1 ? A.int_parse(lineAndColumn[1], _null) : _null;
  67337. return new A.Frame(uri, line, t1 > 2 ? A.int_parse(lineAndColumn[2], _null) : _null, member);
  67338. },
  67339. $signature: 75
  67340. };
  67341. A.Frame_Frame$parseV8_closure.prototype = {
  67342. call$0() {
  67343. var t2, t3, _s4_ = "<fn>",
  67344. t1 = this.frame,
  67345. match = $.$get$_v8Frame().firstMatch$1(t1);
  67346. if (match == null)
  67347. return new A.UnparsedFrame(A._Uri__Uri(null, "unparsed", null, null), t1);
  67348. t1 = new A.Frame_Frame$parseV8_closure_parseLocation(t1);
  67349. t2 = match._match;
  67350. t3 = t2[2];
  67351. if (t3 != null) {
  67352. t3 = t3;
  67353. t3.toString;
  67354. t2 = t2[1];
  67355. t2.toString;
  67356. t2 = A.stringReplaceAllUnchecked(t2, "<anonymous>", _s4_);
  67357. t2 = A.stringReplaceAllUnchecked(t2, "Anonymous function", _s4_);
  67358. return t1.call$2(t3, A.stringReplaceAllUnchecked(t2, "(anonymous function)", _s4_));
  67359. } else {
  67360. t2 = t2[3];
  67361. t2.toString;
  67362. return t1.call$2(t2, _s4_);
  67363. }
  67364. },
  67365. $signature: 75
  67366. };
  67367. A.Frame_Frame$parseV8_closure_parseLocation.prototype = {
  67368. call$2($location, member) {
  67369. var t2, urlMatch, uri, line, columnMatch, _null = null,
  67370. t1 = $.$get$_v8EvalLocation(),
  67371. evalMatch = t1.firstMatch$1($location);
  67372. for (; evalMatch != null; $location = t2) {
  67373. t2 = evalMatch._match[1];
  67374. t2.toString;
  67375. evalMatch = t1.firstMatch$1(t2);
  67376. }
  67377. if ($location === "native")
  67378. return new A.Frame(A.Uri_parse("native"), _null, _null, member);
  67379. urlMatch = $.$get$_v8UrlLocation().firstMatch$1($location);
  67380. if (urlMatch == null)
  67381. return new A.UnparsedFrame(A._Uri__Uri(_null, "unparsed", _null, _null), this.frame);
  67382. t1 = urlMatch._match;
  67383. t2 = t1[1];
  67384. t2.toString;
  67385. uri = A.Frame__uriOrPathToUri(t2);
  67386. t2 = t1[2];
  67387. t2.toString;
  67388. line = A.int_parse(t2, _null);
  67389. columnMatch = t1[3];
  67390. return new A.Frame(uri, line, columnMatch != null ? A.int_parse(columnMatch, _null) : _null, member);
  67391. },
  67392. $signature: 284
  67393. };
  67394. A.Frame_Frame$_parseFirefoxEval_closure.prototype = {
  67395. call$0() {
  67396. var t2, member, uri, line, _null = null,
  67397. t1 = this.frame,
  67398. match = $.$get$_firefoxEvalLocation().firstMatch$1(t1);
  67399. if (match == null)
  67400. return new A.UnparsedFrame(A._Uri__Uri(_null, "unparsed", _null, _null), t1);
  67401. t1 = match._match;
  67402. t2 = t1[1];
  67403. t2.toString;
  67404. member = A.stringReplaceAllUnchecked(t2, "/<", "");
  67405. t2 = t1[2];
  67406. t2.toString;
  67407. uri = A.Frame__uriOrPathToUri(t2);
  67408. t1 = t1[3];
  67409. t1.toString;
  67410. line = A.int_parse(t1, _null);
  67411. return new A.Frame(uri, line, _null, member.length === 0 || member === "anonymous" ? "<fn>" : member);
  67412. },
  67413. $signature: 75
  67414. };
  67415. A.Frame_Frame$parseFirefox_closure.prototype = {
  67416. call$0() {
  67417. var t2, t3, t4, uri, member, line, column, _null = null,
  67418. t1 = this.frame,
  67419. match = $.$get$_firefoxSafariFrame().firstMatch$1(t1);
  67420. if (match == null)
  67421. return new A.UnparsedFrame(A._Uri__Uri(_null, "unparsed", _null, _null), t1);
  67422. t2 = match._match;
  67423. t3 = t2[3];
  67424. t4 = t3;
  67425. t4.toString;
  67426. if (B.JSString_methods.contains$1(t4, " line "))
  67427. return A.Frame_Frame$_parseFirefoxEval(t1);
  67428. t1 = t3;
  67429. t1.toString;
  67430. uri = A.Frame__uriOrPathToUri(t1);
  67431. member = t2[1];
  67432. if (member != null) {
  67433. t1 = t2[2];
  67434. t1.toString;
  67435. t1 = B.JSString_methods.allMatches$1("/", t1);
  67436. member += B.JSArray_methods.join$0(A.List_List$filled(t1.get$length(t1), ".<fn>", false, type$.String));
  67437. if (member === "")
  67438. member = "<fn>";
  67439. member = B.JSString_methods.replaceFirst$2(member, $.$get$_initialDot(), "");
  67440. } else
  67441. member = "<fn>";
  67442. t1 = t2[4];
  67443. if (t1 === "")
  67444. line = _null;
  67445. else {
  67446. t1 = t1;
  67447. t1.toString;
  67448. line = A.int_parse(t1, _null);
  67449. }
  67450. t1 = t2[5];
  67451. if (t1 == null || t1 === "")
  67452. column = _null;
  67453. else {
  67454. t1 = t1;
  67455. t1.toString;
  67456. column = A.int_parse(t1, _null);
  67457. }
  67458. return new A.Frame(uri, line, column, member);
  67459. },
  67460. $signature: 75
  67461. };
  67462. A.Frame_Frame$parseFriendly_closure.prototype = {
  67463. call$0() {
  67464. var t2, uri, line, column, _null = null,
  67465. t1 = this.frame,
  67466. match = $.$get$_friendlyFrame().firstMatch$1(t1);
  67467. if (match == null)
  67468. throw A.wrapException(A.FormatException$("Couldn't parse package:stack_trace stack trace line '" + t1 + "'.", _null, _null));
  67469. t1 = match._match;
  67470. t2 = t1[1];
  67471. if (t2 === "data:...")
  67472. uri = A.Uri_Uri$dataFromString("", _null, _null);
  67473. else {
  67474. t2 = t2;
  67475. t2.toString;
  67476. uri = A.Uri_parse(t2);
  67477. }
  67478. if (uri.get$scheme() === "") {
  67479. t2 = $.$get$context();
  67480. uri = t2.toUri$1(A.absolute(t2.style.pathFromUri$1(A._parseUri(uri)), _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null));
  67481. }
  67482. t2 = t1[2];
  67483. if (t2 == null)
  67484. line = _null;
  67485. else {
  67486. t2 = t2;
  67487. t2.toString;
  67488. line = A.int_parse(t2, _null);
  67489. }
  67490. t2 = t1[3];
  67491. if (t2 == null)
  67492. column = _null;
  67493. else {
  67494. t2 = t2;
  67495. t2.toString;
  67496. column = A.int_parse(t2, _null);
  67497. }
  67498. return new A.Frame(uri, line, column, t1[4]);
  67499. },
  67500. $signature: 75
  67501. };
  67502. A.LazyTrace.prototype = {
  67503. get$_lazy_trace$_trace() {
  67504. var result, _this = this,
  67505. value = _this.__LazyTrace__trace_FI;
  67506. if (value === $) {
  67507. result = _this._thunk.call$0();
  67508. _this.__LazyTrace__trace_FI !== $ && A.throwUnnamedLateFieldADI();
  67509. _this.__LazyTrace__trace_FI = result;
  67510. value = result;
  67511. }
  67512. return value;
  67513. },
  67514. get$frames() {
  67515. return this.get$_lazy_trace$_trace().get$frames();
  67516. },
  67517. get$terse() {
  67518. return new A.LazyTrace(new A.LazyTrace_terse_closure(this));
  67519. },
  67520. toString$0(_) {
  67521. return this.get$_lazy_trace$_trace().toString$0(0);
  67522. },
  67523. $isStackTrace: 1,
  67524. $isTrace: 1
  67525. };
  67526. A.LazyTrace_terse_closure.prototype = {
  67527. call$0() {
  67528. return this.$this.get$_lazy_trace$_trace().get$terse();
  67529. },
  67530. $signature: 230
  67531. };
  67532. A.Trace.prototype = {
  67533. get$terse() {
  67534. return this.foldFrames$2$terse(new A.Trace_terse_closure(), true);
  67535. },
  67536. foldFrames$2$terse(predicate, terse) {
  67537. var newFrames, t1, t2, t3, _box_0 = {};
  67538. _box_0.predicate = predicate;
  67539. _box_0.predicate = new A.Trace_foldFrames_closure(predicate);
  67540. newFrames = A._setArrayType([], type$.JSArray_Frame);
  67541. for (t1 = this.frames, t1 = new A.ReversedListIterable(t1, A._arrayInstanceType(t1)._eval$1("ReversedListIterable<1>")), t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) {
  67542. t3 = t1.__internal$_current;
  67543. if (t3 == null)
  67544. t3 = t2._as(t3);
  67545. if (t3 instanceof A.UnparsedFrame || !_box_0.predicate.call$1(t3))
  67546. newFrames.push(t3);
  67547. else if (newFrames.length === 0 || !_box_0.predicate.call$1(B.JSArray_methods.get$last(newFrames)))
  67548. newFrames.push(new A.Frame(t3.get$uri(), t3.get$line(), t3.get$column(), t3.get$member()));
  67549. }
  67550. t1 = type$.MappedListIterable_Frame_Frame;
  67551. newFrames = A.List_List$of(new A.MappedListIterable(newFrames, new A.Trace_foldFrames_closure0(_box_0), t1), true, t1._eval$1("ListIterable.E"));
  67552. if (newFrames.length > 1 && _box_0.predicate.call$1(B.JSArray_methods.get$first(newFrames)))
  67553. B.JSArray_methods.removeAt$1(newFrames, 0);
  67554. return A.Trace$(new A.ReversedListIterable(newFrames, A._arrayInstanceType(newFrames)._eval$1("ReversedListIterable<1>")), this.original._stackTrace);
  67555. },
  67556. toString$0(_) {
  67557. var t1 = this.frames,
  67558. t2 = A._arrayInstanceType(t1);
  67559. return new A.MappedListIterable(t1, new A.Trace_toString_closure(new A.MappedListIterable(t1, new A.Trace_toString_closure0(), t2._eval$1("MappedListIterable<1,int>")).fold$2(0, 0, B.CONSTANT)), t2._eval$1("MappedListIterable<1,String>")).join$0(0);
  67560. },
  67561. $isStackTrace: 1,
  67562. get$frames() {
  67563. return this.frames;
  67564. }
  67565. };
  67566. A.Trace_Trace$from_closure.prototype = {
  67567. call$0() {
  67568. return A.Trace_Trace$parse(this.trace.toString$0(0));
  67569. },
  67570. $signature: 230
  67571. };
  67572. A.Trace__parseVM_closure.prototype = {
  67573. call$1(line) {
  67574. return line.length !== 0;
  67575. },
  67576. $signature: 8
  67577. };
  67578. A.Trace$parseV8_closure.prototype = {
  67579. call$1(line) {
  67580. return !B.JSString_methods.startsWith$1(line, $.$get$_v8TraceLine());
  67581. },
  67582. $signature: 8
  67583. };
  67584. A.Trace$parseJSCore_closure.prototype = {
  67585. call$1(line) {
  67586. return line !== "\tat ";
  67587. },
  67588. $signature: 8
  67589. };
  67590. A.Trace$parseFirefox_closure.prototype = {
  67591. call$1(line) {
  67592. return line.length !== 0 && line !== "[native code]";
  67593. },
  67594. $signature: 8
  67595. };
  67596. A.Trace$parseFriendly_closure.prototype = {
  67597. call$1(line) {
  67598. return !B.JSString_methods.startsWith$1(line, "=====");
  67599. },
  67600. $signature: 8
  67601. };
  67602. A.Trace_terse_closure.prototype = {
  67603. call$1(_) {
  67604. return false;
  67605. },
  67606. $signature: 228
  67607. };
  67608. A.Trace_foldFrames_closure.prototype = {
  67609. call$1(frame) {
  67610. var t1;
  67611. if (this.oldPredicate.call$1(frame))
  67612. return true;
  67613. if (frame.get$isCore())
  67614. return true;
  67615. if (frame.get$$package() === "stack_trace")
  67616. return true;
  67617. t1 = frame.get$member();
  67618. t1.toString;
  67619. if (!B.JSString_methods.contains$1(t1, "<async>"))
  67620. return false;
  67621. return frame.get$line() == null;
  67622. },
  67623. $signature: 228
  67624. };
  67625. A.Trace_foldFrames_closure0.prototype = {
  67626. call$1(frame) {
  67627. var t1, t2;
  67628. if (frame instanceof A.UnparsedFrame || !this._box_0.predicate.call$1(frame))
  67629. return frame;
  67630. t1 = frame.get$library();
  67631. t2 = $.$get$_terseRegExp();
  67632. return new A.Frame(A.Uri_parse(A.stringReplaceAllUnchecked(t1, t2, "")), null, null, frame.get$member());
  67633. },
  67634. $signature: 287
  67635. };
  67636. A.Trace_toString_closure0.prototype = {
  67637. call$1(frame) {
  67638. return frame.get$location().length;
  67639. },
  67640. $signature: 242
  67641. };
  67642. A.Trace_toString_closure.prototype = {
  67643. call$1(frame) {
  67644. if (frame instanceof A.UnparsedFrame)
  67645. return frame.toString$0(0) + "\n";
  67646. return B.JSString_methods.padRight$1(frame.get$location(), this.longest) + " " + A.S(frame.get$member()) + "\n";
  67647. },
  67648. $signature: 238
  67649. };
  67650. A.UnparsedFrame.prototype = {
  67651. toString$0(_) {
  67652. return this.member;
  67653. },
  67654. $isFrame: 1,
  67655. get$uri() {
  67656. return this.uri;
  67657. },
  67658. get$line() {
  67659. return null;
  67660. },
  67661. get$column() {
  67662. return null;
  67663. },
  67664. get$isCore() {
  67665. return false;
  67666. },
  67667. get$library() {
  67668. return "unparsed";
  67669. },
  67670. get$$package() {
  67671. return null;
  67672. },
  67673. get$location() {
  67674. return "unparsed";
  67675. },
  67676. get$member() {
  67677. return this.member;
  67678. }
  67679. };
  67680. A.TransformByHandlers_transformByHandlers_closure.prototype = {
  67681. call$0() {
  67682. var t2, subscription, t3, t4, _this = this, t1 = {};
  67683. t1.valuesDone = false;
  67684. t2 = _this.controller;
  67685. subscription = _this._this.listen$3$onDone$onError(0, new A.TransformByHandlers_transformByHandlers__closure(_this.handleData, t2, _this.S), new A.TransformByHandlers_transformByHandlers__closure0(t1, _this.handleDone, t2), new A.TransformByHandlers_transformByHandlers__closure1(_this.handleError, t2));
  67686. t3 = _this._box_1;
  67687. t3.subscription = subscription;
  67688. t2.set$onPause(subscription.get$pause(subscription));
  67689. t4 = t3.subscription;
  67690. t2.set$onResume(t4.get$resume(t4));
  67691. t2.set$onCancel(new A.TransformByHandlers_transformByHandlers__closure2(t3, t1));
  67692. },
  67693. $signature: 0
  67694. };
  67695. A.TransformByHandlers_transformByHandlers__closure.prototype = {
  67696. call$1(value) {
  67697. return this.handleData.call$2(value, this.controller);
  67698. },
  67699. $signature() {
  67700. return this.S._eval$1("~(0)");
  67701. }
  67702. };
  67703. A.TransformByHandlers_transformByHandlers__closure1.prototype = {
  67704. call$2(error, stackTrace) {
  67705. this.handleError.call$3(error, stackTrace, this.controller);
  67706. },
  67707. $signature: 64
  67708. };
  67709. A.TransformByHandlers_transformByHandlers__closure0.prototype = {
  67710. call$0() {
  67711. this._box_0.valuesDone = true;
  67712. this.handleDone.call$1(this.controller);
  67713. },
  67714. $signature: 0
  67715. };
  67716. A.TransformByHandlers_transformByHandlers__closure2.prototype = {
  67717. call$0() {
  67718. var t1 = this._box_1,
  67719. toCancel = t1.subscription;
  67720. t1.subscription = null;
  67721. if (!this._box_0.valuesDone)
  67722. return toCancel.cancel$0();
  67723. return null;
  67724. },
  67725. $signature: 226
  67726. };
  67727. A.RateLimit__debounceAggregate_closure.prototype = {
  67728. call$2(value, sink) {
  67729. var _this = this,
  67730. t1 = _this._box_0,
  67731. t2 = new A.RateLimit__debounceAggregate_closure_emit(t1, sink, _this.S),
  67732. t3 = t1.timer;
  67733. if (t3 != null)
  67734. t3.cancel$0();
  67735. t1.soFar = _this.collect.call$2(value, t1.soFar);
  67736. t1.hasPending = true;
  67737. if (t1.timer == null && _this.leading) {
  67738. t1.emittedLatestAsLeading = true;
  67739. t2.call$0();
  67740. } else
  67741. t1.emittedLatestAsLeading = false;
  67742. t1.timer = A.Timer_Timer(_this.duration, new A.RateLimit__debounceAggregate__closure(t1, _this.trailing, t2, sink));
  67743. },
  67744. $signature() {
  67745. return this.T._eval$1("@<0>")._bind$1(this.S)._eval$1("~(1,EventSink<2>)");
  67746. }
  67747. };
  67748. A.RateLimit__debounceAggregate_closure_emit.prototype = {
  67749. call$0() {
  67750. var t1 = this._box_0,
  67751. t2 = t1.soFar;
  67752. if (t2 == null)
  67753. t2 = this.S._as(t2);
  67754. this.sink.add$1(0, t2);
  67755. t1.soFar = null;
  67756. t1.hasPending = false;
  67757. },
  67758. $signature: 0
  67759. };
  67760. A.RateLimit__debounceAggregate__closure.prototype = {
  67761. call$0() {
  67762. var t1 = this._box_0,
  67763. t2 = t1.emittedLatestAsLeading;
  67764. if (!t2)
  67765. this.emit.call$0();
  67766. if (t1.shouldClose)
  67767. this.sink.close$0(0);
  67768. t1.timer = null;
  67769. },
  67770. $signature: 0
  67771. };
  67772. A.RateLimit__debounceAggregate_closure0.prototype = {
  67773. call$1(sink) {
  67774. var t1 = this._box_0;
  67775. if (t1.hasPending && this.trailing)
  67776. t1.shouldClose = true;
  67777. else {
  67778. t1 = t1.timer;
  67779. if (t1 != null)
  67780. t1.cancel$0();
  67781. sink.close$0(0);
  67782. }
  67783. },
  67784. $signature() {
  67785. return this.S._eval$1("~(EventSink<0>)");
  67786. }
  67787. };
  67788. A.StringScannerException.prototype = {
  67789. get$source() {
  67790. return A._asString(this.source);
  67791. }
  67792. };
  67793. A.LineScanner.prototype = {
  67794. scanChar$1(character) {
  67795. if (!this.super$StringScanner$scanChar(character))
  67796. return false;
  67797. this._adjustLineAndColumn$1(character);
  67798. return true;
  67799. },
  67800. _adjustLineAndColumn$1(character) {
  67801. var t1, _this = this;
  67802. if (character !== 10)
  67803. t1 = character === 13 && _this.peekChar$0() !== 10;
  67804. else
  67805. t1 = true;
  67806. if (t1) {
  67807. ++_this._line_scanner$_line;
  67808. _this._line_scanner$_column = 0;
  67809. } else {
  67810. t1 = _this._line_scanner$_column;
  67811. _this._line_scanner$_column = t1 + (character >= 65536 && character <= 1114111 ? 2 : 1);
  67812. }
  67813. },
  67814. scan$1(pattern) {
  67815. var t1, newlines, t2, _this = this;
  67816. if (!_this.super$StringScanner$scan(pattern))
  67817. return false;
  67818. t1 = _this.get$lastMatch();
  67819. newlines = _this._newlinesIn$1(t1.pattern);
  67820. t1 = _this._line_scanner$_line;
  67821. t2 = newlines.length;
  67822. _this._line_scanner$_line = t1 + t2;
  67823. if (t2 === 0) {
  67824. t1 = _this._line_scanner$_column;
  67825. t2 = _this.get$lastMatch();
  67826. _this._line_scanner$_column = t1 + t2.pattern.length;
  67827. } else {
  67828. t1 = _this.get$lastMatch();
  67829. _this._line_scanner$_column = t1.pattern.length - J.get$end$z(B.JSArray_methods.get$last(newlines));
  67830. }
  67831. return true;
  67832. },
  67833. _newlinesIn$1(text) {
  67834. var t1 = $.$get$_newlineRegExp().allMatches$1(0, text),
  67835. newlines = A.List_List$of(t1, true, A._instanceType(t1)._eval$1("Iterable.E"));
  67836. if (this.peekChar$1(-1) === 13 && this.peekChar$0() === 10)
  67837. B.JSArray_methods.removeLast$0(newlines);
  67838. return newlines;
  67839. }
  67840. };
  67841. A.SpanScanner.prototype = {
  67842. set$state(state) {
  67843. if (state._scanner !== this)
  67844. throw A.wrapException(A.ArgumentError$(string$.The_gi, null));
  67845. this.set$position(state.position);
  67846. },
  67847. spanFrom$2(startState, endState) {
  67848. var endPosition = endState == null ? this._string_scanner$_position : endState.position;
  67849. return this._sourceFile.span$2(0, startState.position, endPosition);
  67850. },
  67851. spanFrom$1(startState) {
  67852. return this.spanFrom$2(startState, null);
  67853. },
  67854. matches$1(pattern) {
  67855. var t1, t2, _this = this;
  67856. if (!_this.super$StringScanner$matches(pattern))
  67857. return false;
  67858. t1 = _this._string_scanner$_position;
  67859. t2 = _this.get$lastMatch();
  67860. _this._sourceFile.span$2(0, t1, t2.start + t2.pattern.length);
  67861. return true;
  67862. },
  67863. error$3$length$position(_, message, $length, position) {
  67864. var match, t2, _this = this,
  67865. t1 = _this.string;
  67866. A.validateErrorArgs(t1, null, position, $length);
  67867. match = position == null && $length == null ? _this.get$lastMatch() : null;
  67868. if (position == null)
  67869. position = match == null ? _this._string_scanner$_position : match.start;
  67870. if ($length == null)
  67871. if (match == null)
  67872. $length = 0;
  67873. else {
  67874. t2 = match.start;
  67875. $length = t2 + match.pattern.length - t2;
  67876. }
  67877. throw A.wrapException(A.StringScannerException$(message, _this._sourceFile.span$2(0, position, position + $length), t1));
  67878. },
  67879. error$1($receiver, message) {
  67880. return this.error$3$length$position($receiver, message, null, null);
  67881. },
  67882. error$2$position($receiver, message, position) {
  67883. return this.error$3$length$position($receiver, message, null, position);
  67884. },
  67885. error$2$length($receiver, message, $length) {
  67886. return this.error$3$length$position($receiver, message, $length, null);
  67887. }
  67888. };
  67889. A._SpanScannerState.prototype = {};
  67890. A.StringScanner.prototype = {
  67891. set$position(position) {
  67892. if (B.JSInt_methods.get$isNegative(position) || position > this.string.length)
  67893. throw A.wrapException(A.ArgumentError$("Invalid position " + position, null));
  67894. this._string_scanner$_position = position;
  67895. this._lastMatch = null;
  67896. },
  67897. get$lastMatch() {
  67898. var _this = this;
  67899. if (_this._string_scanner$_position !== _this._lastMatchPosition)
  67900. _this._lastMatch = null;
  67901. return _this._lastMatch;
  67902. },
  67903. readChar$0() {
  67904. var _this = this,
  67905. t1 = _this._string_scanner$_position,
  67906. t2 = _this.string;
  67907. if (t1 === t2.length)
  67908. _this.error$3$length$position(0, "expected more input.", 0, t1);
  67909. return B.JSString_methods.codeUnitAt$1(t2, _this._string_scanner$_position++);
  67910. },
  67911. peekChar$1(offset) {
  67912. var index;
  67913. if (offset == null)
  67914. offset = 0;
  67915. index = this._string_scanner$_position + offset;
  67916. if (index < 0 || index >= this.string.length)
  67917. return null;
  67918. return B.JSString_methods.codeUnitAt$1(this.string, index);
  67919. },
  67920. peekChar$0() {
  67921. return this.peekChar$1(null);
  67922. },
  67923. scanChar$1(character) {
  67924. var t1, t2, t3, t4, _this = this;
  67925. if (character >= 65536 && character <= 1114111) {
  67926. t1 = _this._string_scanner$_position;
  67927. t2 = t1 + 1;
  67928. t3 = _this.string;
  67929. if (t2 < t3.length) {
  67930. t4 = character - 65536;
  67931. t2 = B.JSString_methods.codeUnitAt$1(t3, t1) !== B.JSInt_methods._shrOtherPositive$1(t4, 10) + 55296 || B.JSString_methods.codeUnitAt$1(t3, t2) !== (t4 & 1023) + 56320;
  67932. } else
  67933. t2 = true;
  67934. if (t2)
  67935. return false;
  67936. else {
  67937. _this._string_scanner$_position = t1 + 2;
  67938. return true;
  67939. }
  67940. } else {
  67941. t1 = _this._string_scanner$_position;
  67942. t2 = _this.string;
  67943. if (t1 === t2.length)
  67944. return false;
  67945. if (B.JSString_methods.codeUnitAt$1(t2, t1) !== character)
  67946. return false;
  67947. _this._string_scanner$_position = t1 + 1;
  67948. return true;
  67949. }
  67950. },
  67951. expectChar$2$name(character, $name) {
  67952. if (this.scanChar$1(character))
  67953. return;
  67954. if ($name == null)
  67955. if (character === 92)
  67956. $name = '"\\"';
  67957. else
  67958. $name = character === 34 ? '"\\""' : '"' + A.Primitives_stringFromCharCode(character) + '"';
  67959. this.error$3$length$position(0, "expected " + $name + ".", 0, this._string_scanner$_position);
  67960. },
  67961. expectChar$1(character) {
  67962. return this.expectChar$2$name(character, null);
  67963. },
  67964. scan$1(pattern) {
  67965. var t1, _this = this,
  67966. success = _this.matches$1(pattern);
  67967. if (success) {
  67968. t1 = _this._lastMatch;
  67969. _this._lastMatchPosition = _this._string_scanner$_position = t1.start + t1.pattern.length;
  67970. }
  67971. return success;
  67972. },
  67973. expect$1(pattern) {
  67974. var t1, $name;
  67975. if (this.scan$1(pattern))
  67976. return;
  67977. t1 = A.stringReplaceAllUnchecked(pattern, "\\", "\\\\");
  67978. $name = '"' + A.stringReplaceAllUnchecked(t1, '"', '\\"') + '"';
  67979. this.error$3$length$position(0, "expected " + $name + ".", 0, this._string_scanner$_position);
  67980. },
  67981. expectDone$0() {
  67982. var t1 = this._string_scanner$_position;
  67983. if (t1 === this.string.length)
  67984. return;
  67985. this.error$3$length$position(0, "expected no more input.", 0, t1);
  67986. },
  67987. matches$1(pattern) {
  67988. var _this = this,
  67989. t1 = B.JSString_methods.matchAsPrefix$2(pattern, _this.string, _this._string_scanner$_position);
  67990. _this._lastMatch = t1;
  67991. _this._lastMatchPosition = _this._string_scanner$_position;
  67992. return t1 != null;
  67993. },
  67994. substring$1(_, start) {
  67995. var end = this._string_scanner$_position;
  67996. return B.JSString_methods.substring$2(this.string, start, end);
  67997. },
  67998. error$3$length$position(_, message, $length, position) {
  67999. var t1 = this.string;
  68000. A.validateErrorArgs(t1, null, position, $length);
  68001. throw A.wrapException(A.StringScannerException$(message, A.SourceFile$fromString(t1, this.sourceUrl).span$2(0, position, position + $length), t1));
  68002. }
  68003. };
  68004. A.AsciiGlyphSet.prototype = {
  68005. glyphOrAscii$2(glyph, alternative) {
  68006. return alternative;
  68007. },
  68008. get$horizontalLine() {
  68009. return "-";
  68010. },
  68011. get$verticalLine() {
  68012. return "|";
  68013. },
  68014. get$topLeftCorner() {
  68015. return ",";
  68016. },
  68017. get$bottomLeftCorner() {
  68018. return "'";
  68019. },
  68020. get$cross() {
  68021. return "+";
  68022. },
  68023. get$upEnd() {
  68024. return "'";
  68025. },
  68026. get$downEnd() {
  68027. return ",";
  68028. },
  68029. get$horizontalLineBold() {
  68030. return "=";
  68031. }
  68032. };
  68033. A.UnicodeGlyphSet.prototype = {
  68034. glyphOrAscii$2(glyph, alternative) {
  68035. return glyph;
  68036. },
  68037. get$horizontalLine() {
  68038. return "\u2500";
  68039. },
  68040. get$verticalLine() {
  68041. return "\u2502";
  68042. },
  68043. get$topLeftCorner() {
  68044. return "\u250c";
  68045. },
  68046. get$bottomLeftCorner() {
  68047. return "\u2514";
  68048. },
  68049. get$cross() {
  68050. return "\u253c";
  68051. },
  68052. get$upEnd() {
  68053. return "\u2575";
  68054. },
  68055. get$downEnd() {
  68056. return "\u2577";
  68057. },
  68058. get$horizontalLineBold() {
  68059. return "\u2501";
  68060. }
  68061. };
  68062. A.Tuple2.prototype = {
  68063. toString$0(_) {
  68064. return "[" + A.S(this.item1) + ", " + A.S(this.item2) + "]";
  68065. },
  68066. $eq(_, other) {
  68067. if (other == null)
  68068. return false;
  68069. return other instanceof A.Tuple2 && J.$eq$(other.item1, this.item1) && J.$eq$(other.item2, this.item2);
  68070. },
  68071. get$hashCode(_) {
  68072. return A.Object_hash(J.get$hashCode$(this.item1), J.get$hashCode$(this.item2), B.C_SentinelValue, B.C_SentinelValue);
  68073. }
  68074. };
  68075. A.Tuple3.prototype = {
  68076. toString$0(_) {
  68077. return "[" + this.item1.toString$0(0) + ", " + this.item2.toString$0(0) + ", " + this.item3.toString$0(0) + "]";
  68078. },
  68079. $eq(_, other) {
  68080. if (other == null)
  68081. return false;
  68082. return other instanceof A.Tuple3 && other.item1 === this.item1 && other.item2.$eq(0, this.item2) && other.item3.$eq(0, this.item3);
  68083. },
  68084. get$hashCode(_) {
  68085. var t1 = this.item2,
  68086. t2 = this.item3;
  68087. return A.Object_hash(A.Primitives_objectHashCode(this.item1), t1.get$hashCode(t1), t2.get$hashCode(t2), B.C_SentinelValue);
  68088. }
  68089. };
  68090. A.Tuple4.prototype = {
  68091. toString$0(_) {
  68092. var _this = this;
  68093. return "[" + _this.item1.toString$0(0) + ", " + _this.item2 + ", " + _this.item3.toString$0(0) + ", " + A.S(_this.item4) + "]";
  68094. },
  68095. $eq(_, other) {
  68096. var _this = this;
  68097. if (other == null)
  68098. return false;
  68099. return other instanceof A.Tuple4 && other.item1.$eq(0, _this.item1) && other.item2 === _this.item2 && other.item3 === _this.item3 && J.$eq$(other.item4, _this.item4);
  68100. },
  68101. get$hashCode(_) {
  68102. var _this = this,
  68103. t1 = _this.item1;
  68104. return A.Object_hash(t1.get$hashCode(t1), B.JSBool_methods.get$hashCode(_this.item2), A.Primitives_objectHashCode(_this.item3), J.get$hashCode$(_this.item4));
  68105. }
  68106. };
  68107. A.WatchEvent.prototype = {
  68108. toString$0(_) {
  68109. return this.type.toString$0(0) + " " + this.path;
  68110. }
  68111. };
  68112. A.ChangeType.prototype = {
  68113. toString$0(_) {
  68114. return this._watch_event$_name;
  68115. }
  68116. };
  68117. A.AnySelectorVisitor0.prototype = {
  68118. visitComplexSelector$1(complex) {
  68119. return B.JSArray_methods.any$1(complex.components, new A.AnySelectorVisitor_visitComplexSelector_closure0(this));
  68120. },
  68121. visitCompoundSelector$1(compound) {
  68122. return B.JSArray_methods.any$1(compound.components, new A.AnySelectorVisitor_visitCompoundSelector_closure0(this));
  68123. },
  68124. visitPseudoSelector$1(pseudo) {
  68125. var selector = pseudo.selector;
  68126. return selector == null ? false : this.visitSelectorList$1(selector);
  68127. },
  68128. visitSelectorList$1(list) {
  68129. return B.JSArray_methods.any$1(list.components, this.get$visitComplexSelector());
  68130. },
  68131. visitAttributeSelector$1(attribute) {
  68132. return false;
  68133. },
  68134. visitClassSelector$1(klass) {
  68135. return false;
  68136. },
  68137. visitIDSelector$1(id) {
  68138. return false;
  68139. },
  68140. visitParentSelector$1($parent) {
  68141. return false;
  68142. },
  68143. visitPlaceholderSelector$1(placeholder) {
  68144. return false;
  68145. },
  68146. visitTypeSelector$1(type) {
  68147. return false;
  68148. },
  68149. visitUniversalSelector$1(universal) {
  68150. return false;
  68151. }
  68152. };
  68153. A.AnySelectorVisitor_visitComplexSelector_closure0.prototype = {
  68154. call$1(component) {
  68155. return this.$this.visitCompoundSelector$1(component.selector);
  68156. },
  68157. $signature: 51
  68158. };
  68159. A.AnySelectorVisitor_visitCompoundSelector_closure0.prototype = {
  68160. call$1(simple) {
  68161. return simple.accept$1(this.$this);
  68162. },
  68163. $signature: 13
  68164. };
  68165. A.SupportsAnything0.prototype = {
  68166. toString$0(_) {
  68167. return "(" + this.contents.toString$0(0) + ")";
  68168. },
  68169. $isAstNode0: 1,
  68170. get$span(receiver) {
  68171. return this.span;
  68172. }
  68173. };
  68174. A.Argument0.prototype = {
  68175. toString$0(_) {
  68176. var t1 = this.defaultValue,
  68177. t2 = this.name;
  68178. return t1 == null ? t2 : t2 + ": " + t1.toString$0(0);
  68179. },
  68180. $isAstNode0: 1,
  68181. get$span(receiver) {
  68182. return this.span;
  68183. }
  68184. };
  68185. A.ArgumentDeclaration0.prototype = {
  68186. get$spanWithName() {
  68187. var t3, t4,
  68188. t1 = this.span,
  68189. t2 = t1.file,
  68190. text = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t2._decodedChars, 0, null), 0, null),
  68191. i = A.FileLocation$_(t2, t1._file$_start).offset - 1;
  68192. while (true) {
  68193. if (i > 0) {
  68194. t3 = B.JSString_methods.codeUnitAt$1(text, i);
  68195. t3 = t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12;
  68196. } else
  68197. t3 = false;
  68198. if (!t3)
  68199. break;
  68200. --i;
  68201. }
  68202. t3 = B.JSString_methods.codeUnitAt$1(text, i);
  68203. if (!(t3 === 95 || A.isAlphabetic1(t3) || t3 >= 128 || A.isDigit0(t3) || t3 === 45))
  68204. return t1;
  68205. --i;
  68206. while (true) {
  68207. if (i >= 0) {
  68208. t3 = B.JSString_methods.codeUnitAt$1(text, i);
  68209. if (t3 !== 95) {
  68210. if (!(t3 >= 97 && t3 <= 122))
  68211. t4 = t3 >= 65 && t3 <= 90;
  68212. else
  68213. t4 = true;
  68214. t4 = t4 || t3 >= 128;
  68215. } else
  68216. t4 = true;
  68217. if (!t4)
  68218. t3 = t3 >= 48 && t3 <= 57 || t3 === 45;
  68219. else
  68220. t3 = true;
  68221. } else
  68222. t3 = false;
  68223. if (!t3)
  68224. break;
  68225. --i;
  68226. }
  68227. t3 = i + 1;
  68228. t4 = B.JSString_methods.codeUnitAt$1(text, t3);
  68229. if (!(t4 === 95 || A.isAlphabetic1(t4) || t4 >= 128))
  68230. return t1;
  68231. return A.SpanExtensions_trimRight0(A.SpanExtensions_trimLeft0(t2.span$2(0, t3, A.FileLocation$_(t2, t1._end).offset)));
  68232. },
  68233. verify$2(positional, names) {
  68234. var t1, t2, t3, namedUsed, i, argument, t4, unknownNames, _this = this,
  68235. _s10_ = "invocation",
  68236. _s8_ = "argument";
  68237. for (t1 = _this.$arguments, t2 = t1.length, t3 = names._baseMap, namedUsed = 0, i = 0; i < t2; ++i) {
  68238. argument = t1[i];
  68239. if (i < positional) {
  68240. t4 = argument.name;
  68241. if (t3.containsKey$1(t4))
  68242. throw A.wrapException(A.SassScriptException$0("Argument " + _this._argument_declaration$_originalArgumentName$1(t4) + string$.x20was_p, null));
  68243. } else {
  68244. t4 = argument.name;
  68245. if (t3.containsKey$1(t4))
  68246. ++namedUsed;
  68247. else if (argument.defaultValue == null)
  68248. throw A.wrapException(A.MultiSpanSassScriptException$0("Missing argument " + _this._argument_declaration$_originalArgumentName$1(t4) + ".", _s10_, A.LinkedHashMap_LinkedHashMap$_literal([_this.get$spanWithName(), "declaration"], type$.FileSpan, type$.String)));
  68249. }
  68250. }
  68251. if (_this.restArgument != null)
  68252. return;
  68253. if (positional > t2) {
  68254. t1 = names.get$isEmpty(names) ? "" : "positional ";
  68255. throw A.wrapException(A.MultiSpanSassScriptException$0("Only " + t2 + " " + t1 + A.pluralize0(_s8_, t2, null) + " allowed, but " + positional + " " + A.pluralize0("was", positional, "were") + " passed.", _s10_, A.LinkedHashMap_LinkedHashMap$_literal([_this.get$spanWithName(), "declaration"], type$.FileSpan, type$.String)));
  68256. }
  68257. if (namedUsed < t3.get$length(t3)) {
  68258. t2 = type$.String;
  68259. unknownNames = A.LinkedHashSet_LinkedHashSet$of(names, t2);
  68260. unknownNames.removeAll$1(new A.MappedListIterable(t1, new A.ArgumentDeclaration_verify_closure1(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Object?>")));
  68261. throw A.wrapException(A.MultiSpanSassScriptException$0("No " + A.pluralize0(_s8_, unknownNames._collection$_length, null) + " named " + A.S(A.toSentence0(unknownNames.map$1$1(0, new A.ArgumentDeclaration_verify_closure2(), type$.Object), "or")) + ".", _s10_, A.LinkedHashMap_LinkedHashMap$_literal([_this.get$spanWithName(), "declaration"], type$.FileSpan, t2)));
  68262. }
  68263. },
  68264. _argument_declaration$_originalArgumentName$1($name) {
  68265. var t1, text, t2, _i, argument, t3, t4, end, _null = null;
  68266. if ($name === this.restArgument) {
  68267. t1 = this.span;
  68268. text = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t1.file._decodedChars, t1._file$_start, t1._end), 0, _null);
  68269. return B.JSString_methods.substring$2(B.JSString_methods.substring$1(text, B.JSString_methods.lastIndexOf$1(text, "$")), 0, B.JSString_methods.indexOf$1(text, "."));
  68270. }
  68271. for (t1 = this.$arguments, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  68272. argument = t1[_i];
  68273. if (argument.name === $name) {
  68274. t1 = argument.defaultValue;
  68275. t2 = argument.span;
  68276. t3 = t2.file;
  68277. t4 = t2._file$_start;
  68278. t2 = t2._end;
  68279. if (t1 == null) {
  68280. t1 = t3._decodedChars;
  68281. t1 = A.String_String$fromCharCodes(new Uint32Array(t1.subarray(t4, A._checkValidRange(t4, t2, t1.length))), 0, _null);
  68282. } else {
  68283. t1 = t3._decodedChars;
  68284. text = A.String_String$fromCharCodes(new Uint32Array(t1.subarray(t4, A._checkValidRange(t4, t2, t1.length))), 0, _null);
  68285. t1 = B.JSString_methods.substring$2(text, 0, B.JSString_methods.indexOf$1(text, ":"));
  68286. end = A._lastNonWhitespace0(t1, false);
  68287. t1 = end == null ? "" : B.JSString_methods.substring$2(t1, 0, end + 1);
  68288. }
  68289. return t1;
  68290. }
  68291. }
  68292. throw A.wrapException(A.ArgumentError$(string$.This_d + $name + '".', _null));
  68293. },
  68294. matches$2(positional, names) {
  68295. var t1, t2, t3, namedUsed, i, argument;
  68296. for (t1 = this.$arguments, t2 = t1.length, t3 = names._baseMap, namedUsed = 0, i = 0; i < t2; ++i) {
  68297. argument = t1[i];
  68298. if (i < positional) {
  68299. if (t3.containsKey$1(argument.name))
  68300. return false;
  68301. } else if (t3.containsKey$1(argument.name))
  68302. ++namedUsed;
  68303. else if (argument.defaultValue == null)
  68304. return false;
  68305. }
  68306. if (this.restArgument != null)
  68307. return true;
  68308. if (positional > t2)
  68309. return false;
  68310. if (namedUsed < t3.get$length(t3))
  68311. return false;
  68312. return true;
  68313. },
  68314. toString$0(_) {
  68315. var t2, t3, _i,
  68316. t1 = A._setArrayType([], type$.JSArray_String);
  68317. for (t2 = this.$arguments, t3 = t2.length, _i = 0; _i < t3; ++_i)
  68318. t1.push("$" + A.S(t2[_i]));
  68319. t2 = this.restArgument;
  68320. if (t2 != null)
  68321. t1.push("$" + t2 + "...");
  68322. return B.JSArray_methods.join$1(t1, ", ");
  68323. },
  68324. $isAstNode0: 1,
  68325. get$span(receiver) {
  68326. return this.span;
  68327. }
  68328. };
  68329. A.ArgumentDeclaration_verify_closure1.prototype = {
  68330. call$1(argument) {
  68331. return argument.name;
  68332. },
  68333. $signature: 291
  68334. };
  68335. A.ArgumentDeclaration_verify_closure2.prototype = {
  68336. call$1($name) {
  68337. return "$" + $name;
  68338. },
  68339. $signature: 5
  68340. };
  68341. A.ArgumentInvocation0.prototype = {
  68342. get$isEmpty(_) {
  68343. var t1;
  68344. if (this.positional.length === 0) {
  68345. t1 = this.named;
  68346. t1 = t1.get$isEmpty(t1) && this.rest == null;
  68347. } else
  68348. t1 = false;
  68349. return t1;
  68350. },
  68351. toString$0(_) {
  68352. var t2, t3, t4, _this = this,
  68353. t1 = A.List_List$of(_this.positional, true, type$.Object);
  68354. for (t2 = _this.named, t3 = J.get$iterator$ax(t2.get$keys(t2)); t3.moveNext$0();) {
  68355. t4 = t3.get$current(t3);
  68356. t1.push("$" + t4 + ": " + A.S(t2.$index(0, t4)));
  68357. }
  68358. t2 = _this.rest;
  68359. if (t2 != null)
  68360. t1.push(t2.toString$0(0) + "...");
  68361. t2 = _this.keywordRest;
  68362. if (t2 != null)
  68363. t1.push(t2.toString$0(0) + "...");
  68364. return "(" + B.JSArray_methods.join$1(t1, ", ") + ")";
  68365. },
  68366. $isAstNode0: 1,
  68367. get$span(receiver) {
  68368. return this.span;
  68369. }
  68370. };
  68371. A.argumentListClass_closure.prototype = {
  68372. call$0() {
  68373. var t1 = type$.JSClass,
  68374. jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.SassArgumentList", new A.argumentListClass__closure()));
  68375. A.defineGetter(J.get$$prototype$x(jsClass), "keywords", new A.argumentListClass__closure0(), null);
  68376. A.JSClassExtension_injectSuperclass(t1._as(A.SassArgumentList$0(A._setArrayType([], type$.JSArray_Value_2), A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.Value_2), B.ListSeparator_undecided_null_undecided0).constructor), jsClass);
  68377. return jsClass;
  68378. },
  68379. $signature: 25
  68380. };
  68381. A.argumentListClass__closure.prototype = {
  68382. call$4($self, contents, keywords, separator) {
  68383. var t3,
  68384. t1 = self.immutable.isOrderedMap(contents) ? J.toArray$0$x(type$.ImmutableList._as(contents)) : type$.List_dynamic._as(contents),
  68385. t2 = type$.Value_2;
  68386. t1 = J.cast$1$0$ax(t1, t2);
  68387. t3 = self.immutable.isOrderedMap(keywords) ? A.immutableMapToDartMap(type$.ImmutableMap._as(keywords)) : A.objectToMap(keywords);
  68388. return A.SassArgumentList$0(t1, t3.cast$2$0(0, type$.String, t2), A.jsToDartSeparator(separator));
  68389. },
  68390. call$3($self, contents, keywords) {
  68391. return this.call$4($self, contents, keywords, ",");
  68392. },
  68393. "call*": "call$4",
  68394. $requiredArgCount: 3,
  68395. $defaultValues() {
  68396. return [","];
  68397. },
  68398. $signature: 293
  68399. };
  68400. A.argumentListClass__closure0.prototype = {
  68401. call$1($self) {
  68402. $self._argument_list$_wereKeywordsAccessed = true;
  68403. return A.dartMapToImmutableMap($self._argument_list$_keywords);
  68404. },
  68405. $signature: 294
  68406. };
  68407. A.SassArgumentList0.prototype = {};
  68408. A.JSArray1.prototype = {};
  68409. A.AsyncImporter0.prototype = {};
  68410. A.NodeToDartAsyncImporter.prototype = {
  68411. canonicalize$1(_, url) {
  68412. return this.canonicalize$body$NodeToDartAsyncImporter(0, url);
  68413. },
  68414. canonicalize$body$NodeToDartAsyncImporter(_, url) {
  68415. var $async$goto = 0,
  68416. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Uri),
  68417. $async$returnValue, $async$self = this, t1, result;
  68418. var $async$canonicalize$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68419. if ($async$errorCode === 1)
  68420. return A._asyncRethrow($async$result, $async$completer);
  68421. while (true)
  68422. switch ($async$goto) {
  68423. case 0:
  68424. // Function start
  68425. result = $async$self._async0$_canonicalize.call$2(url.toString$0(0), {fromImport: A.fromImport0()});
  68426. $async$goto = result != null && result instanceof self.Promise ? 3 : 4;
  68427. break;
  68428. case 3:
  68429. // then
  68430. $async$goto = 5;
  68431. return A._asyncAwait(A.promiseToFuture(type$.Promise._as(result), type$.nullable_Object), $async$canonicalize$1);
  68432. case 5:
  68433. // returning from await.
  68434. result = $async$result;
  68435. case 4:
  68436. // join
  68437. if (result == null) {
  68438. $async$returnValue = null;
  68439. // goto return
  68440. $async$goto = 1;
  68441. break;
  68442. }
  68443. t1 = self.URL;
  68444. if (result instanceof t1) {
  68445. $async$returnValue = A.Uri_parse(J.toString$0$(type$.JSUrl._as(result)));
  68446. // goto return
  68447. $async$goto = 1;
  68448. break;
  68449. }
  68450. A.jsThrow(new self.Error(string$.The_ca));
  68451. case 1:
  68452. // return
  68453. return A._asyncReturn($async$returnValue, $async$completer);
  68454. }
  68455. });
  68456. return A._asyncStartSync($async$canonicalize$1, $async$completer);
  68457. },
  68458. load$1(_, url) {
  68459. return this.load$body$NodeToDartAsyncImporter(0, url);
  68460. },
  68461. load$body$NodeToDartAsyncImporter(_, url) {
  68462. var $async$goto = 0,
  68463. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_ImporterResult),
  68464. $async$returnValue, $async$self = this, t1, contents, syntax, t2, result;
  68465. var $async$load$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68466. if ($async$errorCode === 1)
  68467. return A._asyncRethrow($async$result, $async$completer);
  68468. while (true)
  68469. switch ($async$goto) {
  68470. case 0:
  68471. // Function start
  68472. result = $async$self._load.call$1(new self.URL(url.toString$0(0)));
  68473. $async$goto = result != null && result instanceof self.Promise ? 3 : 4;
  68474. break;
  68475. case 3:
  68476. // then
  68477. $async$goto = 5;
  68478. return A._asyncAwait(A.promiseToFuture(type$.Promise._as(result), type$.nullable_Object), $async$load$1);
  68479. case 5:
  68480. // returning from await.
  68481. result = $async$result;
  68482. case 4:
  68483. // join
  68484. if (result == null) {
  68485. $async$returnValue = null;
  68486. // goto return
  68487. $async$goto = 1;
  68488. break;
  68489. }
  68490. type$.NodeImporterResult._as(result);
  68491. t1 = J.getInterceptor$x(result);
  68492. contents = t1.get$contents(result);
  68493. if (A._asString(new self.Function("value", "return typeof value").call$1(contents)) !== "string")
  68494. A.jsThrow(new A.ArgumentError(true, contents, "contents", "must be a string but was: " + A.jsType(contents)));
  68495. syntax = t1.get$syntax(result);
  68496. if (contents == null || syntax == null)
  68497. A.jsThrow(new self.Error(string$.The_lo));
  68498. t2 = A.parseSyntax(syntax);
  68499. $async$returnValue = A.ImporterResult$(contents, A.NullableExtension_andThen0(t1.get$sourceMapUrl(result), A.utils1__jsToDartUrl$closure()), t2);
  68500. // goto return
  68501. $async$goto = 1;
  68502. break;
  68503. case 1:
  68504. // return
  68505. return A._asyncReturn($async$returnValue, $async$completer);
  68506. }
  68507. });
  68508. return A._asyncStartSync($async$load$1, $async$completer);
  68509. }
  68510. };
  68511. A.AsyncBuiltInCallable0.prototype = {
  68512. callbackFor$2(positional, names) {
  68513. return new A.Tuple2(this._async_built_in0$_arguments, this._async_built_in0$_callback, type$.Tuple2_of_ArgumentDeclaration_and_FutureOr_Value_Function_List_Value_2);
  68514. },
  68515. $isAsyncCallable0: 1,
  68516. get$name(receiver) {
  68517. return this.name;
  68518. }
  68519. };
  68520. A.AsyncBuiltInCallable$mixin_closure0.prototype = {
  68521. call$1($arguments) {
  68522. return this.$call$body$AsyncBuiltInCallable$mixin_closure0($arguments);
  68523. },
  68524. $call$body$AsyncBuiltInCallable$mixin_closure0($arguments) {
  68525. var $async$goto = 0,
  68526. $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
  68527. $async$returnValue, $async$self = this;
  68528. var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68529. if ($async$errorCode === 1)
  68530. return A._asyncRethrow($async$result, $async$completer);
  68531. while (true)
  68532. switch ($async$goto) {
  68533. case 0:
  68534. // Function start
  68535. $async$goto = 3;
  68536. return A._asyncAwait($async$self.callback.call$1($arguments), $async$call$1);
  68537. case 3:
  68538. // returning from await.
  68539. $async$returnValue = B.C__SassNull0;
  68540. // goto return
  68541. $async$goto = 1;
  68542. break;
  68543. case 1:
  68544. // return
  68545. return A._asyncReturn($async$returnValue, $async$completer);
  68546. }
  68547. });
  68548. return A._asyncStartSync($async$call$1, $async$completer);
  68549. },
  68550. $signature: 95
  68551. };
  68552. A._compileStylesheet_closure2.prototype = {
  68553. call$1(url) {
  68554. return url === "" ? A.Uri_Uri$dataFromString(A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(this.stylesheet.span.file._decodedChars, 0, null), 0, null), B.C_Utf8Codec, null).get$_text() : this.importCache.sourceMapUrl$1(0, A.Uri_parse(url)).toString$0(0);
  68555. },
  68556. $signature: 5
  68557. };
  68558. A.AsyncEnvironment0.prototype = {
  68559. closure$0() {
  68560. var t4, t5, t6, _this = this,
  68561. t1 = _this._async_environment0$_forwardedModules,
  68562. t2 = _this._async_environment0$_nestedForwardedModules,
  68563. t3 = _this._async_environment0$_variables;
  68564. t3 = A._setArrayType(t3.slice(0), A._arrayInstanceType(t3));
  68565. t4 = _this._async_environment0$_variableNodes;
  68566. t4 = A._setArrayType(t4.slice(0), A._arrayInstanceType(t4));
  68567. t5 = _this._async_environment0$_functions;
  68568. t5 = A._setArrayType(t5.slice(0), A._arrayInstanceType(t5));
  68569. t6 = _this._async_environment0$_mixins;
  68570. t6 = A._setArrayType(t6.slice(0), A._arrayInstanceType(t6));
  68571. return A.AsyncEnvironment$_0(_this._async_environment0$_modules, _this._async_environment0$_namespaceNodes, _this._async_environment0$_globalModules, _this._async_environment0$_importedModules, t1, t2, _this._async_environment0$_allModules, t3, t4, t5, t6, _this._async_environment0$_content);
  68572. },
  68573. addModule$3$namespace(module, nodeWithSpan, namespace) {
  68574. var t1, t2, span, _this = this;
  68575. if (namespace == null) {
  68576. _this._async_environment0$_globalModules.$indexSet(0, module, nodeWithSpan);
  68577. _this._async_environment0$_allModules.push(module);
  68578. for (t1 = J.get$iterator$ax(J.get$keys$z(B.JSArray_methods.get$first(_this._async_environment0$_variables))); t1.moveNext$0();) {
  68579. t2 = t1.get$current(t1);
  68580. if (module.get$variables().containsKey$1(t2))
  68581. throw A.wrapException(A.SassScriptException$0(string$.This_ma + t2 + '".', null));
  68582. }
  68583. } else {
  68584. t1 = _this._async_environment0$_modules;
  68585. if (t1.containsKey$1(namespace)) {
  68586. t1 = _this._async_environment0$_namespaceNodes.$index(0, namespace);
  68587. span = t1 == null ? null : t1.span;
  68588. t1 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
  68589. if (span != null)
  68590. t1.$indexSet(0, span, "original @use");
  68591. throw A.wrapException(A.MultiSpanSassScriptException$0(string$.There_ + namespace + '".', "new @use", t1));
  68592. }
  68593. t1.$indexSet(0, namespace, module);
  68594. _this._async_environment0$_namespaceNodes.$indexSet(0, namespace, nodeWithSpan);
  68595. _this._async_environment0$_allModules.push(module);
  68596. }
  68597. },
  68598. forwardModule$2(module, rule) {
  68599. var view, t1, t2, _this = this,
  68600. forwardedModules = _this._async_environment0$_forwardedModules;
  68601. if (forwardedModules == null)
  68602. forwardedModules = _this._async_environment0$_forwardedModules = A.LinkedHashMap_LinkedHashMap$_empty(type$.Module_AsyncCallable_2, type$.AstNode_2);
  68603. view = A.ForwardedModuleView_ifNecessary0(module, rule, type$.AsyncCallable_2);
  68604. for (t1 = A.LinkedHashMapKeyIterator$(forwardedModules, forwardedModules._modifications); t1.moveNext$0();) {
  68605. t2 = t1.__js_helper$_current;
  68606. _this._async_environment0$_assertNoConflicts$5(view.get$variables(), t2.get$variables(), view, t2, "variable");
  68607. _this._async_environment0$_assertNoConflicts$5(view.get$functions(view), t2.get$functions(t2), view, t2, "function");
  68608. _this._async_environment0$_assertNoConflicts$5(view.get$mixins(), t2.get$mixins(), view, t2, "mixin");
  68609. }
  68610. _this._async_environment0$_allModules.push(module);
  68611. forwardedModules.$indexSet(0, view, rule);
  68612. },
  68613. _async_environment0$_assertNoConflicts$5(newMembers, oldMembers, newModule, oldModule, type) {
  68614. var larger, smaller, t1, t2, $name, span;
  68615. if (newMembers.get$length(newMembers) < oldMembers.get$length(oldMembers)) {
  68616. larger = oldMembers;
  68617. smaller = newMembers;
  68618. } else {
  68619. larger = newMembers;
  68620. smaller = oldMembers;
  68621. }
  68622. for (t1 = J.get$iterator$ax(smaller.get$keys(smaller)), t2 = type === "variable"; t1.moveNext$0();) {
  68623. $name = t1.get$current(t1);
  68624. if (!larger.containsKey$1($name))
  68625. continue;
  68626. if (t2 ? newModule.variableIdentity$1($name) === oldModule.variableIdentity$1($name) : J.$eq$(larger.$index(0, $name), smaller.$index(0, $name)))
  68627. continue;
  68628. if (t2)
  68629. $name = "$" + $name;
  68630. t1 = this._async_environment0$_forwardedModules;
  68631. if (t1 == null)
  68632. span = null;
  68633. else {
  68634. t1 = t1.$index(0, oldModule);
  68635. span = t1 == null ? null : J.get$span$z(t1);
  68636. }
  68637. t1 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
  68638. if (span != null)
  68639. t1.$indexSet(0, span, "original @forward");
  68640. throw A.wrapException(A.MultiSpanSassScriptException$0("Two forwarded modules both define a " + type + " named " + $name + ".", "new @forward", t1));
  68641. }
  68642. },
  68643. importForwards$1(module) {
  68644. var forwardedModules, t1, t2, t3, t4, t5, forwardedVariableNames, forwardedFunctionNames, forwardedMixinNames, _i, entry, shadowed, t6, _length, _list, _this = this,
  68645. forwarded = module._async_environment0$_environment._async_environment0$_forwardedModules;
  68646. if (forwarded == null)
  68647. return;
  68648. forwardedModules = _this._async_environment0$_forwardedModules;
  68649. if (forwardedModules != null) {
  68650. t1 = A.LinkedHashMap_LinkedHashMap$_empty(type$.Module_AsyncCallable_2, type$.AstNode_2);
  68651. for (t2 = forwarded.get$entries(forwarded), t2 = t2.get$iterator(t2), t3 = _this._async_environment0$_globalModules; t2.moveNext$0();) {
  68652. t4 = t2.get$current(t2);
  68653. t5 = t4.key;
  68654. if (!forwardedModules.containsKey$1(t5) || !t3.containsKey$1(t5))
  68655. t1.$indexSet(0, t5, t4.value);
  68656. }
  68657. forwarded = t1;
  68658. } else
  68659. forwardedModules = _this._async_environment0$_forwardedModules = A.LinkedHashMap_LinkedHashMap$_empty(type$.Module_AsyncCallable_2, type$.AstNode_2);
  68660. t1 = A._instanceType(forwarded)._eval$1("LinkedHashMapKeyIterable<1>");
  68661. t2 = t1._eval$1("ExpandIterable<Iterable.E,String>");
  68662. t3 = t2._eval$1("Iterable.E");
  68663. forwardedVariableNames = A.LinkedHashSet_LinkedHashSet$of(new A.ExpandIterable(new A.LinkedHashMapKeyIterable(forwarded, t1), new A.AsyncEnvironment_importForwards_closure2(), t2), t3);
  68664. forwardedFunctionNames = A.LinkedHashSet_LinkedHashSet$of(new A.ExpandIterable(new A.LinkedHashMapKeyIterable(forwarded, t1), new A.AsyncEnvironment_importForwards_closure3(), t2), t3);
  68665. forwardedMixinNames = A.LinkedHashSet_LinkedHashSet$of(new A.ExpandIterable(new A.LinkedHashMapKeyIterable(forwarded, t1), new A.AsyncEnvironment_importForwards_closure4(), t2), t3);
  68666. t2 = _this._async_environment0$_variables;
  68667. t3 = t2.length;
  68668. if (t3 === 1) {
  68669. for (t1 = _this._async_environment0$_importedModules, t3 = t1.get$entries(t1).toList$0(0), t4 = t3.length, t5 = type$.AsyncCallable_2, _i = 0; _i < t3.length; t3.length === t4 || (0, A.throwConcurrentModificationError)(t3), ++_i) {
  68670. entry = t3[_i];
  68671. module = entry.key;
  68672. shadowed = A.ShadowedModuleView_ifNecessary0(module, forwardedFunctionNames, forwardedMixinNames, forwardedVariableNames, t5);
  68673. if (shadowed != null) {
  68674. t1.remove$1(0, module);
  68675. t6 = shadowed.variables;
  68676. if (t6.get$isEmpty(t6)) {
  68677. t6 = shadowed.functions;
  68678. if (t6.get$isEmpty(t6)) {
  68679. t6 = shadowed.mixins;
  68680. if (t6.get$isEmpty(t6)) {
  68681. t6 = shadowed._shadowed_view0$_inner;
  68682. t6 = t6.get$css(t6);
  68683. t6 = J.get$isEmpty$asx(t6.get$children(t6));
  68684. } else
  68685. t6 = false;
  68686. } else
  68687. t6 = false;
  68688. } else
  68689. t6 = false;
  68690. if (!t6)
  68691. t1.$indexSet(0, shadowed, entry.value);
  68692. }
  68693. }
  68694. for (t3 = forwardedModules.get$entries(forwardedModules).toList$0(0), t4 = t3.length, _i = 0; _i < t3.length; t3.length === t4 || (0, A.throwConcurrentModificationError)(t3), ++_i) {
  68695. entry = t3[_i];
  68696. module = entry.key;
  68697. shadowed = A.ShadowedModuleView_ifNecessary0(module, forwardedFunctionNames, forwardedMixinNames, forwardedVariableNames, t5);
  68698. if (shadowed != null) {
  68699. forwardedModules.remove$1(0, module);
  68700. t6 = shadowed.variables;
  68701. if (t6.get$isEmpty(t6)) {
  68702. t6 = shadowed.functions;
  68703. if (t6.get$isEmpty(t6)) {
  68704. t6 = shadowed.mixins;
  68705. if (t6.get$isEmpty(t6)) {
  68706. t6 = shadowed._shadowed_view0$_inner;
  68707. t6 = t6.get$css(t6);
  68708. t6 = J.get$isEmpty$asx(t6.get$children(t6));
  68709. } else
  68710. t6 = false;
  68711. } else
  68712. t6 = false;
  68713. } else
  68714. t6 = false;
  68715. if (!t6)
  68716. forwardedModules.$indexSet(0, shadowed, entry.value);
  68717. }
  68718. }
  68719. t1.addAll$1(0, forwarded);
  68720. forwardedModules.addAll$1(0, forwarded);
  68721. } else {
  68722. t4 = _this._async_environment0$_nestedForwardedModules;
  68723. if (t4 == null) {
  68724. _length = t3 - 1;
  68725. _list = J.JSArray_JSArray$allocateGrowable(_length, type$.List_Module_AsyncCallable_2);
  68726. for (t3 = type$.JSArray_Module_AsyncCallable_2, _i = 0; _i < _length; ++_i)
  68727. _list[_i] = A._setArrayType([], t3);
  68728. _this._async_environment0$_nestedForwardedModules = _list;
  68729. t3 = _list;
  68730. } else
  68731. t3 = t4;
  68732. B.JSArray_methods.addAll$1(B.JSArray_methods.get$last(t3), new A.LinkedHashMapKeyIterable(forwarded, t1));
  68733. }
  68734. for (t1 = A._LinkedHashSetIterator$(forwardedVariableNames, forwardedVariableNames._collection$_modifications), t3 = _this._async_environment0$_variableIndices, t4 = _this._async_environment0$_variableNodes, t5 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) {
  68735. t6 = t1._collection$_current;
  68736. if (t6 == null)
  68737. t6 = t5._as(t6);
  68738. t3.remove$1(0, t6);
  68739. J.remove$1$z(B.JSArray_methods.get$last(t2), t6);
  68740. J.remove$1$z(B.JSArray_methods.get$last(t4), t6);
  68741. }
  68742. for (t1 = A._LinkedHashSetIterator$(forwardedFunctionNames, forwardedFunctionNames._collection$_modifications), t2 = _this._async_environment0$_functionIndices, t3 = _this._async_environment0$_functions, t4 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) {
  68743. t5 = t1._collection$_current;
  68744. if (t5 == null)
  68745. t5 = t4._as(t5);
  68746. t2.remove$1(0, t5);
  68747. J.remove$1$z(B.JSArray_methods.get$last(t3), t5);
  68748. }
  68749. for (t1 = A._LinkedHashSetIterator$(forwardedMixinNames, forwardedMixinNames._collection$_modifications), t2 = _this._async_environment0$_mixinIndices, t3 = _this._async_environment0$_mixins, t4 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) {
  68750. t5 = t1._collection$_current;
  68751. if (t5 == null)
  68752. t5 = t4._as(t5);
  68753. t2.remove$1(0, t5);
  68754. J.remove$1$z(B.JSArray_methods.get$last(t3), t5);
  68755. }
  68756. },
  68757. getVariable$2$namespace($name, namespace) {
  68758. var t1, index, _this = this;
  68759. if (namespace != null)
  68760. return _this._async_environment0$_getModule$1(namespace).get$variables().$index(0, $name);
  68761. if (_this._async_environment0$_lastVariableName === $name) {
  68762. t1 = _this._async_environment0$_lastVariableIndex;
  68763. t1.toString;
  68764. t1 = J.$index$asx(_this._async_environment0$_variables[t1], $name);
  68765. return t1 == null ? _this._async_environment0$_getVariableFromGlobalModule$1($name) : t1;
  68766. }
  68767. t1 = _this._async_environment0$_variableIndices;
  68768. index = t1.$index(0, $name);
  68769. if (index != null) {
  68770. _this._async_environment0$_lastVariableName = $name;
  68771. _this._async_environment0$_lastVariableIndex = index;
  68772. t1 = J.$index$asx(_this._async_environment0$_variables[index], $name);
  68773. return t1 == null ? _this._async_environment0$_getVariableFromGlobalModule$1($name) : t1;
  68774. }
  68775. index = _this._async_environment0$_variableIndex$1($name);
  68776. if (index == null)
  68777. return _this._async_environment0$_getVariableFromGlobalModule$1($name);
  68778. _this._async_environment0$_lastVariableName = $name;
  68779. _this._async_environment0$_lastVariableIndex = index;
  68780. t1.$indexSet(0, $name, index);
  68781. t1 = J.$index$asx(_this._async_environment0$_variables[index], $name);
  68782. return t1 == null ? _this._async_environment0$_getVariableFromGlobalModule$1($name) : t1;
  68783. },
  68784. getVariable$1($name) {
  68785. return this.getVariable$2$namespace($name, null);
  68786. },
  68787. _async_environment0$_getVariableFromGlobalModule$1($name) {
  68788. return this._async_environment0$_fromOneModule$1$3($name, "variable", new A.AsyncEnvironment__getVariableFromGlobalModule_closure0($name), type$.Value_2);
  68789. },
  68790. getVariableNode$2$namespace($name, namespace) {
  68791. var t1, index, _this = this;
  68792. if (namespace != null)
  68793. return _this._async_environment0$_getModule$1(namespace).get$variableNodes().$index(0, $name);
  68794. if (_this._async_environment0$_lastVariableName === $name) {
  68795. t1 = _this._async_environment0$_lastVariableIndex;
  68796. t1.toString;
  68797. t1 = J.$index$asx(_this._async_environment0$_variableNodes[t1], $name);
  68798. return t1 == null ? _this._async_environment0$_getVariableNodeFromGlobalModule$1($name) : t1;
  68799. }
  68800. t1 = _this._async_environment0$_variableIndices;
  68801. index = t1.$index(0, $name);
  68802. if (index != null) {
  68803. _this._async_environment0$_lastVariableName = $name;
  68804. _this._async_environment0$_lastVariableIndex = index;
  68805. t1 = J.$index$asx(_this._async_environment0$_variableNodes[index], $name);
  68806. return t1 == null ? _this._async_environment0$_getVariableNodeFromGlobalModule$1($name) : t1;
  68807. }
  68808. index = _this._async_environment0$_variableIndex$1($name);
  68809. if (index == null)
  68810. return _this._async_environment0$_getVariableNodeFromGlobalModule$1($name);
  68811. _this._async_environment0$_lastVariableName = $name;
  68812. _this._async_environment0$_lastVariableIndex = index;
  68813. t1.$indexSet(0, $name, index);
  68814. t1 = J.$index$asx(_this._async_environment0$_variableNodes[index], $name);
  68815. return t1 == null ? _this._async_environment0$_getVariableNodeFromGlobalModule$1($name) : t1;
  68816. },
  68817. _async_environment0$_getVariableNodeFromGlobalModule$1($name) {
  68818. var t1, t2, value;
  68819. for (t1 = this._async_environment0$_importedModules, t2 = this._async_environment0$_globalModules, t2 = new A.LinkedHashMapKeyIterable(t1, A._instanceType(t1)._eval$1("LinkedHashMapKeyIterable<1>")).followedBy$1(0, new A.LinkedHashMapKeyIterable(t2, A._instanceType(t2)._eval$1("LinkedHashMapKeyIterable<1>"))), t2 = new A.FollowedByIterator(J.get$iterator$ax(t2.__internal$_first), t2._second); t2.moveNext$0();) {
  68820. t1 = t2._currentIterator;
  68821. value = t1.get$current(t1).get$variableNodes().$index(0, $name);
  68822. if (value != null)
  68823. return value;
  68824. }
  68825. return null;
  68826. },
  68827. globalVariableExists$2$namespace($name, namespace) {
  68828. if (namespace != null)
  68829. return this._async_environment0$_getModule$1(namespace).get$variables().containsKey$1($name);
  68830. if (B.JSArray_methods.get$first(this._async_environment0$_variables).containsKey$1($name))
  68831. return true;
  68832. return this._async_environment0$_getVariableFromGlobalModule$1($name) != null;
  68833. },
  68834. globalVariableExists$1($name) {
  68835. return this.globalVariableExists$2$namespace($name, null);
  68836. },
  68837. _async_environment0$_variableIndex$1($name) {
  68838. var t1, i;
  68839. for (t1 = this._async_environment0$_variables, i = t1.length - 1; i >= 0; --i)
  68840. if (t1[i].containsKey$1($name))
  68841. return i;
  68842. return null;
  68843. },
  68844. setVariable$5$global$namespace($name, value, nodeWithSpan, global, namespace) {
  68845. var t1, moduleWithName, nestedForwardedModules, t2, t3, t4, t5, index, _this = this;
  68846. if (namespace != null) {
  68847. _this._async_environment0$_getModule$1(namespace).setVariable$3($name, value, nodeWithSpan);
  68848. return;
  68849. }
  68850. if (global || _this._async_environment0$_variables.length === 1) {
  68851. _this._async_environment0$_variableIndices.putIfAbsent$2($name, new A.AsyncEnvironment_setVariable_closure2(_this, $name));
  68852. t1 = _this._async_environment0$_variables;
  68853. if (!B.JSArray_methods.get$first(t1).containsKey$1($name)) {
  68854. moduleWithName = _this._async_environment0$_fromOneModule$1$3($name, "variable", new A.AsyncEnvironment_setVariable_closure3($name), type$.Module_AsyncCallable_2);
  68855. if (moduleWithName != null) {
  68856. moduleWithName.setVariable$3($name, value, nodeWithSpan);
  68857. return;
  68858. }
  68859. }
  68860. J.$indexSet$ax(B.JSArray_methods.get$first(t1), $name, value);
  68861. J.$indexSet$ax(B.JSArray_methods.get$first(_this._async_environment0$_variableNodes), $name, nodeWithSpan);
  68862. return;
  68863. }
  68864. nestedForwardedModules = _this._async_environment0$_nestedForwardedModules;
  68865. if (nestedForwardedModules != null && !_this._async_environment0$_variableIndices.containsKey$1($name) && _this._async_environment0$_variableIndex$1($name) == null)
  68866. for (t1 = new A.ReversedListIterable(nestedForwardedModules, A.instanceType(nestedForwardedModules)._eval$1("ReversedListIterable<1>")), t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) {
  68867. t3 = t1.__internal$_current;
  68868. for (t3 = J.get$reversed$ax(t3 == null ? t2._as(t3) : t3), t3 = new A.ListIterator(t3, t3.get$length(t3)), t4 = A._instanceType(t3)._precomputed1; t3.moveNext$0();) {
  68869. t5 = t3.__internal$_current;
  68870. if (t5 == null)
  68871. t5 = t4._as(t5);
  68872. if (t5.get$variables().containsKey$1($name)) {
  68873. t5.setVariable$3($name, value, nodeWithSpan);
  68874. return;
  68875. }
  68876. }
  68877. }
  68878. if (_this._async_environment0$_lastVariableName === $name) {
  68879. t1 = _this._async_environment0$_lastVariableIndex;
  68880. t1.toString;
  68881. index = t1;
  68882. } else
  68883. index = _this._async_environment0$_variableIndices.putIfAbsent$2($name, new A.AsyncEnvironment_setVariable_closure4(_this, $name));
  68884. if (!_this._async_environment0$_inSemiGlobalScope && index === 0) {
  68885. index = _this._async_environment0$_variables.length - 1;
  68886. _this._async_environment0$_variableIndices.$indexSet(0, $name, index);
  68887. }
  68888. _this._async_environment0$_lastVariableName = $name;
  68889. _this._async_environment0$_lastVariableIndex = index;
  68890. J.$indexSet$ax(_this._async_environment0$_variables[index], $name, value);
  68891. J.$indexSet$ax(_this._async_environment0$_variableNodes[index], $name, nodeWithSpan);
  68892. },
  68893. setVariable$4$global($name, value, nodeWithSpan, global) {
  68894. return this.setVariable$5$global$namespace($name, value, nodeWithSpan, global, null);
  68895. },
  68896. setLocalVariable$3($name, value, nodeWithSpan) {
  68897. var index, _this = this,
  68898. t1 = _this._async_environment0$_variables,
  68899. t2 = t1.length;
  68900. _this._async_environment0$_lastVariableName = $name;
  68901. index = _this._async_environment0$_lastVariableIndex = t2 - 1;
  68902. _this._async_environment0$_variableIndices.$indexSet(0, $name, index);
  68903. J.$indexSet$ax(t1[index], $name, value);
  68904. J.$indexSet$ax(_this._async_environment0$_variableNodes[index], $name, nodeWithSpan);
  68905. },
  68906. getFunction$2$namespace($name, namespace) {
  68907. var t1, index, _this = this;
  68908. if (namespace != null) {
  68909. t1 = _this._async_environment0$_getModule$1(namespace);
  68910. return t1.get$functions(t1).$index(0, $name);
  68911. }
  68912. t1 = _this._async_environment0$_functionIndices;
  68913. index = t1.$index(0, $name);
  68914. if (index != null) {
  68915. t1 = J.$index$asx(_this._async_environment0$_functions[index], $name);
  68916. return t1 == null ? _this._async_environment0$_getFunctionFromGlobalModule$1($name) : t1;
  68917. }
  68918. index = _this._async_environment0$_functionIndex$1($name);
  68919. if (index == null)
  68920. return _this._async_environment0$_getFunctionFromGlobalModule$1($name);
  68921. t1.$indexSet(0, $name, index);
  68922. t1 = J.$index$asx(_this._async_environment0$_functions[index], $name);
  68923. return t1 == null ? _this._async_environment0$_getFunctionFromGlobalModule$1($name) : t1;
  68924. },
  68925. _async_environment0$_getFunctionFromGlobalModule$1($name) {
  68926. return this._async_environment0$_fromOneModule$1$3($name, "function", new A.AsyncEnvironment__getFunctionFromGlobalModule_closure0($name), type$.AsyncCallable_2);
  68927. },
  68928. _async_environment0$_functionIndex$1($name) {
  68929. var t1, i;
  68930. for (t1 = this._async_environment0$_functions, i = t1.length - 1; i >= 0; --i)
  68931. if (t1[i].containsKey$1($name))
  68932. return i;
  68933. return null;
  68934. },
  68935. getMixin$2$namespace($name, namespace) {
  68936. var t1, index, _this = this;
  68937. if (namespace != null)
  68938. return _this._async_environment0$_getModule$1(namespace).get$mixins().$index(0, $name);
  68939. t1 = _this._async_environment0$_mixinIndices;
  68940. index = t1.$index(0, $name);
  68941. if (index != null) {
  68942. t1 = J.$index$asx(_this._async_environment0$_mixins[index], $name);
  68943. return t1 == null ? _this._async_environment0$_getMixinFromGlobalModule$1($name) : t1;
  68944. }
  68945. index = _this._async_environment0$_mixinIndex$1($name);
  68946. if (index == null)
  68947. return _this._async_environment0$_getMixinFromGlobalModule$1($name);
  68948. t1.$indexSet(0, $name, index);
  68949. t1 = J.$index$asx(_this._async_environment0$_mixins[index], $name);
  68950. return t1 == null ? _this._async_environment0$_getMixinFromGlobalModule$1($name) : t1;
  68951. },
  68952. _async_environment0$_getMixinFromGlobalModule$1($name) {
  68953. return this._async_environment0$_fromOneModule$1$3($name, "mixin", new A.AsyncEnvironment__getMixinFromGlobalModule_closure0($name), type$.AsyncCallable_2);
  68954. },
  68955. _async_environment0$_mixinIndex$1($name) {
  68956. var t1, i;
  68957. for (t1 = this._async_environment0$_mixins, i = t1.length - 1; i >= 0; --i)
  68958. if (t1[i].containsKey$1($name))
  68959. return i;
  68960. return null;
  68961. },
  68962. withContent$2($content, callback) {
  68963. return this.withContent$body$AsyncEnvironment0($content, callback);
  68964. },
  68965. withContent$body$AsyncEnvironment0($content, callback) {
  68966. var $async$goto = 0,
  68967. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  68968. $async$self = this, oldContent;
  68969. var $async$withContent$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68970. if ($async$errorCode === 1)
  68971. return A._asyncRethrow($async$result, $async$completer);
  68972. while (true)
  68973. switch ($async$goto) {
  68974. case 0:
  68975. // Function start
  68976. oldContent = $async$self._async_environment0$_content;
  68977. $async$self._async_environment0$_content = $content;
  68978. $async$goto = 2;
  68979. return A._asyncAwait(callback.call$0(), $async$withContent$2);
  68980. case 2:
  68981. // returning from await.
  68982. $async$self._async_environment0$_content = oldContent;
  68983. // implicit return
  68984. return A._asyncReturn(null, $async$completer);
  68985. }
  68986. });
  68987. return A._asyncStartSync($async$withContent$2, $async$completer);
  68988. },
  68989. asMixin$1(callback) {
  68990. var $async$goto = 0,
  68991. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  68992. $async$self = this, oldInMixin;
  68993. var $async$asMixin$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68994. if ($async$errorCode === 1)
  68995. return A._asyncRethrow($async$result, $async$completer);
  68996. while (true)
  68997. switch ($async$goto) {
  68998. case 0:
  68999. // Function start
  69000. oldInMixin = $async$self._async_environment0$_inMixin;
  69001. $async$self._async_environment0$_inMixin = true;
  69002. $async$goto = 2;
  69003. return A._asyncAwait(callback.call$0(), $async$asMixin$1);
  69004. case 2:
  69005. // returning from await.
  69006. $async$self._async_environment0$_inMixin = oldInMixin;
  69007. // implicit return
  69008. return A._asyncReturn(null, $async$completer);
  69009. }
  69010. });
  69011. return A._asyncStartSync($async$asMixin$1, $async$completer);
  69012. },
  69013. scope$1$3$semiGlobal$when(callback, semiGlobal, when, $T) {
  69014. return this.scope$body$AsyncEnvironment0(callback, semiGlobal, when, $T, $T);
  69015. },
  69016. scope$1$1(callback, $T) {
  69017. return this.scope$1$3$semiGlobal$when(callback, false, true, $T);
  69018. },
  69019. scope$1$2$when(callback, when, $T) {
  69020. return this.scope$1$3$semiGlobal$when(callback, false, when, $T);
  69021. },
  69022. scope$1$2$semiGlobal(callback, semiGlobal, $T) {
  69023. return this.scope$1$3$semiGlobal$when(callback, semiGlobal, true, $T);
  69024. },
  69025. scope$body$AsyncEnvironment0(callback, semiGlobal, when, $T, $async$type) {
  69026. var $async$goto = 0,
  69027. $async$completer = A._makeAsyncAwaitCompleter($async$type),
  69028. $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, wasInSemiGlobalScope, $name, name0, name1, t1, t2, t3, t4, t5, t6;
  69029. var $async$scope$1$3$semiGlobal$when = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  69030. if ($async$errorCode === 1) {
  69031. $async$currentError = $async$result;
  69032. $async$goto = $async$handler;
  69033. }
  69034. while (true)
  69035. switch ($async$goto) {
  69036. case 0:
  69037. // Function start
  69038. semiGlobal = semiGlobal && $async$self._async_environment0$_inSemiGlobalScope;
  69039. wasInSemiGlobalScope = $async$self._async_environment0$_inSemiGlobalScope;
  69040. $async$self._async_environment0$_inSemiGlobalScope = semiGlobal;
  69041. $async$goto = !when ? 3 : 4;
  69042. break;
  69043. case 3:
  69044. // then
  69045. $async$handler = 5;
  69046. $async$goto = 8;
  69047. return A._asyncAwait(callback.call$0(), $async$scope$1$3$semiGlobal$when);
  69048. case 8:
  69049. // returning from await.
  69050. t1 = $async$result;
  69051. $async$returnValue = t1;
  69052. $async$next = [1];
  69053. // goto finally
  69054. $async$goto = 6;
  69055. break;
  69056. $async$next.push(7);
  69057. // goto finally
  69058. $async$goto = 6;
  69059. break;
  69060. case 5:
  69061. // uncaught
  69062. $async$next = [2];
  69063. case 6:
  69064. // finally
  69065. $async$handler = 2;
  69066. $async$self._async_environment0$_inSemiGlobalScope = wasInSemiGlobalScope;
  69067. // goto the next finally handler
  69068. $async$goto = $async$next.pop();
  69069. break;
  69070. case 7:
  69071. // after finally
  69072. case 4:
  69073. // join
  69074. t1 = $async$self._async_environment0$_variables;
  69075. t2 = type$.String;
  69076. B.JSArray_methods.add$1(t1, A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.Value_2));
  69077. t3 = $async$self._async_environment0$_variableNodes;
  69078. B.JSArray_methods.add$1(t3, A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.AstNode_2));
  69079. t4 = $async$self._async_environment0$_functions;
  69080. t5 = type$.AsyncCallable_2;
  69081. B.JSArray_methods.add$1(t4, A.LinkedHashMap_LinkedHashMap$_empty(t2, t5));
  69082. t6 = $async$self._async_environment0$_mixins;
  69083. B.JSArray_methods.add$1(t6, A.LinkedHashMap_LinkedHashMap$_empty(t2, t5));
  69084. t5 = $async$self._async_environment0$_nestedForwardedModules;
  69085. if (t5 != null)
  69086. t5.push(A._setArrayType([], type$.JSArray_Module_AsyncCallable_2));
  69087. $async$handler = 9;
  69088. $async$goto = 12;
  69089. return A._asyncAwait(callback.call$0(), $async$scope$1$3$semiGlobal$when);
  69090. case 12:
  69091. // returning from await.
  69092. t2 = $async$result;
  69093. $async$returnValue = t2;
  69094. $async$next = [1];
  69095. // goto finally
  69096. $async$goto = 10;
  69097. break;
  69098. $async$next.push(11);
  69099. // goto finally
  69100. $async$goto = 10;
  69101. break;
  69102. case 9:
  69103. // uncaught
  69104. $async$next = [2];
  69105. case 10:
  69106. // finally
  69107. $async$handler = 2;
  69108. $async$self._async_environment0$_inSemiGlobalScope = wasInSemiGlobalScope;
  69109. $async$self._async_environment0$_lastVariableIndex = $async$self._async_environment0$_lastVariableName = null;
  69110. for (t1 = J.get$iterator$ax(J.get$keys$z(B.JSArray_methods.removeLast$0(t1))), t2 = $async$self._async_environment0$_variableIndices; t1.moveNext$0();) {
  69111. $name = t1.get$current(t1);
  69112. t2.remove$1(0, $name);
  69113. }
  69114. B.JSArray_methods.removeLast$0(t3);
  69115. for (t1 = J.get$iterator$ax(J.get$keys$z(B.JSArray_methods.removeLast$0(t4))), t2 = $async$self._async_environment0$_functionIndices; t1.moveNext$0();) {
  69116. name0 = t1.get$current(t1);
  69117. t2.remove$1(0, name0);
  69118. }
  69119. for (t1 = J.get$iterator$ax(J.get$keys$z(B.JSArray_methods.removeLast$0(t6))), t2 = $async$self._async_environment0$_mixinIndices; t1.moveNext$0();) {
  69120. name1 = t1.get$current(t1);
  69121. t2.remove$1(0, name1);
  69122. }
  69123. t1 = $async$self._async_environment0$_nestedForwardedModules;
  69124. if (t1 != null)
  69125. t1.pop();
  69126. // goto the next finally handler
  69127. $async$goto = $async$next.pop();
  69128. break;
  69129. case 11:
  69130. // after finally
  69131. case 1:
  69132. // return
  69133. return A._asyncReturn($async$returnValue, $async$completer);
  69134. case 2:
  69135. // rethrow
  69136. return A._asyncRethrow($async$currentError, $async$completer);
  69137. }
  69138. });
  69139. return A._asyncStartSync($async$scope$1$3$semiGlobal$when, $async$completer);
  69140. },
  69141. toImplicitConfiguration$0() {
  69142. var t1, t2, i, values, nodes, t3, t4, t5, t6,
  69143. configuration = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.ConfiguredValue_2);
  69144. for (t1 = this._async_environment0$_variables, t2 = this._async_environment0$_variableNodes, i = 0; i < t1.length; ++i) {
  69145. values = t1[i];
  69146. nodes = t2[i];
  69147. for (t3 = values.get$entries(values), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  69148. t4 = t3.get$current(t3);
  69149. t5 = t4.key;
  69150. t4 = t4.value;
  69151. t6 = nodes.$index(0, t5);
  69152. t6.toString;
  69153. configuration.$indexSet(0, t5, new A.ConfiguredValue0(t4, null, t6));
  69154. }
  69155. }
  69156. return new A.Configuration0(configuration, null);
  69157. },
  69158. toModule$2(css, extensionStore) {
  69159. return A._EnvironmentModule__EnvironmentModule2(this, css, extensionStore, A.NullableExtension_andThen0(this._async_environment0$_forwardedModules, new A.AsyncEnvironment_toModule_closure0()));
  69160. },
  69161. toDummyModule$0() {
  69162. return A._EnvironmentModule__EnvironmentModule2(this, new A.CssStylesheet0(new A.UnmodifiableListView(B.List_empty16, type$.UnmodifiableListView_CssNode_2), A.SourceFile$decoded(B.List_empty4, "<dummy module>").span$1(0, 0)), B.C_EmptyExtensionStore0, A.NullableExtension_andThen0(this._async_environment0$_forwardedModules, new A.AsyncEnvironment_toDummyModule_closure0()));
  69163. },
  69164. _async_environment0$_getModule$1(namespace) {
  69165. var module = this._async_environment0$_modules.$index(0, namespace);
  69166. if (module != null)
  69167. return module;
  69168. throw A.wrapException(A.SassScriptException$0('There is no module with the namespace "' + namespace + '".', null));
  69169. },
  69170. _async_environment0$_fromOneModule$1$3($name, type, callback, $T) {
  69171. var t1, t2, t3, t4, t5, value, identity, valueInModule, identityFromModule, spans,
  69172. nestedForwardedModules = this._async_environment0$_nestedForwardedModules;
  69173. if (nestedForwardedModules != null)
  69174. for (t1 = new A.ReversedListIterable(nestedForwardedModules, A._arrayInstanceType(nestedForwardedModules)._eval$1("ReversedListIterable<1>")), t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) {
  69175. t3 = t1.__internal$_current;
  69176. for (t3 = J.get$reversed$ax(t3 == null ? t2._as(t3) : t3), t3 = new A.ListIterator(t3, t3.get$length(t3)), t4 = A._instanceType(t3)._precomputed1; t3.moveNext$0();) {
  69177. t5 = t3.__internal$_current;
  69178. value = callback.call$1(t5 == null ? t4._as(t5) : t5);
  69179. if (value != null)
  69180. return value;
  69181. }
  69182. }
  69183. for (t1 = this._async_environment0$_importedModules, t1 = A.LinkedHashMapKeyIterator$(t1, t1._modifications); t1.moveNext$0();) {
  69184. value = callback.call$1(t1.__js_helper$_current);
  69185. if (value != null)
  69186. return value;
  69187. }
  69188. for (t1 = this._async_environment0$_globalModules, t2 = A.LinkedHashMapKeyIterator$(t1, t1._modifications), t3 = type$.AsyncCallable_2, value = null, identity = null; t2.moveNext$0();) {
  69189. t4 = t2.__js_helper$_current;
  69190. valueInModule = callback.call$1(t4);
  69191. if (valueInModule == null)
  69192. continue;
  69193. identityFromModule = t3._is(valueInModule) ? valueInModule : t4.variableIdentity$1($name);
  69194. if (identityFromModule.$eq(0, identity))
  69195. continue;
  69196. if (value != null) {
  69197. spans = t1.get$entries(t1).map$1$1(0, new A.AsyncEnvironment__fromOneModule_closure0(callback, $T), type$.nullable_FileSpan);
  69198. t2 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
  69199. for (t1 = spans.get$iterator(spans), t3 = "includes " + type; t1.moveNext$0();) {
  69200. t4 = t1.get$current(t1);
  69201. if (t4 != null)
  69202. t2.$indexSet(0, t4, t3);
  69203. }
  69204. throw A.wrapException(A.MultiSpanSassScriptException$0("This " + type + string$.x20is_av, type + " use", t2));
  69205. }
  69206. identity = identityFromModule;
  69207. value = valueInModule;
  69208. }
  69209. return value;
  69210. }
  69211. };
  69212. A.AsyncEnvironment_importForwards_closure2.prototype = {
  69213. call$1(module) {
  69214. var t1 = module.get$variables();
  69215. return t1.get$keys(t1);
  69216. },
  69217. $signature: 136
  69218. };
  69219. A.AsyncEnvironment_importForwards_closure3.prototype = {
  69220. call$1(module) {
  69221. var t1 = module.get$functions(module);
  69222. return t1.get$keys(t1);
  69223. },
  69224. $signature: 136
  69225. };
  69226. A.AsyncEnvironment_importForwards_closure4.prototype = {
  69227. call$1(module) {
  69228. var t1 = module.get$mixins();
  69229. return t1.get$keys(t1);
  69230. },
  69231. $signature: 136
  69232. };
  69233. A.AsyncEnvironment__getVariableFromGlobalModule_closure0.prototype = {
  69234. call$1(module) {
  69235. return module.get$variables().$index(0, this.name);
  69236. },
  69237. $signature: 297
  69238. };
  69239. A.AsyncEnvironment_setVariable_closure2.prototype = {
  69240. call$0() {
  69241. var t1 = this.$this;
  69242. t1._async_environment0$_lastVariableName = this.name;
  69243. return t1._async_environment0$_lastVariableIndex = 0;
  69244. },
  69245. $signature: 12
  69246. };
  69247. A.AsyncEnvironment_setVariable_closure3.prototype = {
  69248. call$1(module) {
  69249. return module.get$variables().containsKey$1(this.name) ? module : null;
  69250. },
  69251. $signature: 298
  69252. };
  69253. A.AsyncEnvironment_setVariable_closure4.prototype = {
  69254. call$0() {
  69255. var t1 = this.$this,
  69256. t2 = t1._async_environment0$_variableIndex$1(this.name);
  69257. return t2 == null ? t1._async_environment0$_variables.length - 1 : t2;
  69258. },
  69259. $signature: 12
  69260. };
  69261. A.AsyncEnvironment__getFunctionFromGlobalModule_closure0.prototype = {
  69262. call$1(module) {
  69263. return module.get$functions(module).$index(0, this.name);
  69264. },
  69265. $signature: 219
  69266. };
  69267. A.AsyncEnvironment__getMixinFromGlobalModule_closure0.prototype = {
  69268. call$1(module) {
  69269. return module.get$mixins().$index(0, this.name);
  69270. },
  69271. $signature: 219
  69272. };
  69273. A.AsyncEnvironment_toModule_closure0.prototype = {
  69274. call$1(modules) {
  69275. return new A.MapKeySet(modules, type$.MapKeySet_Module_AsyncCallable_2);
  69276. },
  69277. $signature: 217
  69278. };
  69279. A.AsyncEnvironment_toDummyModule_closure0.prototype = {
  69280. call$1(modules) {
  69281. return new A.MapKeySet(modules, type$.MapKeySet_Module_AsyncCallable_2);
  69282. },
  69283. $signature: 217
  69284. };
  69285. A.AsyncEnvironment__fromOneModule_closure0.prototype = {
  69286. call$1(entry) {
  69287. return A.NullableExtension_andThen0(this.callback.call$1(entry.key), new A.AsyncEnvironment__fromOneModule__closure0(entry, this.T));
  69288. },
  69289. $signature: 301
  69290. };
  69291. A.AsyncEnvironment__fromOneModule__closure0.prototype = {
  69292. call$1(_) {
  69293. return J.get$span$z(this.entry.value);
  69294. },
  69295. $signature() {
  69296. return this.T._eval$1("FileSpan(0)");
  69297. }
  69298. };
  69299. A._EnvironmentModule2.prototype = {
  69300. get$url(_) {
  69301. var t1 = this.css;
  69302. return t1.get$span(t1).file.url;
  69303. },
  69304. setVariable$3($name, value, nodeWithSpan) {
  69305. var t1, t2,
  69306. module = this._async_environment0$_modulesByVariable.$index(0, $name);
  69307. if (module != null) {
  69308. module.setVariable$3($name, value, nodeWithSpan);
  69309. return;
  69310. }
  69311. t1 = this._async_environment0$_environment;
  69312. t2 = t1._async_environment0$_variables;
  69313. if (!B.JSArray_methods.get$first(t2).containsKey$1($name))
  69314. throw A.wrapException(A.SassScriptException$0("Undefined variable.", null));
  69315. J.$indexSet$ax(B.JSArray_methods.get$first(t2), $name, value);
  69316. J.$indexSet$ax(B.JSArray_methods.get$first(t1._async_environment0$_variableNodes), $name, nodeWithSpan);
  69317. return;
  69318. },
  69319. variableIdentity$1($name) {
  69320. var module = this._async_environment0$_modulesByVariable.$index(0, $name);
  69321. return module == null ? this : module.variableIdentity$1($name);
  69322. },
  69323. cloneCss$0() {
  69324. var newCssAndExtensionStore, _this = this;
  69325. if (!_this.transitivelyContainsCss)
  69326. return _this;
  69327. newCssAndExtensionStore = A.cloneCssStylesheet0(_this.css, _this.extensionStore);
  69328. return A._EnvironmentModule$_2(_this._async_environment0$_environment, newCssAndExtensionStore.item1, newCssAndExtensionStore.item2, _this._async_environment0$_modulesByVariable, _this.variables, _this.variableNodes, _this.functions, _this.mixins, true, _this.transitivelyContainsExtensions);
  69329. },
  69330. toString$0(_) {
  69331. var t1 = this.css;
  69332. if (t1.get$span(t1).file.url == null)
  69333. t1 = "<unknown url>";
  69334. else {
  69335. t1 = t1.get$span(t1);
  69336. t1 = $.$get$context().prettyUri$1(t1.file.url);
  69337. }
  69338. return t1;
  69339. },
  69340. $isModule0: 1,
  69341. get$upstream() {
  69342. return this.upstream;
  69343. },
  69344. get$variables() {
  69345. return this.variables;
  69346. },
  69347. get$variableNodes() {
  69348. return this.variableNodes;
  69349. },
  69350. get$functions(receiver) {
  69351. return this.functions;
  69352. },
  69353. get$mixins() {
  69354. return this.mixins;
  69355. },
  69356. get$extensionStore() {
  69357. return this.extensionStore;
  69358. },
  69359. get$css(receiver) {
  69360. return this.css;
  69361. },
  69362. get$transitivelyContainsCss() {
  69363. return this.transitivelyContainsCss;
  69364. },
  69365. get$transitivelyContainsExtensions() {
  69366. return this.transitivelyContainsExtensions;
  69367. }
  69368. };
  69369. A._EnvironmentModule__EnvironmentModule_closure17.prototype = {
  69370. call$1(module) {
  69371. return module.get$variables();
  69372. },
  69373. $signature: 302
  69374. };
  69375. A._EnvironmentModule__EnvironmentModule_closure18.prototype = {
  69376. call$1(module) {
  69377. return module.get$variableNodes();
  69378. },
  69379. $signature: 303
  69380. };
  69381. A._EnvironmentModule__EnvironmentModule_closure19.prototype = {
  69382. call$1(module) {
  69383. return module.get$functions(module);
  69384. },
  69385. $signature: 213
  69386. };
  69387. A._EnvironmentModule__EnvironmentModule_closure20.prototype = {
  69388. call$1(module) {
  69389. return module.get$mixins();
  69390. },
  69391. $signature: 213
  69392. };
  69393. A._EnvironmentModule__EnvironmentModule_closure21.prototype = {
  69394. call$1(module) {
  69395. return module.get$transitivelyContainsCss();
  69396. },
  69397. $signature: 134
  69398. };
  69399. A._EnvironmentModule__EnvironmentModule_closure22.prototype = {
  69400. call$1(module) {
  69401. return module.get$transitivelyContainsExtensions();
  69402. },
  69403. $signature: 134
  69404. };
  69405. A._EvaluateVisitor2.prototype = {
  69406. _EvaluateVisitor$6$functions$importCache$logger$nodeImporter$quietDeps$sourceMap2(functions, importCache, logger, nodeImporter, quietDeps, sourceMap) {
  69407. var t2, metaModule, t3, _i, module, $function, t4, _this = this,
  69408. _s20_ = "$name, $module: null",
  69409. _s9_ = "sass:meta",
  69410. t1 = type$.JSArray_AsyncBuiltInCallable_2,
  69411. metaFunctions = A._setArrayType([A.BuiltInCallable$function0("global-variable-exists", _s20_, new A._EvaluateVisitor_closure29(_this), _s9_), A.BuiltInCallable$function0("variable-exists", "$name", new A._EvaluateVisitor_closure30(_this), _s9_), A.BuiltInCallable$function0("function-exists", _s20_, new A._EvaluateVisitor_closure31(_this), _s9_), A.BuiltInCallable$function0("mixin-exists", _s20_, new A._EvaluateVisitor_closure32(_this), _s9_), A.BuiltInCallable$function0("content-exists", "", new A._EvaluateVisitor_closure33(_this), _s9_), A.BuiltInCallable$function0("module-variables", "$module", new A._EvaluateVisitor_closure34(_this), _s9_), A.BuiltInCallable$function0("module-functions", "$module", new A._EvaluateVisitor_closure35(_this), _s9_), A.BuiltInCallable$function0("get-function", "$name, $css: false, $module: null", new A._EvaluateVisitor_closure36(_this), _s9_), new A.AsyncBuiltInCallable0("call", A.ScssParser$0("@function call($function, $args...) {", null, _s9_).parseArgumentDeclaration$0(), new A._EvaluateVisitor_closure37(_this))], t1),
  69412. metaMixins = A._setArrayType([A.AsyncBuiltInCallable$mixin0("load-css", "$url, $with: null", new A._EvaluateVisitor_closure38(_this), _s9_)], t1);
  69413. t1 = type$.AsyncBuiltInCallable_2;
  69414. t2 = A.List_List$of($.$get$global6(), true, t1);
  69415. B.JSArray_methods.addAll$1(t2, $.$get$local0());
  69416. B.JSArray_methods.addAll$1(t2, metaFunctions);
  69417. metaModule = A.BuiltInModule$0("meta", t2, metaMixins, null, t1);
  69418. for (t1 = A.List_List$of($.$get$coreModules0(), true, type$.BuiltInModule_AsyncCallable_2), t1.push(metaModule), t2 = t1.length, t3 = _this._async_evaluate0$_builtInModules, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
  69419. module = t1[_i];
  69420. t3.$indexSet(0, module.url, module);
  69421. }
  69422. t1 = A._setArrayType([], type$.JSArray_AsyncCallable_2);
  69423. B.JSArray_methods.addAll$1(t1, functions);
  69424. B.JSArray_methods.addAll$1(t1, $.$get$globalFunctions0());
  69425. B.JSArray_methods.addAll$1(t1, metaFunctions);
  69426. for (t2 = t1.length, t3 = _this._async_evaluate0$_builtInFunctions, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
  69427. $function = t1[_i];
  69428. t4 = J.get$name$x($function);
  69429. t3.$indexSet(0, A.stringReplaceAllUnchecked(t4, "_", "-"), $function);
  69430. }
  69431. },
  69432. run$2(_, importer, node) {
  69433. return this.run$body$_EvaluateVisitor0(0, importer, node);
  69434. },
  69435. run$body$_EvaluateVisitor0(_, importer, node) {
  69436. var $async$goto = 0,
  69437. $async$completer = A._makeAsyncAwaitCompleter(type$.EvaluateResult_2),
  69438. $async$returnValue, $async$self = this, t1;
  69439. var $async$run$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  69440. if ($async$errorCode === 1)
  69441. return A._asyncRethrow($async$result, $async$completer);
  69442. while (true)
  69443. switch ($async$goto) {
  69444. case 0:
  69445. // Function start
  69446. t1 = type$.nullable_Object;
  69447. $async$returnValue = A.runZoned(new A._EvaluateVisitor_run_closure2($async$self, node, importer), A.LinkedHashMap_LinkedHashMap$_literal([B.Symbol__evaluationContext, new A._EvaluationContext2($async$self, node)], t1, t1), type$.FutureOr_EvaluateResult_2);
  69448. // goto return
  69449. $async$goto = 1;
  69450. break;
  69451. case 1:
  69452. // return
  69453. return A._asyncReturn($async$returnValue, $async$completer);
  69454. }
  69455. });
  69456. return A._asyncStartSync($async$run$2, $async$completer);
  69457. },
  69458. _async_evaluate0$_assertInModule$1$2(value, $name) {
  69459. if (value != null)
  69460. return value;
  69461. throw A.wrapException(A.StateError$("Can't access " + $name + " outside of a module."));
  69462. },
  69463. _async_evaluate0$_assertInModule$2(value, $name) {
  69464. return this._async_evaluate0$_assertInModule$1$2(value, $name, type$.dynamic);
  69465. },
  69466. _async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors) {
  69467. return this._loadModule$body$_EvaluateVisitor0(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors);
  69468. },
  69469. _async_evaluate0$_loadModule$5$configuration(url, stackFrame, nodeWithSpan, callback, configuration) {
  69470. return this._async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, configuration, false);
  69471. },
  69472. _async_evaluate0$_loadModule$4(url, stackFrame, nodeWithSpan, callback) {
  69473. return this._async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, null, false);
  69474. },
  69475. _loadModule$body$_EvaluateVisitor0(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors) {
  69476. var $async$goto = 0,
  69477. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  69478. $async$returnValue, $async$self = this, t1, t2, builtInModule;
  69479. var $async$_async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  69480. if ($async$errorCode === 1)
  69481. return A._asyncRethrow($async$result, $async$completer);
  69482. while (true)
  69483. switch ($async$goto) {
  69484. case 0:
  69485. // Function start
  69486. builtInModule = $async$self._async_evaluate0$_builtInModules.$index(0, url);
  69487. $async$goto = builtInModule != null ? 3 : 4;
  69488. break;
  69489. case 3:
  69490. // then
  69491. if (configuration instanceof A.ExplicitConfiguration0) {
  69492. t1 = namesInErrors ? "Built-in module " + url.toString$0(0) + " can't be configured." : "Built-in modules can't be configured.";
  69493. t2 = configuration.nodeWithSpan;
  69494. throw A.wrapException($async$self._async_evaluate0$_exception$2(t1, t2.get$span(t2)));
  69495. }
  69496. $async$goto = 5;
  69497. return A._asyncAwait($async$self._async_evaluate0$_addExceptionSpanAsync$1$2(nodeWithSpan, new A._EvaluateVisitor__loadModule_closure5(callback, builtInModule), type$.void), $async$_async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors);
  69498. case 5:
  69499. // returning from await.
  69500. // goto return
  69501. $async$goto = 1;
  69502. break;
  69503. case 4:
  69504. // join
  69505. $async$goto = 6;
  69506. return A._asyncAwait($async$self._async_evaluate0$_withStackFrame$1$3(stackFrame, nodeWithSpan, new A._EvaluateVisitor__loadModule_closure6($async$self, url, nodeWithSpan, baseUrl, namesInErrors, configuration, callback), type$.Null), $async$_async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors);
  69507. case 6:
  69508. // returning from await.
  69509. case 1:
  69510. // return
  69511. return A._asyncReturn($async$returnValue, $async$completer);
  69512. }
  69513. });
  69514. return A._asyncStartSync($async$_async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors, $async$completer);
  69515. },
  69516. _async_evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, configuration, namesInErrors, nodeWithSpan) {
  69517. return this._execute$body$_EvaluateVisitor0(importer, stylesheet, configuration, namesInErrors, nodeWithSpan);
  69518. },
  69519. _async_evaluate0$_execute$2(importer, stylesheet) {
  69520. return this._async_evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, null, false, null);
  69521. },
  69522. _execute$body$_EvaluateVisitor0(importer, stylesheet, configuration, namesInErrors, nodeWithSpan) {
  69523. var $async$goto = 0,
  69524. $async$completer = A._makeAsyncAwaitCompleter(type$.Module_AsyncCallable_2),
  69525. $async$returnValue, $async$self = this, currentConfiguration, t2, t3, message, existingSpan, configurationSpan, environment, css, extensionStore, module, url, t1, alreadyLoaded;
  69526. var $async$_async_evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  69527. if ($async$errorCode === 1)
  69528. return A._asyncRethrow($async$result, $async$completer);
  69529. while (true)
  69530. switch ($async$goto) {
  69531. case 0:
  69532. // Function start
  69533. url = stylesheet.span.file.url;
  69534. t1 = $async$self._async_evaluate0$_modules;
  69535. alreadyLoaded = t1.$index(0, url);
  69536. if (alreadyLoaded != null) {
  69537. t1 = configuration == null;
  69538. currentConfiguration = t1 ? $async$self._async_evaluate0$_configuration : configuration;
  69539. t2 = $async$self._async_evaluate0$_moduleConfigurations.$index(0, url);
  69540. t3 = t2._configuration$__originalConfiguration;
  69541. t2 = t3 == null ? t2 : t3;
  69542. t3 = currentConfiguration._configuration$__originalConfiguration;
  69543. if (t2 !== (t3 == null ? currentConfiguration : t3) && currentConfiguration instanceof A.ExplicitConfiguration0) {
  69544. message = namesInErrors ? $.$get$context().prettyUri$1(url) + string$.x20was_a : string$.This_mw;
  69545. t2 = $async$self._async_evaluate0$_moduleNodes.$index(0, url);
  69546. existingSpan = t2 == null ? null : J.get$span$z(t2);
  69547. if (t1) {
  69548. t1 = currentConfiguration.nodeWithSpan;
  69549. configurationSpan = t1.get$span(t1);
  69550. } else
  69551. configurationSpan = null;
  69552. t1 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
  69553. if (existingSpan != null)
  69554. t1.$indexSet(0, existingSpan, "original load");
  69555. if (configurationSpan != null)
  69556. t1.$indexSet(0, configurationSpan, "configuration");
  69557. throw A.wrapException(t1.get$isEmpty(t1) ? $async$self._async_evaluate0$_exception$1(message) : $async$self._async_evaluate0$_multiSpanException$3(message, "new load", t1));
  69558. }
  69559. $async$returnValue = alreadyLoaded;
  69560. // goto return
  69561. $async$goto = 1;
  69562. break;
  69563. }
  69564. environment = A.AsyncEnvironment$0();
  69565. css = A._Cell$();
  69566. extensionStore = A.ExtensionStore$0();
  69567. $async$goto = 3;
  69568. return A._asyncAwait($async$self._async_evaluate0$_withEnvironment$1$2(environment, new A._EvaluateVisitor__execute_closure2($async$self, importer, stylesheet, extensionStore, configuration, css), type$.Null), $async$_async_evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan);
  69569. case 3:
  69570. // returning from await.
  69571. module = environment.toModule$2(css._readLocal$0(), extensionStore);
  69572. if (url != null) {
  69573. t1.$indexSet(0, url, module);
  69574. $async$self._async_evaluate0$_moduleConfigurations.$indexSet(0, url, $async$self._async_evaluate0$_configuration);
  69575. if (nodeWithSpan != null)
  69576. $async$self._async_evaluate0$_moduleNodes.$indexSet(0, url, nodeWithSpan);
  69577. }
  69578. $async$returnValue = module;
  69579. // goto return
  69580. $async$goto = 1;
  69581. break;
  69582. case 1:
  69583. // return
  69584. return A._asyncReturn($async$returnValue, $async$completer);
  69585. }
  69586. });
  69587. return A._asyncStartSync($async$_async_evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan, $async$completer);
  69588. },
  69589. _async_evaluate0$_addOutOfOrderImports$0() {
  69590. var t1, t2, _this = this, _s5_ = "_root",
  69591. _s13_ = "_endOfImports",
  69592. outOfOrderImports = _this._async_evaluate0$_outOfOrderImports;
  69593. if (outOfOrderImports == null)
  69594. return _this._async_evaluate0$_assertInModule$2(_this._async_evaluate0$__root, _s5_).children;
  69595. t1 = _this._async_evaluate0$_assertInModule$2(_this._async_evaluate0$__root, _s5_).children;
  69596. t1 = A.List_List$of(A.SubListIterable$(t1, 0, A.checkNotNullable(_this._async_evaluate0$_assertInModule$2(_this._async_evaluate0$__endOfImports, _s13_), "count", type$.int), t1.$ti._eval$1("ListMixin.E")), true, type$.ModifiableCssNode_2);
  69597. B.JSArray_methods.addAll$1(t1, outOfOrderImports);
  69598. t2 = _this._async_evaluate0$_assertInModule$2(_this._async_evaluate0$__root, _s5_).children;
  69599. B.JSArray_methods.addAll$1(t1, A.SubListIterable$(t2, _this._async_evaluate0$_assertInModule$2(_this._async_evaluate0$__endOfImports, _s13_), null, t2.$ti._eval$1("ListMixin.E")));
  69600. return t1;
  69601. },
  69602. _async_evaluate0$_combineCss$2$clone(root, clone) {
  69603. var selectors, unsatisfiedExtension, sortedModules, t1, imports, css, t2, t3, statements, index, _this = this;
  69604. if (!B.JSArray_methods.any$1(root.get$upstream(), new A._EvaluateVisitor__combineCss_closure8())) {
  69605. selectors = root.get$extensionStore().get$simpleSelectors();
  69606. unsatisfiedExtension = A.firstOrNull0(root.get$extensionStore().extensionsWhereTarget$1(new A._EvaluateVisitor__combineCss_closure9(selectors)));
  69607. if (unsatisfiedExtension != null)
  69608. _this._async_evaluate0$_throwForUnsatisfiedExtension$1(unsatisfiedExtension);
  69609. return root.get$css(root);
  69610. }
  69611. sortedModules = _this._async_evaluate0$_topologicalModules$1(root);
  69612. if (clone) {
  69613. t1 = sortedModules.$ti._eval$1("MappedListIterable<ListMixin.E,Module0<AsyncCallable0>>");
  69614. sortedModules = A.List_List$of(new A.MappedListIterable(sortedModules, new A._EvaluateVisitor__combineCss_closure10(), t1), true, t1._eval$1("ListIterable.E"));
  69615. }
  69616. _this._async_evaluate0$_extendModules$1(sortedModules);
  69617. t1 = type$.JSArray_CssNode_2;
  69618. imports = A._setArrayType([], t1);
  69619. css = A._setArrayType([], t1);
  69620. for (t1 = J.get$reversed$ax(sortedModules), t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) {
  69621. t3 = t1.__internal$_current;
  69622. if (t3 == null)
  69623. t3 = t2._as(t3);
  69624. t3 = t3.get$css(t3);
  69625. statements = t3.get$children(t3);
  69626. index = _this._async_evaluate0$_indexAfterImports$1(statements);
  69627. t3 = J.getInterceptor$ax(statements);
  69628. B.JSArray_methods.addAll$1(imports, t3.getRange$2(statements, 0, index));
  69629. B.JSArray_methods.addAll$1(css, t3.getRange$2(statements, index, t3.get$length(statements)));
  69630. }
  69631. t1 = B.JSArray_methods.$add(imports, css);
  69632. t2 = root.get$css(root);
  69633. return new A.CssStylesheet0(new A.UnmodifiableListView(t1, type$.UnmodifiableListView_CssNode_2), t2.get$span(t2));
  69634. },
  69635. _async_evaluate0$_combineCss$1(root) {
  69636. return this._async_evaluate0$_combineCss$2$clone(root, false);
  69637. },
  69638. _async_evaluate0$_extendModules$1(sortedModules) {
  69639. var t1, t2, originalSelectors, $self, t3, t4, _i, upstream, url,
  69640. downstreamExtensionStores = A.LinkedHashMap_LinkedHashMap$_empty(type$.Uri, type$.List_ExtensionStore_2),
  69641. unsatisfiedExtensions = new A._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_Extension_2);
  69642. for (t1 = J.get$iterator$ax(sortedModules); t1.moveNext$0();) {
  69643. t2 = t1.get$current(t1);
  69644. originalSelectors = t2.get$extensionStore().get$simpleSelectors().toSet$0(0);
  69645. unsatisfiedExtensions.addAll$1(0, t2.get$extensionStore().extensionsWhereTarget$1(new A._EvaluateVisitor__extendModules_closure5(originalSelectors)));
  69646. $self = downstreamExtensionStores.$index(0, t2.get$url(t2));
  69647. t3 = t2.get$extensionStore().get$addExtensions();
  69648. if ($self != null)
  69649. t3.call$1($self);
  69650. t3 = t2.get$extensionStore();
  69651. if (t3.get$isEmpty(t3))
  69652. continue;
  69653. for (t3 = t2.get$upstream(), t4 = t3.length, _i = 0; _i < t3.length; t3.length === t4 || (0, A.throwConcurrentModificationError)(t3), ++_i) {
  69654. upstream = t3[_i];
  69655. url = upstream.get$url(upstream);
  69656. if (url == null)
  69657. continue;
  69658. J.add$1$ax(downstreamExtensionStores.putIfAbsent$2(url, new A._EvaluateVisitor__extendModules_closure6()), t2.get$extensionStore());
  69659. }
  69660. unsatisfiedExtensions.removeAll$1(t2.get$extensionStore().extensionsWhereTarget$1(originalSelectors.get$contains(originalSelectors)));
  69661. }
  69662. if (unsatisfiedExtensions._collection$_length !== 0)
  69663. this._async_evaluate0$_throwForUnsatisfiedExtension$1(unsatisfiedExtensions.get$first(unsatisfiedExtensions));
  69664. },
  69665. _async_evaluate0$_throwForUnsatisfiedExtension$1(extension) {
  69666. throw A.wrapException(A.SassException$0(string$.The_ta + extension.target.toString$0(0) + ' !optional" to avoid this error.', extension.span));
  69667. },
  69668. _async_evaluate0$_topologicalModules$1(root) {
  69669. var t1 = type$.Module_AsyncCallable_2,
  69670. sorted = A.QueueList$(null, t1);
  69671. new A._EvaluateVisitor__topologicalModules_visitModule2(A.LinkedHashSet_LinkedHashSet$_empty(t1), sorted).call$1(root);
  69672. return sorted;
  69673. },
  69674. _async_evaluate0$_indexAfterImports$1(statements) {
  69675. var t1, t2, t3, lastImport, i, statement;
  69676. for (t1 = J.getInterceptor$asx(statements), t2 = type$.CssComment_2, t3 = type$.CssImport_2, lastImport = -1, i = 0; i < t1.get$length(statements); ++i) {
  69677. statement = t1.$index(statements, i);
  69678. if (t3._is(statement))
  69679. lastImport = i;
  69680. else if (!t2._is(statement))
  69681. break;
  69682. }
  69683. return lastImport + 1;
  69684. },
  69685. visitStylesheet$1(node) {
  69686. return this.visitStylesheet$body$_EvaluateVisitor0(node);
  69687. },
  69688. visitStylesheet$body$_EvaluateVisitor0(node) {
  69689. var $async$goto = 0,
  69690. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
  69691. $async$returnValue, $async$self = this, t1, t2, _i;
  69692. var $async$visitStylesheet$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  69693. if ($async$errorCode === 1)
  69694. return A._asyncRethrow($async$result, $async$completer);
  69695. while (true)
  69696. switch ($async$goto) {
  69697. case 0:
  69698. // Function start
  69699. t1 = node.children, t2 = t1.length, _i = 0;
  69700. case 3:
  69701. // for condition
  69702. if (!(_i < t2)) {
  69703. // goto after for
  69704. $async$goto = 5;
  69705. break;
  69706. }
  69707. $async$goto = 6;
  69708. return A._asyncAwait(t1[_i].accept$1($async$self), $async$visitStylesheet$1);
  69709. case 6:
  69710. // returning from await.
  69711. case 4:
  69712. // for update
  69713. ++_i;
  69714. // goto for condition
  69715. $async$goto = 3;
  69716. break;
  69717. case 5:
  69718. // after for
  69719. $async$returnValue = null;
  69720. // goto return
  69721. $async$goto = 1;
  69722. break;
  69723. case 1:
  69724. // return
  69725. return A._asyncReturn($async$returnValue, $async$completer);
  69726. }
  69727. });
  69728. return A._asyncStartSync($async$visitStylesheet$1, $async$completer);
  69729. },
  69730. visitAtRootRule$1(node) {
  69731. return this.visitAtRootRule$body$_EvaluateVisitor0(node);
  69732. },
  69733. visitAtRootRule$body$_EvaluateVisitor0(node) {
  69734. var $async$goto = 0,
  69735. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
  69736. $async$returnValue, $async$self = this, t1, grandparent, root, innerCopy, t2, outerCopy, t3, copy, unparsedQuery, query, $parent, included, $async$temp1, $async$temp2;
  69737. var $async$visitAtRootRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  69738. if ($async$errorCode === 1)
  69739. return A._asyncRethrow($async$result, $async$completer);
  69740. while (true)
  69741. switch ($async$goto) {
  69742. case 0:
  69743. // Function start
  69744. unparsedQuery = node.query;
  69745. $async$goto = unparsedQuery != null ? 3 : 5;
  69746. break;
  69747. case 3:
  69748. // then
  69749. $async$temp1 = unparsedQuery;
  69750. $async$temp2 = A;
  69751. $async$goto = 6;
  69752. return A._asyncAwait($async$self._async_evaluate0$_performInterpolation$2$warnForColor(unparsedQuery, true), $async$visitAtRootRule$1);
  69753. case 6:
  69754. // returning from await.
  69755. $async$result = $async$self._async_evaluate0$_adjustParseError$2($async$temp1, new $async$temp2._EvaluateVisitor_visitAtRootRule_closure8($async$self, $async$result));
  69756. // goto join
  69757. $async$goto = 4;
  69758. break;
  69759. case 5:
  69760. // else
  69761. $async$result = B.AtRootQuery_UsS0;
  69762. case 4:
  69763. // join
  69764. query = $async$result;
  69765. $parent = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent");
  69766. included = A._setArrayType([], type$.JSArray_ModifiableCssParentNode_2);
  69767. for (t1 = type$.CssStylesheet_2; !t1._is($parent); $parent = grandparent) {
  69768. if (!query.excludes$1($parent))
  69769. included.push($parent);
  69770. grandparent = $parent._node0$_parent;
  69771. if (grandparent == null)
  69772. throw A.wrapException(A.StateError$(string$.CssNod));
  69773. }
  69774. root = $async$self._async_evaluate0$_trimIncluded$1(included);
  69775. $async$goto = root === $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent") ? 7 : 8;
  69776. break;
  69777. case 7:
  69778. // then
  69779. $async$goto = 9;
  69780. return A._asyncAwait($async$self._async_evaluate0$_environment.scope$1$2$when(new A._EvaluateVisitor_visitAtRootRule_closure9($async$self, node), node.hasDeclarations, type$.Null), $async$visitAtRootRule$1);
  69781. case 9:
  69782. // returning from await.
  69783. $async$returnValue = null;
  69784. // goto return
  69785. $async$goto = 1;
  69786. break;
  69787. case 8:
  69788. // join
  69789. if (included.length !== 0) {
  69790. innerCopy = B.JSArray_methods.get$first(included).copyWithoutChildren$0();
  69791. for (t1 = A.SubListIterable$(included, 1, null, type$.ModifiableCssParentNode_2), t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = A._instanceType(t1)._precomputed1, outerCopy = innerCopy; t1.moveNext$0(); outerCopy = copy) {
  69792. t3 = t1.__internal$_current;
  69793. copy = (t3 == null ? t2._as(t3) : t3).copyWithoutChildren$0();
  69794. copy.addChild$1(outerCopy);
  69795. }
  69796. root.addChild$1(outerCopy);
  69797. } else
  69798. innerCopy = root;
  69799. $async$goto = 10;
  69800. return A._asyncAwait($async$self._async_evaluate0$_scopeForAtRoot$4(node, innerCopy, query, included).call$1(new A._EvaluateVisitor_visitAtRootRule_closure10($async$self, node)), $async$visitAtRootRule$1);
  69801. case 10:
  69802. // returning from await.
  69803. $async$returnValue = null;
  69804. // goto return
  69805. $async$goto = 1;
  69806. break;
  69807. case 1:
  69808. // return
  69809. return A._asyncReturn($async$returnValue, $async$completer);
  69810. }
  69811. });
  69812. return A._asyncStartSync($async$visitAtRootRule$1, $async$completer);
  69813. },
  69814. _async_evaluate0$_trimIncluded$1(nodes) {
  69815. var $parent, t1, innermostContiguous, i, t2, grandparent, root, _this = this, _null = null, _s5_ = "_root",
  69816. _s22_ = " to be an ancestor of ";
  69817. if (nodes.length === 0)
  69818. return _this._async_evaluate0$_assertInModule$2(_this._async_evaluate0$__root, _s5_);
  69819. $parent = _this._async_evaluate0$_assertInModule$2(_this._async_evaluate0$__parent, "__parent");
  69820. for (t1 = nodes.length, innermostContiguous = _null, i = 0; i < t1; ++i, $parent = grandparent) {
  69821. for (; t2 = nodes[i], $parent !== t2; innermostContiguous = _null, $parent = grandparent) {
  69822. grandparent = $parent._node0$_parent;
  69823. if (grandparent == null)
  69824. throw A.wrapException(A.ArgumentError$("Expected " + t2.toString$0(0) + _s22_ + _this.toString$0(0) + ".", _null));
  69825. }
  69826. if (innermostContiguous == null)
  69827. innermostContiguous = i;
  69828. grandparent = $parent._node0$_parent;
  69829. if (grandparent == null)
  69830. throw A.wrapException(A.ArgumentError$("Expected " + t2.toString$0(0) + _s22_ + _this.toString$0(0) + ".", _null));
  69831. }
  69832. if ($parent !== _this._async_evaluate0$_assertInModule$2(_this._async_evaluate0$__root, _s5_))
  69833. return _this._async_evaluate0$_assertInModule$2(_this._async_evaluate0$__root, _s5_);
  69834. innermostContiguous.toString;
  69835. root = nodes[innermostContiguous];
  69836. B.JSArray_methods.removeRange$2(nodes, innermostContiguous, nodes.length);
  69837. return root;
  69838. },
  69839. _async_evaluate0$_scopeForAtRoot$4(node, newParent, query, included) {
  69840. var _this = this,
  69841. scope = new A._EvaluateVisitor__scopeForAtRoot_closure17(_this, newParent, node),
  69842. t1 = query._at_root_query0$_all || query._at_root_query0$_rule;
  69843. if (t1 !== query.include)
  69844. scope = new A._EvaluateVisitor__scopeForAtRoot_closure18(_this, scope);
  69845. if (_this._async_evaluate0$_mediaQueries != null && query.excludesName$1("media"))
  69846. scope = new A._EvaluateVisitor__scopeForAtRoot_closure19(_this, scope);
  69847. if (_this._async_evaluate0$_inKeyframes && query.excludesName$1("keyframes"))
  69848. scope = new A._EvaluateVisitor__scopeForAtRoot_closure20(_this, scope);
  69849. return _this._async_evaluate0$_inUnknownAtRule && !B.JSArray_methods.any$1(included, new A._EvaluateVisitor__scopeForAtRoot_closure21()) ? new A._EvaluateVisitor__scopeForAtRoot_closure22(_this, scope) : scope;
  69850. },
  69851. visitContentBlock$1(node) {
  69852. return A.throwExpression(A.UnsupportedError$(string$.Evalua));
  69853. },
  69854. visitContentRule$1(node) {
  69855. return this.visitContentRule$body$_EvaluateVisitor0(node);
  69856. },
  69857. visitContentRule$body$_EvaluateVisitor0(node) {
  69858. var $async$goto = 0,
  69859. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
  69860. $async$returnValue, $async$self = this, $content;
  69861. var $async$visitContentRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  69862. if ($async$errorCode === 1)
  69863. return A._asyncRethrow($async$result, $async$completer);
  69864. while (true)
  69865. switch ($async$goto) {
  69866. case 0:
  69867. // Function start
  69868. $content = $async$self._async_evaluate0$_environment._async_environment0$_content;
  69869. if ($content == null) {
  69870. $async$returnValue = null;
  69871. // goto return
  69872. $async$goto = 1;
  69873. break;
  69874. }
  69875. $async$goto = 3;
  69876. return A._asyncAwait($async$self._async_evaluate0$_runUserDefinedCallable$1$4(node.$arguments, $content, node, new A._EvaluateVisitor_visitContentRule_closure2($async$self, $content), type$.Null), $async$visitContentRule$1);
  69877. case 3:
  69878. // returning from await.
  69879. $async$returnValue = null;
  69880. // goto return
  69881. $async$goto = 1;
  69882. break;
  69883. case 1:
  69884. // return
  69885. return A._asyncReturn($async$returnValue, $async$completer);
  69886. }
  69887. });
  69888. return A._asyncStartSync($async$visitContentRule$1, $async$completer);
  69889. },
  69890. visitDebugRule$1(node) {
  69891. return this.visitDebugRule$body$_EvaluateVisitor0(node);
  69892. },
  69893. visitDebugRule$body$_EvaluateVisitor0(node) {
  69894. var $async$goto = 0,
  69895. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
  69896. $async$returnValue, $async$self = this, value, t1;
  69897. var $async$visitDebugRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  69898. if ($async$errorCode === 1)
  69899. return A._asyncRethrow($async$result, $async$completer);
  69900. while (true)
  69901. switch ($async$goto) {
  69902. case 0:
  69903. // Function start
  69904. $async$goto = 3;
  69905. return A._asyncAwait(node.expression.accept$1($async$self), $async$visitDebugRule$1);
  69906. case 3:
  69907. // returning from await.
  69908. value = $async$result;
  69909. t1 = value instanceof A.SassString0 ? value._string0$_text : A.serializeValue0(value, true, true);
  69910. $async$self._async_evaluate0$_logger.debug$2(0, t1, node.span);
  69911. $async$returnValue = null;
  69912. // goto return
  69913. $async$goto = 1;
  69914. break;
  69915. case 1:
  69916. // return
  69917. return A._asyncReturn($async$returnValue, $async$completer);
  69918. }
  69919. });
  69920. return A._asyncStartSync($async$visitDebugRule$1, $async$completer);
  69921. },
  69922. visitDeclaration$1(node) {
  69923. return this.visitDeclaration$body$_EvaluateVisitor0(node);
  69924. },
  69925. visitDeclaration$body$_EvaluateVisitor0(node) {
  69926. var $async$goto = 0,
  69927. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
  69928. $async$returnValue, $async$self = this, t1, $name, t2, cssValue, t3, t4, children, oldDeclarationName;
  69929. var $async$visitDeclaration$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  69930. if ($async$errorCode === 1)
  69931. return A._asyncRethrow($async$result, $async$completer);
  69932. while (true)
  69933. switch ($async$goto) {
  69934. case 0:
  69935. // Function start
  69936. if (($async$self._async_evaluate0$_atRootExcludingStyleRule ? null : $async$self._async_evaluate0$_styleRuleIgnoringAtRoot) == null && !$async$self._async_evaluate0$_inUnknownAtRule && !$async$self._async_evaluate0$_inKeyframes)
  69937. throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.Declarm, node.span));
  69938. t1 = node.name;
  69939. $async$goto = 3;
  69940. return A._asyncAwait($async$self._async_evaluate0$_interpolationToValue$2$warnForColor(t1, true), $async$visitDeclaration$1);
  69941. case 3:
  69942. // returning from await.
  69943. $name = $async$result;
  69944. t2 = $async$self._async_evaluate0$_declarationName;
  69945. if (t2 != null)
  69946. $name = new A.CssValue0(t2 + "-" + A.S($name.get$value($name)), $name.get$span($name), type$.CssValue_String_2);
  69947. t2 = node.value;
  69948. $async$goto = 4;
  69949. return A._asyncAwait(A.NullableExtension_andThen0(t2, new A._EvaluateVisitor_visitDeclaration_closure5($async$self)), $async$visitDeclaration$1);
  69950. case 4:
  69951. // returning from await.
  69952. cssValue = $async$result;
  69953. t3 = cssValue != null;
  69954. if (t3)
  69955. t4 = !cssValue.get$value(cssValue).get$isBlank() || cssValue.get$value(cssValue).get$asList().length === 0;
  69956. else
  69957. t4 = false;
  69958. if (t4) {
  69959. t3 = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent");
  69960. t1 = B.JSString_methods.startsWith$1(t1.get$initialPlain(), "--");
  69961. if ($async$self._async_evaluate0$_sourceMap) {
  69962. t2 = A.NullableExtension_andThen0(t2, $async$self.get$_async_evaluate0$_expressionNode());
  69963. t2 = t2 == null ? null : J.get$span$z(t2);
  69964. } else
  69965. t2 = null;
  69966. t3.addChild$1(A.ModifiableCssDeclaration$0($name, cssValue, node.span, t1, t2));
  69967. } else if (J.startsWith$1$s($name.get$value($name), "--") && t3)
  69968. throw A.wrapException($async$self._async_evaluate0$_exception$2("Custom property values may not be empty.", cssValue.get$span(cssValue)));
  69969. children = node.children;
  69970. $async$goto = children != null ? 5 : 6;
  69971. break;
  69972. case 5:
  69973. // then
  69974. oldDeclarationName = $async$self._async_evaluate0$_declarationName;
  69975. $async$self._async_evaluate0$_declarationName = $name.get$value($name);
  69976. $async$goto = 7;
  69977. return A._asyncAwait($async$self._async_evaluate0$_environment.scope$1$2$when(new A._EvaluateVisitor_visitDeclaration_closure6($async$self, children), node.hasDeclarations, type$.Null), $async$visitDeclaration$1);
  69978. case 7:
  69979. // returning from await.
  69980. $async$self._async_evaluate0$_declarationName = oldDeclarationName;
  69981. case 6:
  69982. // join
  69983. $async$returnValue = null;
  69984. // goto return
  69985. $async$goto = 1;
  69986. break;
  69987. case 1:
  69988. // return
  69989. return A._asyncReturn($async$returnValue, $async$completer);
  69990. }
  69991. });
  69992. return A._asyncStartSync($async$visitDeclaration$1, $async$completer);
  69993. },
  69994. visitEachRule$1(node) {
  69995. return this.visitEachRule$body$_EvaluateVisitor0(node);
  69996. },
  69997. visitEachRule$body$_EvaluateVisitor0(node) {
  69998. var $async$goto = 0,
  69999. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
  70000. $async$returnValue, $async$self = this, t1, list, nodeWithSpan, setVariables;
  70001. var $async$visitEachRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  70002. if ($async$errorCode === 1)
  70003. return A._asyncRethrow($async$result, $async$completer);
  70004. while (true)
  70005. switch ($async$goto) {
  70006. case 0:
  70007. // Function start
  70008. t1 = node.list;
  70009. $async$goto = 3;
  70010. return A._asyncAwait(t1.accept$1($async$self), $async$visitEachRule$1);
  70011. case 3:
  70012. // returning from await.
  70013. list = $async$result;
  70014. nodeWithSpan = $async$self._async_evaluate0$_expressionNode$1(t1);
  70015. setVariables = node.variables.length === 1 ? new A._EvaluateVisitor_visitEachRule_closure8($async$self, node, nodeWithSpan) : new A._EvaluateVisitor_visitEachRule_closure9($async$self, node, nodeWithSpan);
  70016. $async$returnValue = $async$self._async_evaluate0$_environment.scope$1$2$semiGlobal(new A._EvaluateVisitor_visitEachRule_closure10($async$self, list, setVariables, node), true, type$.nullable_Value_2);
  70017. // goto return
  70018. $async$goto = 1;
  70019. break;
  70020. case 1:
  70021. // return
  70022. return A._asyncReturn($async$returnValue, $async$completer);
  70023. }
  70024. });
  70025. return A._asyncStartSync($async$visitEachRule$1, $async$completer);
  70026. },
  70027. _async_evaluate0$_setMultipleVariables$3(variables, value, nodeWithSpan) {
  70028. var i,
  70029. list = value.get$asList(),
  70030. t1 = variables.length,
  70031. minLength = Math.min(t1, list.length);
  70032. for (i = 0; i < minLength; ++i)
  70033. this._async_evaluate0$_environment.setLocalVariable$3(variables[i], this._async_evaluate0$_withoutSlash$2(list[i], nodeWithSpan), nodeWithSpan);
  70034. for (i = minLength; i < t1; ++i)
  70035. this._async_evaluate0$_environment.setLocalVariable$3(variables[i], B.C__SassNull0, nodeWithSpan);
  70036. },
  70037. visitErrorRule$1(node) {
  70038. return this.visitErrorRule$body$_EvaluateVisitor0(node);
  70039. },
  70040. visitErrorRule$body$_EvaluateVisitor0(node) {
  70041. var $async$goto = 0,
  70042. $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
  70043. $async$self = this, $async$temp1, $async$temp2;
  70044. var $async$visitErrorRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  70045. if ($async$errorCode === 1)
  70046. return A._asyncRethrow($async$result, $async$completer);
  70047. while (true)
  70048. switch ($async$goto) {
  70049. case 0:
  70050. // Function start
  70051. $async$temp1 = A;
  70052. $async$temp2 = J;
  70053. $async$goto = 2;
  70054. return A._asyncAwait(node.expression.accept$1($async$self), $async$visitErrorRule$1);
  70055. case 2:
  70056. // returning from await.
  70057. throw $async$temp1.wrapException($async$self._async_evaluate0$_exception$2($async$temp2.toString$0$($async$result), node.span));
  70058. // implicit return
  70059. return A._asyncReturn(null, $async$completer);
  70060. }
  70061. });
  70062. return A._asyncStartSync($async$visitErrorRule$1, $async$completer);
  70063. },
  70064. visitExtendRule$1(node) {
  70065. return this.visitExtendRule$body$_EvaluateVisitor0(node);
  70066. },
  70067. visitExtendRule$body$_EvaluateVisitor0(node) {
  70068. var $async$goto = 0,
  70069. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
  70070. $async$returnValue, $async$self = this, t1, t2, t3, t4, t5, t6, t7, _i, complex, visitor, t8, t9, targetText, compound, styleRule;
  70071. var $async$visitExtendRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  70072. if ($async$errorCode === 1)
  70073. return A._asyncRethrow($async$result, $async$completer);
  70074. while (true)
  70075. switch ($async$goto) {
  70076. case 0:
  70077. // Function start
  70078. styleRule = $async$self._async_evaluate0$_atRootExcludingStyleRule ? null : $async$self._async_evaluate0$_styleRuleIgnoringAtRoot;
  70079. if (styleRule == null || $async$self._async_evaluate0$_declarationName != null)
  70080. throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.x40exten, node.span));
  70081. for (t1 = styleRule.originalSelector.components, t2 = t1.length, t3 = styleRule.selector, t4 = t3.span, t5 = node.span, t6 = type$.SourceSpan, t7 = type$.String, _i = 0; _i < t2; ++_i) {
  70082. complex = t1[_i];
  70083. if (!complex.accept$1(B._IsBogusVisitor_true0))
  70084. continue;
  70085. visitor = A._SerializeVisitor$0(null, true, null, true, false, null, true);
  70086. complex.accept$1(visitor);
  70087. t8 = B.JSString_methods.trim$0(visitor._serialize0$_buffer.toString$0(0));
  70088. t9 = complex.accept$1(B.C__IsUselessVisitor0) ? "can't" : "shouldn't";
  70089. $async$self._async_evaluate0$_warn$3$deprecation('The selector "' + t8 + '" is invalid CSS and ' + t9 + string$.x20be_an, new A.MultiSpan0(t4, "invalid selector", A.ConstantMap_ConstantMap$from(A.LinkedHashMap_LinkedHashMap$_literal([t5, "@extend rule"], t6, t7), t6, t7)), true);
  70090. }
  70091. $async$goto = 3;
  70092. return A._asyncAwait($async$self._async_evaluate0$_interpolationToValue$2$warnForColor(node.selector, true), $async$visitExtendRule$1);
  70093. case 3:
  70094. // returning from await.
  70095. targetText = $async$result;
  70096. for (t1 = $async$self._async_evaluate0$_adjustParseError$2(targetText, new A._EvaluateVisitor_visitExtendRule_closure2($async$self, targetText)).components, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  70097. complex = t1[_i];
  70098. if (complex.leadingCombinators.length === 0) {
  70099. t4 = complex.components;
  70100. t4 = t4.length === 1 && B.JSArray_methods.get$first(t4).combinators.length === 0;
  70101. } else
  70102. t4 = false;
  70103. compound = t4 ? B.JSArray_methods.get$first(complex.components).selector : null;
  70104. if (compound == null)
  70105. throw A.wrapException(A.SassFormatException$0("complex selectors may not be extended.", targetText.get$span(targetText)));
  70106. t4 = compound.components;
  70107. t5 = t4.length === 1 ? B.JSArray_methods.get$first(t4) : null;
  70108. if (t5 == null)
  70109. throw A.wrapException(A.SassFormatException$0(string$.compou + B.JSArray_methods.join$1(t4, ", ") + string$.x60_inst, targetText.get$span(targetText)));
  70110. $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__extensionStore, "_extensionStore").addExtension$4(t3, t5, node, $async$self._async_evaluate0$_mediaQueries);
  70111. }
  70112. $async$returnValue = null;
  70113. // goto return
  70114. $async$goto = 1;
  70115. break;
  70116. case 1:
  70117. // return
  70118. return A._asyncReturn($async$returnValue, $async$completer);
  70119. }
  70120. });
  70121. return A._asyncStartSync($async$visitExtendRule$1, $async$completer);
  70122. },
  70123. visitAtRule$1(node) {
  70124. return this.visitAtRule$body$_EvaluateVisitor0(node);
  70125. },
  70126. visitAtRule$body$_EvaluateVisitor0(node) {
  70127. var $async$goto = 0,
  70128. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
  70129. $async$returnValue, $async$self = this, $name, value, children, wasInKeyframes, wasInUnknownAtRule;
  70130. var $async$visitAtRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  70131. if ($async$errorCode === 1)
  70132. return A._asyncRethrow($async$result, $async$completer);
  70133. while (true)
  70134. switch ($async$goto) {
  70135. case 0:
  70136. // Function start
  70137. if ($async$self._async_evaluate0$_declarationName != null)
  70138. throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.At_rul, node.span));
  70139. $async$goto = 3;
  70140. return A._asyncAwait($async$self._async_evaluate0$_interpolationToValue$1(node.name), $async$visitAtRule$1);
  70141. case 3:
  70142. // returning from await.
  70143. $name = $async$result;
  70144. $async$goto = 4;
  70145. return A._asyncAwait(A.NullableExtension_andThen0(node.value, new A._EvaluateVisitor_visitAtRule_closure8($async$self)), $async$visitAtRule$1);
  70146. case 4:
  70147. // returning from await.
  70148. value = $async$result;
  70149. children = node.children;
  70150. if (children == null) {
  70151. $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent").addChild$1(A.ModifiableCssAtRule$0($name, node.span, true, value));
  70152. $async$returnValue = null;
  70153. // goto return
  70154. $async$goto = 1;
  70155. break;
  70156. }
  70157. wasInKeyframes = $async$self._async_evaluate0$_inKeyframes;
  70158. wasInUnknownAtRule = $async$self._async_evaluate0$_inUnknownAtRule;
  70159. if (A.unvendor0($name.get$value($name)) === "keyframes")
  70160. $async$self._async_evaluate0$_inKeyframes = true;
  70161. else
  70162. $async$self._async_evaluate0$_inUnknownAtRule = true;
  70163. $async$goto = 5;
  70164. return A._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(A.ModifiableCssAtRule$0($name, node.span, false, value), new A._EvaluateVisitor_visitAtRule_closure9($async$self, children), node.hasDeclarations, new A._EvaluateVisitor_visitAtRule_closure10(), type$.ModifiableCssAtRule_2, type$.Null), $async$visitAtRule$1);
  70165. case 5:
  70166. // returning from await.
  70167. $async$self._async_evaluate0$_inUnknownAtRule = wasInUnknownAtRule;
  70168. $async$self._async_evaluate0$_inKeyframes = wasInKeyframes;
  70169. $async$returnValue = null;
  70170. // goto return
  70171. $async$goto = 1;
  70172. break;
  70173. case 1:
  70174. // return
  70175. return A._asyncReturn($async$returnValue, $async$completer);
  70176. }
  70177. });
  70178. return A._asyncStartSync($async$visitAtRule$1, $async$completer);
  70179. },
  70180. visitForRule$1(node) {
  70181. return this.visitForRule$body$_EvaluateVisitor0(node);
  70182. },
  70183. visitForRule$body$_EvaluateVisitor0(node) {
  70184. var $async$goto = 0,
  70185. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
  70186. $async$returnValue, $async$self = this, t1, t2, t3, fromNumber, t4, toNumber, from, to, direction;
  70187. var $async$visitForRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  70188. if ($async$errorCode === 1)
  70189. return A._asyncRethrow($async$result, $async$completer);
  70190. while (true)
  70191. switch ($async$goto) {
  70192. case 0:
  70193. // Function start
  70194. t1 = {};
  70195. t2 = node.from;
  70196. t3 = type$.SassNumber_2;
  70197. $async$goto = 3;
  70198. return A._asyncAwait($async$self._async_evaluate0$_addExceptionSpanAsync$1$2(t2, new A._EvaluateVisitor_visitForRule_closure14($async$self, node), t3), $async$visitForRule$1);
  70199. case 3:
  70200. // returning from await.
  70201. fromNumber = $async$result;
  70202. t4 = node.to;
  70203. $async$goto = 4;
  70204. return A._asyncAwait($async$self._async_evaluate0$_addExceptionSpanAsync$1$2(t4, new A._EvaluateVisitor_visitForRule_closure15($async$self, node), t3), $async$visitForRule$1);
  70205. case 4:
  70206. // returning from await.
  70207. toNumber = $async$result;
  70208. from = $async$self._async_evaluate0$_addExceptionSpan$2(t2, new A._EvaluateVisitor_visitForRule_closure16(fromNumber));
  70209. to = t1.to = $async$self._async_evaluate0$_addExceptionSpan$2(t4, new A._EvaluateVisitor_visitForRule_closure17(toNumber, fromNumber));
  70210. direction = from > to ? -1 : 1;
  70211. if (from === (!node.isExclusive ? t1.to = to + direction : to)) {
  70212. $async$returnValue = null;
  70213. // goto return
  70214. $async$goto = 1;
  70215. break;
  70216. }
  70217. $async$returnValue = $async$self._async_evaluate0$_environment.scope$1$2$semiGlobal(new A._EvaluateVisitor_visitForRule_closure18(t1, $async$self, node, from, direction, fromNumber), true, type$.nullable_Value_2);
  70218. // goto return
  70219. $async$goto = 1;
  70220. break;
  70221. case 1:
  70222. // return
  70223. return A._asyncReturn($async$returnValue, $async$completer);
  70224. }
  70225. });
  70226. return A._asyncStartSync($async$visitForRule$1, $async$completer);
  70227. },
  70228. visitForwardRule$1(node) {
  70229. return this.visitForwardRule$body$_EvaluateVisitor0(node);
  70230. },
  70231. visitForwardRule$body$_EvaluateVisitor0(node) {
  70232. var $async$goto = 0,
  70233. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
  70234. $async$returnValue, $async$self = this, newConfiguration, t4, _i, variable, $name, oldConfiguration, adjustedConfiguration, t1, t2, t3;
  70235. var $async$visitForwardRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  70236. if ($async$errorCode === 1)
  70237. return A._asyncRethrow($async$result, $async$completer);
  70238. while (true)
  70239. switch ($async$goto) {
  70240. case 0:
  70241. // Function start
  70242. oldConfiguration = $async$self._async_evaluate0$_configuration;
  70243. adjustedConfiguration = oldConfiguration.throughForward$1(node);
  70244. t1 = node.configuration;
  70245. t2 = t1.length;
  70246. t3 = node.url;
  70247. $async$goto = t2 !== 0 ? 3 : 5;
  70248. break;
  70249. case 3:
  70250. // then
  70251. $async$goto = 6;
  70252. return A._asyncAwait($async$self._async_evaluate0$_addForwardConfiguration$2(adjustedConfiguration, node), $async$visitForwardRule$1);
  70253. case 6:
  70254. // returning from await.
  70255. newConfiguration = $async$result;
  70256. $async$goto = 7;
  70257. return A._asyncAwait($async$self._async_evaluate0$_loadModule$5$configuration(t3, "@forward", node, new A._EvaluateVisitor_visitForwardRule_closure5($async$self, node), newConfiguration), $async$visitForwardRule$1);
  70258. case 7:
  70259. // returning from await.
  70260. t3 = type$.String;
  70261. t4 = A.LinkedHashSet_LinkedHashSet$_empty(t3);
  70262. for (_i = 0; _i < t2; ++_i) {
  70263. variable = t1[_i];
  70264. if (!variable.isGuarded)
  70265. t4.add$1(0, variable.name);
  70266. }
  70267. $async$self._async_evaluate0$_removeUsedConfiguration$3$except(adjustedConfiguration, newConfiguration, t4);
  70268. t3 = A.LinkedHashSet_LinkedHashSet$_empty(t3);
  70269. for (_i = 0; _i < t2; ++_i)
  70270. t3.add$1(0, t1[_i].name);
  70271. for (t1 = newConfiguration._configuration$_values, t2 = J.toList$0$ax(t1.get$keys(t1)), t4 = t2.length, _i = 0; _i < t2.length; t2.length === t4 || (0, A.throwConcurrentModificationError)(t2), ++_i) {
  70272. $name = t2[_i];
  70273. if (!t3.contains$1(0, $name))
  70274. if (!t1.get$isEmpty(t1))
  70275. t1.remove$1(0, $name);
  70276. }
  70277. $async$self._async_evaluate0$_assertConfigurationIsEmpty$1(newConfiguration);
  70278. // goto join
  70279. $async$goto = 4;
  70280. break;
  70281. case 5:
  70282. // else
  70283. $async$self._async_evaluate0$_configuration = adjustedConfiguration;
  70284. $async$goto = 8;
  70285. return A._asyncAwait($async$self._async_evaluate0$_loadModule$4(t3, "@forward", node, new A._EvaluateVisitor_visitForwardRule_closure6($async$self, node)), $async$visitForwardRule$1);
  70286. case 8:
  70287. // returning from await.
  70288. $async$self._async_evaluate0$_configuration = oldConfiguration;
  70289. case 4:
  70290. // join
  70291. $async$returnValue = null;
  70292. // goto return
  70293. $async$goto = 1;
  70294. break;
  70295. case 1:
  70296. // return
  70297. return A._asyncReturn($async$returnValue, $async$completer);
  70298. }
  70299. });
  70300. return A._asyncStartSync($async$visitForwardRule$1, $async$completer);
  70301. },
  70302. _async_evaluate0$_addForwardConfiguration$2(configuration, node) {
  70303. return this._addForwardConfiguration$body$_EvaluateVisitor0(configuration, node);
  70304. },
  70305. _addForwardConfiguration$body$_EvaluateVisitor0(configuration, node) {
  70306. var $async$goto = 0,
  70307. $async$completer = A._makeAsyncAwaitCompleter(type$.Configuration_2),
  70308. $async$returnValue, $async$self = this, t2, t3, _i, variable, t4, t5, variableNodeWithSpan, t1, newValues, $async$temp1, $async$temp2, $async$temp3;
  70309. var $async$_async_evaluate0$_addForwardConfiguration$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  70310. if ($async$errorCode === 1)
  70311. return A._asyncRethrow($async$result, $async$completer);
  70312. while (true)
  70313. switch ($async$goto) {
  70314. case 0:
  70315. // Function start
  70316. t1 = configuration._configuration$_values;
  70317. newValues = A.LinkedHashMap_LinkedHashMap$of(new A.UnmodifiableMapView(t1, type$.UnmodifiableMapView_String_ConfiguredValue_2), type$.String, type$.ConfiguredValue_2);
  70318. t2 = node.configuration, t3 = t2.length, _i = 0;
  70319. case 3:
  70320. // for condition
  70321. if (!(_i < t3)) {
  70322. // goto after for
  70323. $async$goto = 5;
  70324. break;
  70325. }
  70326. variable = t2[_i];
  70327. if (variable.isGuarded) {
  70328. t4 = variable.name;
  70329. t5 = t1.get$isEmpty(t1) ? null : t1.remove$1(0, t4);
  70330. if (t5 != null && !t5.value.$eq(0, B.C__SassNull0)) {
  70331. newValues.$indexSet(0, t4, t5);
  70332. // goto for update
  70333. $async$goto = 4;
  70334. break;
  70335. }
  70336. }
  70337. t4 = variable.expression;
  70338. variableNodeWithSpan = $async$self._async_evaluate0$_expressionNode$1(t4);
  70339. $async$temp1 = newValues;
  70340. $async$temp2 = variable.name;
  70341. $async$temp3 = A;
  70342. $async$goto = 6;
  70343. return A._asyncAwait(t4.accept$1($async$self), $async$_async_evaluate0$_addForwardConfiguration$2);
  70344. case 6:
  70345. // returning from await.
  70346. $async$temp1.$indexSet(0, $async$temp2, new $async$temp3.ConfiguredValue0($async$self._async_evaluate0$_withoutSlash$2($async$result, variableNodeWithSpan), variable.span, variableNodeWithSpan));
  70347. case 4:
  70348. // for update
  70349. ++_i;
  70350. // goto for condition
  70351. $async$goto = 3;
  70352. break;
  70353. case 5:
  70354. // after for
  70355. if (configuration instanceof A.ExplicitConfiguration0 || t1.get$isEmpty(t1)) {
  70356. $async$returnValue = new A.ExplicitConfiguration0(node, newValues, null);
  70357. // goto return
  70358. $async$goto = 1;
  70359. break;
  70360. } else {
  70361. $async$returnValue = new A.Configuration0(newValues, null);
  70362. // goto return
  70363. $async$goto = 1;
  70364. break;
  70365. }
  70366. case 1:
  70367. // return
  70368. return A._asyncReturn($async$returnValue, $async$completer);
  70369. }
  70370. });
  70371. return A._asyncStartSync($async$_async_evaluate0$_addForwardConfiguration$2, $async$completer);
  70372. },
  70373. _async_evaluate0$_removeUsedConfiguration$3$except(upstream, downstream, except) {
  70374. var t1, t2, t3, t4, _i, $name;
  70375. for (t1 = upstream._configuration$_values, t2 = J.toList$0$ax(t1.get$keys(t1)), t3 = t2.length, t4 = downstream._configuration$_values, _i = 0; _i < t2.length; t2.length === t3 || (0, A.throwConcurrentModificationError)(t2), ++_i) {
  70376. $name = t2[_i];
  70377. if (except.contains$1(0, $name))
  70378. continue;
  70379. if (!t4.containsKey$1($name))
  70380. if (!t1.get$isEmpty(t1))
  70381. t1.remove$1(0, $name);
  70382. }
  70383. },
  70384. _async_evaluate0$_assertConfigurationIsEmpty$2$nameInError(configuration, nameInError) {
  70385. var t1, entry;
  70386. if (!(configuration instanceof A.ExplicitConfiguration0))
  70387. return;
  70388. t1 = configuration._configuration$_values;
  70389. if (t1.get$isEmpty(t1))
  70390. return;
  70391. t1 = t1.get$entries(t1);
  70392. entry = t1.get$first(t1);
  70393. t1 = nameInError ? "$" + A.S(entry.key) + string$.x20was_n : string$.This_v;
  70394. throw A.wrapException(this._async_evaluate0$_exception$2(t1, entry.value.configurationSpan));
  70395. },
  70396. _async_evaluate0$_assertConfigurationIsEmpty$1(configuration) {
  70397. return this._async_evaluate0$_assertConfigurationIsEmpty$2$nameInError(configuration, false);
  70398. },
  70399. visitFunctionRule$1(node) {
  70400. return this.visitFunctionRule$body$_EvaluateVisitor0(node);
  70401. },
  70402. visitFunctionRule$body$_EvaluateVisitor0(node) {
  70403. var $async$goto = 0,
  70404. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
  70405. $async$returnValue, $async$self = this, t1, t2, t3, t4, index, t5;
  70406. var $async$visitFunctionRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  70407. if ($async$errorCode === 1)
  70408. return A._asyncRethrow($async$result, $async$completer);
  70409. while (true)
  70410. switch ($async$goto) {
  70411. case 0:
  70412. // Function start
  70413. t1 = $async$self._async_evaluate0$_environment;
  70414. t2 = t1.closure$0();
  70415. t3 = $async$self._async_evaluate0$_inDependency;
  70416. t4 = t1._async_environment0$_functions;
  70417. index = t4.length - 1;
  70418. t5 = node.name;
  70419. t1._async_environment0$_functionIndices.$indexSet(0, t5, index);
  70420. J.$indexSet$ax(t4[index], t5, new A.UserDefinedCallable0(node, t2, t3, type$.UserDefinedCallable_AsyncEnvironment_2));
  70421. $async$returnValue = null;
  70422. // goto return
  70423. $async$goto = 1;
  70424. break;
  70425. case 1:
  70426. // return
  70427. return A._asyncReturn($async$returnValue, $async$completer);
  70428. }
  70429. });
  70430. return A._asyncStartSync($async$visitFunctionRule$1, $async$completer);
  70431. },
  70432. visitIfRule$1(node) {
  70433. return this.visitIfRule$body$_EvaluateVisitor0(node);
  70434. },
  70435. visitIfRule$body$_EvaluateVisitor0(node) {
  70436. var $async$goto = 0,
  70437. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
  70438. $async$returnValue, $async$self = this, t1, t2, _i, clauseToCheck, _box_0;
  70439. var $async$visitIfRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  70440. if ($async$errorCode === 1)
  70441. return A._asyncRethrow($async$result, $async$completer);
  70442. while (true)
  70443. switch ($async$goto) {
  70444. case 0:
  70445. // Function start
  70446. _box_0 = {};
  70447. _box_0.clause = node.lastClause;
  70448. t1 = node.clauses, t2 = t1.length, _i = 0;
  70449. case 3:
  70450. // for condition
  70451. if (!(_i < t2)) {
  70452. // goto after for
  70453. $async$goto = 5;
  70454. break;
  70455. }
  70456. clauseToCheck = t1[_i];
  70457. $async$goto = 6;
  70458. return A._asyncAwait(clauseToCheck.expression.accept$1($async$self), $async$visitIfRule$1);
  70459. case 6:
  70460. // returning from await.
  70461. if ($async$result.get$isTruthy()) {
  70462. _box_0.clause = clauseToCheck;
  70463. // goto after for
  70464. $async$goto = 5;
  70465. break;
  70466. }
  70467. case 4:
  70468. // for update
  70469. ++_i;
  70470. // goto for condition
  70471. $async$goto = 3;
  70472. break;
  70473. case 5:
  70474. // after for
  70475. t1 = _box_0.clause;
  70476. if (t1 == null) {
  70477. $async$returnValue = null;
  70478. // goto return
  70479. $async$goto = 1;
  70480. break;
  70481. }
  70482. $async$goto = 7;
  70483. return A._asyncAwait($async$self._async_evaluate0$_environment.scope$1$3$semiGlobal$when(new A._EvaluateVisitor_visitIfRule_closure2(_box_0, $async$self), true, t1.hasDeclarations, type$.nullable_Value_2), $async$visitIfRule$1);
  70484. case 7:
  70485. // returning from await.
  70486. $async$returnValue = $async$result;
  70487. // goto return
  70488. $async$goto = 1;
  70489. break;
  70490. case 1:
  70491. // return
  70492. return A._asyncReturn($async$returnValue, $async$completer);
  70493. }
  70494. });
  70495. return A._asyncStartSync($async$visitIfRule$1, $async$completer);
  70496. },
  70497. visitImportRule$1(node) {
  70498. return this.visitImportRule$body$_EvaluateVisitor0(node);
  70499. },
  70500. visitImportRule$body$_EvaluateVisitor0(node) {
  70501. var $async$goto = 0,
  70502. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
  70503. $async$returnValue, $async$self = this, t1, t2, t3, _i, $import;
  70504. var $async$visitImportRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  70505. if ($async$errorCode === 1)
  70506. return A._asyncRethrow($async$result, $async$completer);
  70507. while (true)
  70508. switch ($async$goto) {
  70509. case 0:
  70510. // Function start
  70511. t1 = node.imports, t2 = t1.length, t3 = type$.StaticImport_2, _i = 0;
  70512. case 3:
  70513. // for condition
  70514. if (!(_i < t2)) {
  70515. // goto after for
  70516. $async$goto = 5;
  70517. break;
  70518. }
  70519. $import = t1[_i];
  70520. $async$goto = $import instanceof A.DynamicImport0 ? 6 : 8;
  70521. break;
  70522. case 6:
  70523. // then
  70524. $async$goto = 9;
  70525. return A._asyncAwait($async$self._async_evaluate0$_visitDynamicImport$1($import), $async$visitImportRule$1);
  70526. case 9:
  70527. // returning from await.
  70528. // goto join
  70529. $async$goto = 7;
  70530. break;
  70531. case 8:
  70532. // else
  70533. $async$goto = 10;
  70534. return A._asyncAwait($async$self._async_evaluate0$_visitStaticImport$1(t3._as($import)), $async$visitImportRule$1);
  70535. case 10:
  70536. // returning from await.
  70537. case 7:
  70538. // join
  70539. case 4:
  70540. // for update
  70541. ++_i;
  70542. // goto for condition
  70543. $async$goto = 3;
  70544. break;
  70545. case 5:
  70546. // after for
  70547. $async$returnValue = null;
  70548. // goto return
  70549. $async$goto = 1;
  70550. break;
  70551. case 1:
  70552. // return
  70553. return A._asyncReturn($async$returnValue, $async$completer);
  70554. }
  70555. });
  70556. return A._asyncStartSync($async$visitImportRule$1, $async$completer);
  70557. },
  70558. _async_evaluate0$_visitDynamicImport$1($import) {
  70559. return this._async_evaluate0$_withStackFrame$1$3("@import", $import, new A._EvaluateVisitor__visitDynamicImport_closure2(this, $import), type$.void);
  70560. },
  70561. _async_evaluate0$_loadStylesheet$4$baseUrl$forImport(url, span, baseUrl, forImport) {
  70562. return this._loadStylesheet$body$_EvaluateVisitor0(url, span, baseUrl, forImport);
  70563. },
  70564. _async_evaluate0$_loadStylesheet$3$baseUrl(url, span, baseUrl) {
  70565. return this._async_evaluate0$_loadStylesheet$4$baseUrl$forImport(url, span, baseUrl, false);
  70566. },
  70567. _async_evaluate0$_loadStylesheet$3$forImport(url, span, forImport) {
  70568. return this._async_evaluate0$_loadStylesheet$4$baseUrl$forImport(url, span, null, forImport);
  70569. },
  70570. _loadStylesheet$body$_EvaluateVisitor0(url, span, baseUrl, forImport) {
  70571. var $async$goto = 0,
  70572. $async$completer = A._makeAsyncAwaitCompleter(type$._LoadedStylesheet_2),
  70573. $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, importCache, tuple, isDependency, stylesheet, result, error, stackTrace, error0, stackTrace0, error1, stackTrace1, message, t1, t2, t3, t4, exception, message0, $async$exception;
  70574. var $async$_async_evaluate0$_loadStylesheet$4$baseUrl$forImport = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  70575. if ($async$errorCode === 1) {
  70576. $async$currentError = $async$result;
  70577. $async$goto = $async$handler;
  70578. }
  70579. while (true)
  70580. switch ($async$goto) {
  70581. case 0:
  70582. // Function start
  70583. baseUrl = baseUrl;
  70584. $async$handler = 4;
  70585. $async$self._async_evaluate0$_importSpan = span;
  70586. importCache = $async$self._async_evaluate0$_importCache;
  70587. $async$goto = importCache != null ? 7 : 9;
  70588. break;
  70589. case 7:
  70590. // then
  70591. if (baseUrl == null)
  70592. baseUrl = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__stylesheet, "_stylesheet").span.file.url;
  70593. $async$goto = 10;
  70594. return A._asyncAwait(J.canonicalize$4$baseImporter$baseUrl$forImport$x(importCache, A.Uri_parse(url), $async$self._async_evaluate0$_importer, baseUrl, forImport), $async$_async_evaluate0$_loadStylesheet$4$baseUrl$forImport);
  70595. case 10:
  70596. // returning from await.
  70597. tuple = $async$result;
  70598. $async$goto = tuple != null ? 11 : 12;
  70599. break;
  70600. case 11:
  70601. // then
  70602. isDependency = $async$self._async_evaluate0$_inDependency || tuple.item1 !== $async$self._async_evaluate0$_importer;
  70603. t1 = tuple.item1;
  70604. t2 = tuple.item2;
  70605. t3 = tuple.item3;
  70606. t4 = $async$self._async_evaluate0$_quietDeps && isDependency;
  70607. $async$goto = 13;
  70608. return A._asyncAwait(importCache.importCanonical$4$originalUrl$quiet(t1, t2, t3, t4), $async$_async_evaluate0$_loadStylesheet$4$baseUrl$forImport);
  70609. case 13:
  70610. // returning from await.
  70611. stylesheet = $async$result;
  70612. if (stylesheet != null) {
  70613. $async$self._async_evaluate0$_loadedUrls.add$1(0, tuple.item2);
  70614. t1 = tuple.item1;
  70615. $async$returnValue = new A._LoadedStylesheet2(stylesheet, t1, isDependency);
  70616. $async$next = [1];
  70617. // goto finally
  70618. $async$goto = 5;
  70619. break;
  70620. }
  70621. case 12:
  70622. // join
  70623. // goto join
  70624. $async$goto = 8;
  70625. break;
  70626. case 9:
  70627. // else
  70628. t1 = baseUrl;
  70629. $async$goto = 14;
  70630. return A._asyncAwait($async$self._async_evaluate0$_importLikeNode$3(url, t1 == null ? $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__stylesheet, "_stylesheet").span.file.url : t1, forImport), $async$_async_evaluate0$_loadStylesheet$4$baseUrl$forImport);
  70631. case 14:
  70632. // returning from await.
  70633. result = $async$result;
  70634. if (result != null) {
  70635. t1 = $async$self._async_evaluate0$_loadedUrls;
  70636. A.NullableExtension_andThen0(result.stylesheet.span.file.url, t1.get$add(t1));
  70637. $async$returnValue = result;
  70638. $async$next = [1];
  70639. // goto finally
  70640. $async$goto = 5;
  70641. break;
  70642. }
  70643. case 8:
  70644. // join
  70645. if (B.JSString_methods.startsWith$1(url, "package:") && true)
  70646. throw A.wrapException(string$.x22packa);
  70647. else
  70648. throw A.wrapException("Can't find stylesheet to import.");
  70649. $async$next.push(6);
  70650. // goto finally
  70651. $async$goto = 5;
  70652. break;
  70653. case 4:
  70654. // catch
  70655. $async$handler = 3;
  70656. $async$exception = $async$currentError;
  70657. t1 = A.unwrapException($async$exception);
  70658. if (t1 instanceof A.SassException0) {
  70659. error = t1;
  70660. stackTrace = A.getTraceFromException($async$exception);
  70661. t1 = error;
  70662. t2 = J.getInterceptor$z(t1);
  70663. A.throwWithTrace0($async$self._async_evaluate0$_exception$2(error._span_exception$_message, A.SourceSpanException.prototype.get$span.call(t2, t1)), stackTrace);
  70664. } else if (t1 instanceof A.ArgumentError) {
  70665. error0 = t1;
  70666. stackTrace0 = A.getTraceFromException($async$exception);
  70667. A.throwWithTrace0($async$self._async_evaluate0$_exception$1(J.toString$0$(error0)), stackTrace0);
  70668. } else {
  70669. error1 = t1;
  70670. stackTrace1 = A.getTraceFromException($async$exception);
  70671. message = null;
  70672. try {
  70673. message = A._asString(J.get$message$x(error1));
  70674. } catch (exception) {
  70675. message0 = J.toString$0$(error1);
  70676. message = message0;
  70677. }
  70678. A.throwWithTrace0($async$self._async_evaluate0$_exception$1(message), stackTrace1);
  70679. }
  70680. $async$next.push(6);
  70681. // goto finally
  70682. $async$goto = 5;
  70683. break;
  70684. case 3:
  70685. // uncaught
  70686. $async$next = [2];
  70687. case 5:
  70688. // finally
  70689. $async$handler = 2;
  70690. $async$self._async_evaluate0$_importSpan = null;
  70691. // goto the next finally handler
  70692. $async$goto = $async$next.pop();
  70693. break;
  70694. case 6:
  70695. // after finally
  70696. case 1:
  70697. // return
  70698. return A._asyncReturn($async$returnValue, $async$completer);
  70699. case 2:
  70700. // rethrow
  70701. return A._asyncRethrow($async$currentError, $async$completer);
  70702. }
  70703. });
  70704. return A._asyncStartSync($async$_async_evaluate0$_loadStylesheet$4$baseUrl$forImport, $async$completer);
  70705. },
  70706. _async_evaluate0$_importLikeNode$3(originalUrl, previous, forImport) {
  70707. return this._importLikeNode$body$_EvaluateVisitor0(originalUrl, previous, forImport);
  70708. },
  70709. _importLikeNode$body$_EvaluateVisitor0(originalUrl, previous, forImport) {
  70710. var $async$goto = 0,
  70711. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable__LoadedStylesheet_2),
  70712. $async$returnValue, $async$self = this, isDependency, url, t2, t1, result;
  70713. var $async$_async_evaluate0$_importLikeNode$3 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  70714. if ($async$errorCode === 1)
  70715. return A._asyncRethrow($async$result, $async$completer);
  70716. while (true)
  70717. switch ($async$goto) {
  70718. case 0:
  70719. // Function start
  70720. t1 = $async$self._async_evaluate0$_nodeImporter;
  70721. result = t1.loadRelative$3(originalUrl, previous, forImport);
  70722. $async$goto = result != null ? 3 : 5;
  70723. break;
  70724. case 3:
  70725. // then
  70726. isDependency = $async$self._async_evaluate0$_inDependency;
  70727. // goto join
  70728. $async$goto = 4;
  70729. break;
  70730. case 5:
  70731. // else
  70732. $async$goto = 6;
  70733. return A._asyncAwait(t1.loadAsync$3(originalUrl, previous, forImport), $async$_async_evaluate0$_importLikeNode$3);
  70734. case 6:
  70735. // returning from await.
  70736. result = $async$result;
  70737. if (result == null) {
  70738. $async$returnValue = null;
  70739. // goto return
  70740. $async$goto = 1;
  70741. break;
  70742. }
  70743. isDependency = true;
  70744. case 4:
  70745. // join
  70746. url = result.item2;
  70747. t1 = B.JSString_methods.startsWith$1(url, "file") ? A.Syntax_forPath0(url) : B.Syntax_SCSS_scss0;
  70748. t2 = $async$self._async_evaluate0$_quietDeps && isDependency ? $.$get$Logger_quiet0() : $async$self._async_evaluate0$_logger;
  70749. $async$returnValue = new A._LoadedStylesheet2(A.Stylesheet_Stylesheet$parse0(result.item1, t1, t2, url), null, isDependency);
  70750. // goto return
  70751. $async$goto = 1;
  70752. break;
  70753. case 1:
  70754. // return
  70755. return A._asyncReturn($async$returnValue, $async$completer);
  70756. }
  70757. });
  70758. return A._asyncStartSync($async$_async_evaluate0$_importLikeNode$3, $async$completer);
  70759. },
  70760. _async_evaluate0$_visitStaticImport$1($import) {
  70761. return this._visitStaticImport$body$_EvaluateVisitor0($import);
  70762. },
  70763. _visitStaticImport$body$_EvaluateVisitor0($import) {
  70764. var $async$goto = 0,
  70765. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  70766. $async$self = this, t1, node, $async$temp1, $async$temp2;
  70767. var $async$_async_evaluate0$_visitStaticImport$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  70768. if ($async$errorCode === 1)
  70769. return A._asyncRethrow($async$result, $async$completer);
  70770. while (true)
  70771. switch ($async$goto) {
  70772. case 0:
  70773. // Function start
  70774. $async$temp1 = A;
  70775. $async$goto = 2;
  70776. return A._asyncAwait($async$self._async_evaluate0$_interpolationToValue$1($import.url), $async$_async_evaluate0$_visitStaticImport$1);
  70777. case 2:
  70778. // returning from await.
  70779. $async$temp2 = $async$result;
  70780. $async$goto = 3;
  70781. return A._asyncAwait(A.NullableExtension_andThen0($import.modifiers, $async$self.get$_async_evaluate0$_interpolationToValue()), $async$_async_evaluate0$_visitStaticImport$1);
  70782. case 3:
  70783. // returning from await.
  70784. node = new $async$temp1.ModifiableCssImport0($async$temp2, $async$result, $import.span);
  70785. if ($async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent") !== $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__root, "_root"))
  70786. $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent").addChild$1(node);
  70787. else if ($async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__endOfImports, "_endOfImports") === J.get$length$asx($async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__root, "_root").children._collection$_source)) {
  70788. $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__root, "_root").addChild$1(node);
  70789. $async$self._async_evaluate0$__endOfImports = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__endOfImports, "_endOfImports") + 1;
  70790. } else {
  70791. t1 = $async$self._async_evaluate0$_outOfOrderImports;
  70792. (t1 == null ? $async$self._async_evaluate0$_outOfOrderImports = A._setArrayType([], type$.JSArray_ModifiableCssImport_2) : t1).push(node);
  70793. }
  70794. // implicit return
  70795. return A._asyncReturn(null, $async$completer);
  70796. }
  70797. });
  70798. return A._asyncStartSync($async$_async_evaluate0$_visitStaticImport$1, $async$completer);
  70799. },
  70800. visitIncludeRule$1(node) {
  70801. return this.visitIncludeRule$body$_EvaluateVisitor0(node);
  70802. },
  70803. visitIncludeRule$body$_EvaluateVisitor0(node) {
  70804. var $async$goto = 0,
  70805. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
  70806. $async$returnValue, $async$self = this, nodeWithSpan, t1, mixin;
  70807. var $async$visitIncludeRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  70808. if ($async$errorCode === 1)
  70809. return A._asyncRethrow($async$result, $async$completer);
  70810. while (true)
  70811. switch ($async$goto) {
  70812. case 0:
  70813. // Function start
  70814. mixin = $async$self._async_evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitIncludeRule_closure11($async$self, node));
  70815. if (mixin == null)
  70816. throw A.wrapException($async$self._async_evaluate0$_exception$2("Undefined mixin.", node.span));
  70817. nodeWithSpan = new A._FakeAstNode0(new A._EvaluateVisitor_visitIncludeRule_closure12(node));
  70818. $async$goto = type$.AsyncBuiltInCallable_2._is(mixin) ? 3 : 5;
  70819. break;
  70820. case 3:
  70821. // then
  70822. if (node.content != null)
  70823. throw A.wrapException($async$self._async_evaluate0$_exception$2("Mixin doesn't accept a content block.", node.span));
  70824. $async$goto = 6;
  70825. return A._asyncAwait($async$self._async_evaluate0$_runBuiltInCallable$3(node.$arguments, mixin, nodeWithSpan), $async$visitIncludeRule$1);
  70826. case 6:
  70827. // returning from await.
  70828. // goto join
  70829. $async$goto = 4;
  70830. break;
  70831. case 5:
  70832. // else
  70833. $async$goto = type$.UserDefinedCallable_AsyncEnvironment_2._is(mixin) ? 7 : 9;
  70834. break;
  70835. case 7:
  70836. // then
  70837. t1 = node.content;
  70838. if (t1 != null && !type$.MixinRule_2._as(mixin.declaration).get$hasContent())
  70839. throw A.wrapException(A.MultiSpanSassRuntimeException$0("Mixin doesn't accept a content block.", node.get$spanWithoutContent(), "invocation", A.LinkedHashMap_LinkedHashMap$_literal([mixin.declaration.$arguments.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), $async$self._async_evaluate0$_stackTrace$1(node.get$spanWithoutContent())));
  70840. $async$goto = 10;
  70841. return A._asyncAwait($async$self._async_evaluate0$_runUserDefinedCallable$1$4(node.$arguments, mixin, nodeWithSpan, new A._EvaluateVisitor_visitIncludeRule_closure13($async$self, A.NullableExtension_andThen0(t1, new A._EvaluateVisitor_visitIncludeRule_closure14($async$self)), mixin, nodeWithSpan), type$.Null), $async$visitIncludeRule$1);
  70842. case 10:
  70843. // returning from await.
  70844. // goto join
  70845. $async$goto = 8;
  70846. break;
  70847. case 9:
  70848. // else
  70849. throw A.wrapException(A.UnsupportedError$("Unknown callable type " + mixin.toString$0(0) + "."));
  70850. case 8:
  70851. // join
  70852. case 4:
  70853. // join
  70854. $async$returnValue = null;
  70855. // goto return
  70856. $async$goto = 1;
  70857. break;
  70858. case 1:
  70859. // return
  70860. return A._asyncReturn($async$returnValue, $async$completer);
  70861. }
  70862. });
  70863. return A._asyncStartSync($async$visitIncludeRule$1, $async$completer);
  70864. },
  70865. visitMixinRule$1(node) {
  70866. return this.visitMixinRule$body$_EvaluateVisitor0(node);
  70867. },
  70868. visitMixinRule$body$_EvaluateVisitor0(node) {
  70869. var $async$goto = 0,
  70870. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
  70871. $async$returnValue, $async$self = this, t1, t2, t3, t4, index, t5;
  70872. var $async$visitMixinRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  70873. if ($async$errorCode === 1)
  70874. return A._asyncRethrow($async$result, $async$completer);
  70875. while (true)
  70876. switch ($async$goto) {
  70877. case 0:
  70878. // Function start
  70879. t1 = $async$self._async_evaluate0$_environment;
  70880. t2 = t1.closure$0();
  70881. t3 = $async$self._async_evaluate0$_inDependency;
  70882. t4 = t1._async_environment0$_mixins;
  70883. index = t4.length - 1;
  70884. t5 = node.name;
  70885. t1._async_environment0$_mixinIndices.$indexSet(0, t5, index);
  70886. J.$indexSet$ax(t4[index], t5, new A.UserDefinedCallable0(node, t2, t3, type$.UserDefinedCallable_AsyncEnvironment_2));
  70887. $async$returnValue = null;
  70888. // goto return
  70889. $async$goto = 1;
  70890. break;
  70891. case 1:
  70892. // return
  70893. return A._asyncReturn($async$returnValue, $async$completer);
  70894. }
  70895. });
  70896. return A._asyncStartSync($async$visitMixinRule$1, $async$completer);
  70897. },
  70898. visitLoudComment$1(node) {
  70899. return this.visitLoudComment$body$_EvaluateVisitor0(node);
  70900. },
  70901. visitLoudComment$body$_EvaluateVisitor0(node) {
  70902. var $async$goto = 0,
  70903. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
  70904. $async$returnValue, $async$self = this, t1, $async$temp1, $async$temp2;
  70905. var $async$visitLoudComment$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  70906. if ($async$errorCode === 1)
  70907. return A._asyncRethrow($async$result, $async$completer);
  70908. while (true)
  70909. switch ($async$goto) {
  70910. case 0:
  70911. // Function start
  70912. if ($async$self._async_evaluate0$_inFunction) {
  70913. $async$returnValue = null;
  70914. // goto return
  70915. $async$goto = 1;
  70916. break;
  70917. }
  70918. if ($async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent") === $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__root, "_root") && $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__endOfImports, "_endOfImports") === J.get$length$asx($async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__root, "_root").children._collection$_source))
  70919. $async$self._async_evaluate0$__endOfImports = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__endOfImports, "_endOfImports") + 1;
  70920. t1 = node.text;
  70921. $async$temp1 = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent");
  70922. $async$temp2 = A;
  70923. $async$goto = 3;
  70924. return A._asyncAwait($async$self._async_evaluate0$_performInterpolation$1(t1), $async$visitLoudComment$1);
  70925. case 3:
  70926. // returning from await.
  70927. $async$temp1.addChild$1(new $async$temp2.ModifiableCssComment0($async$result, t1.span));
  70928. $async$returnValue = null;
  70929. // goto return
  70930. $async$goto = 1;
  70931. break;
  70932. case 1:
  70933. // return
  70934. return A._asyncReturn($async$returnValue, $async$completer);
  70935. }
  70936. });
  70937. return A._asyncStartSync($async$visitLoudComment$1, $async$completer);
  70938. },
  70939. visitMediaRule$1(node) {
  70940. return this.visitMediaRule$body$_EvaluateVisitor0(node);
  70941. },
  70942. visitMediaRule$body$_EvaluateVisitor0(node) {
  70943. var $async$goto = 0,
  70944. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
  70945. $async$returnValue, $async$self = this, queries, mergedQueries, t1, mergedSources, t2, t3;
  70946. var $async$visitMediaRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  70947. if ($async$errorCode === 1)
  70948. return A._asyncRethrow($async$result, $async$completer);
  70949. while (true)
  70950. switch ($async$goto) {
  70951. case 0:
  70952. // Function start
  70953. if ($async$self._async_evaluate0$_declarationName != null)
  70954. throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.Media_, node.span));
  70955. $async$goto = 3;
  70956. return A._asyncAwait($async$self._async_evaluate0$_visitMediaQueries$1(node.query), $async$visitMediaRule$1);
  70957. case 3:
  70958. // returning from await.
  70959. queries = $async$result;
  70960. mergedQueries = A.NullableExtension_andThen0($async$self._async_evaluate0$_mediaQueries, new A._EvaluateVisitor_visitMediaRule_closure8($async$self, queries));
  70961. t1 = mergedQueries == null;
  70962. if (!t1 && J.get$isEmpty$asx(mergedQueries)) {
  70963. $async$returnValue = null;
  70964. // goto return
  70965. $async$goto = 1;
  70966. break;
  70967. }
  70968. if (t1)
  70969. mergedSources = B.Set_empty4;
  70970. else {
  70971. t2 = $async$self._async_evaluate0$_mediaQuerySources;
  70972. t2.toString;
  70973. t2 = A.LinkedHashSet_LinkedHashSet$of(t2, type$.CssMediaQuery_2);
  70974. t3 = $async$self._async_evaluate0$_mediaQueries;
  70975. t3.toString;
  70976. t2.addAll$1(0, t3);
  70977. t2.addAll$1(0, queries);
  70978. mergedSources = t2;
  70979. }
  70980. t1 = t1 ? queries : mergedQueries;
  70981. $async$goto = 4;
  70982. return A._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(A.ModifiableCssMediaRule$0(t1, node.span), new A._EvaluateVisitor_visitMediaRule_closure9($async$self, mergedQueries, queries, mergedSources, node), node.hasDeclarations, new A._EvaluateVisitor_visitMediaRule_closure10(mergedSources), type$.ModifiableCssMediaRule_2, type$.Null), $async$visitMediaRule$1);
  70983. case 4:
  70984. // returning from await.
  70985. $async$returnValue = null;
  70986. // goto return
  70987. $async$goto = 1;
  70988. break;
  70989. case 1:
  70990. // return
  70991. return A._asyncReturn($async$returnValue, $async$completer);
  70992. }
  70993. });
  70994. return A._asyncStartSync($async$visitMediaRule$1, $async$completer);
  70995. },
  70996. _async_evaluate0$_visitMediaQueries$1(interpolation) {
  70997. return this._visitMediaQueries$body$_EvaluateVisitor0(interpolation);
  70998. },
  70999. _visitMediaQueries$body$_EvaluateVisitor0(interpolation) {
  71000. var $async$goto = 0,
  71001. $async$completer = A._makeAsyncAwaitCompleter(type$.List_CssMediaQuery_2),
  71002. $async$returnValue, $async$self = this, $async$temp1, $async$temp2;
  71003. var $async$_async_evaluate0$_visitMediaQueries$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  71004. if ($async$errorCode === 1)
  71005. return A._asyncRethrow($async$result, $async$completer);
  71006. while (true)
  71007. switch ($async$goto) {
  71008. case 0:
  71009. // Function start
  71010. $async$temp1 = interpolation;
  71011. $async$temp2 = A;
  71012. $async$goto = 3;
  71013. return A._asyncAwait($async$self._async_evaluate0$_performInterpolation$2$warnForColor(interpolation, true), $async$_async_evaluate0$_visitMediaQueries$1);
  71014. case 3:
  71015. // returning from await.
  71016. $async$returnValue = $async$self._async_evaluate0$_adjustParseError$2($async$temp1, new $async$temp2._EvaluateVisitor__visitMediaQueries_closure2($async$self, $async$result));
  71017. // goto return
  71018. $async$goto = 1;
  71019. break;
  71020. case 1:
  71021. // return
  71022. return A._asyncReturn($async$returnValue, $async$completer);
  71023. }
  71024. });
  71025. return A._asyncStartSync($async$_async_evaluate0$_visitMediaQueries$1, $async$completer);
  71026. },
  71027. _async_evaluate0$_mergeMediaQueries$2(queries1, queries2) {
  71028. var t1, t2, t3, t4, t5, result,
  71029. queries = A._setArrayType([], type$.JSArray_CssMediaQuery_2);
  71030. for (t1 = J.get$iterator$ax(queries1), t2 = J.getInterceptor$ax(queries2), t3 = type$.MediaQuerySuccessfulMergeResult_2; t1.moveNext$0();) {
  71031. t4 = t1.get$current(t1);
  71032. for (t5 = t2.get$iterator(queries2); t5.moveNext$0();) {
  71033. result = t4.merge$1(t5.get$current(t5));
  71034. if (result === B._SingletonCssMediaQueryMergeResult_empty0)
  71035. continue;
  71036. if (result === B._SingletonCssMediaQueryMergeResult_unrepresentable0)
  71037. return null;
  71038. queries.push(t3._as(result).query);
  71039. }
  71040. }
  71041. return queries;
  71042. },
  71043. visitReturnRule$1(node) {
  71044. return this.visitReturnRule$body$_EvaluateVisitor0(node);
  71045. },
  71046. visitReturnRule$body$_EvaluateVisitor0(node) {
  71047. var $async$goto = 0,
  71048. $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
  71049. $async$returnValue, $async$self = this, t1;
  71050. var $async$visitReturnRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  71051. if ($async$errorCode === 1)
  71052. return A._asyncRethrow($async$result, $async$completer);
  71053. while (true)
  71054. switch ($async$goto) {
  71055. case 0:
  71056. // Function start
  71057. t1 = node.expression;
  71058. $async$goto = 3;
  71059. return A._asyncAwait(t1.accept$1($async$self), $async$visitReturnRule$1);
  71060. case 3:
  71061. // returning from await.
  71062. $async$returnValue = $async$self._async_evaluate0$_withoutSlash$2($async$result, t1);
  71063. // goto return
  71064. $async$goto = 1;
  71065. break;
  71066. case 1:
  71067. // return
  71068. return A._asyncReturn($async$returnValue, $async$completer);
  71069. }
  71070. });
  71071. return A._asyncStartSync($async$visitReturnRule$1, $async$completer);
  71072. },
  71073. visitSilentComment$1(node) {
  71074. return this.visitSilentComment$body$_EvaluateVisitor0(node);
  71075. },
  71076. visitSilentComment$body$_EvaluateVisitor0(node) {
  71077. var $async$goto = 0,
  71078. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
  71079. $async$returnValue;
  71080. var $async$visitSilentComment$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  71081. if ($async$errorCode === 1)
  71082. return A._asyncRethrow($async$result, $async$completer);
  71083. while (true)
  71084. switch ($async$goto) {
  71085. case 0:
  71086. // Function start
  71087. $async$returnValue = null;
  71088. // goto return
  71089. $async$goto = 1;
  71090. break;
  71091. case 1:
  71092. // return
  71093. return A._asyncReturn($async$returnValue, $async$completer);
  71094. }
  71095. });
  71096. return A._asyncStartSync($async$visitSilentComment$1, $async$completer);
  71097. },
  71098. visitStyleRule$1(node) {
  71099. return this.visitStyleRule$body$_EvaluateVisitor0(node);
  71100. },
  71101. visitStyleRule$body$_EvaluateVisitor0(node) {
  71102. var $async$goto = 0,
  71103. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
  71104. $async$returnValue, $async$self = this, t1, selectorText, rule, oldAtRootExcludingStyleRule, t2, t3, t4, t5, t6, _i, complex, visitor, t7, t8, t9, _box_0;
  71105. var $async$visitStyleRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  71106. if ($async$errorCode === 1)
  71107. return A._asyncRethrow($async$result, $async$completer);
  71108. while (true)
  71109. switch ($async$goto) {
  71110. case 0:
  71111. // Function start
  71112. _box_0 = {};
  71113. if ($async$self._async_evaluate0$_declarationName != null)
  71114. throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.Style_, node.span));
  71115. t1 = node.selector;
  71116. $async$goto = 3;
  71117. return A._asyncAwait($async$self._async_evaluate0$_interpolationToValue$3$trim$warnForColor(t1, true, true), $async$visitStyleRule$1);
  71118. case 3:
  71119. // returning from await.
  71120. selectorText = $async$result;
  71121. $async$goto = $async$self._async_evaluate0$_inKeyframes ? 4 : 5;
  71122. break;
  71123. case 4:
  71124. // then
  71125. $async$goto = 6;
  71126. return A._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(A.ModifiableCssKeyframeBlock$0(new A.CssValue0(A.List_List$unmodifiable($async$self._async_evaluate0$_adjustParseError$2(t1, new A._EvaluateVisitor_visitStyleRule_closure23($async$self, selectorText)), type$.String), t1.span, type$.CssValue_List_String_2), node.span), new A._EvaluateVisitor_visitStyleRule_closure24($async$self, node), node.hasDeclarations, new A._EvaluateVisitor_visitStyleRule_closure25(), type$.ModifiableCssKeyframeBlock_2, type$.Null), $async$visitStyleRule$1);
  71127. case 6:
  71128. // returning from await.
  71129. $async$returnValue = null;
  71130. // goto return
  71131. $async$goto = 1;
  71132. break;
  71133. case 5:
  71134. // join
  71135. _box_0.parsedSelector = $async$self._async_evaluate0$_adjustParseError$2(t1, new A._EvaluateVisitor_visitStyleRule_closure26($async$self, selectorText));
  71136. _box_0.parsedSelector = $async$self._async_evaluate0$_addExceptionSpan$2(t1, new A._EvaluateVisitor_visitStyleRule_closure27(_box_0, $async$self));
  71137. t1 = t1.span;
  71138. rule = A.ModifiableCssStyleRule$0($async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__extensionStore, "_extensionStore").addSelector$3(_box_0.parsedSelector, t1, $async$self._async_evaluate0$_mediaQueries), node.span, _box_0.parsedSelector);
  71139. oldAtRootExcludingStyleRule = $async$self._async_evaluate0$_atRootExcludingStyleRule;
  71140. $async$self._async_evaluate0$_atRootExcludingStyleRule = false;
  71141. $async$goto = 7;
  71142. return A._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(rule, new A._EvaluateVisitor_visitStyleRule_closure28($async$self, rule, node), node.hasDeclarations, new A._EvaluateVisitor_visitStyleRule_closure29(), type$.ModifiableCssStyleRule_2, type$.Null), $async$visitStyleRule$1);
  71143. case 7:
  71144. // returning from await.
  71145. $async$self._async_evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  71146. if (!rule.accept$1(B._IsInvisibleVisitor_false_false0))
  71147. for (t2 = _box_0.parsedSelector.components, t3 = t2.length, t4 = type$.SourceSpan, t5 = type$.String, t6 = rule.children, _i = 0; _i < t3; ++_i) {
  71148. complex = t2[_i];
  71149. if (!complex.accept$1(B._IsBogusVisitor_true0))
  71150. continue;
  71151. if (complex.accept$1(B.C__IsUselessVisitor0)) {
  71152. visitor = A._SerializeVisitor$0(null, true, null, true, false, null, true);
  71153. complex.accept$1(visitor);
  71154. $async$self._async_evaluate0$_warn$3$deprecation('The selector "' + B.JSString_methods.trim$0(visitor._serialize0$_buffer.toString$0(0)) + string$.x22x20is_ix20, t1, true);
  71155. } else if (complex.leadingCombinators.length !== 0) {
  71156. visitor = A._SerializeVisitor$0(null, true, null, true, false, null, true);
  71157. complex.accept$1(visitor);
  71158. $async$self._async_evaluate0$_warn$3$deprecation('The selector "' + B.JSString_methods.trim$0(visitor._serialize0$_buffer.toString$0(0)) + string$.x22x20is_ix0a, t1, true);
  71159. } else {
  71160. visitor = A._SerializeVisitor$0(null, true, null, true, false, null, true);
  71161. complex.accept$1(visitor);
  71162. t7 = B.JSString_methods.trim$0(visitor._serialize0$_buffer.toString$0(0));
  71163. t8 = complex.accept$1(B._IsBogusVisitor_false0) ? string$.x20It_wi : "";
  71164. if (t6.get$length(t6) === 0)
  71165. A.throwExpression(A.IterableElementError_noElement());
  71166. t9 = J.get$span$z(t6.$index(0, 0));
  71167. $async$self._async_evaluate0$_warn$3$deprecation('The selector "' + t7 + string$.x22x20is_o + t8 + string$.x0aThis_, new A.MultiSpan0(t1, "invalid selector", A.ConstantMap_ConstantMap$from(A.LinkedHashMap_LinkedHashMap$_literal([t9, "this is not a style rule" + (t6.every$1(t6, new A._EvaluateVisitor_visitStyleRule_closure30()) ? "\n(try converting to a //-style comment)" : "")], t4, t5), t4, t5)), true);
  71168. }
  71169. }
  71170. if (($async$self._async_evaluate0$_atRootExcludingStyleRule ? null : $async$self._async_evaluate0$_styleRuleIgnoringAtRoot) == null) {
  71171. t1 = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent").children;
  71172. t1 = !t1.get$isEmpty(t1);
  71173. } else
  71174. t1 = false;
  71175. if (t1) {
  71176. t1 = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent").children;
  71177. t1.get$last(t1).isGroupEnd = true;
  71178. }
  71179. $async$returnValue = null;
  71180. // goto return
  71181. $async$goto = 1;
  71182. break;
  71183. case 1:
  71184. // return
  71185. return A._asyncReturn($async$returnValue, $async$completer);
  71186. }
  71187. });
  71188. return A._asyncStartSync($async$visitStyleRule$1, $async$completer);
  71189. },
  71190. visitSupportsRule$1(node) {
  71191. return this.visitSupportsRule$body$_EvaluateVisitor0(node);
  71192. },
  71193. visitSupportsRule$body$_EvaluateVisitor0(node) {
  71194. var $async$goto = 0,
  71195. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
  71196. $async$returnValue, $async$self = this, t1, $async$temp1, $async$temp2;
  71197. var $async$visitSupportsRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  71198. if ($async$errorCode === 1)
  71199. return A._asyncRethrow($async$result, $async$completer);
  71200. while (true)
  71201. switch ($async$goto) {
  71202. case 0:
  71203. // Function start
  71204. if ($async$self._async_evaluate0$_declarationName != null)
  71205. throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.Suppor, node.span));
  71206. t1 = node.condition;
  71207. $async$temp1 = A;
  71208. $async$temp2 = A;
  71209. $async$goto = 4;
  71210. return A._asyncAwait($async$self._async_evaluate0$_visitSupportsCondition$1(t1), $async$visitSupportsRule$1);
  71211. case 4:
  71212. // returning from await.
  71213. $async$goto = 3;
  71214. return A._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through($async$temp1.ModifiableCssSupportsRule$0(new $async$temp2.CssValue0($async$result, t1.get$span(t1), type$.CssValue_String_2), node.span), new A._EvaluateVisitor_visitSupportsRule_closure5($async$self, node), node.hasDeclarations, new A._EvaluateVisitor_visitSupportsRule_closure6(), type$.ModifiableCssSupportsRule_2, type$.Null), $async$visitSupportsRule$1);
  71215. case 3:
  71216. // returning from await.
  71217. $async$returnValue = null;
  71218. // goto return
  71219. $async$goto = 1;
  71220. break;
  71221. case 1:
  71222. // return
  71223. return A._asyncReturn($async$returnValue, $async$completer);
  71224. }
  71225. });
  71226. return A._asyncStartSync($async$visitSupportsRule$1, $async$completer);
  71227. },
  71228. _async_evaluate0$_visitSupportsCondition$1(condition) {
  71229. return this._visitSupportsCondition$body$_EvaluateVisitor0(condition);
  71230. },
  71231. _visitSupportsCondition$body$_EvaluateVisitor0(condition) {
  71232. var $async$goto = 0,
  71233. $async$completer = A._makeAsyncAwaitCompleter(type$.String),
  71234. $async$returnValue, $async$self = this, t1, oldInSupportsDeclaration, t2, t3, $async$temp1, $async$temp2;
  71235. var $async$_async_evaluate0$_visitSupportsCondition$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  71236. if ($async$errorCode === 1)
  71237. return A._asyncRethrow($async$result, $async$completer);
  71238. while (true)
  71239. switch ($async$goto) {
  71240. case 0:
  71241. // Function start
  71242. $async$goto = condition instanceof A.SupportsOperation0 ? 3 : 5;
  71243. break;
  71244. case 3:
  71245. // then
  71246. t1 = condition.operator;
  71247. $async$temp1 = A;
  71248. $async$goto = 6;
  71249. return A._asyncAwait($async$self._async_evaluate0$_parenthesize$2(condition.left, t1), $async$_async_evaluate0$_visitSupportsCondition$1);
  71250. case 6:
  71251. // returning from await.
  71252. $async$temp1 = $async$temp1.S($async$result) + " " + t1 + " ";
  71253. $async$temp2 = A;
  71254. $async$goto = 7;
  71255. return A._asyncAwait($async$self._async_evaluate0$_parenthesize$2(condition.right, t1), $async$_async_evaluate0$_visitSupportsCondition$1);
  71256. case 7:
  71257. // returning from await.
  71258. $async$returnValue = $async$temp1 + $async$temp2.S($async$result);
  71259. // goto return
  71260. $async$goto = 1;
  71261. break;
  71262. // goto join
  71263. $async$goto = 4;
  71264. break;
  71265. case 5:
  71266. // else
  71267. $async$goto = condition instanceof A.SupportsNegation0 ? 8 : 10;
  71268. break;
  71269. case 8:
  71270. // then
  71271. $async$temp1 = A;
  71272. $async$goto = 11;
  71273. return A._asyncAwait($async$self._async_evaluate0$_parenthesize$1(condition.condition), $async$_async_evaluate0$_visitSupportsCondition$1);
  71274. case 11:
  71275. // returning from await.
  71276. $async$returnValue = "not " + $async$temp1.S($async$result);
  71277. // goto return
  71278. $async$goto = 1;
  71279. break;
  71280. // goto join
  71281. $async$goto = 9;
  71282. break;
  71283. case 10:
  71284. // else
  71285. $async$goto = condition instanceof A.SupportsInterpolation0 ? 12 : 14;
  71286. break;
  71287. case 12:
  71288. // then
  71289. $async$goto = 15;
  71290. return A._asyncAwait($async$self._async_evaluate0$_evaluateToCss$2$quote(condition.expression, false), $async$_async_evaluate0$_visitSupportsCondition$1);
  71291. case 15:
  71292. // returning from await.
  71293. $async$returnValue = $async$result;
  71294. // goto return
  71295. $async$goto = 1;
  71296. break;
  71297. // goto join
  71298. $async$goto = 13;
  71299. break;
  71300. case 14:
  71301. // else
  71302. $async$goto = condition instanceof A.SupportsDeclaration0 ? 16 : 18;
  71303. break;
  71304. case 16:
  71305. // then
  71306. oldInSupportsDeclaration = $async$self._async_evaluate0$_inSupportsDeclaration;
  71307. $async$self._async_evaluate0$_inSupportsDeclaration = true;
  71308. $async$temp1 = A;
  71309. $async$goto = 19;
  71310. return A._asyncAwait($async$self._async_evaluate0$_evaluateToCss$1(condition.name), $async$_async_evaluate0$_visitSupportsCondition$1);
  71311. case 19:
  71312. // returning from await.
  71313. t1 = $async$temp1.S($async$result);
  71314. t2 = condition.get$isCustomProperty() ? "" : " ";
  71315. $async$temp1 = A;
  71316. $async$goto = 20;
  71317. return A._asyncAwait($async$self._async_evaluate0$_evaluateToCss$1(condition.value), $async$_async_evaluate0$_visitSupportsCondition$1);
  71318. case 20:
  71319. // returning from await.
  71320. t3 = $async$temp1.S($async$result);
  71321. $async$self._async_evaluate0$_inSupportsDeclaration = oldInSupportsDeclaration;
  71322. $async$returnValue = "(" + t1 + ":" + t2 + t3 + ")";
  71323. // goto return
  71324. $async$goto = 1;
  71325. break;
  71326. // goto join
  71327. $async$goto = 17;
  71328. break;
  71329. case 18:
  71330. // else
  71331. $async$goto = condition instanceof A.SupportsFunction0 ? 21 : 23;
  71332. break;
  71333. case 21:
  71334. // then
  71335. $async$temp1 = A;
  71336. $async$goto = 24;
  71337. return A._asyncAwait($async$self._async_evaluate0$_performInterpolation$1(condition.name), $async$_async_evaluate0$_visitSupportsCondition$1);
  71338. case 24:
  71339. // returning from await.
  71340. $async$temp1 = $async$temp1.S($async$result) + "(";
  71341. $async$temp2 = A;
  71342. $async$goto = 25;
  71343. return A._asyncAwait($async$self._async_evaluate0$_performInterpolation$1(condition.$arguments), $async$_async_evaluate0$_visitSupportsCondition$1);
  71344. case 25:
  71345. // returning from await.
  71346. $async$returnValue = $async$temp1 + $async$temp2.S($async$result) + ")";
  71347. // goto return
  71348. $async$goto = 1;
  71349. break;
  71350. // goto join
  71351. $async$goto = 22;
  71352. break;
  71353. case 23:
  71354. // else
  71355. $async$goto = condition instanceof A.SupportsAnything0 ? 26 : 28;
  71356. break;
  71357. case 26:
  71358. // then
  71359. $async$temp1 = A;
  71360. $async$goto = 29;
  71361. return A._asyncAwait($async$self._async_evaluate0$_performInterpolation$1(condition.contents), $async$_async_evaluate0$_visitSupportsCondition$1);
  71362. case 29:
  71363. // returning from await.
  71364. $async$returnValue = "(" + $async$temp1.S($async$result) + ")";
  71365. // goto return
  71366. $async$goto = 1;
  71367. break;
  71368. // goto join
  71369. $async$goto = 27;
  71370. break;
  71371. case 28:
  71372. // else
  71373. throw A.wrapException(A.ArgumentError$("Unknown supports condition type " + A.getRuntimeType(condition).toString$0(0) + ".", null));
  71374. case 27:
  71375. // join
  71376. case 22:
  71377. // join
  71378. case 17:
  71379. // join
  71380. case 13:
  71381. // join
  71382. case 9:
  71383. // join
  71384. case 4:
  71385. // join
  71386. case 1:
  71387. // return
  71388. return A._asyncReturn($async$returnValue, $async$completer);
  71389. }
  71390. });
  71391. return A._asyncStartSync($async$_async_evaluate0$_visitSupportsCondition$1, $async$completer);
  71392. },
  71393. _async_evaluate0$_parenthesize$2(condition, operator) {
  71394. return this._parenthesize$body$_EvaluateVisitor0(condition, operator);
  71395. },
  71396. _async_evaluate0$_parenthesize$1(condition) {
  71397. return this._async_evaluate0$_parenthesize$2(condition, null);
  71398. },
  71399. _parenthesize$body$_EvaluateVisitor0(condition, operator) {
  71400. var $async$goto = 0,
  71401. $async$completer = A._makeAsyncAwaitCompleter(type$.String),
  71402. $async$returnValue, $async$self = this, t1, $async$temp1;
  71403. var $async$_async_evaluate0$_parenthesize$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  71404. if ($async$errorCode === 1)
  71405. return A._asyncRethrow($async$result, $async$completer);
  71406. while (true)
  71407. switch ($async$goto) {
  71408. case 0:
  71409. // Function start
  71410. if (!(condition instanceof A.SupportsNegation0))
  71411. if (condition instanceof A.SupportsOperation0)
  71412. t1 = operator == null || operator !== condition.operator;
  71413. else
  71414. t1 = false;
  71415. else
  71416. t1 = true;
  71417. $async$goto = t1 ? 3 : 5;
  71418. break;
  71419. case 3:
  71420. // then
  71421. $async$temp1 = A;
  71422. $async$goto = 6;
  71423. return A._asyncAwait($async$self._async_evaluate0$_visitSupportsCondition$1(condition), $async$_async_evaluate0$_parenthesize$2);
  71424. case 6:
  71425. // returning from await.
  71426. $async$returnValue = "(" + $async$temp1.S($async$result) + ")";
  71427. // goto return
  71428. $async$goto = 1;
  71429. break;
  71430. // goto join
  71431. $async$goto = 4;
  71432. break;
  71433. case 5:
  71434. // else
  71435. $async$goto = 7;
  71436. return A._asyncAwait($async$self._async_evaluate0$_visitSupportsCondition$1(condition), $async$_async_evaluate0$_parenthesize$2);
  71437. case 7:
  71438. // returning from await.
  71439. $async$returnValue = $async$result;
  71440. // goto return
  71441. $async$goto = 1;
  71442. break;
  71443. case 4:
  71444. // join
  71445. case 1:
  71446. // return
  71447. return A._asyncReturn($async$returnValue, $async$completer);
  71448. }
  71449. });
  71450. return A._asyncStartSync($async$_async_evaluate0$_parenthesize$2, $async$completer);
  71451. },
  71452. visitVariableDeclaration$1(node) {
  71453. return this.visitVariableDeclaration$body$_EvaluateVisitor0(node);
  71454. },
  71455. visitVariableDeclaration$body$_EvaluateVisitor0(node) {
  71456. var $async$goto = 0,
  71457. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
  71458. $async$returnValue, $async$self = this, t1, value, $async$temp1, $async$temp2, $async$temp3;
  71459. var $async$visitVariableDeclaration$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  71460. if ($async$errorCode === 1)
  71461. return A._asyncRethrow($async$result, $async$completer);
  71462. while (true)
  71463. switch ($async$goto) {
  71464. case 0:
  71465. // Function start
  71466. if (node.isGuarded) {
  71467. if (node.namespace == null && $async$self._async_evaluate0$_environment._async_environment0$_variables.length === 1) {
  71468. t1 = $async$self._async_evaluate0$_configuration._configuration$_values;
  71469. t1 = t1.get$isEmpty(t1) ? null : t1.remove$1(0, node.name);
  71470. if (t1 != null && !t1.value.$eq(0, B.C__SassNull0)) {
  71471. $async$self._async_evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableDeclaration_closure8($async$self, node, t1));
  71472. $async$returnValue = null;
  71473. // goto return
  71474. $async$goto = 1;
  71475. break;
  71476. }
  71477. }
  71478. value = $async$self._async_evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableDeclaration_closure9($async$self, node));
  71479. if (value != null && !value.$eq(0, B.C__SassNull0)) {
  71480. $async$returnValue = null;
  71481. // goto return
  71482. $async$goto = 1;
  71483. break;
  71484. }
  71485. }
  71486. if (node.isGlobal && !$async$self._async_evaluate0$_environment.globalVariableExists$1(node.name)) {
  71487. t1 = $async$self._async_evaluate0$_environment._async_environment0$_variables.length === 1 ? string$.As_of_S : string$.As_of_R + A.declarationName0(node.span) + ": null` at the stylesheet root.";
  71488. $async$self._async_evaluate0$_warn$3$deprecation(t1, node.span, true);
  71489. }
  71490. t1 = node.expression;
  71491. $async$temp1 = node;
  71492. $async$temp2 = A;
  71493. $async$temp3 = node;
  71494. $async$goto = 3;
  71495. return A._asyncAwait(t1.accept$1($async$self), $async$visitVariableDeclaration$1);
  71496. case 3:
  71497. // returning from await.
  71498. $async$self._async_evaluate0$_addExceptionSpan$2($async$temp1, new $async$temp2._EvaluateVisitor_visitVariableDeclaration_closure10($async$self, $async$temp3, $async$self._async_evaluate0$_withoutSlash$2($async$result, t1)));
  71499. $async$returnValue = null;
  71500. // goto return
  71501. $async$goto = 1;
  71502. break;
  71503. case 1:
  71504. // return
  71505. return A._asyncReturn($async$returnValue, $async$completer);
  71506. }
  71507. });
  71508. return A._asyncStartSync($async$visitVariableDeclaration$1, $async$completer);
  71509. },
  71510. visitUseRule$1(node) {
  71511. return this.visitUseRule$body$_EvaluateVisitor0(node);
  71512. },
  71513. visitUseRule$body$_EvaluateVisitor0(node) {
  71514. var $async$goto = 0,
  71515. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
  71516. $async$returnValue, $async$self = this, values, _i, variable, t3, variableNodeWithSpan, configuration, t1, t2, $async$temp1, $async$temp2, $async$temp3;
  71517. var $async$visitUseRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  71518. if ($async$errorCode === 1)
  71519. return A._asyncRethrow($async$result, $async$completer);
  71520. while (true)
  71521. switch ($async$goto) {
  71522. case 0:
  71523. // Function start
  71524. t1 = node.configuration;
  71525. t2 = t1.length;
  71526. $async$goto = t2 !== 0 ? 3 : 5;
  71527. break;
  71528. case 3:
  71529. // then
  71530. values = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.ConfiguredValue_2);
  71531. _i = 0;
  71532. case 6:
  71533. // for condition
  71534. if (!(_i < t2)) {
  71535. // goto after for
  71536. $async$goto = 8;
  71537. break;
  71538. }
  71539. variable = t1[_i];
  71540. t3 = variable.expression;
  71541. variableNodeWithSpan = $async$self._async_evaluate0$_expressionNode$1(t3);
  71542. $async$temp1 = values;
  71543. $async$temp2 = variable.name;
  71544. $async$temp3 = A;
  71545. $async$goto = 9;
  71546. return A._asyncAwait(t3.accept$1($async$self), $async$visitUseRule$1);
  71547. case 9:
  71548. // returning from await.
  71549. $async$temp1.$indexSet(0, $async$temp2, new $async$temp3.ConfiguredValue0($async$self._async_evaluate0$_withoutSlash$2($async$result, variableNodeWithSpan), variable.span, variableNodeWithSpan));
  71550. case 7:
  71551. // for update
  71552. ++_i;
  71553. // goto for condition
  71554. $async$goto = 6;
  71555. break;
  71556. case 8:
  71557. // after for
  71558. configuration = new A.ExplicitConfiguration0(node, values, null);
  71559. // goto join
  71560. $async$goto = 4;
  71561. break;
  71562. case 5:
  71563. // else
  71564. configuration = B.Configuration_Map_empty_null0;
  71565. case 4:
  71566. // join
  71567. $async$goto = 10;
  71568. return A._asyncAwait($async$self._async_evaluate0$_loadModule$5$configuration(node.url, "@use", node, new A._EvaluateVisitor_visitUseRule_closure2($async$self, node), configuration), $async$visitUseRule$1);
  71569. case 10:
  71570. // returning from await.
  71571. $async$self._async_evaluate0$_assertConfigurationIsEmpty$1(configuration);
  71572. $async$returnValue = null;
  71573. // goto return
  71574. $async$goto = 1;
  71575. break;
  71576. case 1:
  71577. // return
  71578. return A._asyncReturn($async$returnValue, $async$completer);
  71579. }
  71580. });
  71581. return A._asyncStartSync($async$visitUseRule$1, $async$completer);
  71582. },
  71583. visitWarnRule$1(node) {
  71584. return this.visitWarnRule$body$_EvaluateVisitor0(node);
  71585. },
  71586. visitWarnRule$body$_EvaluateVisitor0(node) {
  71587. var $async$goto = 0,
  71588. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
  71589. $async$returnValue, $async$self = this, value, t1;
  71590. var $async$visitWarnRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  71591. if ($async$errorCode === 1)
  71592. return A._asyncRethrow($async$result, $async$completer);
  71593. while (true)
  71594. switch ($async$goto) {
  71595. case 0:
  71596. // Function start
  71597. $async$goto = 3;
  71598. return A._asyncAwait($async$self._async_evaluate0$_addExceptionSpanAsync$1$2(node, new A._EvaluateVisitor_visitWarnRule_closure2($async$self, node), type$.Value_2), $async$visitWarnRule$1);
  71599. case 3:
  71600. // returning from await.
  71601. value = $async$result;
  71602. t1 = value instanceof A.SassString0 ? value._string0$_text : $async$self._async_evaluate0$_serialize$2(value, node.expression);
  71603. $async$self._async_evaluate0$_logger.warn$2$trace(0, t1, $async$self._async_evaluate0$_stackTrace$1(node.span));
  71604. $async$returnValue = null;
  71605. // goto return
  71606. $async$goto = 1;
  71607. break;
  71608. case 1:
  71609. // return
  71610. return A._asyncReturn($async$returnValue, $async$completer);
  71611. }
  71612. });
  71613. return A._asyncStartSync($async$visitWarnRule$1, $async$completer);
  71614. },
  71615. visitWhileRule$1(node) {
  71616. return this._async_evaluate0$_environment.scope$1$3$semiGlobal$when(new A._EvaluateVisitor_visitWhileRule_closure2(this, node), true, node.hasDeclarations, type$.nullable_Value_2);
  71617. },
  71618. visitBinaryOperationExpression$1(node) {
  71619. return this._async_evaluate0$_addExceptionSpanAsync$1$2(node, new A._EvaluateVisitor_visitBinaryOperationExpression_closure2(this, node), type$.Value_2);
  71620. },
  71621. visitValueExpression$1(node) {
  71622. return this.visitValueExpression$body$_EvaluateVisitor0(node);
  71623. },
  71624. visitValueExpression$body$_EvaluateVisitor0(node) {
  71625. var $async$goto = 0,
  71626. $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
  71627. $async$returnValue;
  71628. var $async$visitValueExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  71629. if ($async$errorCode === 1)
  71630. return A._asyncRethrow($async$result, $async$completer);
  71631. while (true)
  71632. switch ($async$goto) {
  71633. case 0:
  71634. // Function start
  71635. $async$returnValue = node.value;
  71636. // goto return
  71637. $async$goto = 1;
  71638. break;
  71639. case 1:
  71640. // return
  71641. return A._asyncReturn($async$returnValue, $async$completer);
  71642. }
  71643. });
  71644. return A._asyncStartSync($async$visitValueExpression$1, $async$completer);
  71645. },
  71646. visitVariableExpression$1(node) {
  71647. return this.visitVariableExpression$body$_EvaluateVisitor0(node);
  71648. },
  71649. visitVariableExpression$body$_EvaluateVisitor0(node) {
  71650. var $async$goto = 0,
  71651. $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
  71652. $async$returnValue, $async$self = this, result;
  71653. var $async$visitVariableExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  71654. if ($async$errorCode === 1)
  71655. return A._asyncRethrow($async$result, $async$completer);
  71656. while (true)
  71657. switch ($async$goto) {
  71658. case 0:
  71659. // Function start
  71660. result = $async$self._async_evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableExpression_closure2($async$self, node));
  71661. if (result != null) {
  71662. $async$returnValue = result;
  71663. // goto return
  71664. $async$goto = 1;
  71665. break;
  71666. }
  71667. throw A.wrapException($async$self._async_evaluate0$_exception$2("Undefined variable.", node.span));
  71668. case 1:
  71669. // return
  71670. return A._asyncReturn($async$returnValue, $async$completer);
  71671. }
  71672. });
  71673. return A._asyncStartSync($async$visitVariableExpression$1, $async$completer);
  71674. },
  71675. visitUnaryOperationExpression$1(node) {
  71676. return this.visitUnaryOperationExpression$body$_EvaluateVisitor0(node);
  71677. },
  71678. visitUnaryOperationExpression$body$_EvaluateVisitor0(node) {
  71679. var $async$goto = 0,
  71680. $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
  71681. $async$returnValue, $async$self = this, $async$temp1, $async$temp2, $async$temp3;
  71682. var $async$visitUnaryOperationExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  71683. if ($async$errorCode === 1)
  71684. return A._asyncRethrow($async$result, $async$completer);
  71685. while (true)
  71686. switch ($async$goto) {
  71687. case 0:
  71688. // Function start
  71689. $async$temp1 = node;
  71690. $async$temp2 = A;
  71691. $async$temp3 = node;
  71692. $async$goto = 3;
  71693. return A._asyncAwait(node.operand.accept$1($async$self), $async$visitUnaryOperationExpression$1);
  71694. case 3:
  71695. // returning from await.
  71696. $async$returnValue = $async$self._async_evaluate0$_addExceptionSpan$2($async$temp1, new $async$temp2._EvaluateVisitor_visitUnaryOperationExpression_closure2($async$temp3, $async$result));
  71697. // goto return
  71698. $async$goto = 1;
  71699. break;
  71700. case 1:
  71701. // return
  71702. return A._asyncReturn($async$returnValue, $async$completer);
  71703. }
  71704. });
  71705. return A._asyncStartSync($async$visitUnaryOperationExpression$1, $async$completer);
  71706. },
  71707. visitBooleanExpression$1(node) {
  71708. return this.visitBooleanExpression$body$_EvaluateVisitor0(node);
  71709. },
  71710. visitBooleanExpression$body$_EvaluateVisitor0(node) {
  71711. var $async$goto = 0,
  71712. $async$completer = A._makeAsyncAwaitCompleter(type$.SassBoolean_2),
  71713. $async$returnValue;
  71714. var $async$visitBooleanExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  71715. if ($async$errorCode === 1)
  71716. return A._asyncRethrow($async$result, $async$completer);
  71717. while (true)
  71718. switch ($async$goto) {
  71719. case 0:
  71720. // Function start
  71721. $async$returnValue = node.value ? B.SassBoolean_true0 : B.SassBoolean_false0;
  71722. // goto return
  71723. $async$goto = 1;
  71724. break;
  71725. case 1:
  71726. // return
  71727. return A._asyncReturn($async$returnValue, $async$completer);
  71728. }
  71729. });
  71730. return A._asyncStartSync($async$visitBooleanExpression$1, $async$completer);
  71731. },
  71732. visitIfExpression$1(node) {
  71733. return this.visitIfExpression$body$_EvaluateVisitor0(node);
  71734. },
  71735. visitIfExpression$body$_EvaluateVisitor0(node) {
  71736. var $async$goto = 0,
  71737. $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
  71738. $async$returnValue, $async$self = this, condition, t2, ifTrue, ifFalse, result, pair, positional, named, t1;
  71739. var $async$visitIfExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  71740. if ($async$errorCode === 1)
  71741. return A._asyncRethrow($async$result, $async$completer);
  71742. while (true)
  71743. switch ($async$goto) {
  71744. case 0:
  71745. // Function start
  71746. $async$goto = 3;
  71747. return A._asyncAwait($async$self._async_evaluate0$_evaluateMacroArguments$1(node), $async$visitIfExpression$1);
  71748. case 3:
  71749. // returning from await.
  71750. pair = $async$result;
  71751. positional = pair.item1;
  71752. named = pair.item2;
  71753. t1 = J.getInterceptor$asx(positional);
  71754. $async$self._async_evaluate0$_verifyArguments$4(t1.get$length(positional), named, $.$get$IfExpression_declaration0(), node);
  71755. if (t1.get$length(positional) > 0)
  71756. condition = t1.$index(positional, 0);
  71757. else {
  71758. t2 = named.$index(0, "condition");
  71759. t2.toString;
  71760. condition = t2;
  71761. }
  71762. if (t1.get$length(positional) > 1)
  71763. ifTrue = t1.$index(positional, 1);
  71764. else {
  71765. t2 = named.$index(0, "if-true");
  71766. t2.toString;
  71767. ifTrue = t2;
  71768. }
  71769. if (t1.get$length(positional) > 2)
  71770. ifFalse = t1.$index(positional, 2);
  71771. else {
  71772. t1 = named.$index(0, "if-false");
  71773. t1.toString;
  71774. ifFalse = t1;
  71775. }
  71776. $async$goto = 4;
  71777. return A._asyncAwait(condition.accept$1($async$self), $async$visitIfExpression$1);
  71778. case 4:
  71779. // returning from await.
  71780. result = $async$result.get$isTruthy() ? ifTrue : ifFalse;
  71781. $async$goto = 5;
  71782. return A._asyncAwait(result.accept$1($async$self), $async$visitIfExpression$1);
  71783. case 5:
  71784. // returning from await.
  71785. $async$returnValue = $async$self._async_evaluate0$_withoutSlash$2($async$result, $async$self._async_evaluate0$_expressionNode$1(result));
  71786. // goto return
  71787. $async$goto = 1;
  71788. break;
  71789. case 1:
  71790. // return
  71791. return A._asyncReturn($async$returnValue, $async$completer);
  71792. }
  71793. });
  71794. return A._asyncStartSync($async$visitIfExpression$1, $async$completer);
  71795. },
  71796. visitNullExpression$1(node) {
  71797. return this.visitNullExpression$body$_EvaluateVisitor0(node);
  71798. },
  71799. visitNullExpression$body$_EvaluateVisitor0(node) {
  71800. var $async$goto = 0,
  71801. $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
  71802. $async$returnValue;
  71803. var $async$visitNullExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  71804. if ($async$errorCode === 1)
  71805. return A._asyncRethrow($async$result, $async$completer);
  71806. while (true)
  71807. switch ($async$goto) {
  71808. case 0:
  71809. // Function start
  71810. $async$returnValue = B.C__SassNull0;
  71811. // goto return
  71812. $async$goto = 1;
  71813. break;
  71814. case 1:
  71815. // return
  71816. return A._asyncReturn($async$returnValue, $async$completer);
  71817. }
  71818. });
  71819. return A._asyncStartSync($async$visitNullExpression$1, $async$completer);
  71820. },
  71821. visitNumberExpression$1(node) {
  71822. return this.visitNumberExpression$body$_EvaluateVisitor0(node);
  71823. },
  71824. visitNumberExpression$body$_EvaluateVisitor0(node) {
  71825. var $async$goto = 0,
  71826. $async$completer = A._makeAsyncAwaitCompleter(type$.SassNumber_2),
  71827. $async$returnValue;
  71828. var $async$visitNumberExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  71829. if ($async$errorCode === 1)
  71830. return A._asyncRethrow($async$result, $async$completer);
  71831. while (true)
  71832. switch ($async$goto) {
  71833. case 0:
  71834. // Function start
  71835. $async$returnValue = A.SassNumber_SassNumber0(node.value, node.unit);
  71836. // goto return
  71837. $async$goto = 1;
  71838. break;
  71839. case 1:
  71840. // return
  71841. return A._asyncReturn($async$returnValue, $async$completer);
  71842. }
  71843. });
  71844. return A._asyncStartSync($async$visitNumberExpression$1, $async$completer);
  71845. },
  71846. visitParenthesizedExpression$1(node) {
  71847. return node.expression.accept$1(this);
  71848. },
  71849. visitCalculationExpression$1(node) {
  71850. return this.visitCalculationExpression$body$_EvaluateVisitor0(node);
  71851. },
  71852. visitCalculationExpression$body$_EvaluateVisitor0(node) {
  71853. var $async$goto = 0,
  71854. $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
  71855. $async$returnValue, $async$self = this, $arguments, error, stackTrace, t2, t3, t4, t5, t6, _i, argument, exception, t1, $async$temp1;
  71856. var $async$visitCalculationExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  71857. if ($async$errorCode === 1)
  71858. return A._asyncRethrow($async$result, $async$completer);
  71859. while (true)
  71860. $async$outer:
  71861. switch ($async$goto) {
  71862. case 0:
  71863. // Function start
  71864. t1 = A._setArrayType([], type$.JSArray_Object);
  71865. t2 = node.$arguments, t3 = t2.length, t4 = node.name, t5 = t4 !== "min", t6 = t4 === "max", _i = 0;
  71866. case 3:
  71867. // for condition
  71868. if (!(_i < t3)) {
  71869. // goto after for
  71870. $async$goto = 5;
  71871. break;
  71872. }
  71873. argument = t2[_i];
  71874. $async$temp1 = t1;
  71875. $async$goto = 6;
  71876. return A._asyncAwait($async$self._async_evaluate0$_visitCalculationValue$2$inMinMax(argument, !t5 || t6), $async$visitCalculationExpression$1);
  71877. case 6:
  71878. // returning from await.
  71879. $async$temp1.push($async$result);
  71880. case 4:
  71881. // for update
  71882. ++_i;
  71883. // goto for condition
  71884. $async$goto = 3;
  71885. break;
  71886. case 5:
  71887. // after for
  71888. $arguments = t1;
  71889. if ($async$self._async_evaluate0$_inSupportsDeclaration) {
  71890. $async$returnValue = new A.SassCalculation0(t4, A.List_List$unmodifiable($arguments, type$.Object));
  71891. // goto return
  71892. $async$goto = 1;
  71893. break;
  71894. }
  71895. try {
  71896. switch (t4) {
  71897. case "calc":
  71898. t1 = A.SassCalculation_calc0(J.$index$asx($arguments, 0));
  71899. $async$returnValue = t1;
  71900. // goto return
  71901. $async$goto = 1;
  71902. break $async$outer;
  71903. case "min":
  71904. t1 = A.SassCalculation_min0($arguments);
  71905. $async$returnValue = t1;
  71906. // goto return
  71907. $async$goto = 1;
  71908. break $async$outer;
  71909. case "max":
  71910. t1 = A.SassCalculation_max0($arguments);
  71911. $async$returnValue = t1;
  71912. // goto return
  71913. $async$goto = 1;
  71914. break $async$outer;
  71915. case "clamp":
  71916. t1 = J.$index$asx($arguments, 0);
  71917. t3 = J.get$length$asx($arguments) > 1 ? J.$index$asx($arguments, 1) : null;
  71918. t1 = A.SassCalculation_clamp0(t1, t3, J.get$length$asx($arguments) > 2 ? J.$index$asx($arguments, 2) : null);
  71919. $async$returnValue = t1;
  71920. // goto return
  71921. $async$goto = 1;
  71922. break $async$outer;
  71923. default:
  71924. t1 = A.UnsupportedError$('Unknown calculation name "' + t4 + '".');
  71925. throw A.wrapException(t1);
  71926. }
  71927. } catch (exception) {
  71928. t1 = A.unwrapException(exception);
  71929. if (t1 instanceof A.SassScriptException0) {
  71930. error = t1;
  71931. stackTrace = A.getTraceFromException(exception);
  71932. $async$self._async_evaluate0$_verifyCompatibleNumbers$2($arguments, t2);
  71933. A.throwWithTrace0($async$self._async_evaluate0$_exception$2(error.message, node.span), stackTrace);
  71934. } else
  71935. throw exception;
  71936. }
  71937. case 1:
  71938. // return
  71939. return A._asyncReturn($async$returnValue, $async$completer);
  71940. }
  71941. });
  71942. return A._asyncStartSync($async$visitCalculationExpression$1, $async$completer);
  71943. },
  71944. _async_evaluate0$_verifyCompatibleNumbers$2(args, nodesWithSpans) {
  71945. var i, t1, arg, number1, j, number2;
  71946. for (i = 0; t1 = args.length, i < t1; ++i) {
  71947. arg = args[i];
  71948. if (!(arg instanceof A.SassNumber0))
  71949. continue;
  71950. if (arg.get$numeratorUnits(arg).length > 1 || arg.get$denominatorUnits(arg).length !== 0)
  71951. throw A.wrapException(this._async_evaluate0$_exception$2("Number " + arg.toString$0(0) + " isn't compatible with CSS calculations.", J.get$span$z(nodesWithSpans[i])));
  71952. }
  71953. for (i = 0; i < t1 - 1; ++i) {
  71954. number1 = args[i];
  71955. if (!(number1 instanceof A.SassNumber0))
  71956. continue;
  71957. for (j = i + 1; t1 = args.length, j < t1; ++j) {
  71958. number2 = args[j];
  71959. if (!(number2 instanceof A.SassNumber0))
  71960. continue;
  71961. if (number1.hasPossiblyCompatibleUnits$1(number2))
  71962. continue;
  71963. throw A.wrapException(A.MultiSpanSassRuntimeException$0(number1.toString$0(0) + " and " + number2.toString$0(0) + " are incompatible.", J.get$span$z(nodesWithSpans[i]), number1.toString$0(0), A.LinkedHashMap_LinkedHashMap$_literal([J.get$span$z(nodesWithSpans[j]), number2.toString$0(0)], type$.FileSpan, type$.String), this._async_evaluate0$_stackTrace$1(J.get$span$z(nodesWithSpans[i]))));
  71964. }
  71965. }
  71966. },
  71967. _async_evaluate0$_visitCalculationValue$2$inMinMax(node, inMinMax) {
  71968. return this._visitCalculationValue$body$_EvaluateVisitor0(node, inMinMax);
  71969. },
  71970. _visitCalculationValue$body$_EvaluateVisitor0(node, inMinMax) {
  71971. var $async$goto = 0,
  71972. $async$completer = A._makeAsyncAwaitCompleter(type$.Object),
  71973. $async$returnValue, $async$self = this, inner, result, t1, $async$temp1;
  71974. var $async$_async_evaluate0$_visitCalculationValue$2$inMinMax = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  71975. if ($async$errorCode === 1)
  71976. return A._asyncRethrow($async$result, $async$completer);
  71977. while (true)
  71978. switch ($async$goto) {
  71979. case 0:
  71980. // Function start
  71981. $async$goto = node instanceof A.ParenthesizedExpression0 ? 3 : 5;
  71982. break;
  71983. case 3:
  71984. // then
  71985. inner = node.expression;
  71986. $async$goto = 6;
  71987. return A._asyncAwait($async$self._async_evaluate0$_visitCalculationValue$2$inMinMax(inner, inMinMax), $async$_async_evaluate0$_visitCalculationValue$2$inMinMax);
  71988. case 6:
  71989. // returning from await.
  71990. result = $async$result;
  71991. if (inner instanceof A.FunctionExpression0)
  71992. t1 = A.stringReplaceAllUnchecked(inner.originalName, "_", "-").toLowerCase() === "var" && result instanceof A.SassString0 && !result._string0$_hasQuotes;
  71993. else
  71994. t1 = false;
  71995. $async$returnValue = t1 ? new A.SassString0("(" + result._string0$_text + ")", false) : result;
  71996. // goto return
  71997. $async$goto = 1;
  71998. break;
  71999. // goto join
  72000. $async$goto = 4;
  72001. break;
  72002. case 5:
  72003. // else
  72004. $async$goto = node instanceof A.StringExpression0 ? 7 : 9;
  72005. break;
  72006. case 7:
  72007. // then
  72008. $async$temp1 = A;
  72009. $async$goto = 10;
  72010. return A._asyncAwait($async$self._async_evaluate0$_performInterpolation$1(node.text), $async$_async_evaluate0$_visitCalculationValue$2$inMinMax);
  72011. case 10:
  72012. // returning from await.
  72013. $async$returnValue = new $async$temp1.CalculationInterpolation0($async$result);
  72014. // goto return
  72015. $async$goto = 1;
  72016. break;
  72017. // goto join
  72018. $async$goto = 8;
  72019. break;
  72020. case 9:
  72021. // else
  72022. $async$goto = node instanceof A.BinaryOperationExpression0 ? 11 : 13;
  72023. break;
  72024. case 11:
  72025. // then
  72026. $async$goto = 14;
  72027. return A._asyncAwait($async$self._async_evaluate0$_addExceptionSpanAsync$1$2(node, new A._EvaluateVisitor__visitCalculationValue_closure2($async$self, node, inMinMax), type$.Object), $async$_async_evaluate0$_visitCalculationValue$2$inMinMax);
  72028. case 14:
  72029. // returning from await.
  72030. $async$returnValue = $async$result;
  72031. // goto return
  72032. $async$goto = 1;
  72033. break;
  72034. // goto join
  72035. $async$goto = 12;
  72036. break;
  72037. case 13:
  72038. // else
  72039. $async$goto = 15;
  72040. return A._asyncAwait(node.accept$1($async$self), $async$_async_evaluate0$_visitCalculationValue$2$inMinMax);
  72041. case 15:
  72042. // returning from await.
  72043. result = $async$result;
  72044. if (result instanceof A.SassNumber0 || result instanceof A.SassCalculation0) {
  72045. $async$returnValue = result;
  72046. // goto return
  72047. $async$goto = 1;
  72048. break;
  72049. }
  72050. if (result instanceof A.SassString0 && !result._string0$_hasQuotes) {
  72051. $async$returnValue = result;
  72052. // goto return
  72053. $async$goto = 1;
  72054. break;
  72055. }
  72056. throw A.wrapException($async$self._async_evaluate0$_exception$2("Value " + result.toString$0(0) + " can't be used in a calculation.", node.get$span(node)));
  72057. case 12:
  72058. // join
  72059. case 8:
  72060. // join
  72061. case 4:
  72062. // join
  72063. case 1:
  72064. // return
  72065. return A._asyncReturn($async$returnValue, $async$completer);
  72066. }
  72067. });
  72068. return A._asyncStartSync($async$_async_evaluate0$_visitCalculationValue$2$inMinMax, $async$completer);
  72069. },
  72070. _async_evaluate0$_binaryOperatorToCalculationOperator$1(operator) {
  72071. switch (operator) {
  72072. case B.BinaryOperator_qbf0:
  72073. return B.CalculationOperator_IyK0;
  72074. case B.BinaryOperator_KlB0:
  72075. return B.CalculationOperator_2bx0;
  72076. case B.BinaryOperator_6pl0:
  72077. return B.CalculationOperator_jFr0;
  72078. case B.BinaryOperator_qpm0:
  72079. return B.CalculationOperator_OvN0;
  72080. default:
  72081. throw A.wrapException(A.UnsupportedError$("Invalid calculation operator " + operator.toString$0(0) + "."));
  72082. }
  72083. },
  72084. visitColorExpression$1(node) {
  72085. return this.visitColorExpression$body$_EvaluateVisitor0(node);
  72086. },
  72087. visitColorExpression$body$_EvaluateVisitor0(node) {
  72088. var $async$goto = 0,
  72089. $async$completer = A._makeAsyncAwaitCompleter(type$.SassColor_2),
  72090. $async$returnValue;
  72091. var $async$visitColorExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  72092. if ($async$errorCode === 1)
  72093. return A._asyncRethrow($async$result, $async$completer);
  72094. while (true)
  72095. switch ($async$goto) {
  72096. case 0:
  72097. // Function start
  72098. $async$returnValue = node.value;
  72099. // goto return
  72100. $async$goto = 1;
  72101. break;
  72102. case 1:
  72103. // return
  72104. return A._asyncReturn($async$returnValue, $async$completer);
  72105. }
  72106. });
  72107. return A._asyncStartSync($async$visitColorExpression$1, $async$completer);
  72108. },
  72109. visitListExpression$1(node) {
  72110. return this.visitListExpression$body$_EvaluateVisitor0(node);
  72111. },
  72112. visitListExpression$body$_EvaluateVisitor0(node) {
  72113. var $async$goto = 0,
  72114. $async$completer = A._makeAsyncAwaitCompleter(type$.SassList_2),
  72115. $async$returnValue, $async$self = this, $async$temp1;
  72116. var $async$visitListExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  72117. if ($async$errorCode === 1)
  72118. return A._asyncRethrow($async$result, $async$completer);
  72119. while (true)
  72120. switch ($async$goto) {
  72121. case 0:
  72122. // Function start
  72123. $async$temp1 = A;
  72124. $async$goto = 3;
  72125. return A._asyncAwait(A.mapAsync0(node.contents, new A._EvaluateVisitor_visitListExpression_closure2($async$self), type$.Expression_2, type$.Value_2), $async$visitListExpression$1);
  72126. case 3:
  72127. // returning from await.
  72128. $async$returnValue = $async$temp1.SassList$0($async$result, node.separator, node.hasBrackets);
  72129. // goto return
  72130. $async$goto = 1;
  72131. break;
  72132. case 1:
  72133. // return
  72134. return A._asyncReturn($async$returnValue, $async$completer);
  72135. }
  72136. });
  72137. return A._asyncStartSync($async$visitListExpression$1, $async$completer);
  72138. },
  72139. visitMapExpression$1(node) {
  72140. return this.visitMapExpression$body$_EvaluateVisitor0(node);
  72141. },
  72142. visitMapExpression$body$_EvaluateVisitor0(node) {
  72143. var $async$goto = 0,
  72144. $async$completer = A._makeAsyncAwaitCompleter(type$.SassMap_2),
  72145. $async$returnValue, $async$self = this, t2, t3, _i, pair, t4, keyValue, valueValue, oldValueSpan, t1, map, keyNodes;
  72146. var $async$visitMapExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  72147. if ($async$errorCode === 1)
  72148. return A._asyncRethrow($async$result, $async$completer);
  72149. while (true)
  72150. switch ($async$goto) {
  72151. case 0:
  72152. // Function start
  72153. t1 = type$.Value_2;
  72154. map = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  72155. keyNodes = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.AstNode_2);
  72156. t2 = node.pairs, t3 = t2.length, _i = 0;
  72157. case 3:
  72158. // for condition
  72159. if (!(_i < t3)) {
  72160. // goto after for
  72161. $async$goto = 5;
  72162. break;
  72163. }
  72164. pair = t2[_i];
  72165. t4 = pair.item1;
  72166. $async$goto = 6;
  72167. return A._asyncAwait(t4.accept$1($async$self), $async$visitMapExpression$1);
  72168. case 6:
  72169. // returning from await.
  72170. keyValue = $async$result;
  72171. $async$goto = 7;
  72172. return A._asyncAwait(pair.item2.accept$1($async$self), $async$visitMapExpression$1);
  72173. case 7:
  72174. // returning from await.
  72175. valueValue = $async$result;
  72176. if (map.$index(0, keyValue) != null) {
  72177. t1 = keyNodes.$index(0, keyValue);
  72178. oldValueSpan = t1 == null ? null : t1.get$span(t1);
  72179. t1 = J.getInterceptor$z(t4);
  72180. t2 = t1.get$span(t4);
  72181. t3 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
  72182. if (oldValueSpan != null)
  72183. t3.$indexSet(0, oldValueSpan, "first key");
  72184. throw A.wrapException(A.MultiSpanSassRuntimeException$0("Duplicate key.", t2, "second key", t3, $async$self._async_evaluate0$_stackTrace$1(t1.get$span(t4))));
  72185. }
  72186. map.$indexSet(0, keyValue, valueValue);
  72187. keyNodes.$indexSet(0, keyValue, t4);
  72188. case 4:
  72189. // for update
  72190. ++_i;
  72191. // goto for condition
  72192. $async$goto = 3;
  72193. break;
  72194. case 5:
  72195. // after for
  72196. $async$returnValue = new A.SassMap0(A.ConstantMap_ConstantMap$from(map, t1, t1));
  72197. // goto return
  72198. $async$goto = 1;
  72199. break;
  72200. case 1:
  72201. // return
  72202. return A._asyncReturn($async$returnValue, $async$completer);
  72203. }
  72204. });
  72205. return A._asyncStartSync($async$visitMapExpression$1, $async$completer);
  72206. },
  72207. visitFunctionExpression$1(node) {
  72208. return this.visitFunctionExpression$body$_EvaluateVisitor0(node);
  72209. },
  72210. visitFunctionExpression$body$_EvaluateVisitor0(node) {
  72211. var $async$goto = 0,
  72212. $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
  72213. $async$returnValue, $async$self = this, oldInFunction, result, t1, $function;
  72214. var $async$visitFunctionExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  72215. if ($async$errorCode === 1)
  72216. return A._asyncRethrow($async$result, $async$completer);
  72217. while (true)
  72218. switch ($async$goto) {
  72219. case 0:
  72220. // Function start
  72221. t1 = {};
  72222. $function = $async$self._async_evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitFunctionExpression_closure5($async$self, node));
  72223. t1.$function = $function;
  72224. if ($function == null) {
  72225. if (node.namespace != null)
  72226. throw A.wrapException($async$self._async_evaluate0$_exception$2("Undefined function.", node.span));
  72227. t1.$function = new A.PlainCssCallable0(node.originalName);
  72228. }
  72229. oldInFunction = $async$self._async_evaluate0$_inFunction;
  72230. $async$self._async_evaluate0$_inFunction = true;
  72231. $async$goto = 3;
  72232. return A._asyncAwait($async$self._async_evaluate0$_addErrorSpan$1$2(node, new A._EvaluateVisitor_visitFunctionExpression_closure6(t1, $async$self, node), type$.Value_2), $async$visitFunctionExpression$1);
  72233. case 3:
  72234. // returning from await.
  72235. result = $async$result;
  72236. $async$self._async_evaluate0$_inFunction = oldInFunction;
  72237. $async$returnValue = result;
  72238. // goto return
  72239. $async$goto = 1;
  72240. break;
  72241. case 1:
  72242. // return
  72243. return A._asyncReturn($async$returnValue, $async$completer);
  72244. }
  72245. });
  72246. return A._asyncStartSync($async$visitFunctionExpression$1, $async$completer);
  72247. },
  72248. visitInterpolatedFunctionExpression$1(node) {
  72249. return this.visitInterpolatedFunctionExpression$body$_EvaluateVisitor0(node);
  72250. },
  72251. visitInterpolatedFunctionExpression$body$_EvaluateVisitor0(node) {
  72252. var $async$goto = 0,
  72253. $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
  72254. $async$returnValue, $async$self = this, result, t1, oldInFunction;
  72255. var $async$visitInterpolatedFunctionExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  72256. if ($async$errorCode === 1)
  72257. return A._asyncRethrow($async$result, $async$completer);
  72258. while (true)
  72259. switch ($async$goto) {
  72260. case 0:
  72261. // Function start
  72262. $async$goto = 3;
  72263. return A._asyncAwait($async$self._async_evaluate0$_performInterpolation$1(node.name), $async$visitInterpolatedFunctionExpression$1);
  72264. case 3:
  72265. // returning from await.
  72266. t1 = $async$result;
  72267. oldInFunction = $async$self._async_evaluate0$_inFunction;
  72268. $async$self._async_evaluate0$_inFunction = true;
  72269. $async$goto = 4;
  72270. return A._asyncAwait($async$self._async_evaluate0$_addErrorSpan$1$2(node, new A._EvaluateVisitor_visitInterpolatedFunctionExpression_closure2($async$self, node, new A.PlainCssCallable0(t1)), type$.Value_2), $async$visitInterpolatedFunctionExpression$1);
  72271. case 4:
  72272. // returning from await.
  72273. result = $async$result;
  72274. $async$self._async_evaluate0$_inFunction = oldInFunction;
  72275. $async$returnValue = result;
  72276. // goto return
  72277. $async$goto = 1;
  72278. break;
  72279. case 1:
  72280. // return
  72281. return A._asyncReturn($async$returnValue, $async$completer);
  72282. }
  72283. });
  72284. return A._asyncStartSync($async$visitInterpolatedFunctionExpression$1, $async$completer);
  72285. },
  72286. _async_evaluate0$_getFunction$2$namespace($name, namespace) {
  72287. var local = this._async_evaluate0$_environment.getFunction$2$namespace($name, namespace);
  72288. if (local != null || namespace != null)
  72289. return local;
  72290. return this._async_evaluate0$_builtInFunctions.$index(0, $name);
  72291. },
  72292. _async_evaluate0$_runUserDefinedCallable$1$4($arguments, callable, nodeWithSpan, run, $V) {
  72293. return this._runUserDefinedCallable$body$_EvaluateVisitor0($arguments, callable, nodeWithSpan, run, $V, $V);
  72294. },
  72295. _runUserDefinedCallable$body$_EvaluateVisitor0($arguments, callable, nodeWithSpan, run, $V, $async$type) {
  72296. var $async$goto = 0,
  72297. $async$completer = A._makeAsyncAwaitCompleter($async$type),
  72298. $async$returnValue, $async$self = this, oldCallable, result, evaluated, $name;
  72299. var $async$_async_evaluate0$_runUserDefinedCallable$1$4 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  72300. if ($async$errorCode === 1)
  72301. return A._asyncRethrow($async$result, $async$completer);
  72302. while (true)
  72303. switch ($async$goto) {
  72304. case 0:
  72305. // Function start
  72306. $async$goto = 3;
  72307. return A._asyncAwait($async$self._async_evaluate0$_evaluateArguments$1($arguments), $async$_async_evaluate0$_runUserDefinedCallable$1$4);
  72308. case 3:
  72309. // returning from await.
  72310. evaluated = $async$result;
  72311. $name = callable.declaration.name;
  72312. if ($name !== "@content")
  72313. $name += "()";
  72314. oldCallable = $async$self._async_evaluate0$_currentCallable;
  72315. $async$self._async_evaluate0$_currentCallable = callable;
  72316. $async$goto = 4;
  72317. return A._asyncAwait($async$self._async_evaluate0$_withStackFrame$1$3($name, nodeWithSpan, new A._EvaluateVisitor__runUserDefinedCallable_closure2($async$self, callable, evaluated, nodeWithSpan, run, $V), $V), $async$_async_evaluate0$_runUserDefinedCallable$1$4);
  72318. case 4:
  72319. // returning from await.
  72320. result = $async$result;
  72321. $async$self._async_evaluate0$_currentCallable = oldCallable;
  72322. $async$returnValue = result;
  72323. // goto return
  72324. $async$goto = 1;
  72325. break;
  72326. case 1:
  72327. // return
  72328. return A._asyncReturn($async$returnValue, $async$completer);
  72329. }
  72330. });
  72331. return A._asyncStartSync($async$_async_evaluate0$_runUserDefinedCallable$1$4, $async$completer);
  72332. },
  72333. _async_evaluate0$_runFunctionCallable$3($arguments, callable, nodeWithSpan) {
  72334. return this._runFunctionCallable$body$_EvaluateVisitor0($arguments, callable, nodeWithSpan);
  72335. },
  72336. _runFunctionCallable$body$_EvaluateVisitor0($arguments, callable, nodeWithSpan) {
  72337. var $async$goto = 0,
  72338. $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
  72339. $async$returnValue, $async$self = this, t1, t2, t3, first, _i, argument, restArg, rest, $async$temp1;
  72340. var $async$_async_evaluate0$_runFunctionCallable$3 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  72341. if ($async$errorCode === 1)
  72342. return A._asyncRethrow($async$result, $async$completer);
  72343. while (true)
  72344. switch ($async$goto) {
  72345. case 0:
  72346. // Function start
  72347. $async$goto = type$.AsyncBuiltInCallable_2._is(callable) ? 3 : 5;
  72348. break;
  72349. case 3:
  72350. // then
  72351. $async$goto = 6;
  72352. return A._asyncAwait($async$self._async_evaluate0$_runBuiltInCallable$3($arguments, callable, nodeWithSpan), $async$_async_evaluate0$_runFunctionCallable$3);
  72353. case 6:
  72354. // returning from await.
  72355. $async$returnValue = $async$self._async_evaluate0$_withoutSlash$2($async$result, nodeWithSpan);
  72356. // goto return
  72357. $async$goto = 1;
  72358. break;
  72359. // goto join
  72360. $async$goto = 4;
  72361. break;
  72362. case 5:
  72363. // else
  72364. $async$goto = type$.UserDefinedCallable_AsyncEnvironment_2._is(callable) ? 7 : 9;
  72365. break;
  72366. case 7:
  72367. // then
  72368. $async$goto = 10;
  72369. return A._asyncAwait($async$self._async_evaluate0$_runUserDefinedCallable$1$4($arguments, callable, nodeWithSpan, new A._EvaluateVisitor__runFunctionCallable_closure2($async$self, callable), type$.Value_2), $async$_async_evaluate0$_runFunctionCallable$3);
  72370. case 10:
  72371. // returning from await.
  72372. $async$returnValue = $async$result;
  72373. // goto return
  72374. $async$goto = 1;
  72375. break;
  72376. // goto join
  72377. $async$goto = 8;
  72378. break;
  72379. case 9:
  72380. // else
  72381. $async$goto = callable instanceof A.PlainCssCallable0 ? 11 : 13;
  72382. break;
  72383. case 11:
  72384. // then
  72385. t1 = $arguments.named;
  72386. if (t1.get$isNotEmpty(t1) || $arguments.keywordRest != null)
  72387. throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.Plain_, nodeWithSpan.get$span(nodeWithSpan)));
  72388. t1 = callable.name + "(";
  72389. t2 = $arguments.positional, t3 = t2.length, first = true, _i = 0;
  72390. case 14:
  72391. // for condition
  72392. if (!(_i < t3)) {
  72393. // goto after for
  72394. $async$goto = 16;
  72395. break;
  72396. }
  72397. argument = t2[_i];
  72398. if (first)
  72399. first = false;
  72400. else
  72401. t1 += ", ";
  72402. $async$temp1 = A;
  72403. $async$goto = 17;
  72404. return A._asyncAwait($async$self._async_evaluate0$_evaluateToCss$1(argument), $async$_async_evaluate0$_runFunctionCallable$3);
  72405. case 17:
  72406. // returning from await.
  72407. t1 += $async$temp1.S($async$result);
  72408. case 15:
  72409. // for update
  72410. ++_i;
  72411. // goto for condition
  72412. $async$goto = 14;
  72413. break;
  72414. case 16:
  72415. // after for
  72416. restArg = $arguments.rest;
  72417. $async$goto = restArg != null ? 18 : 19;
  72418. break;
  72419. case 18:
  72420. // then
  72421. $async$goto = 20;
  72422. return A._asyncAwait(restArg.accept$1($async$self), $async$_async_evaluate0$_runFunctionCallable$3);
  72423. case 20:
  72424. // returning from await.
  72425. rest = $async$result;
  72426. if (!first)
  72427. t1 += ", ";
  72428. t1 += $async$self._async_evaluate0$_serialize$2(rest, restArg);
  72429. case 19:
  72430. // join
  72431. t1 += A.Primitives_stringFromCharCode(41);
  72432. $async$returnValue = new A.SassString0(t1.charCodeAt(0) == 0 ? t1 : t1, false);
  72433. // goto return
  72434. $async$goto = 1;
  72435. break;
  72436. // goto join
  72437. $async$goto = 12;
  72438. break;
  72439. case 13:
  72440. // else
  72441. throw A.wrapException(A.ArgumentError$("Unknown callable type " + J.get$runtimeType$u(callable).toString$0(0) + ".", null));
  72442. case 12:
  72443. // join
  72444. case 8:
  72445. // join
  72446. case 4:
  72447. // join
  72448. case 1:
  72449. // return
  72450. return A._asyncReturn($async$returnValue, $async$completer);
  72451. }
  72452. });
  72453. return A._asyncStartSync($async$_async_evaluate0$_runFunctionCallable$3, $async$completer);
  72454. },
  72455. _async_evaluate0$_runBuiltInCallable$3($arguments, callable, nodeWithSpan) {
  72456. return this._runBuiltInCallable$body$_EvaluateVisitor0($arguments, callable, nodeWithSpan);
  72457. },
  72458. _runBuiltInCallable$body$_EvaluateVisitor0($arguments, callable, nodeWithSpan) {
  72459. var $async$goto = 0,
  72460. $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
  72461. $async$returnValue, $async$handler = 2, $async$currentError, $async$self = this, callback, result, error, stackTrace, error0, stackTrace0, error1, stackTrace1, message, namedSet, tuple, overload, declaredArguments, i, t1, argument, t2, t3, rest, argumentList, exception, t4, t5, t6, message0, evaluated, oldCallableNode, $async$exception;
  72462. var $async$_async_evaluate0$_runBuiltInCallable$3 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  72463. if ($async$errorCode === 1) {
  72464. $async$currentError = $async$result;
  72465. $async$goto = $async$handler;
  72466. }
  72467. while (true)
  72468. switch ($async$goto) {
  72469. case 0:
  72470. // Function start
  72471. $async$goto = 3;
  72472. return A._asyncAwait($async$self._async_evaluate0$_evaluateArguments$1($arguments), $async$_async_evaluate0$_runBuiltInCallable$3);
  72473. case 3:
  72474. // returning from await.
  72475. evaluated = $async$result;
  72476. oldCallableNode = $async$self._async_evaluate0$_callableNode;
  72477. $async$self._async_evaluate0$_callableNode = nodeWithSpan;
  72478. namedSet = new A.MapKeySet(evaluated.named, type$.MapKeySet_String);
  72479. tuple = callable.callbackFor$2(evaluated.positional.length, namedSet);
  72480. overload = tuple.item1;
  72481. callback = tuple.item2;
  72482. $async$self._async_evaluate0$_addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__runBuiltInCallable_closure5(overload, evaluated, namedSet));
  72483. declaredArguments = overload.$arguments;
  72484. i = evaluated.positional.length, t1 = declaredArguments.length;
  72485. case 4:
  72486. // for condition
  72487. if (!(i < t1)) {
  72488. // goto after for
  72489. $async$goto = 6;
  72490. break;
  72491. }
  72492. argument = declaredArguments[i];
  72493. t2 = evaluated.positional;
  72494. t3 = evaluated.named.remove$1(0, argument.name);
  72495. $async$goto = t3 == null ? 7 : 8;
  72496. break;
  72497. case 7:
  72498. // then
  72499. t3 = argument.defaultValue;
  72500. $async$goto = 9;
  72501. return A._asyncAwait(t3.accept$1($async$self), $async$_async_evaluate0$_runBuiltInCallable$3);
  72502. case 9:
  72503. // returning from await.
  72504. t3 = $async$self._async_evaluate0$_withoutSlash$2($async$result, t3);
  72505. case 8:
  72506. // join
  72507. t2.push(t3);
  72508. case 5:
  72509. // for update
  72510. ++i;
  72511. // goto for condition
  72512. $async$goto = 4;
  72513. break;
  72514. case 6:
  72515. // after for
  72516. if (overload.restArgument != null) {
  72517. if (evaluated.positional.length > t1) {
  72518. rest = B.JSArray_methods.sublist$1(evaluated.positional, t1);
  72519. B.JSArray_methods.removeRange$2(evaluated.positional, t1, evaluated.positional.length);
  72520. } else
  72521. rest = B.List_empty19;
  72522. t1 = evaluated.named;
  72523. argumentList = A.SassArgumentList$0(rest, t1, evaluated.separator === B.ListSeparator_undecided_null_undecided0 ? B.ListSeparator_rXA0 : evaluated.separator);
  72524. evaluated.positional.push(argumentList);
  72525. } else
  72526. argumentList = null;
  72527. result = null;
  72528. $async$handler = 11;
  72529. $async$goto = 14;
  72530. return A._asyncAwait(callback.call$1(evaluated.positional), $async$_async_evaluate0$_runBuiltInCallable$3);
  72531. case 14:
  72532. // returning from await.
  72533. result = $async$result;
  72534. $async$handler = 2;
  72535. // goto after finally
  72536. $async$goto = 13;
  72537. break;
  72538. case 11:
  72539. // catch
  72540. $async$handler = 10;
  72541. $async$exception = $async$currentError;
  72542. t1 = A.unwrapException($async$exception);
  72543. if (type$.SassRuntimeException_2._is(t1))
  72544. throw $async$exception;
  72545. else if (t1 instanceof A.MultiSpanSassScriptException0) {
  72546. error = t1;
  72547. stackTrace = A.getTraceFromException($async$exception);
  72548. t1 = error.message;
  72549. t2 = nodeWithSpan.get$span(nodeWithSpan);
  72550. t3 = error.primaryLabel;
  72551. t4 = error.secondarySpans;
  72552. A.throwWithTrace0(new A.MultiSpanSassRuntimeException0($async$self._async_evaluate0$_stackTrace$1(nodeWithSpan.get$span(nodeWithSpan)), t3, A.ConstantMap_ConstantMap$from(t4, type$.FileSpan, type$.String), t1, t2), stackTrace);
  72553. } else if (t1 instanceof A.MultiSpanSassException0) {
  72554. error0 = t1;
  72555. stackTrace0 = A.getTraceFromException($async$exception);
  72556. t1 = error0._span_exception$_message;
  72557. t2 = error0;
  72558. t3 = J.getInterceptor$z(t2);
  72559. t2 = A.SourceSpanException.prototype.get$span.call(t3, t2);
  72560. t3 = error0.primaryLabel;
  72561. t4 = error0.secondarySpans;
  72562. t5 = error0;
  72563. t6 = J.getInterceptor$z(t5);
  72564. A.throwWithTrace0(new A.MultiSpanSassRuntimeException0($async$self._async_evaluate0$_stackTrace$1(A.SourceSpanException.prototype.get$span.call(t6, t5)), t3, A.ConstantMap_ConstantMap$from(t4, type$.FileSpan, type$.String), t1, t2), stackTrace0);
  72565. } else {
  72566. error1 = t1;
  72567. stackTrace1 = A.getTraceFromException($async$exception);
  72568. message = null;
  72569. try {
  72570. message = A._asString(J.get$message$x(error1));
  72571. } catch (exception) {
  72572. message0 = J.toString$0$(error1);
  72573. message = message0;
  72574. }
  72575. A.throwWithTrace0($async$self._async_evaluate0$_exception$2(message, nodeWithSpan.get$span(nodeWithSpan)), stackTrace1);
  72576. }
  72577. // goto after finally
  72578. $async$goto = 13;
  72579. break;
  72580. case 10:
  72581. // uncaught
  72582. // goto rethrow
  72583. $async$goto = 2;
  72584. break;
  72585. case 13:
  72586. // after finally
  72587. $async$self._async_evaluate0$_callableNode = oldCallableNode;
  72588. if (argumentList == null) {
  72589. $async$returnValue = result;
  72590. // goto return
  72591. $async$goto = 1;
  72592. break;
  72593. }
  72594. if (evaluated.named.__js_helper$_length === 0) {
  72595. $async$returnValue = result;
  72596. // goto return
  72597. $async$goto = 1;
  72598. break;
  72599. }
  72600. if (argumentList._argument_list$_wereKeywordsAccessed) {
  72601. $async$returnValue = result;
  72602. // goto return
  72603. $async$goto = 1;
  72604. break;
  72605. }
  72606. t1 = evaluated.named;
  72607. t1 = t1.get$keys(t1);
  72608. t1 = A.pluralize0("argument", t1.get$length(t1), null);
  72609. t2 = evaluated.named;
  72610. throw A.wrapException(A.MultiSpanSassRuntimeException$0("No " + t1 + " named " + A.S(A.toSentence0(t2.get$keys(t2).map$1$1(0, new A._EvaluateVisitor__runBuiltInCallable_closure6(), type$.Object), "or")) + ".", nodeWithSpan.get$span(nodeWithSpan), "invocation", A.LinkedHashMap_LinkedHashMap$_literal([overload.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), $async$self._async_evaluate0$_stackTrace$1(nodeWithSpan.get$span(nodeWithSpan))));
  72611. case 1:
  72612. // return
  72613. return A._asyncReturn($async$returnValue, $async$completer);
  72614. case 2:
  72615. // rethrow
  72616. return A._asyncRethrow($async$currentError, $async$completer);
  72617. }
  72618. });
  72619. return A._asyncStartSync($async$_async_evaluate0$_runBuiltInCallable$3, $async$completer);
  72620. },
  72621. _async_evaluate0$_evaluateArguments$1($arguments) {
  72622. return this._evaluateArguments$body$_EvaluateVisitor0($arguments);
  72623. },
  72624. _evaluateArguments$body$_EvaluateVisitor0($arguments) {
  72625. var $async$goto = 0,
  72626. $async$completer = A._makeAsyncAwaitCompleter(type$._ArgumentResults_2),
  72627. $async$returnValue, $async$self = this, t1, t2, _i, expression, nodeForSpan, named, namedNodes, t3, t4, t5, restArgs, rest, restNodeForSpan, separator, keywordRestArgs, keywordRest, keywordRestNodeForSpan, positional, positionalNodes, $async$temp1, $async$temp2;
  72628. var $async$_async_evaluate0$_evaluateArguments$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  72629. if ($async$errorCode === 1)
  72630. return A._asyncRethrow($async$result, $async$completer);
  72631. while (true)
  72632. switch ($async$goto) {
  72633. case 0:
  72634. // Function start
  72635. positional = A._setArrayType([], type$.JSArray_Value_2);
  72636. positionalNodes = A._setArrayType([], type$.JSArray_AstNode_2);
  72637. t1 = $arguments.positional, t2 = t1.length, _i = 0;
  72638. case 3:
  72639. // for condition
  72640. if (!(_i < t2)) {
  72641. // goto after for
  72642. $async$goto = 5;
  72643. break;
  72644. }
  72645. expression = t1[_i];
  72646. nodeForSpan = $async$self._async_evaluate0$_expressionNode$1(expression);
  72647. $async$temp1 = positional;
  72648. $async$goto = 6;
  72649. return A._asyncAwait(expression.accept$1($async$self), $async$_async_evaluate0$_evaluateArguments$1);
  72650. case 6:
  72651. // returning from await.
  72652. $async$temp1.push($async$self._async_evaluate0$_withoutSlash$2($async$result, nodeForSpan));
  72653. positionalNodes.push(nodeForSpan);
  72654. case 4:
  72655. // for update
  72656. ++_i;
  72657. // goto for condition
  72658. $async$goto = 3;
  72659. break;
  72660. case 5:
  72661. // after for
  72662. t1 = type$.String;
  72663. named = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Value_2);
  72664. t2 = type$.AstNode_2;
  72665. namedNodes = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
  72666. t3 = $arguments.named, t3 = t3.get$entries(t3), t3 = t3.get$iterator(t3);
  72667. case 7:
  72668. // for condition
  72669. if (!t3.moveNext$0()) {
  72670. // goto after for
  72671. $async$goto = 8;
  72672. break;
  72673. }
  72674. t4 = t3.get$current(t3);
  72675. t5 = t4.value;
  72676. nodeForSpan = $async$self._async_evaluate0$_expressionNode$1(t5);
  72677. t4 = t4.key;
  72678. $async$temp1 = named;
  72679. $async$temp2 = t4;
  72680. $async$goto = 9;
  72681. return A._asyncAwait(t5.accept$1($async$self), $async$_async_evaluate0$_evaluateArguments$1);
  72682. case 9:
  72683. // returning from await.
  72684. $async$temp1.$indexSet(0, $async$temp2, $async$self._async_evaluate0$_withoutSlash$2($async$result, nodeForSpan));
  72685. namedNodes.$indexSet(0, t4, nodeForSpan);
  72686. // goto for condition
  72687. $async$goto = 7;
  72688. break;
  72689. case 8:
  72690. // after for
  72691. restArgs = $arguments.rest;
  72692. if (restArgs == null) {
  72693. $async$returnValue = new A._ArgumentResults2(positional, positionalNodes, named, namedNodes, B.ListSeparator_undecided_null_undecided0);
  72694. // goto return
  72695. $async$goto = 1;
  72696. break;
  72697. }
  72698. $async$goto = 10;
  72699. return A._asyncAwait(restArgs.accept$1($async$self), $async$_async_evaluate0$_evaluateArguments$1);
  72700. case 10:
  72701. // returning from await.
  72702. rest = $async$result;
  72703. restNodeForSpan = $async$self._async_evaluate0$_expressionNode$1(restArgs);
  72704. if (rest instanceof A.SassMap0) {
  72705. $async$self._async_evaluate0$_addRestMap$4(named, rest, restArgs, new A._EvaluateVisitor__evaluateArguments_closure11());
  72706. t3 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
  72707. for (t4 = rest._map0$_contents, t4 = J.get$iterator$ax(t4.get$keys(t4)), t5 = type$.SassString_2; t4.moveNext$0();)
  72708. t3.$indexSet(0, t5._as(t4.get$current(t4))._string0$_text, restNodeForSpan);
  72709. namedNodes.addAll$1(0, t3);
  72710. separator = B.ListSeparator_undecided_null_undecided0;
  72711. } else if (rest instanceof A.SassList0) {
  72712. t3 = rest._list1$_contents;
  72713. B.JSArray_methods.addAll$1(positional, new A.MappedListIterable(t3, new A._EvaluateVisitor__evaluateArguments_closure12($async$self, restNodeForSpan), A._arrayInstanceType(t3)._eval$1("MappedListIterable<1,Value0>")));
  72714. B.JSArray_methods.addAll$1(positionalNodes, A.List_List$filled(t3.length, restNodeForSpan, false, t2));
  72715. separator = rest._list1$_separator;
  72716. if (rest instanceof A.SassArgumentList0) {
  72717. rest._argument_list$_wereKeywordsAccessed = true;
  72718. rest._argument_list$_keywords.forEach$1(0, new A._EvaluateVisitor__evaluateArguments_closure13($async$self, named, restNodeForSpan, namedNodes));
  72719. }
  72720. } else {
  72721. positional.push($async$self._async_evaluate0$_withoutSlash$2(rest, restNodeForSpan));
  72722. positionalNodes.push(restNodeForSpan);
  72723. separator = B.ListSeparator_undecided_null_undecided0;
  72724. }
  72725. keywordRestArgs = $arguments.keywordRest;
  72726. if (keywordRestArgs == null) {
  72727. $async$returnValue = new A._ArgumentResults2(positional, positionalNodes, named, namedNodes, separator);
  72728. // goto return
  72729. $async$goto = 1;
  72730. break;
  72731. }
  72732. $async$goto = 11;
  72733. return A._asyncAwait(keywordRestArgs.accept$1($async$self), $async$_async_evaluate0$_evaluateArguments$1);
  72734. case 11:
  72735. // returning from await.
  72736. keywordRest = $async$result;
  72737. keywordRestNodeForSpan = $async$self._async_evaluate0$_expressionNode$1(keywordRestArgs);
  72738. if (keywordRest instanceof A.SassMap0) {
  72739. $async$self._async_evaluate0$_addRestMap$4(named, keywordRest, keywordRestArgs, new A._EvaluateVisitor__evaluateArguments_closure14());
  72740. t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
  72741. for (t2 = keywordRest._map0$_contents, t2 = J.get$iterator$ax(t2.get$keys(t2)), t3 = type$.SassString_2; t2.moveNext$0();)
  72742. t1.$indexSet(0, t3._as(t2.get$current(t2))._string0$_text, keywordRestNodeForSpan);
  72743. namedNodes.addAll$1(0, t1);
  72744. $async$returnValue = new A._ArgumentResults2(positional, positionalNodes, named, namedNodes, separator);
  72745. // goto return
  72746. $async$goto = 1;
  72747. break;
  72748. } else
  72749. throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.Variabs + keywordRest.toString$0(0) + ").", keywordRestArgs.get$span(keywordRestArgs)));
  72750. case 1:
  72751. // return
  72752. return A._asyncReturn($async$returnValue, $async$completer);
  72753. }
  72754. });
  72755. return A._asyncStartSync($async$_async_evaluate0$_evaluateArguments$1, $async$completer);
  72756. },
  72757. _async_evaluate0$_evaluateMacroArguments$1(invocation) {
  72758. return this._evaluateMacroArguments$body$_EvaluateVisitor0(invocation);
  72759. },
  72760. _evaluateMacroArguments$body$_EvaluateVisitor0(invocation) {
  72761. var $async$goto = 0,
  72762. $async$completer = A._makeAsyncAwaitCompleter(type$.Tuple2_of_List_Expression_and_Map_String_Expression_2),
  72763. $async$returnValue, $async$self = this, t2, positional, named, rest, restNodeForSpan, keywordRestArgs_, keywordRest, keywordRestNodeForSpan, t1, restArgs_;
  72764. var $async$_async_evaluate0$_evaluateMacroArguments$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  72765. if ($async$errorCode === 1)
  72766. return A._asyncRethrow($async$result, $async$completer);
  72767. while (true)
  72768. switch ($async$goto) {
  72769. case 0:
  72770. // Function start
  72771. t1 = invocation.$arguments;
  72772. restArgs_ = t1.rest;
  72773. if (restArgs_ == null) {
  72774. $async$returnValue = new A.Tuple2(t1.positional, t1.named, type$.Tuple2_of_List_Expression_and_Map_String_Expression_2);
  72775. // goto return
  72776. $async$goto = 1;
  72777. break;
  72778. }
  72779. t2 = t1.positional;
  72780. positional = A._setArrayType(t2.slice(0), A._arrayInstanceType(t2));
  72781. named = A.LinkedHashMap_LinkedHashMap$of(t1.named, type$.String, type$.Expression_2);
  72782. $async$goto = 3;
  72783. return A._asyncAwait(restArgs_.accept$1($async$self), $async$_async_evaluate0$_evaluateMacroArguments$1);
  72784. case 3:
  72785. // returning from await.
  72786. rest = $async$result;
  72787. restNodeForSpan = $async$self._async_evaluate0$_expressionNode$1(restArgs_);
  72788. if (rest instanceof A.SassMap0)
  72789. $async$self._async_evaluate0$_addRestMap$4(named, rest, invocation, new A._EvaluateVisitor__evaluateMacroArguments_closure11(restArgs_));
  72790. else if (rest instanceof A.SassList0) {
  72791. t2 = rest._list1$_contents;
  72792. B.JSArray_methods.addAll$1(positional, new A.MappedListIterable(t2, new A._EvaluateVisitor__evaluateMacroArguments_closure12($async$self, restNodeForSpan, restArgs_), A._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Expression0>")));
  72793. if (rest instanceof A.SassArgumentList0) {
  72794. rest._argument_list$_wereKeywordsAccessed = true;
  72795. rest._argument_list$_keywords.forEach$1(0, new A._EvaluateVisitor__evaluateMacroArguments_closure13($async$self, named, restNodeForSpan, restArgs_));
  72796. }
  72797. } else
  72798. positional.push(new A.ValueExpression0($async$self._async_evaluate0$_withoutSlash$2(rest, restNodeForSpan), restArgs_.get$span(restArgs_)));
  72799. keywordRestArgs_ = t1.keywordRest;
  72800. if (keywordRestArgs_ == null) {
  72801. $async$returnValue = new A.Tuple2(positional, named, type$.Tuple2_of_List_Expression_and_Map_String_Expression_2);
  72802. // goto return
  72803. $async$goto = 1;
  72804. break;
  72805. }
  72806. $async$goto = 4;
  72807. return A._asyncAwait(keywordRestArgs_.accept$1($async$self), $async$_async_evaluate0$_evaluateMacroArguments$1);
  72808. case 4:
  72809. // returning from await.
  72810. keywordRest = $async$result;
  72811. keywordRestNodeForSpan = $async$self._async_evaluate0$_expressionNode$1(keywordRestArgs_);
  72812. if (keywordRest instanceof A.SassMap0) {
  72813. $async$self._async_evaluate0$_addRestMap$4(named, keywordRest, invocation, new A._EvaluateVisitor__evaluateMacroArguments_closure14($async$self, keywordRestNodeForSpan, keywordRestArgs_));
  72814. $async$returnValue = new A.Tuple2(positional, named, type$.Tuple2_of_List_Expression_and_Map_String_Expression_2);
  72815. // goto return
  72816. $async$goto = 1;
  72817. break;
  72818. } else
  72819. throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.Variabs + keywordRest.toString$0(0) + ").", keywordRestArgs_.get$span(keywordRestArgs_)));
  72820. case 1:
  72821. // return
  72822. return A._asyncReturn($async$returnValue, $async$completer);
  72823. }
  72824. });
  72825. return A._asyncStartSync($async$_async_evaluate0$_evaluateMacroArguments$1, $async$completer);
  72826. },
  72827. _async_evaluate0$_addRestMap$1$4(values, map, nodeWithSpan, convert) {
  72828. map._map0$_contents.forEach$1(0, new A._EvaluateVisitor__addRestMap_closure2(this, values, convert, this._async_evaluate0$_expressionNode$1(nodeWithSpan), map, nodeWithSpan));
  72829. },
  72830. _async_evaluate0$_addRestMap$4(values, map, nodeWithSpan, convert) {
  72831. return this._async_evaluate0$_addRestMap$1$4(values, map, nodeWithSpan, convert, type$.dynamic);
  72832. },
  72833. _async_evaluate0$_verifyArguments$4(positional, named, $arguments, nodeWithSpan) {
  72834. return this._async_evaluate0$_addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__verifyArguments_closure2($arguments, positional, named));
  72835. },
  72836. visitSelectorExpression$1(node) {
  72837. return this.visitSelectorExpression$body$_EvaluateVisitor0(node);
  72838. },
  72839. visitSelectorExpression$body$_EvaluateVisitor0(node) {
  72840. var $async$goto = 0,
  72841. $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
  72842. $async$returnValue, $async$self = this, t1;
  72843. var $async$visitSelectorExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  72844. if ($async$errorCode === 1)
  72845. return A._asyncRethrow($async$result, $async$completer);
  72846. while (true)
  72847. switch ($async$goto) {
  72848. case 0:
  72849. // Function start
  72850. t1 = $async$self._async_evaluate0$_styleRuleIgnoringAtRoot;
  72851. t1 = t1 == null ? null : t1.originalSelector.get$asSassList();
  72852. $async$returnValue = t1 == null ? B.C__SassNull0 : t1;
  72853. // goto return
  72854. $async$goto = 1;
  72855. break;
  72856. case 1:
  72857. // return
  72858. return A._asyncReturn($async$returnValue, $async$completer);
  72859. }
  72860. });
  72861. return A._asyncStartSync($async$visitSelectorExpression$1, $async$completer);
  72862. },
  72863. visitStringExpression$1(node) {
  72864. return this.visitStringExpression$body$_EvaluateVisitor0(node);
  72865. },
  72866. visitStringExpression$body$_EvaluateVisitor0(node) {
  72867. var $async$goto = 0,
  72868. $async$completer = A._makeAsyncAwaitCompleter(type$.SassString_2),
  72869. $async$returnValue, $async$self = this, t1, oldInSupportsDeclaration, $async$temp1;
  72870. var $async$visitStringExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  72871. if ($async$errorCode === 1)
  72872. return A._asyncRethrow($async$result, $async$completer);
  72873. while (true)
  72874. switch ($async$goto) {
  72875. case 0:
  72876. // Function start
  72877. oldInSupportsDeclaration = $async$self._async_evaluate0$_inSupportsDeclaration;
  72878. $async$self._async_evaluate0$_inSupportsDeclaration = false;
  72879. $async$temp1 = J;
  72880. $async$goto = 3;
  72881. return A._asyncAwait(A.mapAsync0(node.text.contents, new A._EvaluateVisitor_visitStringExpression_closure2($async$self), type$.Object, type$.String), $async$visitStringExpression$1);
  72882. case 3:
  72883. // returning from await.
  72884. t1 = $async$temp1.join$0$ax($async$result);
  72885. $async$self._async_evaluate0$_inSupportsDeclaration = oldInSupportsDeclaration;
  72886. $async$returnValue = new A.SassString0(t1, node.hasQuotes);
  72887. // goto return
  72888. $async$goto = 1;
  72889. break;
  72890. case 1:
  72891. // return
  72892. return A._asyncReturn($async$returnValue, $async$completer);
  72893. }
  72894. });
  72895. return A._asyncStartSync($async$visitStringExpression$1, $async$completer);
  72896. },
  72897. visitSupportsExpression$1(expression) {
  72898. return this.visitSupportsExpression$body$_EvaluateVisitor0(expression);
  72899. },
  72900. visitSupportsExpression$body$_EvaluateVisitor0(expression) {
  72901. var $async$goto = 0,
  72902. $async$completer = A._makeAsyncAwaitCompleter(type$.SassString_2),
  72903. $async$returnValue, $async$self = this, $async$temp1;
  72904. var $async$visitSupportsExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  72905. if ($async$errorCode === 1)
  72906. return A._asyncRethrow($async$result, $async$completer);
  72907. while (true)
  72908. switch ($async$goto) {
  72909. case 0:
  72910. // Function start
  72911. $async$temp1 = A;
  72912. $async$goto = 3;
  72913. return A._asyncAwait($async$self._async_evaluate0$_visitSupportsCondition$1(expression.condition), $async$visitSupportsExpression$1);
  72914. case 3:
  72915. // returning from await.
  72916. $async$returnValue = new $async$temp1.SassString0($async$result, false);
  72917. // goto return
  72918. $async$goto = 1;
  72919. break;
  72920. case 1:
  72921. // return
  72922. return A._asyncReturn($async$returnValue, $async$completer);
  72923. }
  72924. });
  72925. return A._asyncStartSync($async$visitSupportsExpression$1, $async$completer);
  72926. },
  72927. visitCssAtRule$1(node) {
  72928. return this.visitCssAtRule$body$_EvaluateVisitor0(node);
  72929. },
  72930. visitCssAtRule$body$_EvaluateVisitor0(node) {
  72931. var $async$goto = 0,
  72932. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  72933. $async$returnValue, $async$self = this, wasInKeyframes, wasInUnknownAtRule, t1;
  72934. var $async$visitCssAtRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  72935. if ($async$errorCode === 1)
  72936. return A._asyncRethrow($async$result, $async$completer);
  72937. while (true)
  72938. switch ($async$goto) {
  72939. case 0:
  72940. // Function start
  72941. if ($async$self._async_evaluate0$_declarationName != null)
  72942. throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.At_rul, node.span));
  72943. if (node.isChildless) {
  72944. $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent").addChild$1(A.ModifiableCssAtRule$0(node.name, node.span, true, node.value));
  72945. // goto return
  72946. $async$goto = 1;
  72947. break;
  72948. }
  72949. wasInKeyframes = $async$self._async_evaluate0$_inKeyframes;
  72950. wasInUnknownAtRule = $async$self._async_evaluate0$_inUnknownAtRule;
  72951. t1 = node.name;
  72952. if (A.unvendor0(t1.get$value(t1)) === "keyframes")
  72953. $async$self._async_evaluate0$_inKeyframes = true;
  72954. else
  72955. $async$self._async_evaluate0$_inUnknownAtRule = true;
  72956. $async$goto = 3;
  72957. return A._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(A.ModifiableCssAtRule$0(t1, node.span, false, node.value), new A._EvaluateVisitor_visitCssAtRule_closure5($async$self, node), false, new A._EvaluateVisitor_visitCssAtRule_closure6(), type$.ModifiableCssAtRule_2, type$.Null), $async$visitCssAtRule$1);
  72958. case 3:
  72959. // returning from await.
  72960. $async$self._async_evaluate0$_inUnknownAtRule = wasInUnknownAtRule;
  72961. $async$self._async_evaluate0$_inKeyframes = wasInKeyframes;
  72962. case 1:
  72963. // return
  72964. return A._asyncReturn($async$returnValue, $async$completer);
  72965. }
  72966. });
  72967. return A._asyncStartSync($async$visitCssAtRule$1, $async$completer);
  72968. },
  72969. visitCssComment$1(node) {
  72970. return this.visitCssComment$body$_EvaluateVisitor0(node);
  72971. },
  72972. visitCssComment$body$_EvaluateVisitor0(node) {
  72973. var $async$goto = 0,
  72974. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  72975. $async$self = this;
  72976. var $async$visitCssComment$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  72977. if ($async$errorCode === 1)
  72978. return A._asyncRethrow($async$result, $async$completer);
  72979. while (true)
  72980. switch ($async$goto) {
  72981. case 0:
  72982. // Function start
  72983. if ($async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent") === $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__root, "_root") && $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__endOfImports, "_endOfImports") === J.get$length$asx($async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__root, "_root").children._collection$_source))
  72984. $async$self._async_evaluate0$__endOfImports = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__endOfImports, "_endOfImports") + 1;
  72985. $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent").addChild$1(new A.ModifiableCssComment0(node.text, node.span));
  72986. // implicit return
  72987. return A._asyncReturn(null, $async$completer);
  72988. }
  72989. });
  72990. return A._asyncStartSync($async$visitCssComment$1, $async$completer);
  72991. },
  72992. visitCssDeclaration$1(node) {
  72993. return this.visitCssDeclaration$body$_EvaluateVisitor0(node);
  72994. },
  72995. visitCssDeclaration$body$_EvaluateVisitor0(node) {
  72996. var $async$goto = 0,
  72997. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  72998. $async$self = this, t1;
  72999. var $async$visitCssDeclaration$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  73000. if ($async$errorCode === 1)
  73001. return A._asyncRethrow($async$result, $async$completer);
  73002. while (true)
  73003. switch ($async$goto) {
  73004. case 0:
  73005. // Function start
  73006. t1 = node.name;
  73007. $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent").addChild$1(A.ModifiableCssDeclaration$0(t1, node.value, node.span, J.startsWith$1$s(t1.get$value(t1), "--"), node.valueSpanForMap));
  73008. // implicit return
  73009. return A._asyncReturn(null, $async$completer);
  73010. }
  73011. });
  73012. return A._asyncStartSync($async$visitCssDeclaration$1, $async$completer);
  73013. },
  73014. visitCssImport$1(node) {
  73015. return this.visitCssImport$body$_EvaluateVisitor0(node);
  73016. },
  73017. visitCssImport$body$_EvaluateVisitor0(node) {
  73018. var $async$goto = 0,
  73019. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  73020. $async$self = this, t1, modifiableNode;
  73021. var $async$visitCssImport$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  73022. if ($async$errorCode === 1)
  73023. return A._asyncRethrow($async$result, $async$completer);
  73024. while (true)
  73025. switch ($async$goto) {
  73026. case 0:
  73027. // Function start
  73028. modifiableNode = new A.ModifiableCssImport0(node.url, node.modifiers, node.span);
  73029. if ($async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent") !== $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__root, "_root"))
  73030. $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent").addChild$1(modifiableNode);
  73031. else if ($async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__endOfImports, "_endOfImports") === J.get$length$asx($async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__root, "_root").children._collection$_source)) {
  73032. $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__root, "_root").addChild$1(modifiableNode);
  73033. $async$self._async_evaluate0$__endOfImports = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__endOfImports, "_endOfImports") + 1;
  73034. } else {
  73035. t1 = $async$self._async_evaluate0$_outOfOrderImports;
  73036. (t1 == null ? $async$self._async_evaluate0$_outOfOrderImports = A._setArrayType([], type$.JSArray_ModifiableCssImport_2) : t1).push(modifiableNode);
  73037. }
  73038. // implicit return
  73039. return A._asyncReturn(null, $async$completer);
  73040. }
  73041. });
  73042. return A._asyncStartSync($async$visitCssImport$1, $async$completer);
  73043. },
  73044. visitCssKeyframeBlock$1(node) {
  73045. return this.visitCssKeyframeBlock$body$_EvaluateVisitor0(node);
  73046. },
  73047. visitCssKeyframeBlock$body$_EvaluateVisitor0(node) {
  73048. var $async$goto = 0,
  73049. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  73050. $async$self = this;
  73051. var $async$visitCssKeyframeBlock$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  73052. if ($async$errorCode === 1)
  73053. return A._asyncRethrow($async$result, $async$completer);
  73054. while (true)
  73055. switch ($async$goto) {
  73056. case 0:
  73057. // Function start
  73058. $async$goto = 2;
  73059. return A._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(A.ModifiableCssKeyframeBlock$0(node.selector, node.span), new A._EvaluateVisitor_visitCssKeyframeBlock_closure5($async$self, node), false, new A._EvaluateVisitor_visitCssKeyframeBlock_closure6(), type$.ModifiableCssKeyframeBlock_2, type$.Null), $async$visitCssKeyframeBlock$1);
  73060. case 2:
  73061. // returning from await.
  73062. // implicit return
  73063. return A._asyncReturn(null, $async$completer);
  73064. }
  73065. });
  73066. return A._asyncStartSync($async$visitCssKeyframeBlock$1, $async$completer);
  73067. },
  73068. visitCssMediaRule$1(node) {
  73069. return this.visitCssMediaRule$body$_EvaluateVisitor0(node);
  73070. },
  73071. visitCssMediaRule$body$_EvaluateVisitor0(node) {
  73072. var $async$goto = 0,
  73073. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  73074. $async$returnValue, $async$self = this, mergedQueries, t1, mergedSources, t2, t3;
  73075. var $async$visitCssMediaRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  73076. if ($async$errorCode === 1)
  73077. return A._asyncRethrow($async$result, $async$completer);
  73078. while (true)
  73079. switch ($async$goto) {
  73080. case 0:
  73081. // Function start
  73082. if ($async$self._async_evaluate0$_declarationName != null)
  73083. throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.Media_, node.span));
  73084. mergedQueries = A.NullableExtension_andThen0($async$self._async_evaluate0$_mediaQueries, new A._EvaluateVisitor_visitCssMediaRule_closure8($async$self, node));
  73085. t1 = mergedQueries == null;
  73086. if (!t1 && J.get$isEmpty$asx(mergedQueries)) {
  73087. // goto return
  73088. $async$goto = 1;
  73089. break;
  73090. }
  73091. if (t1)
  73092. mergedSources = B.Set_empty4;
  73093. else {
  73094. t2 = $async$self._async_evaluate0$_mediaQuerySources;
  73095. t2.toString;
  73096. t2 = A.LinkedHashSet_LinkedHashSet$of(t2, type$.CssMediaQuery_2);
  73097. t3 = $async$self._async_evaluate0$_mediaQueries;
  73098. t3.toString;
  73099. t2.addAll$1(0, t3);
  73100. t2.addAll$1(0, node.queries);
  73101. mergedSources = t2;
  73102. }
  73103. t1 = t1 ? node.queries : mergedQueries;
  73104. $async$goto = 3;
  73105. return A._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(A.ModifiableCssMediaRule$0(t1, node.span), new A._EvaluateVisitor_visitCssMediaRule_closure9($async$self, mergedQueries, node, mergedSources), false, new A._EvaluateVisitor_visitCssMediaRule_closure10(mergedSources), type$.ModifiableCssMediaRule_2, type$.Null), $async$visitCssMediaRule$1);
  73106. case 3:
  73107. // returning from await.
  73108. case 1:
  73109. // return
  73110. return A._asyncReturn($async$returnValue, $async$completer);
  73111. }
  73112. });
  73113. return A._asyncStartSync($async$visitCssMediaRule$1, $async$completer);
  73114. },
  73115. visitCssStyleRule$1(node) {
  73116. return this.visitCssStyleRule$body$_EvaluateVisitor0(node);
  73117. },
  73118. visitCssStyleRule$body$_EvaluateVisitor0(node) {
  73119. var $async$goto = 0,
  73120. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  73121. $async$self = this, t1, styleRule, t2, t3, t4, t5, originalSelector, rule, oldAtRootExcludingStyleRule;
  73122. var $async$visitCssStyleRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  73123. if ($async$errorCode === 1)
  73124. return A._asyncRethrow($async$result, $async$completer);
  73125. while (true)
  73126. switch ($async$goto) {
  73127. case 0:
  73128. // Function start
  73129. if ($async$self._async_evaluate0$_declarationName != null)
  73130. throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.Style_, node.span));
  73131. t1 = $async$self._async_evaluate0$_atRootExcludingStyleRule;
  73132. styleRule = t1 ? null : $async$self._async_evaluate0$_styleRuleIgnoringAtRoot;
  73133. t2 = node.selector;
  73134. t3 = t2.value;
  73135. t4 = styleRule == null;
  73136. t5 = t4 ? null : styleRule.originalSelector;
  73137. originalSelector = t3.resolveParentSelectors$2$implicitParent(t5, !t1);
  73138. rule = A.ModifiableCssStyleRule$0($async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__extensionStore, "_extensionStore").addSelector$3(originalSelector, t2.span, $async$self._async_evaluate0$_mediaQueries), node.span, originalSelector);
  73139. oldAtRootExcludingStyleRule = $async$self._async_evaluate0$_atRootExcludingStyleRule;
  73140. $async$self._async_evaluate0$_atRootExcludingStyleRule = false;
  73141. $async$goto = 2;
  73142. return A._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(rule, new A._EvaluateVisitor_visitCssStyleRule_closure5($async$self, rule, node), false, new A._EvaluateVisitor_visitCssStyleRule_closure6(), type$.ModifiableCssStyleRule_2, type$.Null), $async$visitCssStyleRule$1);
  73143. case 2:
  73144. // returning from await.
  73145. $async$self._async_evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  73146. if (t4) {
  73147. t1 = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent").children;
  73148. t1 = !t1.get$isEmpty(t1);
  73149. } else
  73150. t1 = false;
  73151. if (t1) {
  73152. t1 = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent").children;
  73153. t1.get$last(t1).isGroupEnd = true;
  73154. }
  73155. // implicit return
  73156. return A._asyncReturn(null, $async$completer);
  73157. }
  73158. });
  73159. return A._asyncStartSync($async$visitCssStyleRule$1, $async$completer);
  73160. },
  73161. visitCssStylesheet$1(node) {
  73162. return this.visitCssStylesheet$body$_EvaluateVisitor0(node);
  73163. },
  73164. visitCssStylesheet$body$_EvaluateVisitor0(node) {
  73165. var $async$goto = 0,
  73166. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  73167. $async$self = this, t1;
  73168. var $async$visitCssStylesheet$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  73169. if ($async$errorCode === 1)
  73170. return A._asyncRethrow($async$result, $async$completer);
  73171. while (true)
  73172. switch ($async$goto) {
  73173. case 0:
  73174. // Function start
  73175. t1 = J.get$iterator$ax(node.get$children(node));
  73176. case 2:
  73177. // for condition
  73178. if (!t1.moveNext$0()) {
  73179. // goto after for
  73180. $async$goto = 3;
  73181. break;
  73182. }
  73183. $async$goto = 4;
  73184. return A._asyncAwait(t1.get$current(t1).accept$1($async$self), $async$visitCssStylesheet$1);
  73185. case 4:
  73186. // returning from await.
  73187. // goto for condition
  73188. $async$goto = 2;
  73189. break;
  73190. case 3:
  73191. // after for
  73192. // implicit return
  73193. return A._asyncReturn(null, $async$completer);
  73194. }
  73195. });
  73196. return A._asyncStartSync($async$visitCssStylesheet$1, $async$completer);
  73197. },
  73198. visitCssSupportsRule$1(node) {
  73199. return this.visitCssSupportsRule$body$_EvaluateVisitor0(node);
  73200. },
  73201. visitCssSupportsRule$body$_EvaluateVisitor0(node) {
  73202. var $async$goto = 0,
  73203. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  73204. $async$self = this;
  73205. var $async$visitCssSupportsRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  73206. if ($async$errorCode === 1)
  73207. return A._asyncRethrow($async$result, $async$completer);
  73208. while (true)
  73209. switch ($async$goto) {
  73210. case 0:
  73211. // Function start
  73212. if ($async$self._async_evaluate0$_declarationName != null)
  73213. throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.Suppor, node.span));
  73214. $async$goto = 2;
  73215. return A._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(A.ModifiableCssSupportsRule$0(node.condition, node.span), new A._EvaluateVisitor_visitCssSupportsRule_closure5($async$self, node), false, new A._EvaluateVisitor_visitCssSupportsRule_closure6(), type$.ModifiableCssSupportsRule_2, type$.Null), $async$visitCssSupportsRule$1);
  73216. case 2:
  73217. // returning from await.
  73218. // implicit return
  73219. return A._asyncReturn(null, $async$completer);
  73220. }
  73221. });
  73222. return A._asyncStartSync($async$visitCssSupportsRule$1, $async$completer);
  73223. },
  73224. _async_evaluate0$_handleReturn$1$2(list, callback) {
  73225. return this._handleReturn$body$_EvaluateVisitor0(list, callback);
  73226. },
  73227. _async_evaluate0$_handleReturn$2(list, callback) {
  73228. return this._async_evaluate0$_handleReturn$1$2(list, callback, type$.dynamic);
  73229. },
  73230. _handleReturn$body$_EvaluateVisitor0(list, callback) {
  73231. var $async$goto = 0,
  73232. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
  73233. $async$returnValue, t1, _i, result;
  73234. var $async$_async_evaluate0$_handleReturn$1$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  73235. if ($async$errorCode === 1)
  73236. return A._asyncRethrow($async$result, $async$completer);
  73237. while (true)
  73238. switch ($async$goto) {
  73239. case 0:
  73240. // Function start
  73241. t1 = list.length, _i = 0;
  73242. case 3:
  73243. // for condition
  73244. if (!(_i < list.length)) {
  73245. // goto after for
  73246. $async$goto = 5;
  73247. break;
  73248. }
  73249. $async$goto = 6;
  73250. return A._asyncAwait(callback.call$1(list[_i]), $async$_async_evaluate0$_handleReturn$1$2);
  73251. case 6:
  73252. // returning from await.
  73253. result = $async$result;
  73254. if (result != null) {
  73255. $async$returnValue = result;
  73256. // goto return
  73257. $async$goto = 1;
  73258. break;
  73259. }
  73260. case 4:
  73261. // for update
  73262. list.length === t1 || (0, A.throwConcurrentModificationError)(list), ++_i;
  73263. // goto for condition
  73264. $async$goto = 3;
  73265. break;
  73266. case 5:
  73267. // after for
  73268. $async$returnValue = null;
  73269. // goto return
  73270. $async$goto = 1;
  73271. break;
  73272. case 1:
  73273. // return
  73274. return A._asyncReturn($async$returnValue, $async$completer);
  73275. }
  73276. });
  73277. return A._asyncStartSync($async$_async_evaluate0$_handleReturn$1$2, $async$completer);
  73278. },
  73279. _async_evaluate0$_withEnvironment$1$2(environment, callback, $T) {
  73280. return this._withEnvironment$body$_EvaluateVisitor0(environment, callback, $T, $T);
  73281. },
  73282. _withEnvironment$body$_EvaluateVisitor0(environment, callback, $T, $async$type) {
  73283. var $async$goto = 0,
  73284. $async$completer = A._makeAsyncAwaitCompleter($async$type),
  73285. $async$returnValue, $async$self = this, result, oldEnvironment;
  73286. var $async$_async_evaluate0$_withEnvironment$1$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  73287. if ($async$errorCode === 1)
  73288. return A._asyncRethrow($async$result, $async$completer);
  73289. while (true)
  73290. switch ($async$goto) {
  73291. case 0:
  73292. // Function start
  73293. oldEnvironment = $async$self._async_evaluate0$_environment;
  73294. $async$self._async_evaluate0$_environment = environment;
  73295. $async$goto = 3;
  73296. return A._asyncAwait(callback.call$0(), $async$_async_evaluate0$_withEnvironment$1$2);
  73297. case 3:
  73298. // returning from await.
  73299. result = $async$result;
  73300. $async$self._async_evaluate0$_environment = oldEnvironment;
  73301. $async$returnValue = result;
  73302. // goto return
  73303. $async$goto = 1;
  73304. break;
  73305. case 1:
  73306. // return
  73307. return A._asyncReturn($async$returnValue, $async$completer);
  73308. }
  73309. });
  73310. return A._asyncStartSync($async$_async_evaluate0$_withEnvironment$1$2, $async$completer);
  73311. },
  73312. _async_evaluate0$_interpolationToValue$3$trim$warnForColor(interpolation, trim, warnForColor) {
  73313. return this._interpolationToValue$body$_EvaluateVisitor0(interpolation, trim, warnForColor);
  73314. },
  73315. _async_evaluate0$_interpolationToValue$1(interpolation) {
  73316. return this._async_evaluate0$_interpolationToValue$3$trim$warnForColor(interpolation, false, false);
  73317. },
  73318. _async_evaluate0$_interpolationToValue$2$warnForColor(interpolation, warnForColor) {
  73319. return this._async_evaluate0$_interpolationToValue$3$trim$warnForColor(interpolation, false, warnForColor);
  73320. },
  73321. _interpolationToValue$body$_EvaluateVisitor0(interpolation, trim, warnForColor) {
  73322. var $async$goto = 0,
  73323. $async$completer = A._makeAsyncAwaitCompleter(type$.CssValue_String_2),
  73324. $async$returnValue, $async$self = this, result, t1;
  73325. var $async$_async_evaluate0$_interpolationToValue$3$trim$warnForColor = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  73326. if ($async$errorCode === 1)
  73327. return A._asyncRethrow($async$result, $async$completer);
  73328. while (true)
  73329. switch ($async$goto) {
  73330. case 0:
  73331. // Function start
  73332. $async$goto = 3;
  73333. return A._asyncAwait($async$self._async_evaluate0$_performInterpolation$2$warnForColor(interpolation, warnForColor), $async$_async_evaluate0$_interpolationToValue$3$trim$warnForColor);
  73334. case 3:
  73335. // returning from await.
  73336. result = $async$result;
  73337. t1 = trim ? A.trimAscii0(result, true) : result;
  73338. $async$returnValue = new A.CssValue0(t1, interpolation.span, type$.CssValue_String_2);
  73339. // goto return
  73340. $async$goto = 1;
  73341. break;
  73342. case 1:
  73343. // return
  73344. return A._asyncReturn($async$returnValue, $async$completer);
  73345. }
  73346. });
  73347. return A._asyncStartSync($async$_async_evaluate0$_interpolationToValue$3$trim$warnForColor, $async$completer);
  73348. },
  73349. _async_evaluate0$_performInterpolation$2$warnForColor(interpolation, warnForColor) {
  73350. return this._performInterpolation$body$_EvaluateVisitor0(interpolation, warnForColor);
  73351. },
  73352. _async_evaluate0$_performInterpolation$1(interpolation) {
  73353. return this._async_evaluate0$_performInterpolation$2$warnForColor(interpolation, false);
  73354. },
  73355. _performInterpolation$body$_EvaluateVisitor0(interpolation, warnForColor) {
  73356. var $async$goto = 0,
  73357. $async$completer = A._makeAsyncAwaitCompleter(type$.String),
  73358. $async$returnValue, $async$self = this, result, oldInSupportsDeclaration, $async$temp1;
  73359. var $async$_async_evaluate0$_performInterpolation$2$warnForColor = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  73360. if ($async$errorCode === 1)
  73361. return A._asyncRethrow($async$result, $async$completer);
  73362. while (true)
  73363. switch ($async$goto) {
  73364. case 0:
  73365. // Function start
  73366. oldInSupportsDeclaration = $async$self._async_evaluate0$_inSupportsDeclaration;
  73367. $async$self._async_evaluate0$_inSupportsDeclaration = false;
  73368. $async$temp1 = J;
  73369. $async$goto = 3;
  73370. return A._asyncAwait(A.mapAsync0(interpolation.contents, new A._EvaluateVisitor__performInterpolation_closure2($async$self, warnForColor, interpolation), type$.Object, type$.String), $async$_async_evaluate0$_performInterpolation$2$warnForColor);
  73371. case 3:
  73372. // returning from await.
  73373. result = $async$temp1.join$0$ax($async$result);
  73374. $async$self._async_evaluate0$_inSupportsDeclaration = oldInSupportsDeclaration;
  73375. $async$returnValue = result;
  73376. // goto return
  73377. $async$goto = 1;
  73378. break;
  73379. case 1:
  73380. // return
  73381. return A._asyncReturn($async$returnValue, $async$completer);
  73382. }
  73383. });
  73384. return A._asyncStartSync($async$_async_evaluate0$_performInterpolation$2$warnForColor, $async$completer);
  73385. },
  73386. _async_evaluate0$_evaluateToCss$2$quote(expression, quote) {
  73387. return this._evaluateToCss$body$_EvaluateVisitor0(expression, quote);
  73388. },
  73389. _async_evaluate0$_evaluateToCss$1(expression) {
  73390. return this._async_evaluate0$_evaluateToCss$2$quote(expression, true);
  73391. },
  73392. _evaluateToCss$body$_EvaluateVisitor0(expression, quote) {
  73393. var $async$goto = 0,
  73394. $async$completer = A._makeAsyncAwaitCompleter(type$.String),
  73395. $async$returnValue, $async$self = this;
  73396. var $async$_async_evaluate0$_evaluateToCss$2$quote = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  73397. if ($async$errorCode === 1)
  73398. return A._asyncRethrow($async$result, $async$completer);
  73399. while (true)
  73400. switch ($async$goto) {
  73401. case 0:
  73402. // Function start
  73403. $async$goto = 3;
  73404. return A._asyncAwait(expression.accept$1($async$self), $async$_async_evaluate0$_evaluateToCss$2$quote);
  73405. case 3:
  73406. // returning from await.
  73407. $async$returnValue = $async$self._async_evaluate0$_serialize$3$quote($async$result, expression, quote);
  73408. // goto return
  73409. $async$goto = 1;
  73410. break;
  73411. case 1:
  73412. // return
  73413. return A._asyncReturn($async$returnValue, $async$completer);
  73414. }
  73415. });
  73416. return A._asyncStartSync($async$_async_evaluate0$_evaluateToCss$2$quote, $async$completer);
  73417. },
  73418. _async_evaluate0$_serialize$3$quote(value, nodeWithSpan, quote) {
  73419. return this._async_evaluate0$_addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__serialize_closure2(value, quote));
  73420. },
  73421. _async_evaluate0$_serialize$2(value, nodeWithSpan) {
  73422. return this._async_evaluate0$_serialize$3$quote(value, nodeWithSpan, true);
  73423. },
  73424. _async_evaluate0$_expressionNode$1(expression) {
  73425. var t1;
  73426. if (expression instanceof A.VariableExpression0) {
  73427. t1 = this._async_evaluate0$_addExceptionSpan$2(expression, new A._EvaluateVisitor__expressionNode_closure2(this, expression));
  73428. return t1 == null ? expression : t1;
  73429. } else
  73430. return expression;
  73431. },
  73432. _async_evaluate0$_withParent$2$4$scopeWhen$through(node, callback, scopeWhen, through, $S, $T) {
  73433. return this._withParent$body$_EvaluateVisitor0(node, callback, scopeWhen, through, $S, $T, $T);
  73434. },
  73435. _async_evaluate0$_withParent$2$2(node, callback, $S, $T) {
  73436. return this._async_evaluate0$_withParent$2$4$scopeWhen$through(node, callback, true, null, $S, $T);
  73437. },
  73438. _async_evaluate0$_withParent$2$3$scopeWhen(node, callback, scopeWhen, $S, $T) {
  73439. return this._async_evaluate0$_withParent$2$4$scopeWhen$through(node, callback, scopeWhen, null, $S, $T);
  73440. },
  73441. _withParent$body$_EvaluateVisitor0(node, callback, scopeWhen, through, $S, $T, $async$type) {
  73442. var $async$goto = 0,
  73443. $async$completer = A._makeAsyncAwaitCompleter($async$type),
  73444. $async$returnValue, $async$self = this, t1, result;
  73445. var $async$_async_evaluate0$_withParent$2$4$scopeWhen$through = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  73446. if ($async$errorCode === 1)
  73447. return A._asyncRethrow($async$result, $async$completer);
  73448. while (true)
  73449. switch ($async$goto) {
  73450. case 0:
  73451. // Function start
  73452. $async$self._async_evaluate0$_addChild$2$through(node, through);
  73453. t1 = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent");
  73454. $async$self._async_evaluate0$__parent = node;
  73455. $async$goto = 3;
  73456. return A._asyncAwait($async$self._async_evaluate0$_environment.scope$1$2$when(callback, scopeWhen, $T), $async$_async_evaluate0$_withParent$2$4$scopeWhen$through);
  73457. case 3:
  73458. // returning from await.
  73459. result = $async$result;
  73460. $async$self._async_evaluate0$__parent = t1;
  73461. $async$returnValue = result;
  73462. // goto return
  73463. $async$goto = 1;
  73464. break;
  73465. case 1:
  73466. // return
  73467. return A._asyncReturn($async$returnValue, $async$completer);
  73468. }
  73469. });
  73470. return A._asyncStartSync($async$_async_evaluate0$_withParent$2$4$scopeWhen$through, $async$completer);
  73471. },
  73472. _async_evaluate0$_addChild$2$through(node, through) {
  73473. var grandparent, t1,
  73474. $parent = this._async_evaluate0$_assertInModule$2(this._async_evaluate0$__parent, "__parent");
  73475. if (through != null) {
  73476. for (; through.call$1($parent); $parent = grandparent) {
  73477. grandparent = $parent._node0$_parent;
  73478. if (grandparent == null)
  73479. throw A.wrapException(A.ArgumentError$(string$.throug + node.toString$0(0) + ".", null));
  73480. }
  73481. if ($parent.get$hasFollowingSibling()) {
  73482. t1 = $parent._node0$_parent;
  73483. t1.toString;
  73484. $parent = $parent.copyWithoutChildren$0();
  73485. t1.addChild$1($parent);
  73486. }
  73487. }
  73488. $parent.addChild$1(node);
  73489. },
  73490. _async_evaluate0$_addChild$1(node) {
  73491. return this._async_evaluate0$_addChild$2$through(node, null);
  73492. },
  73493. _async_evaluate0$_withStyleRule$1$2(rule, callback, $T) {
  73494. return this._withStyleRule$body$_EvaluateVisitor0(rule, callback, $T, $T);
  73495. },
  73496. _withStyleRule$body$_EvaluateVisitor0(rule, callback, $T, $async$type) {
  73497. var $async$goto = 0,
  73498. $async$completer = A._makeAsyncAwaitCompleter($async$type),
  73499. $async$returnValue, $async$self = this, result, oldRule;
  73500. var $async$_async_evaluate0$_withStyleRule$1$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  73501. if ($async$errorCode === 1)
  73502. return A._asyncRethrow($async$result, $async$completer);
  73503. while (true)
  73504. switch ($async$goto) {
  73505. case 0:
  73506. // Function start
  73507. oldRule = $async$self._async_evaluate0$_styleRuleIgnoringAtRoot;
  73508. $async$self._async_evaluate0$_styleRuleIgnoringAtRoot = rule;
  73509. $async$goto = 3;
  73510. return A._asyncAwait(callback.call$0(), $async$_async_evaluate0$_withStyleRule$1$2);
  73511. case 3:
  73512. // returning from await.
  73513. result = $async$result;
  73514. $async$self._async_evaluate0$_styleRuleIgnoringAtRoot = oldRule;
  73515. $async$returnValue = result;
  73516. // goto return
  73517. $async$goto = 1;
  73518. break;
  73519. case 1:
  73520. // return
  73521. return A._asyncReturn($async$returnValue, $async$completer);
  73522. }
  73523. });
  73524. return A._asyncStartSync($async$_async_evaluate0$_withStyleRule$1$2, $async$completer);
  73525. },
  73526. _async_evaluate0$_withMediaQueries$1$3(queries, sources, callback, $T) {
  73527. return this._withMediaQueries$body$_EvaluateVisitor0(queries, sources, callback, $T, $T);
  73528. },
  73529. _withMediaQueries$body$_EvaluateVisitor0(queries, sources, callback, $T, $async$type) {
  73530. var $async$goto = 0,
  73531. $async$completer = A._makeAsyncAwaitCompleter($async$type),
  73532. $async$returnValue, $async$self = this, result, oldMediaQueries, oldSources;
  73533. var $async$_async_evaluate0$_withMediaQueries$1$3 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  73534. if ($async$errorCode === 1)
  73535. return A._asyncRethrow($async$result, $async$completer);
  73536. while (true)
  73537. switch ($async$goto) {
  73538. case 0:
  73539. // Function start
  73540. oldMediaQueries = $async$self._async_evaluate0$_mediaQueries;
  73541. oldSources = $async$self._async_evaluate0$_mediaQuerySources;
  73542. $async$self._async_evaluate0$_mediaQueries = queries;
  73543. $async$self._async_evaluate0$_mediaQuerySources = sources;
  73544. $async$goto = 3;
  73545. return A._asyncAwait(callback.call$0(), $async$_async_evaluate0$_withMediaQueries$1$3);
  73546. case 3:
  73547. // returning from await.
  73548. result = $async$result;
  73549. $async$self._async_evaluate0$_mediaQueries = oldMediaQueries;
  73550. $async$self._async_evaluate0$_mediaQuerySources = oldSources;
  73551. $async$returnValue = result;
  73552. // goto return
  73553. $async$goto = 1;
  73554. break;
  73555. case 1:
  73556. // return
  73557. return A._asyncReturn($async$returnValue, $async$completer);
  73558. }
  73559. });
  73560. return A._asyncStartSync($async$_async_evaluate0$_withMediaQueries$1$3, $async$completer);
  73561. },
  73562. _async_evaluate0$_withStackFrame$1$3(member, nodeWithSpan, callback, $T) {
  73563. return this._withStackFrame$body$_EvaluateVisitor0(member, nodeWithSpan, callback, $T, $T);
  73564. },
  73565. _withStackFrame$body$_EvaluateVisitor0(member, nodeWithSpan, callback, $T, $async$type) {
  73566. var $async$goto = 0,
  73567. $async$completer = A._makeAsyncAwaitCompleter($async$type),
  73568. $async$returnValue, $async$self = this, oldMember, result, t1;
  73569. var $async$_async_evaluate0$_withStackFrame$1$3 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  73570. if ($async$errorCode === 1)
  73571. return A._asyncRethrow($async$result, $async$completer);
  73572. while (true)
  73573. switch ($async$goto) {
  73574. case 0:
  73575. // Function start
  73576. t1 = $async$self._async_evaluate0$_stack;
  73577. t1.push(new A.Tuple2($async$self._async_evaluate0$_member, nodeWithSpan, type$.Tuple2_String_AstNode_2));
  73578. oldMember = $async$self._async_evaluate0$_member;
  73579. $async$self._async_evaluate0$_member = member;
  73580. $async$goto = 3;
  73581. return A._asyncAwait(callback.call$0(), $async$_async_evaluate0$_withStackFrame$1$3);
  73582. case 3:
  73583. // returning from await.
  73584. result = $async$result;
  73585. $async$self._async_evaluate0$_member = oldMember;
  73586. t1.pop();
  73587. $async$returnValue = result;
  73588. // goto return
  73589. $async$goto = 1;
  73590. break;
  73591. case 1:
  73592. // return
  73593. return A._asyncReturn($async$returnValue, $async$completer);
  73594. }
  73595. });
  73596. return A._asyncStartSync($async$_async_evaluate0$_withStackFrame$1$3, $async$completer);
  73597. },
  73598. _async_evaluate0$_withoutSlash$2(value, nodeForSpan) {
  73599. if (value instanceof A.SassNumber0 && value.asSlash != null)
  73600. this._async_evaluate0$_warn$3$deprecation(string$.Using__i + A.S(new A._EvaluateVisitor__withoutSlash_recommendation2().call$1(value)) + string$.x0a_Morex20, nodeForSpan.get$span(nodeForSpan), true);
  73601. return value.withoutSlash$0();
  73602. },
  73603. _async_evaluate0$_stackFrame$2(member, span) {
  73604. return A.frameForSpan0(span, member, A.NullableExtension_andThen0(span.get$sourceUrl(span), new A._EvaluateVisitor__stackFrame_closure2(this)));
  73605. },
  73606. _async_evaluate0$_stackTrace$1(span) {
  73607. var _this = this,
  73608. t1 = _this._async_evaluate0$_stack;
  73609. t1 = A.List_List$of(new A.MappedListIterable(t1, new A._EvaluateVisitor__stackTrace_closure2(_this), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Frame>")), true, type$.Frame);
  73610. if (span != null)
  73611. t1.push(_this._async_evaluate0$_stackFrame$2(_this._async_evaluate0$_member, span));
  73612. return A.Trace$(new A.ReversedListIterable(t1, A._arrayInstanceType(t1)._eval$1("ReversedListIterable<1>")), null);
  73613. },
  73614. _async_evaluate0$_stackTrace$0() {
  73615. return this._async_evaluate0$_stackTrace$1(null);
  73616. },
  73617. _async_evaluate0$_warn$3$deprecation(message, span, deprecation) {
  73618. var t1, _this = this;
  73619. if (_this._async_evaluate0$_quietDeps)
  73620. if (!_this._async_evaluate0$_inDependency) {
  73621. t1 = _this._async_evaluate0$_currentCallable;
  73622. t1 = t1 == null ? null : t1.inDependency;
  73623. t1 = t1 === true;
  73624. } else
  73625. t1 = true;
  73626. else
  73627. t1 = false;
  73628. if (t1)
  73629. return;
  73630. if (!_this._async_evaluate0$_warningsEmitted.add$1(0, new A.Tuple2(message, span, type$.Tuple2_String_SourceSpan)))
  73631. return;
  73632. _this._async_evaluate0$_logger.warn$4$deprecation$span$trace(0, message, deprecation, span, _this._async_evaluate0$_stackTrace$1(span));
  73633. },
  73634. _async_evaluate0$_warn$2(message, span) {
  73635. return this._async_evaluate0$_warn$3$deprecation(message, span, false);
  73636. },
  73637. _async_evaluate0$_exception$2(message, span) {
  73638. var t1 = span == null ? J.get$span$z(B.JSArray_methods.get$last(this._async_evaluate0$_stack).item2) : span;
  73639. return new A.SassRuntimeException0(this._async_evaluate0$_stackTrace$1(span), message, t1);
  73640. },
  73641. _async_evaluate0$_exception$1(message) {
  73642. return this._async_evaluate0$_exception$2(message, null);
  73643. },
  73644. _async_evaluate0$_multiSpanException$3(message, primaryLabel, secondaryLabels) {
  73645. var t1 = J.get$span$z(B.JSArray_methods.get$last(this._async_evaluate0$_stack).item2);
  73646. return new A.MultiSpanSassRuntimeException0(this._async_evaluate0$_stackTrace$0(), primaryLabel, A.ConstantMap_ConstantMap$from(secondaryLabels, type$.FileSpan, type$.String), message, t1);
  73647. },
  73648. _async_evaluate0$_adjustParseError$1$2(nodeWithSpan, callback) {
  73649. var error, stackTrace, errorText, span, syntheticFile, syntheticSpan, t1, exception, t2, t3, t4, t5, t6, _null = null;
  73650. try {
  73651. t1 = callback.call$0();
  73652. return t1;
  73653. } catch (exception) {
  73654. t1 = A.unwrapException(exception);
  73655. if (t1 instanceof A.SassFormatException0) {
  73656. error = t1;
  73657. stackTrace = A.getTraceFromException(exception);
  73658. t1 = error;
  73659. t2 = J.getInterceptor$z(t1);
  73660. t1 = A.SourceSpanException.prototype.get$span.call(t2, t1);
  73661. errorText = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t1.get$file(t1)._decodedChars, 0, _null), 0, _null);
  73662. span = nodeWithSpan.get$span(nodeWithSpan);
  73663. syntheticFile = B.JSString_methods.replaceRange$3(A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(J.get$file$x(span)._decodedChars, 0, _null), 0, _null), J.get$start$z(span).offset, J.get$end$z(span).offset, errorText);
  73664. t1 = A.SourceFile$fromString(syntheticFile, J.get$file$x(span).url);
  73665. t2 = J.get$start$z(span);
  73666. t3 = error;
  73667. t4 = J.getInterceptor$z(t3);
  73668. t3 = A.SourceSpanException.prototype.get$span.call(t4, t3);
  73669. t3 = t3.get$start(t3);
  73670. t4 = J.get$start$z(span);
  73671. t5 = error;
  73672. t6 = J.getInterceptor$z(t5);
  73673. t5 = A.SourceSpanException.prototype.get$span.call(t6, t5);
  73674. syntheticSpan = t1.span$2(0, t2.offset + t3.offset, t4.offset + t5.get$end(t5).offset);
  73675. A.throwWithTrace0(this._async_evaluate0$_exception$2(error._span_exception$_message, syntheticSpan), stackTrace);
  73676. } else
  73677. throw exception;
  73678. }
  73679. },
  73680. _async_evaluate0$_adjustParseError$2(nodeWithSpan, callback) {
  73681. return this._async_evaluate0$_adjustParseError$1$2(nodeWithSpan, callback, type$.dynamic);
  73682. },
  73683. _async_evaluate0$_addExceptionSpan$1$2(nodeWithSpan, callback) {
  73684. var error, stackTrace, error0, stackTrace0, t1, exception, t2, t3, t4;
  73685. try {
  73686. t1 = callback.call$0();
  73687. return t1;
  73688. } catch (exception) {
  73689. t1 = A.unwrapException(exception);
  73690. if (t1 instanceof A.MultiSpanSassScriptException0) {
  73691. error = t1;
  73692. stackTrace = A.getTraceFromException(exception);
  73693. t1 = error.message;
  73694. t2 = nodeWithSpan.get$span(nodeWithSpan);
  73695. t3 = error.primaryLabel;
  73696. t4 = error.secondarySpans;
  73697. A.throwWithTrace0(new A.MultiSpanSassRuntimeException0(this._async_evaluate0$_stackTrace$1(nodeWithSpan.get$span(nodeWithSpan)), t3, A.ConstantMap_ConstantMap$from(t4, type$.FileSpan, type$.String), t1, t2), stackTrace);
  73698. } else if (t1 instanceof A.SassScriptException0) {
  73699. error0 = t1;
  73700. stackTrace0 = A.getTraceFromException(exception);
  73701. A.throwWithTrace0(this._async_evaluate0$_exception$2(error0.message, nodeWithSpan.get$span(nodeWithSpan)), stackTrace0);
  73702. } else
  73703. throw exception;
  73704. }
  73705. },
  73706. _async_evaluate0$_addExceptionSpan$2(nodeWithSpan, callback) {
  73707. return this._async_evaluate0$_addExceptionSpan$1$2(nodeWithSpan, callback, type$.dynamic);
  73708. },
  73709. _async_evaluate0$_addExceptionSpanAsync$1$2(nodeWithSpan, callback, $T) {
  73710. return this._addExceptionSpanAsync$body$_EvaluateVisitor0(nodeWithSpan, callback, $T, $T);
  73711. },
  73712. _addExceptionSpanAsync$body$_EvaluateVisitor0(nodeWithSpan, callback, $T, $async$type) {
  73713. var $async$goto = 0,
  73714. $async$completer = A._makeAsyncAwaitCompleter($async$type),
  73715. $async$returnValue, $async$handler = 2, $async$currentError, $async$self = this, error, stackTrace, error0, stackTrace0, t1, exception, t2, t3, t4, $async$exception;
  73716. var $async$_async_evaluate0$_addExceptionSpanAsync$1$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  73717. if ($async$errorCode === 1) {
  73718. $async$currentError = $async$result;
  73719. $async$goto = $async$handler;
  73720. }
  73721. while (true)
  73722. switch ($async$goto) {
  73723. case 0:
  73724. // Function start
  73725. $async$handler = 4;
  73726. $async$goto = 7;
  73727. return A._asyncAwait(callback.call$0(), $async$_async_evaluate0$_addExceptionSpanAsync$1$2);
  73728. case 7:
  73729. // returning from await.
  73730. t1 = $async$result;
  73731. $async$returnValue = t1;
  73732. // goto return
  73733. $async$goto = 1;
  73734. break;
  73735. $async$handler = 2;
  73736. // goto after finally
  73737. $async$goto = 6;
  73738. break;
  73739. case 4:
  73740. // catch
  73741. $async$handler = 3;
  73742. $async$exception = $async$currentError;
  73743. t1 = A.unwrapException($async$exception);
  73744. if (t1 instanceof A.MultiSpanSassScriptException0) {
  73745. error = t1;
  73746. stackTrace = A.getTraceFromException($async$exception);
  73747. t1 = error.message;
  73748. t2 = nodeWithSpan.get$span(nodeWithSpan);
  73749. t3 = error.primaryLabel;
  73750. t4 = error.secondarySpans;
  73751. A.throwWithTrace0(new A.MultiSpanSassRuntimeException0($async$self._async_evaluate0$_stackTrace$1(nodeWithSpan.get$span(nodeWithSpan)), t3, A.ConstantMap_ConstantMap$from(t4, type$.FileSpan, type$.String), t1, t2), stackTrace);
  73752. } else if (t1 instanceof A.SassScriptException0) {
  73753. error0 = t1;
  73754. stackTrace0 = A.getTraceFromException($async$exception);
  73755. A.throwWithTrace0($async$self._async_evaluate0$_exception$2(error0.message, nodeWithSpan.get$span(nodeWithSpan)), stackTrace0);
  73756. } else
  73757. throw $async$exception;
  73758. // goto after finally
  73759. $async$goto = 6;
  73760. break;
  73761. case 3:
  73762. // uncaught
  73763. // goto rethrow
  73764. $async$goto = 2;
  73765. break;
  73766. case 6:
  73767. // after finally
  73768. case 1:
  73769. // return
  73770. return A._asyncReturn($async$returnValue, $async$completer);
  73771. case 2:
  73772. // rethrow
  73773. return A._asyncRethrow($async$currentError, $async$completer);
  73774. }
  73775. });
  73776. return A._asyncStartSync($async$_async_evaluate0$_addExceptionSpanAsync$1$2, $async$completer);
  73777. },
  73778. _async_evaluate0$_addErrorSpan$1$2(nodeWithSpan, callback, $T) {
  73779. return this._addErrorSpan$body$_EvaluateVisitor0(nodeWithSpan, callback, $T, $T);
  73780. },
  73781. _addErrorSpan$body$_EvaluateVisitor0(nodeWithSpan, callback, $T, $async$type) {
  73782. var $async$goto = 0,
  73783. $async$completer = A._makeAsyncAwaitCompleter($async$type),
  73784. $async$returnValue, $async$handler = 2, $async$currentError, $async$self = this, error, stackTrace, t1, exception, t2, $async$exception;
  73785. var $async$_async_evaluate0$_addErrorSpan$1$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  73786. if ($async$errorCode === 1) {
  73787. $async$currentError = $async$result;
  73788. $async$goto = $async$handler;
  73789. }
  73790. while (true)
  73791. switch ($async$goto) {
  73792. case 0:
  73793. // Function start
  73794. $async$handler = 4;
  73795. $async$goto = 7;
  73796. return A._asyncAwait(callback.call$0(), $async$_async_evaluate0$_addErrorSpan$1$2);
  73797. case 7:
  73798. // returning from await.
  73799. t1 = $async$result;
  73800. $async$returnValue = t1;
  73801. // goto return
  73802. $async$goto = 1;
  73803. break;
  73804. $async$handler = 2;
  73805. // goto after finally
  73806. $async$goto = 6;
  73807. break;
  73808. case 4:
  73809. // catch
  73810. $async$handler = 3;
  73811. $async$exception = $async$currentError;
  73812. t1 = A.unwrapException($async$exception);
  73813. if (type$.SassRuntimeException_2._is(t1)) {
  73814. error = t1;
  73815. stackTrace = A.getTraceFromException($async$exception);
  73816. if (!B.JSString_methods.startsWith$1(J.get$span$z(error).get$text(), "@error"))
  73817. throw $async$exception;
  73818. t1 = error._span_exception$_message;
  73819. t2 = nodeWithSpan.get$span(nodeWithSpan);
  73820. A.throwWithTrace0(new A.SassRuntimeException0($async$self._async_evaluate0$_stackTrace$0(), t1, t2), stackTrace);
  73821. } else
  73822. throw $async$exception;
  73823. // goto after finally
  73824. $async$goto = 6;
  73825. break;
  73826. case 3:
  73827. // uncaught
  73828. // goto rethrow
  73829. $async$goto = 2;
  73830. break;
  73831. case 6:
  73832. // after finally
  73833. case 1:
  73834. // return
  73835. return A._asyncReturn($async$returnValue, $async$completer);
  73836. case 2:
  73837. // rethrow
  73838. return A._asyncRethrow($async$currentError, $async$completer);
  73839. }
  73840. });
  73841. return A._asyncStartSync($async$_async_evaluate0$_addErrorSpan$1$2, $async$completer);
  73842. }
  73843. };
  73844. A._EvaluateVisitor_closure29.prototype = {
  73845. call$1($arguments) {
  73846. var module, t2,
  73847. t1 = J.getInterceptor$asx($arguments),
  73848. variable = t1.$index($arguments, 0).assertString$1("name");
  73849. t1 = t1.$index($arguments, 1).get$realNull();
  73850. module = t1 == null ? null : t1.assertString$1("module");
  73851. t1 = this.$this._async_evaluate0$_environment;
  73852. t2 = A.stringReplaceAllUnchecked(variable._string0$_text, "_", "-");
  73853. return t1.globalVariableExists$2$namespace(t2, module == null ? null : module._string0$_text) ? B.SassBoolean_true0 : B.SassBoolean_false0;
  73854. },
  73855. $signature: 20
  73856. };
  73857. A._EvaluateVisitor_closure30.prototype = {
  73858. call$1($arguments) {
  73859. var variable = J.$index$asx($arguments, 0).assertString$1("name"),
  73860. t1 = this.$this._async_evaluate0$_environment;
  73861. return t1.getVariable$1(A.stringReplaceAllUnchecked(variable._string0$_text, "_", "-")) != null ? B.SassBoolean_true0 : B.SassBoolean_false0;
  73862. },
  73863. $signature: 20
  73864. };
  73865. A._EvaluateVisitor_closure31.prototype = {
  73866. call$1($arguments) {
  73867. var module, t2, t3, t4,
  73868. t1 = J.getInterceptor$asx($arguments),
  73869. variable = t1.$index($arguments, 0).assertString$1("name");
  73870. t1 = t1.$index($arguments, 1).get$realNull();
  73871. module = t1 == null ? null : t1.assertString$1("module");
  73872. t1 = this.$this;
  73873. t2 = t1._async_evaluate0$_environment;
  73874. t3 = variable._string0$_text;
  73875. t4 = A.stringReplaceAllUnchecked(t3, "_", "-");
  73876. return t2.getFunction$2$namespace(t4, module == null ? null : module._string0$_text) != null || t1._async_evaluate0$_builtInFunctions.containsKey$1(t3) ? B.SassBoolean_true0 : B.SassBoolean_false0;
  73877. },
  73878. $signature: 20
  73879. };
  73880. A._EvaluateVisitor_closure32.prototype = {
  73881. call$1($arguments) {
  73882. var module, t2,
  73883. t1 = J.getInterceptor$asx($arguments),
  73884. variable = t1.$index($arguments, 0).assertString$1("name");
  73885. t1 = t1.$index($arguments, 1).get$realNull();
  73886. module = t1 == null ? null : t1.assertString$1("module");
  73887. t1 = this.$this._async_evaluate0$_environment;
  73888. t2 = A.stringReplaceAllUnchecked(variable._string0$_text, "_", "-");
  73889. return t1.getMixin$2$namespace(t2, module == null ? null : module._string0$_text) != null ? B.SassBoolean_true0 : B.SassBoolean_false0;
  73890. },
  73891. $signature: 20
  73892. };
  73893. A._EvaluateVisitor_closure33.prototype = {
  73894. call$1($arguments) {
  73895. var t1 = this.$this._async_evaluate0$_environment;
  73896. if (!t1._async_environment0$_inMixin)
  73897. throw A.wrapException(A.SassScriptException$0(string$.conten, null));
  73898. return t1._async_environment0$_content != null ? B.SassBoolean_true0 : B.SassBoolean_false0;
  73899. },
  73900. $signature: 20
  73901. };
  73902. A._EvaluateVisitor_closure34.prototype = {
  73903. call$1($arguments) {
  73904. var t2, t3, t4,
  73905. t1 = J.$index$asx($arguments, 0).assertString$1("module")._string0$_text,
  73906. module = this.$this._async_evaluate0$_environment._async_environment0$_modules.$index(0, t1);
  73907. if (module == null)
  73908. throw A.wrapException('There is no module with namespace "' + t1 + '".');
  73909. t1 = type$.Value_2;
  73910. t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  73911. for (t3 = module.get$variables(), t3 = t3.get$entries(t3), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  73912. t4 = t3.get$current(t3);
  73913. t2.$indexSet(0, new A.SassString0(t4.key, true), t4.value);
  73914. }
  73915. return new A.SassMap0(A.ConstantMap_ConstantMap$from(t2, t1, t1));
  73916. },
  73917. $signature: 37
  73918. };
  73919. A._EvaluateVisitor_closure35.prototype = {
  73920. call$1($arguments) {
  73921. var t2, t3, t4,
  73922. t1 = J.$index$asx($arguments, 0).assertString$1("module")._string0$_text,
  73923. module = this.$this._async_evaluate0$_environment._async_environment0$_modules.$index(0, t1);
  73924. if (module == null)
  73925. throw A.wrapException('There is no module with namespace "' + t1 + '".');
  73926. t1 = type$.Value_2;
  73927. t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  73928. for (t3 = module.get$functions(module), t3 = t3.get$entries(t3), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  73929. t4 = t3.get$current(t3);
  73930. t2.$indexSet(0, new A.SassString0(t4.key, true), new A.SassFunction0(t4.value));
  73931. }
  73932. return new A.SassMap0(A.ConstantMap_ConstantMap$from(t2, t1, t1));
  73933. },
  73934. $signature: 37
  73935. };
  73936. A._EvaluateVisitor_closure36.prototype = {
  73937. call$1($arguments) {
  73938. var module, callable, t2,
  73939. t1 = J.getInterceptor$asx($arguments),
  73940. $name = t1.$index($arguments, 0).assertString$1("name"),
  73941. css = t1.$index($arguments, 1).get$isTruthy();
  73942. t1 = t1.$index($arguments, 2).get$realNull();
  73943. module = t1 == null ? null : t1.assertString$1("module");
  73944. if (css && module != null)
  73945. throw A.wrapException(string$.x24css_a);
  73946. if (css)
  73947. callable = new A.PlainCssCallable0($name._string0$_text);
  73948. else {
  73949. t1 = this.$this;
  73950. t2 = t1._async_evaluate0$_callableNode;
  73951. t2.toString;
  73952. callable = t1._async_evaluate0$_addExceptionSpan$2(t2, new A._EvaluateVisitor__closure10(t1, $name, module));
  73953. }
  73954. if (callable != null)
  73955. return new A.SassFunction0(callable);
  73956. throw A.wrapException("Function not found: " + $name.toString$0(0));
  73957. },
  73958. $signature: 254
  73959. };
  73960. A._EvaluateVisitor__closure10.prototype = {
  73961. call$0() {
  73962. var t1 = A.stringReplaceAllUnchecked(this.name._string0$_text, "_", "-"),
  73963. t2 = this.module;
  73964. t2 = t2 == null ? null : t2._string0$_text;
  73965. return this.$this._async_evaluate0$_getFunction$2$namespace(t1, t2);
  73966. },
  73967. $signature: 131
  73968. };
  73969. A._EvaluateVisitor_closure37.prototype = {
  73970. call$1($arguments) {
  73971. return this.$call$body$_EvaluateVisitor_closure2($arguments);
  73972. },
  73973. $call$body$_EvaluateVisitor_closure2($arguments) {
  73974. var $async$goto = 0,
  73975. $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
  73976. $async$returnValue, $async$self = this, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, invocation, callableNode, t1, $function, args;
  73977. var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  73978. if ($async$errorCode === 1)
  73979. return A._asyncRethrow($async$result, $async$completer);
  73980. while (true)
  73981. switch ($async$goto) {
  73982. case 0:
  73983. // Function start
  73984. t1 = J.getInterceptor$asx($arguments);
  73985. $function = t1.$index($arguments, 0);
  73986. args = type$.SassArgumentList_2._as(t1.$index($arguments, 1));
  73987. t1 = $async$self.$this;
  73988. t2 = t1._async_evaluate0$_callableNode;
  73989. t2.toString;
  73990. t3 = A._setArrayType([], type$.JSArray_Expression_2);
  73991. t4 = type$.String;
  73992. t5 = type$.Expression_2;
  73993. t6 = t2.get$span(t2);
  73994. t7 = t2.get$span(t2);
  73995. args._argument_list$_wereKeywordsAccessed = true;
  73996. t8 = args._argument_list$_keywords;
  73997. if (t8.get$isEmpty(t8))
  73998. t2 = null;
  73999. else {
  74000. t9 = type$.Value_2;
  74001. t10 = A.LinkedHashMap_LinkedHashMap$_empty(t9, t9);
  74002. for (args._argument_list$_wereKeywordsAccessed = true, t8 = t8.get$entries(t8), t8 = t8.get$iterator(t8); t8.moveNext$0();) {
  74003. t11 = t8.get$current(t8);
  74004. t10.$indexSet(0, new A.SassString0(t11.key, false), t11.value);
  74005. }
  74006. t2 = new A.ValueExpression0(new A.SassMap0(A.ConstantMap_ConstantMap$from(t10, t9, t9)), t2.get$span(t2));
  74007. }
  74008. invocation = new A.ArgumentInvocation0(A.List_List$unmodifiable(t3, t5), A.ConstantMap_ConstantMap$from(A.LinkedHashMap_LinkedHashMap$_empty(t4, t5), t4, t5), new A.ValueExpression0(args, t7), t2, t6);
  74009. $async$goto = $function instanceof A.SassString0 ? 3 : 4;
  74010. break;
  74011. case 3:
  74012. // then
  74013. t2 = $function.toString$0(0);
  74014. A.EvaluationContext_current0().warn$2$deprecation(0, string$.Passin + t2 + "))", true);
  74015. callableNode = t1._async_evaluate0$_callableNode;
  74016. $async$goto = 5;
  74017. return A._asyncAwait(t1.visitFunctionExpression$1(new A.FunctionExpression0(null, $function._string0$_text, invocation, callableNode.get$span(callableNode))), $async$call$1);
  74018. case 5:
  74019. // returning from await.
  74020. $async$returnValue = $async$result;
  74021. // goto return
  74022. $async$goto = 1;
  74023. break;
  74024. case 4:
  74025. // join
  74026. t2 = $function.assertFunction$1("function");
  74027. t3 = t1._async_evaluate0$_callableNode;
  74028. t3.toString;
  74029. $async$goto = 6;
  74030. return A._asyncAwait(t1._async_evaluate0$_runFunctionCallable$3(invocation, t2.callable, t3), $async$call$1);
  74031. case 6:
  74032. // returning from await.
  74033. t3 = $async$result;
  74034. $async$returnValue = t3;
  74035. // goto return
  74036. $async$goto = 1;
  74037. break;
  74038. case 1:
  74039. // return
  74040. return A._asyncReturn($async$returnValue, $async$completer);
  74041. }
  74042. });
  74043. return A._asyncStartSync($async$call$1, $async$completer);
  74044. },
  74045. $signature: 95
  74046. };
  74047. A._EvaluateVisitor_closure38.prototype = {
  74048. call$1($arguments) {
  74049. return this.$call$body$_EvaluateVisitor_closure1($arguments);
  74050. },
  74051. $call$body$_EvaluateVisitor_closure1($arguments) {
  74052. var $async$goto = 0,
  74053. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  74054. $async$self = this, withMap, t2, values, configuration, t3, t1, url;
  74055. var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  74056. if ($async$errorCode === 1)
  74057. return A._asyncRethrow($async$result, $async$completer);
  74058. while (true)
  74059. switch ($async$goto) {
  74060. case 0:
  74061. // Function start
  74062. t1 = J.getInterceptor$asx($arguments);
  74063. url = A.Uri_parse(t1.$index($arguments, 0).assertString$1("url")._string0$_text);
  74064. t1 = t1.$index($arguments, 1).get$realNull();
  74065. withMap = t1 == null ? null : t1.assertMap$1("with")._map0$_contents;
  74066. t1 = $async$self.$this;
  74067. t2 = t1._async_evaluate0$_callableNode;
  74068. t2.toString;
  74069. if (withMap != null) {
  74070. values = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.ConfiguredValue_2);
  74071. withMap.forEach$1(0, new A._EvaluateVisitor__closure8(values, t2.get$span(t2), t2));
  74072. configuration = new A.ExplicitConfiguration0(t2, values, null);
  74073. } else
  74074. configuration = B.Configuration_Map_empty_null0;
  74075. t3 = t2.get$span(t2);
  74076. $async$goto = 2;
  74077. return A._asyncAwait(t1._async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors(url, "load-css()", t2, new A._EvaluateVisitor__closure9(t1), t3.get$sourceUrl(t3), configuration, true), $async$call$1);
  74078. case 2:
  74079. // returning from await.
  74080. t1._async_evaluate0$_assertConfigurationIsEmpty$2$nameInError(configuration, true);
  74081. // implicit return
  74082. return A._asyncReturn(null, $async$completer);
  74083. }
  74084. });
  74085. return A._asyncStartSync($async$call$1, $async$completer);
  74086. },
  74087. $signature: 312
  74088. };
  74089. A._EvaluateVisitor__closure8.prototype = {
  74090. call$2(variable, value) {
  74091. var t1 = variable.assertString$1("with key"),
  74092. $name = A.stringReplaceAllUnchecked(t1._string0$_text, "_", "-");
  74093. t1 = this.values;
  74094. if (t1.containsKey$1($name))
  74095. throw A.wrapException("The variable $" + $name + " was configured twice.");
  74096. t1.$indexSet(0, $name, new A.ConfiguredValue0(value, this.span, this.callableNode));
  74097. },
  74098. $signature: 55
  74099. };
  74100. A._EvaluateVisitor__closure9.prototype = {
  74101. call$1(module) {
  74102. var t1 = this.$this;
  74103. return t1._async_evaluate0$_combineCss$2$clone(module, true).accept$1(t1);
  74104. },
  74105. $signature: 202
  74106. };
  74107. A._EvaluateVisitor_run_closure2.prototype = {
  74108. call$0() {
  74109. var $async$goto = 0,
  74110. $async$completer = A._makeAsyncAwaitCompleter(type$.EvaluateResult_2),
  74111. $async$returnValue, $async$self = this, t2, t1, url, $async$temp1, $async$temp2;
  74112. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  74113. if ($async$errorCode === 1)
  74114. return A._asyncRethrow($async$result, $async$completer);
  74115. while (true)
  74116. switch ($async$goto) {
  74117. case 0:
  74118. // Function start
  74119. t1 = $async$self.node;
  74120. url = t1.span.file.url;
  74121. if (url != null) {
  74122. t2 = $async$self.$this;
  74123. t2._async_evaluate0$_activeModules.$indexSet(0, url, null);
  74124. if (!(t2._async_evaluate0$_nodeImporter != null && url.toString$0(0) === "stdin"))
  74125. t2._async_evaluate0$_loadedUrls.add$1(0, url);
  74126. }
  74127. t2 = $async$self.$this;
  74128. $async$temp1 = A;
  74129. $async$temp2 = t2;
  74130. $async$goto = 3;
  74131. return A._asyncAwait(t2._async_evaluate0$_execute$2($async$self.importer, t1), $async$call$0);
  74132. case 3:
  74133. // returning from await.
  74134. $async$returnValue = new $async$temp1.EvaluateResult0($async$temp2._async_evaluate0$_combineCss$1($async$result), t2._async_evaluate0$_loadedUrls);
  74135. // goto return
  74136. $async$goto = 1;
  74137. break;
  74138. case 1:
  74139. // return
  74140. return A._asyncReturn($async$returnValue, $async$completer);
  74141. }
  74142. });
  74143. return A._asyncStartSync($async$call$0, $async$completer);
  74144. },
  74145. $signature: 315
  74146. };
  74147. A._EvaluateVisitor__loadModule_closure5.prototype = {
  74148. call$0() {
  74149. return this.callback.call$1(this.builtInModule);
  74150. },
  74151. $signature: 0
  74152. };
  74153. A._EvaluateVisitor__loadModule_closure6.prototype = {
  74154. call$0() {
  74155. var $async$goto = 0,
  74156. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  74157. $async$handler = 1, $async$currentError, $async$next = [], $async$self = this, oldInDependency, module, error, stackTrace, error0, stackTrace0, error1, stackTrace1, error2, stackTrace2, message, exception, t3, t4, t5, t6, t7, t1, t2, result, stylesheet, canonicalUrl, $async$exception;
  74158. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  74159. if ($async$errorCode === 1) {
  74160. $async$currentError = $async$result;
  74161. $async$goto = $async$handler;
  74162. }
  74163. while (true)
  74164. switch ($async$goto) {
  74165. case 0:
  74166. // Function start
  74167. t1 = $async$self.$this;
  74168. t2 = $async$self.nodeWithSpan;
  74169. $async$goto = 2;
  74170. return A._asyncAwait(t1._async_evaluate0$_loadStylesheet$3$baseUrl($async$self.url.toString$0(0), t2.get$span(t2), $async$self.baseUrl), $async$call$0);
  74171. case 2:
  74172. // returning from await.
  74173. result = $async$result;
  74174. stylesheet = result.stylesheet;
  74175. canonicalUrl = stylesheet.span.file.url;
  74176. if (canonicalUrl != null && t1._async_evaluate0$_activeModules.containsKey$1(canonicalUrl)) {
  74177. message = $async$self.namesInErrors ? "Module loop: " + $.$get$context().prettyUri$1(canonicalUrl) + " is already being loaded." : string$.Modulel;
  74178. t2 = A.NullableExtension_andThen0(t1._async_evaluate0$_activeModules.$index(0, canonicalUrl), new A._EvaluateVisitor__loadModule__closure2(t1, message));
  74179. throw A.wrapException(t2 == null ? t1._async_evaluate0$_exception$1(message) : t2);
  74180. }
  74181. if (canonicalUrl != null)
  74182. t1._async_evaluate0$_activeModules.$indexSet(0, canonicalUrl, t2);
  74183. oldInDependency = t1._async_evaluate0$_inDependency;
  74184. t1._async_evaluate0$_inDependency = result.isDependency;
  74185. module = null;
  74186. $async$handler = 3;
  74187. $async$goto = 6;
  74188. return A._asyncAwait(t1._async_evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan(result.importer, stylesheet, $async$self.configuration, $async$self.namesInErrors, t2), $async$call$0);
  74189. case 6:
  74190. // returning from await.
  74191. module = $async$result;
  74192. $async$next.push(5);
  74193. // goto finally
  74194. $async$goto = 4;
  74195. break;
  74196. case 3:
  74197. // uncaught
  74198. $async$next = [1];
  74199. case 4:
  74200. // finally
  74201. $async$handler = 1;
  74202. t1._async_evaluate0$_activeModules.remove$1(0, canonicalUrl);
  74203. t1._async_evaluate0$_inDependency = oldInDependency;
  74204. // goto the next finally handler
  74205. $async$goto = $async$next.pop();
  74206. break;
  74207. case 5:
  74208. // after finally
  74209. $async$handler = 8;
  74210. $async$goto = 11;
  74211. return A._asyncAwait($async$self.callback.call$1(module), $async$call$0);
  74212. case 11:
  74213. // returning from await.
  74214. $async$handler = 1;
  74215. // goto after finally
  74216. $async$goto = 10;
  74217. break;
  74218. case 8:
  74219. // catch
  74220. $async$handler = 7;
  74221. $async$exception = $async$currentError;
  74222. t2 = A.unwrapException($async$exception);
  74223. if (type$.SassRuntimeException_2._is(t2))
  74224. throw $async$exception;
  74225. else if (t2 instanceof A.MultiSpanSassException0) {
  74226. error = t2;
  74227. stackTrace = A.getTraceFromException($async$exception);
  74228. t2 = error._span_exception$_message;
  74229. t3 = error;
  74230. t4 = J.getInterceptor$z(t3);
  74231. t3 = A.SourceSpanException.prototype.get$span.call(t4, t3);
  74232. t4 = error.primaryLabel;
  74233. t5 = error.secondarySpans;
  74234. t6 = error;
  74235. t7 = J.getInterceptor$z(t6);
  74236. A.throwWithTrace0(new A.MultiSpanSassRuntimeException0(t1._async_evaluate0$_stackTrace$1(A.SourceSpanException.prototype.get$span.call(t7, t6)), t4, A.ConstantMap_ConstantMap$from(t5, type$.FileSpan, type$.String), t2, t3), stackTrace);
  74237. } else if (t2 instanceof A.SassException0) {
  74238. error0 = t2;
  74239. stackTrace0 = A.getTraceFromException($async$exception);
  74240. t2 = error0;
  74241. t3 = J.getInterceptor$z(t2);
  74242. A.throwWithTrace0(t1._async_evaluate0$_exception$2(error0._span_exception$_message, A.SourceSpanException.prototype.get$span.call(t3, t2)), stackTrace0);
  74243. } else if (t2 instanceof A.MultiSpanSassScriptException0) {
  74244. error1 = t2;
  74245. stackTrace1 = A.getTraceFromException($async$exception);
  74246. A.throwWithTrace0(t1._async_evaluate0$_multiSpanException$3(error1.message, error1.primaryLabel, error1.secondarySpans), stackTrace1);
  74247. } else if (t2 instanceof A.SassScriptException0) {
  74248. error2 = t2;
  74249. stackTrace2 = A.getTraceFromException($async$exception);
  74250. A.throwWithTrace0(t1._async_evaluate0$_exception$1(error2.message), stackTrace2);
  74251. } else
  74252. throw $async$exception;
  74253. // goto after finally
  74254. $async$goto = 10;
  74255. break;
  74256. case 7:
  74257. // uncaught
  74258. // goto rethrow
  74259. $async$goto = 1;
  74260. break;
  74261. case 10:
  74262. // after finally
  74263. // implicit return
  74264. return A._asyncReturn(null, $async$completer);
  74265. case 1:
  74266. // rethrow
  74267. return A._asyncRethrow($async$currentError, $async$completer);
  74268. }
  74269. });
  74270. return A._asyncStartSync($async$call$0, $async$completer);
  74271. },
  74272. $signature: 2
  74273. };
  74274. A._EvaluateVisitor__loadModule__closure2.prototype = {
  74275. call$1(previousLoad) {
  74276. return this.$this._async_evaluate0$_multiSpanException$3(this.message, "new load", A.LinkedHashMap_LinkedHashMap$_literal([previousLoad.get$span(previousLoad), "original load"], type$.FileSpan, type$.String));
  74277. },
  74278. $signature: 92
  74279. };
  74280. A._EvaluateVisitor__execute_closure2.prototype = {
  74281. call$0() {
  74282. var $async$goto = 0,
  74283. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  74284. $async$self = this, t3, t4, t5, t6, t1, oldImporter, oldStylesheet, oldRoot, oldParent, oldEndOfImports, oldOutOfOrderImports, oldExtensionStore, t2, oldStyleRule, oldMediaQueries, oldDeclarationName, oldInUnknownAtRule, oldInKeyframes, oldConfiguration;
  74285. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  74286. if ($async$errorCode === 1)
  74287. return A._asyncRethrow($async$result, $async$completer);
  74288. while (true)
  74289. switch ($async$goto) {
  74290. case 0:
  74291. // Function start
  74292. t1 = $async$self.$this;
  74293. oldImporter = t1._async_evaluate0$_importer;
  74294. oldStylesheet = t1._async_evaluate0$__stylesheet;
  74295. oldRoot = t1._async_evaluate0$__root;
  74296. oldParent = t1._async_evaluate0$__parent;
  74297. oldEndOfImports = t1._async_evaluate0$__endOfImports;
  74298. oldOutOfOrderImports = t1._async_evaluate0$_outOfOrderImports;
  74299. oldExtensionStore = t1._async_evaluate0$__extensionStore;
  74300. t2 = t1._async_evaluate0$_atRootExcludingStyleRule;
  74301. oldStyleRule = t2 ? null : t1._async_evaluate0$_styleRuleIgnoringAtRoot;
  74302. oldMediaQueries = t1._async_evaluate0$_mediaQueries;
  74303. oldDeclarationName = t1._async_evaluate0$_declarationName;
  74304. oldInUnknownAtRule = t1._async_evaluate0$_inUnknownAtRule;
  74305. oldInKeyframes = t1._async_evaluate0$_inKeyframes;
  74306. oldConfiguration = t1._async_evaluate0$_configuration;
  74307. t1._async_evaluate0$_importer = $async$self.importer;
  74308. t3 = t1._async_evaluate0$__stylesheet = $async$self.stylesheet;
  74309. t4 = t3.span;
  74310. t5 = t1._async_evaluate0$__parent = t1._async_evaluate0$__root = A.ModifiableCssStylesheet$0(t4);
  74311. t1._async_evaluate0$__endOfImports = 0;
  74312. t1._async_evaluate0$_outOfOrderImports = null;
  74313. t1._async_evaluate0$__extensionStore = $async$self.extensionStore;
  74314. t1._async_evaluate0$_declarationName = t1._async_evaluate0$_mediaQueries = t1._async_evaluate0$_styleRuleIgnoringAtRoot = null;
  74315. t1._async_evaluate0$_inKeyframes = t1._async_evaluate0$_atRootExcludingStyleRule = t1._async_evaluate0$_inUnknownAtRule = false;
  74316. t6 = $async$self.configuration;
  74317. if (t6 != null)
  74318. t1._async_evaluate0$_configuration = t6;
  74319. $async$goto = 2;
  74320. return A._asyncAwait(t1.visitStylesheet$1(t3), $async$call$0);
  74321. case 2:
  74322. // returning from await.
  74323. t3 = t1._async_evaluate0$_outOfOrderImports == null ? t5 : new A.CssStylesheet0(new A.UnmodifiableListView(t1._async_evaluate0$_addOutOfOrderImports$0(), type$.UnmodifiableListView_CssNode_2), t4);
  74324. $async$self.css._value = t3;
  74325. t1._async_evaluate0$_importer = oldImporter;
  74326. t1._async_evaluate0$__stylesheet = oldStylesheet;
  74327. t1._async_evaluate0$__root = oldRoot;
  74328. t1._async_evaluate0$__parent = oldParent;
  74329. t1._async_evaluate0$__endOfImports = oldEndOfImports;
  74330. t1._async_evaluate0$_outOfOrderImports = oldOutOfOrderImports;
  74331. t1._async_evaluate0$__extensionStore = oldExtensionStore;
  74332. t1._async_evaluate0$_styleRuleIgnoringAtRoot = oldStyleRule;
  74333. t1._async_evaluate0$_mediaQueries = oldMediaQueries;
  74334. t1._async_evaluate0$_declarationName = oldDeclarationName;
  74335. t1._async_evaluate0$_inUnknownAtRule = oldInUnknownAtRule;
  74336. t1._async_evaluate0$_atRootExcludingStyleRule = t2;
  74337. t1._async_evaluate0$_inKeyframes = oldInKeyframes;
  74338. t1._async_evaluate0$_configuration = oldConfiguration;
  74339. // implicit return
  74340. return A._asyncReturn(null, $async$completer);
  74341. }
  74342. });
  74343. return A._asyncStartSync($async$call$0, $async$completer);
  74344. },
  74345. $signature: 2
  74346. };
  74347. A._EvaluateVisitor__combineCss_closure8.prototype = {
  74348. call$1(module) {
  74349. return module.get$transitivelyContainsCss();
  74350. },
  74351. $signature: 134
  74352. };
  74353. A._EvaluateVisitor__combineCss_closure9.prototype = {
  74354. call$1(target) {
  74355. return !this.selectors.contains$1(0, target);
  74356. },
  74357. $signature: 13
  74358. };
  74359. A._EvaluateVisitor__combineCss_closure10.prototype = {
  74360. call$1(module) {
  74361. return module.cloneCss$0();
  74362. },
  74363. $signature: 317
  74364. };
  74365. A._EvaluateVisitor__extendModules_closure5.prototype = {
  74366. call$1(target) {
  74367. return !this.originalSelectors.contains$1(0, target);
  74368. },
  74369. $signature: 13
  74370. };
  74371. A._EvaluateVisitor__extendModules_closure6.prototype = {
  74372. call$0() {
  74373. return A._setArrayType([], type$.JSArray_ExtensionStore_2);
  74374. },
  74375. $signature: 199
  74376. };
  74377. A._EvaluateVisitor__topologicalModules_visitModule2.prototype = {
  74378. call$1(module) {
  74379. var t1, t2, t3, _i, upstream;
  74380. for (t1 = module.get$upstream(), t2 = t1.length, t3 = this.seen, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
  74381. upstream = t1[_i];
  74382. if (upstream.get$transitivelyContainsCss() && t3.add$1(0, upstream))
  74383. this.call$1(upstream);
  74384. }
  74385. this.sorted.addFirst$1(module);
  74386. },
  74387. $signature: 202
  74388. };
  74389. A._EvaluateVisitor_visitAtRootRule_closure8.prototype = {
  74390. call$0() {
  74391. var t1 = A.SpanScanner$(this.resolved, null);
  74392. return new A.AtRootQueryParser0(t1, this.$this._async_evaluate0$_logger).parse$0();
  74393. },
  74394. $signature: 130
  74395. };
  74396. A._EvaluateVisitor_visitAtRootRule_closure9.prototype = {
  74397. call$0() {
  74398. var $async$goto = 0,
  74399. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  74400. $async$self = this, t1, t2, t3, _i;
  74401. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  74402. if ($async$errorCode === 1)
  74403. return A._asyncRethrow($async$result, $async$completer);
  74404. while (true)
  74405. switch ($async$goto) {
  74406. case 0:
  74407. // Function start
  74408. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  74409. case 2:
  74410. // for condition
  74411. if (!(_i < t2)) {
  74412. // goto after for
  74413. $async$goto = 4;
  74414. break;
  74415. }
  74416. $async$goto = 5;
  74417. return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  74418. case 5:
  74419. // returning from await.
  74420. case 3:
  74421. // for update
  74422. ++_i;
  74423. // goto for condition
  74424. $async$goto = 2;
  74425. break;
  74426. case 4:
  74427. // after for
  74428. // implicit return
  74429. return A._asyncReturn(null, $async$completer);
  74430. }
  74431. });
  74432. return A._asyncStartSync($async$call$0, $async$completer);
  74433. },
  74434. $signature: 2
  74435. };
  74436. A._EvaluateVisitor_visitAtRootRule_closure10.prototype = {
  74437. call$0() {
  74438. var $async$goto = 0,
  74439. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  74440. $async$self = this, t1, t2, t3, _i;
  74441. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  74442. if ($async$errorCode === 1)
  74443. return A._asyncRethrow($async$result, $async$completer);
  74444. while (true)
  74445. switch ($async$goto) {
  74446. case 0:
  74447. // Function start
  74448. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  74449. case 2:
  74450. // for condition
  74451. if (!(_i < t2)) {
  74452. // goto after for
  74453. $async$goto = 4;
  74454. break;
  74455. }
  74456. $async$goto = 5;
  74457. return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  74458. case 5:
  74459. // returning from await.
  74460. case 3:
  74461. // for update
  74462. ++_i;
  74463. // goto for condition
  74464. $async$goto = 2;
  74465. break;
  74466. case 4:
  74467. // after for
  74468. // implicit return
  74469. return A._asyncReturn(null, $async$completer);
  74470. }
  74471. });
  74472. return A._asyncStartSync($async$call$0, $async$completer);
  74473. },
  74474. $signature: 38
  74475. };
  74476. A._EvaluateVisitor__scopeForAtRoot_closure17.prototype = {
  74477. call$1(callback) {
  74478. var $async$goto = 0,
  74479. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  74480. $async$self = this, t1, t2;
  74481. var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  74482. if ($async$errorCode === 1)
  74483. return A._asyncRethrow($async$result, $async$completer);
  74484. while (true)
  74485. switch ($async$goto) {
  74486. case 0:
  74487. // Function start
  74488. t1 = $async$self.$this;
  74489. t2 = t1._async_evaluate0$_assertInModule$2(t1._async_evaluate0$__parent, "__parent");
  74490. t1._async_evaluate0$__parent = $async$self.newParent;
  74491. $async$goto = 2;
  74492. return A._asyncAwait(t1._async_evaluate0$_environment.scope$1$2$when(callback, $async$self.node.hasDeclarations, type$.void), $async$call$1);
  74493. case 2:
  74494. // returning from await.
  74495. t1._async_evaluate0$__parent = t2;
  74496. // implicit return
  74497. return A._asyncReturn(null, $async$completer);
  74498. }
  74499. });
  74500. return A._asyncStartSync($async$call$1, $async$completer);
  74501. },
  74502. $signature: 33
  74503. };
  74504. A._EvaluateVisitor__scopeForAtRoot_closure18.prototype = {
  74505. call$1(callback) {
  74506. var $async$goto = 0,
  74507. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  74508. $async$self = this, t1, oldAtRootExcludingStyleRule;
  74509. var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  74510. if ($async$errorCode === 1)
  74511. return A._asyncRethrow($async$result, $async$completer);
  74512. while (true)
  74513. switch ($async$goto) {
  74514. case 0:
  74515. // Function start
  74516. t1 = $async$self.$this;
  74517. oldAtRootExcludingStyleRule = t1._async_evaluate0$_atRootExcludingStyleRule;
  74518. t1._async_evaluate0$_atRootExcludingStyleRule = true;
  74519. $async$goto = 2;
  74520. return A._asyncAwait($async$self.innerScope.call$1(callback), $async$call$1);
  74521. case 2:
  74522. // returning from await.
  74523. t1._async_evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  74524. // implicit return
  74525. return A._asyncReturn(null, $async$completer);
  74526. }
  74527. });
  74528. return A._asyncStartSync($async$call$1, $async$completer);
  74529. },
  74530. $signature: 33
  74531. };
  74532. A._EvaluateVisitor__scopeForAtRoot_closure19.prototype = {
  74533. call$1(callback) {
  74534. return this.$this._async_evaluate0$_withMediaQueries$1$3(null, null, new A._EvaluateVisitor__scopeForAtRoot__closure2(this.innerScope, callback), type$.Null);
  74535. },
  74536. $signature: 33
  74537. };
  74538. A._EvaluateVisitor__scopeForAtRoot__closure2.prototype = {
  74539. call$0() {
  74540. return this.innerScope.call$1(this.callback);
  74541. },
  74542. $signature: 2
  74543. };
  74544. A._EvaluateVisitor__scopeForAtRoot_closure20.prototype = {
  74545. call$1(callback) {
  74546. var $async$goto = 0,
  74547. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  74548. $async$self = this, t1, wasInKeyframes;
  74549. var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  74550. if ($async$errorCode === 1)
  74551. return A._asyncRethrow($async$result, $async$completer);
  74552. while (true)
  74553. switch ($async$goto) {
  74554. case 0:
  74555. // Function start
  74556. t1 = $async$self.$this;
  74557. wasInKeyframes = t1._async_evaluate0$_inKeyframes;
  74558. t1._async_evaluate0$_inKeyframes = false;
  74559. $async$goto = 2;
  74560. return A._asyncAwait($async$self.innerScope.call$1(callback), $async$call$1);
  74561. case 2:
  74562. // returning from await.
  74563. t1._async_evaluate0$_inKeyframes = wasInKeyframes;
  74564. // implicit return
  74565. return A._asyncReturn(null, $async$completer);
  74566. }
  74567. });
  74568. return A._asyncStartSync($async$call$1, $async$completer);
  74569. },
  74570. $signature: 33
  74571. };
  74572. A._EvaluateVisitor__scopeForAtRoot_closure21.prototype = {
  74573. call$1($parent) {
  74574. return type$.CssAtRule_2._is($parent);
  74575. },
  74576. $signature: 197
  74577. };
  74578. A._EvaluateVisitor__scopeForAtRoot_closure22.prototype = {
  74579. call$1(callback) {
  74580. var $async$goto = 0,
  74581. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  74582. $async$self = this, t1, wasInUnknownAtRule;
  74583. var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  74584. if ($async$errorCode === 1)
  74585. return A._asyncRethrow($async$result, $async$completer);
  74586. while (true)
  74587. switch ($async$goto) {
  74588. case 0:
  74589. // Function start
  74590. t1 = $async$self.$this;
  74591. wasInUnknownAtRule = t1._async_evaluate0$_inUnknownAtRule;
  74592. t1._async_evaluate0$_inUnknownAtRule = false;
  74593. $async$goto = 2;
  74594. return A._asyncAwait($async$self.innerScope.call$1(callback), $async$call$1);
  74595. case 2:
  74596. // returning from await.
  74597. t1._async_evaluate0$_inUnknownAtRule = wasInUnknownAtRule;
  74598. // implicit return
  74599. return A._asyncReturn(null, $async$completer);
  74600. }
  74601. });
  74602. return A._asyncStartSync($async$call$1, $async$completer);
  74603. },
  74604. $signature: 33
  74605. };
  74606. A._EvaluateVisitor_visitContentRule_closure2.prototype = {
  74607. call$0() {
  74608. var $async$goto = 0,
  74609. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  74610. $async$returnValue, $async$self = this, t1, t2, t3, _i;
  74611. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  74612. if ($async$errorCode === 1)
  74613. return A._asyncRethrow($async$result, $async$completer);
  74614. while (true)
  74615. switch ($async$goto) {
  74616. case 0:
  74617. // Function start
  74618. t1 = $async$self.content.declaration.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  74619. case 3:
  74620. // for condition
  74621. if (!(_i < t2)) {
  74622. // goto after for
  74623. $async$goto = 5;
  74624. break;
  74625. }
  74626. $async$goto = 6;
  74627. return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  74628. case 6:
  74629. // returning from await.
  74630. case 4:
  74631. // for update
  74632. ++_i;
  74633. // goto for condition
  74634. $async$goto = 3;
  74635. break;
  74636. case 5:
  74637. // after for
  74638. $async$returnValue = null;
  74639. // goto return
  74640. $async$goto = 1;
  74641. break;
  74642. case 1:
  74643. // return
  74644. return A._asyncReturn($async$returnValue, $async$completer);
  74645. }
  74646. });
  74647. return A._asyncStartSync($async$call$0, $async$completer);
  74648. },
  74649. $signature: 2
  74650. };
  74651. A._EvaluateVisitor_visitDeclaration_closure5.prototype = {
  74652. call$1(value) {
  74653. return this.$call$body$_EvaluateVisitor_visitDeclaration_closure0(value);
  74654. },
  74655. $call$body$_EvaluateVisitor_visitDeclaration_closure0(value) {
  74656. var $async$goto = 0,
  74657. $async$completer = A._makeAsyncAwaitCompleter(type$.CssValue_Value_2),
  74658. $async$returnValue, $async$self = this, $async$temp1;
  74659. var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  74660. if ($async$errorCode === 1)
  74661. return A._asyncRethrow($async$result, $async$completer);
  74662. while (true)
  74663. switch ($async$goto) {
  74664. case 0:
  74665. // Function start
  74666. $async$temp1 = A;
  74667. $async$goto = 3;
  74668. return A._asyncAwait(value.accept$1($async$self.$this), $async$call$1);
  74669. case 3:
  74670. // returning from await.
  74671. $async$returnValue = new $async$temp1.CssValue0($async$result, value.get$span(value), type$.CssValue_Value_2);
  74672. // goto return
  74673. $async$goto = 1;
  74674. break;
  74675. case 1:
  74676. // return
  74677. return A._asyncReturn($async$returnValue, $async$completer);
  74678. }
  74679. });
  74680. return A._asyncStartSync($async$call$1, $async$completer);
  74681. },
  74682. $signature: 321
  74683. };
  74684. A._EvaluateVisitor_visitDeclaration_closure6.prototype = {
  74685. call$0() {
  74686. var $async$goto = 0,
  74687. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  74688. $async$self = this, t1, t2, t3, _i;
  74689. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  74690. if ($async$errorCode === 1)
  74691. return A._asyncRethrow($async$result, $async$completer);
  74692. while (true)
  74693. switch ($async$goto) {
  74694. case 0:
  74695. // Function start
  74696. t1 = $async$self.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  74697. case 2:
  74698. // for condition
  74699. if (!(_i < t2)) {
  74700. // goto after for
  74701. $async$goto = 4;
  74702. break;
  74703. }
  74704. $async$goto = 5;
  74705. return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  74706. case 5:
  74707. // returning from await.
  74708. case 3:
  74709. // for update
  74710. ++_i;
  74711. // goto for condition
  74712. $async$goto = 2;
  74713. break;
  74714. case 4:
  74715. // after for
  74716. // implicit return
  74717. return A._asyncReturn(null, $async$completer);
  74718. }
  74719. });
  74720. return A._asyncStartSync($async$call$0, $async$completer);
  74721. },
  74722. $signature: 2
  74723. };
  74724. A._EvaluateVisitor_visitEachRule_closure8.prototype = {
  74725. call$1(value) {
  74726. var t1 = this.$this,
  74727. t2 = this.nodeWithSpan;
  74728. return t1._async_evaluate0$_environment.setLocalVariable$3(B.JSArray_methods.get$first(this.node.variables), t1._async_evaluate0$_withoutSlash$2(value, t2), t2);
  74729. },
  74730. $signature: 56
  74731. };
  74732. A._EvaluateVisitor_visitEachRule_closure9.prototype = {
  74733. call$1(value) {
  74734. return this.$this._async_evaluate0$_setMultipleVariables$3(this.node.variables, value, this.nodeWithSpan);
  74735. },
  74736. $signature: 56
  74737. };
  74738. A._EvaluateVisitor_visitEachRule_closure10.prototype = {
  74739. call$0() {
  74740. var _this = this,
  74741. t1 = _this.$this;
  74742. return t1._async_evaluate0$_handleReturn$2(_this.list.get$asList(), new A._EvaluateVisitor_visitEachRule__closure2(t1, _this.setVariables, _this.node));
  74743. },
  74744. $signature: 74
  74745. };
  74746. A._EvaluateVisitor_visitEachRule__closure2.prototype = {
  74747. call$1(element) {
  74748. var t1;
  74749. this.setVariables.call$1(element);
  74750. t1 = this.$this;
  74751. return t1._async_evaluate0$_handleReturn$2(this.node.children, new A._EvaluateVisitor_visitEachRule___closure2(t1));
  74752. },
  74753. $signature: 324
  74754. };
  74755. A._EvaluateVisitor_visitEachRule___closure2.prototype = {
  74756. call$1(child) {
  74757. return child.accept$1(this.$this);
  74758. },
  74759. $signature: 79
  74760. };
  74761. A._EvaluateVisitor_visitExtendRule_closure2.prototype = {
  74762. call$0() {
  74763. var t1 = this.targetText;
  74764. return A.SelectorList_SelectorList$parse0(A.trimAscii0(t1.get$value(t1), true), false, true, this.$this._async_evaluate0$_logger);
  74765. },
  74766. $signature: 45
  74767. };
  74768. A._EvaluateVisitor_visitAtRule_closure8.prototype = {
  74769. call$1(value) {
  74770. return this.$this._async_evaluate0$_interpolationToValue$3$trim$warnForColor(value, true, true);
  74771. },
  74772. $signature: 327
  74773. };
  74774. A._EvaluateVisitor_visitAtRule_closure9.prototype = {
  74775. call$0() {
  74776. var $async$goto = 0,
  74777. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  74778. $async$self = this, t2, t3, _i, t1, styleRule;
  74779. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  74780. if ($async$errorCode === 1)
  74781. return A._asyncRethrow($async$result, $async$completer);
  74782. while (true)
  74783. switch ($async$goto) {
  74784. case 0:
  74785. // Function start
  74786. t1 = $async$self.$this;
  74787. styleRule = t1._async_evaluate0$_atRootExcludingStyleRule ? null : t1._async_evaluate0$_styleRuleIgnoringAtRoot;
  74788. $async$goto = styleRule == null || t1._async_evaluate0$_inKeyframes ? 2 : 4;
  74789. break;
  74790. case 2:
  74791. // then
  74792. t2 = $async$self.children, t3 = t2.length, _i = 0;
  74793. case 5:
  74794. // for condition
  74795. if (!(_i < t3)) {
  74796. // goto after for
  74797. $async$goto = 7;
  74798. break;
  74799. }
  74800. $async$goto = 8;
  74801. return A._asyncAwait(t2[_i].accept$1(t1), $async$call$0);
  74802. case 8:
  74803. // returning from await.
  74804. case 6:
  74805. // for update
  74806. ++_i;
  74807. // goto for condition
  74808. $async$goto = 5;
  74809. break;
  74810. case 7:
  74811. // after for
  74812. // goto join
  74813. $async$goto = 3;
  74814. break;
  74815. case 4:
  74816. // else
  74817. $async$goto = 9;
  74818. return A._asyncAwait(t1._async_evaluate0$_withParent$2$3$scopeWhen(A.ModifiableCssStyleRule$0(styleRule.selector, styleRule.span, styleRule.originalSelector), new A._EvaluateVisitor_visitAtRule__closure2(t1, $async$self.children), false, type$.ModifiableCssStyleRule_2, type$.Null), $async$call$0);
  74819. case 9:
  74820. // returning from await.
  74821. case 3:
  74822. // join
  74823. // implicit return
  74824. return A._asyncReturn(null, $async$completer);
  74825. }
  74826. });
  74827. return A._asyncStartSync($async$call$0, $async$completer);
  74828. },
  74829. $signature: 2
  74830. };
  74831. A._EvaluateVisitor_visitAtRule__closure2.prototype = {
  74832. call$0() {
  74833. var $async$goto = 0,
  74834. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  74835. $async$self = this, t1, t2, t3, _i;
  74836. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  74837. if ($async$errorCode === 1)
  74838. return A._asyncRethrow($async$result, $async$completer);
  74839. while (true)
  74840. switch ($async$goto) {
  74841. case 0:
  74842. // Function start
  74843. t1 = $async$self.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  74844. case 2:
  74845. // for condition
  74846. if (!(_i < t2)) {
  74847. // goto after for
  74848. $async$goto = 4;
  74849. break;
  74850. }
  74851. $async$goto = 5;
  74852. return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  74853. case 5:
  74854. // returning from await.
  74855. case 3:
  74856. // for update
  74857. ++_i;
  74858. // goto for condition
  74859. $async$goto = 2;
  74860. break;
  74861. case 4:
  74862. // after for
  74863. // implicit return
  74864. return A._asyncReturn(null, $async$completer);
  74865. }
  74866. });
  74867. return A._asyncStartSync($async$call$0, $async$completer);
  74868. },
  74869. $signature: 2
  74870. };
  74871. A._EvaluateVisitor_visitAtRule_closure10.prototype = {
  74872. call$1(node) {
  74873. return type$.CssStyleRule_2._is(node);
  74874. },
  74875. $signature: 6
  74876. };
  74877. A._EvaluateVisitor_visitForRule_closure14.prototype = {
  74878. call$0() {
  74879. var $async$goto = 0,
  74880. $async$completer = A._makeAsyncAwaitCompleter(type$.SassNumber_2),
  74881. $async$returnValue, $async$self = this;
  74882. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  74883. if ($async$errorCode === 1)
  74884. return A._asyncRethrow($async$result, $async$completer);
  74885. while (true)
  74886. switch ($async$goto) {
  74887. case 0:
  74888. // Function start
  74889. $async$goto = 3;
  74890. return A._asyncAwait($async$self.node.from.accept$1($async$self.$this), $async$call$0);
  74891. case 3:
  74892. // returning from await.
  74893. $async$returnValue = $async$result.assertNumber$0();
  74894. // goto return
  74895. $async$goto = 1;
  74896. break;
  74897. case 1:
  74898. // return
  74899. return A._asyncReturn($async$returnValue, $async$completer);
  74900. }
  74901. });
  74902. return A._asyncStartSync($async$call$0, $async$completer);
  74903. },
  74904. $signature: 192
  74905. };
  74906. A._EvaluateVisitor_visitForRule_closure15.prototype = {
  74907. call$0() {
  74908. var $async$goto = 0,
  74909. $async$completer = A._makeAsyncAwaitCompleter(type$.SassNumber_2),
  74910. $async$returnValue, $async$self = this;
  74911. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  74912. if ($async$errorCode === 1)
  74913. return A._asyncRethrow($async$result, $async$completer);
  74914. while (true)
  74915. switch ($async$goto) {
  74916. case 0:
  74917. // Function start
  74918. $async$goto = 3;
  74919. return A._asyncAwait($async$self.node.to.accept$1($async$self.$this), $async$call$0);
  74920. case 3:
  74921. // returning from await.
  74922. $async$returnValue = $async$result.assertNumber$0();
  74923. // goto return
  74924. $async$goto = 1;
  74925. break;
  74926. case 1:
  74927. // return
  74928. return A._asyncReturn($async$returnValue, $async$completer);
  74929. }
  74930. });
  74931. return A._asyncStartSync($async$call$0, $async$completer);
  74932. },
  74933. $signature: 192
  74934. };
  74935. A._EvaluateVisitor_visitForRule_closure16.prototype = {
  74936. call$0() {
  74937. return this.fromNumber.assertInt$0();
  74938. },
  74939. $signature: 12
  74940. };
  74941. A._EvaluateVisitor_visitForRule_closure17.prototype = {
  74942. call$0() {
  74943. var t1 = this.fromNumber;
  74944. return this.toNumber.coerce$2(t1.get$numeratorUnits(t1), t1.get$denominatorUnits(t1)).assertInt$0();
  74945. },
  74946. $signature: 12
  74947. };
  74948. A._EvaluateVisitor_visitForRule_closure18.prototype = {
  74949. call$0() {
  74950. var $async$goto = 0,
  74951. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
  74952. $async$returnValue, $async$self = this, i, t3, t4, t5, t6, t7, t8, result, t1, t2, nodeWithSpan;
  74953. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  74954. if ($async$errorCode === 1)
  74955. return A._asyncRethrow($async$result, $async$completer);
  74956. while (true)
  74957. switch ($async$goto) {
  74958. case 0:
  74959. // Function start
  74960. t1 = $async$self.$this;
  74961. t2 = $async$self.node;
  74962. nodeWithSpan = t1._async_evaluate0$_expressionNode$1(t2.from);
  74963. i = $async$self.from, t3 = $async$self._box_0, t4 = $async$self.direction, t5 = t2.variable, t6 = $async$self.fromNumber, t2 = t2.children;
  74964. case 3:
  74965. // for condition
  74966. if (!(i !== t3.to)) {
  74967. // goto after for
  74968. $async$goto = 5;
  74969. break;
  74970. }
  74971. t7 = t1._async_evaluate0$_environment;
  74972. t8 = t6.get$numeratorUnits(t6);
  74973. t7.setLocalVariable$3(t5, A.SassNumber_SassNumber$withUnits0(i, t6.get$denominatorUnits(t6), t8), nodeWithSpan);
  74974. $async$goto = 6;
  74975. return A._asyncAwait(t1._async_evaluate0$_handleReturn$2(t2, new A._EvaluateVisitor_visitForRule__closure2(t1)), $async$call$0);
  74976. case 6:
  74977. // returning from await.
  74978. result = $async$result;
  74979. if (result != null) {
  74980. $async$returnValue = result;
  74981. // goto return
  74982. $async$goto = 1;
  74983. break;
  74984. }
  74985. case 4:
  74986. // for update
  74987. i += t4;
  74988. // goto for condition
  74989. $async$goto = 3;
  74990. break;
  74991. case 5:
  74992. // after for
  74993. $async$returnValue = null;
  74994. // goto return
  74995. $async$goto = 1;
  74996. break;
  74997. case 1:
  74998. // return
  74999. return A._asyncReturn($async$returnValue, $async$completer);
  75000. }
  75001. });
  75002. return A._asyncStartSync($async$call$0, $async$completer);
  75003. },
  75004. $signature: 74
  75005. };
  75006. A._EvaluateVisitor_visitForRule__closure2.prototype = {
  75007. call$1(child) {
  75008. return child.accept$1(this.$this);
  75009. },
  75010. $signature: 79
  75011. };
  75012. A._EvaluateVisitor_visitForwardRule_closure5.prototype = {
  75013. call$1(module) {
  75014. this.$this._async_evaluate0$_environment.forwardModule$2(module, this.node);
  75015. },
  75016. $signature: 140
  75017. };
  75018. A._EvaluateVisitor_visitForwardRule_closure6.prototype = {
  75019. call$1(module) {
  75020. this.$this._async_evaluate0$_environment.forwardModule$2(module, this.node);
  75021. },
  75022. $signature: 140
  75023. };
  75024. A._EvaluateVisitor_visitIfRule_closure2.prototype = {
  75025. call$0() {
  75026. var t1 = this.$this;
  75027. return t1._async_evaluate0$_handleReturn$2(this._box_0.clause.children, new A._EvaluateVisitor_visitIfRule__closure2(t1));
  75028. },
  75029. $signature: 74
  75030. };
  75031. A._EvaluateVisitor_visitIfRule__closure2.prototype = {
  75032. call$1(child) {
  75033. return child.accept$1(this.$this);
  75034. },
  75035. $signature: 79
  75036. };
  75037. A._EvaluateVisitor__visitDynamicImport_closure2.prototype = {
  75038. call$0() {
  75039. var $async$goto = 0,
  75040. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  75041. $async$returnValue, $async$self = this, t3, t4, oldImporter, oldInDependency, loadsUserDefinedModules, children, t5, t6, t7, t8, t9, t10, environment, module, visitor, t1, t2, result, stylesheet, url;
  75042. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  75043. if ($async$errorCode === 1)
  75044. return A._asyncRethrow($async$result, $async$completer);
  75045. while (true)
  75046. switch ($async$goto) {
  75047. case 0:
  75048. // Function start
  75049. t1 = $async$self.$this;
  75050. t2 = $async$self.$import;
  75051. $async$goto = 3;
  75052. return A._asyncAwait(t1._async_evaluate0$_loadStylesheet$3$forImport(t2.urlString, t2.span, true), $async$call$0);
  75053. case 3:
  75054. // returning from await.
  75055. result = $async$result;
  75056. stylesheet = result.stylesheet;
  75057. url = stylesheet.span.file.url;
  75058. if (url != null) {
  75059. t3 = t1._async_evaluate0$_activeModules;
  75060. if (t3.containsKey$1(url)) {
  75061. t2 = A.NullableExtension_andThen0(t3.$index(0, url), new A._EvaluateVisitor__visitDynamicImport__closure11(t1));
  75062. throw A.wrapException(t2 == null ? t1._async_evaluate0$_exception$1("This file is already being loaded.") : t2);
  75063. }
  75064. t3.$indexSet(0, url, t2);
  75065. }
  75066. t2 = stylesheet._stylesheet1$_uses;
  75067. t3 = type$.UnmodifiableListView_UseRule_2;
  75068. t4 = new A.UnmodifiableListView(t2, t3);
  75069. if (t4.get$length(t4) === 0) {
  75070. t4 = new A.UnmodifiableListView(stylesheet._stylesheet1$_forwards, type$.UnmodifiableListView_ForwardRule_2);
  75071. t4 = t4.get$length(t4) === 0;
  75072. } else
  75073. t4 = false;
  75074. $async$goto = t4 ? 4 : 5;
  75075. break;
  75076. case 4:
  75077. // then
  75078. oldImporter = t1._async_evaluate0$_importer;
  75079. t2 = t1._async_evaluate0$_assertInModule$2(t1._async_evaluate0$__stylesheet, "_stylesheet");
  75080. oldInDependency = t1._async_evaluate0$_inDependency;
  75081. t1._async_evaluate0$_importer = result.importer;
  75082. t1._async_evaluate0$__stylesheet = stylesheet;
  75083. t1._async_evaluate0$_inDependency = result.isDependency;
  75084. $async$goto = 6;
  75085. return A._asyncAwait(t1.visitStylesheet$1(stylesheet), $async$call$0);
  75086. case 6:
  75087. // returning from await.
  75088. t1._async_evaluate0$_importer = oldImporter;
  75089. t1._async_evaluate0$__stylesheet = t2;
  75090. t1._async_evaluate0$_inDependency = oldInDependency;
  75091. t1._async_evaluate0$_activeModules.remove$1(0, url);
  75092. // goto return
  75093. $async$goto = 1;
  75094. break;
  75095. case 5:
  75096. // join
  75097. t2 = new A.UnmodifiableListView(t2, t3);
  75098. if (!t2.any$1(t2, new A._EvaluateVisitor__visitDynamicImport__closure12())) {
  75099. t2 = new A.UnmodifiableListView(stylesheet._stylesheet1$_forwards, type$.UnmodifiableListView_ForwardRule_2);
  75100. loadsUserDefinedModules = t2.any$1(t2, new A._EvaluateVisitor__visitDynamicImport__closure13());
  75101. } else
  75102. loadsUserDefinedModules = true;
  75103. children = A._Cell$();
  75104. t2 = t1._async_evaluate0$_environment;
  75105. t3 = type$.String;
  75106. t4 = type$.Module_AsyncCallable_2;
  75107. t5 = type$.AstNode_2;
  75108. t6 = A._setArrayType([], type$.JSArray_Module_AsyncCallable_2);
  75109. t7 = t2._async_environment0$_variables;
  75110. t7 = A._setArrayType(t7.slice(0), A._arrayInstanceType(t7));
  75111. t8 = t2._async_environment0$_variableNodes;
  75112. t8 = A._setArrayType(t8.slice(0), A._arrayInstanceType(t8));
  75113. t9 = t2._async_environment0$_functions;
  75114. t9 = A._setArrayType(t9.slice(0), A._arrayInstanceType(t9));
  75115. t10 = t2._async_environment0$_mixins;
  75116. t10 = A._setArrayType(t10.slice(0), A._arrayInstanceType(t10));
  75117. environment = A.AsyncEnvironment$_0(A.LinkedHashMap_LinkedHashMap$_empty(t3, t4), A.LinkedHashMap_LinkedHashMap$_empty(t3, t5), A.LinkedHashMap_LinkedHashMap$_empty(t4, t5), t2._async_environment0$_importedModules, null, null, t6, t7, t8, t9, t10, t2._async_environment0$_content);
  75118. $async$goto = 7;
  75119. return A._asyncAwait(t1._async_evaluate0$_withEnvironment$1$2(environment, new A._EvaluateVisitor__visitDynamicImport__closure14(t1, result, stylesheet, loadsUserDefinedModules, environment, children), type$.Null), $async$call$0);
  75120. case 7:
  75121. // returning from await.
  75122. module = environment.toDummyModule$0();
  75123. t1._async_evaluate0$_environment.importForwards$1(module);
  75124. $async$goto = loadsUserDefinedModules ? 8 : 9;
  75125. break;
  75126. case 8:
  75127. // then
  75128. $async$goto = module.transitivelyContainsCss ? 10 : 11;
  75129. break;
  75130. case 10:
  75131. // then
  75132. $async$goto = 12;
  75133. return A._asyncAwait(t1._async_evaluate0$_combineCss$2$clone(module, module.transitivelyContainsExtensions).accept$1(t1), $async$call$0);
  75134. case 12:
  75135. // returning from await.
  75136. case 11:
  75137. // join
  75138. visitor = new A._ImportedCssVisitor2(t1);
  75139. for (t2 = J.get$iterator$ax(children._readLocal$0()); t2.moveNext$0();)
  75140. t2.get$current(t2).accept$1(visitor);
  75141. case 9:
  75142. // join
  75143. t1._async_evaluate0$_activeModules.remove$1(0, url);
  75144. case 1:
  75145. // return
  75146. return A._asyncReturn($async$returnValue, $async$completer);
  75147. }
  75148. });
  75149. return A._asyncStartSync($async$call$0, $async$completer);
  75150. },
  75151. $signature: 38
  75152. };
  75153. A._EvaluateVisitor__visitDynamicImport__closure11.prototype = {
  75154. call$1(previousLoad) {
  75155. return this.$this._async_evaluate0$_multiSpanException$3("This file is already being loaded.", "new load", A.LinkedHashMap_LinkedHashMap$_literal([previousLoad.get$span(previousLoad), "original load"], type$.FileSpan, type$.String));
  75156. },
  75157. $signature: 92
  75158. };
  75159. A._EvaluateVisitor__visitDynamicImport__closure12.prototype = {
  75160. call$1(rule) {
  75161. return rule.url.get$scheme() !== "sass";
  75162. },
  75163. $signature: 190
  75164. };
  75165. A._EvaluateVisitor__visitDynamicImport__closure13.prototype = {
  75166. call$1(rule) {
  75167. return rule.url.get$scheme() !== "sass";
  75168. },
  75169. $signature: 188
  75170. };
  75171. A._EvaluateVisitor__visitDynamicImport__closure14.prototype = {
  75172. call$0() {
  75173. var $async$goto = 0,
  75174. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  75175. $async$self = this, t7, t8, t9, t1, oldImporter, t2, t3, t4, t5, oldOutOfOrderImports, oldConfiguration, oldInDependency, t6;
  75176. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  75177. if ($async$errorCode === 1)
  75178. return A._asyncRethrow($async$result, $async$completer);
  75179. while (true)
  75180. switch ($async$goto) {
  75181. case 0:
  75182. // Function start
  75183. t1 = $async$self.$this;
  75184. oldImporter = t1._async_evaluate0$_importer;
  75185. t2 = t1._async_evaluate0$_assertInModule$2(t1._async_evaluate0$__stylesheet, "_stylesheet");
  75186. t3 = t1._async_evaluate0$_assertInModule$2(t1._async_evaluate0$__root, "_root");
  75187. t4 = t1._async_evaluate0$_assertInModule$2(t1._async_evaluate0$__parent, "__parent");
  75188. t5 = t1._async_evaluate0$_assertInModule$2(t1._async_evaluate0$__endOfImports, "_endOfImports");
  75189. oldOutOfOrderImports = t1._async_evaluate0$_outOfOrderImports;
  75190. oldConfiguration = t1._async_evaluate0$_configuration;
  75191. oldInDependency = t1._async_evaluate0$_inDependency;
  75192. t6 = $async$self.result;
  75193. t1._async_evaluate0$_importer = t6.importer;
  75194. t7 = t1._async_evaluate0$__stylesheet = $async$self.stylesheet;
  75195. t8 = $async$self.loadsUserDefinedModules;
  75196. if (t8) {
  75197. t9 = A.ModifiableCssStylesheet$0(t7.span);
  75198. t1._async_evaluate0$__root = t9;
  75199. t1._async_evaluate0$__parent = t1._async_evaluate0$_assertInModule$2(t9, "_root");
  75200. t1._async_evaluate0$__endOfImports = 0;
  75201. t1._async_evaluate0$_outOfOrderImports = null;
  75202. }
  75203. t1._async_evaluate0$_inDependency = t6.isDependency;
  75204. t6 = new A.UnmodifiableListView(t7._stylesheet1$_forwards, type$.UnmodifiableListView_ForwardRule_2);
  75205. if (!t6.get$isEmpty(t6))
  75206. t1._async_evaluate0$_configuration = $async$self.environment.toImplicitConfiguration$0();
  75207. $async$goto = 2;
  75208. return A._asyncAwait(t1.visitStylesheet$1(t7), $async$call$0);
  75209. case 2:
  75210. // returning from await.
  75211. t6 = t8 ? t1._async_evaluate0$_addOutOfOrderImports$0() : A._setArrayType([], type$.JSArray_ModifiableCssNode_2);
  75212. $async$self.children._value = t6;
  75213. t1._async_evaluate0$_importer = oldImporter;
  75214. t1._async_evaluate0$__stylesheet = t2;
  75215. if (t8) {
  75216. t1._async_evaluate0$__root = t3;
  75217. t1._async_evaluate0$__parent = t4;
  75218. t1._async_evaluate0$__endOfImports = t5;
  75219. t1._async_evaluate0$_outOfOrderImports = oldOutOfOrderImports;
  75220. }
  75221. t1._async_evaluate0$_configuration = oldConfiguration;
  75222. t1._async_evaluate0$_inDependency = oldInDependency;
  75223. // implicit return
  75224. return A._asyncReturn(null, $async$completer);
  75225. }
  75226. });
  75227. return A._asyncStartSync($async$call$0, $async$completer);
  75228. },
  75229. $signature: 2
  75230. };
  75231. A._EvaluateVisitor_visitIncludeRule_closure11.prototype = {
  75232. call$0() {
  75233. var t1 = this.node;
  75234. return this.$this._async_evaluate0$_environment.getMixin$2$namespace(t1.name, t1.namespace);
  75235. },
  75236. $signature: 131
  75237. };
  75238. A._EvaluateVisitor_visitIncludeRule_closure12.prototype = {
  75239. call$0() {
  75240. return this.node.get$spanWithoutContent();
  75241. },
  75242. $signature: 31
  75243. };
  75244. A._EvaluateVisitor_visitIncludeRule_closure14.prototype = {
  75245. call$1($content) {
  75246. var t1 = this.$this;
  75247. return new A.UserDefinedCallable0($content, t1._async_evaluate0$_environment.closure$0(), t1._async_evaluate0$_inDependency, type$.UserDefinedCallable_AsyncEnvironment_2);
  75248. },
  75249. $signature: 333
  75250. };
  75251. A._EvaluateVisitor_visitIncludeRule_closure13.prototype = {
  75252. call$0() {
  75253. var $async$goto = 0,
  75254. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  75255. $async$self = this, t1;
  75256. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  75257. if ($async$errorCode === 1)
  75258. return A._asyncRethrow($async$result, $async$completer);
  75259. while (true)
  75260. switch ($async$goto) {
  75261. case 0:
  75262. // Function start
  75263. t1 = $async$self.$this;
  75264. $async$goto = 2;
  75265. return A._asyncAwait(t1._async_evaluate0$_environment.withContent$2($async$self.contentCallable, new A._EvaluateVisitor_visitIncludeRule__closure2(t1, $async$self.mixin, $async$self.nodeWithSpan)), $async$call$0);
  75266. case 2:
  75267. // returning from await.
  75268. // implicit return
  75269. return A._asyncReturn(null, $async$completer);
  75270. }
  75271. });
  75272. return A._asyncStartSync($async$call$0, $async$completer);
  75273. },
  75274. $signature: 2
  75275. };
  75276. A._EvaluateVisitor_visitIncludeRule__closure2.prototype = {
  75277. call$0() {
  75278. var $async$goto = 0,
  75279. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  75280. $async$self = this, t1;
  75281. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  75282. if ($async$errorCode === 1)
  75283. return A._asyncRethrow($async$result, $async$completer);
  75284. while (true)
  75285. switch ($async$goto) {
  75286. case 0:
  75287. // Function start
  75288. t1 = $async$self.$this;
  75289. $async$goto = 2;
  75290. return A._asyncAwait(t1._async_evaluate0$_environment.asMixin$1(new A._EvaluateVisitor_visitIncludeRule___closure2(t1, $async$self.mixin, $async$self.nodeWithSpan)), $async$call$0);
  75291. case 2:
  75292. // returning from await.
  75293. // implicit return
  75294. return A._asyncReturn(null, $async$completer);
  75295. }
  75296. });
  75297. return A._asyncStartSync($async$call$0, $async$completer);
  75298. },
  75299. $signature: 38
  75300. };
  75301. A._EvaluateVisitor_visitIncludeRule___closure2.prototype = {
  75302. call$0() {
  75303. var $async$goto = 0,
  75304. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  75305. $async$self = this, t1, t2, t3, t4, t5, _i;
  75306. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  75307. if ($async$errorCode === 1)
  75308. return A._asyncRethrow($async$result, $async$completer);
  75309. while (true)
  75310. switch ($async$goto) {
  75311. case 0:
  75312. // Function start
  75313. t1 = $async$self.mixin.declaration.children, t2 = t1.length, t3 = $async$self.$this, t4 = $async$self.nodeWithSpan, t5 = type$.nullable_Value_2, _i = 0;
  75314. case 2:
  75315. // for condition
  75316. if (!(_i < t2)) {
  75317. // goto after for
  75318. $async$goto = 4;
  75319. break;
  75320. }
  75321. $async$goto = 5;
  75322. return A._asyncAwait(t3._async_evaluate0$_addErrorSpan$1$2(t4, new A._EvaluateVisitor_visitIncludeRule____closure2(t3, t1[_i]), t5), $async$call$0);
  75323. case 5:
  75324. // returning from await.
  75325. case 3:
  75326. // for update
  75327. ++_i;
  75328. // goto for condition
  75329. $async$goto = 2;
  75330. break;
  75331. case 4:
  75332. // after for
  75333. // implicit return
  75334. return A._asyncReturn(null, $async$completer);
  75335. }
  75336. });
  75337. return A._asyncStartSync($async$call$0, $async$completer);
  75338. },
  75339. $signature: 38
  75340. };
  75341. A._EvaluateVisitor_visitIncludeRule____closure2.prototype = {
  75342. call$0() {
  75343. return this.statement.accept$1(this.$this);
  75344. },
  75345. $signature: 74
  75346. };
  75347. A._EvaluateVisitor_visitMediaRule_closure8.prototype = {
  75348. call$1(mediaQueries) {
  75349. return this.$this._async_evaluate0$_mergeMediaQueries$2(mediaQueries, this.queries);
  75350. },
  75351. $signature: 89
  75352. };
  75353. A._EvaluateVisitor_visitMediaRule_closure9.prototype = {
  75354. call$0() {
  75355. var $async$goto = 0,
  75356. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  75357. $async$self = this, t1, t2;
  75358. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  75359. if ($async$errorCode === 1)
  75360. return A._asyncRethrow($async$result, $async$completer);
  75361. while (true)
  75362. switch ($async$goto) {
  75363. case 0:
  75364. // Function start
  75365. t1 = $async$self.$this;
  75366. t2 = $async$self.mergedQueries;
  75367. if (t2 == null)
  75368. t2 = $async$self.queries;
  75369. $async$goto = 2;
  75370. return A._asyncAwait(t1._async_evaluate0$_withMediaQueries$1$3(t2, $async$self.mergedSources, new A._EvaluateVisitor_visitMediaRule__closure2(t1, $async$self.node), type$.Null), $async$call$0);
  75371. case 2:
  75372. // returning from await.
  75373. // implicit return
  75374. return A._asyncReturn(null, $async$completer);
  75375. }
  75376. });
  75377. return A._asyncStartSync($async$call$0, $async$completer);
  75378. },
  75379. $signature: 2
  75380. };
  75381. A._EvaluateVisitor_visitMediaRule__closure2.prototype = {
  75382. call$0() {
  75383. var $async$goto = 0,
  75384. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  75385. $async$self = this, t2, t3, _i, t1, styleRule;
  75386. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  75387. if ($async$errorCode === 1)
  75388. return A._asyncRethrow($async$result, $async$completer);
  75389. while (true)
  75390. switch ($async$goto) {
  75391. case 0:
  75392. // Function start
  75393. t1 = $async$self.$this;
  75394. styleRule = t1._async_evaluate0$_atRootExcludingStyleRule ? null : t1._async_evaluate0$_styleRuleIgnoringAtRoot;
  75395. $async$goto = styleRule == null ? 2 : 4;
  75396. break;
  75397. case 2:
  75398. // then
  75399. t2 = $async$self.node.children, t3 = t2.length, _i = 0;
  75400. case 5:
  75401. // for condition
  75402. if (!(_i < t3)) {
  75403. // goto after for
  75404. $async$goto = 7;
  75405. break;
  75406. }
  75407. $async$goto = 8;
  75408. return A._asyncAwait(t2[_i].accept$1(t1), $async$call$0);
  75409. case 8:
  75410. // returning from await.
  75411. case 6:
  75412. // for update
  75413. ++_i;
  75414. // goto for condition
  75415. $async$goto = 5;
  75416. break;
  75417. case 7:
  75418. // after for
  75419. // goto join
  75420. $async$goto = 3;
  75421. break;
  75422. case 4:
  75423. // else
  75424. $async$goto = 9;
  75425. return A._asyncAwait(t1._async_evaluate0$_withParent$2$3$scopeWhen(A.ModifiableCssStyleRule$0(styleRule.selector, styleRule.span, styleRule.originalSelector), new A._EvaluateVisitor_visitMediaRule___closure2(t1, $async$self.node), false, type$.ModifiableCssStyleRule_2, type$.Null), $async$call$0);
  75426. case 9:
  75427. // returning from await.
  75428. case 3:
  75429. // join
  75430. // implicit return
  75431. return A._asyncReturn(null, $async$completer);
  75432. }
  75433. });
  75434. return A._asyncStartSync($async$call$0, $async$completer);
  75435. },
  75436. $signature: 2
  75437. };
  75438. A._EvaluateVisitor_visitMediaRule___closure2.prototype = {
  75439. call$0() {
  75440. var $async$goto = 0,
  75441. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  75442. $async$self = this, t1, t2, t3, _i;
  75443. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  75444. if ($async$errorCode === 1)
  75445. return A._asyncRethrow($async$result, $async$completer);
  75446. while (true)
  75447. switch ($async$goto) {
  75448. case 0:
  75449. // Function start
  75450. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  75451. case 2:
  75452. // for condition
  75453. if (!(_i < t2)) {
  75454. // goto after for
  75455. $async$goto = 4;
  75456. break;
  75457. }
  75458. $async$goto = 5;
  75459. return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  75460. case 5:
  75461. // returning from await.
  75462. case 3:
  75463. // for update
  75464. ++_i;
  75465. // goto for condition
  75466. $async$goto = 2;
  75467. break;
  75468. case 4:
  75469. // after for
  75470. // implicit return
  75471. return A._asyncReturn(null, $async$completer);
  75472. }
  75473. });
  75474. return A._asyncStartSync($async$call$0, $async$completer);
  75475. },
  75476. $signature: 2
  75477. };
  75478. A._EvaluateVisitor_visitMediaRule_closure10.prototype = {
  75479. call$1(node) {
  75480. var t1;
  75481. if (!type$.CssStyleRule_2._is(node)) {
  75482. t1 = this.mergedSources;
  75483. t1 = t1.get$isNotEmpty(t1) && type$.CssMediaRule_2._is(node) && B.JSArray_methods.every$1(node.queries, t1.get$contains(t1));
  75484. } else
  75485. t1 = true;
  75486. return t1;
  75487. },
  75488. $signature: 6
  75489. };
  75490. A._EvaluateVisitor__visitMediaQueries_closure2.prototype = {
  75491. call$0() {
  75492. var t1 = A.SpanScanner$(this.resolved, null);
  75493. return new A.MediaQueryParser0(t1, this.$this._async_evaluate0$_logger).parse$0();
  75494. },
  75495. $signature: 125
  75496. };
  75497. A._EvaluateVisitor_visitStyleRule_closure23.prototype = {
  75498. call$0() {
  75499. var t1 = this.selectorText;
  75500. return A.KeyframeSelectorParser$0(t1.get$value(t1), this.$this._async_evaluate0$_logger).parse$0();
  75501. },
  75502. $signature: 50
  75503. };
  75504. A._EvaluateVisitor_visitStyleRule_closure24.prototype = {
  75505. call$0() {
  75506. var $async$goto = 0,
  75507. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  75508. $async$self = this, t1, t2, t3, _i;
  75509. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  75510. if ($async$errorCode === 1)
  75511. return A._asyncRethrow($async$result, $async$completer);
  75512. while (true)
  75513. switch ($async$goto) {
  75514. case 0:
  75515. // Function start
  75516. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  75517. case 2:
  75518. // for condition
  75519. if (!(_i < t2)) {
  75520. // goto after for
  75521. $async$goto = 4;
  75522. break;
  75523. }
  75524. $async$goto = 5;
  75525. return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  75526. case 5:
  75527. // returning from await.
  75528. case 3:
  75529. // for update
  75530. ++_i;
  75531. // goto for condition
  75532. $async$goto = 2;
  75533. break;
  75534. case 4:
  75535. // after for
  75536. // implicit return
  75537. return A._asyncReturn(null, $async$completer);
  75538. }
  75539. });
  75540. return A._asyncStartSync($async$call$0, $async$completer);
  75541. },
  75542. $signature: 2
  75543. };
  75544. A._EvaluateVisitor_visitStyleRule_closure25.prototype = {
  75545. call$1(node) {
  75546. return type$.CssStyleRule_2._is(node);
  75547. },
  75548. $signature: 6
  75549. };
  75550. A._EvaluateVisitor_visitStyleRule_closure26.prototype = {
  75551. call$0() {
  75552. var _s11_ = "_stylesheet",
  75553. t1 = this.selectorText,
  75554. t2 = this.$this;
  75555. return A.SelectorList_SelectorList$parse0(t1.get$value(t1), !t2._async_evaluate0$_assertInModule$2(t2._async_evaluate0$__stylesheet, _s11_).plainCss, !t2._async_evaluate0$_assertInModule$2(t2._async_evaluate0$__stylesheet, _s11_).plainCss, t2._async_evaluate0$_logger);
  75556. },
  75557. $signature: 45
  75558. };
  75559. A._EvaluateVisitor_visitStyleRule_closure27.prototype = {
  75560. call$0() {
  75561. var t1 = this._box_0.parsedSelector,
  75562. t2 = this.$this,
  75563. t3 = t2._async_evaluate0$_styleRuleIgnoringAtRoot;
  75564. t3 = t3 == null ? null : t3.originalSelector;
  75565. return t1.resolveParentSelectors$2$implicitParent(t3, !t2._async_evaluate0$_atRootExcludingStyleRule);
  75566. },
  75567. $signature: 45
  75568. };
  75569. A._EvaluateVisitor_visitStyleRule_closure28.prototype = {
  75570. call$0() {
  75571. var $async$goto = 0,
  75572. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  75573. $async$self = this, t1;
  75574. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  75575. if ($async$errorCode === 1)
  75576. return A._asyncRethrow($async$result, $async$completer);
  75577. while (true)
  75578. switch ($async$goto) {
  75579. case 0:
  75580. // Function start
  75581. t1 = $async$self.$this;
  75582. $async$goto = 2;
  75583. return A._asyncAwait(t1._async_evaluate0$_withStyleRule$1$2($async$self.rule, new A._EvaluateVisitor_visitStyleRule__closure2(t1, $async$self.node), type$.Null), $async$call$0);
  75584. case 2:
  75585. // returning from await.
  75586. // implicit return
  75587. return A._asyncReturn(null, $async$completer);
  75588. }
  75589. });
  75590. return A._asyncStartSync($async$call$0, $async$completer);
  75591. },
  75592. $signature: 2
  75593. };
  75594. A._EvaluateVisitor_visitStyleRule__closure2.prototype = {
  75595. call$0() {
  75596. var $async$goto = 0,
  75597. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  75598. $async$self = this, t1, t2, t3, _i;
  75599. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  75600. if ($async$errorCode === 1)
  75601. return A._asyncRethrow($async$result, $async$completer);
  75602. while (true)
  75603. switch ($async$goto) {
  75604. case 0:
  75605. // Function start
  75606. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  75607. case 2:
  75608. // for condition
  75609. if (!(_i < t2)) {
  75610. // goto after for
  75611. $async$goto = 4;
  75612. break;
  75613. }
  75614. $async$goto = 5;
  75615. return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  75616. case 5:
  75617. // returning from await.
  75618. case 3:
  75619. // for update
  75620. ++_i;
  75621. // goto for condition
  75622. $async$goto = 2;
  75623. break;
  75624. case 4:
  75625. // after for
  75626. // implicit return
  75627. return A._asyncReturn(null, $async$completer);
  75628. }
  75629. });
  75630. return A._asyncStartSync($async$call$0, $async$completer);
  75631. },
  75632. $signature: 2
  75633. };
  75634. A._EvaluateVisitor_visitStyleRule_closure29.prototype = {
  75635. call$1(node) {
  75636. return type$.CssStyleRule_2._is(node);
  75637. },
  75638. $signature: 6
  75639. };
  75640. A._EvaluateVisitor_visitStyleRule_closure30.prototype = {
  75641. call$1(child) {
  75642. return type$.CssComment_2._is(child);
  75643. },
  75644. $signature: 124
  75645. };
  75646. A._EvaluateVisitor_visitSupportsRule_closure5.prototype = {
  75647. call$0() {
  75648. var $async$goto = 0,
  75649. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  75650. $async$self = this, t2, t3, _i, t1, styleRule;
  75651. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  75652. if ($async$errorCode === 1)
  75653. return A._asyncRethrow($async$result, $async$completer);
  75654. while (true)
  75655. switch ($async$goto) {
  75656. case 0:
  75657. // Function start
  75658. t1 = $async$self.$this;
  75659. styleRule = t1._async_evaluate0$_atRootExcludingStyleRule ? null : t1._async_evaluate0$_styleRuleIgnoringAtRoot;
  75660. $async$goto = styleRule == null ? 2 : 4;
  75661. break;
  75662. case 2:
  75663. // then
  75664. t2 = $async$self.node.children, t3 = t2.length, _i = 0;
  75665. case 5:
  75666. // for condition
  75667. if (!(_i < t3)) {
  75668. // goto after for
  75669. $async$goto = 7;
  75670. break;
  75671. }
  75672. $async$goto = 8;
  75673. return A._asyncAwait(t2[_i].accept$1(t1), $async$call$0);
  75674. case 8:
  75675. // returning from await.
  75676. case 6:
  75677. // for update
  75678. ++_i;
  75679. // goto for condition
  75680. $async$goto = 5;
  75681. break;
  75682. case 7:
  75683. // after for
  75684. // goto join
  75685. $async$goto = 3;
  75686. break;
  75687. case 4:
  75688. // else
  75689. $async$goto = 9;
  75690. return A._asyncAwait(t1._async_evaluate0$_withParent$2$2(A.ModifiableCssStyleRule$0(styleRule.selector, styleRule.span, styleRule.originalSelector), new A._EvaluateVisitor_visitSupportsRule__closure2(t1, $async$self.node), type$.ModifiableCssStyleRule_2, type$.Null), $async$call$0);
  75691. case 9:
  75692. // returning from await.
  75693. case 3:
  75694. // join
  75695. // implicit return
  75696. return A._asyncReturn(null, $async$completer);
  75697. }
  75698. });
  75699. return A._asyncStartSync($async$call$0, $async$completer);
  75700. },
  75701. $signature: 2
  75702. };
  75703. A._EvaluateVisitor_visitSupportsRule__closure2.prototype = {
  75704. call$0() {
  75705. var $async$goto = 0,
  75706. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  75707. $async$self = this, t1, t2, t3, _i;
  75708. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  75709. if ($async$errorCode === 1)
  75710. return A._asyncRethrow($async$result, $async$completer);
  75711. while (true)
  75712. switch ($async$goto) {
  75713. case 0:
  75714. // Function start
  75715. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  75716. case 2:
  75717. // for condition
  75718. if (!(_i < t2)) {
  75719. // goto after for
  75720. $async$goto = 4;
  75721. break;
  75722. }
  75723. $async$goto = 5;
  75724. return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  75725. case 5:
  75726. // returning from await.
  75727. case 3:
  75728. // for update
  75729. ++_i;
  75730. // goto for condition
  75731. $async$goto = 2;
  75732. break;
  75733. case 4:
  75734. // after for
  75735. // implicit return
  75736. return A._asyncReturn(null, $async$completer);
  75737. }
  75738. });
  75739. return A._asyncStartSync($async$call$0, $async$completer);
  75740. },
  75741. $signature: 2
  75742. };
  75743. A._EvaluateVisitor_visitSupportsRule_closure6.prototype = {
  75744. call$1(node) {
  75745. return type$.CssStyleRule_2._is(node);
  75746. },
  75747. $signature: 6
  75748. };
  75749. A._EvaluateVisitor_visitVariableDeclaration_closure8.prototype = {
  75750. call$0() {
  75751. var t1 = this.override;
  75752. this.$this._async_evaluate0$_environment.setVariable$4$global(this.node.name, t1.value, t1.assignmentNode, true);
  75753. },
  75754. $signature: 1
  75755. };
  75756. A._EvaluateVisitor_visitVariableDeclaration_closure9.prototype = {
  75757. call$0() {
  75758. var t1 = this.node;
  75759. return this.$this._async_evaluate0$_environment.getVariable$2$namespace(t1.name, t1.namespace);
  75760. },
  75761. $signature: 41
  75762. };
  75763. A._EvaluateVisitor_visitVariableDeclaration_closure10.prototype = {
  75764. call$0() {
  75765. var t1 = this.$this,
  75766. t2 = this.node;
  75767. t1._async_evaluate0$_environment.setVariable$5$global$namespace(t2.name, this.value, t1._async_evaluate0$_expressionNode$1(t2.expression), t2.isGlobal, t2.namespace);
  75768. },
  75769. $signature: 1
  75770. };
  75771. A._EvaluateVisitor_visitUseRule_closure2.prototype = {
  75772. call$1(module) {
  75773. var t1 = this.node;
  75774. this.$this._async_evaluate0$_environment.addModule$3$namespace(module, t1, t1.namespace);
  75775. },
  75776. $signature: 140
  75777. };
  75778. A._EvaluateVisitor_visitWarnRule_closure2.prototype = {
  75779. call$0() {
  75780. return this.node.expression.accept$1(this.$this);
  75781. },
  75782. $signature: 73
  75783. };
  75784. A._EvaluateVisitor_visitWhileRule_closure2.prototype = {
  75785. call$0() {
  75786. var $async$goto = 0,
  75787. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
  75788. $async$returnValue, $async$self = this, t1, t2, t3, result;
  75789. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  75790. if ($async$errorCode === 1)
  75791. return A._asyncRethrow($async$result, $async$completer);
  75792. while (true)
  75793. switch ($async$goto) {
  75794. case 0:
  75795. // Function start
  75796. t1 = $async$self.node, t2 = t1.condition, t3 = $async$self.$this, t1 = t1.children;
  75797. case 3:
  75798. // for condition
  75799. $async$goto = 5;
  75800. return A._asyncAwait(t2.accept$1(t3), $async$call$0);
  75801. case 5:
  75802. // returning from await.
  75803. if (!$async$result.get$isTruthy()) {
  75804. // goto after for
  75805. $async$goto = 4;
  75806. break;
  75807. }
  75808. $async$goto = 6;
  75809. return A._asyncAwait(t3._async_evaluate0$_handleReturn$2(t1, new A._EvaluateVisitor_visitWhileRule__closure2(t3)), $async$call$0);
  75810. case 6:
  75811. // returning from await.
  75812. result = $async$result;
  75813. if (result != null) {
  75814. $async$returnValue = result;
  75815. // goto return
  75816. $async$goto = 1;
  75817. break;
  75818. }
  75819. // goto for condition
  75820. $async$goto = 3;
  75821. break;
  75822. case 4:
  75823. // after for
  75824. $async$returnValue = null;
  75825. // goto return
  75826. $async$goto = 1;
  75827. break;
  75828. case 1:
  75829. // return
  75830. return A._asyncReturn($async$returnValue, $async$completer);
  75831. }
  75832. });
  75833. return A._asyncStartSync($async$call$0, $async$completer);
  75834. },
  75835. $signature: 74
  75836. };
  75837. A._EvaluateVisitor_visitWhileRule__closure2.prototype = {
  75838. call$1(child) {
  75839. return child.accept$1(this.$this);
  75840. },
  75841. $signature: 79
  75842. };
  75843. A._EvaluateVisitor_visitBinaryOperationExpression_closure2.prototype = {
  75844. call$0() {
  75845. var $async$goto = 0,
  75846. $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
  75847. $async$returnValue, $async$self = this, right, result, t1, t2, left, t3, $async$temp1;
  75848. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  75849. if ($async$errorCode === 1)
  75850. return A._asyncRethrow($async$result, $async$completer);
  75851. while (true)
  75852. switch ($async$goto) {
  75853. case 0:
  75854. // Function start
  75855. t1 = $async$self.node;
  75856. t2 = $async$self.$this;
  75857. $async$goto = 3;
  75858. return A._asyncAwait(t1.left.accept$1(t2), $async$call$0);
  75859. case 3:
  75860. // returning from await.
  75861. left = $async$result;
  75862. t3 = t1.operator;
  75863. case 4:
  75864. // switch
  75865. switch (t3) {
  75866. case B.BinaryOperator_axY0:
  75867. // goto case
  75868. $async$goto = 6;
  75869. break;
  75870. case B.BinaryOperator_or_or_1_or0:
  75871. // goto case
  75872. $async$goto = 7;
  75873. break;
  75874. case B.BinaryOperator_and_and_2_and0:
  75875. // goto case
  75876. $async$goto = 8;
  75877. break;
  75878. case B.BinaryOperator_nZh0:
  75879. // goto case
  75880. $async$goto = 9;
  75881. break;
  75882. case B.BinaryOperator_Vr90:
  75883. // goto case
  75884. $async$goto = 10;
  75885. break;
  75886. case B.BinaryOperator_cw10:
  75887. // goto case
  75888. $async$goto = 11;
  75889. break;
  75890. case B.BinaryOperator_Wma0:
  75891. // goto case
  75892. $async$goto = 12;
  75893. break;
  75894. case B.BinaryOperator_apg0:
  75895. // goto case
  75896. $async$goto = 13;
  75897. break;
  75898. case B.BinaryOperator_oqF0:
  75899. // goto case
  75900. $async$goto = 14;
  75901. break;
  75902. case B.BinaryOperator_qbf0:
  75903. // goto case
  75904. $async$goto = 15;
  75905. break;
  75906. case B.BinaryOperator_KlB0:
  75907. // goto case
  75908. $async$goto = 16;
  75909. break;
  75910. case B.BinaryOperator_6pl0:
  75911. // goto case
  75912. $async$goto = 17;
  75913. break;
  75914. case B.BinaryOperator_qpm0:
  75915. // goto case
  75916. $async$goto = 18;
  75917. break;
  75918. case B.BinaryOperator_PHH0:
  75919. // goto case
  75920. $async$goto = 19;
  75921. break;
  75922. default:
  75923. // goto default
  75924. $async$goto = 20;
  75925. break;
  75926. }
  75927. break;
  75928. case 6:
  75929. // case
  75930. $async$goto = 21;
  75931. return A._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  75932. case 21:
  75933. // returning from await.
  75934. right = $async$result;
  75935. $async$returnValue = new A.SassString0(A.serializeValue0(left, false, true) + "=" + A.serializeValue0(right, false, true), false);
  75936. // goto return
  75937. $async$goto = 1;
  75938. break;
  75939. case 7:
  75940. // case
  75941. $async$goto = left.get$isTruthy() ? 22 : 24;
  75942. break;
  75943. case 22:
  75944. // then
  75945. $async$result = left;
  75946. // goto join
  75947. $async$goto = 23;
  75948. break;
  75949. case 24:
  75950. // else
  75951. $async$goto = 25;
  75952. return A._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  75953. case 25:
  75954. // returning from await.
  75955. case 23:
  75956. // join
  75957. $async$returnValue = $async$result;
  75958. // goto return
  75959. $async$goto = 1;
  75960. break;
  75961. case 8:
  75962. // case
  75963. $async$goto = left.get$isTruthy() ? 26 : 28;
  75964. break;
  75965. case 26:
  75966. // then
  75967. $async$goto = 29;
  75968. return A._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  75969. case 29:
  75970. // returning from await.
  75971. // goto join
  75972. $async$goto = 27;
  75973. break;
  75974. case 28:
  75975. // else
  75976. $async$result = left;
  75977. case 27:
  75978. // join
  75979. $async$returnValue = $async$result;
  75980. // goto return
  75981. $async$goto = 1;
  75982. break;
  75983. case 9:
  75984. // case
  75985. $async$temp1 = left;
  75986. $async$goto = 30;
  75987. return A._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  75988. case 30:
  75989. // returning from await.
  75990. $async$returnValue = $async$temp1.$eq(0, $async$result) ? B.SassBoolean_true0 : B.SassBoolean_false0;
  75991. // goto return
  75992. $async$goto = 1;
  75993. break;
  75994. case 10:
  75995. // case
  75996. $async$temp1 = left;
  75997. $async$goto = 31;
  75998. return A._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  75999. case 31:
  76000. // returning from await.
  76001. $async$returnValue = !$async$temp1.$eq(0, $async$result) ? B.SassBoolean_true0 : B.SassBoolean_false0;
  76002. // goto return
  76003. $async$goto = 1;
  76004. break;
  76005. case 11:
  76006. // case
  76007. $async$temp1 = left;
  76008. $async$goto = 32;
  76009. return A._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  76010. case 32:
  76011. // returning from await.
  76012. $async$returnValue = $async$temp1.greaterThan$1($async$result);
  76013. // goto return
  76014. $async$goto = 1;
  76015. break;
  76016. case 12:
  76017. // case
  76018. $async$temp1 = left;
  76019. $async$goto = 33;
  76020. return A._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  76021. case 33:
  76022. // returning from await.
  76023. $async$returnValue = $async$temp1.greaterThanOrEquals$1($async$result);
  76024. // goto return
  76025. $async$goto = 1;
  76026. break;
  76027. case 13:
  76028. // case
  76029. $async$temp1 = left;
  76030. $async$goto = 34;
  76031. return A._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  76032. case 34:
  76033. // returning from await.
  76034. $async$returnValue = $async$temp1.lessThan$1($async$result);
  76035. // goto return
  76036. $async$goto = 1;
  76037. break;
  76038. case 14:
  76039. // case
  76040. $async$temp1 = left;
  76041. $async$goto = 35;
  76042. return A._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  76043. case 35:
  76044. // returning from await.
  76045. $async$returnValue = $async$temp1.lessThanOrEquals$1($async$result);
  76046. // goto return
  76047. $async$goto = 1;
  76048. break;
  76049. case 15:
  76050. // case
  76051. $async$temp1 = left;
  76052. $async$goto = 36;
  76053. return A._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  76054. case 36:
  76055. // returning from await.
  76056. $async$returnValue = $async$temp1.plus$1($async$result);
  76057. // goto return
  76058. $async$goto = 1;
  76059. break;
  76060. case 16:
  76061. // case
  76062. $async$temp1 = left;
  76063. $async$goto = 37;
  76064. return A._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  76065. case 37:
  76066. // returning from await.
  76067. $async$returnValue = $async$temp1.minus$1($async$result);
  76068. // goto return
  76069. $async$goto = 1;
  76070. break;
  76071. case 17:
  76072. // case
  76073. $async$temp1 = left;
  76074. $async$goto = 38;
  76075. return A._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  76076. case 38:
  76077. // returning from await.
  76078. $async$returnValue = $async$temp1.times$1($async$result);
  76079. // goto return
  76080. $async$goto = 1;
  76081. break;
  76082. case 18:
  76083. // case
  76084. $async$goto = 39;
  76085. return A._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  76086. case 39:
  76087. // returning from await.
  76088. right = $async$result;
  76089. result = left.dividedBy$1(right);
  76090. if (t1.allowsSlash && left instanceof A.SassNumber0 && right instanceof A.SassNumber0) {
  76091. $async$returnValue = type$.SassNumber_2._as(result).withSlash$2(left, right);
  76092. // goto return
  76093. $async$goto = 1;
  76094. break;
  76095. } else {
  76096. if (left instanceof A.SassNumber0 && right instanceof A.SassNumber0)
  76097. t2._async_evaluate0$_warn$3$deprecation(string$.Using__o + A.S(new A._EvaluateVisitor_visitBinaryOperationExpression_closure_recommendation2().call$1(t1)) + " or calc(" + t1.toString$0(0) + string$.x29x0a_Morx20, t1.get$span(t1), true);
  76098. $async$returnValue = result;
  76099. // goto return
  76100. $async$goto = 1;
  76101. break;
  76102. }
  76103. case 19:
  76104. // case
  76105. $async$temp1 = left;
  76106. $async$goto = 40;
  76107. return A._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  76108. case 40:
  76109. // returning from await.
  76110. $async$returnValue = $async$temp1.modulo$1($async$result);
  76111. // goto return
  76112. $async$goto = 1;
  76113. break;
  76114. case 20:
  76115. // default
  76116. throw A.wrapException(A.ArgumentError$("Unknown binary operator " + t3.toString$0(0) + ".", null));
  76117. case 5:
  76118. // after switch
  76119. case 1:
  76120. // return
  76121. return A._asyncReturn($async$returnValue, $async$completer);
  76122. }
  76123. });
  76124. return A._asyncStartSync($async$call$0, $async$completer);
  76125. },
  76126. $signature: 73
  76127. };
  76128. A._EvaluateVisitor_visitBinaryOperationExpression_closure_recommendation2.prototype = {
  76129. call$1(expression) {
  76130. if (expression instanceof A.BinaryOperationExpression0 && expression.operator === B.BinaryOperator_qpm0)
  76131. return "math.div(" + A.S(this.call$1(expression.left)) + ", " + A.S(this.call$1(expression.right)) + ")";
  76132. else if (expression instanceof A.ParenthesizedExpression0)
  76133. return expression.expression.toString$0(0);
  76134. else
  76135. return expression.toString$0(0);
  76136. },
  76137. $signature: 122
  76138. };
  76139. A._EvaluateVisitor_visitVariableExpression_closure2.prototype = {
  76140. call$0() {
  76141. var t1 = this.node;
  76142. return this.$this._async_evaluate0$_environment.getVariable$2$namespace(t1.name, t1.namespace);
  76143. },
  76144. $signature: 41
  76145. };
  76146. A._EvaluateVisitor_visitUnaryOperationExpression_closure2.prototype = {
  76147. call$0() {
  76148. var _this = this,
  76149. t1 = _this.node.operator;
  76150. switch (t1) {
  76151. case B.UnaryOperator_gg40:
  76152. return _this.operand.unaryPlus$0();
  76153. case B.UnaryOperator_TLI0:
  76154. return _this.operand.unaryMinus$0();
  76155. case B.UnaryOperator_Ix10:
  76156. return new A.SassString0("/" + A.serializeValue0(_this.operand, false, true), false);
  76157. case B.UnaryOperator_not_not_not0:
  76158. return _this.operand.unaryNot$0();
  76159. default:
  76160. throw A.wrapException(A.StateError$("Unknown unary operator " + t1.toString$0(0) + "."));
  76161. }
  76162. },
  76163. $signature: 47
  76164. };
  76165. A._EvaluateVisitor__visitCalculationValue_closure2.prototype = {
  76166. call$0() {
  76167. var $async$goto = 0,
  76168. $async$completer = A._makeAsyncAwaitCompleter(type$.Object),
  76169. $async$returnValue, $async$self = this, t1, t2, t3, $async$temp1, $async$temp2, $async$temp3;
  76170. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  76171. if ($async$errorCode === 1)
  76172. return A._asyncRethrow($async$result, $async$completer);
  76173. while (true)
  76174. switch ($async$goto) {
  76175. case 0:
  76176. // Function start
  76177. t1 = $async$self.$this;
  76178. t2 = $async$self.node;
  76179. t3 = $async$self.inMinMax;
  76180. $async$temp1 = A;
  76181. $async$temp2 = t1._async_evaluate0$_binaryOperatorToCalculationOperator$1(t2.operator);
  76182. $async$goto = 3;
  76183. return A._asyncAwait(t1._async_evaluate0$_visitCalculationValue$2$inMinMax(t2.left, t3), $async$call$0);
  76184. case 3:
  76185. // returning from await.
  76186. $async$temp3 = $async$result;
  76187. $async$goto = 4;
  76188. return A._asyncAwait(t1._async_evaluate0$_visitCalculationValue$2$inMinMax(t2.right, t3), $async$call$0);
  76189. case 4:
  76190. // returning from await.
  76191. $async$returnValue = $async$temp1.SassCalculation_operateInternal0($async$temp2, $async$temp3, $async$result, t3, !t1._async_evaluate0$_inSupportsDeclaration);
  76192. // goto return
  76193. $async$goto = 1;
  76194. break;
  76195. case 1:
  76196. // return
  76197. return A._asyncReturn($async$returnValue, $async$completer);
  76198. }
  76199. });
  76200. return A._asyncStartSync($async$call$0, $async$completer);
  76201. },
  76202. $signature: 241
  76203. };
  76204. A._EvaluateVisitor_visitListExpression_closure2.prototype = {
  76205. call$1(expression) {
  76206. return expression.accept$1(this.$this);
  76207. },
  76208. $signature: 341
  76209. };
  76210. A._EvaluateVisitor_visitFunctionExpression_closure5.prototype = {
  76211. call$0() {
  76212. var t1 = this.node;
  76213. return this.$this._async_evaluate0$_getFunction$2$namespace(A.stringReplaceAllUnchecked(t1.originalName, "_", "-"), t1.namespace);
  76214. },
  76215. $signature: 131
  76216. };
  76217. A._EvaluateVisitor_visitFunctionExpression_closure6.prototype = {
  76218. call$0() {
  76219. var t1 = this.node;
  76220. return this.$this._async_evaluate0$_runFunctionCallable$3(t1.$arguments, this._box_0.$function, t1);
  76221. },
  76222. $signature: 73
  76223. };
  76224. A._EvaluateVisitor_visitInterpolatedFunctionExpression_closure2.prototype = {
  76225. call$0() {
  76226. var t1 = this.node;
  76227. return this.$this._async_evaluate0$_runFunctionCallable$3(t1.$arguments, this.$function, t1);
  76228. },
  76229. $signature: 73
  76230. };
  76231. A._EvaluateVisitor__runUserDefinedCallable_closure2.prototype = {
  76232. call$0() {
  76233. var _this = this,
  76234. t1 = _this.$this,
  76235. t2 = _this.callable,
  76236. t3 = _this.V;
  76237. return t1._async_evaluate0$_withEnvironment$1$2(t2.environment.closure$0(), new A._EvaluateVisitor__runUserDefinedCallable__closure2(t1, _this.evaluated, t2, _this.nodeWithSpan, _this.run, t3), t3);
  76238. },
  76239. $signature() {
  76240. return this.V._eval$1("Future<0>()");
  76241. }
  76242. };
  76243. A._EvaluateVisitor__runUserDefinedCallable__closure2.prototype = {
  76244. call$0() {
  76245. var _this = this,
  76246. t1 = _this.$this,
  76247. t2 = _this.V;
  76248. return t1._async_evaluate0$_environment.scope$1$1(new A._EvaluateVisitor__runUserDefinedCallable___closure2(t1, _this.evaluated, _this.callable, _this.nodeWithSpan, _this.run, t2), t2);
  76249. },
  76250. $signature() {
  76251. return this.V._eval$1("Future<0>()");
  76252. }
  76253. };
  76254. A._EvaluateVisitor__runUserDefinedCallable___closure2.prototype = {
  76255. call$0() {
  76256. return this.$call$body$_EvaluateVisitor__runUserDefinedCallable___closure0(this.V);
  76257. },
  76258. $call$body$_EvaluateVisitor__runUserDefinedCallable___closure0($async$type) {
  76259. var $async$goto = 0,
  76260. $async$completer = A._makeAsyncAwaitCompleter($async$type),
  76261. $async$returnValue, $async$self = this, declaredArguments, t7, minLength, t8, i, argument, t9, value, t10, t11, restArgument, rest, argumentList, result, t1, t2, t3, t4, t5, t6, $async$temp1;
  76262. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  76263. if ($async$errorCode === 1)
  76264. return A._asyncRethrow($async$result, $async$completer);
  76265. while (true)
  76266. switch ($async$goto) {
  76267. case 0:
  76268. // Function start
  76269. t1 = $async$self.$this;
  76270. t2 = $async$self.evaluated;
  76271. t3 = t2.positional;
  76272. t4 = t2.named;
  76273. t5 = $async$self.callable.declaration.$arguments;
  76274. t6 = $async$self.nodeWithSpan;
  76275. t1._async_evaluate0$_verifyArguments$4(t3.length, t4, t5, t6);
  76276. declaredArguments = t5.$arguments;
  76277. t7 = declaredArguments.length;
  76278. minLength = Math.min(t3.length, t7);
  76279. for (t8 = t2.positionalNodes, i = 0; i < minLength; ++i)
  76280. t1._async_evaluate0$_environment.setLocalVariable$3(declaredArguments[i].name, t3[i], t8[i]);
  76281. i = t3.length, t8 = t2.namedNodes;
  76282. case 3:
  76283. // for condition
  76284. if (!(i < t7)) {
  76285. // goto after for
  76286. $async$goto = 5;
  76287. break;
  76288. }
  76289. argument = declaredArguments[i];
  76290. t9 = argument.name;
  76291. value = t4.remove$1(0, t9);
  76292. $async$goto = value == null ? 6 : 7;
  76293. break;
  76294. case 6:
  76295. // then
  76296. t10 = argument.defaultValue;
  76297. $async$temp1 = t1;
  76298. $async$goto = 8;
  76299. return A._asyncAwait(t10.accept$1(t1), $async$call$0);
  76300. case 8:
  76301. // returning from await.
  76302. value = $async$temp1._async_evaluate0$_withoutSlash$2($async$result, t1._async_evaluate0$_expressionNode$1(t10));
  76303. case 7:
  76304. // join
  76305. t10 = t1._async_evaluate0$_environment;
  76306. t11 = t8.$index(0, t9);
  76307. if (t11 == null) {
  76308. t11 = argument.defaultValue;
  76309. t11.toString;
  76310. t11 = t1._async_evaluate0$_expressionNode$1(t11);
  76311. }
  76312. t10.setLocalVariable$3(t9, value, t11);
  76313. case 4:
  76314. // for update
  76315. ++i;
  76316. // goto for condition
  76317. $async$goto = 3;
  76318. break;
  76319. case 5:
  76320. // after for
  76321. restArgument = t5.restArgument;
  76322. if (restArgument != null) {
  76323. rest = t3.length > t7 ? B.JSArray_methods.sublist$1(t3, t7) : B.List_empty19;
  76324. t2 = t2.separator;
  76325. argumentList = A.SassArgumentList$0(rest, t4, t2 === B.ListSeparator_undecided_null_undecided0 ? B.ListSeparator_rXA0 : t2);
  76326. t1._async_evaluate0$_environment.setLocalVariable$3(restArgument, argumentList, t6);
  76327. } else
  76328. argumentList = null;
  76329. $async$goto = 9;
  76330. return A._asyncAwait($async$self.run.call$0(), $async$call$0);
  76331. case 9:
  76332. // returning from await.
  76333. result = $async$result;
  76334. if (argumentList == null) {
  76335. $async$returnValue = result;
  76336. // goto return
  76337. $async$goto = 1;
  76338. break;
  76339. }
  76340. t2 = t4.__js_helper$_length;
  76341. if (t2 === 0) {
  76342. $async$returnValue = result;
  76343. // goto return
  76344. $async$goto = 1;
  76345. break;
  76346. }
  76347. if (argumentList._argument_list$_wereKeywordsAccessed) {
  76348. $async$returnValue = result;
  76349. // goto return
  76350. $async$goto = 1;
  76351. break;
  76352. }
  76353. t3 = A._instanceType(t4)._eval$1("LinkedHashMapKeyIterable<1>");
  76354. throw A.wrapException(A.MultiSpanSassRuntimeException$0("No " + A.pluralize0("argument", t2, null) + " named " + A.toSentence0(A.MappedIterable_MappedIterable(new A.LinkedHashMapKeyIterable(t4, t3), new A._EvaluateVisitor__runUserDefinedCallable____closure2(), t3._eval$1("Iterable.E"), type$.Object), "or") + ".", t6.get$span(t6), "invocation", A.LinkedHashMap_LinkedHashMap$_literal([t5.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), t1._async_evaluate0$_stackTrace$1(t6.get$span(t6))));
  76355. case 1:
  76356. // return
  76357. return A._asyncReturn($async$returnValue, $async$completer);
  76358. }
  76359. });
  76360. return A._asyncStartSync($async$call$0, $async$completer);
  76361. },
  76362. $signature() {
  76363. return this.V._eval$1("Future<0>()");
  76364. }
  76365. };
  76366. A._EvaluateVisitor__runUserDefinedCallable____closure2.prototype = {
  76367. call$1($name) {
  76368. return "$" + $name;
  76369. },
  76370. $signature: 5
  76371. };
  76372. A._EvaluateVisitor__runFunctionCallable_closure2.prototype = {
  76373. call$0() {
  76374. var $async$goto = 0,
  76375. $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
  76376. $async$returnValue, $async$self = this, t1, t2, t3, t4, _i, $returnValue;
  76377. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  76378. if ($async$errorCode === 1)
  76379. return A._asyncRethrow($async$result, $async$completer);
  76380. while (true)
  76381. switch ($async$goto) {
  76382. case 0:
  76383. // Function start
  76384. t1 = $async$self.callable.declaration, t2 = t1.children, t3 = t2.length, t4 = $async$self.$this, _i = 0;
  76385. case 3:
  76386. // for condition
  76387. if (!(_i < t3)) {
  76388. // goto after for
  76389. $async$goto = 5;
  76390. break;
  76391. }
  76392. $async$goto = 6;
  76393. return A._asyncAwait(t2[_i].accept$1(t4), $async$call$0);
  76394. case 6:
  76395. // returning from await.
  76396. $returnValue = $async$result;
  76397. if ($returnValue instanceof A.Value0) {
  76398. $async$returnValue = $returnValue;
  76399. // goto return
  76400. $async$goto = 1;
  76401. break;
  76402. }
  76403. case 4:
  76404. // for update
  76405. ++_i;
  76406. // goto for condition
  76407. $async$goto = 3;
  76408. break;
  76409. case 5:
  76410. // after for
  76411. throw A.wrapException(t4._async_evaluate0$_exception$2("Function finished without @return.", t1.span));
  76412. case 1:
  76413. // return
  76414. return A._asyncReturn($async$returnValue, $async$completer);
  76415. }
  76416. });
  76417. return A._asyncStartSync($async$call$0, $async$completer);
  76418. },
  76419. $signature: 73
  76420. };
  76421. A._EvaluateVisitor__runBuiltInCallable_closure5.prototype = {
  76422. call$0() {
  76423. return this.overload.verify$2(this.evaluated.positional.length, this.namedSet);
  76424. },
  76425. $signature: 0
  76426. };
  76427. A._EvaluateVisitor__runBuiltInCallable_closure6.prototype = {
  76428. call$1($name) {
  76429. return "$" + $name;
  76430. },
  76431. $signature: 5
  76432. };
  76433. A._EvaluateVisitor__evaluateArguments_closure11.prototype = {
  76434. call$1(value) {
  76435. return value;
  76436. },
  76437. $signature: 36
  76438. };
  76439. A._EvaluateVisitor__evaluateArguments_closure12.prototype = {
  76440. call$1(value) {
  76441. return this.$this._async_evaluate0$_withoutSlash$2(value, this.restNodeForSpan);
  76442. },
  76443. $signature: 36
  76444. };
  76445. A._EvaluateVisitor__evaluateArguments_closure13.prototype = {
  76446. call$2(key, value) {
  76447. var _this = this,
  76448. t1 = _this.restNodeForSpan;
  76449. _this.named.$indexSet(0, key, _this.$this._async_evaluate0$_withoutSlash$2(value, t1));
  76450. _this.namedNodes.$indexSet(0, key, t1);
  76451. },
  76452. $signature: 88
  76453. };
  76454. A._EvaluateVisitor__evaluateArguments_closure14.prototype = {
  76455. call$1(value) {
  76456. return value;
  76457. },
  76458. $signature: 36
  76459. };
  76460. A._EvaluateVisitor__evaluateMacroArguments_closure11.prototype = {
  76461. call$1(value) {
  76462. var t1 = this.restArgs;
  76463. return new A.ValueExpression0(value, t1.get$span(t1));
  76464. },
  76465. $signature: 58
  76466. };
  76467. A._EvaluateVisitor__evaluateMacroArguments_closure12.prototype = {
  76468. call$1(value) {
  76469. var t1 = this.restArgs;
  76470. return new A.ValueExpression0(this.$this._async_evaluate0$_withoutSlash$2(value, this.restNodeForSpan), t1.get$span(t1));
  76471. },
  76472. $signature: 58
  76473. };
  76474. A._EvaluateVisitor__evaluateMacroArguments_closure13.prototype = {
  76475. call$2(key, value) {
  76476. var _this = this,
  76477. t1 = _this.restArgs;
  76478. _this.named.$indexSet(0, key, new A.ValueExpression0(_this.$this._async_evaluate0$_withoutSlash$2(value, _this.restNodeForSpan), t1.get$span(t1)));
  76479. },
  76480. $signature: 88
  76481. };
  76482. A._EvaluateVisitor__evaluateMacroArguments_closure14.prototype = {
  76483. call$1(value) {
  76484. var t1 = this.keywordRestArgs;
  76485. return new A.ValueExpression0(this.$this._async_evaluate0$_withoutSlash$2(value, this.keywordRestNodeForSpan), t1.get$span(t1));
  76486. },
  76487. $signature: 58
  76488. };
  76489. A._EvaluateVisitor__addRestMap_closure2.prototype = {
  76490. call$2(key, value) {
  76491. var t2, _this = this,
  76492. t1 = _this.$this;
  76493. if (key instanceof A.SassString0)
  76494. _this.values.$indexSet(0, key._string0$_text, _this.convert.call$1(t1._async_evaluate0$_withoutSlash$2(value, _this.expressionNode)));
  76495. else {
  76496. t2 = _this.nodeWithSpan;
  76497. throw A.wrapException(t1._async_evaluate0$_exception$2(string$.Variab_ + key.toString$0(0) + " is not a string in " + _this.map.toString$0(0) + ".", t2.get$span(t2)));
  76498. }
  76499. },
  76500. $signature: 55
  76501. };
  76502. A._EvaluateVisitor__verifyArguments_closure2.prototype = {
  76503. call$0() {
  76504. return this.$arguments.verify$2(this.positional, new A.MapKeySet(this.named, type$.MapKeySet_String));
  76505. },
  76506. $signature: 0
  76507. };
  76508. A._EvaluateVisitor_visitStringExpression_closure2.prototype = {
  76509. call$1(value) {
  76510. var $async$goto = 0,
  76511. $async$completer = A._makeAsyncAwaitCompleter(type$.String),
  76512. $async$returnValue, $async$self = this, t1, result;
  76513. var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  76514. if ($async$errorCode === 1)
  76515. return A._asyncRethrow($async$result, $async$completer);
  76516. while (true)
  76517. switch ($async$goto) {
  76518. case 0:
  76519. // Function start
  76520. if (typeof value == "string") {
  76521. $async$returnValue = value;
  76522. // goto return
  76523. $async$goto = 1;
  76524. break;
  76525. }
  76526. type$.Expression_2._as(value);
  76527. t1 = $async$self.$this;
  76528. $async$goto = 3;
  76529. return A._asyncAwait(value.accept$1(t1), $async$call$1);
  76530. case 3:
  76531. // returning from await.
  76532. result = $async$result;
  76533. $async$returnValue = result instanceof A.SassString0 ? result._string0$_text : t1._async_evaluate0$_serialize$3$quote(result, value, false);
  76534. // goto return
  76535. $async$goto = 1;
  76536. break;
  76537. case 1:
  76538. // return
  76539. return A._asyncReturn($async$returnValue, $async$completer);
  76540. }
  76541. });
  76542. return A._asyncStartSync($async$call$1, $async$completer);
  76543. },
  76544. $signature: 101
  76545. };
  76546. A._EvaluateVisitor_visitCssAtRule_closure5.prototype = {
  76547. call$0() {
  76548. var $async$goto = 0,
  76549. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  76550. $async$self = this, t1, t2, t3, t4;
  76551. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  76552. if ($async$errorCode === 1)
  76553. return A._asyncRethrow($async$result, $async$completer);
  76554. while (true)
  76555. switch ($async$goto) {
  76556. case 0:
  76557. // Function start
  76558. t1 = $async$self.node.children, t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this, t3 = A._instanceType(t1)._precomputed1;
  76559. case 2:
  76560. // for condition
  76561. if (!t1.moveNext$0()) {
  76562. // goto after for
  76563. $async$goto = 3;
  76564. break;
  76565. }
  76566. t4 = t1.__internal$_current;
  76567. $async$goto = 4;
  76568. return A._asyncAwait((t4 == null ? t3._as(t4) : t4).accept$1(t2), $async$call$0);
  76569. case 4:
  76570. // returning from await.
  76571. // goto for condition
  76572. $async$goto = 2;
  76573. break;
  76574. case 3:
  76575. // after for
  76576. // implicit return
  76577. return A._asyncReturn(null, $async$completer);
  76578. }
  76579. });
  76580. return A._asyncStartSync($async$call$0, $async$completer);
  76581. },
  76582. $signature: 2
  76583. };
  76584. A._EvaluateVisitor_visitCssAtRule_closure6.prototype = {
  76585. call$1(node) {
  76586. return type$.CssStyleRule_2._is(node);
  76587. },
  76588. $signature: 6
  76589. };
  76590. A._EvaluateVisitor_visitCssKeyframeBlock_closure5.prototype = {
  76591. call$0() {
  76592. var $async$goto = 0,
  76593. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  76594. $async$self = this, t1, t2, t3, t4;
  76595. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  76596. if ($async$errorCode === 1)
  76597. return A._asyncRethrow($async$result, $async$completer);
  76598. while (true)
  76599. switch ($async$goto) {
  76600. case 0:
  76601. // Function start
  76602. t1 = $async$self.node.children, t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this, t3 = A._instanceType(t1)._precomputed1;
  76603. case 2:
  76604. // for condition
  76605. if (!t1.moveNext$0()) {
  76606. // goto after for
  76607. $async$goto = 3;
  76608. break;
  76609. }
  76610. t4 = t1.__internal$_current;
  76611. $async$goto = 4;
  76612. return A._asyncAwait((t4 == null ? t3._as(t4) : t4).accept$1(t2), $async$call$0);
  76613. case 4:
  76614. // returning from await.
  76615. // goto for condition
  76616. $async$goto = 2;
  76617. break;
  76618. case 3:
  76619. // after for
  76620. // implicit return
  76621. return A._asyncReturn(null, $async$completer);
  76622. }
  76623. });
  76624. return A._asyncStartSync($async$call$0, $async$completer);
  76625. },
  76626. $signature: 2
  76627. };
  76628. A._EvaluateVisitor_visitCssKeyframeBlock_closure6.prototype = {
  76629. call$1(node) {
  76630. return type$.CssStyleRule_2._is(node);
  76631. },
  76632. $signature: 6
  76633. };
  76634. A._EvaluateVisitor_visitCssMediaRule_closure8.prototype = {
  76635. call$1(mediaQueries) {
  76636. return this.$this._async_evaluate0$_mergeMediaQueries$2(mediaQueries, this.node.queries);
  76637. },
  76638. $signature: 89
  76639. };
  76640. A._EvaluateVisitor_visitCssMediaRule_closure9.prototype = {
  76641. call$0() {
  76642. var $async$goto = 0,
  76643. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  76644. $async$self = this, t1, t2;
  76645. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  76646. if ($async$errorCode === 1)
  76647. return A._asyncRethrow($async$result, $async$completer);
  76648. while (true)
  76649. switch ($async$goto) {
  76650. case 0:
  76651. // Function start
  76652. t1 = $async$self.$this;
  76653. t2 = $async$self.mergedQueries;
  76654. if (t2 == null)
  76655. t2 = $async$self.node.queries;
  76656. $async$goto = 2;
  76657. return A._asyncAwait(t1._async_evaluate0$_withMediaQueries$1$3(t2, $async$self.mergedSources, new A._EvaluateVisitor_visitCssMediaRule__closure2(t1, $async$self.node), type$.Null), $async$call$0);
  76658. case 2:
  76659. // returning from await.
  76660. // implicit return
  76661. return A._asyncReturn(null, $async$completer);
  76662. }
  76663. });
  76664. return A._asyncStartSync($async$call$0, $async$completer);
  76665. },
  76666. $signature: 2
  76667. };
  76668. A._EvaluateVisitor_visitCssMediaRule__closure2.prototype = {
  76669. call$0() {
  76670. var $async$goto = 0,
  76671. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  76672. $async$self = this, t2, t3, t4, t1, styleRule;
  76673. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  76674. if ($async$errorCode === 1)
  76675. return A._asyncRethrow($async$result, $async$completer);
  76676. while (true)
  76677. switch ($async$goto) {
  76678. case 0:
  76679. // Function start
  76680. t1 = $async$self.$this;
  76681. styleRule = t1._async_evaluate0$_atRootExcludingStyleRule ? null : t1._async_evaluate0$_styleRuleIgnoringAtRoot;
  76682. $async$goto = styleRule == null ? 2 : 4;
  76683. break;
  76684. case 2:
  76685. // then
  76686. t2 = $async$self.node.children, t2 = new A.ListIterator(t2, t2.get$length(t2)), t3 = A._instanceType(t2)._precomputed1;
  76687. case 5:
  76688. // for condition
  76689. if (!t2.moveNext$0()) {
  76690. // goto after for
  76691. $async$goto = 6;
  76692. break;
  76693. }
  76694. t4 = t2.__internal$_current;
  76695. $async$goto = 7;
  76696. return A._asyncAwait((t4 == null ? t3._as(t4) : t4).accept$1(t1), $async$call$0);
  76697. case 7:
  76698. // returning from await.
  76699. // goto for condition
  76700. $async$goto = 5;
  76701. break;
  76702. case 6:
  76703. // after for
  76704. // goto join
  76705. $async$goto = 3;
  76706. break;
  76707. case 4:
  76708. // else
  76709. $async$goto = 8;
  76710. return A._asyncAwait(t1._async_evaluate0$_withParent$2$3$scopeWhen(A.ModifiableCssStyleRule$0(styleRule.selector, styleRule.span, styleRule.originalSelector), new A._EvaluateVisitor_visitCssMediaRule___closure2(t1, $async$self.node), false, type$.ModifiableCssStyleRule_2, type$.Null), $async$call$0);
  76711. case 8:
  76712. // returning from await.
  76713. case 3:
  76714. // join
  76715. // implicit return
  76716. return A._asyncReturn(null, $async$completer);
  76717. }
  76718. });
  76719. return A._asyncStartSync($async$call$0, $async$completer);
  76720. },
  76721. $signature: 2
  76722. };
  76723. A._EvaluateVisitor_visitCssMediaRule___closure2.prototype = {
  76724. call$0() {
  76725. var $async$goto = 0,
  76726. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  76727. $async$self = this, t1, t2, t3, t4;
  76728. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  76729. if ($async$errorCode === 1)
  76730. return A._asyncRethrow($async$result, $async$completer);
  76731. while (true)
  76732. switch ($async$goto) {
  76733. case 0:
  76734. // Function start
  76735. t1 = $async$self.node.children, t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this, t3 = A._instanceType(t1)._precomputed1;
  76736. case 2:
  76737. // for condition
  76738. if (!t1.moveNext$0()) {
  76739. // goto after for
  76740. $async$goto = 3;
  76741. break;
  76742. }
  76743. t4 = t1.__internal$_current;
  76744. $async$goto = 4;
  76745. return A._asyncAwait((t4 == null ? t3._as(t4) : t4).accept$1(t2), $async$call$0);
  76746. case 4:
  76747. // returning from await.
  76748. // goto for condition
  76749. $async$goto = 2;
  76750. break;
  76751. case 3:
  76752. // after for
  76753. // implicit return
  76754. return A._asyncReturn(null, $async$completer);
  76755. }
  76756. });
  76757. return A._asyncStartSync($async$call$0, $async$completer);
  76758. },
  76759. $signature: 2
  76760. };
  76761. A._EvaluateVisitor_visitCssMediaRule_closure10.prototype = {
  76762. call$1(node) {
  76763. var t1;
  76764. if (!type$.CssStyleRule_2._is(node)) {
  76765. t1 = this.mergedSources;
  76766. t1 = t1.get$isNotEmpty(t1) && type$.CssMediaRule_2._is(node) && B.JSArray_methods.every$1(node.queries, t1.get$contains(t1));
  76767. } else
  76768. t1 = true;
  76769. return t1;
  76770. },
  76771. $signature: 6
  76772. };
  76773. A._EvaluateVisitor_visitCssStyleRule_closure5.prototype = {
  76774. call$0() {
  76775. var $async$goto = 0,
  76776. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  76777. $async$self = this, t1;
  76778. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  76779. if ($async$errorCode === 1)
  76780. return A._asyncRethrow($async$result, $async$completer);
  76781. while (true)
  76782. switch ($async$goto) {
  76783. case 0:
  76784. // Function start
  76785. t1 = $async$self.$this;
  76786. $async$goto = 2;
  76787. return A._asyncAwait(t1._async_evaluate0$_withStyleRule$1$2($async$self.rule, new A._EvaluateVisitor_visitCssStyleRule__closure2(t1, $async$self.node), type$.Null), $async$call$0);
  76788. case 2:
  76789. // returning from await.
  76790. // implicit return
  76791. return A._asyncReturn(null, $async$completer);
  76792. }
  76793. });
  76794. return A._asyncStartSync($async$call$0, $async$completer);
  76795. },
  76796. $signature: 2
  76797. };
  76798. A._EvaluateVisitor_visitCssStyleRule__closure2.prototype = {
  76799. call$0() {
  76800. var $async$goto = 0,
  76801. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  76802. $async$self = this, t1, t2, t3, t4;
  76803. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  76804. if ($async$errorCode === 1)
  76805. return A._asyncRethrow($async$result, $async$completer);
  76806. while (true)
  76807. switch ($async$goto) {
  76808. case 0:
  76809. // Function start
  76810. t1 = $async$self.node.children, t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this, t3 = A._instanceType(t1)._precomputed1;
  76811. case 2:
  76812. // for condition
  76813. if (!t1.moveNext$0()) {
  76814. // goto after for
  76815. $async$goto = 3;
  76816. break;
  76817. }
  76818. t4 = t1.__internal$_current;
  76819. $async$goto = 4;
  76820. return A._asyncAwait((t4 == null ? t3._as(t4) : t4).accept$1(t2), $async$call$0);
  76821. case 4:
  76822. // returning from await.
  76823. // goto for condition
  76824. $async$goto = 2;
  76825. break;
  76826. case 3:
  76827. // after for
  76828. // implicit return
  76829. return A._asyncReturn(null, $async$completer);
  76830. }
  76831. });
  76832. return A._asyncStartSync($async$call$0, $async$completer);
  76833. },
  76834. $signature: 2
  76835. };
  76836. A._EvaluateVisitor_visitCssStyleRule_closure6.prototype = {
  76837. call$1(node) {
  76838. return type$.CssStyleRule_2._is(node);
  76839. },
  76840. $signature: 6
  76841. };
  76842. A._EvaluateVisitor_visitCssSupportsRule_closure5.prototype = {
  76843. call$0() {
  76844. var $async$goto = 0,
  76845. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  76846. $async$self = this, t2, t3, t4, t1, styleRule;
  76847. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  76848. if ($async$errorCode === 1)
  76849. return A._asyncRethrow($async$result, $async$completer);
  76850. while (true)
  76851. switch ($async$goto) {
  76852. case 0:
  76853. // Function start
  76854. t1 = $async$self.$this;
  76855. styleRule = t1._async_evaluate0$_atRootExcludingStyleRule ? null : t1._async_evaluate0$_styleRuleIgnoringAtRoot;
  76856. $async$goto = styleRule == null ? 2 : 4;
  76857. break;
  76858. case 2:
  76859. // then
  76860. t2 = $async$self.node.children, t2 = new A.ListIterator(t2, t2.get$length(t2)), t3 = A._instanceType(t2)._precomputed1;
  76861. case 5:
  76862. // for condition
  76863. if (!t2.moveNext$0()) {
  76864. // goto after for
  76865. $async$goto = 6;
  76866. break;
  76867. }
  76868. t4 = t2.__internal$_current;
  76869. $async$goto = 7;
  76870. return A._asyncAwait((t4 == null ? t3._as(t4) : t4).accept$1(t1), $async$call$0);
  76871. case 7:
  76872. // returning from await.
  76873. // goto for condition
  76874. $async$goto = 5;
  76875. break;
  76876. case 6:
  76877. // after for
  76878. // goto join
  76879. $async$goto = 3;
  76880. break;
  76881. case 4:
  76882. // else
  76883. $async$goto = 8;
  76884. return A._asyncAwait(t1._async_evaluate0$_withParent$2$2(A.ModifiableCssStyleRule$0(styleRule.selector, styleRule.span, styleRule.originalSelector), new A._EvaluateVisitor_visitCssSupportsRule__closure2(t1, $async$self.node), type$.ModifiableCssStyleRule_2, type$.Null), $async$call$0);
  76885. case 8:
  76886. // returning from await.
  76887. case 3:
  76888. // join
  76889. // implicit return
  76890. return A._asyncReturn(null, $async$completer);
  76891. }
  76892. });
  76893. return A._asyncStartSync($async$call$0, $async$completer);
  76894. },
  76895. $signature: 2
  76896. };
  76897. A._EvaluateVisitor_visitCssSupportsRule__closure2.prototype = {
  76898. call$0() {
  76899. var $async$goto = 0,
  76900. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  76901. $async$self = this, t1, t2, t3, t4;
  76902. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  76903. if ($async$errorCode === 1)
  76904. return A._asyncRethrow($async$result, $async$completer);
  76905. while (true)
  76906. switch ($async$goto) {
  76907. case 0:
  76908. // Function start
  76909. t1 = $async$self.node.children, t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this, t3 = A._instanceType(t1)._precomputed1;
  76910. case 2:
  76911. // for condition
  76912. if (!t1.moveNext$0()) {
  76913. // goto after for
  76914. $async$goto = 3;
  76915. break;
  76916. }
  76917. t4 = t1.__internal$_current;
  76918. $async$goto = 4;
  76919. return A._asyncAwait((t4 == null ? t3._as(t4) : t4).accept$1(t2), $async$call$0);
  76920. case 4:
  76921. // returning from await.
  76922. // goto for condition
  76923. $async$goto = 2;
  76924. break;
  76925. case 3:
  76926. // after for
  76927. // implicit return
  76928. return A._asyncReturn(null, $async$completer);
  76929. }
  76930. });
  76931. return A._asyncStartSync($async$call$0, $async$completer);
  76932. },
  76933. $signature: 2
  76934. };
  76935. A._EvaluateVisitor_visitCssSupportsRule_closure6.prototype = {
  76936. call$1(node) {
  76937. return type$.CssStyleRule_2._is(node);
  76938. },
  76939. $signature: 6
  76940. };
  76941. A._EvaluateVisitor__performInterpolation_closure2.prototype = {
  76942. call$1(value) {
  76943. var $async$goto = 0,
  76944. $async$completer = A._makeAsyncAwaitCompleter(type$.String),
  76945. $async$returnValue, $async$self = this, t1, result, t2, t3;
  76946. var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  76947. if ($async$errorCode === 1)
  76948. return A._asyncRethrow($async$result, $async$completer);
  76949. while (true)
  76950. switch ($async$goto) {
  76951. case 0:
  76952. // Function start
  76953. if (typeof value == "string") {
  76954. $async$returnValue = value;
  76955. // goto return
  76956. $async$goto = 1;
  76957. break;
  76958. }
  76959. type$.Expression_2._as(value);
  76960. t1 = $async$self.$this;
  76961. $async$goto = 3;
  76962. return A._asyncAwait(value.accept$1(t1), $async$call$1);
  76963. case 3:
  76964. // returning from await.
  76965. result = $async$result;
  76966. if ($async$self.warnForColor && result instanceof A.SassColor0 && $.$get$namesByColor0().containsKey$1(result)) {
  76967. t2 = A.Interpolation$0(A._setArrayType([""], type$.JSArray_Object), $async$self.interpolation.span);
  76968. t3 = $.$get$namesByColor0();
  76969. t1._async_evaluate0$_warn$2(string$.You_pr + A.S(t3.$index(0, result)) + string$.x20in_in + result.toString$0(0) + string$.x2c_whic + A.S(t3.$index(0, result)) + string$.x22x29__If + new A.BinaryOperationExpression0(B.BinaryOperator_qbf0, new A.StringExpression0(t2, true), value, false).toString$0(0) + "'.", value.get$span(value));
  76970. }
  76971. $async$returnValue = t1._async_evaluate0$_serialize$3$quote(result, value, false);
  76972. // goto return
  76973. $async$goto = 1;
  76974. break;
  76975. case 1:
  76976. // return
  76977. return A._asyncReturn($async$returnValue, $async$completer);
  76978. }
  76979. });
  76980. return A._asyncStartSync($async$call$1, $async$completer);
  76981. },
  76982. $signature: 101
  76983. };
  76984. A._EvaluateVisitor__serialize_closure2.prototype = {
  76985. call$0() {
  76986. return A.serializeValue0(this.value, false, this.quote);
  76987. },
  76988. $signature: 30
  76989. };
  76990. A._EvaluateVisitor__expressionNode_closure2.prototype = {
  76991. call$0() {
  76992. var t1 = this.expression;
  76993. return this.$this._async_evaluate0$_environment.getVariableNode$2$namespace(t1.name, t1.namespace);
  76994. },
  76995. $signature: 176
  76996. };
  76997. A._EvaluateVisitor__withoutSlash_recommendation2.prototype = {
  76998. call$1(number) {
  76999. var asSlash = number.asSlash;
  77000. if (asSlash != null)
  77001. return "math.div(" + A.S(this.call$1(asSlash.item1)) + ", " + A.S(this.call$1(asSlash.item2)) + ")";
  77002. else
  77003. return A.serializeValue0(number, true, true);
  77004. },
  77005. $signature: 175
  77006. };
  77007. A._EvaluateVisitor__stackFrame_closure2.prototype = {
  77008. call$1(url) {
  77009. var t1 = this.$this._async_evaluate0$_importCache;
  77010. t1 = t1 == null ? null : t1.humanize$1(url);
  77011. return t1 == null ? url : t1;
  77012. },
  77013. $signature: 102
  77014. };
  77015. A._EvaluateVisitor__stackTrace_closure2.prototype = {
  77016. call$1(tuple) {
  77017. return this.$this._async_evaluate0$_stackFrame$2(tuple.item1, J.get$span$z(tuple.item2));
  77018. },
  77019. $signature: 173
  77020. };
  77021. A._ImportedCssVisitor2.prototype = {
  77022. visitCssAtRule$1(node) {
  77023. var t1 = node.isChildless ? null : new A._ImportedCssVisitor_visitCssAtRule_closure2();
  77024. this._async_evaluate0$_visitor._async_evaluate0$_addChild$2$through(node, t1);
  77025. },
  77026. visitCssComment$1(node) {
  77027. return this._async_evaluate0$_visitor._async_evaluate0$_addChild$1(node);
  77028. },
  77029. visitCssDeclaration$1(node) {
  77030. },
  77031. visitCssImport$1(node) {
  77032. var t2,
  77033. _s13_ = "_endOfImports",
  77034. t1 = this._async_evaluate0$_visitor;
  77035. if (t1._async_evaluate0$_assertInModule$2(t1._async_evaluate0$__parent, "__parent") !== t1._async_evaluate0$_assertInModule$2(t1._async_evaluate0$__root, "_root"))
  77036. t1._async_evaluate0$_addChild$1(node);
  77037. else if (t1._async_evaluate0$_assertInModule$2(t1._async_evaluate0$__endOfImports, _s13_) === J.get$length$asx(t1._async_evaluate0$_assertInModule$2(t1._async_evaluate0$__root, "_root").children._collection$_source)) {
  77038. t1._async_evaluate0$_addChild$1(node);
  77039. t1._async_evaluate0$__endOfImports = t1._async_evaluate0$_assertInModule$2(t1._async_evaluate0$__endOfImports, _s13_) + 1;
  77040. } else {
  77041. t2 = t1._async_evaluate0$_outOfOrderImports;
  77042. (t2 == null ? t1._async_evaluate0$_outOfOrderImports = A._setArrayType([], type$.JSArray_ModifiableCssImport_2) : t2).push(node);
  77043. }
  77044. },
  77045. visitCssKeyframeBlock$1(node) {
  77046. },
  77047. visitCssMediaRule$1(node) {
  77048. var t1 = this._async_evaluate0$_visitor,
  77049. mediaQueries = t1._async_evaluate0$_mediaQueries;
  77050. t1._async_evaluate0$_addChild$2$through(node, new A._ImportedCssVisitor_visitCssMediaRule_closure2(mediaQueries == null || t1._async_evaluate0$_mergeMediaQueries$2(mediaQueries, node.queries) != null));
  77051. },
  77052. visitCssStyleRule$1(node) {
  77053. return this._async_evaluate0$_visitor._async_evaluate0$_addChild$2$through(node, new A._ImportedCssVisitor_visitCssStyleRule_closure2());
  77054. },
  77055. visitCssStylesheet$1(node) {
  77056. var t1, t2, t3;
  77057. for (t1 = node.children, t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) {
  77058. t3 = t1.__internal$_current;
  77059. (t3 == null ? t2._as(t3) : t3).accept$1(this);
  77060. }
  77061. },
  77062. visitCssSupportsRule$1(node) {
  77063. return this._async_evaluate0$_visitor._async_evaluate0$_addChild$2$through(node, new A._ImportedCssVisitor_visitCssSupportsRule_closure2());
  77064. }
  77065. };
  77066. A._ImportedCssVisitor_visitCssAtRule_closure2.prototype = {
  77067. call$1(node) {
  77068. return type$.CssStyleRule_2._is(node);
  77069. },
  77070. $signature: 6
  77071. };
  77072. A._ImportedCssVisitor_visitCssMediaRule_closure2.prototype = {
  77073. call$1(node) {
  77074. var t1;
  77075. if (!type$.CssStyleRule_2._is(node))
  77076. t1 = this.hasBeenMerged && type$.CssMediaRule_2._is(node);
  77077. else
  77078. t1 = true;
  77079. return t1;
  77080. },
  77081. $signature: 6
  77082. };
  77083. A._ImportedCssVisitor_visitCssStyleRule_closure2.prototype = {
  77084. call$1(node) {
  77085. return type$.CssStyleRule_2._is(node);
  77086. },
  77087. $signature: 6
  77088. };
  77089. A._ImportedCssVisitor_visitCssSupportsRule_closure2.prototype = {
  77090. call$1(node) {
  77091. return type$.CssStyleRule_2._is(node);
  77092. },
  77093. $signature: 6
  77094. };
  77095. A.EvaluateResult0.prototype = {};
  77096. A._EvaluationContext2.prototype = {
  77097. get$currentCallableSpan() {
  77098. var callableNode = this._async_evaluate0$_visitor._async_evaluate0$_callableNode;
  77099. if (callableNode != null)
  77100. return callableNode.get$span(callableNode);
  77101. throw A.wrapException(A.StateError$(string$.No_Sasc));
  77102. },
  77103. warn$2$deprecation(_, message, deprecation) {
  77104. var t1 = this._async_evaluate0$_visitor,
  77105. t2 = t1._async_evaluate0$_importSpan;
  77106. if (t2 == null) {
  77107. t2 = t1._async_evaluate0$_callableNode;
  77108. t2 = t2 == null ? null : t2.get$span(t2);
  77109. }
  77110. t1._async_evaluate0$_warn$3$deprecation(message, t2 == null ? this._async_evaluate0$_defaultWarnNodeWithSpan.span : t2, deprecation);
  77111. },
  77112. $isEvaluationContext0: 1
  77113. };
  77114. A._ArgumentResults2.prototype = {};
  77115. A._LoadedStylesheet2.prototype = {};
  77116. A.NodeToDartAsyncFileImporter.prototype = {
  77117. canonicalize$1(_, url) {
  77118. return this.canonicalize$body$NodeToDartAsyncFileImporter(0, url);
  77119. },
  77120. canonicalize$body$NodeToDartAsyncFileImporter(_, url) {
  77121. var $async$goto = 0,
  77122. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Uri),
  77123. $async$returnValue, $async$self = this, result, t1, resultUrl;
  77124. var $async$canonicalize$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  77125. if ($async$errorCode === 1)
  77126. return A._asyncRethrow($async$result, $async$completer);
  77127. while (true)
  77128. switch ($async$goto) {
  77129. case 0:
  77130. // Function start
  77131. if (url.get$scheme() === "file") {
  77132. $async$returnValue = $.$get$_filesystemImporter().canonicalize$1(0, url);
  77133. // goto return
  77134. $async$goto = 1;
  77135. break;
  77136. }
  77137. result = $async$self._findFileUrl.call$2(url.toString$0(0), {fromImport: A.fromImport0()});
  77138. $async$goto = result != null && result instanceof self.Promise ? 3 : 4;
  77139. break;
  77140. case 3:
  77141. // then
  77142. $async$goto = 5;
  77143. return A._asyncAwait(A.promiseToFuture(type$.Promise._as(result), type$.nullable_Object), $async$canonicalize$1);
  77144. case 5:
  77145. // returning from await.
  77146. result = $async$result;
  77147. case 4:
  77148. // join
  77149. if (result == null) {
  77150. $async$returnValue = null;
  77151. // goto return
  77152. $async$goto = 1;
  77153. break;
  77154. }
  77155. t1 = self.URL;
  77156. if (!(result instanceof t1))
  77157. A.jsThrow(new self.Error(string$.The_fie));
  77158. resultUrl = A.Uri_parse(J.toString$0$(type$.JSUrl._as(result)));
  77159. if (resultUrl.get$scheme() !== "file")
  77160. A.jsThrow(new self.Error(string$.The_fiu + url.toString$0(0) + '".'));
  77161. $async$returnValue = $.$get$_filesystemImporter().canonicalize$1(0, resultUrl);
  77162. // goto return
  77163. $async$goto = 1;
  77164. break;
  77165. case 1:
  77166. // return
  77167. return A._asyncReturn($async$returnValue, $async$completer);
  77168. }
  77169. });
  77170. return A._asyncStartSync($async$canonicalize$1, $async$completer);
  77171. },
  77172. load$1(_, url) {
  77173. return $.$get$_filesystemImporter().load$1(0, url);
  77174. }
  77175. };
  77176. A.AsyncImportCache0.prototype = {
  77177. canonicalize$4$baseImporter$baseUrl$forImport(_, url, baseImporter, baseUrl, forImport) {
  77178. return this.canonicalize$body$AsyncImportCache0(0, url, baseImporter, baseUrl, forImport);
  77179. },
  77180. canonicalize$body$AsyncImportCache0(_, url, baseImporter, baseUrl, forImport) {
  77181. var $async$goto = 0,
  77182. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Tuple3_AsyncImporter_Uri_Uri_2),
  77183. $async$returnValue, $async$self = this, t1, relativeResult;
  77184. var $async$canonicalize$4$baseImporter$baseUrl$forImport = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  77185. if ($async$errorCode === 1)
  77186. return A._asyncRethrow($async$result, $async$completer);
  77187. while (true)
  77188. switch ($async$goto) {
  77189. case 0:
  77190. // Function start
  77191. $async$goto = baseImporter != null ? 3 : 4;
  77192. break;
  77193. case 3:
  77194. // then
  77195. t1 = type$.Tuple4_of_Uri_and_bool_and_AsyncImporter_and_nullable_Uri_2;
  77196. $async$goto = 5;
  77197. return A._asyncAwait(A.putIfAbsentAsync0($async$self._async_import_cache0$_relativeCanonicalizeCache, new A.Tuple4(url, forImport, baseImporter, baseUrl, t1), new A.AsyncImportCache_canonicalize_closure1($async$self, baseUrl, url, baseImporter, forImport), t1, type$.nullable_Tuple3_AsyncImporter_Uri_Uri_2), $async$canonicalize$4$baseImporter$baseUrl$forImport);
  77198. case 5:
  77199. // returning from await.
  77200. relativeResult = $async$result;
  77201. if (relativeResult != null) {
  77202. $async$returnValue = relativeResult;
  77203. // goto return
  77204. $async$goto = 1;
  77205. break;
  77206. }
  77207. case 4:
  77208. // join
  77209. t1 = type$.Tuple2_Uri_bool;
  77210. $async$goto = 6;
  77211. return A._asyncAwait(A.putIfAbsentAsync0($async$self._async_import_cache0$_canonicalizeCache, new A.Tuple2(url, forImport, t1), new A.AsyncImportCache_canonicalize_closure2($async$self, url, forImport), t1, type$.nullable_Tuple3_AsyncImporter_Uri_Uri_2), $async$canonicalize$4$baseImporter$baseUrl$forImport);
  77212. case 6:
  77213. // returning from await.
  77214. $async$returnValue = $async$result;
  77215. // goto return
  77216. $async$goto = 1;
  77217. break;
  77218. case 1:
  77219. // return
  77220. return A._asyncReturn($async$returnValue, $async$completer);
  77221. }
  77222. });
  77223. return A._asyncStartSync($async$canonicalize$4$baseImporter$baseUrl$forImport, $async$completer);
  77224. },
  77225. _async_import_cache0$_canonicalize$3(importer, url, forImport) {
  77226. return this._canonicalize$body$AsyncImportCache0(importer, url, forImport);
  77227. },
  77228. _canonicalize$body$AsyncImportCache0(importer, url, forImport) {
  77229. var $async$goto = 0,
  77230. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Uri),
  77231. $async$returnValue, $async$self = this, t1, result;
  77232. var $async$_async_import_cache0$_canonicalize$3 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  77233. if ($async$errorCode === 1)
  77234. return A._asyncRethrow($async$result, $async$completer);
  77235. while (true)
  77236. switch ($async$goto) {
  77237. case 0:
  77238. // Function start
  77239. if (forImport) {
  77240. t1 = type$.nullable_Object;
  77241. t1 = A.runZoned(new A.AsyncImportCache__canonicalize_closure0(importer, url), A.LinkedHashMap_LinkedHashMap$_literal([B.Symbol__inImportRule, true], t1, t1), type$.FutureOr_nullable_Uri);
  77242. } else
  77243. t1 = importer.canonicalize$1(0, url);
  77244. $async$goto = 3;
  77245. return A._asyncAwait(t1, $async$_async_import_cache0$_canonicalize$3);
  77246. case 3:
  77247. // returning from await.
  77248. result = $async$result;
  77249. if ((result == null ? null : result.get$scheme()) === "")
  77250. $async$self._async_import_cache0$_logger.warn$2$deprecation(0, "Importer " + importer.toString$0(0) + " canonicalized " + url.toString$0(0) + " to " + A.S(result) + string$.x2e_Rela, true);
  77251. $async$returnValue = result;
  77252. // goto return
  77253. $async$goto = 1;
  77254. break;
  77255. case 1:
  77256. // return
  77257. return A._asyncReturn($async$returnValue, $async$completer);
  77258. }
  77259. });
  77260. return A._asyncStartSync($async$_async_import_cache0$_canonicalize$3, $async$completer);
  77261. },
  77262. importCanonical$4$originalUrl$quiet(importer, canonicalUrl, originalUrl, quiet) {
  77263. return this.importCanonical$body$AsyncImportCache0(importer, canonicalUrl, originalUrl, quiet);
  77264. },
  77265. importCanonical$3$originalUrl(importer, canonicalUrl, originalUrl) {
  77266. return this.importCanonical$4$originalUrl$quiet(importer, canonicalUrl, originalUrl, false);
  77267. },
  77268. importCanonical$body$AsyncImportCache0(importer, canonicalUrl, originalUrl, quiet) {
  77269. var $async$goto = 0,
  77270. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Stylesheet_2),
  77271. $async$returnValue, $async$self = this;
  77272. var $async$importCanonical$4$originalUrl$quiet = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  77273. if ($async$errorCode === 1)
  77274. return A._asyncRethrow($async$result, $async$completer);
  77275. while (true)
  77276. switch ($async$goto) {
  77277. case 0:
  77278. // Function start
  77279. $async$goto = 3;
  77280. return A._asyncAwait(A.putIfAbsentAsync0($async$self._async_import_cache0$_importCache, canonicalUrl, new A.AsyncImportCache_importCanonical_closure0($async$self, importer, canonicalUrl, originalUrl, quiet), type$.Uri, type$.nullable_Stylesheet_2), $async$importCanonical$4$originalUrl$quiet);
  77281. case 3:
  77282. // returning from await.
  77283. $async$returnValue = $async$result;
  77284. // goto return
  77285. $async$goto = 1;
  77286. break;
  77287. case 1:
  77288. // return
  77289. return A._asyncReturn($async$returnValue, $async$completer);
  77290. }
  77291. });
  77292. return A._asyncStartSync($async$importCanonical$4$originalUrl$quiet, $async$completer);
  77293. },
  77294. humanize$1(canonicalUrl) {
  77295. var t2, url,
  77296. t1 = this._async_import_cache0$_canonicalizeCache;
  77297. t1 = A.IterableNullableExtension_whereNotNull(t1.get$values(t1), type$.Tuple3_AsyncImporter_Uri_Uri_2);
  77298. t2 = t1.$ti;
  77299. url = A.minBy(new A.MappedIterable(new A.WhereIterable(t1, new A.AsyncImportCache_humanize_closure2(canonicalUrl), t2._eval$1("WhereIterable<Iterable.E>")), new A.AsyncImportCache_humanize_closure3(), t2._eval$1("MappedIterable<Iterable.E,Uri>")), new A.AsyncImportCache_humanize_closure4());
  77300. if (url == null)
  77301. return canonicalUrl;
  77302. t1 = $.$get$url();
  77303. return url.resolve$1(A.ParsedPath_ParsedPath$parse(canonicalUrl.get$path(canonicalUrl), t1.style).get$basename());
  77304. },
  77305. sourceMapUrl$1(_, canonicalUrl) {
  77306. var t1 = this._async_import_cache0$_resultsCache.$index(0, canonicalUrl);
  77307. t1 = t1 == null ? null : t1.get$sourceMapUrl(t1);
  77308. return t1 == null ? canonicalUrl : t1;
  77309. }
  77310. };
  77311. A.AsyncImportCache_canonicalize_closure1.prototype = {
  77312. call$0() {
  77313. var $async$goto = 0,
  77314. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Tuple3_AsyncImporter_Uri_Uri_2),
  77315. $async$returnValue, $async$self = this, canonicalUrl, t1, resolvedUrl;
  77316. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  77317. if ($async$errorCode === 1)
  77318. return A._asyncRethrow($async$result, $async$completer);
  77319. while (true)
  77320. switch ($async$goto) {
  77321. case 0:
  77322. // Function start
  77323. t1 = $async$self.baseUrl;
  77324. resolvedUrl = t1 == null ? null : t1.resolveUri$1($async$self.url);
  77325. if (resolvedUrl == null)
  77326. resolvedUrl = $async$self.url;
  77327. t1 = $async$self.baseImporter;
  77328. $async$goto = 3;
  77329. return A._asyncAwait($async$self.$this._async_import_cache0$_canonicalize$3(t1, resolvedUrl, $async$self.forImport), $async$call$0);
  77330. case 3:
  77331. // returning from await.
  77332. canonicalUrl = $async$result;
  77333. if (canonicalUrl == null) {
  77334. $async$returnValue = null;
  77335. // goto return
  77336. $async$goto = 1;
  77337. break;
  77338. }
  77339. $async$returnValue = new A.Tuple3(t1, canonicalUrl, resolvedUrl, type$.Tuple3_AsyncImporter_Uri_Uri_2);
  77340. // goto return
  77341. $async$goto = 1;
  77342. break;
  77343. case 1:
  77344. // return
  77345. return A._asyncReturn($async$returnValue, $async$completer);
  77346. }
  77347. });
  77348. return A._asyncStartSync($async$call$0, $async$completer);
  77349. },
  77350. $signature: 170
  77351. };
  77352. A.AsyncImportCache_canonicalize_closure2.prototype = {
  77353. call$0() {
  77354. var $async$goto = 0,
  77355. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Tuple3_AsyncImporter_Uri_Uri_2),
  77356. $async$returnValue, $async$self = this, t1, t2, t3, t4, t5, _i, importer, canonicalUrl;
  77357. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  77358. if ($async$errorCode === 1)
  77359. return A._asyncRethrow($async$result, $async$completer);
  77360. while (true)
  77361. switch ($async$goto) {
  77362. case 0:
  77363. // Function start
  77364. t1 = $async$self.$this, t2 = t1._async_import_cache0$_importers, t3 = t2.length, t4 = $async$self.url, t5 = $async$self.forImport, _i = 0;
  77365. case 3:
  77366. // for condition
  77367. if (!(_i < t2.length)) {
  77368. // goto after for
  77369. $async$goto = 5;
  77370. break;
  77371. }
  77372. importer = t2[_i];
  77373. $async$goto = 6;
  77374. return A._asyncAwait(t1._async_import_cache0$_canonicalize$3(importer, t4, t5), $async$call$0);
  77375. case 6:
  77376. // returning from await.
  77377. canonicalUrl = $async$result;
  77378. if (canonicalUrl != null) {
  77379. $async$returnValue = new A.Tuple3(importer, canonicalUrl, t4, type$.Tuple3_AsyncImporter_Uri_Uri_2);
  77380. // goto return
  77381. $async$goto = 1;
  77382. break;
  77383. }
  77384. case 4:
  77385. // for update
  77386. t2.length === t3 || (0, A.throwConcurrentModificationError)(t2), ++_i;
  77387. // goto for condition
  77388. $async$goto = 3;
  77389. break;
  77390. case 5:
  77391. // after for
  77392. $async$returnValue = null;
  77393. // goto return
  77394. $async$goto = 1;
  77395. break;
  77396. case 1:
  77397. // return
  77398. return A._asyncReturn($async$returnValue, $async$completer);
  77399. }
  77400. });
  77401. return A._asyncStartSync($async$call$0, $async$completer);
  77402. },
  77403. $signature: 170
  77404. };
  77405. A.AsyncImportCache__canonicalize_closure0.prototype = {
  77406. call$0() {
  77407. return this.importer.canonicalize$1(0, this.url);
  77408. },
  77409. $signature: 152
  77410. };
  77411. A.AsyncImportCache_importCanonical_closure0.prototype = {
  77412. call$0() {
  77413. var $async$goto = 0,
  77414. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Stylesheet_2),
  77415. $async$returnValue, $async$self = this, t2, t3, t4, t1, result;
  77416. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  77417. if ($async$errorCode === 1)
  77418. return A._asyncRethrow($async$result, $async$completer);
  77419. while (true)
  77420. switch ($async$goto) {
  77421. case 0:
  77422. // Function start
  77423. t1 = $async$self.canonicalUrl;
  77424. $async$goto = 3;
  77425. return A._asyncAwait($async$self.importer.load$1(0, t1), $async$call$0);
  77426. case 3:
  77427. // returning from await.
  77428. result = $async$result;
  77429. if (result == null) {
  77430. $async$returnValue = null;
  77431. // goto return
  77432. $async$goto = 1;
  77433. break;
  77434. }
  77435. t2 = $async$self.$this;
  77436. t2._async_import_cache0$_resultsCache.$indexSet(0, t1, result);
  77437. t3 = result.contents;
  77438. t4 = result.syntax;
  77439. t1 = $async$self.originalUrl.resolveUri$1(t1);
  77440. $async$returnValue = A.Stylesheet_Stylesheet$parse0(t3, t4, $async$self.quiet ? $.$get$Logger_quiet0() : t2._async_import_cache0$_logger, t1);
  77441. // goto return
  77442. $async$goto = 1;
  77443. break;
  77444. case 1:
  77445. // return
  77446. return A._asyncReturn($async$returnValue, $async$completer);
  77447. }
  77448. });
  77449. return A._asyncStartSync($async$call$0, $async$completer);
  77450. },
  77451. $signature: 349
  77452. };
  77453. A.AsyncImportCache_humanize_closure2.prototype = {
  77454. call$1(tuple) {
  77455. return tuple.item2.$eq(0, this.canonicalUrl);
  77456. },
  77457. $signature: 350
  77458. };
  77459. A.AsyncImportCache_humanize_closure3.prototype = {
  77460. call$1(tuple) {
  77461. return tuple.item3;
  77462. },
  77463. $signature: 351
  77464. };
  77465. A.AsyncImportCache_humanize_closure4.prototype = {
  77466. call$1(url) {
  77467. return url.get$path(url).length;
  77468. },
  77469. $signature: 78
  77470. };
  77471. A.AtRootQueryParser0.prototype = {
  77472. parse$0() {
  77473. return this.wrapSpanFormatException$1(new A.AtRootQueryParser_parse_closure0(this));
  77474. }
  77475. };
  77476. A.AtRootQueryParser_parse_closure0.prototype = {
  77477. call$0() {
  77478. var include, atRules,
  77479. t1 = this.$this,
  77480. t2 = t1.scanner;
  77481. t2.expectChar$1(40);
  77482. t1.whitespace$0();
  77483. include = t1.scanIdentifier$1("with");
  77484. if (!include)
  77485. t1.expectIdentifier$2$name("without", '"with" or "without"');
  77486. t1.whitespace$0();
  77487. t2.expectChar$1(58);
  77488. t1.whitespace$0();
  77489. atRules = A.LinkedHashSet_LinkedHashSet$_empty(type$.String);
  77490. do {
  77491. atRules.add$1(0, t1.identifier$0().toLowerCase());
  77492. t1.whitespace$0();
  77493. } while (t1.lookingAtIdentifier$0());
  77494. t2.expectChar$1(41);
  77495. t2.expectDone$0();
  77496. return new A.AtRootQuery0(include, atRules, atRules.contains$1(0, "all"), atRules.contains$1(0, "rule"));
  77497. },
  77498. $signature: 130
  77499. };
  77500. A.AtRootQuery0.prototype = {
  77501. excludes$1(node) {
  77502. var t1, _this = this;
  77503. if (_this._at_root_query0$_all)
  77504. return !_this.include;
  77505. if (type$.CssStyleRule_2._is(node))
  77506. return _this._at_root_query0$_rule !== _this.include;
  77507. if (type$.CssMediaRule_2._is(node))
  77508. return _this.excludesName$1("media");
  77509. if (type$.CssSupportsRule_2._is(node))
  77510. return _this.excludesName$1("supports");
  77511. if (type$.CssAtRule_2._is(node)) {
  77512. t1 = node.name;
  77513. return _this.excludesName$1(t1.get$value(t1).toLowerCase());
  77514. }
  77515. return false;
  77516. },
  77517. excludesName$1($name) {
  77518. var t1 = this._at_root_query0$_all || this.names.contains$1(0, $name);
  77519. return t1 !== this.include;
  77520. }
  77521. };
  77522. A.AtRootRule0.prototype = {
  77523. accept$1$1(visitor) {
  77524. return visitor.visitAtRootRule$1(this);
  77525. },
  77526. accept$1(visitor) {
  77527. return this.accept$1$1(visitor, type$.dynamic);
  77528. },
  77529. toString$0(_) {
  77530. var buffer = new A.StringBuffer("@at-root "),
  77531. t1 = this.query;
  77532. if (t1 != null)
  77533. buffer._contents = "@at-root " + (t1.toString$0(0) + " ");
  77534. t1 = this.children;
  77535. return buffer.toString$0(0) + " {" + (t1 && B.JSArray_methods).join$1(t1, " ") + "}";
  77536. },
  77537. get$span(receiver) {
  77538. return this.span;
  77539. }
  77540. };
  77541. A.ModifiableCssAtRule0.prototype = {
  77542. accept$1$1(visitor) {
  77543. return visitor.visitCssAtRule$1(this);
  77544. },
  77545. accept$1(visitor) {
  77546. return this.accept$1$1(visitor, type$.dynamic);
  77547. },
  77548. copyWithoutChildren$0() {
  77549. var _this = this;
  77550. return A.ModifiableCssAtRule$0(_this.name, _this.span, _this.isChildless, _this.value);
  77551. },
  77552. addChild$1(child) {
  77553. this.super$ModifiableCssParentNode$addChild0(child);
  77554. },
  77555. $isCssAtRule0: 1,
  77556. get$isChildless() {
  77557. return this.isChildless;
  77558. },
  77559. get$span(receiver) {
  77560. return this.span;
  77561. }
  77562. };
  77563. A.AtRule0.prototype = {
  77564. accept$1$1(visitor) {
  77565. return visitor.visitAtRule$1(this);
  77566. },
  77567. accept$1(visitor) {
  77568. return this.accept$1$1(visitor, type$.dynamic);
  77569. },
  77570. toString$0(_) {
  77571. var children,
  77572. t1 = "@" + this.name.toString$0(0),
  77573. buffer = new A.StringBuffer(t1),
  77574. t2 = this.value;
  77575. if (t2 != null)
  77576. buffer._contents = t1 + (" " + t2.toString$0(0));
  77577. children = this.children;
  77578. return children == null ? buffer.toString$0(0) + ";" : buffer.toString$0(0) + " {" + B.JSArray_methods.join$1(children, " ") + "}";
  77579. },
  77580. get$span(receiver) {
  77581. return this.span;
  77582. }
  77583. };
  77584. A.AttributeSelector0.prototype = {
  77585. accept$1$1(visitor) {
  77586. return visitor.visitAttributeSelector$1(this);
  77587. },
  77588. accept$1(visitor) {
  77589. return this.accept$1$1(visitor, type$.dynamic);
  77590. },
  77591. $eq(_, other) {
  77592. var _this = this;
  77593. if (other == null)
  77594. return false;
  77595. return other instanceof A.AttributeSelector0 && other.name.$eq(0, _this.name) && other.op == _this.op && other.value == _this.value && other.modifier == _this.modifier;
  77596. },
  77597. get$hashCode(_) {
  77598. var _this = this,
  77599. t1 = _this.name;
  77600. return (B.JSString_methods.get$hashCode(t1.name) ^ J.get$hashCode$(t1.namespace) ^ J.get$hashCode$(_this.op) ^ J.get$hashCode$(_this.value) ^ J.get$hashCode$(_this.modifier)) >>> 0;
  77601. }
  77602. };
  77603. A.AttributeOperator0.prototype = {
  77604. toString$0(_) {
  77605. return this._attribute0$_text;
  77606. }
  77607. };
  77608. A.BinaryOperationExpression0.prototype = {
  77609. get$span(_) {
  77610. var right,
  77611. left = this.left;
  77612. for (; left instanceof A.BinaryOperationExpression0;)
  77613. left = left.left;
  77614. right = this.right;
  77615. for (; right instanceof A.BinaryOperationExpression0;)
  77616. right = right.right;
  77617. return left.get$span(left).expand$1(0, right.get$span(right));
  77618. },
  77619. accept$1$1(visitor) {
  77620. return visitor.visitBinaryOperationExpression$1(this);
  77621. },
  77622. accept$1(visitor) {
  77623. return this.accept$1$1(visitor, type$.dynamic);
  77624. },
  77625. toString$0(_) {
  77626. var t2, right, rightNeedsParens, _this = this,
  77627. left = _this.left,
  77628. leftNeedsParens = left instanceof A.BinaryOperationExpression0 && left.operator.precedence < _this.operator.precedence,
  77629. t1 = leftNeedsParens ? "" + A.Primitives_stringFromCharCode(40) : "";
  77630. t1 += left.toString$0(0);
  77631. if (leftNeedsParens)
  77632. t1 += A.Primitives_stringFromCharCode(41);
  77633. t2 = _this.operator;
  77634. t1 = t1 + A.Primitives_stringFromCharCode(32) + t2.operator + A.Primitives_stringFromCharCode(32);
  77635. right = _this.right;
  77636. rightNeedsParens = right instanceof A.BinaryOperationExpression0 && right.operator.precedence <= t2.precedence;
  77637. if (rightNeedsParens)
  77638. t1 += A.Primitives_stringFromCharCode(40);
  77639. t1 += right.toString$0(0);
  77640. if (rightNeedsParens)
  77641. t1 += A.Primitives_stringFromCharCode(41);
  77642. return t1.charCodeAt(0) == 0 ? t1 : t1;
  77643. },
  77644. $isExpression0: 1,
  77645. $isAstNode0: 1
  77646. };
  77647. A.BinaryOperator0.prototype = {
  77648. toString$0(_) {
  77649. return this.name;
  77650. }
  77651. };
  77652. A.BooleanExpression0.prototype = {
  77653. accept$1$1(visitor) {
  77654. return visitor.visitBooleanExpression$1(this);
  77655. },
  77656. accept$1(visitor) {
  77657. return this.accept$1$1(visitor, type$.dynamic);
  77658. },
  77659. toString$0(_) {
  77660. return String(this.value);
  77661. },
  77662. $isExpression0: 1,
  77663. $isAstNode0: 1,
  77664. get$span(receiver) {
  77665. return this.span;
  77666. }
  77667. };
  77668. A.legacyBooleanClass_closure.prototype = {
  77669. call$0() {
  77670. var t1 = type$.JSClass,
  77671. jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.types.Boolean", new A.legacyBooleanClass__closure()));
  77672. J.get$$prototype$x(jsClass).getValue = A.allowInteropCaptureThisNamed("getValue", new A.legacyBooleanClass__closure0());
  77673. jsClass.TRUE = B.SassBoolean_true0;
  77674. jsClass.FALSE = B.SassBoolean_false0;
  77675. A.JSClassExtension_injectSuperclass(t1._as(B.SassBoolean_true0.constructor), jsClass);
  77676. return jsClass;
  77677. },
  77678. $signature: 25
  77679. };
  77680. A.legacyBooleanClass__closure.prototype = {
  77681. call$2(_, __) {
  77682. throw A.wrapException("new sass.types.Boolean() isn't allowed.\nUse sass.types.Boolean.TRUE or sass.types.Boolean.FALSE instead.");
  77683. },
  77684. call$1(_) {
  77685. return this.call$2(_, null);
  77686. },
  77687. "call*": "call$2",
  77688. $requiredArgCount: 1,
  77689. $defaultValues() {
  77690. return [null];
  77691. },
  77692. $signature: 158
  77693. };
  77694. A.legacyBooleanClass__closure0.prototype = {
  77695. call$1($self) {
  77696. return $self === B.SassBoolean_true0;
  77697. },
  77698. $signature: 133
  77699. };
  77700. A.booleanClass_closure.prototype = {
  77701. call$0() {
  77702. var t1 = type$.JSClass,
  77703. jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.SassBoolean", new A.booleanClass__closure()));
  77704. A.JSClassExtension_injectSuperclass(t1._as(B.SassBoolean_true0.constructor), jsClass);
  77705. return jsClass;
  77706. },
  77707. $signature: 25
  77708. };
  77709. A.booleanClass__closure.prototype = {
  77710. call$2($self, _) {
  77711. A.jsThrow(new self.Error("new sass.SassBoolean() isn't allowed.\nUse sass.sassTrue or sass.sassFalse instead."));
  77712. },
  77713. call$1($self) {
  77714. return this.call$2($self, null);
  77715. },
  77716. "call*": "call$2",
  77717. $requiredArgCount: 1,
  77718. $defaultValues() {
  77719. return [null];
  77720. },
  77721. $signature: 353
  77722. };
  77723. A.SassBoolean0.prototype = {
  77724. get$isTruthy() {
  77725. return this.value;
  77726. },
  77727. accept$1$1(visitor) {
  77728. return visitor._serialize0$_buffer.write$1(0, String(this.value));
  77729. },
  77730. accept$1(visitor) {
  77731. return this.accept$1$1(visitor, type$.dynamic);
  77732. },
  77733. assertBoolean$1($name) {
  77734. return this;
  77735. },
  77736. unaryNot$0() {
  77737. return this.value ? B.SassBoolean_false0 : B.SassBoolean_true0;
  77738. }
  77739. };
  77740. A.BuiltInCallable0.prototype = {
  77741. callbackFor$2(positional, names) {
  77742. var t1, t2, fuzzyMatch, minMismatchDistance, _i, overload, t3, mismatchDistance, t4;
  77743. for (t1 = this._built_in$_overloads, t2 = t1.length, fuzzyMatch = null, minMismatchDistance = null, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
  77744. overload = t1[_i];
  77745. t3 = overload.item1;
  77746. if (t3.matches$2(positional, names))
  77747. return overload;
  77748. mismatchDistance = t3.$arguments.length - positional;
  77749. if (minMismatchDistance != null) {
  77750. t3 = Math.abs(mismatchDistance);
  77751. t4 = Math.abs(minMismatchDistance);
  77752. if (t3 > t4)
  77753. continue;
  77754. if (t3 === t4 && mismatchDistance < 0)
  77755. continue;
  77756. }
  77757. minMismatchDistance = mismatchDistance;
  77758. fuzzyMatch = overload;
  77759. }
  77760. if (fuzzyMatch != null)
  77761. return fuzzyMatch;
  77762. throw A.wrapException(A.StateError$("BuiltInCallable " + this.name + " may not have empty overloads."));
  77763. },
  77764. withName$1($name) {
  77765. return new A.BuiltInCallable0($name, this._built_in$_overloads);
  77766. },
  77767. $isAsyncCallable0: 1,
  77768. $isAsyncBuiltInCallable0: 1,
  77769. $isCallable0: 1,
  77770. get$name(receiver) {
  77771. return this.name;
  77772. }
  77773. };
  77774. A.BuiltInCallable$mixin_closure0.prototype = {
  77775. call$1($arguments) {
  77776. this.callback.call$1($arguments);
  77777. return B.C__SassNull0;
  77778. },
  77779. $signature: 3
  77780. };
  77781. A.BuiltInModule0.prototype = {
  77782. get$upstream() {
  77783. return B.List_empty18;
  77784. },
  77785. get$variableNodes() {
  77786. return B.Map_empty7;
  77787. },
  77788. get$extensionStore() {
  77789. return B.C_EmptyExtensionStore0;
  77790. },
  77791. get$css(_) {
  77792. return new A.CssStylesheet0(B.List_empty16, A.SourceFile$decoded(B.List_empty4, this.url).span$2(0, 0, 0));
  77793. },
  77794. get$transitivelyContainsCss() {
  77795. return false;
  77796. },
  77797. get$transitivelyContainsExtensions() {
  77798. return false;
  77799. },
  77800. setVariable$3($name, value, nodeWithSpan) {
  77801. if (!this.variables.containsKey$1($name))
  77802. throw A.wrapException(A.SassScriptException$0("Undefined variable.", null));
  77803. throw A.wrapException(A.SassScriptException$0("Cannot modify built-in variable.", null));
  77804. },
  77805. variableIdentity$1($name) {
  77806. return this;
  77807. },
  77808. cloneCss$0() {
  77809. return this;
  77810. },
  77811. $isModule0: 1,
  77812. get$url(receiver) {
  77813. return this.url;
  77814. },
  77815. get$functions(receiver) {
  77816. return this.functions;
  77817. },
  77818. get$mixins() {
  77819. return this.mixins;
  77820. },
  77821. get$variables() {
  77822. return this.variables;
  77823. }
  77824. };
  77825. A.CalculationExpression0.prototype = {
  77826. accept$1$1(visitor) {
  77827. return visitor.visitCalculationExpression$1(this);
  77828. },
  77829. accept$1(visitor) {
  77830. return this.accept$1$1(visitor, type$.dynamic);
  77831. },
  77832. toString$0(_) {
  77833. return this.name + "(" + B.JSArray_methods.join$1(this.$arguments, ", ") + ")";
  77834. },
  77835. $isExpression0: 1,
  77836. $isAstNode0: 1,
  77837. get$span(receiver) {
  77838. return this.span;
  77839. }
  77840. };
  77841. A.CalculationExpression__verifyArguments_closure0.prototype = {
  77842. call$1(arg) {
  77843. A.CalculationExpression__verify0(arg);
  77844. return arg;
  77845. },
  77846. $signature: 355
  77847. };
  77848. A.SassCalculation0.prototype = {
  77849. get$isSpecialNumber() {
  77850. return true;
  77851. },
  77852. accept$1$1(visitor) {
  77853. var t2,
  77854. t1 = visitor._serialize0$_buffer;
  77855. t1.write$1(0, this.name);
  77856. t1.writeCharCode$1(40);
  77857. t2 = visitor._serialize0$_style === B.OutputStyle_10 ? "," : ", ";
  77858. visitor._serialize0$_writeBetween$3(this.$arguments, t2, visitor.get$_serialize0$_writeCalculationValue());
  77859. t1.writeCharCode$1(41);
  77860. return null;
  77861. },
  77862. accept$1(visitor) {
  77863. return this.accept$1$1(visitor, type$.dynamic);
  77864. },
  77865. assertCalculation$1($name) {
  77866. return this;
  77867. },
  77868. plus$1(other) {
  77869. if (other instanceof A.SassString0)
  77870. return this.super$Value$plus0(other);
  77871. throw A.wrapException(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " + " + other.toString$0(0) + '".', null));
  77872. },
  77873. minus$1(other) {
  77874. return A.throwExpression(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " - " + other.toString$0(0) + '".', null));
  77875. },
  77876. unaryPlus$0() {
  77877. return A.throwExpression(A.SassScriptException$0('Undefined operation "+' + this.toString$0(0) + '".', null));
  77878. },
  77879. unaryMinus$0() {
  77880. return A.throwExpression(A.SassScriptException$0('Undefined operation "-' + this.toString$0(0) + '".', null));
  77881. },
  77882. $eq(_, other) {
  77883. if (other == null)
  77884. return false;
  77885. return other instanceof A.SassCalculation0 && this.name === other.name && B.C_ListEquality.equals$2(0, this.$arguments, other.$arguments);
  77886. },
  77887. get$hashCode(_) {
  77888. return B.JSString_methods.get$hashCode(this.name) ^ B.C_ListEquality0.hash$1(this.$arguments);
  77889. }
  77890. };
  77891. A.SassCalculation__verifyLength_closure0.prototype = {
  77892. call$1(arg) {
  77893. return arg instanceof A.SassString0 || arg instanceof A.CalculationInterpolation0;
  77894. },
  77895. $signature: 133
  77896. };
  77897. A.CalculationOperation0.prototype = {
  77898. $eq(_, other) {
  77899. if (other == null)
  77900. return false;
  77901. return other instanceof A.CalculationOperation0 && this.operator === other.operator && J.$eq$(this.left, other.left) && J.$eq$(this.right, other.right);
  77902. },
  77903. get$hashCode(_) {
  77904. return (A.Primitives_objectHashCode(this.operator) ^ J.get$hashCode$(this.left) ^ J.get$hashCode$(this.right)) >>> 0;
  77905. },
  77906. toString$0(_) {
  77907. var parenthesized = A.serializeValue0(new A.SassCalculation0("", A._setArrayType([this], type$.JSArray_Object)), true, true);
  77908. return B.JSString_methods.substring$2(parenthesized, 1, parenthesized.length - 1);
  77909. }
  77910. };
  77911. A.CalculationOperator0.prototype = {
  77912. toString$0(_) {
  77913. return this.name;
  77914. }
  77915. };
  77916. A.CalculationInterpolation0.prototype = {
  77917. $eq(_, other) {
  77918. if (other == null)
  77919. return false;
  77920. return other instanceof A.CalculationInterpolation0 && this.value === other.value;
  77921. },
  77922. get$hashCode(_) {
  77923. return B.JSString_methods.get$hashCode(this.value);
  77924. },
  77925. toString$0(_) {
  77926. return this.value;
  77927. }
  77928. };
  77929. A.CallableDeclaration0.prototype = {
  77930. get$span(receiver) {
  77931. return this.span;
  77932. }
  77933. };
  77934. A.Chokidar0.prototype = {};
  77935. A.ChokidarOptions0.prototype = {};
  77936. A.ChokidarWatcher0.prototype = {};
  77937. A.ClassSelector0.prototype = {
  77938. $eq(_, other) {
  77939. if (other == null)
  77940. return false;
  77941. return other instanceof A.ClassSelector0 && other.name === this.name;
  77942. },
  77943. accept$1$1(visitor) {
  77944. return visitor.visitClassSelector$1(this);
  77945. },
  77946. accept$1(visitor) {
  77947. return this.accept$1$1(visitor, type$.dynamic);
  77948. },
  77949. addSuffix$1(suffix) {
  77950. return new A.ClassSelector0(this.name + suffix);
  77951. },
  77952. get$hashCode(_) {
  77953. return B.JSString_methods.get$hashCode(this.name);
  77954. }
  77955. };
  77956. A._CloneCssVisitor0.prototype = {
  77957. visitCssAtRule$1(node) {
  77958. var t1 = node.isChildless,
  77959. rule = A.ModifiableCssAtRule$0(node.name, node.span, t1, node.value);
  77960. return t1 ? rule : this._clone_css$_visitChildren$2(rule, node);
  77961. },
  77962. visitCssComment$1(node) {
  77963. return new A.ModifiableCssComment0(node.text, node.span);
  77964. },
  77965. visitCssDeclaration$1(node) {
  77966. return A.ModifiableCssDeclaration$0(node.name, node.value, node.span, node.parsedAsCustomProperty, node.valueSpanForMap);
  77967. },
  77968. visitCssImport$1(node) {
  77969. return new A.ModifiableCssImport0(node.url, node.modifiers, node.span);
  77970. },
  77971. visitCssKeyframeBlock$1(node) {
  77972. return this._clone_css$_visitChildren$2(A.ModifiableCssKeyframeBlock$0(node.selector, node.span), node);
  77973. },
  77974. visitCssMediaRule$1(node) {
  77975. return this._clone_css$_visitChildren$2(A.ModifiableCssMediaRule$0(node.queries, node.span), node);
  77976. },
  77977. visitCssStyleRule$1(node) {
  77978. var newSelector = this._clone_css$_oldToNewSelectors.$index(0, node.selector);
  77979. if (newSelector == null)
  77980. throw A.wrapException(A.StateError$(string$.The_Ex));
  77981. return this._clone_css$_visitChildren$2(A.ModifiableCssStyleRule$0(newSelector, node.span, node.originalSelector), node);
  77982. },
  77983. visitCssStylesheet$1(node) {
  77984. return this._clone_css$_visitChildren$2(A.ModifiableCssStylesheet$0(node.get$span(node)), node);
  77985. },
  77986. visitCssSupportsRule$1(node) {
  77987. return this._clone_css$_visitChildren$2(A.ModifiableCssSupportsRule$0(node.condition, node.span), node);
  77988. },
  77989. _clone_css$_visitChildren$1$2(newParent, oldParent) {
  77990. var t1, t2, newChild;
  77991. for (t1 = J.get$iterator$ax(oldParent.get$children(oldParent)); t1.moveNext$0();) {
  77992. t2 = t1.get$current(t1);
  77993. newChild = t2.accept$1(this);
  77994. newChild.isGroupEnd = t2.get$isGroupEnd();
  77995. newParent.addChild$1(newChild);
  77996. }
  77997. return newParent;
  77998. },
  77999. _clone_css$_visitChildren$2(newParent, oldParent) {
  78000. return this._clone_css$_visitChildren$1$2(newParent, oldParent, type$.ModifiableCssParentNode_2);
  78001. }
  78002. };
  78003. A.ColorExpression0.prototype = {
  78004. accept$1$1(visitor) {
  78005. return visitor.visitColorExpression$1(this);
  78006. },
  78007. accept$1(visitor) {
  78008. return this.accept$1$1(visitor, type$.dynamic);
  78009. },
  78010. toString$0(_) {
  78011. return A.serializeValue0(this.value, true, true);
  78012. },
  78013. $isExpression0: 1,
  78014. $isAstNode0: 1,
  78015. get$span(receiver) {
  78016. return this.span;
  78017. }
  78018. };
  78019. A.global_closure30.prototype = {
  78020. call$1($arguments) {
  78021. return A._rgb0("rgb", $arguments);
  78022. },
  78023. $signature: 3
  78024. };
  78025. A.global_closure31.prototype = {
  78026. call$1($arguments) {
  78027. return A._rgb0("rgb", $arguments);
  78028. },
  78029. $signature: 3
  78030. };
  78031. A.global_closure32.prototype = {
  78032. call$1($arguments) {
  78033. return A._rgbTwoArg0("rgb", $arguments);
  78034. },
  78035. $signature: 3
  78036. };
  78037. A.global_closure33.prototype = {
  78038. call$1($arguments) {
  78039. var parsed = A._parseChannels0("rgb", A._setArrayType(["$red", "$green", "$blue"], type$.JSArray_String), J.get$first$ax($arguments));
  78040. return parsed instanceof A.SassString0 ? parsed : A._rgb0("rgb", type$.List_Value_2._as(parsed));
  78041. },
  78042. $signature: 3
  78043. };
  78044. A.global_closure34.prototype = {
  78045. call$1($arguments) {
  78046. return A._rgb0("rgba", $arguments);
  78047. },
  78048. $signature: 3
  78049. };
  78050. A.global_closure35.prototype = {
  78051. call$1($arguments) {
  78052. return A._rgb0("rgba", $arguments);
  78053. },
  78054. $signature: 3
  78055. };
  78056. A.global_closure36.prototype = {
  78057. call$1($arguments) {
  78058. return A._rgbTwoArg0("rgba", $arguments);
  78059. },
  78060. $signature: 3
  78061. };
  78062. A.global_closure37.prototype = {
  78063. call$1($arguments) {
  78064. var parsed = A._parseChannels0("rgba", A._setArrayType(["$red", "$green", "$blue"], type$.JSArray_String), J.get$first$ax($arguments));
  78065. return parsed instanceof A.SassString0 ? parsed : A._rgb0("rgba", type$.List_Value_2._as(parsed));
  78066. },
  78067. $signature: 3
  78068. };
  78069. A.global_closure38.prototype = {
  78070. call$1($arguments) {
  78071. var color, t2,
  78072. t1 = J.getInterceptor$asx($arguments),
  78073. weight = t1.$index($arguments, 1).assertNumber$1("weight");
  78074. if (t1.$index($arguments, 0) instanceof A.SassNumber0) {
  78075. if (weight._number1$_value !== 100 || !weight.hasUnit$1("%"))
  78076. throw A.wrapException(string$.Only_oa);
  78077. return A._functionString0("invert", t1.take$1($arguments, 1));
  78078. }
  78079. color = t1.$index($arguments, 0).assertColor$1("color");
  78080. t1 = color.get$red(color);
  78081. t2 = color.get$green(color);
  78082. return A._mixColors0(color.changeRgb$3$blue$green$red(255 - color.get$blue(color), 255 - t2, 255 - t1), color, weight);
  78083. },
  78084. $signature: 3
  78085. };
  78086. A.global_closure39.prototype = {
  78087. call$1($arguments) {
  78088. return A._hsl0("hsl", $arguments);
  78089. },
  78090. $signature: 3
  78091. };
  78092. A.global_closure40.prototype = {
  78093. call$1($arguments) {
  78094. return A._hsl0("hsl", $arguments);
  78095. },
  78096. $signature: 3
  78097. };
  78098. A.global_closure41.prototype = {
  78099. call$1($arguments) {
  78100. var t1 = J.getInterceptor$asx($arguments);
  78101. if (t1.$index($arguments, 0).get$isVar() || t1.$index($arguments, 1).get$isVar())
  78102. return A._functionString0("hsl", $arguments);
  78103. else
  78104. throw A.wrapException(A.SassScriptException$0("Missing argument $lightness.", null));
  78105. },
  78106. $signature: 18
  78107. };
  78108. A.global_closure42.prototype = {
  78109. call$1($arguments) {
  78110. var parsed = A._parseChannels0("hsl", A._setArrayType(["$hue", "$saturation", "$lightness"], type$.JSArray_String), J.get$first$ax($arguments));
  78111. return parsed instanceof A.SassString0 ? parsed : A._hsl0("hsl", type$.List_Value_2._as(parsed));
  78112. },
  78113. $signature: 3
  78114. };
  78115. A.global_closure43.prototype = {
  78116. call$1($arguments) {
  78117. return A._hsl0("hsla", $arguments);
  78118. },
  78119. $signature: 3
  78120. };
  78121. A.global_closure44.prototype = {
  78122. call$1($arguments) {
  78123. return A._hsl0("hsla", $arguments);
  78124. },
  78125. $signature: 3
  78126. };
  78127. A.global_closure45.prototype = {
  78128. call$1($arguments) {
  78129. var t1 = J.getInterceptor$asx($arguments);
  78130. if (t1.$index($arguments, 0).get$isVar() || t1.$index($arguments, 1).get$isVar())
  78131. return A._functionString0("hsla", $arguments);
  78132. else
  78133. throw A.wrapException(A.SassScriptException$0("Missing argument $lightness.", null));
  78134. },
  78135. $signature: 18
  78136. };
  78137. A.global_closure46.prototype = {
  78138. call$1($arguments) {
  78139. var parsed = A._parseChannels0("hsla", A._setArrayType(["$hue", "$saturation", "$lightness"], type$.JSArray_String), J.get$first$ax($arguments));
  78140. return parsed instanceof A.SassString0 ? parsed : A._hsl0("hsla", type$.List_Value_2._as(parsed));
  78141. },
  78142. $signature: 3
  78143. };
  78144. A.global_closure47.prototype = {
  78145. call$1($arguments) {
  78146. var t1 = J.getInterceptor$asx($arguments);
  78147. if (t1.$index($arguments, 0) instanceof A.SassNumber0)
  78148. return A._functionString0("grayscale", $arguments);
  78149. return t1.$index($arguments, 0).assertColor$1("color").changeHsl$1$saturation(0);
  78150. },
  78151. $signature: 3
  78152. };
  78153. A.global_closure48.prototype = {
  78154. call$1($arguments) {
  78155. var t1 = J.getInterceptor$asx($arguments),
  78156. color = t1.$index($arguments, 0).assertColor$1("color"),
  78157. degrees = A._angleValue0(t1.$index($arguments, 1), "degrees");
  78158. return color.changeHsl$1$hue(color.get$hue(color) + degrees);
  78159. },
  78160. $signature: 23
  78161. };
  78162. A.global_closure49.prototype = {
  78163. call$1($arguments) {
  78164. var t1 = J.getInterceptor$asx($arguments),
  78165. color = t1.$index($arguments, 0).assertColor$1("color"),
  78166. amount = t1.$index($arguments, 1).assertNumber$1("amount");
  78167. return color.changeHsl$1$lightness(B.JSNumber_methods.clamp$2(color.get$lightness(color) + amount.valueInRange$3(0, 100, "amount"), 0, 100));
  78168. },
  78169. $signature: 23
  78170. };
  78171. A.global_closure50.prototype = {
  78172. call$1($arguments) {
  78173. var t1 = J.getInterceptor$asx($arguments),
  78174. color = t1.$index($arguments, 0).assertColor$1("color"),
  78175. amount = t1.$index($arguments, 1).assertNumber$1("amount");
  78176. return color.changeHsl$1$lightness(B.JSNumber_methods.clamp$2(color.get$lightness(color) - amount.valueInRange$3(0, 100, "amount"), 0, 100));
  78177. },
  78178. $signature: 23
  78179. };
  78180. A.global_closure51.prototype = {
  78181. call$1($arguments) {
  78182. return new A.SassString0("saturate(" + A.serializeValue0(J.$index$asx($arguments, 0).assertNumber$1("amount"), false, true) + ")", false);
  78183. },
  78184. $signature: 18
  78185. };
  78186. A.global_closure52.prototype = {
  78187. call$1($arguments) {
  78188. var t1 = J.getInterceptor$asx($arguments),
  78189. color = t1.$index($arguments, 0).assertColor$1("color"),
  78190. amount = t1.$index($arguments, 1).assertNumber$1("amount");
  78191. return color.changeHsl$1$saturation(B.JSNumber_methods.clamp$2(color.get$saturation(color) + amount.valueInRange$3(0, 100, "amount"), 0, 100));
  78192. },
  78193. $signature: 23
  78194. };
  78195. A.global_closure53.prototype = {
  78196. call$1($arguments) {
  78197. var t1 = J.getInterceptor$asx($arguments),
  78198. color = t1.$index($arguments, 0).assertColor$1("color"),
  78199. amount = t1.$index($arguments, 1).assertNumber$1("amount");
  78200. return color.changeHsl$1$saturation(B.JSNumber_methods.clamp$2(color.get$saturation(color) - amount.valueInRange$3(0, 100, "amount"), 0, 100));
  78201. },
  78202. $signature: 23
  78203. };
  78204. A.global_closure54.prototype = {
  78205. call$1($arguments) {
  78206. var argument = J.$index$asx($arguments, 0);
  78207. if (argument instanceof A.SassString0 && !argument._string0$_hasQuotes && B.JSString_methods.contains$1(argument._string0$_text, $.$get$_microsoftFilterStart0()))
  78208. return A._functionString0("alpha", $arguments);
  78209. return A.SassNumber_SassNumber0(argument.assertColor$1("color")._color1$_alpha, null);
  78210. },
  78211. $signature: 3
  78212. };
  78213. A.global_closure55.prototype = {
  78214. call$1($arguments) {
  78215. var t1,
  78216. argList = J.$index$asx($arguments, 0).get$asList();
  78217. if (argList.length !== 0 && B.JSArray_methods.every$1(argList, new A.global__closure0()))
  78218. return A._functionString0("alpha", $arguments);
  78219. t1 = argList.length;
  78220. if (t1 === 0)
  78221. throw A.wrapException(A.SassScriptException$0("Missing argument $color.", null));
  78222. else
  78223. throw A.wrapException(A.SassScriptException$0("Only 1 argument allowed, but " + t1 + " were passed.", null));
  78224. },
  78225. $signature: 18
  78226. };
  78227. A.global__closure0.prototype = {
  78228. call$1(argument) {
  78229. return argument instanceof A.SassString0 && !argument._string0$_hasQuotes && B.JSString_methods.contains$1(argument._string0$_text, $.$get$_microsoftFilterStart0());
  78230. },
  78231. $signature: 49
  78232. };
  78233. A.global_closure56.prototype = {
  78234. call$1($arguments) {
  78235. var t1 = J.getInterceptor$asx($arguments);
  78236. if (t1.$index($arguments, 0) instanceof A.SassNumber0)
  78237. return A._functionString0("opacity", $arguments);
  78238. return A.SassNumber_SassNumber0(t1.$index($arguments, 0).assertColor$1("color")._color1$_alpha, null);
  78239. },
  78240. $signature: 3
  78241. };
  78242. A.module_closure10.prototype = {
  78243. call$1($arguments) {
  78244. var result, t2, color,
  78245. t1 = J.getInterceptor$asx($arguments),
  78246. weight = t1.$index($arguments, 1).assertNumber$1("weight");
  78247. if (t1.$index($arguments, 0) instanceof A.SassNumber0) {
  78248. if (weight._number1$_value !== 100 || !weight.hasUnit$1("%"))
  78249. throw A.wrapException(string$.Only_oa);
  78250. result = A._functionString0("invert", t1.take$1($arguments, 1));
  78251. t1 = A.S(t1.$index($arguments, 0));
  78252. t2 = result.toString$0(0);
  78253. A.EvaluationContext_current0().warn$2$deprecation(0, "Passing a number (" + t1 + string$.x29x20to_ci + t2, true);
  78254. return result;
  78255. }
  78256. color = t1.$index($arguments, 0).assertColor$1("color");
  78257. t1 = color.get$red(color);
  78258. t2 = color.get$green(color);
  78259. return A._mixColors0(color.changeRgb$3$blue$green$red(255 - color.get$blue(color), 255 - t2, 255 - t1), color, weight);
  78260. },
  78261. $signature: 3
  78262. };
  78263. A.module_closure11.prototype = {
  78264. call$1($arguments) {
  78265. var result, t2,
  78266. t1 = J.getInterceptor$asx($arguments);
  78267. if (t1.$index($arguments, 0) instanceof A.SassNumber0) {
  78268. result = A._functionString0("grayscale", t1.take$1($arguments, 1));
  78269. t1 = A.S(t1.$index($arguments, 0));
  78270. t2 = result.toString$0(0);
  78271. A.EvaluationContext_current0().warn$2$deprecation(0, "Passing a number (" + t1 + string$.x29x20to_cg + t2, true);
  78272. return result;
  78273. }
  78274. return t1.$index($arguments, 0).assertColor$1("color").changeHsl$1$saturation(0);
  78275. },
  78276. $signature: 3
  78277. };
  78278. A.module_closure12.prototype = {
  78279. call$1($arguments) {
  78280. return A._hwb0($arguments);
  78281. },
  78282. $signature: 3
  78283. };
  78284. A.module_closure13.prototype = {
  78285. call$1($arguments) {
  78286. var parsed = A._parseChannels0("hwb", A._setArrayType(["$hue", "$whiteness", "$blackness"], type$.JSArray_String), J.get$first$ax($arguments));
  78287. if (parsed instanceof A.SassString0)
  78288. throw A.wrapException(A.SassScriptException$0('Expected numeric channels, got "' + parsed.toString$0(0) + '".', null));
  78289. else
  78290. return A._hwb0(type$.List_Value_2._as(parsed));
  78291. },
  78292. $signature: 3
  78293. };
  78294. A.module_closure14.prototype = {
  78295. call$1($arguments) {
  78296. var t1 = J.get$first$ax($arguments).assertColor$1("color");
  78297. return A.SassNumber_SassNumber0(t1.get$whiteness(t1), "%");
  78298. },
  78299. $signature: 10
  78300. };
  78301. A.module_closure15.prototype = {
  78302. call$1($arguments) {
  78303. var t1 = J.get$first$ax($arguments).assertColor$1("color");
  78304. return A.SassNumber_SassNumber0(t1.get$blackness(t1), "%");
  78305. },
  78306. $signature: 10
  78307. };
  78308. A.module_closure16.prototype = {
  78309. call$1($arguments) {
  78310. var result, t1,
  78311. argument = J.$index$asx($arguments, 0);
  78312. if (argument instanceof A.SassString0 && !argument._string0$_hasQuotes && B.JSString_methods.contains$1(argument._string0$_text, $.$get$_microsoftFilterStart0())) {
  78313. result = A._functionString0("alpha", $arguments);
  78314. t1 = result.toString$0(0);
  78315. A.EvaluationContext_current0().warn$2$deprecation(0, string$.Using_c + t1, true);
  78316. return result;
  78317. }
  78318. return A.SassNumber_SassNumber0(argument.assertColor$1("color")._color1$_alpha, null);
  78319. },
  78320. $signature: 3
  78321. };
  78322. A.module_closure17.prototype = {
  78323. call$1($arguments) {
  78324. var result,
  78325. t1 = J.getInterceptor$asx($arguments);
  78326. if (B.JSArray_methods.every$1(t1.$index($arguments, 0).get$asList(), new A.module__closure4())) {
  78327. result = A._functionString0("alpha", $arguments);
  78328. t1 = result.toString$0(0);
  78329. A.EvaluationContext_current0().warn$2$deprecation(0, string$.Using_c + t1, true);
  78330. return result;
  78331. }
  78332. throw A.wrapException(A.SassScriptException$0("Only 1 argument allowed, but " + t1.get$length($arguments) + " were passed.", null));
  78333. },
  78334. $signature: 18
  78335. };
  78336. A.module__closure4.prototype = {
  78337. call$1(argument) {
  78338. return argument instanceof A.SassString0 && !argument._string0$_hasQuotes && B.JSString_methods.contains$1(argument._string0$_text, $.$get$_microsoftFilterStart0());
  78339. },
  78340. $signature: 49
  78341. };
  78342. A.module_closure18.prototype = {
  78343. call$1($arguments) {
  78344. var result, t2,
  78345. t1 = J.getInterceptor$asx($arguments);
  78346. if (t1.$index($arguments, 0) instanceof A.SassNumber0) {
  78347. result = A._functionString0("opacity", $arguments);
  78348. t1 = A.S(t1.$index($arguments, 0));
  78349. t2 = result.toString$0(0);
  78350. A.EvaluationContext_current0().warn$2$deprecation(0, "Passing a number (" + t1 + string$.x20to_co + t2, true);
  78351. return result;
  78352. }
  78353. return A.SassNumber_SassNumber0(t1.$index($arguments, 0).assertColor$1("color")._color1$_alpha, null);
  78354. },
  78355. $signature: 3
  78356. };
  78357. A._red_closure0.prototype = {
  78358. call$1($arguments) {
  78359. var t1 = J.get$first$ax($arguments).assertColor$1("color");
  78360. return A.SassNumber_SassNumber0(t1.get$red(t1), null);
  78361. },
  78362. $signature: 10
  78363. };
  78364. A._green_closure0.prototype = {
  78365. call$1($arguments) {
  78366. var t1 = J.get$first$ax($arguments).assertColor$1("color");
  78367. return A.SassNumber_SassNumber0(t1.get$green(t1), null);
  78368. },
  78369. $signature: 10
  78370. };
  78371. A._blue_closure0.prototype = {
  78372. call$1($arguments) {
  78373. var t1 = J.get$first$ax($arguments).assertColor$1("color");
  78374. return A.SassNumber_SassNumber0(t1.get$blue(t1), null);
  78375. },
  78376. $signature: 10
  78377. };
  78378. A._mix_closure0.prototype = {
  78379. call$1($arguments) {
  78380. var t1 = J.getInterceptor$asx($arguments);
  78381. return A._mixColors0(t1.$index($arguments, 0).assertColor$1("color1"), t1.$index($arguments, 1).assertColor$1("color2"), t1.$index($arguments, 2).assertNumber$1("weight"));
  78382. },
  78383. $signature: 23
  78384. };
  78385. A._hue_closure0.prototype = {
  78386. call$1($arguments) {
  78387. var t1 = J.get$first$ax($arguments).assertColor$1("color");
  78388. return A.SassNumber_SassNumber0(t1.get$hue(t1), "deg");
  78389. },
  78390. $signature: 10
  78391. };
  78392. A._saturation_closure0.prototype = {
  78393. call$1($arguments) {
  78394. var t1 = J.get$first$ax($arguments).assertColor$1("color");
  78395. return A.SassNumber_SassNumber0(t1.get$saturation(t1), "%");
  78396. },
  78397. $signature: 10
  78398. };
  78399. A._lightness_closure0.prototype = {
  78400. call$1($arguments) {
  78401. var t1 = J.get$first$ax($arguments).assertColor$1("color");
  78402. return A.SassNumber_SassNumber0(t1.get$lightness(t1), "%");
  78403. },
  78404. $signature: 10
  78405. };
  78406. A._complement_closure0.prototype = {
  78407. call$1($arguments) {
  78408. var color = J.$index$asx($arguments, 0).assertColor$1("color");
  78409. return color.changeHsl$1$hue(color.get$hue(color) + 180);
  78410. },
  78411. $signature: 23
  78412. };
  78413. A._adjust_closure0.prototype = {
  78414. call$1($arguments) {
  78415. return A._updateComponents0($arguments, true, false, false);
  78416. },
  78417. $signature: 23
  78418. };
  78419. A._scale_closure0.prototype = {
  78420. call$1($arguments) {
  78421. return A._updateComponents0($arguments, false, false, true);
  78422. },
  78423. $signature: 23
  78424. };
  78425. A._change_closure0.prototype = {
  78426. call$1($arguments) {
  78427. return A._updateComponents0($arguments, false, true, false);
  78428. },
  78429. $signature: 23
  78430. };
  78431. A._ieHexStr_closure0.prototype = {
  78432. call$1($arguments) {
  78433. var color = J.$index$asx($arguments, 0).assertColor$1("color"),
  78434. t1 = new A._ieHexStr_closure_hexString0();
  78435. return new A.SassString0("#" + A.S(t1.call$1(A.fuzzyRound0(color._color1$_alpha * 255))) + A.S(t1.call$1(color.get$red(color))) + A.S(t1.call$1(color.get$green(color))) + A.S(t1.call$1(color.get$blue(color))), false);
  78436. },
  78437. $signature: 18
  78438. };
  78439. A._ieHexStr_closure_hexString0.prototype = {
  78440. call$1(component) {
  78441. return B.JSString_methods.padLeft$2(B.JSInt_methods.toRadixString$1(component, 16), 2, "0").toUpperCase();
  78442. },
  78443. $signature: 198
  78444. };
  78445. A._updateComponents_getParam0.prototype = {
  78446. call$5$assertPercent$checkPercent$checkUnitless($name, max, assertPercent, checkPercent, checkUnitless) {
  78447. var t2, t3, t4, _this = this,
  78448. t1 = _this.keywords.remove$1(0, $name),
  78449. number = t1 == null ? null : t1.assertNumber$1($name);
  78450. if (number == null)
  78451. return null;
  78452. t1 = _this.scale;
  78453. t2 = !t1;
  78454. if (t2 && checkUnitless)
  78455. if (number.get$hasUnits()) {
  78456. t3 = number.get$unitString();
  78457. t4 = number.unitSuggestion$1($name);
  78458. A.EvaluationContext_current0().warn$2$deprecation(0, "$" + $name + ": Passing a number with unit " + t3 + string$.x20is_de + t4 + string$.x0a_Morex3a, true);
  78459. }
  78460. if (t2 && checkPercent)
  78461. A._checkPercent0(number, $name);
  78462. if (!t2 || assertPercent)
  78463. number.assertUnit$2("%", $name);
  78464. if (t1)
  78465. max = 100;
  78466. if (!t2 || assertPercent)
  78467. t1 = number.valueInRange$3(_this.change ? 0 : -max, max, $name);
  78468. else {
  78469. t1 = _this.change ? 0 : -max;
  78470. t1 = number.valueInRangeWithUnit$4(t1, max, $name, checkPercent ? "%" : "");
  78471. }
  78472. return t1;
  78473. },
  78474. call$2($name, max) {
  78475. return this.call$5$assertPercent$checkPercent$checkUnitless($name, max, false, false, false);
  78476. },
  78477. call$3$checkUnitless($name, max, checkUnitless) {
  78478. return this.call$5$assertPercent$checkPercent$checkUnitless($name, max, false, false, checkUnitless);
  78479. },
  78480. call$3$checkPercent($name, max, checkPercent) {
  78481. return this.call$5$assertPercent$checkPercent$checkUnitless($name, max, false, checkPercent, false);
  78482. },
  78483. call$3$assertPercent($name, max, assertPercent) {
  78484. return this.call$5$assertPercent$checkPercent$checkUnitless($name, max, assertPercent, false, false);
  78485. },
  78486. $signature: 162
  78487. };
  78488. A._updateComponents_closure1.prototype = {
  78489. call$1(hue) {
  78490. return A._angleValue0(hue, "hue");
  78491. },
  78492. $signature: 83
  78493. };
  78494. A._updateComponents_closure2.prototype = {
  78495. call$1($name) {
  78496. return "$" + $name;
  78497. },
  78498. $signature: 5
  78499. };
  78500. A._updateComponents_updateValue0.prototype = {
  78501. call$3(current, param, max) {
  78502. var t1;
  78503. if (param == null)
  78504. return current;
  78505. if (this.change)
  78506. return param;
  78507. if (this.adjust)
  78508. return B.JSNumber_methods.clamp$2(current + param, 0, max);
  78509. t1 = param > 0 ? max - current : current;
  78510. return current + t1 * (param / 100);
  78511. },
  78512. $signature: 207
  78513. };
  78514. A._updateComponents_updateRgb0.prototype = {
  78515. call$2(current, param) {
  78516. return A.fuzzyRound0(this.updateValue.call$3(current, param, 255));
  78517. },
  78518. $signature: 212
  78519. };
  78520. A._functionString_closure0.prototype = {
  78521. call$1(argument) {
  78522. return A.serializeValue0(argument, false, true);
  78523. },
  78524. $signature: 151
  78525. };
  78526. A._removedColorFunction_closure0.prototype = {
  78527. call$1($arguments) {
  78528. var t1 = this.name,
  78529. t2 = J.getInterceptor$asx($arguments),
  78530. t3 = A.S(t2.$index($arguments, 0)),
  78531. t4 = this.negative ? "-" : "";
  78532. throw A.wrapException(A.SassScriptException$0("The function " + t1 + string$.x28__isn + t3 + ", $" + this.argument + ": " + t4 + A.S(t2.$index($arguments, 1)) + string$.x29x0a_Morx3a + t1, null));
  78533. },
  78534. $signature: 362
  78535. };
  78536. A._rgb_closure0.prototype = {
  78537. call$1(alpha) {
  78538. return A._percentageOrUnitless0(alpha.assertNumber$1("alpha"), 1, "alpha");
  78539. },
  78540. $signature: 83
  78541. };
  78542. A._hsl_closure0.prototype = {
  78543. call$1(alpha) {
  78544. return A._percentageOrUnitless0(alpha.assertNumber$1("alpha"), 1, "alpha");
  78545. },
  78546. $signature: 83
  78547. };
  78548. A._hwb_closure0.prototype = {
  78549. call$1(alpha) {
  78550. return A._percentageOrUnitless0(alpha.assertNumber$1("alpha"), 1, "alpha");
  78551. },
  78552. $signature: 83
  78553. };
  78554. A._parseChannels_closure0.prototype = {
  78555. call$1(value) {
  78556. return value.get$isVar();
  78557. },
  78558. $signature: 49
  78559. };
  78560. A._NodeSassColor.prototype = {};
  78561. A.legacyColorClass_closure.prototype = {
  78562. call$6(thisArg, redOrArgb, green, blue, alpha, dartValue) {
  78563. var red, t1, t2, t3, t4;
  78564. if (dartValue != null) {
  78565. J.set$dartValue$x(thisArg, dartValue);
  78566. return;
  78567. }
  78568. if (green == null || blue == null) {
  78569. A._asInt(redOrArgb);
  78570. alpha = B.JSInt_methods._shrOtherPositive$1(redOrArgb, 24) / 255;
  78571. red = B.JSInt_methods.$mod(B.JSInt_methods._shrOtherPositive$1(redOrArgb, 16), 256);
  78572. green = B.JSInt_methods.$mod(B.JSInt_methods._shrOtherPositive$1(redOrArgb, 8), 256);
  78573. blue = B.JSInt_methods.$mod(redOrArgb, 256);
  78574. } else {
  78575. redOrArgb.toString;
  78576. red = redOrArgb;
  78577. }
  78578. t1 = A.fuzzyRound0(B.JSNumber_methods.clamp$2(red, 0, 255));
  78579. t2 = A.fuzzyRound0(B.JSNumber_methods.clamp$2(green, 0, 255));
  78580. t3 = A.fuzzyRound0(B.JSNumber_methods.clamp$2(blue, 0, 255));
  78581. t4 = alpha == null ? null : B.JSNumber_methods.clamp$2(alpha, 0, 1);
  78582. J.set$dartValue$x(thisArg, A.SassColor$rgb0(t1, t2, t3, t4 == null ? 1 : t4));
  78583. },
  78584. call$2(thisArg, redOrArgb) {
  78585. return this.call$6(thisArg, redOrArgb, null, null, null, null);
  78586. },
  78587. call$3(thisArg, redOrArgb, green) {
  78588. return this.call$6(thisArg, redOrArgb, green, null, null, null);
  78589. },
  78590. call$4(thisArg, redOrArgb, green, blue) {
  78591. return this.call$6(thisArg, redOrArgb, green, blue, null, null);
  78592. },
  78593. call$5(thisArg, redOrArgb, green, blue, alpha) {
  78594. return this.call$6(thisArg, redOrArgb, green, blue, alpha, null);
  78595. },
  78596. "call*": "call$6",
  78597. $requiredArgCount: 2,
  78598. $defaultValues() {
  78599. return [null, null, null, null];
  78600. },
  78601. $signature: 363
  78602. };
  78603. A.legacyColorClass_closure0.prototype = {
  78604. call$1(thisArg) {
  78605. return J.get$red$x(J.get$dartValue$x(thisArg));
  78606. },
  78607. $signature: 117
  78608. };
  78609. A.legacyColorClass_closure1.prototype = {
  78610. call$1(thisArg) {
  78611. return J.get$green$x(J.get$dartValue$x(thisArg));
  78612. },
  78613. $signature: 117
  78614. };
  78615. A.legacyColorClass_closure2.prototype = {
  78616. call$1(thisArg) {
  78617. return J.get$blue$x(J.get$dartValue$x(thisArg));
  78618. },
  78619. $signature: 117
  78620. };
  78621. A.legacyColorClass_closure3.prototype = {
  78622. call$1(thisArg) {
  78623. return J.get$dartValue$x(thisArg)._color1$_alpha;
  78624. },
  78625. $signature: 365
  78626. };
  78627. A.legacyColorClass_closure4.prototype = {
  78628. call$2(thisArg, value) {
  78629. var t1 = J.getInterceptor$x(thisArg);
  78630. t1.set$dartValue(thisArg, t1.get$dartValue(thisArg).changeRgb$1$red(A.fuzzyRound0(B.JSNumber_methods.clamp$2(value, 0, 255))));
  78631. },
  78632. $signature: 82
  78633. };
  78634. A.legacyColorClass_closure5.prototype = {
  78635. call$2(thisArg, value) {
  78636. var t1 = J.getInterceptor$x(thisArg);
  78637. t1.set$dartValue(thisArg, t1.get$dartValue(thisArg).changeRgb$1$green(A.fuzzyRound0(B.JSNumber_methods.clamp$2(value, 0, 255))));
  78638. },
  78639. $signature: 82
  78640. };
  78641. A.legacyColorClass_closure6.prototype = {
  78642. call$2(thisArg, value) {
  78643. var t1 = J.getInterceptor$x(thisArg);
  78644. t1.set$dartValue(thisArg, t1.get$dartValue(thisArg).changeRgb$1$blue(A.fuzzyRound0(B.JSNumber_methods.clamp$2(value, 0, 255))));
  78645. },
  78646. $signature: 82
  78647. };
  78648. A.legacyColorClass_closure7.prototype = {
  78649. call$2(thisArg, value) {
  78650. var t1 = J.getInterceptor$x(thisArg);
  78651. t1.set$dartValue(thisArg, t1.get$dartValue(thisArg).changeRgb$1$alpha(B.JSNumber_methods.clamp$2(value, 0, 1)));
  78652. },
  78653. $signature: 82
  78654. };
  78655. A.colorClass_closure.prototype = {
  78656. call$0() {
  78657. var t1 = type$.JSClass,
  78658. jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.SassColor", new A.colorClass__closure()));
  78659. J.get$$prototype$x(jsClass).change = A.allowInteropCaptureThisNamed("change", new A.colorClass__closure0());
  78660. A.LinkedHashMap_LinkedHashMap$_literal(["red", new A.colorClass__closure1(), "green", new A.colorClass__closure2(), "blue", new A.colorClass__closure3(), "hue", new A.colorClass__closure4(), "saturation", new A.colorClass__closure5(), "lightness", new A.colorClass__closure6(), "whiteness", new A.colorClass__closure7(), "blackness", new A.colorClass__closure8(), "alpha", new A.colorClass__closure9()], type$.String, type$.Function).forEach$1(0, A.JSClassExtension_get_defineGetter(jsClass));
  78661. A.JSClassExtension_injectSuperclass(t1._as(A.SassColor$rgb0(0, 0, 0, null).constructor), jsClass);
  78662. return jsClass;
  78663. },
  78664. $signature: 25
  78665. };
  78666. A.colorClass__closure.prototype = {
  78667. call$2($self, color) {
  78668. var t2, t3, t4,
  78669. t1 = J.getInterceptor$x(color);
  78670. if (t1.get$red(color) != null) {
  78671. t2 = t1.get$red(color);
  78672. t2.toString;
  78673. t2 = A.fuzzyRound0(t2);
  78674. t3 = t1.get$green(color);
  78675. t3.toString;
  78676. t3 = A.fuzzyRound0(t3);
  78677. t4 = t1.get$blue(color);
  78678. t4.toString;
  78679. return A.SassColor$rgb0(t2, t3, A.fuzzyRound0(t4), t1.get$alpha(color));
  78680. } else if (t1.get$saturation(color) != null) {
  78681. t2 = t1.get$hue(color);
  78682. t2.toString;
  78683. t3 = t1.get$saturation(color);
  78684. t3.toString;
  78685. t4 = t1.get$lightness(color);
  78686. t4.toString;
  78687. return A.SassColor$hsl(t2, t3, t4, t1.get$alpha(color));
  78688. } else {
  78689. t2 = t1.get$hue(color);
  78690. t2.toString;
  78691. t3 = t1.get$whiteness(color);
  78692. t3.toString;
  78693. t4 = t1.get$blackness(color);
  78694. t4.toString;
  78695. return A.SassColor_SassColor$hwb0(t2, t3, t4, t1.get$alpha(color));
  78696. }
  78697. },
  78698. $signature: 367
  78699. };
  78700. A.colorClass__closure0.prototype = {
  78701. call$2($self, options) {
  78702. var t2, t3, t4,
  78703. t1 = J.getInterceptor$x(options);
  78704. if (t1.get$whiteness(options) != null || t1.get$blackness(options) != null) {
  78705. t2 = t1.get$hue(options);
  78706. if (t2 == null)
  78707. t2 = $self.get$hue($self);
  78708. t3 = t1.get$whiteness(options);
  78709. if (t3 == null)
  78710. t3 = $self.get$whiteness($self);
  78711. t4 = t1.get$blackness(options);
  78712. if (t4 == null)
  78713. t4 = $self.get$blackness($self);
  78714. t1 = t1.get$alpha(options);
  78715. return $self.changeHwb$4$alpha$blackness$hue$whiteness(t1 == null ? $self._color1$_alpha : t1, t4, t2, t3);
  78716. } else if (t1.get$hue(options) != null || t1.get$saturation(options) != null || t1.get$lightness(options) != null) {
  78717. t2 = t1.get$hue(options);
  78718. if (t2 == null)
  78719. t2 = $self.get$hue($self);
  78720. t3 = t1.get$saturation(options);
  78721. if (t3 == null)
  78722. t3 = $self.get$saturation($self);
  78723. t4 = t1.get$lightness(options);
  78724. if (t4 == null)
  78725. t4 = $self.get$lightness($self);
  78726. t1 = t1.get$alpha(options);
  78727. return $self.changeHsl$4$alpha$hue$lightness$saturation(t1 == null ? $self._color1$_alpha : t1, t2, t4, t3);
  78728. } else if (t1.get$red(options) != null || t1.get$green(options) != null || t1.get$blue(options) != null) {
  78729. t2 = A.NullableExtension_andThen0(t1.get$red(options), A.number2__fuzzyRound$closure());
  78730. if (t2 == null)
  78731. t2 = $self.get$red($self);
  78732. t3 = A.NullableExtension_andThen0(t1.get$green(options), A.number2__fuzzyRound$closure());
  78733. if (t3 == null)
  78734. t3 = $self.get$green($self);
  78735. t4 = A.NullableExtension_andThen0(t1.get$blue(options), A.number2__fuzzyRound$closure());
  78736. if (t4 == null)
  78737. t4 = $self.get$blue($self);
  78738. t1 = t1.get$alpha(options);
  78739. return $self.changeRgb$4$alpha$blue$green$red(t1 == null ? $self._color1$_alpha : t1, t4, t3, t2);
  78740. } else {
  78741. t1 = t1.get$alpha(options);
  78742. return $self.changeAlpha$1(t1 == null ? $self._color1$_alpha : t1);
  78743. }
  78744. },
  78745. $signature: 368
  78746. };
  78747. A.colorClass__closure1.prototype = {
  78748. call$1($self) {
  78749. return $self.get$red($self);
  78750. },
  78751. $signature: 104
  78752. };
  78753. A.colorClass__closure2.prototype = {
  78754. call$1($self) {
  78755. return $self.get$green($self);
  78756. },
  78757. $signature: 104
  78758. };
  78759. A.colorClass__closure3.prototype = {
  78760. call$1($self) {
  78761. return $self.get$blue($self);
  78762. },
  78763. $signature: 104
  78764. };
  78765. A.colorClass__closure4.prototype = {
  78766. call$1($self) {
  78767. return $self.get$hue($self);
  78768. },
  78769. $signature: 60
  78770. };
  78771. A.colorClass__closure5.prototype = {
  78772. call$1($self) {
  78773. return $self.get$saturation($self);
  78774. },
  78775. $signature: 60
  78776. };
  78777. A.colorClass__closure6.prototype = {
  78778. call$1($self) {
  78779. return $self.get$lightness($self);
  78780. },
  78781. $signature: 60
  78782. };
  78783. A.colorClass__closure7.prototype = {
  78784. call$1($self) {
  78785. return $self.get$whiteness($self);
  78786. },
  78787. $signature: 60
  78788. };
  78789. A.colorClass__closure8.prototype = {
  78790. call$1($self) {
  78791. return $self.get$blackness($self);
  78792. },
  78793. $signature: 60
  78794. };
  78795. A.colorClass__closure9.prototype = {
  78796. call$1($self) {
  78797. return $self._color1$_alpha;
  78798. },
  78799. $signature: 60
  78800. };
  78801. A._Channels.prototype = {};
  78802. A.SassColor0.prototype = {
  78803. get$red(_) {
  78804. var t1;
  78805. if (this._color1$_red == null)
  78806. this._color1$_hslToRgb$0();
  78807. t1 = this._color1$_red;
  78808. t1.toString;
  78809. return t1;
  78810. },
  78811. get$green(_) {
  78812. var t1;
  78813. if (this._color1$_green == null)
  78814. this._color1$_hslToRgb$0();
  78815. t1 = this._color1$_green;
  78816. t1.toString;
  78817. return t1;
  78818. },
  78819. get$blue(_) {
  78820. var t1;
  78821. if (this._color1$_blue == null)
  78822. this._color1$_hslToRgb$0();
  78823. t1 = this._color1$_blue;
  78824. t1.toString;
  78825. return t1;
  78826. },
  78827. get$hue(_) {
  78828. var t1;
  78829. if (this._color1$_hue == null)
  78830. this._color1$_rgbToHsl$0();
  78831. t1 = this._color1$_hue;
  78832. t1.toString;
  78833. return t1;
  78834. },
  78835. get$saturation(_) {
  78836. var t1;
  78837. if (this._color1$_saturation == null)
  78838. this._color1$_rgbToHsl$0();
  78839. t1 = this._color1$_saturation;
  78840. t1.toString;
  78841. return t1;
  78842. },
  78843. get$lightness(_) {
  78844. var t1;
  78845. if (this._color1$_lightness == null)
  78846. this._color1$_rgbToHsl$0();
  78847. t1 = this._color1$_lightness;
  78848. t1.toString;
  78849. return t1;
  78850. },
  78851. get$whiteness(_) {
  78852. var _this = this;
  78853. return Math.min(Math.min(_this.get$red(_this), _this.get$green(_this)), _this.get$blue(_this)) / 255 * 100;
  78854. },
  78855. get$blackness(_) {
  78856. var _this = this;
  78857. return 100 - Math.max(Math.max(_this.get$red(_this), _this.get$green(_this)), _this.get$blue(_this)) / 255 * 100;
  78858. },
  78859. accept$1$1(visitor) {
  78860. var $name, hexLength, t1, format, t2, opaque, _this = this;
  78861. if (visitor._serialize0$_style === B.OutputStyle_10)
  78862. if (!A.fuzzyEquals0(_this._color1$_alpha, 1))
  78863. visitor._serialize0$_writeRgb$1(_this);
  78864. else {
  78865. $name = $.$get$namesByColor0().$index(0, _this);
  78866. hexLength = visitor._serialize0$_canUseShortHex$1(_this) ? 4 : 7;
  78867. if ($name != null && $name.length <= hexLength)
  78868. visitor._serialize0$_buffer.write$1(0, $name);
  78869. else {
  78870. t1 = visitor._serialize0$_buffer;
  78871. if (visitor._serialize0$_canUseShortHex$1(_this)) {
  78872. t1.writeCharCode$1(35);
  78873. t1.writeCharCode$1(A.hexCharFor0(_this.get$red(_this) & 15));
  78874. t1.writeCharCode$1(A.hexCharFor0(_this.get$green(_this) & 15));
  78875. t1.writeCharCode$1(A.hexCharFor0(_this.get$blue(_this) & 15));
  78876. } else {
  78877. t1.writeCharCode$1(35);
  78878. visitor._serialize0$_writeHexComponent$1(_this.get$red(_this));
  78879. visitor._serialize0$_writeHexComponent$1(_this.get$green(_this));
  78880. visitor._serialize0$_writeHexComponent$1(_this.get$blue(_this));
  78881. }
  78882. }
  78883. }
  78884. else {
  78885. format = _this.format;
  78886. if (format != null)
  78887. if (format === B._ColorFormatEnum_rgbFunction0)
  78888. visitor._serialize0$_writeRgb$1(_this);
  78889. else {
  78890. t1 = visitor._serialize0$_buffer;
  78891. if (format === B._ColorFormatEnum_hslFunction0) {
  78892. t2 = _this._color1$_alpha;
  78893. opaque = A.fuzzyEquals0(t2, 1);
  78894. t1.write$1(0, opaque ? "hsl(" : "hsla(");
  78895. visitor._serialize0$_writeNumber$1(_this.get$hue(_this));
  78896. t1.write$1(0, "deg");
  78897. t1.write$1(0, ", ");
  78898. visitor._serialize0$_writeNumber$1(_this.get$saturation(_this));
  78899. t1.writeCharCode$1(37);
  78900. t1.write$1(0, ", ");
  78901. visitor._serialize0$_writeNumber$1(_this.get$lightness(_this));
  78902. t1.writeCharCode$1(37);
  78903. if (!opaque) {
  78904. t1.write$1(0, ", ");
  78905. visitor._serialize0$_writeNumber$1(t2);
  78906. }
  78907. t1.writeCharCode$1(41);
  78908. } else
  78909. t1.write$1(0, type$.SpanColorFormat_2._as(format)._color1$_span.get$text());
  78910. }
  78911. else {
  78912. t1 = $.$get$namesByColor0();
  78913. if (t1.containsKey$1(_this) && !A.fuzzyEquals0(_this._color1$_alpha, 0))
  78914. visitor._serialize0$_buffer.write$1(0, t1.$index(0, _this));
  78915. else if (A.fuzzyEquals0(_this._color1$_alpha, 1)) {
  78916. visitor._serialize0$_buffer.writeCharCode$1(35);
  78917. visitor._serialize0$_writeHexComponent$1(_this.get$red(_this));
  78918. visitor._serialize0$_writeHexComponent$1(_this.get$green(_this));
  78919. visitor._serialize0$_writeHexComponent$1(_this.get$blue(_this));
  78920. } else
  78921. visitor._serialize0$_writeRgb$1(_this);
  78922. }
  78923. }
  78924. return null;
  78925. },
  78926. accept$1(visitor) {
  78927. return this.accept$1$1(visitor, type$.dynamic);
  78928. },
  78929. assertColor$1($name) {
  78930. return this;
  78931. },
  78932. changeRgb$4$alpha$blue$green$red(alpha, blue, green, red) {
  78933. var _this = this,
  78934. t1 = red == null ? _this.get$red(_this) : red,
  78935. t2 = green == null ? _this.get$green(_this) : green,
  78936. t3 = blue == null ? _this.get$blue(_this) : blue;
  78937. return A.SassColor$rgb0(t1, t2, t3, alpha == null ? _this._color1$_alpha : alpha);
  78938. },
  78939. changeRgb$3$blue$green$red(blue, green, red) {
  78940. return this.changeRgb$4$alpha$blue$green$red(null, blue, green, red);
  78941. },
  78942. changeRgb$1$alpha(alpha) {
  78943. return this.changeRgb$4$alpha$blue$green$red(alpha, null, null, null);
  78944. },
  78945. changeRgb$1$blue(blue) {
  78946. return this.changeRgb$4$alpha$blue$green$red(null, blue, null, null);
  78947. },
  78948. changeRgb$1$green(green) {
  78949. return this.changeRgb$4$alpha$blue$green$red(null, null, green, null);
  78950. },
  78951. changeRgb$1$red(red) {
  78952. return this.changeRgb$4$alpha$blue$green$red(null, null, null, red);
  78953. },
  78954. changeHsl$4$alpha$hue$lightness$saturation(alpha, hue, lightness, saturation) {
  78955. var _this = this,
  78956. t1 = hue == null ? _this.get$hue(_this) : hue,
  78957. t2 = saturation == null ? _this.get$saturation(_this) : saturation,
  78958. t3 = lightness == null ? _this.get$lightness(_this) : lightness;
  78959. return A.SassColor$hsl(t1, t2, t3, alpha == null ? _this._color1$_alpha : alpha);
  78960. },
  78961. changeHsl$1$saturation(saturation) {
  78962. return this.changeHsl$4$alpha$hue$lightness$saturation(null, null, null, saturation);
  78963. },
  78964. changeHsl$1$lightness(lightness) {
  78965. return this.changeHsl$4$alpha$hue$lightness$saturation(null, null, lightness, null);
  78966. },
  78967. changeHsl$1$hue(hue) {
  78968. return this.changeHsl$4$alpha$hue$lightness$saturation(null, hue, null, null);
  78969. },
  78970. changeHwb$4$alpha$blackness$hue$whiteness(alpha, blackness, hue, whiteness) {
  78971. var t1 = hue == null ? this.get$hue(this) : hue;
  78972. return A.SassColor_SassColor$hwb0(t1, whiteness, blackness, alpha);
  78973. },
  78974. changeAlpha$1(alpha) {
  78975. var _this = this;
  78976. return new A.SassColor0(_this._color1$_red, _this._color1$_green, _this._color1$_blue, _this._color1$_hue, _this._color1$_saturation, _this._color1$_lightness, A.fuzzyAssertRange0(alpha, 0, 1, "alpha"), null);
  78977. },
  78978. plus$1(other) {
  78979. if (!(other instanceof A.SassNumber0) && !(other instanceof A.SassColor0))
  78980. return this.super$Value$plus0(other);
  78981. throw A.wrapException(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " + " + other.toString$0(0) + '".', null));
  78982. },
  78983. minus$1(other) {
  78984. if (!(other instanceof A.SassNumber0) && !(other instanceof A.SassColor0))
  78985. return this.super$Value$minus0(other);
  78986. throw A.wrapException(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " - " + other.toString$0(0) + '".', null));
  78987. },
  78988. dividedBy$1(other) {
  78989. if (!(other instanceof A.SassNumber0) && !(other instanceof A.SassColor0))
  78990. return this.super$Value$dividedBy0(other);
  78991. throw A.wrapException(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " / " + other.toString$0(0) + '".', null));
  78992. },
  78993. $eq(_, other) {
  78994. var _this = this;
  78995. if (other == null)
  78996. return false;
  78997. return other instanceof A.SassColor0 && other.get$red(other) === _this.get$red(_this) && other.get$green(other) === _this.get$green(_this) && other.get$blue(other) === _this.get$blue(_this) && other._color1$_alpha === _this._color1$_alpha;
  78998. },
  78999. get$hashCode(_) {
  79000. var _this = this;
  79001. return B.JSInt_methods.get$hashCode(_this.get$red(_this)) ^ B.JSInt_methods.get$hashCode(_this.get$green(_this)) ^ B.JSInt_methods.get$hashCode(_this.get$blue(_this)) ^ B.JSNumber_methods.get$hashCode(_this._color1$_alpha);
  79002. },
  79003. _color1$_rgbToHsl$0() {
  79004. var t2, lightness, _this = this,
  79005. scaledRed = _this.get$red(_this) / 255,
  79006. scaledGreen = _this.get$green(_this) / 255,
  79007. scaledBlue = _this.get$blue(_this) / 255,
  79008. max = Math.max(Math.max(scaledRed, scaledGreen), scaledBlue),
  79009. min = Math.min(Math.min(scaledRed, scaledGreen), scaledBlue),
  79010. delta = max - min,
  79011. t1 = max === min;
  79012. if (t1)
  79013. _this._color1$_hue = 0;
  79014. else if (max === scaledRed)
  79015. _this._color1$_hue = B.JSNumber_methods.$mod(60 * (scaledGreen - scaledBlue) / delta, 360);
  79016. else if (max === scaledGreen)
  79017. _this._color1$_hue = B.JSNumber_methods.$mod(120 + 60 * (scaledBlue - scaledRed) / delta, 360);
  79018. else if (max === scaledBlue)
  79019. _this._color1$_hue = B.JSNumber_methods.$mod(240 + 60 * (scaledRed - scaledGreen) / delta, 360);
  79020. t2 = max + min;
  79021. lightness = 50 * t2;
  79022. _this._color1$_lightness = lightness;
  79023. if (t1)
  79024. _this._color1$_saturation = 0;
  79025. else {
  79026. t1 = 100 * delta;
  79027. if (lightness < 50)
  79028. _this._color1$_saturation = t1 / t2;
  79029. else
  79030. _this._color1$_saturation = t1 / (2 - max - min);
  79031. }
  79032. },
  79033. _color1$_hslToRgb$0() {
  79034. var _this = this,
  79035. scaledHue = _this.get$hue(_this) / 360,
  79036. scaledSaturation = _this.get$saturation(_this) / 100,
  79037. scaledLightness = _this.get$lightness(_this) / 100,
  79038. m2 = scaledLightness <= 0.5 ? scaledLightness * (scaledSaturation + 1) : scaledLightness + scaledSaturation - scaledLightness * scaledSaturation,
  79039. m1 = scaledLightness * 2 - m2;
  79040. _this._color1$_red = A.fuzzyRound0(A.SassColor__hueToRgb0(m1, m2, scaledHue + 0.3333333333333333) * 255);
  79041. _this._color1$_green = A.fuzzyRound0(A.SassColor__hueToRgb0(m1, m2, scaledHue) * 255);
  79042. _this._color1$_blue = A.fuzzyRound0(A.SassColor__hueToRgb0(m1, m2, scaledHue - 0.3333333333333333) * 255);
  79043. }
  79044. };
  79045. A.SassColor_SassColor$hwb_toRgb0.prototype = {
  79046. call$1(hue) {
  79047. return A.fuzzyRound0((A.SassColor__hueToRgb0(0, 1, hue) * this.factor + this._box_0.scaledWhiteness) * 255);
  79048. },
  79049. $signature: 208
  79050. };
  79051. A._ColorFormatEnum0.prototype = {
  79052. toString$0(_) {
  79053. return this._color1$_name;
  79054. }
  79055. };
  79056. A.SpanColorFormat0.prototype = {};
  79057. A.Combinator0.prototype = {
  79058. toString$0(_) {
  79059. return this._combinator0$_text;
  79060. }
  79061. };
  79062. A.ModifiableCssComment0.prototype = {
  79063. accept$1$1(visitor) {
  79064. return visitor.visitCssComment$1(this);
  79065. },
  79066. accept$1(visitor) {
  79067. return this.accept$1$1(visitor, type$.dynamic);
  79068. },
  79069. $isCssComment0: 1,
  79070. get$span(receiver) {
  79071. return this.span;
  79072. }
  79073. };
  79074. A.compileAsync_closure.prototype = {
  79075. call$0() {
  79076. var $async$goto = 0,
  79077. $async$completer = A._makeAsyncAwaitCompleter(type$.NodeCompileResult),
  79078. $async$returnValue, $async$self = this, t5, t6, t7, t8, t9, t10, t11, result, t1, t2, t3, t4;
  79079. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  79080. if ($async$errorCode === 1)
  79081. return A._asyncRethrow($async$result, $async$completer);
  79082. while (true)
  79083. switch ($async$goto) {
  79084. case 0:
  79085. // Function start
  79086. t1 = $async$self.options;
  79087. t2 = t1 == null;
  79088. t3 = t2 ? null : J.get$loadPaths$x(t1);
  79089. t4 = t2 ? null : J.get$quietDeps$x(t1);
  79090. if (t4 == null)
  79091. t4 = false;
  79092. t5 = A._parseOutputStyle0(t2 ? null : J.get$style$x(t1));
  79093. t6 = t2 ? null : J.get$verbose$x(t1);
  79094. if (t6 == null)
  79095. t6 = false;
  79096. t7 = t2 ? null : J.get$charset$x(t1);
  79097. if (t7 == null)
  79098. t7 = true;
  79099. t8 = t2 ? null : J.get$sourceMap$x(t1);
  79100. if (t8 == null)
  79101. t8 = false;
  79102. t9 = t2 ? null : J.get$logger$x(t1);
  79103. t9 = new A.NodeToDartLogger(t9, new A.StderrLogger0($async$self.color), $async$self.ascii);
  79104. if (t2)
  79105. t10 = null;
  79106. else {
  79107. t10 = J.get$importers$x(t1);
  79108. t10 = t10 == null ? null : J.map$1$1$ax(t10, new A.compileAsync__closure(), type$.AsyncImporter);
  79109. }
  79110. t11 = A._parseFunctions0(t2 ? null : J.get$functions$x(t1), true);
  79111. $async$goto = 3;
  79112. return A._asyncAwait(A.compileAsync0($async$self.path, t7, t11, A.AsyncImportCache$(t10, t3, t9, null), null, null, t9, null, t4, t8, t5, null, true, t6), $async$call$0);
  79113. case 3:
  79114. // returning from await.
  79115. result = $async$result;
  79116. t1 = t2 ? null : J.get$sourceMapIncludeSources$x(t1);
  79117. $async$returnValue = A._convertResult(result, t1 == null ? false : t1);
  79118. // goto return
  79119. $async$goto = 1;
  79120. break;
  79121. case 1:
  79122. // return
  79123. return A._asyncReturn($async$returnValue, $async$completer);
  79124. }
  79125. });
  79126. return A._asyncStartSync($async$call$0, $async$completer);
  79127. },
  79128. $signature: 143
  79129. };
  79130. A.compileAsync__closure.prototype = {
  79131. call$1(importer) {
  79132. return A._parseAsyncImporter(importer);
  79133. },
  79134. $signature: 253
  79135. };
  79136. A.compileStringAsync_closure.prototype = {
  79137. call$0() {
  79138. var $async$goto = 0,
  79139. $async$completer = A._makeAsyncAwaitCompleter(type$.NodeCompileResult),
  79140. $async$returnValue, $async$self = this, t7, t8, t9, t10, t11, t12, t13, t14, result, t1, t2, t3, t4, t5, t6;
  79141. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  79142. if ($async$errorCode === 1)
  79143. return A._asyncRethrow($async$result, $async$completer);
  79144. while (true)
  79145. switch ($async$goto) {
  79146. case 0:
  79147. // Function start
  79148. t1 = $async$self.options;
  79149. t2 = t1 == null;
  79150. t3 = A.parseSyntax(t2 ? null : J.get$syntax$x(t1));
  79151. t4 = t2 ? null : A.NullableExtension_andThen0(J.get$url$x(t1), A.utils1__jsToDartUrl$closure());
  79152. t5 = t2 ? null : J.get$loadPaths$x(t1);
  79153. t6 = t2 ? null : J.get$quietDeps$x(t1);
  79154. if (t6 == null)
  79155. t6 = false;
  79156. t7 = A._parseOutputStyle0(t2 ? null : J.get$style$x(t1));
  79157. t8 = t2 ? null : J.get$verbose$x(t1);
  79158. if (t8 == null)
  79159. t8 = false;
  79160. t9 = t2 ? null : J.get$charset$x(t1);
  79161. if (t9 == null)
  79162. t9 = true;
  79163. t10 = t2 ? null : J.get$sourceMap$x(t1);
  79164. if (t10 == null)
  79165. t10 = false;
  79166. t11 = t2 ? null : J.get$logger$x(t1);
  79167. t11 = new A.NodeToDartLogger(t11, new A.StderrLogger0($async$self.color), $async$self.ascii);
  79168. if (t2)
  79169. t12 = null;
  79170. else {
  79171. t12 = J.get$importers$x(t1);
  79172. t12 = t12 == null ? null : J.map$1$1$ax(t12, new A.compileStringAsync__closure(), type$.AsyncImporter);
  79173. }
  79174. t13 = t2 ? null : A.NullableExtension_andThen0(J.get$importer$x(t1), new A.compileStringAsync__closure0());
  79175. if (t13 == null)
  79176. t13 = (t2 ? null : J.get$url$x(t1)) == null ? new A.NoOpImporter() : null;
  79177. t14 = A._parseFunctions0(t2 ? null : J.get$functions$x(t1), true);
  79178. $async$goto = 3;
  79179. return A._asyncAwait(A.compileStringAsync0($async$self.text, t9, t14, A.AsyncImportCache$(t12, t5, t11, null), t13, null, null, t11, null, t6, t10, t7, t3, t4, true, t8), $async$call$0);
  79180. case 3:
  79181. // returning from await.
  79182. result = $async$result;
  79183. t1 = t2 ? null : J.get$sourceMapIncludeSources$x(t1);
  79184. $async$returnValue = A._convertResult(result, t1 == null ? false : t1);
  79185. // goto return
  79186. $async$goto = 1;
  79187. break;
  79188. case 1:
  79189. // return
  79190. return A._asyncReturn($async$returnValue, $async$completer);
  79191. }
  79192. });
  79193. return A._asyncStartSync($async$call$0, $async$completer);
  79194. },
  79195. $signature: 143
  79196. };
  79197. A.compileStringAsync__closure.prototype = {
  79198. call$1(importer) {
  79199. return A._parseAsyncImporter(importer);
  79200. },
  79201. $signature: 253
  79202. };
  79203. A.compileStringAsync__closure0.prototype = {
  79204. call$1(importer) {
  79205. return A._parseAsyncImporter(importer);
  79206. },
  79207. $signature: 373
  79208. };
  79209. A._wrapAsyncSassExceptions_closure.prototype = {
  79210. call$1(error) {
  79211. var t1;
  79212. if (error instanceof A.SassException0)
  79213. t1 = A.throwNodeException(error, this.ascii, this.color, null);
  79214. else
  79215. t1 = A.jsThrow(error == null ? type$.Object._as(error) : error);
  79216. return t1;
  79217. },
  79218. $signature: 374
  79219. };
  79220. A._parseFunctions_closure0.prototype = {
  79221. call$2(signature, callback) {
  79222. var callable,
  79223. t1 = this.result;
  79224. if (!this.asynch) {
  79225. callable = A._Cell$();
  79226. callable._value = A.Callable_Callable$fromSignature(signature, new A._parseFunctions__closure2(callback, callable), true);
  79227. t1.push(callable._readLocal$0());
  79228. } else {
  79229. callable = A._Cell$();
  79230. callable._value = A.AsyncCallable_AsyncCallable$fromSignature(signature, new A._parseFunctions__closure3(callback, callable), true);
  79231. t1.push(callable._readLocal$0());
  79232. }
  79233. },
  79234. $signature: 114
  79235. };
  79236. A._parseFunctions__closure2.prototype = {
  79237. call$1($arguments) {
  79238. var t1, t2,
  79239. _s42_ = string$.Invali,
  79240. result = type$.Function._as(this.callback).call$1(A.toJSArray($arguments));
  79241. if (result instanceof A.Value0)
  79242. return result;
  79243. t1 = result != null && result instanceof self.Promise;
  79244. t2 = this.callable;
  79245. if (t1)
  79246. throw A.wrapException(_s42_ + J.get$name$x(t2.readLocal$0()) + '":\nPromises may only be returned for sass.compileAsync() and sass.compileStringAsync().');
  79247. else
  79248. throw A.wrapException(_s42_ + J.get$name$x(t2.readLocal$0()) + '": ' + A.S(result) + " is not a sass.Value.");
  79249. },
  79250. $signature: 3
  79251. };
  79252. A._parseFunctions__closure3.prototype = {
  79253. call$1($arguments) {
  79254. return this.$call$body$_parseFunctions__closure0($arguments);
  79255. },
  79256. $call$body$_parseFunctions__closure0($arguments) {
  79257. var $async$goto = 0,
  79258. $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
  79259. $async$returnValue, $async$self = this, result;
  79260. var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  79261. if ($async$errorCode === 1)
  79262. return A._asyncRethrow($async$result, $async$completer);
  79263. while (true)
  79264. switch ($async$goto) {
  79265. case 0:
  79266. // Function start
  79267. result = type$.Function._as($async$self.callback).call$1(A.toJSArray($arguments));
  79268. $async$goto = result != null && result instanceof self.Promise ? 3 : 4;
  79269. break;
  79270. case 3:
  79271. // then
  79272. $async$goto = 5;
  79273. return A._asyncAwait(A.promiseToFuture(type$.Promise._as(result), type$.Object), $async$call$1);
  79274. case 5:
  79275. // returning from await.
  79276. result = $async$result;
  79277. case 4:
  79278. // join
  79279. if (result instanceof A.Value0) {
  79280. $async$returnValue = result;
  79281. // goto return
  79282. $async$goto = 1;
  79283. break;
  79284. }
  79285. throw A.wrapException(string$.Invali + J.get$name$x($async$self.callable.readLocal$0()) + '": ' + A.S(result) + " is not a sass.Value.");
  79286. case 1:
  79287. // return
  79288. return A._asyncReturn($async$returnValue, $async$completer);
  79289. }
  79290. });
  79291. return A._asyncStartSync($async$call$1, $async$completer);
  79292. },
  79293. $signature: 95
  79294. };
  79295. A._compileStylesheet_closure1.prototype = {
  79296. call$1(url) {
  79297. return url === "" ? A.Uri_Uri$dataFromString(A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(this.stylesheet.span.file._decodedChars, 0, null), 0, null), B.C_Utf8Codec, null).get$_text() : this.importCache.sourceMapUrl$1(0, A.Uri_parse(url)).toString$0(0);
  79298. },
  79299. $signature: 5
  79300. };
  79301. A.CompileOptions.prototype = {};
  79302. A.CompileStringOptions.prototype = {};
  79303. A.NodeCompileResult.prototype = {};
  79304. A.CompileResult0.prototype = {};
  79305. A.ComplexSassNumber0.prototype = {
  79306. get$numeratorUnits(_) {
  79307. return this._complex0$_numeratorUnits;
  79308. },
  79309. get$denominatorUnits(_) {
  79310. return this._complex0$_denominatorUnits;
  79311. },
  79312. get$hasUnits() {
  79313. return true;
  79314. },
  79315. hasUnit$1(unit) {
  79316. return false;
  79317. },
  79318. compatibleWithUnit$1(unit) {
  79319. return false;
  79320. },
  79321. hasPossiblyCompatibleUnits$1(other) {
  79322. throw A.wrapException(A.UnimplementedError$(string$.Comple));
  79323. },
  79324. withValue$1(value) {
  79325. return new A.ComplexSassNumber0(this._complex0$_numeratorUnits, this._complex0$_denominatorUnits, value, null);
  79326. },
  79327. withSlash$2(numerator, denominator) {
  79328. return new A.ComplexSassNumber0(this._complex0$_numeratorUnits, this._complex0$_denominatorUnits, this._number1$_value, new A.Tuple2(numerator, denominator, type$.Tuple2_SassNumber_SassNumber_2));
  79329. }
  79330. };
  79331. A.ComplexSelector0.prototype = {
  79332. get$specificity() {
  79333. var result, _this = this,
  79334. value = _this._complex$__ComplexSelector_specificity_FI;
  79335. if (value === $) {
  79336. result = B.JSArray_methods.fold$2(_this.components, 0, new A.ComplexSelector_specificity_closure0());
  79337. _this._complex$__ComplexSelector_specificity_FI !== $ && A.throwUnnamedLateFieldADI();
  79338. _this._complex$__ComplexSelector_specificity_FI = result;
  79339. value = result;
  79340. }
  79341. return value;
  79342. },
  79343. get$singleCompound() {
  79344. if (this.leadingCombinators.length === 0) {
  79345. var t1 = this.components;
  79346. t1 = t1.length === 1 && B.JSArray_methods.get$first(t1).combinators.length === 0;
  79347. } else
  79348. t1 = false;
  79349. return t1 ? B.JSArray_methods.get$first(this.components).selector : null;
  79350. },
  79351. accept$1$1(visitor) {
  79352. return visitor.visitComplexSelector$1(this);
  79353. },
  79354. accept$1(visitor) {
  79355. return this.accept$1$1(visitor, type$.dynamic);
  79356. },
  79357. isSuperselector$1(other) {
  79358. return this.leadingCombinators.length === 0 && other.leadingCombinators.length === 0 && A.complexIsSuperselector0(this.components, other.components);
  79359. },
  79360. withAdditionalCombinators$1(combinators) {
  79361. var t1, t2, t3, _this = this;
  79362. if (combinators.length === 0)
  79363. return _this;
  79364. else {
  79365. t1 = _this.components;
  79366. t2 = _this.leadingCombinators;
  79367. if (t1.length === 0) {
  79368. t1 = A.List_List$of(t2, true, type$.Combinator_2);
  79369. B.JSArray_methods.addAll$1(t1, combinators);
  79370. return A.ComplexSelector$0(t1, B.List_empty15, _this.lineBreak || false);
  79371. } else {
  79372. t3 = A.List_List$of(A.IterableExtension_get_exceptLast0(t1), true, type$.ComplexSelectorComponent_2);
  79373. t3.push(B.JSArray_methods.get$last(t1).withAdditionalCombinators$1(combinators));
  79374. return A.ComplexSelector$0(t2, t3, _this.lineBreak || false);
  79375. }
  79376. }
  79377. },
  79378. concatenate$2$forceLineBreak(child, forceLineBreak) {
  79379. var t2, t3, t4, t5, _this = this,
  79380. t1 = child.leadingCombinators;
  79381. if (t1.length === 0) {
  79382. t1 = A.List_List$of(_this.components, true, type$.ComplexSelectorComponent_2);
  79383. B.JSArray_methods.addAll$1(t1, child.components);
  79384. t2 = _this.lineBreak || child.lineBreak || forceLineBreak;
  79385. return A.ComplexSelector$0(_this.leadingCombinators, t1, t2);
  79386. } else {
  79387. t2 = _this.components;
  79388. t3 = _this.leadingCombinators;
  79389. t4 = child.components;
  79390. if (t2.length === 0) {
  79391. t2 = A.List_List$of(t3, true, type$.Combinator_2);
  79392. B.JSArray_methods.addAll$1(t2, t1);
  79393. return A.ComplexSelector$0(t2, t4, _this.lineBreak || child.lineBreak || forceLineBreak);
  79394. } else {
  79395. t5 = A.List_List$of(A.IterableExtension_get_exceptLast0(t2), true, type$.ComplexSelectorComponent_2);
  79396. t5.push(B.JSArray_methods.get$last(t2).withAdditionalCombinators$1(t1));
  79397. B.JSArray_methods.addAll$1(t5, t4);
  79398. return A.ComplexSelector$0(t3, t5, _this.lineBreak || child.lineBreak || forceLineBreak);
  79399. }
  79400. }
  79401. },
  79402. concatenate$1(child) {
  79403. return this.concatenate$2$forceLineBreak(child, false);
  79404. },
  79405. get$hashCode(_) {
  79406. return B.C_ListEquality0.hash$1(this.leadingCombinators) ^ B.C_ListEquality0.hash$1(this.components);
  79407. },
  79408. $eq(_, other) {
  79409. if (other == null)
  79410. return false;
  79411. return other instanceof A.ComplexSelector0 && B.C_ListEquality.equals$2(0, this.leadingCombinators, other.leadingCombinators) && B.C_ListEquality.equals$2(0, this.components, other.components);
  79412. }
  79413. };
  79414. A.ComplexSelector_specificity_closure0.prototype = {
  79415. call$2(sum, component) {
  79416. return sum + component.selector.get$specificity();
  79417. },
  79418. $signature: 376
  79419. };
  79420. A.ComplexSelectorComponent0.prototype = {
  79421. withAdditionalCombinators$1(combinators) {
  79422. var t1, t2;
  79423. if (combinators.length === 0)
  79424. t1 = this;
  79425. else {
  79426. t1 = type$.Combinator_2;
  79427. t2 = A.List_List$of(this.combinators, true, t1);
  79428. B.JSArray_methods.addAll$1(t2, combinators);
  79429. t1 = new A.ComplexSelectorComponent0(this.selector, A.List_List$unmodifiable(t2, t1));
  79430. }
  79431. return t1;
  79432. },
  79433. get$hashCode(_) {
  79434. return B.C_ListEquality0.hash$1(this.selector.components) ^ B.C_ListEquality0.hash$1(this.combinators);
  79435. },
  79436. $eq(_, other) {
  79437. var t1;
  79438. if (other == null)
  79439. return false;
  79440. if (other instanceof A.ComplexSelectorComponent0) {
  79441. t1 = B.C_ListEquality.equals$2(0, this.selector.components, other.selector.components);
  79442. t1 = t1 && B.C_ListEquality.equals$2(0, this.combinators, other.combinators);
  79443. } else
  79444. t1 = false;
  79445. return t1;
  79446. },
  79447. toString$0(_) {
  79448. var t1 = this.combinators;
  79449. return A.serializeSelector0(this.selector, true) + new A.MappedListIterable(t1, new A.ComplexSelectorComponent_toString_closure0(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$1(0, "");
  79450. }
  79451. };
  79452. A.ComplexSelectorComponent_toString_closure0.prototype = {
  79453. call$1(combinator) {
  79454. return " " + combinator.toString$0(0);
  79455. },
  79456. $signature: 377
  79457. };
  79458. A.CompoundSelector0.prototype = {
  79459. get$specificity() {
  79460. var result, _this = this,
  79461. value = _this._compound$__CompoundSelector_specificity_FI;
  79462. if (value === $) {
  79463. result = B.JSArray_methods.fold$2(_this.components, 0, new A.CompoundSelector_specificity_closure0());
  79464. _this._compound$__CompoundSelector_specificity_FI !== $ && A.throwUnnamedLateFieldADI();
  79465. _this._compound$__CompoundSelector_specificity_FI = result;
  79466. value = result;
  79467. }
  79468. return value;
  79469. },
  79470. accept$1$1(visitor) {
  79471. return visitor.visitCompoundSelector$1(this);
  79472. },
  79473. accept$1(visitor) {
  79474. return this.accept$1$1(visitor, type$.dynamic);
  79475. },
  79476. get$hashCode(_) {
  79477. return B.C_ListEquality0.hash$1(this.components);
  79478. },
  79479. $eq(_, other) {
  79480. if (other == null)
  79481. return false;
  79482. return other instanceof A.CompoundSelector0 && B.C_ListEquality.equals$2(0, this.components, other.components);
  79483. }
  79484. };
  79485. A.CompoundSelector_specificity_closure0.prototype = {
  79486. call$2(sum, component) {
  79487. return sum + component.get$specificity();
  79488. },
  79489. $signature: 378
  79490. };
  79491. A.Configuration0.prototype = {
  79492. throughForward$1($forward) {
  79493. var prefix, shownVariables, hiddenVariables, t1,
  79494. newValues = this._configuration$_values;
  79495. if (newValues.get$isEmpty(newValues))
  79496. return B.Configuration_Map_empty_null0;
  79497. prefix = $forward.prefix;
  79498. if (prefix != null)
  79499. newValues = new A.UnprefixedMapView0(newValues, prefix, type$.UnprefixedMapView_ConfiguredValue_2);
  79500. shownVariables = $forward.shownVariables;
  79501. hiddenVariables = $forward.hiddenVariables;
  79502. if (shownVariables != null)
  79503. newValues = new A.LimitedMapView0(newValues, shownVariables._base.intersection$1(new A.MapKeySet(newValues, type$.MapKeySet_nullable_Object)), type$.LimitedMapView_String_ConfiguredValue_2);
  79504. else {
  79505. if (hiddenVariables != null) {
  79506. t1 = hiddenVariables._base;
  79507. t1 = t1.get$isNotEmpty(t1);
  79508. } else
  79509. t1 = false;
  79510. if (t1)
  79511. newValues = A.LimitedMapView$blocklist0(newValues, hiddenVariables, type$.String, type$.ConfiguredValue_2);
  79512. }
  79513. return this._configuration$_withValues$1(newValues);
  79514. },
  79515. _configuration$_withValues$1(values) {
  79516. var t1 = this._configuration$__originalConfiguration;
  79517. return new A.Configuration0(values, t1 == null ? this : t1);
  79518. },
  79519. toString$0(_) {
  79520. var t1 = this._configuration$_values;
  79521. return "(" + t1.get$entries(t1).map$1$1(0, new A.Configuration_toString_closure0(), type$.String).join$1(0, ", ") + ")";
  79522. }
  79523. };
  79524. A.Configuration_toString_closure0.prototype = {
  79525. call$1(entry) {
  79526. return "$" + A.S(entry.key) + ": " + A.S(entry.value);
  79527. },
  79528. $signature: 379
  79529. };
  79530. A.ExplicitConfiguration0.prototype = {
  79531. _configuration$_withValues$1(values) {
  79532. var t1 = this._configuration$__originalConfiguration;
  79533. if (t1 == null)
  79534. t1 = this;
  79535. return new A.ExplicitConfiguration0(this.nodeWithSpan, values, t1);
  79536. }
  79537. };
  79538. A.ConfiguredValue0.prototype = {
  79539. toString$0(_) {
  79540. return A.serializeValue0(this.value, true, true);
  79541. }
  79542. };
  79543. A.ConfiguredVariable0.prototype = {
  79544. toString$0(_) {
  79545. var t1 = this.expression.toString$0(0),
  79546. t2 = this.isGuarded ? " !default" : "";
  79547. return "$" + this.name + ": " + t1 + t2;
  79548. },
  79549. $isAstNode0: 1,
  79550. get$span(receiver) {
  79551. return this.span;
  79552. }
  79553. };
  79554. A.ContentBlock0.prototype = {
  79555. accept$1$1(visitor) {
  79556. return visitor.visitContentBlock$1(this);
  79557. },
  79558. accept$1(visitor) {
  79559. return this.accept$1$1(visitor, type$.dynamic);
  79560. },
  79561. toString$0(_) {
  79562. var t2,
  79563. t1 = this.$arguments;
  79564. t1 = t1.$arguments.length === 0 && t1.restArgument == null ? "" : " using (" + t1.toString$0(0) + ")";
  79565. t2 = this.children;
  79566. return t1 + (" {" + (t2 && B.JSArray_methods).join$1(t2, " ") + "}");
  79567. }
  79568. };
  79569. A.ContentRule0.prototype = {
  79570. accept$1$1(visitor) {
  79571. return visitor.visitContentRule$1(this);
  79572. },
  79573. accept$1(visitor) {
  79574. return this.accept$1$1(visitor, type$.dynamic);
  79575. },
  79576. toString$0(_) {
  79577. var t1 = this.$arguments;
  79578. return t1.get$isEmpty(t1) ? "@content;" : "@content(" + t1.toString$0(0) + ");";
  79579. },
  79580. $isAstNode0: 1,
  79581. $isStatement0: 1,
  79582. get$span(receiver) {
  79583. return this.span;
  79584. }
  79585. };
  79586. A._disallowedFunctionNames_closure0.prototype = {
  79587. call$1($function) {
  79588. return $function.name;
  79589. },
  79590. $signature: 380
  79591. };
  79592. A.CssParser0.prototype = {
  79593. get$plainCss() {
  79594. return true;
  79595. },
  79596. silentComment$0() {
  79597. var t1 = this.scanner,
  79598. t2 = t1._string_scanner$_position;
  79599. this.super$Parser$silentComment0();
  79600. this.error$2(0, string$.Silent, t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  79601. },
  79602. atRule$2$root(child, root) {
  79603. var $name, urlStart, next, url, urlSpan, modifiers, t2, _this = this,
  79604. t1 = _this.scanner,
  79605. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  79606. t1.expectChar$1(64);
  79607. $name = _this.interpolatedIdentifier$0();
  79608. _this.whitespace$0();
  79609. switch ($name.get$asPlain()) {
  79610. case "at-root":
  79611. case "content":
  79612. case "debug":
  79613. case "each":
  79614. case "error":
  79615. case "extend":
  79616. case "for":
  79617. case "function":
  79618. case "if":
  79619. case "include":
  79620. case "mixin":
  79621. case "return":
  79622. case "warn":
  79623. case "while":
  79624. _this.almostAnyValue$0();
  79625. _this.error$2(0, "This at-rule isn't allowed in plain CSS.", t1.spanFrom$1(start));
  79626. break;
  79627. case "import":
  79628. urlStart = new A._SpanScannerState(t1, t1._string_scanner$_position);
  79629. next = t1.peekChar$0();
  79630. url = next === 117 || next === 85 ? _this.dynamicUrl$0() : new A.StringExpression0(_this.interpolatedString$0().asInterpolation$1$static(true), false);
  79631. urlSpan = t1.spanFrom$1(urlStart);
  79632. _this.whitespace$0();
  79633. modifiers = _this.tryImportModifiers$0();
  79634. _this.expectStatementSeparator$1("@import rule");
  79635. t2 = A._setArrayType([new A.StaticImport0(A.Interpolation$0(A._setArrayType([url], type$.JSArray_Object), urlSpan), modifiers, t1.spanFrom$1(urlStart))], type$.JSArray_Import_2);
  79636. t1 = t1.spanFrom$1(start);
  79637. return new A.ImportRule0(A.List_List$unmodifiable(t2, type$.Import_2), t1);
  79638. case "media":
  79639. return _this.mediaRule$1(start);
  79640. case "-moz-document":
  79641. return _this.mozDocumentRule$2(start, $name);
  79642. case "supports":
  79643. return _this.supportsRule$1(start);
  79644. default:
  79645. return _this.unknownAtRule$2(start, $name);
  79646. }
  79647. },
  79648. identifierLike$0() {
  79649. var t2, allowEmptySecondArg, $arguments, t3, t4, _this = this,
  79650. t1 = _this.scanner,
  79651. start = new A._SpanScannerState(t1, t1._string_scanner$_position),
  79652. identifier = _this.interpolatedIdentifier$0(),
  79653. plain = identifier.get$asPlain(),
  79654. lower = plain.toLowerCase(),
  79655. specialFunction = _this.trySpecialFunction$2(lower, start);
  79656. if (specialFunction != null)
  79657. return specialFunction;
  79658. t2 = t1._string_scanner$_position;
  79659. if (!t1.scanChar$1(40))
  79660. return new A.StringExpression0(identifier, false);
  79661. allowEmptySecondArg = lower === "var";
  79662. $arguments = A._setArrayType([], type$.JSArray_Expression_2);
  79663. if (!t1.scanChar$1(41)) {
  79664. do {
  79665. _this.whitespace$0();
  79666. if (allowEmptySecondArg && $arguments.length === 1 && t1.peekChar$0() === 41) {
  79667. t3 = A.FileLocation$_(t1._sourceFile, t1._string_scanner$_position);
  79668. t4 = t3.offset;
  79669. t4 = A._FileSpan$(t3.file, t4, t4);
  79670. $arguments.push(new A.StringExpression0(A.Interpolation$0(A._setArrayType([""], type$.JSArray_Object), t4), false));
  79671. break;
  79672. }
  79673. $arguments.push(_this.expressionUntilComma$1$singleEquals(true));
  79674. _this.whitespace$0();
  79675. } while (t1.scanChar$1(44));
  79676. t1.expectChar$1(41);
  79677. }
  79678. if ($.$get$_disallowedFunctionNames0().contains$1(0, plain))
  79679. _this.error$2(0, string$.This_f, t1.spanFrom$1(start));
  79680. t3 = A.Interpolation$0(A._setArrayType([new A.StringExpression0(identifier, false)], type$.JSArray_Object), identifier.span);
  79681. t2 = t1.spanFrom$1(new A._SpanScannerState(t1, t2));
  79682. t4 = type$.Expression_2;
  79683. return new A.InterpolatedFunctionExpression0(t3, new A.ArgumentInvocation0(A.List_List$unmodifiable($arguments, t4), A.ConstantMap_ConstantMap$from(B.Map_empty9, type$.String, t4), null, null, t2), t1.spanFrom$1(start));
  79684. },
  79685. namespacedExpression$2(namespace, start) {
  79686. var expression = this.super$StylesheetParser$namespacedExpression0(namespace, start);
  79687. this.error$2(0, string$.Modulen, expression.get$span(expression));
  79688. }
  79689. };
  79690. A.DebugRule0.prototype = {
  79691. accept$1$1(visitor) {
  79692. return visitor.visitDebugRule$1(this);
  79693. },
  79694. accept$1(visitor) {
  79695. return this.accept$1$1(visitor, type$.dynamic);
  79696. },
  79697. toString$0(_) {
  79698. return "@debug " + this.expression.toString$0(0) + ";";
  79699. },
  79700. $isAstNode0: 1,
  79701. $isStatement0: 1,
  79702. get$span(receiver) {
  79703. return this.span;
  79704. }
  79705. };
  79706. A.ModifiableCssDeclaration0.prototype = {
  79707. accept$1$1(visitor) {
  79708. return visitor.visitCssDeclaration$1(this);
  79709. },
  79710. accept$1(visitor) {
  79711. return this.accept$1$1(visitor, type$.dynamic);
  79712. },
  79713. toString$0(_) {
  79714. return this.name.toString$0(0) + ": " + this.value.toString$0(0) + ";";
  79715. },
  79716. get$span(receiver) {
  79717. return this.span;
  79718. }
  79719. };
  79720. A.Declaration0.prototype = {
  79721. accept$1$1(visitor) {
  79722. return visitor.visitDeclaration$1(this);
  79723. },
  79724. accept$1(visitor) {
  79725. return this.accept$1$1(visitor, type$.dynamic);
  79726. },
  79727. toString$0(_) {
  79728. var t3, children,
  79729. buffer = new A.StringBuffer(""),
  79730. t1 = this.name,
  79731. t2 = "" + t1.toString$0(0);
  79732. buffer._contents = t2;
  79733. t2 = buffer._contents = t2 + A.Primitives_stringFromCharCode(58);
  79734. t3 = this.value;
  79735. if (t3 != null) {
  79736. t1 = !B.JSString_methods.startsWith$1(t1.get$initialPlain(), "--") ? buffer._contents = t2 + A.Primitives_stringFromCharCode(32) : t2;
  79737. buffer._contents = t1 + t3.toString$0(0);
  79738. }
  79739. children = this.children;
  79740. return children == null ? buffer.toString$0(0) + ";" : buffer.toString$0(0) + " {" + B.JSArray_methods.join$1(children, " ") + "}";
  79741. },
  79742. get$span(receiver) {
  79743. return this.span;
  79744. }
  79745. };
  79746. A.SupportsDeclaration0.prototype = {
  79747. get$isCustomProperty() {
  79748. var $name = this.name;
  79749. return $name instanceof A.StringExpression0 && !$name.hasQuotes && B.JSString_methods.startsWith$1($name.text.get$initialPlain(), "--");
  79750. },
  79751. toString$0(_) {
  79752. return "(" + this.name.toString$0(0) + ": " + this.value.toString$0(0) + ")";
  79753. },
  79754. $isAstNode0: 1,
  79755. get$span(receiver) {
  79756. return this.span;
  79757. }
  79758. };
  79759. A.DynamicImport0.prototype = {
  79760. toString$0(_) {
  79761. return A.StringExpression_quoteText0(this.urlString);
  79762. },
  79763. $isImport0: 1,
  79764. $isAstNode0: 1,
  79765. get$span(receiver) {
  79766. return this.span;
  79767. }
  79768. };
  79769. A.EachRule0.prototype = {
  79770. accept$1$1(visitor) {
  79771. return visitor.visitEachRule$1(this);
  79772. },
  79773. accept$1(visitor) {
  79774. return this.accept$1$1(visitor, type$.dynamic);
  79775. },
  79776. toString$0(_) {
  79777. var t1 = this.variables,
  79778. t2 = this.children;
  79779. return "@each " + new A.MappedListIterable(t1, new A.EachRule_toString_closure0(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$1(0, ", ") + " in " + this.list.toString$0(0) + " {" + (t2 && B.JSArray_methods).join$1(t2, " ") + "}";
  79780. },
  79781. get$span(receiver) {
  79782. return this.span;
  79783. }
  79784. };
  79785. A.EachRule_toString_closure0.prototype = {
  79786. call$1(variable) {
  79787. return "$" + variable;
  79788. },
  79789. $signature: 5
  79790. };
  79791. A.EmptyExtensionStore0.prototype = {
  79792. get$isEmpty(_) {
  79793. return true;
  79794. },
  79795. get$simpleSelectors() {
  79796. return B.C_EmptyUnmodifiableSet0;
  79797. },
  79798. extensionsWhereTarget$1(callback) {
  79799. return B.List_empty17;
  79800. },
  79801. addSelector$3(selector, span, mediaContext) {
  79802. throw A.wrapException(A.UnsupportedError$(string$.addSel));
  79803. },
  79804. addExtension$4(extender, target, extend, mediaContext) {
  79805. throw A.wrapException(A.UnsupportedError$(string$.addExt_));
  79806. },
  79807. addExtensions$1(extenders) {
  79808. throw A.wrapException(A.UnsupportedError$(string$.addExts));
  79809. },
  79810. clone$0() {
  79811. return B.Tuple2_EmptyExtensionStore_Map_empty0;
  79812. },
  79813. $isExtensionStore0: 1
  79814. };
  79815. A.Environment0.prototype = {
  79816. closure$0() {
  79817. var t4, t5, t6, _this = this,
  79818. t1 = _this._environment0$_forwardedModules,
  79819. t2 = _this._environment0$_nestedForwardedModules,
  79820. t3 = _this._environment0$_variables;
  79821. t3 = A._setArrayType(t3.slice(0), A._arrayInstanceType(t3));
  79822. t4 = _this._environment0$_variableNodes;
  79823. t4 = A._setArrayType(t4.slice(0), A._arrayInstanceType(t4));
  79824. t5 = _this._environment0$_functions;
  79825. t5 = A._setArrayType(t5.slice(0), A._arrayInstanceType(t5));
  79826. t6 = _this._environment0$_mixins;
  79827. t6 = A._setArrayType(t6.slice(0), A._arrayInstanceType(t6));
  79828. return A.Environment$_0(_this._environment0$_modules, _this._environment0$_namespaceNodes, _this._environment0$_globalModules, _this._environment0$_importedModules, t1, t2, _this._environment0$_allModules, t3, t4, t5, t6, _this._environment0$_content);
  79829. },
  79830. addModule$3$namespace(module, nodeWithSpan, namespace) {
  79831. var t1, t2, span, _this = this;
  79832. if (namespace == null) {
  79833. _this._environment0$_globalModules.$indexSet(0, module, nodeWithSpan);
  79834. _this._environment0$_allModules.push(module);
  79835. for (t1 = J.get$iterator$ax(J.get$keys$z(B.JSArray_methods.get$first(_this._environment0$_variables))); t1.moveNext$0();) {
  79836. t2 = t1.get$current(t1);
  79837. if (module.get$variables().containsKey$1(t2))
  79838. throw A.wrapException(A.SassScriptException$0(string$.This_ma + t2 + '".', null));
  79839. }
  79840. } else {
  79841. t1 = _this._environment0$_modules;
  79842. if (t1.containsKey$1(namespace)) {
  79843. t1 = _this._environment0$_namespaceNodes.$index(0, namespace);
  79844. span = t1 == null ? null : t1.span;
  79845. t1 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
  79846. if (span != null)
  79847. t1.$indexSet(0, span, "original @use");
  79848. throw A.wrapException(A.MultiSpanSassScriptException$0(string$.There_ + namespace + '".', "new @use", t1));
  79849. }
  79850. t1.$indexSet(0, namespace, module);
  79851. _this._environment0$_namespaceNodes.$indexSet(0, namespace, nodeWithSpan);
  79852. _this._environment0$_allModules.push(module);
  79853. }
  79854. },
  79855. forwardModule$2(module, rule) {
  79856. var view, t1, t2, _this = this,
  79857. forwardedModules = _this._environment0$_forwardedModules;
  79858. if (forwardedModules == null)
  79859. forwardedModules = _this._environment0$_forwardedModules = A.LinkedHashMap_LinkedHashMap$_empty(type$.Module_Callable_2, type$.AstNode_2);
  79860. view = A.ForwardedModuleView_ifNecessary0(module, rule, type$.Callable_2);
  79861. for (t1 = A.LinkedHashMapKeyIterator$(forwardedModules, forwardedModules._modifications); t1.moveNext$0();) {
  79862. t2 = t1.__js_helper$_current;
  79863. _this._environment0$_assertNoConflicts$5(view.get$variables(), t2.get$variables(), view, t2, "variable");
  79864. _this._environment0$_assertNoConflicts$5(view.get$functions(view), t2.get$functions(t2), view, t2, "function");
  79865. _this._environment0$_assertNoConflicts$5(view.get$mixins(), t2.get$mixins(), view, t2, "mixin");
  79866. }
  79867. _this._environment0$_allModules.push(module);
  79868. forwardedModules.$indexSet(0, view, rule);
  79869. },
  79870. _environment0$_assertNoConflicts$5(newMembers, oldMembers, newModule, oldModule, type) {
  79871. var larger, smaller, t1, t2, $name, span;
  79872. if (newMembers.get$length(newMembers) < oldMembers.get$length(oldMembers)) {
  79873. larger = oldMembers;
  79874. smaller = newMembers;
  79875. } else {
  79876. larger = newMembers;
  79877. smaller = oldMembers;
  79878. }
  79879. for (t1 = J.get$iterator$ax(smaller.get$keys(smaller)), t2 = type === "variable"; t1.moveNext$0();) {
  79880. $name = t1.get$current(t1);
  79881. if (!larger.containsKey$1($name))
  79882. continue;
  79883. if (t2 ? newModule.variableIdentity$1($name) === oldModule.variableIdentity$1($name) : J.$eq$(larger.$index(0, $name), smaller.$index(0, $name)))
  79884. continue;
  79885. if (t2)
  79886. $name = "$" + $name;
  79887. t1 = this._environment0$_forwardedModules;
  79888. if (t1 == null)
  79889. span = null;
  79890. else {
  79891. t1 = t1.$index(0, oldModule);
  79892. span = t1 == null ? null : J.get$span$z(t1);
  79893. }
  79894. t1 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
  79895. if (span != null)
  79896. t1.$indexSet(0, span, "original @forward");
  79897. throw A.wrapException(A.MultiSpanSassScriptException$0("Two forwarded modules both define a " + type + " named " + $name + ".", "new @forward", t1));
  79898. }
  79899. },
  79900. importForwards$1(module) {
  79901. var forwardedModules, t1, t2, t3, t4, t5, forwardedVariableNames, forwardedFunctionNames, forwardedMixinNames, _i, entry, shadowed, t6, _length, _list, _this = this,
  79902. forwarded = module._environment0$_environment._environment0$_forwardedModules;
  79903. if (forwarded == null)
  79904. return;
  79905. forwardedModules = _this._environment0$_forwardedModules;
  79906. if (forwardedModules != null) {
  79907. t1 = A.LinkedHashMap_LinkedHashMap$_empty(type$.Module_Callable_2, type$.AstNode_2);
  79908. for (t2 = forwarded.get$entries(forwarded), t2 = t2.get$iterator(t2), t3 = _this._environment0$_globalModules; t2.moveNext$0();) {
  79909. t4 = t2.get$current(t2);
  79910. t5 = t4.key;
  79911. if (!forwardedModules.containsKey$1(t5) || !t3.containsKey$1(t5))
  79912. t1.$indexSet(0, t5, t4.value);
  79913. }
  79914. forwarded = t1;
  79915. } else
  79916. forwardedModules = _this._environment0$_forwardedModules = A.LinkedHashMap_LinkedHashMap$_empty(type$.Module_Callable_2, type$.AstNode_2);
  79917. t1 = A._instanceType(forwarded)._eval$1("LinkedHashMapKeyIterable<1>");
  79918. t2 = t1._eval$1("ExpandIterable<Iterable.E,String>");
  79919. t3 = t2._eval$1("Iterable.E");
  79920. forwardedVariableNames = A.LinkedHashSet_LinkedHashSet$of(new A.ExpandIterable(new A.LinkedHashMapKeyIterable(forwarded, t1), new A.Environment_importForwards_closure2(), t2), t3);
  79921. forwardedFunctionNames = A.LinkedHashSet_LinkedHashSet$of(new A.ExpandIterable(new A.LinkedHashMapKeyIterable(forwarded, t1), new A.Environment_importForwards_closure3(), t2), t3);
  79922. forwardedMixinNames = A.LinkedHashSet_LinkedHashSet$of(new A.ExpandIterable(new A.LinkedHashMapKeyIterable(forwarded, t1), new A.Environment_importForwards_closure4(), t2), t3);
  79923. t2 = _this._environment0$_variables;
  79924. t3 = t2.length;
  79925. if (t3 === 1) {
  79926. for (t1 = _this._environment0$_importedModules, t3 = t1.get$entries(t1).toList$0(0), t4 = t3.length, t5 = type$.Callable_2, _i = 0; _i < t3.length; t3.length === t4 || (0, A.throwConcurrentModificationError)(t3), ++_i) {
  79927. entry = t3[_i];
  79928. module = entry.key;
  79929. shadowed = A.ShadowedModuleView_ifNecessary0(module, forwardedFunctionNames, forwardedMixinNames, forwardedVariableNames, t5);
  79930. if (shadowed != null) {
  79931. t1.remove$1(0, module);
  79932. t6 = shadowed.variables;
  79933. if (t6.get$isEmpty(t6)) {
  79934. t6 = shadowed.functions;
  79935. if (t6.get$isEmpty(t6)) {
  79936. t6 = shadowed.mixins;
  79937. if (t6.get$isEmpty(t6)) {
  79938. t6 = shadowed._shadowed_view0$_inner;
  79939. t6 = t6.get$css(t6);
  79940. t6 = J.get$isEmpty$asx(t6.get$children(t6));
  79941. } else
  79942. t6 = false;
  79943. } else
  79944. t6 = false;
  79945. } else
  79946. t6 = false;
  79947. if (!t6)
  79948. t1.$indexSet(0, shadowed, entry.value);
  79949. }
  79950. }
  79951. for (t3 = forwardedModules.get$entries(forwardedModules).toList$0(0), t4 = t3.length, _i = 0; _i < t3.length; t3.length === t4 || (0, A.throwConcurrentModificationError)(t3), ++_i) {
  79952. entry = t3[_i];
  79953. module = entry.key;
  79954. shadowed = A.ShadowedModuleView_ifNecessary0(module, forwardedFunctionNames, forwardedMixinNames, forwardedVariableNames, t5);
  79955. if (shadowed != null) {
  79956. forwardedModules.remove$1(0, module);
  79957. t6 = shadowed.variables;
  79958. if (t6.get$isEmpty(t6)) {
  79959. t6 = shadowed.functions;
  79960. if (t6.get$isEmpty(t6)) {
  79961. t6 = shadowed.mixins;
  79962. if (t6.get$isEmpty(t6)) {
  79963. t6 = shadowed._shadowed_view0$_inner;
  79964. t6 = t6.get$css(t6);
  79965. t6 = J.get$isEmpty$asx(t6.get$children(t6));
  79966. } else
  79967. t6 = false;
  79968. } else
  79969. t6 = false;
  79970. } else
  79971. t6 = false;
  79972. if (!t6)
  79973. forwardedModules.$indexSet(0, shadowed, entry.value);
  79974. }
  79975. }
  79976. t1.addAll$1(0, forwarded);
  79977. forwardedModules.addAll$1(0, forwarded);
  79978. } else {
  79979. t4 = _this._environment0$_nestedForwardedModules;
  79980. if (t4 == null) {
  79981. _length = t3 - 1;
  79982. _list = J.JSArray_JSArray$allocateGrowable(_length, type$.List_Module_Callable_2);
  79983. for (t3 = type$.JSArray_Module_Callable_2, _i = 0; _i < _length; ++_i)
  79984. _list[_i] = A._setArrayType([], t3);
  79985. _this._environment0$_nestedForwardedModules = _list;
  79986. t3 = _list;
  79987. } else
  79988. t3 = t4;
  79989. B.JSArray_methods.addAll$1(B.JSArray_methods.get$last(t3), new A.LinkedHashMapKeyIterable(forwarded, t1));
  79990. }
  79991. for (t1 = A._LinkedHashSetIterator$(forwardedVariableNames, forwardedVariableNames._collection$_modifications), t3 = _this._environment0$_variableIndices, t4 = _this._environment0$_variableNodes, t5 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) {
  79992. t6 = t1._collection$_current;
  79993. if (t6 == null)
  79994. t6 = t5._as(t6);
  79995. t3.remove$1(0, t6);
  79996. J.remove$1$z(B.JSArray_methods.get$last(t2), t6);
  79997. J.remove$1$z(B.JSArray_methods.get$last(t4), t6);
  79998. }
  79999. for (t1 = A._LinkedHashSetIterator$(forwardedFunctionNames, forwardedFunctionNames._collection$_modifications), t2 = _this._environment0$_functionIndices, t3 = _this._environment0$_functions, t4 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) {
  80000. t5 = t1._collection$_current;
  80001. if (t5 == null)
  80002. t5 = t4._as(t5);
  80003. t2.remove$1(0, t5);
  80004. J.remove$1$z(B.JSArray_methods.get$last(t3), t5);
  80005. }
  80006. for (t1 = A._LinkedHashSetIterator$(forwardedMixinNames, forwardedMixinNames._collection$_modifications), t2 = _this._environment0$_mixinIndices, t3 = _this._environment0$_mixins, t4 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) {
  80007. t5 = t1._collection$_current;
  80008. if (t5 == null)
  80009. t5 = t4._as(t5);
  80010. t2.remove$1(0, t5);
  80011. J.remove$1$z(B.JSArray_methods.get$last(t3), t5);
  80012. }
  80013. },
  80014. getVariable$2$namespace($name, namespace) {
  80015. var t1, index, _this = this;
  80016. if (namespace != null)
  80017. return _this._environment0$_getModule$1(namespace).get$variables().$index(0, $name);
  80018. if (_this._environment0$_lastVariableName === $name) {
  80019. t1 = _this._environment0$_lastVariableIndex;
  80020. t1.toString;
  80021. t1 = J.$index$asx(_this._environment0$_variables[t1], $name);
  80022. return t1 == null ? _this._environment0$_getVariableFromGlobalModule$1($name) : t1;
  80023. }
  80024. t1 = _this._environment0$_variableIndices;
  80025. index = t1.$index(0, $name);
  80026. if (index != null) {
  80027. _this._environment0$_lastVariableName = $name;
  80028. _this._environment0$_lastVariableIndex = index;
  80029. t1 = J.$index$asx(_this._environment0$_variables[index], $name);
  80030. return t1 == null ? _this._environment0$_getVariableFromGlobalModule$1($name) : t1;
  80031. }
  80032. index = _this._environment0$_variableIndex$1($name);
  80033. if (index == null)
  80034. return _this._environment0$_getVariableFromGlobalModule$1($name);
  80035. _this._environment0$_lastVariableName = $name;
  80036. _this._environment0$_lastVariableIndex = index;
  80037. t1.$indexSet(0, $name, index);
  80038. t1 = J.$index$asx(_this._environment0$_variables[index], $name);
  80039. return t1 == null ? _this._environment0$_getVariableFromGlobalModule$1($name) : t1;
  80040. },
  80041. getVariable$1($name) {
  80042. return this.getVariable$2$namespace($name, null);
  80043. },
  80044. _environment0$_getVariableFromGlobalModule$1($name) {
  80045. return this._environment0$_fromOneModule$1$3($name, "variable", new A.Environment__getVariableFromGlobalModule_closure0($name), type$.Value_2);
  80046. },
  80047. getVariableNode$2$namespace($name, namespace) {
  80048. var t1, index, _this = this;
  80049. if (namespace != null)
  80050. return _this._environment0$_getModule$1(namespace).get$variableNodes().$index(0, $name);
  80051. if (_this._environment0$_lastVariableName === $name) {
  80052. t1 = _this._environment0$_lastVariableIndex;
  80053. t1.toString;
  80054. t1 = J.$index$asx(_this._environment0$_variableNodes[t1], $name);
  80055. return t1 == null ? _this._environment0$_getVariableNodeFromGlobalModule$1($name) : t1;
  80056. }
  80057. t1 = _this._environment0$_variableIndices;
  80058. index = t1.$index(0, $name);
  80059. if (index != null) {
  80060. _this._environment0$_lastVariableName = $name;
  80061. _this._environment0$_lastVariableIndex = index;
  80062. t1 = J.$index$asx(_this._environment0$_variableNodes[index], $name);
  80063. return t1 == null ? _this._environment0$_getVariableNodeFromGlobalModule$1($name) : t1;
  80064. }
  80065. index = _this._environment0$_variableIndex$1($name);
  80066. if (index == null)
  80067. return _this._environment0$_getVariableNodeFromGlobalModule$1($name);
  80068. _this._environment0$_lastVariableName = $name;
  80069. _this._environment0$_lastVariableIndex = index;
  80070. t1.$indexSet(0, $name, index);
  80071. t1 = J.$index$asx(_this._environment0$_variableNodes[index], $name);
  80072. return t1 == null ? _this._environment0$_getVariableNodeFromGlobalModule$1($name) : t1;
  80073. },
  80074. _environment0$_getVariableNodeFromGlobalModule$1($name) {
  80075. var t1, t2, value;
  80076. for (t1 = this._environment0$_importedModules, t2 = this._environment0$_globalModules, t2 = new A.LinkedHashMapKeyIterable(t1, A._instanceType(t1)._eval$1("LinkedHashMapKeyIterable<1>")).followedBy$1(0, new A.LinkedHashMapKeyIterable(t2, A._instanceType(t2)._eval$1("LinkedHashMapKeyIterable<1>"))), t2 = new A.FollowedByIterator(J.get$iterator$ax(t2.__internal$_first), t2._second); t2.moveNext$0();) {
  80077. t1 = t2._currentIterator;
  80078. value = t1.get$current(t1).get$variableNodes().$index(0, $name);
  80079. if (value != null)
  80080. return value;
  80081. }
  80082. return null;
  80083. },
  80084. globalVariableExists$2$namespace($name, namespace) {
  80085. if (namespace != null)
  80086. return this._environment0$_getModule$1(namespace).get$variables().containsKey$1($name);
  80087. if (B.JSArray_methods.get$first(this._environment0$_variables).containsKey$1($name))
  80088. return true;
  80089. return this._environment0$_getVariableFromGlobalModule$1($name) != null;
  80090. },
  80091. globalVariableExists$1($name) {
  80092. return this.globalVariableExists$2$namespace($name, null);
  80093. },
  80094. _environment0$_variableIndex$1($name) {
  80095. var t1, i;
  80096. for (t1 = this._environment0$_variables, i = t1.length - 1; i >= 0; --i)
  80097. if (t1[i].containsKey$1($name))
  80098. return i;
  80099. return null;
  80100. },
  80101. setVariable$5$global$namespace($name, value, nodeWithSpan, global, namespace) {
  80102. var t1, moduleWithName, nestedForwardedModules, t2, t3, t4, t5, index, _this = this;
  80103. if (namespace != null) {
  80104. _this._environment0$_getModule$1(namespace).setVariable$3($name, value, nodeWithSpan);
  80105. return;
  80106. }
  80107. if (global || _this._environment0$_variables.length === 1) {
  80108. _this._environment0$_variableIndices.putIfAbsent$2($name, new A.Environment_setVariable_closure2(_this, $name));
  80109. t1 = _this._environment0$_variables;
  80110. if (!B.JSArray_methods.get$first(t1).containsKey$1($name)) {
  80111. moduleWithName = _this._environment0$_fromOneModule$1$3($name, "variable", new A.Environment_setVariable_closure3($name), type$.Module_Callable_2);
  80112. if (moduleWithName != null) {
  80113. moduleWithName.setVariable$3($name, value, nodeWithSpan);
  80114. return;
  80115. }
  80116. }
  80117. J.$indexSet$ax(B.JSArray_methods.get$first(t1), $name, value);
  80118. J.$indexSet$ax(B.JSArray_methods.get$first(_this._environment0$_variableNodes), $name, nodeWithSpan);
  80119. return;
  80120. }
  80121. nestedForwardedModules = _this._environment0$_nestedForwardedModules;
  80122. if (nestedForwardedModules != null && !_this._environment0$_variableIndices.containsKey$1($name) && _this._environment0$_variableIndex$1($name) == null)
  80123. for (t1 = new A.ReversedListIterable(nestedForwardedModules, A.instanceType(nestedForwardedModules)._eval$1("ReversedListIterable<1>")), t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) {
  80124. t3 = t1.__internal$_current;
  80125. for (t3 = J.get$reversed$ax(t3 == null ? t2._as(t3) : t3), t3 = new A.ListIterator(t3, t3.get$length(t3)), t4 = A._instanceType(t3)._precomputed1; t3.moveNext$0();) {
  80126. t5 = t3.__internal$_current;
  80127. if (t5 == null)
  80128. t5 = t4._as(t5);
  80129. if (t5.get$variables().containsKey$1($name)) {
  80130. t5.setVariable$3($name, value, nodeWithSpan);
  80131. return;
  80132. }
  80133. }
  80134. }
  80135. if (_this._environment0$_lastVariableName === $name) {
  80136. t1 = _this._environment0$_lastVariableIndex;
  80137. t1.toString;
  80138. index = t1;
  80139. } else
  80140. index = _this._environment0$_variableIndices.putIfAbsent$2($name, new A.Environment_setVariable_closure4(_this, $name));
  80141. if (!_this._environment0$_inSemiGlobalScope && index === 0) {
  80142. index = _this._environment0$_variables.length - 1;
  80143. _this._environment0$_variableIndices.$indexSet(0, $name, index);
  80144. }
  80145. _this._environment0$_lastVariableName = $name;
  80146. _this._environment0$_lastVariableIndex = index;
  80147. J.$indexSet$ax(_this._environment0$_variables[index], $name, value);
  80148. J.$indexSet$ax(_this._environment0$_variableNodes[index], $name, nodeWithSpan);
  80149. },
  80150. setVariable$4$global($name, value, nodeWithSpan, global) {
  80151. return this.setVariable$5$global$namespace($name, value, nodeWithSpan, global, null);
  80152. },
  80153. setLocalVariable$3($name, value, nodeWithSpan) {
  80154. var index, _this = this,
  80155. t1 = _this._environment0$_variables,
  80156. t2 = t1.length;
  80157. _this._environment0$_lastVariableName = $name;
  80158. index = _this._environment0$_lastVariableIndex = t2 - 1;
  80159. _this._environment0$_variableIndices.$indexSet(0, $name, index);
  80160. J.$indexSet$ax(t1[index], $name, value);
  80161. J.$indexSet$ax(_this._environment0$_variableNodes[index], $name, nodeWithSpan);
  80162. },
  80163. getFunction$2$namespace($name, namespace) {
  80164. var t1, index, _this = this;
  80165. if (namespace != null) {
  80166. t1 = _this._environment0$_getModule$1(namespace);
  80167. return t1.get$functions(t1).$index(0, $name);
  80168. }
  80169. t1 = _this._environment0$_functionIndices;
  80170. index = t1.$index(0, $name);
  80171. if (index != null) {
  80172. t1 = J.$index$asx(_this._environment0$_functions[index], $name);
  80173. return t1 == null ? _this._environment0$_getFunctionFromGlobalModule$1($name) : t1;
  80174. }
  80175. index = _this._environment0$_functionIndex$1($name);
  80176. if (index == null)
  80177. return _this._environment0$_getFunctionFromGlobalModule$1($name);
  80178. t1.$indexSet(0, $name, index);
  80179. t1 = J.$index$asx(_this._environment0$_functions[index], $name);
  80180. return t1 == null ? _this._environment0$_getFunctionFromGlobalModule$1($name) : t1;
  80181. },
  80182. _environment0$_getFunctionFromGlobalModule$1($name) {
  80183. return this._environment0$_fromOneModule$1$3($name, "function", new A.Environment__getFunctionFromGlobalModule_closure0($name), type$.Callable_2);
  80184. },
  80185. _environment0$_functionIndex$1($name) {
  80186. var t1, i;
  80187. for (t1 = this._environment0$_functions, i = t1.length - 1; i >= 0; --i)
  80188. if (t1[i].containsKey$1($name))
  80189. return i;
  80190. return null;
  80191. },
  80192. getMixin$2$namespace($name, namespace) {
  80193. var t1, index, _this = this;
  80194. if (namespace != null)
  80195. return _this._environment0$_getModule$1(namespace).get$mixins().$index(0, $name);
  80196. t1 = _this._environment0$_mixinIndices;
  80197. index = t1.$index(0, $name);
  80198. if (index != null) {
  80199. t1 = J.$index$asx(_this._environment0$_mixins[index], $name);
  80200. return t1 == null ? _this._environment0$_getMixinFromGlobalModule$1($name) : t1;
  80201. }
  80202. index = _this._environment0$_mixinIndex$1($name);
  80203. if (index == null)
  80204. return _this._environment0$_getMixinFromGlobalModule$1($name);
  80205. t1.$indexSet(0, $name, index);
  80206. t1 = J.$index$asx(_this._environment0$_mixins[index], $name);
  80207. return t1 == null ? _this._environment0$_getMixinFromGlobalModule$1($name) : t1;
  80208. },
  80209. _environment0$_getMixinFromGlobalModule$1($name) {
  80210. return this._environment0$_fromOneModule$1$3($name, "mixin", new A.Environment__getMixinFromGlobalModule_closure0($name), type$.Callable_2);
  80211. },
  80212. _environment0$_mixinIndex$1($name) {
  80213. var t1, i;
  80214. for (t1 = this._environment0$_mixins, i = t1.length - 1; i >= 0; --i)
  80215. if (t1[i].containsKey$1($name))
  80216. return i;
  80217. return null;
  80218. },
  80219. scope$1$3$semiGlobal$when(callback, semiGlobal, when) {
  80220. var wasInSemiGlobalScope, $name, name0, name1, t1, t2, t3, t4, t5, t6, _this = this;
  80221. semiGlobal = semiGlobal && _this._environment0$_inSemiGlobalScope;
  80222. wasInSemiGlobalScope = _this._environment0$_inSemiGlobalScope;
  80223. _this._environment0$_inSemiGlobalScope = semiGlobal;
  80224. if (!when)
  80225. try {
  80226. t1 = callback.call$0();
  80227. return t1;
  80228. } finally {
  80229. _this._environment0$_inSemiGlobalScope = wasInSemiGlobalScope;
  80230. }
  80231. t1 = _this._environment0$_variables;
  80232. t2 = type$.String;
  80233. B.JSArray_methods.add$1(t1, A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.Value_2));
  80234. t3 = _this._environment0$_variableNodes;
  80235. B.JSArray_methods.add$1(t3, A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.AstNode_2));
  80236. t4 = _this._environment0$_functions;
  80237. t5 = type$.Callable_2;
  80238. B.JSArray_methods.add$1(t4, A.LinkedHashMap_LinkedHashMap$_empty(t2, t5));
  80239. t6 = _this._environment0$_mixins;
  80240. B.JSArray_methods.add$1(t6, A.LinkedHashMap_LinkedHashMap$_empty(t2, t5));
  80241. t5 = _this._environment0$_nestedForwardedModules;
  80242. if (t5 != null)
  80243. t5.push(A._setArrayType([], type$.JSArray_Module_Callable_2));
  80244. try {
  80245. t2 = callback.call$0();
  80246. return t2;
  80247. } finally {
  80248. _this._environment0$_inSemiGlobalScope = wasInSemiGlobalScope;
  80249. _this._environment0$_lastVariableIndex = _this._environment0$_lastVariableName = null;
  80250. for (t1 = J.get$iterator$ax(J.get$keys$z(B.JSArray_methods.removeLast$0(t1))), t2 = _this._environment0$_variableIndices; t1.moveNext$0();) {
  80251. $name = t1.get$current(t1);
  80252. t2.remove$1(0, $name);
  80253. }
  80254. B.JSArray_methods.removeLast$0(t3);
  80255. for (t1 = J.get$iterator$ax(J.get$keys$z(B.JSArray_methods.removeLast$0(t4))), t2 = _this._environment0$_functionIndices; t1.moveNext$0();) {
  80256. name0 = t1.get$current(t1);
  80257. t2.remove$1(0, name0);
  80258. }
  80259. for (t1 = J.get$iterator$ax(J.get$keys$z(B.JSArray_methods.removeLast$0(t6))), t2 = _this._environment0$_mixinIndices; t1.moveNext$0();) {
  80260. name1 = t1.get$current(t1);
  80261. t2.remove$1(0, name1);
  80262. }
  80263. t1 = _this._environment0$_nestedForwardedModules;
  80264. if (t1 != null)
  80265. t1.pop();
  80266. }
  80267. },
  80268. scope$1$1(callback, $T) {
  80269. return this.scope$1$3$semiGlobal$when(callback, false, true, $T);
  80270. },
  80271. scope$1$2$when(callback, when, $T) {
  80272. return this.scope$1$3$semiGlobal$when(callback, false, when, $T);
  80273. },
  80274. scope$1$2$semiGlobal(callback, semiGlobal, $T) {
  80275. return this.scope$1$3$semiGlobal$when(callback, semiGlobal, true, $T);
  80276. },
  80277. toImplicitConfiguration$0() {
  80278. var t1, t2, i, values, nodes, t3, t4, t5, t6,
  80279. configuration = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.ConfiguredValue_2);
  80280. for (t1 = this._environment0$_variables, t2 = this._environment0$_variableNodes, i = 0; i < t1.length; ++i) {
  80281. values = t1[i];
  80282. nodes = t2[i];
  80283. for (t3 = values.get$entries(values), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  80284. t4 = t3.get$current(t3);
  80285. t5 = t4.key;
  80286. t4 = t4.value;
  80287. t6 = nodes.$index(0, t5);
  80288. t6.toString;
  80289. configuration.$indexSet(0, t5, new A.ConfiguredValue0(t4, null, t6));
  80290. }
  80291. }
  80292. return new A.Configuration0(configuration, null);
  80293. },
  80294. toModule$2(css, extensionStore) {
  80295. return A._EnvironmentModule__EnvironmentModule1(this, css, extensionStore, A.NullableExtension_andThen0(this._environment0$_forwardedModules, new A.Environment_toModule_closure0()));
  80296. },
  80297. toDummyModule$0() {
  80298. return A._EnvironmentModule__EnvironmentModule1(this, new A.CssStylesheet0(new A.UnmodifiableListView(B.List_empty16, type$.UnmodifiableListView_CssNode_2), A.SourceFile$decoded(B.List_empty4, "<dummy module>").span$1(0, 0)), B.C_EmptyExtensionStore0, A.NullableExtension_andThen0(this._environment0$_forwardedModules, new A.Environment_toDummyModule_closure0()));
  80299. },
  80300. _environment0$_getModule$1(namespace) {
  80301. var module = this._environment0$_modules.$index(0, namespace);
  80302. if (module != null)
  80303. return module;
  80304. throw A.wrapException(A.SassScriptException$0('There is no module with the namespace "' + namespace + '".', null));
  80305. },
  80306. _environment0$_fromOneModule$1$3($name, type, callback, $T) {
  80307. var t1, t2, t3, t4, t5, value, identity, valueInModule, identityFromModule, spans,
  80308. nestedForwardedModules = this._environment0$_nestedForwardedModules;
  80309. if (nestedForwardedModules != null)
  80310. for (t1 = new A.ReversedListIterable(nestedForwardedModules, A._arrayInstanceType(nestedForwardedModules)._eval$1("ReversedListIterable<1>")), t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) {
  80311. t3 = t1.__internal$_current;
  80312. for (t3 = J.get$reversed$ax(t3 == null ? t2._as(t3) : t3), t3 = new A.ListIterator(t3, t3.get$length(t3)), t4 = A._instanceType(t3)._precomputed1; t3.moveNext$0();) {
  80313. t5 = t3.__internal$_current;
  80314. value = callback.call$1(t5 == null ? t4._as(t5) : t5);
  80315. if (value != null)
  80316. return value;
  80317. }
  80318. }
  80319. for (t1 = this._environment0$_importedModules, t1 = A.LinkedHashMapKeyIterator$(t1, t1._modifications); t1.moveNext$0();) {
  80320. value = callback.call$1(t1.__js_helper$_current);
  80321. if (value != null)
  80322. return value;
  80323. }
  80324. for (t1 = this._environment0$_globalModules, t2 = A.LinkedHashMapKeyIterator$(t1, t1._modifications), t3 = type$.Callable_2, value = null, identity = null; t2.moveNext$0();) {
  80325. t4 = t2.__js_helper$_current;
  80326. valueInModule = callback.call$1(t4);
  80327. if (valueInModule == null)
  80328. continue;
  80329. identityFromModule = t3._is(valueInModule) ? valueInModule : t4.variableIdentity$1($name);
  80330. if (identityFromModule.$eq(0, identity))
  80331. continue;
  80332. if (value != null) {
  80333. spans = t1.get$entries(t1).map$1$1(0, new A.Environment__fromOneModule_closure0(callback, $T), type$.nullable_FileSpan);
  80334. t2 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
  80335. for (t1 = spans.get$iterator(spans), t3 = "includes " + type; t1.moveNext$0();) {
  80336. t4 = t1.get$current(t1);
  80337. if (t4 != null)
  80338. t2.$indexSet(0, t4, t3);
  80339. }
  80340. throw A.wrapException(A.MultiSpanSassScriptException$0("This " + type + string$.x20is_av, type + " use", t2));
  80341. }
  80342. identity = identityFromModule;
  80343. value = valueInModule;
  80344. }
  80345. return value;
  80346. }
  80347. };
  80348. A.Environment_importForwards_closure2.prototype = {
  80349. call$1(module) {
  80350. var t1 = module.get$variables();
  80351. return t1.get$keys(t1);
  80352. },
  80353. $signature: 113
  80354. };
  80355. A.Environment_importForwards_closure3.prototype = {
  80356. call$1(module) {
  80357. var t1 = module.get$functions(module);
  80358. return t1.get$keys(t1);
  80359. },
  80360. $signature: 113
  80361. };
  80362. A.Environment_importForwards_closure4.prototype = {
  80363. call$1(module) {
  80364. var t1 = module.get$mixins();
  80365. return t1.get$keys(t1);
  80366. },
  80367. $signature: 113
  80368. };
  80369. A.Environment__getVariableFromGlobalModule_closure0.prototype = {
  80370. call$1(module) {
  80371. return module.get$variables().$index(0, this.name);
  80372. },
  80373. $signature: 383
  80374. };
  80375. A.Environment_setVariable_closure2.prototype = {
  80376. call$0() {
  80377. var t1 = this.$this;
  80378. t1._environment0$_lastVariableName = this.name;
  80379. return t1._environment0$_lastVariableIndex = 0;
  80380. },
  80381. $signature: 12
  80382. };
  80383. A.Environment_setVariable_closure3.prototype = {
  80384. call$1(module) {
  80385. return module.get$variables().containsKey$1(this.name) ? module : null;
  80386. },
  80387. $signature: 384
  80388. };
  80389. A.Environment_setVariable_closure4.prototype = {
  80390. call$0() {
  80391. var t1 = this.$this,
  80392. t2 = t1._environment0$_variableIndex$1(this.name);
  80393. return t2 == null ? t1._environment0$_variables.length - 1 : t2;
  80394. },
  80395. $signature: 12
  80396. };
  80397. A.Environment__getFunctionFromGlobalModule_closure0.prototype = {
  80398. call$1(module) {
  80399. return module.get$functions(module).$index(0, this.name);
  80400. },
  80401. $signature: 233
  80402. };
  80403. A.Environment__getMixinFromGlobalModule_closure0.prototype = {
  80404. call$1(module) {
  80405. return module.get$mixins().$index(0, this.name);
  80406. },
  80407. $signature: 233
  80408. };
  80409. A.Environment_toModule_closure0.prototype = {
  80410. call$1(modules) {
  80411. return new A.MapKeySet(modules, type$.MapKeySet_Module_Callable_2);
  80412. },
  80413. $signature: 221
  80414. };
  80415. A.Environment_toDummyModule_closure0.prototype = {
  80416. call$1(modules) {
  80417. return new A.MapKeySet(modules, type$.MapKeySet_Module_Callable_2);
  80418. },
  80419. $signature: 221
  80420. };
  80421. A.Environment__fromOneModule_closure0.prototype = {
  80422. call$1(entry) {
  80423. return A.NullableExtension_andThen0(this.callback.call$1(entry.key), new A.Environment__fromOneModule__closure0(entry, this.T));
  80424. },
  80425. $signature: 387
  80426. };
  80427. A.Environment__fromOneModule__closure0.prototype = {
  80428. call$1(_) {
  80429. return J.get$span$z(this.entry.value);
  80430. },
  80431. $signature() {
  80432. return this.T._eval$1("FileSpan(0)");
  80433. }
  80434. };
  80435. A._EnvironmentModule1.prototype = {
  80436. get$url(_) {
  80437. var t1 = this.css;
  80438. return t1.get$span(t1).file.url;
  80439. },
  80440. setVariable$3($name, value, nodeWithSpan) {
  80441. var t1, t2,
  80442. module = this._environment0$_modulesByVariable.$index(0, $name);
  80443. if (module != null) {
  80444. module.setVariable$3($name, value, nodeWithSpan);
  80445. return;
  80446. }
  80447. t1 = this._environment0$_environment;
  80448. t2 = t1._environment0$_variables;
  80449. if (!B.JSArray_methods.get$first(t2).containsKey$1($name))
  80450. throw A.wrapException(A.SassScriptException$0("Undefined variable.", null));
  80451. J.$indexSet$ax(B.JSArray_methods.get$first(t2), $name, value);
  80452. J.$indexSet$ax(B.JSArray_methods.get$first(t1._environment0$_variableNodes), $name, nodeWithSpan);
  80453. return;
  80454. },
  80455. variableIdentity$1($name) {
  80456. var module = this._environment0$_modulesByVariable.$index(0, $name);
  80457. return module == null ? this : module.variableIdentity$1($name);
  80458. },
  80459. cloneCss$0() {
  80460. var newCssAndExtensionStore, _this = this;
  80461. if (!_this.transitivelyContainsCss)
  80462. return _this;
  80463. newCssAndExtensionStore = A.cloneCssStylesheet0(_this.css, _this.extensionStore);
  80464. return A._EnvironmentModule$_1(_this._environment0$_environment, newCssAndExtensionStore.item1, newCssAndExtensionStore.item2, _this._environment0$_modulesByVariable, _this.variables, _this.variableNodes, _this.functions, _this.mixins, true, _this.transitivelyContainsExtensions);
  80465. },
  80466. toString$0(_) {
  80467. var t1 = this.css;
  80468. if (t1.get$span(t1).file.url == null)
  80469. t1 = "<unknown url>";
  80470. else {
  80471. t1 = t1.get$span(t1);
  80472. t1 = $.$get$context().prettyUri$1(t1.file.url);
  80473. }
  80474. return t1;
  80475. },
  80476. $isModule0: 1,
  80477. get$upstream() {
  80478. return this.upstream;
  80479. },
  80480. get$variables() {
  80481. return this.variables;
  80482. },
  80483. get$variableNodes() {
  80484. return this.variableNodes;
  80485. },
  80486. get$functions(receiver) {
  80487. return this.functions;
  80488. },
  80489. get$mixins() {
  80490. return this.mixins;
  80491. },
  80492. get$extensionStore() {
  80493. return this.extensionStore;
  80494. },
  80495. get$css(receiver) {
  80496. return this.css;
  80497. },
  80498. get$transitivelyContainsCss() {
  80499. return this.transitivelyContainsCss;
  80500. },
  80501. get$transitivelyContainsExtensions() {
  80502. return this.transitivelyContainsExtensions;
  80503. }
  80504. };
  80505. A._EnvironmentModule__EnvironmentModule_closure11.prototype = {
  80506. call$1(module) {
  80507. return module.get$variables();
  80508. },
  80509. $signature: 388
  80510. };
  80511. A._EnvironmentModule__EnvironmentModule_closure12.prototype = {
  80512. call$1(module) {
  80513. return module.get$variableNodes();
  80514. },
  80515. $signature: 389
  80516. };
  80517. A._EnvironmentModule__EnvironmentModule_closure13.prototype = {
  80518. call$1(module) {
  80519. return module.get$functions(module);
  80520. },
  80521. $signature: 216
  80522. };
  80523. A._EnvironmentModule__EnvironmentModule_closure14.prototype = {
  80524. call$1(module) {
  80525. return module.get$mixins();
  80526. },
  80527. $signature: 216
  80528. };
  80529. A._EnvironmentModule__EnvironmentModule_closure15.prototype = {
  80530. call$1(module) {
  80531. return module.get$transitivelyContainsCss();
  80532. },
  80533. $signature: 110
  80534. };
  80535. A._EnvironmentModule__EnvironmentModule_closure16.prototype = {
  80536. call$1(module) {
  80537. return module.get$transitivelyContainsExtensions();
  80538. },
  80539. $signature: 110
  80540. };
  80541. A.ErrorRule0.prototype = {
  80542. accept$1$1(visitor) {
  80543. return visitor.visitErrorRule$1(this);
  80544. },
  80545. accept$1(visitor) {
  80546. return this.accept$1$1(visitor, type$.dynamic);
  80547. },
  80548. toString$0(_) {
  80549. return "@error " + this.expression.toString$0(0) + ";";
  80550. },
  80551. $isAstNode0: 1,
  80552. $isStatement0: 1,
  80553. get$span(receiver) {
  80554. return this.span;
  80555. }
  80556. };
  80557. A._EvaluateVisitor1.prototype = {
  80558. _EvaluateVisitor$6$functions$importCache$logger$nodeImporter$quietDeps$sourceMap1(functions, importCache, logger, nodeImporter, quietDeps, sourceMap) {
  80559. var t2, metaModule, t3, _i, module, $function, t4, _this = this,
  80560. _s20_ = "$name, $module: null",
  80561. _s9_ = "sass:meta",
  80562. t1 = type$.JSArray_BuiltInCallable_2,
  80563. metaFunctions = A._setArrayType([A.BuiltInCallable$function0("global-variable-exists", _s20_, new A._EvaluateVisitor_closure19(_this), _s9_), A.BuiltInCallable$function0("variable-exists", "$name", new A._EvaluateVisitor_closure20(_this), _s9_), A.BuiltInCallable$function0("function-exists", _s20_, new A._EvaluateVisitor_closure21(_this), _s9_), A.BuiltInCallable$function0("mixin-exists", _s20_, new A._EvaluateVisitor_closure22(_this), _s9_), A.BuiltInCallable$function0("content-exists", "", new A._EvaluateVisitor_closure23(_this), _s9_), A.BuiltInCallable$function0("module-variables", "$module", new A._EvaluateVisitor_closure24(_this), _s9_), A.BuiltInCallable$function0("module-functions", "$module", new A._EvaluateVisitor_closure25(_this), _s9_), A.BuiltInCallable$function0("get-function", "$name, $css: false, $module: null", new A._EvaluateVisitor_closure26(_this), _s9_), A.BuiltInCallable$function0("call", "$function, $args...", new A._EvaluateVisitor_closure27(_this), _s9_)], t1),
  80564. metaMixins = A._setArrayType([A.BuiltInCallable$mixin0("load-css", "$url, $with: null", new A._EvaluateVisitor_closure28(_this), _s9_)], t1);
  80565. t1 = type$.BuiltInCallable_2;
  80566. t2 = A.List_List$of($.$get$global6(), true, t1);
  80567. B.JSArray_methods.addAll$1(t2, $.$get$local0());
  80568. B.JSArray_methods.addAll$1(t2, metaFunctions);
  80569. metaModule = A.BuiltInModule$0("meta", t2, metaMixins, null, t1);
  80570. for (t1 = A.List_List$of($.$get$coreModules0(), true, type$.BuiltInModule_Callable_2), t1.push(metaModule), t2 = t1.length, t3 = _this._evaluate0$_builtInModules, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
  80571. module = t1[_i];
  80572. t3.$indexSet(0, module.url, module);
  80573. }
  80574. t1 = A._setArrayType([], type$.JSArray_Callable_2);
  80575. B.JSArray_methods.addAll$1(t1, functions);
  80576. B.JSArray_methods.addAll$1(t1, $.$get$globalFunctions0());
  80577. B.JSArray_methods.addAll$1(t1, metaFunctions);
  80578. for (t2 = t1.length, t3 = _this._evaluate0$_builtInFunctions, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
  80579. $function = t1[_i];
  80580. t4 = J.get$name$x($function);
  80581. t3.$indexSet(0, A.stringReplaceAllUnchecked(t4, "_", "-"), $function);
  80582. }
  80583. },
  80584. run$2(_, importer, node) {
  80585. var t1 = type$.nullable_Object;
  80586. return A.runZoned(new A._EvaluateVisitor_run_closure1(this, node, importer), A.LinkedHashMap_LinkedHashMap$_literal([B.Symbol__evaluationContext, new A._EvaluationContext1(this, node)], t1, t1), type$.EvaluateResult_2);
  80587. },
  80588. _evaluate0$_assertInModule$1$2(value, $name) {
  80589. if (value != null)
  80590. return value;
  80591. throw A.wrapException(A.StateError$("Can't access " + $name + " outside of a module."));
  80592. },
  80593. _evaluate0$_assertInModule$2(value, $name) {
  80594. return this._evaluate0$_assertInModule$1$2(value, $name, type$.dynamic);
  80595. },
  80596. _evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors) {
  80597. var t1, t2, _this = this,
  80598. builtInModule = _this._evaluate0$_builtInModules.$index(0, url);
  80599. if (builtInModule != null) {
  80600. if (configuration instanceof A.ExplicitConfiguration0) {
  80601. t1 = namesInErrors ? "Built-in module " + url.toString$0(0) + " can't be configured." : "Built-in modules can't be configured.";
  80602. t2 = configuration.nodeWithSpan;
  80603. throw A.wrapException(_this._evaluate0$_exception$2(t1, t2.get$span(t2)));
  80604. }
  80605. _this._evaluate0$_addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__loadModule_closure3(callback, builtInModule));
  80606. return;
  80607. }
  80608. _this._evaluate0$_withStackFrame$3(stackFrame, nodeWithSpan, new A._EvaluateVisitor__loadModule_closure4(_this, url, nodeWithSpan, baseUrl, namesInErrors, configuration, callback));
  80609. },
  80610. _evaluate0$_loadModule$5$configuration(url, stackFrame, nodeWithSpan, callback, configuration) {
  80611. return this._evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, configuration, false);
  80612. },
  80613. _evaluate0$_loadModule$4(url, stackFrame, nodeWithSpan, callback) {
  80614. return this._evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, null, false);
  80615. },
  80616. _evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, configuration, namesInErrors, nodeWithSpan) {
  80617. var currentConfiguration, t2, t3, message, existingSpan, configurationSpan, environment, css, extensionStore, module, _this = this,
  80618. url = stylesheet.span.file.url,
  80619. t1 = _this._evaluate0$_modules,
  80620. alreadyLoaded = t1.$index(0, url);
  80621. if (alreadyLoaded != null) {
  80622. t1 = configuration == null;
  80623. currentConfiguration = t1 ? _this._evaluate0$_configuration : configuration;
  80624. t2 = _this._evaluate0$_moduleConfigurations.$index(0, url);
  80625. t3 = t2._configuration$__originalConfiguration;
  80626. t2 = t3 == null ? t2 : t3;
  80627. t3 = currentConfiguration._configuration$__originalConfiguration;
  80628. if (t2 !== (t3 == null ? currentConfiguration : t3) && currentConfiguration instanceof A.ExplicitConfiguration0) {
  80629. message = namesInErrors ? $.$get$context().prettyUri$1(url) + string$.x20was_a : string$.This_mw;
  80630. t2 = _this._evaluate0$_moduleNodes.$index(0, url);
  80631. existingSpan = t2 == null ? null : J.get$span$z(t2);
  80632. if (t1) {
  80633. t1 = currentConfiguration.nodeWithSpan;
  80634. configurationSpan = t1.get$span(t1);
  80635. } else
  80636. configurationSpan = null;
  80637. t1 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
  80638. if (existingSpan != null)
  80639. t1.$indexSet(0, existingSpan, "original load");
  80640. if (configurationSpan != null)
  80641. t1.$indexSet(0, configurationSpan, "configuration");
  80642. throw A.wrapException(t1.get$isEmpty(t1) ? _this._evaluate0$_exception$1(message) : _this._evaluate0$_multiSpanException$3(message, "new load", t1));
  80643. }
  80644. return alreadyLoaded;
  80645. }
  80646. environment = A.Environment$0();
  80647. css = A._Cell$();
  80648. extensionStore = A.ExtensionStore$0();
  80649. _this._evaluate0$_withEnvironment$2(environment, new A._EvaluateVisitor__execute_closure1(_this, importer, stylesheet, extensionStore, configuration, css));
  80650. module = environment.toModule$2(css._readLocal$0(), extensionStore);
  80651. if (url != null) {
  80652. t1.$indexSet(0, url, module);
  80653. _this._evaluate0$_moduleConfigurations.$indexSet(0, url, _this._evaluate0$_configuration);
  80654. if (nodeWithSpan != null)
  80655. _this._evaluate0$_moduleNodes.$indexSet(0, url, nodeWithSpan);
  80656. }
  80657. return module;
  80658. },
  80659. _evaluate0$_execute$2(importer, stylesheet) {
  80660. return this._evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, null, false, null);
  80661. },
  80662. _evaluate0$_addOutOfOrderImports$0() {
  80663. var t1, t2, _this = this, _s5_ = "_root",
  80664. _s13_ = "_endOfImports",
  80665. outOfOrderImports = _this._evaluate0$_outOfOrderImports;
  80666. if (outOfOrderImports == null)
  80667. return _this._evaluate0$_assertInModule$2(_this._evaluate0$__root, _s5_).children;
  80668. t1 = _this._evaluate0$_assertInModule$2(_this._evaluate0$__root, _s5_).children;
  80669. t1 = A.List_List$of(A.SubListIterable$(t1, 0, A.checkNotNullable(_this._evaluate0$_assertInModule$2(_this._evaluate0$__endOfImports, _s13_), "count", type$.int), t1.$ti._eval$1("ListMixin.E")), true, type$.ModifiableCssNode_2);
  80670. B.JSArray_methods.addAll$1(t1, outOfOrderImports);
  80671. t2 = _this._evaluate0$_assertInModule$2(_this._evaluate0$__root, _s5_).children;
  80672. B.JSArray_methods.addAll$1(t1, A.SubListIterable$(t2, _this._evaluate0$_assertInModule$2(_this._evaluate0$__endOfImports, _s13_), null, t2.$ti._eval$1("ListMixin.E")));
  80673. return t1;
  80674. },
  80675. _evaluate0$_combineCss$2$clone(root, clone) {
  80676. var selectors, unsatisfiedExtension, sortedModules, t1, imports, css, t2, t3, statements, index, _this = this;
  80677. if (!B.JSArray_methods.any$1(root.get$upstream(), new A._EvaluateVisitor__combineCss_closure5())) {
  80678. selectors = root.get$extensionStore().get$simpleSelectors();
  80679. unsatisfiedExtension = A.firstOrNull0(root.get$extensionStore().extensionsWhereTarget$1(new A._EvaluateVisitor__combineCss_closure6(selectors)));
  80680. if (unsatisfiedExtension != null)
  80681. _this._evaluate0$_throwForUnsatisfiedExtension$1(unsatisfiedExtension);
  80682. return root.get$css(root);
  80683. }
  80684. sortedModules = _this._evaluate0$_topologicalModules$1(root);
  80685. if (clone) {
  80686. t1 = sortedModules.$ti._eval$1("MappedListIterable<ListMixin.E,Module0<Callable0>>");
  80687. sortedModules = A.List_List$of(new A.MappedListIterable(sortedModules, new A._EvaluateVisitor__combineCss_closure7(), t1), true, t1._eval$1("ListIterable.E"));
  80688. }
  80689. _this._evaluate0$_extendModules$1(sortedModules);
  80690. t1 = type$.JSArray_CssNode_2;
  80691. imports = A._setArrayType([], t1);
  80692. css = A._setArrayType([], t1);
  80693. for (t1 = J.get$reversed$ax(sortedModules), t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) {
  80694. t3 = t1.__internal$_current;
  80695. if (t3 == null)
  80696. t3 = t2._as(t3);
  80697. t3 = t3.get$css(t3);
  80698. statements = t3.get$children(t3);
  80699. index = _this._evaluate0$_indexAfterImports$1(statements);
  80700. t3 = J.getInterceptor$ax(statements);
  80701. B.JSArray_methods.addAll$1(imports, t3.getRange$2(statements, 0, index));
  80702. B.JSArray_methods.addAll$1(css, t3.getRange$2(statements, index, t3.get$length(statements)));
  80703. }
  80704. t1 = B.JSArray_methods.$add(imports, css);
  80705. t2 = root.get$css(root);
  80706. return new A.CssStylesheet0(new A.UnmodifiableListView(t1, type$.UnmodifiableListView_CssNode_2), t2.get$span(t2));
  80707. },
  80708. _evaluate0$_combineCss$1(root) {
  80709. return this._evaluate0$_combineCss$2$clone(root, false);
  80710. },
  80711. _evaluate0$_extendModules$1(sortedModules) {
  80712. var t1, t2, originalSelectors, $self, t3, t4, _i, upstream, url,
  80713. downstreamExtensionStores = A.LinkedHashMap_LinkedHashMap$_empty(type$.Uri, type$.List_ExtensionStore_2),
  80714. unsatisfiedExtensions = new A._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_Extension_2);
  80715. for (t1 = J.get$iterator$ax(sortedModules); t1.moveNext$0();) {
  80716. t2 = t1.get$current(t1);
  80717. originalSelectors = t2.get$extensionStore().get$simpleSelectors().toSet$0(0);
  80718. unsatisfiedExtensions.addAll$1(0, t2.get$extensionStore().extensionsWhereTarget$1(new A._EvaluateVisitor__extendModules_closure3(originalSelectors)));
  80719. $self = downstreamExtensionStores.$index(0, t2.get$url(t2));
  80720. t3 = t2.get$extensionStore().get$addExtensions();
  80721. if ($self != null)
  80722. t3.call$1($self);
  80723. t3 = t2.get$extensionStore();
  80724. if (t3.get$isEmpty(t3))
  80725. continue;
  80726. for (t3 = t2.get$upstream(), t4 = t3.length, _i = 0; _i < t3.length; t3.length === t4 || (0, A.throwConcurrentModificationError)(t3), ++_i) {
  80727. upstream = t3[_i];
  80728. url = upstream.get$url(upstream);
  80729. if (url == null)
  80730. continue;
  80731. J.add$1$ax(downstreamExtensionStores.putIfAbsent$2(url, new A._EvaluateVisitor__extendModules_closure4()), t2.get$extensionStore());
  80732. }
  80733. unsatisfiedExtensions.removeAll$1(t2.get$extensionStore().extensionsWhereTarget$1(originalSelectors.get$contains(originalSelectors)));
  80734. }
  80735. if (unsatisfiedExtensions._collection$_length !== 0)
  80736. this._evaluate0$_throwForUnsatisfiedExtension$1(unsatisfiedExtensions.get$first(unsatisfiedExtensions));
  80737. },
  80738. _evaluate0$_throwForUnsatisfiedExtension$1(extension) {
  80739. throw A.wrapException(A.SassException$0(string$.The_ta + extension.target.toString$0(0) + ' !optional" to avoid this error.', extension.span));
  80740. },
  80741. _evaluate0$_topologicalModules$1(root) {
  80742. var t1 = type$.Module_Callable_2,
  80743. sorted = A.QueueList$(null, t1);
  80744. new A._EvaluateVisitor__topologicalModules_visitModule1(A.LinkedHashSet_LinkedHashSet$_empty(t1), sorted).call$1(root);
  80745. return sorted;
  80746. },
  80747. _evaluate0$_indexAfterImports$1(statements) {
  80748. var t1, t2, t3, lastImport, i, statement;
  80749. for (t1 = J.getInterceptor$asx(statements), t2 = type$.CssComment_2, t3 = type$.CssImport_2, lastImport = -1, i = 0; i < t1.get$length(statements); ++i) {
  80750. statement = t1.$index(statements, i);
  80751. if (t3._is(statement))
  80752. lastImport = i;
  80753. else if (!t2._is(statement))
  80754. break;
  80755. }
  80756. return lastImport + 1;
  80757. },
  80758. visitStylesheet$1(node) {
  80759. var t1, t2, _i;
  80760. for (t1 = node.children, t2 = t1.length, _i = 0; _i < t2; ++_i)
  80761. t1[_i].accept$1(this);
  80762. return null;
  80763. },
  80764. visitAtRootRule$1(node) {
  80765. var t1, grandparent, root, innerCopy, t2, outerCopy, t3, copy, _this = this,
  80766. _s8_ = "__parent",
  80767. unparsedQuery = node.query,
  80768. query = unparsedQuery != null ? _this._evaluate0$_adjustParseError$2(unparsedQuery, new A._EvaluateVisitor_visitAtRootRule_closure5(_this, _this._evaluate0$_performInterpolation$2$warnForColor(unparsedQuery, true))) : B.AtRootQuery_UsS0,
  80769. $parent = _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_),
  80770. included = A._setArrayType([], type$.JSArray_ModifiableCssParentNode_2);
  80771. for (t1 = type$.CssStylesheet_2; !t1._is($parent); $parent = grandparent) {
  80772. if (!query.excludes$1($parent))
  80773. included.push($parent);
  80774. grandparent = $parent._node0$_parent;
  80775. if (grandparent == null)
  80776. throw A.wrapException(A.StateError$(string$.CssNod));
  80777. }
  80778. root = _this._evaluate0$_trimIncluded$1(included);
  80779. if (root === _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_)) {
  80780. _this._evaluate0$_environment.scope$1$2$when(new A._EvaluateVisitor_visitAtRootRule_closure6(_this, node), node.hasDeclarations, type$.Null);
  80781. return null;
  80782. }
  80783. if (included.length !== 0) {
  80784. innerCopy = B.JSArray_methods.get$first(included).copyWithoutChildren$0();
  80785. for (t1 = A.SubListIterable$(included, 1, null, type$.ModifiableCssParentNode_2), t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = A._instanceType(t1)._precomputed1, outerCopy = innerCopy; t1.moveNext$0(); outerCopy = copy) {
  80786. t3 = t1.__internal$_current;
  80787. copy = (t3 == null ? t2._as(t3) : t3).copyWithoutChildren$0();
  80788. copy.addChild$1(outerCopy);
  80789. }
  80790. root.addChild$1(outerCopy);
  80791. } else
  80792. innerCopy = root;
  80793. _this._evaluate0$_scopeForAtRoot$4(node, innerCopy, query, included).call$1(new A._EvaluateVisitor_visitAtRootRule_closure7(_this, node));
  80794. return null;
  80795. },
  80796. _evaluate0$_trimIncluded$1(nodes) {
  80797. var $parent, t1, innermostContiguous, i, t2, grandparent, root, _this = this, _null = null, _s5_ = "_root",
  80798. _s22_ = " to be an ancestor of ";
  80799. if (nodes.length === 0)
  80800. return _this._evaluate0$_assertInModule$2(_this._evaluate0$__root, _s5_);
  80801. $parent = _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, "__parent");
  80802. for (t1 = nodes.length, innermostContiguous = _null, i = 0; i < t1; ++i, $parent = grandparent) {
  80803. for (; t2 = nodes[i], $parent !== t2; innermostContiguous = _null, $parent = grandparent) {
  80804. grandparent = $parent._node0$_parent;
  80805. if (grandparent == null)
  80806. throw A.wrapException(A.ArgumentError$("Expected " + t2.toString$0(0) + _s22_ + _this.toString$0(0) + ".", _null));
  80807. }
  80808. if (innermostContiguous == null)
  80809. innermostContiguous = i;
  80810. grandparent = $parent._node0$_parent;
  80811. if (grandparent == null)
  80812. throw A.wrapException(A.ArgumentError$("Expected " + t2.toString$0(0) + _s22_ + _this.toString$0(0) + ".", _null));
  80813. }
  80814. if ($parent !== _this._evaluate0$_assertInModule$2(_this._evaluate0$__root, _s5_))
  80815. return _this._evaluate0$_assertInModule$2(_this._evaluate0$__root, _s5_);
  80816. innermostContiguous.toString;
  80817. root = nodes[innermostContiguous];
  80818. B.JSArray_methods.removeRange$2(nodes, innermostContiguous, nodes.length);
  80819. return root;
  80820. },
  80821. _evaluate0$_scopeForAtRoot$4(node, newParent, query, included) {
  80822. var _this = this,
  80823. scope = new A._EvaluateVisitor__scopeForAtRoot_closure11(_this, newParent, node),
  80824. t1 = query._at_root_query0$_all || query._at_root_query0$_rule;
  80825. if (t1 !== query.include)
  80826. scope = new A._EvaluateVisitor__scopeForAtRoot_closure12(_this, scope);
  80827. if (_this._evaluate0$_mediaQueries != null && query.excludesName$1("media"))
  80828. scope = new A._EvaluateVisitor__scopeForAtRoot_closure13(_this, scope);
  80829. if (_this._evaluate0$_inKeyframes && query.excludesName$1("keyframes"))
  80830. scope = new A._EvaluateVisitor__scopeForAtRoot_closure14(_this, scope);
  80831. return _this._evaluate0$_inUnknownAtRule && !B.JSArray_methods.any$1(included, new A._EvaluateVisitor__scopeForAtRoot_closure15()) ? new A._EvaluateVisitor__scopeForAtRoot_closure16(_this, scope) : scope;
  80832. },
  80833. visitContentBlock$1(node) {
  80834. return A.throwExpression(A.UnsupportedError$(string$.Evalua));
  80835. },
  80836. visitContentRule$1(node) {
  80837. var $content = this._evaluate0$_environment._environment0$_content;
  80838. if ($content == null)
  80839. return null;
  80840. this._evaluate0$_runUserDefinedCallable$1$4(node.$arguments, $content, node, new A._EvaluateVisitor_visitContentRule_closure1(this, $content), type$.Null);
  80841. return null;
  80842. },
  80843. visitDebugRule$1(node) {
  80844. var value = node.expression.accept$1(this),
  80845. t1 = value instanceof A.SassString0 ? value._string0$_text : A.serializeValue0(value, true, true);
  80846. this._evaluate0$_logger.debug$2(0, t1, node.span);
  80847. return null;
  80848. },
  80849. visitDeclaration$1(node) {
  80850. var t1, $name, t2, cssValue, t3, t4, children, oldDeclarationName, _this = this, _null = null;
  80851. if ((_this._evaluate0$_atRootExcludingStyleRule ? _null : _this._evaluate0$_styleRuleIgnoringAtRoot) == null && !_this._evaluate0$_inUnknownAtRule && !_this._evaluate0$_inKeyframes)
  80852. throw A.wrapException(_this._evaluate0$_exception$2(string$.Declarm, node.span));
  80853. t1 = node.name;
  80854. $name = _this._evaluate0$_interpolationToValue$2$warnForColor(t1, true);
  80855. t2 = _this._evaluate0$_declarationName;
  80856. if (t2 != null)
  80857. $name = new A.CssValue0(t2 + "-" + A.S($name.value), $name.span, type$.CssValue_String_2);
  80858. t2 = node.value;
  80859. cssValue = A.NullableExtension_andThen0(t2, new A._EvaluateVisitor_visitDeclaration_closure3(_this));
  80860. t3 = cssValue != null;
  80861. if (t3)
  80862. t4 = !cssValue.get$value(cssValue).get$isBlank() || cssValue.get$value(cssValue).get$asList().length === 0;
  80863. else
  80864. t4 = false;
  80865. if (t4) {
  80866. t3 = _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, "__parent");
  80867. t1 = B.JSString_methods.startsWith$1(t1.get$initialPlain(), "--");
  80868. if (_this._evaluate0$_sourceMap) {
  80869. t2 = A.NullableExtension_andThen0(t2, _this.get$_evaluate0$_expressionNode());
  80870. t2 = t2 == null ? _null : J.get$span$z(t2);
  80871. } else
  80872. t2 = _null;
  80873. t3.addChild$1(A.ModifiableCssDeclaration$0($name, cssValue, node.span, t1, t2));
  80874. } else if (J.startsWith$1$s($name.value, "--") && t3)
  80875. throw A.wrapException(_this._evaluate0$_exception$2("Custom property values may not be empty.", cssValue.get$span(cssValue)));
  80876. children = node.children;
  80877. if (children != null) {
  80878. oldDeclarationName = _this._evaluate0$_declarationName;
  80879. _this._evaluate0$_declarationName = $name.value;
  80880. _this._evaluate0$_environment.scope$1$2$when(new A._EvaluateVisitor_visitDeclaration_closure4(_this, children), node.hasDeclarations, type$.Null);
  80881. _this._evaluate0$_declarationName = oldDeclarationName;
  80882. }
  80883. return _null;
  80884. },
  80885. visitEachRule$1(node) {
  80886. var _this = this,
  80887. t1 = node.list,
  80888. list = t1.accept$1(_this),
  80889. nodeWithSpan = _this._evaluate0$_expressionNode$1(t1),
  80890. setVariables = node.variables.length === 1 ? new A._EvaluateVisitor_visitEachRule_closure5(_this, node, nodeWithSpan) : new A._EvaluateVisitor_visitEachRule_closure6(_this, node, nodeWithSpan);
  80891. return _this._evaluate0$_environment.scope$1$2$semiGlobal(new A._EvaluateVisitor_visitEachRule_closure7(_this, list, setVariables, node), true, type$.nullable_Value_2);
  80892. },
  80893. _evaluate0$_setMultipleVariables$3(variables, value, nodeWithSpan) {
  80894. var i,
  80895. list = value.get$asList(),
  80896. t1 = variables.length,
  80897. minLength = Math.min(t1, list.length);
  80898. for (i = 0; i < minLength; ++i)
  80899. this._evaluate0$_environment.setLocalVariable$3(variables[i], this._evaluate0$_withoutSlash$2(list[i], nodeWithSpan), nodeWithSpan);
  80900. for (i = minLength; i < t1; ++i)
  80901. this._evaluate0$_environment.setLocalVariable$3(variables[i], B.C__SassNull0, nodeWithSpan);
  80902. },
  80903. visitErrorRule$1(node) {
  80904. throw A.wrapException(this._evaluate0$_exception$2(J.toString$0$(node.expression.accept$1(this)), node.span));
  80905. },
  80906. visitExtendRule$1(node) {
  80907. var t1, t2, t3, t4, t5, t6, t7, _i, complex, visitor, t8, t9, targetText, compound, _this = this, _null = null,
  80908. styleRule = _this._evaluate0$_atRootExcludingStyleRule ? _null : _this._evaluate0$_styleRuleIgnoringAtRoot;
  80909. if (styleRule == null || _this._evaluate0$_declarationName != null)
  80910. throw A.wrapException(_this._evaluate0$_exception$2(string$.x40exten, node.span));
  80911. for (t1 = styleRule.originalSelector.components, t2 = t1.length, t3 = styleRule.selector, t4 = t3.span, t5 = node.span, t6 = type$.SourceSpan, t7 = type$.String, _i = 0; _i < t2; ++_i) {
  80912. complex = t1[_i];
  80913. if (!complex.accept$1(B._IsBogusVisitor_true0))
  80914. continue;
  80915. visitor = A._SerializeVisitor$0(_null, true, _null, true, false, _null, true);
  80916. complex.accept$1(visitor);
  80917. t8 = B.JSString_methods.trim$0(visitor._serialize0$_buffer.toString$0(0));
  80918. t9 = complex.accept$1(B.C__IsUselessVisitor0) ? "can't" : "shouldn't";
  80919. _this._evaluate0$_warn$3$deprecation('The selector "' + t8 + '" is invalid CSS and ' + t9 + string$.x20be_an, new A.MultiSpan0(t4, "invalid selector", A.ConstantMap_ConstantMap$from(A.LinkedHashMap_LinkedHashMap$_literal([t5, "@extend rule"], t6, t7), t6, t7)), true);
  80920. }
  80921. targetText = _this._evaluate0$_interpolationToValue$2$warnForColor(node.selector, true);
  80922. for (t1 = _this._evaluate0$_adjustParseError$2(targetText, new A._EvaluateVisitor_visitExtendRule_closure1(_this, targetText)).components, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  80923. complex = t1[_i];
  80924. if (complex.leadingCombinators.length === 0) {
  80925. t4 = complex.components;
  80926. t4 = t4.length === 1 && B.JSArray_methods.get$first(t4).combinators.length === 0;
  80927. } else
  80928. t4 = false;
  80929. compound = t4 ? B.JSArray_methods.get$first(complex.components).selector : _null;
  80930. if (compound == null)
  80931. throw A.wrapException(A.SassFormatException$0("complex selectors may not be extended.", targetText.span));
  80932. t4 = compound.components;
  80933. t5 = t4.length === 1 ? B.JSArray_methods.get$first(t4) : _null;
  80934. if (t5 == null)
  80935. throw A.wrapException(A.SassFormatException$0(string$.compou + B.JSArray_methods.join$1(t4, ", ") + string$.x60_inst, targetText.span));
  80936. _this._evaluate0$_assertInModule$2(_this._evaluate0$__extensionStore, "_extensionStore").addExtension$4(t3, t5, node, _this._evaluate0$_mediaQueries);
  80937. }
  80938. return _null;
  80939. },
  80940. visitAtRule$1(node) {
  80941. var $name, value, children, wasInKeyframes, wasInUnknownAtRule, _this = this;
  80942. if (_this._evaluate0$_declarationName != null)
  80943. throw A.wrapException(_this._evaluate0$_exception$2(string$.At_rul, node.span));
  80944. $name = _this._evaluate0$_interpolationToValue$1(node.name);
  80945. value = A.NullableExtension_andThen0(node.value, new A._EvaluateVisitor_visitAtRule_closure5(_this));
  80946. children = node.children;
  80947. if (children == null) {
  80948. _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, "__parent").addChild$1(A.ModifiableCssAtRule$0($name, node.span, true, value));
  80949. return null;
  80950. }
  80951. wasInKeyframes = _this._evaluate0$_inKeyframes;
  80952. wasInUnknownAtRule = _this._evaluate0$_inUnknownAtRule;
  80953. if (A.unvendor0($name.value) === "keyframes")
  80954. _this._evaluate0$_inKeyframes = true;
  80955. else
  80956. _this._evaluate0$_inUnknownAtRule = true;
  80957. _this._evaluate0$_withParent$2$4$scopeWhen$through(A.ModifiableCssAtRule$0($name, node.span, false, value), new A._EvaluateVisitor_visitAtRule_closure6(_this, children), node.hasDeclarations, new A._EvaluateVisitor_visitAtRule_closure7(), type$.ModifiableCssAtRule_2, type$.Null);
  80958. _this._evaluate0$_inUnknownAtRule = wasInUnknownAtRule;
  80959. _this._evaluate0$_inKeyframes = wasInKeyframes;
  80960. return null;
  80961. },
  80962. visitForRule$1(node) {
  80963. var _this = this, t1 = {},
  80964. t2 = node.from,
  80965. fromNumber = _this._evaluate0$_addExceptionSpan$2(t2, new A._EvaluateVisitor_visitForRule_closure9(_this, node)),
  80966. t3 = node.to,
  80967. toNumber = _this._evaluate0$_addExceptionSpan$2(t3, new A._EvaluateVisitor_visitForRule_closure10(_this, node)),
  80968. from = _this._evaluate0$_addExceptionSpan$2(t2, new A._EvaluateVisitor_visitForRule_closure11(fromNumber)),
  80969. to = t1.to = _this._evaluate0$_addExceptionSpan$2(t3, new A._EvaluateVisitor_visitForRule_closure12(toNumber, fromNumber)),
  80970. direction = from > to ? -1 : 1;
  80971. if (from === (!node.isExclusive ? t1.to = to + direction : to))
  80972. return null;
  80973. return _this._evaluate0$_environment.scope$1$2$semiGlobal(new A._EvaluateVisitor_visitForRule_closure13(t1, _this, node, from, direction, fromNumber), true, type$.nullable_Value_2);
  80974. },
  80975. visitForwardRule$1(node) {
  80976. var newConfiguration, t4, _i, variable, $name, _this = this,
  80977. _s8_ = "@forward",
  80978. oldConfiguration = _this._evaluate0$_configuration,
  80979. adjustedConfiguration = oldConfiguration.throughForward$1(node),
  80980. t1 = node.configuration,
  80981. t2 = t1.length,
  80982. t3 = node.url;
  80983. if (t2 !== 0) {
  80984. newConfiguration = _this._evaluate0$_addForwardConfiguration$2(adjustedConfiguration, node);
  80985. _this._evaluate0$_loadModule$5$configuration(t3, _s8_, node, new A._EvaluateVisitor_visitForwardRule_closure3(_this, node), newConfiguration);
  80986. t3 = type$.String;
  80987. t4 = A.LinkedHashSet_LinkedHashSet$_empty(t3);
  80988. for (_i = 0; _i < t2; ++_i) {
  80989. variable = t1[_i];
  80990. if (!variable.isGuarded)
  80991. t4.add$1(0, variable.name);
  80992. }
  80993. _this._evaluate0$_removeUsedConfiguration$3$except(adjustedConfiguration, newConfiguration, t4);
  80994. t3 = A.LinkedHashSet_LinkedHashSet$_empty(t3);
  80995. for (_i = 0; _i < t2; ++_i)
  80996. t3.add$1(0, t1[_i].name);
  80997. for (t1 = newConfiguration._configuration$_values, t2 = J.toList$0$ax(t1.get$keys(t1)), t4 = t2.length, _i = 0; _i < t2.length; t2.length === t4 || (0, A.throwConcurrentModificationError)(t2), ++_i) {
  80998. $name = t2[_i];
  80999. if (!t3.contains$1(0, $name))
  81000. if (!t1.get$isEmpty(t1))
  81001. t1.remove$1(0, $name);
  81002. }
  81003. _this._evaluate0$_assertConfigurationIsEmpty$1(newConfiguration);
  81004. } else {
  81005. _this._evaluate0$_configuration = adjustedConfiguration;
  81006. _this._evaluate0$_loadModule$4(t3, _s8_, node, new A._EvaluateVisitor_visitForwardRule_closure4(_this, node));
  81007. _this._evaluate0$_configuration = oldConfiguration;
  81008. }
  81009. return null;
  81010. },
  81011. _evaluate0$_addForwardConfiguration$2(configuration, node) {
  81012. var t2, t3, _i, variable, t4, t5, variableNodeWithSpan,
  81013. t1 = configuration._configuration$_values,
  81014. newValues = A.LinkedHashMap_LinkedHashMap$of(new A.UnmodifiableMapView(t1, type$.UnmodifiableMapView_String_ConfiguredValue_2), type$.String, type$.ConfiguredValue_2);
  81015. for (t2 = node.configuration, t3 = t2.length, _i = 0; _i < t3; ++_i) {
  81016. variable = t2[_i];
  81017. if (variable.isGuarded) {
  81018. t4 = variable.name;
  81019. t5 = t1.get$isEmpty(t1) ? null : t1.remove$1(0, t4);
  81020. if (t5 != null && !t5.value.$eq(0, B.C__SassNull0)) {
  81021. newValues.$indexSet(0, t4, t5);
  81022. continue;
  81023. }
  81024. }
  81025. t4 = variable.expression;
  81026. variableNodeWithSpan = this._evaluate0$_expressionNode$1(t4);
  81027. newValues.$indexSet(0, variable.name, new A.ConfiguredValue0(this._evaluate0$_withoutSlash$2(t4.accept$1(this), variableNodeWithSpan), variable.span, variableNodeWithSpan));
  81028. }
  81029. if (configuration instanceof A.ExplicitConfiguration0 || t1.get$isEmpty(t1))
  81030. return new A.ExplicitConfiguration0(node, newValues, null);
  81031. else
  81032. return new A.Configuration0(newValues, null);
  81033. },
  81034. _evaluate0$_removeUsedConfiguration$3$except(upstream, downstream, except) {
  81035. var t1, t2, t3, t4, _i, $name;
  81036. for (t1 = upstream._configuration$_values, t2 = J.toList$0$ax(t1.get$keys(t1)), t3 = t2.length, t4 = downstream._configuration$_values, _i = 0; _i < t2.length; t2.length === t3 || (0, A.throwConcurrentModificationError)(t2), ++_i) {
  81037. $name = t2[_i];
  81038. if (except.contains$1(0, $name))
  81039. continue;
  81040. if (!t4.containsKey$1($name))
  81041. if (!t1.get$isEmpty(t1))
  81042. t1.remove$1(0, $name);
  81043. }
  81044. },
  81045. _evaluate0$_assertConfigurationIsEmpty$2$nameInError(configuration, nameInError) {
  81046. var t1, entry;
  81047. if (!(configuration instanceof A.ExplicitConfiguration0))
  81048. return;
  81049. t1 = configuration._configuration$_values;
  81050. if (t1.get$isEmpty(t1))
  81051. return;
  81052. t1 = t1.get$entries(t1);
  81053. entry = t1.get$first(t1);
  81054. t1 = nameInError ? "$" + A.S(entry.key) + string$.x20was_n : string$.This_v;
  81055. throw A.wrapException(this._evaluate0$_exception$2(t1, entry.value.configurationSpan));
  81056. },
  81057. _evaluate0$_assertConfigurationIsEmpty$1(configuration) {
  81058. return this._evaluate0$_assertConfigurationIsEmpty$2$nameInError(configuration, false);
  81059. },
  81060. visitFunctionRule$1(node) {
  81061. var t1 = this._evaluate0$_environment,
  81062. t2 = t1.closure$0(),
  81063. t3 = this._evaluate0$_inDependency,
  81064. t4 = t1._environment0$_functions,
  81065. index = t4.length - 1,
  81066. t5 = node.name;
  81067. t1._environment0$_functionIndices.$indexSet(0, t5, index);
  81068. J.$indexSet$ax(t4[index], t5, new A.UserDefinedCallable0(node, t2, t3, type$.UserDefinedCallable_Environment_2));
  81069. return null;
  81070. },
  81071. visitIfRule$1(node) {
  81072. var t1, t2, _i, clauseToCheck, _box_0 = {};
  81073. _box_0.clause = node.lastClause;
  81074. for (t1 = node.clauses, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  81075. clauseToCheck = t1[_i];
  81076. if (clauseToCheck.expression.accept$1(this).get$isTruthy()) {
  81077. _box_0.clause = clauseToCheck;
  81078. break;
  81079. }
  81080. }
  81081. t1 = _box_0.clause;
  81082. if (t1 == null)
  81083. return null;
  81084. return this._evaluate0$_environment.scope$1$3$semiGlobal$when(new A._EvaluateVisitor_visitIfRule_closure1(_box_0, this), true, t1.hasDeclarations, type$.nullable_Value_2);
  81085. },
  81086. visitImportRule$1(node) {
  81087. var t1, t2, t3, t4, t5, t6, _i, $import, t7, result, $self, t8, _this = this,
  81088. _s8_ = "__parent",
  81089. _s5_ = "_root",
  81090. _s13_ = "_endOfImports";
  81091. for (t1 = node.imports, t2 = t1.length, t3 = type$.CssValue_String_2, t4 = _this.get$_evaluate0$_interpolationToValue(), t5 = type$.StaticImport_2, t6 = type$.JSArray_ModifiableCssImport_2, _i = 0; _i < t2; ++_i) {
  81092. $import = t1[_i];
  81093. if ($import instanceof A.DynamicImport0)
  81094. _this._evaluate0$_visitDynamicImport$1($import);
  81095. else {
  81096. t5._as($import);
  81097. t7 = $import.url;
  81098. result = _this._evaluate0$_performInterpolation$2$warnForColor(t7, false);
  81099. $self = $import.modifiers;
  81100. t8 = $self == null ? null : t4.call$1($self);
  81101. node = new A.ModifiableCssImport0(new A.CssValue0(result, t7.span, t3), t8, $import.span);
  81102. if (_this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_) !== _this._evaluate0$_assertInModule$2(_this._evaluate0$__root, _s5_))
  81103. _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_).addChild$1(node);
  81104. else if (_this._evaluate0$_assertInModule$2(_this._evaluate0$__endOfImports, _s13_) === J.get$length$asx(_this._evaluate0$_assertInModule$2(_this._evaluate0$__root, _s5_).children._collection$_source)) {
  81105. t7 = _this._evaluate0$_assertInModule$2(_this._evaluate0$__root, _s5_);
  81106. node._node0$_parent = t7;
  81107. t7 = t7._node0$_children;
  81108. node._node0$_indexInParent = t7.length;
  81109. t7.push(node);
  81110. _this._evaluate0$__endOfImports = _this._evaluate0$_assertInModule$2(_this._evaluate0$__endOfImports, _s13_) + 1;
  81111. } else {
  81112. t7 = _this._evaluate0$_outOfOrderImports;
  81113. (t7 == null ? _this._evaluate0$_outOfOrderImports = A._setArrayType([], t6) : t7).push(node);
  81114. }
  81115. }
  81116. }
  81117. return null;
  81118. },
  81119. _evaluate0$_visitDynamicImport$1($import) {
  81120. return this._evaluate0$_withStackFrame$3("@import", $import, new A._EvaluateVisitor__visitDynamicImport_closure1(this, $import));
  81121. },
  81122. _evaluate0$_loadStylesheet$4$baseUrl$forImport(url, span, baseUrl, forImport) {
  81123. var importCache, tuple, isDependency, stylesheet, result, error, stackTrace, error0, stackTrace0, error1, stackTrace1, message, t1, t2, t3, t4, exception, message0, _this = this,
  81124. _s11_ = "_stylesheet";
  81125. baseUrl = baseUrl;
  81126. try {
  81127. _this._evaluate0$_importSpan = span;
  81128. importCache = _this._evaluate0$_importCache;
  81129. if (importCache != null) {
  81130. if (baseUrl == null)
  81131. baseUrl = _this._evaluate0$_assertInModule$2(_this._evaluate0$__stylesheet, _s11_).span.file.url;
  81132. tuple = J.canonicalize$4$baseImporter$baseUrl$forImport$x(importCache, A.Uri_parse(url), _this._evaluate0$_importer, baseUrl, forImport);
  81133. if (tuple != null) {
  81134. isDependency = _this._evaluate0$_inDependency || tuple.item1 !== _this._evaluate0$_importer;
  81135. t1 = tuple.item1;
  81136. t2 = tuple.item2;
  81137. t3 = tuple.item3;
  81138. t4 = _this._evaluate0$_quietDeps && isDependency;
  81139. stylesheet = importCache.importCanonical$4$originalUrl$quiet(t1, t2, t3, t4);
  81140. if (stylesheet != null) {
  81141. _this._evaluate0$_loadedUrls.add$1(0, tuple.item2);
  81142. t1 = tuple.item1;
  81143. return new A._LoadedStylesheet1(stylesheet, t1, isDependency);
  81144. }
  81145. }
  81146. } else {
  81147. t1 = baseUrl;
  81148. result = _this._evaluate0$_importLikeNode$3(url, t1 == null ? _this._evaluate0$_assertInModule$2(_this._evaluate0$__stylesheet, _s11_).span.file.url : t1, forImport);
  81149. if (result != null) {
  81150. t1 = _this._evaluate0$_loadedUrls;
  81151. A.NullableExtension_andThen0(result.stylesheet.span.file.url, t1.get$add(t1));
  81152. return result;
  81153. }
  81154. }
  81155. if (B.JSString_methods.startsWith$1(url, "package:") && true)
  81156. throw A.wrapException(string$.x22packa);
  81157. else
  81158. throw A.wrapException("Can't find stylesheet to import.");
  81159. } catch (exception) {
  81160. t1 = A.unwrapException(exception);
  81161. if (t1 instanceof A.SassException0) {
  81162. error = t1;
  81163. stackTrace = A.getTraceFromException(exception);
  81164. t1 = error;
  81165. t2 = J.getInterceptor$z(t1);
  81166. A.throwWithTrace0(_this._evaluate0$_exception$2(error._span_exception$_message, A.SourceSpanException.prototype.get$span.call(t2, t1)), stackTrace);
  81167. } else if (t1 instanceof A.ArgumentError) {
  81168. error0 = t1;
  81169. stackTrace0 = A.getTraceFromException(exception);
  81170. A.throwWithTrace0(_this._evaluate0$_exception$1(J.toString$0$(error0)), stackTrace0);
  81171. } else {
  81172. error1 = t1;
  81173. stackTrace1 = A.getTraceFromException(exception);
  81174. message = null;
  81175. try {
  81176. message = A._asString(J.get$message$x(error1));
  81177. } catch (exception) {
  81178. message0 = J.toString$0$(error1);
  81179. message = message0;
  81180. }
  81181. A.throwWithTrace0(_this._evaluate0$_exception$1(message), stackTrace1);
  81182. }
  81183. } finally {
  81184. _this._evaluate0$_importSpan = null;
  81185. }
  81186. },
  81187. _evaluate0$_loadStylesheet$3$baseUrl(url, span, baseUrl) {
  81188. return this._evaluate0$_loadStylesheet$4$baseUrl$forImport(url, span, baseUrl, false);
  81189. },
  81190. _evaluate0$_loadStylesheet$3$forImport(url, span, forImport) {
  81191. return this._evaluate0$_loadStylesheet$4$baseUrl$forImport(url, span, null, forImport);
  81192. },
  81193. _evaluate0$_importLikeNode$3(originalUrl, previous, forImport) {
  81194. var isDependency, url, t2, _this = this,
  81195. t1 = _this._evaluate0$_nodeImporter,
  81196. result = t1.loadRelative$3(originalUrl, previous, forImport);
  81197. if (result != null)
  81198. isDependency = _this._evaluate0$_inDependency;
  81199. else {
  81200. result = t1.load$3(0, originalUrl, previous, forImport);
  81201. if (result == null)
  81202. return null;
  81203. isDependency = true;
  81204. }
  81205. url = result.item2;
  81206. t1 = B.JSString_methods.startsWith$1(url, "file") ? A.Syntax_forPath0(url) : B.Syntax_SCSS_scss0;
  81207. t2 = _this._evaluate0$_quietDeps && isDependency ? $.$get$Logger_quiet0() : _this._evaluate0$_logger;
  81208. return new A._LoadedStylesheet1(A.Stylesheet_Stylesheet$parse0(result.item1, t1, t2, url), null, isDependency);
  81209. },
  81210. visitIncludeRule$1(node) {
  81211. var nodeWithSpan, t1, _this = this,
  81212. _s37_ = "Mixin doesn't accept a content block.",
  81213. mixin = _this._evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitIncludeRule_closure7(_this, node));
  81214. if (mixin == null)
  81215. throw A.wrapException(_this._evaluate0$_exception$2("Undefined mixin.", node.span));
  81216. nodeWithSpan = new A._FakeAstNode0(new A._EvaluateVisitor_visitIncludeRule_closure8(node));
  81217. if (mixin instanceof A.BuiltInCallable0) {
  81218. if (node.content != null)
  81219. throw A.wrapException(_this._evaluate0$_exception$2(_s37_, node.span));
  81220. _this._evaluate0$_runBuiltInCallable$3(node.$arguments, mixin, nodeWithSpan);
  81221. } else if (type$.UserDefinedCallable_Environment_2._is(mixin)) {
  81222. t1 = node.content;
  81223. if (t1 != null && !type$.MixinRule_2._as(mixin.declaration).get$hasContent())
  81224. throw A.wrapException(A.MultiSpanSassRuntimeException$0(_s37_, node.get$spanWithoutContent(), "invocation", A.LinkedHashMap_LinkedHashMap$_literal([mixin.declaration.$arguments.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), _this._evaluate0$_stackTrace$1(node.get$spanWithoutContent())));
  81225. _this._evaluate0$_runUserDefinedCallable$1$4(node.$arguments, mixin, nodeWithSpan, new A._EvaluateVisitor_visitIncludeRule_closure9(_this, A.NullableExtension_andThen0(t1, new A._EvaluateVisitor_visitIncludeRule_closure10(_this)), mixin, nodeWithSpan), type$.Null);
  81226. } else
  81227. throw A.wrapException(A.UnsupportedError$("Unknown callable type " + mixin.toString$0(0) + "."));
  81228. return null;
  81229. },
  81230. visitMixinRule$1(node) {
  81231. var t1 = this._evaluate0$_environment,
  81232. t2 = t1.closure$0(),
  81233. t3 = this._evaluate0$_inDependency,
  81234. t4 = t1._environment0$_mixins,
  81235. index = t4.length - 1,
  81236. t5 = node.name;
  81237. t1._environment0$_mixinIndices.$indexSet(0, t5, index);
  81238. J.$indexSet$ax(t4[index], t5, new A.UserDefinedCallable0(node, t2, t3, type$.UserDefinedCallable_Environment_2));
  81239. return null;
  81240. },
  81241. visitLoudComment$1(node) {
  81242. var t1, _this = this,
  81243. _s8_ = "__parent",
  81244. _s13_ = "_endOfImports";
  81245. if (_this._evaluate0$_inFunction)
  81246. return null;
  81247. if (_this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_) === _this._evaluate0$_assertInModule$2(_this._evaluate0$__root, "_root") && _this._evaluate0$_assertInModule$2(_this._evaluate0$__endOfImports, _s13_) === J.get$length$asx(_this._evaluate0$_assertInModule$2(_this._evaluate0$__root, "_root").children._collection$_source))
  81248. _this._evaluate0$__endOfImports = _this._evaluate0$_assertInModule$2(_this._evaluate0$__endOfImports, _s13_) + 1;
  81249. t1 = node.text;
  81250. _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_).addChild$1(new A.ModifiableCssComment0(_this._evaluate0$_performInterpolation$1(t1), t1.span));
  81251. return null;
  81252. },
  81253. visitMediaRule$1(node) {
  81254. var queries, mergedQueries, t1, mergedSources, t2, t3, _this = this;
  81255. if (_this._evaluate0$_declarationName != null)
  81256. throw A.wrapException(_this._evaluate0$_exception$2(string$.Media_, node.span));
  81257. queries = _this._evaluate0$_visitMediaQueries$1(node.query);
  81258. mergedQueries = A.NullableExtension_andThen0(_this._evaluate0$_mediaQueries, new A._EvaluateVisitor_visitMediaRule_closure5(_this, queries));
  81259. t1 = mergedQueries == null;
  81260. if (!t1 && J.get$isEmpty$asx(mergedQueries))
  81261. return null;
  81262. if (t1)
  81263. mergedSources = B.Set_empty4;
  81264. else {
  81265. t2 = _this._evaluate0$_mediaQuerySources;
  81266. t2.toString;
  81267. t2 = A.LinkedHashSet_LinkedHashSet$of(t2, type$.CssMediaQuery_2);
  81268. t3 = _this._evaluate0$_mediaQueries;
  81269. t3.toString;
  81270. t2.addAll$1(0, t3);
  81271. t2.addAll$1(0, queries);
  81272. mergedSources = t2;
  81273. }
  81274. t1 = t1 ? queries : mergedQueries;
  81275. _this._evaluate0$_withParent$2$4$scopeWhen$through(A.ModifiableCssMediaRule$0(t1, node.span), new A._EvaluateVisitor_visitMediaRule_closure6(_this, mergedQueries, queries, mergedSources, node), node.hasDeclarations, new A._EvaluateVisitor_visitMediaRule_closure7(mergedSources), type$.ModifiableCssMediaRule_2, type$.Null);
  81276. return null;
  81277. },
  81278. _evaluate0$_visitMediaQueries$1(interpolation) {
  81279. return this._evaluate0$_adjustParseError$2(interpolation, new A._EvaluateVisitor__visitMediaQueries_closure1(this, this._evaluate0$_performInterpolation$2$warnForColor(interpolation, true)));
  81280. },
  81281. _evaluate0$_mergeMediaQueries$2(queries1, queries2) {
  81282. var t1, t2, t3, t4, t5, result,
  81283. queries = A._setArrayType([], type$.JSArray_CssMediaQuery_2);
  81284. for (t1 = J.get$iterator$ax(queries1), t2 = J.getInterceptor$ax(queries2), t3 = type$.MediaQuerySuccessfulMergeResult_2; t1.moveNext$0();) {
  81285. t4 = t1.get$current(t1);
  81286. for (t5 = t2.get$iterator(queries2); t5.moveNext$0();) {
  81287. result = t4.merge$1(t5.get$current(t5));
  81288. if (result === B._SingletonCssMediaQueryMergeResult_empty0)
  81289. continue;
  81290. if (result === B._SingletonCssMediaQueryMergeResult_unrepresentable0)
  81291. return null;
  81292. queries.push(t3._as(result).query);
  81293. }
  81294. }
  81295. return queries;
  81296. },
  81297. visitReturnRule$1(node) {
  81298. var t1 = node.expression;
  81299. return this._evaluate0$_withoutSlash$2(t1.accept$1(this), t1);
  81300. },
  81301. visitSilentComment$1(node) {
  81302. return null;
  81303. },
  81304. visitStyleRule$1(node) {
  81305. var t1, selectorText, rule, oldAtRootExcludingStyleRule, t2, t3, t4, t5, t6, _i, complex, visitor, t7, t8, t9, _this = this, _null = null,
  81306. _s8_ = "__parent",
  81307. _box_0 = {};
  81308. if (_this._evaluate0$_declarationName != null)
  81309. throw A.wrapException(_this._evaluate0$_exception$2(string$.Style_, node.span));
  81310. t1 = node.selector;
  81311. selectorText = _this._evaluate0$_interpolationToValue$3$trim$warnForColor(t1, true, true);
  81312. if (_this._evaluate0$_inKeyframes) {
  81313. _this._evaluate0$_withParent$2$4$scopeWhen$through(A.ModifiableCssKeyframeBlock$0(new A.CssValue0(A.List_List$unmodifiable(_this._evaluate0$_adjustParseError$2(t1, new A._EvaluateVisitor_visitStyleRule_closure15(_this, selectorText)), type$.String), t1.span, type$.CssValue_List_String_2), node.span), new A._EvaluateVisitor_visitStyleRule_closure16(_this, node), node.hasDeclarations, new A._EvaluateVisitor_visitStyleRule_closure17(), type$.ModifiableCssKeyframeBlock_2, type$.Null);
  81314. return _null;
  81315. }
  81316. _box_0.parsedSelector = _this._evaluate0$_adjustParseError$2(t1, new A._EvaluateVisitor_visitStyleRule_closure18(_this, selectorText));
  81317. _box_0.parsedSelector = _this._evaluate0$_addExceptionSpan$2(t1, new A._EvaluateVisitor_visitStyleRule_closure19(_box_0, _this));
  81318. t1 = t1.span;
  81319. rule = A.ModifiableCssStyleRule$0(_this._evaluate0$_assertInModule$2(_this._evaluate0$__extensionStore, "_extensionStore").addSelector$3(_box_0.parsedSelector, t1, _this._evaluate0$_mediaQueries), node.span, _box_0.parsedSelector);
  81320. oldAtRootExcludingStyleRule = _this._evaluate0$_atRootExcludingStyleRule;
  81321. _this._evaluate0$_atRootExcludingStyleRule = false;
  81322. _this._evaluate0$_withParent$2$4$scopeWhen$through(rule, new A._EvaluateVisitor_visitStyleRule_closure20(_this, rule, node), node.hasDeclarations, new A._EvaluateVisitor_visitStyleRule_closure21(), type$.ModifiableCssStyleRule_2, type$.Null);
  81323. _this._evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  81324. if (!rule.accept$1(B._IsInvisibleVisitor_false_false0))
  81325. for (t2 = _box_0.parsedSelector.components, t3 = t2.length, t4 = type$.SourceSpan, t5 = type$.String, t6 = rule.children, _i = 0; _i < t3; ++_i) {
  81326. complex = t2[_i];
  81327. if (!complex.accept$1(B._IsBogusVisitor_true0))
  81328. continue;
  81329. if (complex.accept$1(B.C__IsUselessVisitor0)) {
  81330. visitor = A._SerializeVisitor$0(_null, true, _null, true, false, _null, true);
  81331. complex.accept$1(visitor);
  81332. _this._evaluate0$_warn$3$deprecation('The selector "' + B.JSString_methods.trim$0(visitor._serialize0$_buffer.toString$0(0)) + string$.x22x20is_ix20, t1, true);
  81333. } else if (complex.leadingCombinators.length !== 0) {
  81334. visitor = A._SerializeVisitor$0(_null, true, _null, true, false, _null, true);
  81335. complex.accept$1(visitor);
  81336. _this._evaluate0$_warn$3$deprecation('The selector "' + B.JSString_methods.trim$0(visitor._serialize0$_buffer.toString$0(0)) + string$.x22x20is_ix0a, t1, true);
  81337. } else {
  81338. visitor = A._SerializeVisitor$0(_null, true, _null, true, false, _null, true);
  81339. complex.accept$1(visitor);
  81340. t7 = B.JSString_methods.trim$0(visitor._serialize0$_buffer.toString$0(0));
  81341. t8 = complex.accept$1(B._IsBogusVisitor_false0) ? string$.x20It_wi : "";
  81342. if (t6.get$length(t6) === 0)
  81343. A.throwExpression(A.IterableElementError_noElement());
  81344. t9 = J.get$span$z(t6.$index(0, 0));
  81345. _this._evaluate0$_warn$3$deprecation('The selector "' + t7 + string$.x22x20is_o + t8 + string$.x0aThis_, new A.MultiSpan0(t1, "invalid selector", A.ConstantMap_ConstantMap$from(A.LinkedHashMap_LinkedHashMap$_literal([t9, "this is not a style rule" + (t6.every$1(t6, new A._EvaluateVisitor_visitStyleRule_closure22()) ? "\n(try converting to a //-style comment)" : "")], t4, t5), t4, t5)), true);
  81346. }
  81347. }
  81348. if ((_this._evaluate0$_atRootExcludingStyleRule ? _null : _this._evaluate0$_styleRuleIgnoringAtRoot) == null) {
  81349. t1 = _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_).children;
  81350. t1 = !t1.get$isEmpty(t1);
  81351. } else
  81352. t1 = false;
  81353. if (t1) {
  81354. t1 = _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_).children;
  81355. t1.get$last(t1).isGroupEnd = true;
  81356. }
  81357. return _null;
  81358. },
  81359. visitSupportsRule$1(node) {
  81360. var t1, _this = this;
  81361. if (_this._evaluate0$_declarationName != null)
  81362. throw A.wrapException(_this._evaluate0$_exception$2(string$.Suppor, node.span));
  81363. t1 = node.condition;
  81364. _this._evaluate0$_withParent$2$4$scopeWhen$through(A.ModifiableCssSupportsRule$0(new A.CssValue0(_this._evaluate0$_visitSupportsCondition$1(t1), t1.get$span(t1), type$.CssValue_String_2), node.span), new A._EvaluateVisitor_visitSupportsRule_closure3(_this, node), node.hasDeclarations, new A._EvaluateVisitor_visitSupportsRule_closure4(), type$.ModifiableCssSupportsRule_2, type$.Null);
  81365. return null;
  81366. },
  81367. _evaluate0$_visitSupportsCondition$1(condition) {
  81368. var t1, oldInSupportsDeclaration, t2, t3, _this = this;
  81369. if (condition instanceof A.SupportsOperation0) {
  81370. t1 = condition.operator;
  81371. return _this._evaluate0$_parenthesize$2(condition.left, t1) + " " + t1 + " " + _this._evaluate0$_parenthesize$2(condition.right, t1);
  81372. } else if (condition instanceof A.SupportsNegation0)
  81373. return "not " + _this._evaluate0$_parenthesize$1(condition.condition);
  81374. else if (condition instanceof A.SupportsInterpolation0) {
  81375. t1 = condition.expression;
  81376. return _this._evaluate0$_serialize$3$quote(t1.accept$1(_this), t1, false);
  81377. } else if (condition instanceof A.SupportsDeclaration0) {
  81378. oldInSupportsDeclaration = _this._evaluate0$_inSupportsDeclaration;
  81379. _this._evaluate0$_inSupportsDeclaration = true;
  81380. t1 = condition.name;
  81381. t1 = _this._evaluate0$_serialize$3$quote(t1.accept$1(_this), t1, true);
  81382. t2 = condition.get$isCustomProperty() ? "" : " ";
  81383. t3 = condition.value;
  81384. t3 = _this._evaluate0$_serialize$3$quote(t3.accept$1(_this), t3, true);
  81385. _this._evaluate0$_inSupportsDeclaration = oldInSupportsDeclaration;
  81386. return "(" + t1 + ":" + t2 + t3 + ")";
  81387. } else if (condition instanceof A.SupportsFunction0)
  81388. return _this._evaluate0$_performInterpolation$1(condition.name) + "(" + _this._evaluate0$_performInterpolation$1(condition.$arguments) + ")";
  81389. else if (condition instanceof A.SupportsAnything0)
  81390. return "(" + _this._evaluate0$_performInterpolation$1(condition.contents) + ")";
  81391. else
  81392. throw A.wrapException(A.ArgumentError$("Unknown supports condition type " + A.getRuntimeType(condition).toString$0(0) + ".", null));
  81393. },
  81394. _evaluate0$_parenthesize$2(condition, operator) {
  81395. var t1;
  81396. if (!(condition instanceof A.SupportsNegation0))
  81397. if (condition instanceof A.SupportsOperation0)
  81398. t1 = operator == null || operator !== condition.operator;
  81399. else
  81400. t1 = false;
  81401. else
  81402. t1 = true;
  81403. if (t1)
  81404. return "(" + this._evaluate0$_visitSupportsCondition$1(condition) + ")";
  81405. else
  81406. return this._evaluate0$_visitSupportsCondition$1(condition);
  81407. },
  81408. _evaluate0$_parenthesize$1(condition) {
  81409. return this._evaluate0$_parenthesize$2(condition, null);
  81410. },
  81411. visitVariableDeclaration$1(node) {
  81412. var t1, value, _this = this, _null = null;
  81413. if (node.isGuarded) {
  81414. if (node.namespace == null && _this._evaluate0$_environment._environment0$_variables.length === 1) {
  81415. t1 = _this._evaluate0$_configuration._configuration$_values;
  81416. t1 = t1.get$isEmpty(t1) ? _null : t1.remove$1(0, node.name);
  81417. if (t1 != null && !t1.value.$eq(0, B.C__SassNull0)) {
  81418. _this._evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableDeclaration_closure5(_this, node, t1));
  81419. return _null;
  81420. }
  81421. }
  81422. value = _this._evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableDeclaration_closure6(_this, node));
  81423. if (value != null && !value.$eq(0, B.C__SassNull0))
  81424. return _null;
  81425. }
  81426. if (node.isGlobal && !_this._evaluate0$_environment.globalVariableExists$1(node.name)) {
  81427. t1 = _this._evaluate0$_environment._environment0$_variables.length === 1 ? string$.As_of_S : string$.As_of_R + A.declarationName0(node.span) + ": null` at the stylesheet root.";
  81428. _this._evaluate0$_warn$3$deprecation(t1, node.span, true);
  81429. }
  81430. t1 = node.expression;
  81431. _this._evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableDeclaration_closure7(_this, node, _this._evaluate0$_withoutSlash$2(t1.accept$1(_this), t1)));
  81432. return _null;
  81433. },
  81434. visitUseRule$1(node) {
  81435. var values, _i, variable, t3, variableNodeWithSpan, configuration, _this = this,
  81436. t1 = node.configuration,
  81437. t2 = t1.length;
  81438. if (t2 !== 0) {
  81439. values = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.ConfiguredValue_2);
  81440. for (_i = 0; _i < t2; ++_i) {
  81441. variable = t1[_i];
  81442. t3 = variable.expression;
  81443. variableNodeWithSpan = _this._evaluate0$_expressionNode$1(t3);
  81444. values.$indexSet(0, variable.name, new A.ConfiguredValue0(_this._evaluate0$_withoutSlash$2(t3.accept$1(_this), variableNodeWithSpan), variable.span, variableNodeWithSpan));
  81445. }
  81446. configuration = new A.ExplicitConfiguration0(node, values, null);
  81447. } else
  81448. configuration = B.Configuration_Map_empty_null0;
  81449. _this._evaluate0$_loadModule$5$configuration(node.url, "@use", node, new A._EvaluateVisitor_visitUseRule_closure1(_this, node), configuration);
  81450. _this._evaluate0$_assertConfigurationIsEmpty$1(configuration);
  81451. return null;
  81452. },
  81453. visitWarnRule$1(node) {
  81454. var _this = this,
  81455. value = _this._evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitWarnRule_closure1(_this, node)),
  81456. t1 = value instanceof A.SassString0 ? value._string0$_text : _this._evaluate0$_serialize$2(value, node.expression);
  81457. _this._evaluate0$_logger.warn$2$trace(0, t1, _this._evaluate0$_stackTrace$1(node.span));
  81458. return null;
  81459. },
  81460. visitWhileRule$1(node) {
  81461. return this._evaluate0$_environment.scope$1$3$semiGlobal$when(new A._EvaluateVisitor_visitWhileRule_closure1(this, node), true, node.hasDeclarations, type$.nullable_Value_2);
  81462. },
  81463. visitBinaryOperationExpression$1(node) {
  81464. return this._evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitBinaryOperationExpression_closure1(this, node));
  81465. },
  81466. visitValueExpression$1(node) {
  81467. return node.value;
  81468. },
  81469. visitVariableExpression$1(node) {
  81470. var result = this._evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableExpression_closure1(this, node));
  81471. if (result != null)
  81472. return result;
  81473. throw A.wrapException(this._evaluate0$_exception$2("Undefined variable.", node.span));
  81474. },
  81475. visitUnaryOperationExpression$1(node) {
  81476. return this._evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitUnaryOperationExpression_closure1(node, node.operand.accept$1(this)));
  81477. },
  81478. visitBooleanExpression$1(node) {
  81479. return node.value ? B.SassBoolean_true0 : B.SassBoolean_false0;
  81480. },
  81481. visitIfExpression$1(node) {
  81482. var condition, t2, ifTrue, ifFalse, result, _this = this,
  81483. pair = _this._evaluate0$_evaluateMacroArguments$1(node),
  81484. positional = pair.item1,
  81485. named = pair.item2,
  81486. t1 = J.getInterceptor$asx(positional);
  81487. _this._evaluate0$_verifyArguments$4(t1.get$length(positional), named, $.$get$IfExpression_declaration0(), node);
  81488. if (t1.get$length(positional) > 0)
  81489. condition = t1.$index(positional, 0);
  81490. else {
  81491. t2 = named.$index(0, "condition");
  81492. t2.toString;
  81493. condition = t2;
  81494. }
  81495. if (t1.get$length(positional) > 1)
  81496. ifTrue = t1.$index(positional, 1);
  81497. else {
  81498. t2 = named.$index(0, "if-true");
  81499. t2.toString;
  81500. ifTrue = t2;
  81501. }
  81502. if (t1.get$length(positional) > 2)
  81503. ifFalse = t1.$index(positional, 2);
  81504. else {
  81505. t1 = named.$index(0, "if-false");
  81506. t1.toString;
  81507. ifFalse = t1;
  81508. }
  81509. result = condition.accept$1(_this).get$isTruthy() ? ifTrue : ifFalse;
  81510. return _this._evaluate0$_withoutSlash$2(result.accept$1(_this), _this._evaluate0$_expressionNode$1(result));
  81511. },
  81512. visitNullExpression$1(node) {
  81513. return B.C__SassNull0;
  81514. },
  81515. visitNumberExpression$1(node) {
  81516. return A.SassNumber_SassNumber0(node.value, node.unit);
  81517. },
  81518. visitParenthesizedExpression$1(node) {
  81519. return node.expression.accept$1(this);
  81520. },
  81521. visitCalculationExpression$1(node) {
  81522. var $arguments, error, stackTrace, t2, t3, t4, t5, t6, _i, argument, exception, _this = this,
  81523. t1 = A._setArrayType([], type$.JSArray_Object);
  81524. for (t2 = node.$arguments, t3 = t2.length, t4 = node.name, t5 = t4 !== "min", t6 = t4 === "max", _i = 0; _i < t3; ++_i) {
  81525. argument = t2[_i];
  81526. t1.push(_this._evaluate0$_visitCalculationValue$2$inMinMax(argument, !t5 || t6));
  81527. }
  81528. $arguments = t1;
  81529. if (_this._evaluate0$_inSupportsDeclaration)
  81530. return new A.SassCalculation0(t4, A.List_List$unmodifiable($arguments, type$.Object));
  81531. try {
  81532. switch (t4) {
  81533. case "calc":
  81534. t1 = A.SassCalculation_calc0(J.$index$asx($arguments, 0));
  81535. return t1;
  81536. case "min":
  81537. t1 = A.SassCalculation_min0($arguments);
  81538. return t1;
  81539. case "max":
  81540. t1 = A.SassCalculation_max0($arguments);
  81541. return t1;
  81542. case "clamp":
  81543. t1 = J.$index$asx($arguments, 0);
  81544. t3 = J.get$length$asx($arguments) > 1 ? J.$index$asx($arguments, 1) : null;
  81545. t1 = A.SassCalculation_clamp0(t1, t3, J.get$length$asx($arguments) > 2 ? J.$index$asx($arguments, 2) : null);
  81546. return t1;
  81547. default:
  81548. t1 = A.UnsupportedError$('Unknown calculation name "' + t4 + '".');
  81549. throw A.wrapException(t1);
  81550. }
  81551. } catch (exception) {
  81552. t1 = A.unwrapException(exception);
  81553. if (t1 instanceof A.SassScriptException0) {
  81554. error = t1;
  81555. stackTrace = A.getTraceFromException(exception);
  81556. _this._evaluate0$_verifyCompatibleNumbers$2($arguments, t2);
  81557. A.throwWithTrace0(_this._evaluate0$_exception$2(error.message, node.span), stackTrace);
  81558. } else
  81559. throw exception;
  81560. }
  81561. },
  81562. _evaluate0$_verifyCompatibleNumbers$2(args, nodesWithSpans) {
  81563. var i, t1, arg, number1, j, number2;
  81564. for (i = 0; t1 = args.length, i < t1; ++i) {
  81565. arg = args[i];
  81566. if (!(arg instanceof A.SassNumber0))
  81567. continue;
  81568. if (arg.get$numeratorUnits(arg).length > 1 || arg.get$denominatorUnits(arg).length !== 0)
  81569. throw A.wrapException(this._evaluate0$_exception$2("Number " + arg.toString$0(0) + " isn't compatible with CSS calculations.", J.get$span$z(nodesWithSpans[i])));
  81570. }
  81571. for (i = 0; i < t1 - 1; ++i) {
  81572. number1 = args[i];
  81573. if (!(number1 instanceof A.SassNumber0))
  81574. continue;
  81575. for (j = i + 1; t1 = args.length, j < t1; ++j) {
  81576. number2 = args[j];
  81577. if (!(number2 instanceof A.SassNumber0))
  81578. continue;
  81579. if (number1.hasPossiblyCompatibleUnits$1(number2))
  81580. continue;
  81581. throw A.wrapException(A.MultiSpanSassRuntimeException$0(number1.toString$0(0) + " and " + number2.toString$0(0) + " are incompatible.", J.get$span$z(nodesWithSpans[i]), number1.toString$0(0), A.LinkedHashMap_LinkedHashMap$_literal([J.get$span$z(nodesWithSpans[j]), number2.toString$0(0)], type$.FileSpan, type$.String), this._evaluate0$_stackTrace$1(J.get$span$z(nodesWithSpans[i]))));
  81582. }
  81583. }
  81584. },
  81585. _evaluate0$_visitCalculationValue$2$inMinMax(node, inMinMax) {
  81586. var inner, result, t1, _this = this;
  81587. if (node instanceof A.ParenthesizedExpression0) {
  81588. inner = node.expression;
  81589. result = _this._evaluate0$_visitCalculationValue$2$inMinMax(inner, inMinMax);
  81590. if (inner instanceof A.FunctionExpression0)
  81591. t1 = A.stringReplaceAllUnchecked(inner.originalName, "_", "-").toLowerCase() === "var" && result instanceof A.SassString0 && !result._string0$_hasQuotes;
  81592. else
  81593. t1 = false;
  81594. return t1 ? new A.SassString0("(" + result._string0$_text + ")", false) : result;
  81595. } else if (node instanceof A.StringExpression0)
  81596. return new A.CalculationInterpolation0(_this._evaluate0$_performInterpolation$1(node.text));
  81597. else if (node instanceof A.BinaryOperationExpression0)
  81598. return _this._evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor__visitCalculationValue_closure1(_this, node, inMinMax));
  81599. else {
  81600. result = node.accept$1(_this);
  81601. if (result instanceof A.SassNumber0 || result instanceof A.SassCalculation0)
  81602. return result;
  81603. if (result instanceof A.SassString0 && !result._string0$_hasQuotes)
  81604. return result;
  81605. throw A.wrapException(_this._evaluate0$_exception$2("Value " + result.toString$0(0) + " can't be used in a calculation.", node.get$span(node)));
  81606. }
  81607. },
  81608. _evaluate0$_binaryOperatorToCalculationOperator$1(operator) {
  81609. switch (operator) {
  81610. case B.BinaryOperator_qbf0:
  81611. return B.CalculationOperator_IyK0;
  81612. case B.BinaryOperator_KlB0:
  81613. return B.CalculationOperator_2bx0;
  81614. case B.BinaryOperator_6pl0:
  81615. return B.CalculationOperator_jFr0;
  81616. case B.BinaryOperator_qpm0:
  81617. return B.CalculationOperator_OvN0;
  81618. default:
  81619. throw A.wrapException(A.UnsupportedError$("Invalid calculation operator " + operator.toString$0(0) + "."));
  81620. }
  81621. },
  81622. visitColorExpression$1(node) {
  81623. return node.value;
  81624. },
  81625. visitListExpression$1(node) {
  81626. var t1 = node.contents;
  81627. return A.SassList$0(new A.MappedListIterable(t1, new A._EvaluateVisitor_visitListExpression_closure1(this), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value0>")), node.separator, node.hasBrackets);
  81628. },
  81629. visitMapExpression$1(node) {
  81630. var t2, t3, _i, pair, t4, keyValue, valueValue, oldValueSpan,
  81631. t1 = type$.Value_2,
  81632. map = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1),
  81633. keyNodes = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.AstNode_2);
  81634. for (t2 = node.pairs, t3 = t2.length, _i = 0; _i < t3; ++_i) {
  81635. pair = t2[_i];
  81636. t4 = pair.item1;
  81637. keyValue = t4.accept$1(this);
  81638. valueValue = pair.item2.accept$1(this);
  81639. if (map.$index(0, keyValue) != null) {
  81640. t1 = keyNodes.$index(0, keyValue);
  81641. oldValueSpan = t1 == null ? null : t1.get$span(t1);
  81642. t1 = J.getInterceptor$z(t4);
  81643. t2 = t1.get$span(t4);
  81644. t3 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
  81645. if (oldValueSpan != null)
  81646. t3.$indexSet(0, oldValueSpan, "first key");
  81647. throw A.wrapException(A.MultiSpanSassRuntimeException$0("Duplicate key.", t2, "second key", t3, this._evaluate0$_stackTrace$1(t1.get$span(t4))));
  81648. }
  81649. map.$indexSet(0, keyValue, valueValue);
  81650. keyNodes.$indexSet(0, keyValue, t4);
  81651. }
  81652. return new A.SassMap0(A.ConstantMap_ConstantMap$from(map, t1, t1));
  81653. },
  81654. visitFunctionExpression$1(node) {
  81655. var oldInFunction, result, _this = this, t1 = {},
  81656. $function = _this._evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitFunctionExpression_closure3(_this, node));
  81657. t1.$function = $function;
  81658. if ($function == null) {
  81659. if (node.namespace != null)
  81660. throw A.wrapException(_this._evaluate0$_exception$2("Undefined function.", node.span));
  81661. t1.$function = new A.PlainCssCallable0(node.originalName);
  81662. }
  81663. oldInFunction = _this._evaluate0$_inFunction;
  81664. _this._evaluate0$_inFunction = true;
  81665. result = _this._evaluate0$_addErrorSpan$2(node, new A._EvaluateVisitor_visitFunctionExpression_closure4(t1, _this, node));
  81666. _this._evaluate0$_inFunction = oldInFunction;
  81667. return result;
  81668. },
  81669. visitInterpolatedFunctionExpression$1(node) {
  81670. var result, _this = this,
  81671. t1 = _this._evaluate0$_performInterpolation$1(node.name),
  81672. oldInFunction = _this._evaluate0$_inFunction;
  81673. _this._evaluate0$_inFunction = true;
  81674. result = _this._evaluate0$_addErrorSpan$2(node, new A._EvaluateVisitor_visitInterpolatedFunctionExpression_closure1(_this, node, new A.PlainCssCallable0(t1)));
  81675. _this._evaluate0$_inFunction = oldInFunction;
  81676. return result;
  81677. },
  81678. _evaluate0$_getFunction$2$namespace($name, namespace) {
  81679. var local = this._evaluate0$_environment.getFunction$2$namespace($name, namespace);
  81680. if (local != null || namespace != null)
  81681. return local;
  81682. return this._evaluate0$_builtInFunctions.$index(0, $name);
  81683. },
  81684. _evaluate0$_runUserDefinedCallable$1$4($arguments, callable, nodeWithSpan, run, $V) {
  81685. var oldCallable, result, _this = this,
  81686. evaluated = _this._evaluate0$_evaluateArguments$1($arguments),
  81687. $name = callable.declaration.name;
  81688. if ($name !== "@content")
  81689. $name += "()";
  81690. oldCallable = _this._evaluate0$_currentCallable;
  81691. _this._evaluate0$_currentCallable = callable;
  81692. result = _this._evaluate0$_withStackFrame$3($name, nodeWithSpan, new A._EvaluateVisitor__runUserDefinedCallable_closure1(_this, callable, evaluated, nodeWithSpan, run, $V));
  81693. _this._evaluate0$_currentCallable = oldCallable;
  81694. return result;
  81695. },
  81696. _evaluate0$_runFunctionCallable$3($arguments, callable, nodeWithSpan) {
  81697. var t1, t2, t3, first, _i, argument, restArg, rest, _this = this;
  81698. if (callable instanceof A.BuiltInCallable0)
  81699. return _this._evaluate0$_withoutSlash$2(_this._evaluate0$_runBuiltInCallable$3($arguments, callable, nodeWithSpan), nodeWithSpan);
  81700. else if (type$.UserDefinedCallable_Environment_2._is(callable))
  81701. return _this._evaluate0$_runUserDefinedCallable$1$4($arguments, callable, nodeWithSpan, new A._EvaluateVisitor__runFunctionCallable_closure1(_this, callable), type$.Value_2);
  81702. else if (callable instanceof A.PlainCssCallable0) {
  81703. t1 = $arguments.named;
  81704. if (t1.get$isNotEmpty(t1) || $arguments.keywordRest != null)
  81705. throw A.wrapException(_this._evaluate0$_exception$2(string$.Plain_, nodeWithSpan.get$span(nodeWithSpan)));
  81706. t1 = callable.name + "(";
  81707. for (t2 = $arguments.positional, t3 = t2.length, first = true, _i = 0; _i < t3; ++_i) {
  81708. argument = t2[_i];
  81709. if (first)
  81710. first = false;
  81711. else
  81712. t1 += ", ";
  81713. t1 += _this._evaluate0$_serialize$3$quote(argument.accept$1(_this), argument, true);
  81714. }
  81715. restArg = $arguments.rest;
  81716. if (restArg != null) {
  81717. rest = restArg.accept$1(_this);
  81718. if (!first)
  81719. t1 += ", ";
  81720. t1 += _this._evaluate0$_serialize$2(rest, restArg);
  81721. }
  81722. t1 += A.Primitives_stringFromCharCode(41);
  81723. return new A.SassString0(t1.charCodeAt(0) == 0 ? t1 : t1, false);
  81724. } else
  81725. throw A.wrapException(A.ArgumentError$("Unknown callable type " + J.get$runtimeType$u(callable).toString$0(0) + ".", null));
  81726. },
  81727. _evaluate0$_runBuiltInCallable$3($arguments, callable, nodeWithSpan) {
  81728. var callback, result, error, stackTrace, error0, stackTrace0, error1, stackTrace1, message, namedSet, tuple, overload, declaredArguments, i, t1, argument, t2, t3, rest, argumentList, exception, t4, t5, t6, message0, _this = this,
  81729. evaluated = _this._evaluate0$_evaluateArguments$1($arguments),
  81730. oldCallableNode = _this._evaluate0$_callableNode;
  81731. _this._evaluate0$_callableNode = nodeWithSpan;
  81732. namedSet = new A.MapKeySet(evaluated.named, type$.MapKeySet_String);
  81733. tuple = callable.callbackFor$2(evaluated.positional.length, namedSet);
  81734. overload = tuple.item1;
  81735. callback = tuple.item2;
  81736. _this._evaluate0$_addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__runBuiltInCallable_closure3(overload, evaluated, namedSet));
  81737. declaredArguments = overload.$arguments;
  81738. for (i = evaluated.positional.length, t1 = declaredArguments.length; i < t1; ++i) {
  81739. argument = declaredArguments[i];
  81740. t2 = evaluated.positional;
  81741. t3 = evaluated.named.remove$1(0, argument.name);
  81742. if (t3 == null) {
  81743. t3 = argument.defaultValue;
  81744. t3 = _this._evaluate0$_withoutSlash$2(t3.accept$1(_this), t3);
  81745. }
  81746. t2.push(t3);
  81747. }
  81748. if (overload.restArgument != null) {
  81749. if (evaluated.positional.length > t1) {
  81750. rest = B.JSArray_methods.sublist$1(evaluated.positional, t1);
  81751. B.JSArray_methods.removeRange$2(evaluated.positional, t1, evaluated.positional.length);
  81752. } else
  81753. rest = B.List_empty19;
  81754. t1 = evaluated.named;
  81755. argumentList = A.SassArgumentList$0(rest, t1, evaluated.separator === B.ListSeparator_undecided_null_undecided0 ? B.ListSeparator_rXA0 : evaluated.separator);
  81756. evaluated.positional.push(argumentList);
  81757. } else
  81758. argumentList = null;
  81759. result = null;
  81760. try {
  81761. result = callback.call$1(evaluated.positional);
  81762. } catch (exception) {
  81763. t1 = A.unwrapException(exception);
  81764. if (type$.SassRuntimeException_2._is(t1))
  81765. throw exception;
  81766. else if (t1 instanceof A.MultiSpanSassScriptException0) {
  81767. error = t1;
  81768. stackTrace = A.getTraceFromException(exception);
  81769. t1 = error.message;
  81770. t2 = nodeWithSpan.get$span(nodeWithSpan);
  81771. t3 = error.primaryLabel;
  81772. t4 = error.secondarySpans;
  81773. A.throwWithTrace0(new A.MultiSpanSassRuntimeException0(_this._evaluate0$_stackTrace$1(nodeWithSpan.get$span(nodeWithSpan)), t3, A.ConstantMap_ConstantMap$from(t4, type$.FileSpan, type$.String), t1, t2), stackTrace);
  81774. } else if (t1 instanceof A.MultiSpanSassException0) {
  81775. error0 = t1;
  81776. stackTrace0 = A.getTraceFromException(exception);
  81777. t1 = error0._span_exception$_message;
  81778. t2 = error0;
  81779. t3 = J.getInterceptor$z(t2);
  81780. t2 = A.SourceSpanException.prototype.get$span.call(t3, t2);
  81781. t3 = error0.primaryLabel;
  81782. t4 = error0.secondarySpans;
  81783. t5 = error0;
  81784. t6 = J.getInterceptor$z(t5);
  81785. A.throwWithTrace0(new A.MultiSpanSassRuntimeException0(_this._evaluate0$_stackTrace$1(A.SourceSpanException.prototype.get$span.call(t6, t5)), t3, A.ConstantMap_ConstantMap$from(t4, type$.FileSpan, type$.String), t1, t2), stackTrace0);
  81786. } else {
  81787. error1 = t1;
  81788. stackTrace1 = A.getTraceFromException(exception);
  81789. message = null;
  81790. try {
  81791. message = A._asString(J.get$message$x(error1));
  81792. } catch (exception) {
  81793. message0 = J.toString$0$(error1);
  81794. message = message0;
  81795. }
  81796. A.throwWithTrace0(_this._evaluate0$_exception$2(message, nodeWithSpan.get$span(nodeWithSpan)), stackTrace1);
  81797. }
  81798. }
  81799. _this._evaluate0$_callableNode = oldCallableNode;
  81800. if (argumentList == null)
  81801. return result;
  81802. if (evaluated.named.__js_helper$_length === 0)
  81803. return result;
  81804. if (argumentList._argument_list$_wereKeywordsAccessed)
  81805. return result;
  81806. t1 = evaluated.named;
  81807. t1 = t1.get$keys(t1);
  81808. t1 = A.pluralize0("argument", t1.get$length(t1), null);
  81809. t2 = evaluated.named;
  81810. throw A.wrapException(A.MultiSpanSassRuntimeException$0("No " + t1 + " named " + A.S(A.toSentence0(t2.get$keys(t2).map$1$1(0, new A._EvaluateVisitor__runBuiltInCallable_closure4(), type$.Object), "or")) + ".", nodeWithSpan.get$span(nodeWithSpan), "invocation", A.LinkedHashMap_LinkedHashMap$_literal([overload.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), _this._evaluate0$_stackTrace$1(nodeWithSpan.get$span(nodeWithSpan))));
  81811. },
  81812. _evaluate0$_evaluateArguments$1($arguments) {
  81813. var t1, t2, _i, expression, nodeForSpan, named, namedNodes, t3, t4, t5, restArgs, rest, restNodeForSpan, separator, keywordRestArgs, keywordRest, keywordRestNodeForSpan, _this = this,
  81814. positional = A._setArrayType([], type$.JSArray_Value_2),
  81815. positionalNodes = A._setArrayType([], type$.JSArray_AstNode_2);
  81816. for (t1 = $arguments.positional, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  81817. expression = t1[_i];
  81818. nodeForSpan = _this._evaluate0$_expressionNode$1(expression);
  81819. positional.push(_this._evaluate0$_withoutSlash$2(expression.accept$1(_this), nodeForSpan));
  81820. positionalNodes.push(nodeForSpan);
  81821. }
  81822. t1 = type$.String;
  81823. named = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Value_2);
  81824. t2 = type$.AstNode_2;
  81825. namedNodes = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
  81826. for (t3 = $arguments.named, t3 = t3.get$entries(t3), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  81827. t4 = t3.get$current(t3);
  81828. t5 = t4.value;
  81829. nodeForSpan = _this._evaluate0$_expressionNode$1(t5);
  81830. t4 = t4.key;
  81831. named.$indexSet(0, t4, _this._evaluate0$_withoutSlash$2(t5.accept$1(_this), nodeForSpan));
  81832. namedNodes.$indexSet(0, t4, nodeForSpan);
  81833. }
  81834. restArgs = $arguments.rest;
  81835. if (restArgs == null)
  81836. return new A._ArgumentResults1(positional, positionalNodes, named, namedNodes, B.ListSeparator_undecided_null_undecided0);
  81837. rest = restArgs.accept$1(_this);
  81838. restNodeForSpan = _this._evaluate0$_expressionNode$1(restArgs);
  81839. if (rest instanceof A.SassMap0) {
  81840. _this._evaluate0$_addRestMap$4(named, rest, restArgs, new A._EvaluateVisitor__evaluateArguments_closure7());
  81841. t3 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
  81842. for (t4 = rest._map0$_contents, t4 = J.get$iterator$ax(t4.get$keys(t4)), t5 = type$.SassString_2; t4.moveNext$0();)
  81843. t3.$indexSet(0, t5._as(t4.get$current(t4))._string0$_text, restNodeForSpan);
  81844. namedNodes.addAll$1(0, t3);
  81845. separator = B.ListSeparator_undecided_null_undecided0;
  81846. } else if (rest instanceof A.SassList0) {
  81847. t3 = rest._list1$_contents;
  81848. B.JSArray_methods.addAll$1(positional, new A.MappedListIterable(t3, new A._EvaluateVisitor__evaluateArguments_closure8(_this, restNodeForSpan), A._arrayInstanceType(t3)._eval$1("MappedListIterable<1,Value0>")));
  81849. B.JSArray_methods.addAll$1(positionalNodes, A.List_List$filled(t3.length, restNodeForSpan, false, t2));
  81850. separator = rest._list1$_separator;
  81851. if (rest instanceof A.SassArgumentList0) {
  81852. rest._argument_list$_wereKeywordsAccessed = true;
  81853. rest._argument_list$_keywords.forEach$1(0, new A._EvaluateVisitor__evaluateArguments_closure9(_this, named, restNodeForSpan, namedNodes));
  81854. }
  81855. } else {
  81856. positional.push(_this._evaluate0$_withoutSlash$2(rest, restNodeForSpan));
  81857. positionalNodes.push(restNodeForSpan);
  81858. separator = B.ListSeparator_undecided_null_undecided0;
  81859. }
  81860. keywordRestArgs = $arguments.keywordRest;
  81861. if (keywordRestArgs == null)
  81862. return new A._ArgumentResults1(positional, positionalNodes, named, namedNodes, separator);
  81863. keywordRest = keywordRestArgs.accept$1(_this);
  81864. keywordRestNodeForSpan = _this._evaluate0$_expressionNode$1(keywordRestArgs);
  81865. if (keywordRest instanceof A.SassMap0) {
  81866. _this._evaluate0$_addRestMap$4(named, keywordRest, keywordRestArgs, new A._EvaluateVisitor__evaluateArguments_closure10());
  81867. t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
  81868. for (t2 = keywordRest._map0$_contents, t2 = J.get$iterator$ax(t2.get$keys(t2)), t3 = type$.SassString_2; t2.moveNext$0();)
  81869. t1.$indexSet(0, t3._as(t2.get$current(t2))._string0$_text, keywordRestNodeForSpan);
  81870. namedNodes.addAll$1(0, t1);
  81871. return new A._ArgumentResults1(positional, positionalNodes, named, namedNodes, separator);
  81872. } else
  81873. throw A.wrapException(_this._evaluate0$_exception$2(string$.Variabs + keywordRest.toString$0(0) + ").", keywordRestArgs.get$span(keywordRestArgs)));
  81874. },
  81875. _evaluate0$_evaluateMacroArguments$1(invocation) {
  81876. var t2, positional, named, rest, restNodeForSpan, keywordRestArgs_, keywordRest, keywordRestNodeForSpan, _this = this,
  81877. t1 = invocation.$arguments,
  81878. restArgs_ = t1.rest;
  81879. if (restArgs_ == null)
  81880. return new A.Tuple2(t1.positional, t1.named, type$.Tuple2_of_List_Expression_and_Map_String_Expression_2);
  81881. t2 = t1.positional;
  81882. positional = A._setArrayType(t2.slice(0), A._arrayInstanceType(t2));
  81883. named = A.LinkedHashMap_LinkedHashMap$of(t1.named, type$.String, type$.Expression_2);
  81884. rest = restArgs_.accept$1(_this);
  81885. restNodeForSpan = _this._evaluate0$_expressionNode$1(restArgs_);
  81886. if (rest instanceof A.SassMap0)
  81887. _this._evaluate0$_addRestMap$4(named, rest, invocation, new A._EvaluateVisitor__evaluateMacroArguments_closure7(restArgs_));
  81888. else if (rest instanceof A.SassList0) {
  81889. t2 = rest._list1$_contents;
  81890. B.JSArray_methods.addAll$1(positional, new A.MappedListIterable(t2, new A._EvaluateVisitor__evaluateMacroArguments_closure8(_this, restNodeForSpan, restArgs_), A._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Expression0>")));
  81891. if (rest instanceof A.SassArgumentList0) {
  81892. rest._argument_list$_wereKeywordsAccessed = true;
  81893. rest._argument_list$_keywords.forEach$1(0, new A._EvaluateVisitor__evaluateMacroArguments_closure9(_this, named, restNodeForSpan, restArgs_));
  81894. }
  81895. } else
  81896. positional.push(new A.ValueExpression0(_this._evaluate0$_withoutSlash$2(rest, restNodeForSpan), restArgs_.get$span(restArgs_)));
  81897. keywordRestArgs_ = t1.keywordRest;
  81898. if (keywordRestArgs_ == null)
  81899. return new A.Tuple2(positional, named, type$.Tuple2_of_List_Expression_and_Map_String_Expression_2);
  81900. keywordRest = keywordRestArgs_.accept$1(_this);
  81901. keywordRestNodeForSpan = _this._evaluate0$_expressionNode$1(keywordRestArgs_);
  81902. if (keywordRest instanceof A.SassMap0) {
  81903. _this._evaluate0$_addRestMap$4(named, keywordRest, invocation, new A._EvaluateVisitor__evaluateMacroArguments_closure10(_this, keywordRestNodeForSpan, keywordRestArgs_));
  81904. return new A.Tuple2(positional, named, type$.Tuple2_of_List_Expression_and_Map_String_Expression_2);
  81905. } else
  81906. throw A.wrapException(_this._evaluate0$_exception$2(string$.Variabs + keywordRest.toString$0(0) + ").", keywordRestArgs_.get$span(keywordRestArgs_)));
  81907. },
  81908. _evaluate0$_addRestMap$1$4(values, map, nodeWithSpan, convert) {
  81909. map._map0$_contents.forEach$1(0, new A._EvaluateVisitor__addRestMap_closure1(this, values, convert, this._evaluate0$_expressionNode$1(nodeWithSpan), map, nodeWithSpan));
  81910. },
  81911. _evaluate0$_addRestMap$4(values, map, nodeWithSpan, convert) {
  81912. return this._evaluate0$_addRestMap$1$4(values, map, nodeWithSpan, convert, type$.dynamic);
  81913. },
  81914. _evaluate0$_verifyArguments$4(positional, named, $arguments, nodeWithSpan) {
  81915. return this._evaluate0$_addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__verifyArguments_closure1($arguments, positional, named));
  81916. },
  81917. visitSelectorExpression$1(node) {
  81918. var t1 = this._evaluate0$_styleRuleIgnoringAtRoot;
  81919. t1 = t1 == null ? null : t1.originalSelector.get$asSassList();
  81920. return t1 == null ? B.C__SassNull0 : t1;
  81921. },
  81922. visitStringExpression$1(node) {
  81923. var t1, _this = this,
  81924. oldInSupportsDeclaration = _this._evaluate0$_inSupportsDeclaration;
  81925. _this._evaluate0$_inSupportsDeclaration = false;
  81926. t1 = node.text.contents;
  81927. t1 = new A.MappedListIterable(t1, new A._EvaluateVisitor_visitStringExpression_closure1(_this), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$0(0);
  81928. _this._evaluate0$_inSupportsDeclaration = oldInSupportsDeclaration;
  81929. return new A.SassString0(t1, node.hasQuotes);
  81930. },
  81931. visitSupportsExpression$1(expression) {
  81932. return new A.SassString0(this._evaluate0$_visitSupportsCondition$1(expression.condition), false);
  81933. },
  81934. visitCssAtRule$1(node) {
  81935. var wasInKeyframes, wasInUnknownAtRule, t1, _this = this;
  81936. if (_this._evaluate0$_declarationName != null)
  81937. throw A.wrapException(_this._evaluate0$_exception$2(string$.At_rul, node.span));
  81938. if (node.isChildless) {
  81939. _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, "__parent").addChild$1(A.ModifiableCssAtRule$0(node.name, node.span, true, node.value));
  81940. return;
  81941. }
  81942. wasInKeyframes = _this._evaluate0$_inKeyframes;
  81943. wasInUnknownAtRule = _this._evaluate0$_inUnknownAtRule;
  81944. t1 = node.name;
  81945. if (A.unvendor0(t1.get$value(t1)) === "keyframes")
  81946. _this._evaluate0$_inKeyframes = true;
  81947. else
  81948. _this._evaluate0$_inUnknownAtRule = true;
  81949. _this._evaluate0$_withParent$2$4$scopeWhen$through(A.ModifiableCssAtRule$0(t1, node.span, false, node.value), new A._EvaluateVisitor_visitCssAtRule_closure3(_this, node), false, new A._EvaluateVisitor_visitCssAtRule_closure4(), type$.ModifiableCssAtRule_2, type$.Null);
  81950. _this._evaluate0$_inUnknownAtRule = wasInUnknownAtRule;
  81951. _this._evaluate0$_inKeyframes = wasInKeyframes;
  81952. },
  81953. visitCssComment$1(node) {
  81954. var _this = this,
  81955. _s8_ = "__parent",
  81956. _s13_ = "_endOfImports";
  81957. if (_this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_) === _this._evaluate0$_assertInModule$2(_this._evaluate0$__root, "_root") && _this._evaluate0$_assertInModule$2(_this._evaluate0$__endOfImports, _s13_) === J.get$length$asx(_this._evaluate0$_assertInModule$2(_this._evaluate0$__root, "_root").children._collection$_source))
  81958. _this._evaluate0$__endOfImports = _this._evaluate0$_assertInModule$2(_this._evaluate0$__endOfImports, _s13_) + 1;
  81959. _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_).addChild$1(new A.ModifiableCssComment0(node.text, node.span));
  81960. },
  81961. visitCssDeclaration$1(node) {
  81962. var t1 = node.name;
  81963. this._evaluate0$_assertInModule$2(this._evaluate0$__parent, "__parent").addChild$1(A.ModifiableCssDeclaration$0(t1, node.value, node.span, J.startsWith$1$s(t1.get$value(t1), "--"), node.valueSpanForMap));
  81964. },
  81965. visitCssImport$1(node) {
  81966. var t1, _this = this,
  81967. _s8_ = "__parent",
  81968. _s5_ = "_root",
  81969. _s13_ = "_endOfImports",
  81970. modifiableNode = new A.ModifiableCssImport0(node.url, node.modifiers, node.span);
  81971. if (_this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_) !== _this._evaluate0$_assertInModule$2(_this._evaluate0$__root, _s5_))
  81972. _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_).addChild$1(modifiableNode);
  81973. else if (_this._evaluate0$_assertInModule$2(_this._evaluate0$__endOfImports, _s13_) === J.get$length$asx(_this._evaluate0$_assertInModule$2(_this._evaluate0$__root, _s5_).children._collection$_source)) {
  81974. _this._evaluate0$_assertInModule$2(_this._evaluate0$__root, _s5_).addChild$1(modifiableNode);
  81975. _this._evaluate0$__endOfImports = _this._evaluate0$_assertInModule$2(_this._evaluate0$__endOfImports, _s13_) + 1;
  81976. } else {
  81977. t1 = _this._evaluate0$_outOfOrderImports;
  81978. (t1 == null ? _this._evaluate0$_outOfOrderImports = A._setArrayType([], type$.JSArray_ModifiableCssImport_2) : t1).push(modifiableNode);
  81979. }
  81980. },
  81981. visitCssKeyframeBlock$1(node) {
  81982. this._evaluate0$_withParent$2$4$scopeWhen$through(A.ModifiableCssKeyframeBlock$0(node.selector, node.span), new A._EvaluateVisitor_visitCssKeyframeBlock_closure3(this, node), false, new A._EvaluateVisitor_visitCssKeyframeBlock_closure4(), type$.ModifiableCssKeyframeBlock_2, type$.Null);
  81983. },
  81984. visitCssMediaRule$1(node) {
  81985. var mergedQueries, t1, mergedSources, t2, t3, _this = this;
  81986. if (_this._evaluate0$_declarationName != null)
  81987. throw A.wrapException(_this._evaluate0$_exception$2(string$.Media_, node.span));
  81988. mergedQueries = A.NullableExtension_andThen0(_this._evaluate0$_mediaQueries, new A._EvaluateVisitor_visitCssMediaRule_closure5(_this, node));
  81989. t1 = mergedQueries == null;
  81990. if (!t1 && J.get$isEmpty$asx(mergedQueries))
  81991. return;
  81992. if (t1)
  81993. mergedSources = B.Set_empty4;
  81994. else {
  81995. t2 = _this._evaluate0$_mediaQuerySources;
  81996. t2.toString;
  81997. t2 = A.LinkedHashSet_LinkedHashSet$of(t2, type$.CssMediaQuery_2);
  81998. t3 = _this._evaluate0$_mediaQueries;
  81999. t3.toString;
  82000. t2.addAll$1(0, t3);
  82001. t2.addAll$1(0, node.queries);
  82002. mergedSources = t2;
  82003. }
  82004. t1 = t1 ? node.queries : mergedQueries;
  82005. _this._evaluate0$_withParent$2$4$scopeWhen$through(A.ModifiableCssMediaRule$0(t1, node.span), new A._EvaluateVisitor_visitCssMediaRule_closure6(_this, mergedQueries, node, mergedSources), false, new A._EvaluateVisitor_visitCssMediaRule_closure7(mergedSources), type$.ModifiableCssMediaRule_2, type$.Null);
  82006. },
  82007. visitCssStyleRule$1(node) {
  82008. var t1, styleRule, t2, t3, t4, t5, originalSelector, rule, oldAtRootExcludingStyleRule, _this = this,
  82009. _s8_ = "__parent";
  82010. if (_this._evaluate0$_declarationName != null)
  82011. throw A.wrapException(_this._evaluate0$_exception$2(string$.Style_, node.span));
  82012. t1 = _this._evaluate0$_atRootExcludingStyleRule;
  82013. styleRule = t1 ? null : _this._evaluate0$_styleRuleIgnoringAtRoot;
  82014. t2 = node.selector;
  82015. t3 = t2.value;
  82016. t4 = styleRule == null;
  82017. t5 = t4 ? null : styleRule.originalSelector;
  82018. originalSelector = t3.resolveParentSelectors$2$implicitParent(t5, !t1);
  82019. rule = A.ModifiableCssStyleRule$0(_this._evaluate0$_assertInModule$2(_this._evaluate0$__extensionStore, "_extensionStore").addSelector$3(originalSelector, t2.span, _this._evaluate0$_mediaQueries), node.span, originalSelector);
  82020. oldAtRootExcludingStyleRule = _this._evaluate0$_atRootExcludingStyleRule;
  82021. _this._evaluate0$_atRootExcludingStyleRule = false;
  82022. _this._evaluate0$_withParent$2$4$scopeWhen$through(rule, new A._EvaluateVisitor_visitCssStyleRule_closure3(_this, rule, node), false, new A._EvaluateVisitor_visitCssStyleRule_closure4(), type$.ModifiableCssStyleRule_2, type$.Null);
  82023. _this._evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  82024. if (t4) {
  82025. t1 = _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_).children;
  82026. t1 = !t1.get$isEmpty(t1);
  82027. } else
  82028. t1 = false;
  82029. if (t1) {
  82030. t1 = _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_).children;
  82031. t1.get$last(t1).isGroupEnd = true;
  82032. }
  82033. },
  82034. visitCssStylesheet$1(node) {
  82035. var t1;
  82036. for (t1 = J.get$iterator$ax(node.get$children(node)); t1.moveNext$0();)
  82037. t1.get$current(t1).accept$1(this);
  82038. },
  82039. visitCssSupportsRule$1(node) {
  82040. var _this = this;
  82041. if (_this._evaluate0$_declarationName != null)
  82042. throw A.wrapException(_this._evaluate0$_exception$2(string$.Suppor, node.span));
  82043. _this._evaluate0$_withParent$2$4$scopeWhen$through(A.ModifiableCssSupportsRule$0(node.condition, node.span), new A._EvaluateVisitor_visitCssSupportsRule_closure3(_this, node), false, new A._EvaluateVisitor_visitCssSupportsRule_closure4(), type$.ModifiableCssSupportsRule_2, type$.Null);
  82044. },
  82045. _evaluate0$_handleReturn$1$2(list, callback) {
  82046. var t1, _i, result;
  82047. for (t1 = list.length, _i = 0; _i < list.length; list.length === t1 || (0, A.throwConcurrentModificationError)(list), ++_i) {
  82048. result = callback.call$1(list[_i]);
  82049. if (result != null)
  82050. return result;
  82051. }
  82052. return null;
  82053. },
  82054. _evaluate0$_handleReturn$2(list, callback) {
  82055. return this._evaluate0$_handleReturn$1$2(list, callback, type$.dynamic);
  82056. },
  82057. _evaluate0$_withEnvironment$1$2(environment, callback) {
  82058. var result,
  82059. oldEnvironment = this._evaluate0$_environment;
  82060. this._evaluate0$_environment = environment;
  82061. result = callback.call$0();
  82062. this._evaluate0$_environment = oldEnvironment;
  82063. return result;
  82064. },
  82065. _evaluate0$_withEnvironment$2(environment, callback) {
  82066. return this._evaluate0$_withEnvironment$1$2(environment, callback, type$.dynamic);
  82067. },
  82068. _evaluate0$_interpolationToValue$3$trim$warnForColor(interpolation, trim, warnForColor) {
  82069. var result = this._evaluate0$_performInterpolation$2$warnForColor(interpolation, warnForColor),
  82070. t1 = trim ? A.trimAscii0(result, true) : result;
  82071. return new A.CssValue0(t1, interpolation.span, type$.CssValue_String_2);
  82072. },
  82073. _evaluate0$_interpolationToValue$1(interpolation) {
  82074. return this._evaluate0$_interpolationToValue$3$trim$warnForColor(interpolation, false, false);
  82075. },
  82076. _evaluate0$_interpolationToValue$2$warnForColor(interpolation, warnForColor) {
  82077. return this._evaluate0$_interpolationToValue$3$trim$warnForColor(interpolation, false, warnForColor);
  82078. },
  82079. _evaluate0$_performInterpolation$2$warnForColor(interpolation, warnForColor) {
  82080. var t1, result, _this = this,
  82081. oldInSupportsDeclaration = _this._evaluate0$_inSupportsDeclaration;
  82082. _this._evaluate0$_inSupportsDeclaration = false;
  82083. t1 = interpolation.contents;
  82084. result = new A.MappedListIterable(t1, new A._EvaluateVisitor__performInterpolation_closure1(_this, warnForColor, interpolation), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$0(0);
  82085. _this._evaluate0$_inSupportsDeclaration = oldInSupportsDeclaration;
  82086. return result;
  82087. },
  82088. _evaluate0$_performInterpolation$1(interpolation) {
  82089. return this._evaluate0$_performInterpolation$2$warnForColor(interpolation, false);
  82090. },
  82091. _evaluate0$_serialize$3$quote(value, nodeWithSpan, quote) {
  82092. return this._evaluate0$_addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__serialize_closure1(value, quote));
  82093. },
  82094. _evaluate0$_serialize$2(value, nodeWithSpan) {
  82095. return this._evaluate0$_serialize$3$quote(value, nodeWithSpan, true);
  82096. },
  82097. _evaluate0$_expressionNode$1(expression) {
  82098. var t1;
  82099. if (expression instanceof A.VariableExpression0) {
  82100. t1 = this._evaluate0$_addExceptionSpan$2(expression, new A._EvaluateVisitor__expressionNode_closure1(this, expression));
  82101. return t1 == null ? expression : t1;
  82102. } else
  82103. return expression;
  82104. },
  82105. _evaluate0$_withParent$2$4$scopeWhen$through(node, callback, scopeWhen, through, $S, $T) {
  82106. var t1, result, _this = this;
  82107. _this._evaluate0$_addChild$2$through(node, through);
  82108. t1 = _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, "__parent");
  82109. _this._evaluate0$__parent = node;
  82110. result = _this._evaluate0$_environment.scope$1$2$when(callback, scopeWhen, $T);
  82111. _this._evaluate0$__parent = t1;
  82112. return result;
  82113. },
  82114. _evaluate0$_withParent$2$3$scopeWhen(node, callback, scopeWhen, $S, $T) {
  82115. return this._evaluate0$_withParent$2$4$scopeWhen$through(node, callback, scopeWhen, null, $S, $T);
  82116. },
  82117. _evaluate0$_withParent$2$2(node, callback, $S, $T) {
  82118. return this._evaluate0$_withParent$2$4$scopeWhen$through(node, callback, true, null, $S, $T);
  82119. },
  82120. _evaluate0$_addChild$2$through(node, through) {
  82121. var grandparent, t1,
  82122. $parent = this._evaluate0$_assertInModule$2(this._evaluate0$__parent, "__parent");
  82123. if (through != null) {
  82124. for (; through.call$1($parent); $parent = grandparent) {
  82125. grandparent = $parent._node0$_parent;
  82126. if (grandparent == null)
  82127. throw A.wrapException(A.ArgumentError$(string$.throug + node.toString$0(0) + ".", null));
  82128. }
  82129. if ($parent.get$hasFollowingSibling()) {
  82130. t1 = $parent._node0$_parent;
  82131. t1.toString;
  82132. $parent = $parent.copyWithoutChildren$0();
  82133. t1.addChild$1($parent);
  82134. }
  82135. }
  82136. $parent.addChild$1(node);
  82137. },
  82138. _evaluate0$_addChild$1(node) {
  82139. return this._evaluate0$_addChild$2$through(node, null);
  82140. },
  82141. _evaluate0$_withStyleRule$1$2(rule, callback) {
  82142. var result,
  82143. oldRule = this._evaluate0$_styleRuleIgnoringAtRoot;
  82144. this._evaluate0$_styleRuleIgnoringAtRoot = rule;
  82145. result = callback.call$0();
  82146. this._evaluate0$_styleRuleIgnoringAtRoot = oldRule;
  82147. return result;
  82148. },
  82149. _evaluate0$_withStyleRule$2(rule, callback) {
  82150. return this._evaluate0$_withStyleRule$1$2(rule, callback, type$.dynamic);
  82151. },
  82152. _evaluate0$_withMediaQueries$1$3(queries, sources, callback) {
  82153. var result, _this = this,
  82154. oldMediaQueries = _this._evaluate0$_mediaQueries,
  82155. oldSources = _this._evaluate0$_mediaQuerySources;
  82156. _this._evaluate0$_mediaQueries = queries;
  82157. _this._evaluate0$_mediaQuerySources = sources;
  82158. result = callback.call$0();
  82159. _this._evaluate0$_mediaQueries = oldMediaQueries;
  82160. _this._evaluate0$_mediaQuerySources = oldSources;
  82161. return result;
  82162. },
  82163. _evaluate0$_withMediaQueries$3(queries, sources, callback) {
  82164. return this._evaluate0$_withMediaQueries$1$3(queries, sources, callback, type$.dynamic);
  82165. },
  82166. _evaluate0$_withStackFrame$1$3(member, nodeWithSpan, callback) {
  82167. var oldMember, result, _this = this,
  82168. t1 = _this._evaluate0$_stack;
  82169. t1.push(new A.Tuple2(_this._evaluate0$_member, nodeWithSpan, type$.Tuple2_String_AstNode_2));
  82170. oldMember = _this._evaluate0$_member;
  82171. _this._evaluate0$_member = member;
  82172. result = callback.call$0();
  82173. _this._evaluate0$_member = oldMember;
  82174. t1.pop();
  82175. return result;
  82176. },
  82177. _evaluate0$_withStackFrame$3(member, nodeWithSpan, callback) {
  82178. return this._evaluate0$_withStackFrame$1$3(member, nodeWithSpan, callback, type$.dynamic);
  82179. },
  82180. _evaluate0$_withoutSlash$2(value, nodeForSpan) {
  82181. if (value instanceof A.SassNumber0 && value.asSlash != null)
  82182. this._evaluate0$_warn$3$deprecation(string$.Using__i + A.S(new A._EvaluateVisitor__withoutSlash_recommendation1().call$1(value)) + string$.x0a_Morex20, nodeForSpan.get$span(nodeForSpan), true);
  82183. return value.withoutSlash$0();
  82184. },
  82185. _evaluate0$_stackFrame$2(member, span) {
  82186. return A.frameForSpan0(span, member, A.NullableExtension_andThen0(span.get$sourceUrl(span), new A._EvaluateVisitor__stackFrame_closure1(this)));
  82187. },
  82188. _evaluate0$_stackTrace$1(span) {
  82189. var _this = this,
  82190. t1 = _this._evaluate0$_stack;
  82191. t1 = A.List_List$of(new A.MappedListIterable(t1, new A._EvaluateVisitor__stackTrace_closure1(_this), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Frame>")), true, type$.Frame);
  82192. if (span != null)
  82193. t1.push(_this._evaluate0$_stackFrame$2(_this._evaluate0$_member, span));
  82194. return A.Trace$(new A.ReversedListIterable(t1, A._arrayInstanceType(t1)._eval$1("ReversedListIterable<1>")), null);
  82195. },
  82196. _evaluate0$_stackTrace$0() {
  82197. return this._evaluate0$_stackTrace$1(null);
  82198. },
  82199. _evaluate0$_warn$3$deprecation(message, span, deprecation) {
  82200. var t1, _this = this;
  82201. if (_this._evaluate0$_quietDeps)
  82202. if (!_this._evaluate0$_inDependency) {
  82203. t1 = _this._evaluate0$_currentCallable;
  82204. t1 = t1 == null ? null : t1.inDependency;
  82205. t1 = t1 === true;
  82206. } else
  82207. t1 = true;
  82208. else
  82209. t1 = false;
  82210. if (t1)
  82211. return;
  82212. if (!_this._evaluate0$_warningsEmitted.add$1(0, new A.Tuple2(message, span, type$.Tuple2_String_SourceSpan)))
  82213. return;
  82214. _this._evaluate0$_logger.warn$4$deprecation$span$trace(0, message, deprecation, span, _this._evaluate0$_stackTrace$1(span));
  82215. },
  82216. _evaluate0$_warn$2(message, span) {
  82217. return this._evaluate0$_warn$3$deprecation(message, span, false);
  82218. },
  82219. _evaluate0$_exception$2(message, span) {
  82220. var t1 = span == null ? J.get$span$z(B.JSArray_methods.get$last(this._evaluate0$_stack).item2) : span;
  82221. return new A.SassRuntimeException0(this._evaluate0$_stackTrace$1(span), message, t1);
  82222. },
  82223. _evaluate0$_exception$1(message) {
  82224. return this._evaluate0$_exception$2(message, null);
  82225. },
  82226. _evaluate0$_multiSpanException$3(message, primaryLabel, secondaryLabels) {
  82227. var t1 = J.get$span$z(B.JSArray_methods.get$last(this._evaluate0$_stack).item2);
  82228. return new A.MultiSpanSassRuntimeException0(this._evaluate0$_stackTrace$0(), primaryLabel, A.ConstantMap_ConstantMap$from(secondaryLabels, type$.FileSpan, type$.String), message, t1);
  82229. },
  82230. _evaluate0$_adjustParseError$1$2(nodeWithSpan, callback) {
  82231. var error, stackTrace, errorText, span, syntheticFile, syntheticSpan, t1, exception, t2, t3, t4, t5, t6, _null = null;
  82232. try {
  82233. t1 = callback.call$0();
  82234. return t1;
  82235. } catch (exception) {
  82236. t1 = A.unwrapException(exception);
  82237. if (t1 instanceof A.SassFormatException0) {
  82238. error = t1;
  82239. stackTrace = A.getTraceFromException(exception);
  82240. t1 = error;
  82241. t2 = J.getInterceptor$z(t1);
  82242. t1 = A.SourceSpanException.prototype.get$span.call(t2, t1);
  82243. errorText = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t1.get$file(t1)._decodedChars, 0, _null), 0, _null);
  82244. span = nodeWithSpan.get$span(nodeWithSpan);
  82245. syntheticFile = B.JSString_methods.replaceRange$3(A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(J.get$file$x(span)._decodedChars, 0, _null), 0, _null), J.get$start$z(span).offset, J.get$end$z(span).offset, errorText);
  82246. t1 = A.SourceFile$fromString(syntheticFile, J.get$file$x(span).url);
  82247. t2 = J.get$start$z(span);
  82248. t3 = error;
  82249. t4 = J.getInterceptor$z(t3);
  82250. t3 = A.SourceSpanException.prototype.get$span.call(t4, t3);
  82251. t3 = t3.get$start(t3);
  82252. t4 = J.get$start$z(span);
  82253. t5 = error;
  82254. t6 = J.getInterceptor$z(t5);
  82255. t5 = A.SourceSpanException.prototype.get$span.call(t6, t5);
  82256. syntheticSpan = t1.span$2(0, t2.offset + t3.offset, t4.offset + t5.get$end(t5).offset);
  82257. A.throwWithTrace0(this._evaluate0$_exception$2(error._span_exception$_message, syntheticSpan), stackTrace);
  82258. } else
  82259. throw exception;
  82260. }
  82261. },
  82262. _evaluate0$_adjustParseError$2(nodeWithSpan, callback) {
  82263. return this._evaluate0$_adjustParseError$1$2(nodeWithSpan, callback, type$.dynamic);
  82264. },
  82265. _evaluate0$_addExceptionSpan$1$2(nodeWithSpan, callback) {
  82266. var error, stackTrace, error0, stackTrace0, t1, exception, t2, t3, t4;
  82267. try {
  82268. t1 = callback.call$0();
  82269. return t1;
  82270. } catch (exception) {
  82271. t1 = A.unwrapException(exception);
  82272. if (t1 instanceof A.MultiSpanSassScriptException0) {
  82273. error = t1;
  82274. stackTrace = A.getTraceFromException(exception);
  82275. t1 = error.message;
  82276. t2 = nodeWithSpan.get$span(nodeWithSpan);
  82277. t3 = error.primaryLabel;
  82278. t4 = error.secondarySpans;
  82279. A.throwWithTrace0(new A.MultiSpanSassRuntimeException0(this._evaluate0$_stackTrace$1(nodeWithSpan.get$span(nodeWithSpan)), t3, A.ConstantMap_ConstantMap$from(t4, type$.FileSpan, type$.String), t1, t2), stackTrace);
  82280. } else if (t1 instanceof A.SassScriptException0) {
  82281. error0 = t1;
  82282. stackTrace0 = A.getTraceFromException(exception);
  82283. A.throwWithTrace0(this._evaluate0$_exception$2(error0.message, nodeWithSpan.get$span(nodeWithSpan)), stackTrace0);
  82284. } else
  82285. throw exception;
  82286. }
  82287. },
  82288. _evaluate0$_addExceptionSpan$2(nodeWithSpan, callback) {
  82289. return this._evaluate0$_addExceptionSpan$1$2(nodeWithSpan, callback, type$.dynamic);
  82290. },
  82291. _evaluate0$_addErrorSpan$1$2(nodeWithSpan, callback) {
  82292. var error, stackTrace, t1, exception, t2;
  82293. try {
  82294. t1 = callback.call$0();
  82295. return t1;
  82296. } catch (exception) {
  82297. t1 = A.unwrapException(exception);
  82298. if (type$.SassRuntimeException_2._is(t1)) {
  82299. error = t1;
  82300. stackTrace = A.getTraceFromException(exception);
  82301. if (!B.JSString_methods.startsWith$1(J.get$span$z(error).get$text(), "@error"))
  82302. throw exception;
  82303. t1 = error._span_exception$_message;
  82304. t2 = nodeWithSpan.get$span(nodeWithSpan);
  82305. A.throwWithTrace0(new A.SassRuntimeException0(this._evaluate0$_stackTrace$0(), t1, t2), stackTrace);
  82306. } else
  82307. throw exception;
  82308. }
  82309. },
  82310. _evaluate0$_addErrorSpan$2(nodeWithSpan, callback) {
  82311. return this._evaluate0$_addErrorSpan$1$2(nodeWithSpan, callback, type$.dynamic);
  82312. }
  82313. };
  82314. A._EvaluateVisitor_closure19.prototype = {
  82315. call$1($arguments) {
  82316. var module, t2,
  82317. t1 = J.getInterceptor$asx($arguments),
  82318. variable = t1.$index($arguments, 0).assertString$1("name");
  82319. t1 = t1.$index($arguments, 1).get$realNull();
  82320. module = t1 == null ? null : t1.assertString$1("module");
  82321. t1 = this.$this._evaluate0$_environment;
  82322. t2 = A.stringReplaceAllUnchecked(variable._string0$_text, "_", "-");
  82323. return t1.globalVariableExists$2$namespace(t2, module == null ? null : module._string0$_text) ? B.SassBoolean_true0 : B.SassBoolean_false0;
  82324. },
  82325. $signature: 20
  82326. };
  82327. A._EvaluateVisitor_closure20.prototype = {
  82328. call$1($arguments) {
  82329. var variable = J.$index$asx($arguments, 0).assertString$1("name"),
  82330. t1 = this.$this._evaluate0$_environment;
  82331. return t1.getVariable$1(A.stringReplaceAllUnchecked(variable._string0$_text, "_", "-")) != null ? B.SassBoolean_true0 : B.SassBoolean_false0;
  82332. },
  82333. $signature: 20
  82334. };
  82335. A._EvaluateVisitor_closure21.prototype = {
  82336. call$1($arguments) {
  82337. var module, t2, t3, t4,
  82338. t1 = J.getInterceptor$asx($arguments),
  82339. variable = t1.$index($arguments, 0).assertString$1("name");
  82340. t1 = t1.$index($arguments, 1).get$realNull();
  82341. module = t1 == null ? null : t1.assertString$1("module");
  82342. t1 = this.$this;
  82343. t2 = t1._evaluate0$_environment;
  82344. t3 = variable._string0$_text;
  82345. t4 = A.stringReplaceAllUnchecked(t3, "_", "-");
  82346. return t2.getFunction$2$namespace(t4, module == null ? null : module._string0$_text) != null || t1._evaluate0$_builtInFunctions.containsKey$1(t3) ? B.SassBoolean_true0 : B.SassBoolean_false0;
  82347. },
  82348. $signature: 20
  82349. };
  82350. A._EvaluateVisitor_closure22.prototype = {
  82351. call$1($arguments) {
  82352. var module, t2,
  82353. t1 = J.getInterceptor$asx($arguments),
  82354. variable = t1.$index($arguments, 0).assertString$1("name");
  82355. t1 = t1.$index($arguments, 1).get$realNull();
  82356. module = t1 == null ? null : t1.assertString$1("module");
  82357. t1 = this.$this._evaluate0$_environment;
  82358. t2 = A.stringReplaceAllUnchecked(variable._string0$_text, "_", "-");
  82359. return t1.getMixin$2$namespace(t2, module == null ? null : module._string0$_text) != null ? B.SassBoolean_true0 : B.SassBoolean_false0;
  82360. },
  82361. $signature: 20
  82362. };
  82363. A._EvaluateVisitor_closure23.prototype = {
  82364. call$1($arguments) {
  82365. var t1 = this.$this._evaluate0$_environment;
  82366. if (!t1._environment0$_inMixin)
  82367. throw A.wrapException(A.SassScriptException$0(string$.conten, null));
  82368. return t1._environment0$_content != null ? B.SassBoolean_true0 : B.SassBoolean_false0;
  82369. },
  82370. $signature: 20
  82371. };
  82372. A._EvaluateVisitor_closure24.prototype = {
  82373. call$1($arguments) {
  82374. var t2, t3, t4,
  82375. t1 = J.$index$asx($arguments, 0).assertString$1("module")._string0$_text,
  82376. module = this.$this._evaluate0$_environment._environment0$_modules.$index(0, t1);
  82377. if (module == null)
  82378. throw A.wrapException('There is no module with namespace "' + t1 + '".');
  82379. t1 = type$.Value_2;
  82380. t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  82381. for (t3 = module.get$variables(), t3 = t3.get$entries(t3), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  82382. t4 = t3.get$current(t3);
  82383. t2.$indexSet(0, new A.SassString0(t4.key, true), t4.value);
  82384. }
  82385. return new A.SassMap0(A.ConstantMap_ConstantMap$from(t2, t1, t1));
  82386. },
  82387. $signature: 37
  82388. };
  82389. A._EvaluateVisitor_closure25.prototype = {
  82390. call$1($arguments) {
  82391. var t2, t3, t4,
  82392. t1 = J.$index$asx($arguments, 0).assertString$1("module")._string0$_text,
  82393. module = this.$this._evaluate0$_environment._environment0$_modules.$index(0, t1);
  82394. if (module == null)
  82395. throw A.wrapException('There is no module with namespace "' + t1 + '".');
  82396. t1 = type$.Value_2;
  82397. t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  82398. for (t3 = module.get$functions(module), t3 = t3.get$entries(t3), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  82399. t4 = t3.get$current(t3);
  82400. t2.$indexSet(0, new A.SassString0(t4.key, true), new A.SassFunction0(t4.value));
  82401. }
  82402. return new A.SassMap0(A.ConstantMap_ConstantMap$from(t2, t1, t1));
  82403. },
  82404. $signature: 37
  82405. };
  82406. A._EvaluateVisitor_closure26.prototype = {
  82407. call$1($arguments) {
  82408. var module, callable, t2,
  82409. t1 = J.getInterceptor$asx($arguments),
  82410. $name = t1.$index($arguments, 0).assertString$1("name"),
  82411. css = t1.$index($arguments, 1).get$isTruthy();
  82412. t1 = t1.$index($arguments, 2).get$realNull();
  82413. module = t1 == null ? null : t1.assertString$1("module");
  82414. if (css && module != null)
  82415. throw A.wrapException(string$.x24css_a);
  82416. if (css)
  82417. callable = new A.PlainCssCallable0($name._string0$_text);
  82418. else {
  82419. t1 = this.$this;
  82420. t2 = t1._evaluate0$_callableNode;
  82421. t2.toString;
  82422. callable = t1._evaluate0$_addExceptionSpan$2(t2, new A._EvaluateVisitor__closure7(t1, $name, module));
  82423. }
  82424. if (callable != null)
  82425. return new A.SassFunction0(callable);
  82426. throw A.wrapException("Function not found: " + $name.toString$0(0));
  82427. },
  82428. $signature: 254
  82429. };
  82430. A._EvaluateVisitor__closure7.prototype = {
  82431. call$0() {
  82432. var t1 = A.stringReplaceAllUnchecked(this.name._string0$_text, "_", "-"),
  82433. t2 = this.module;
  82434. t2 = t2 == null ? null : t2._string0$_text;
  82435. return this.$this._evaluate0$_getFunction$2$namespace(t1, t2);
  82436. },
  82437. $signature: 109
  82438. };
  82439. A._EvaluateVisitor_closure27.prototype = {
  82440. call$1($arguments) {
  82441. var t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, invocation, callableNode, callable,
  82442. t1 = J.getInterceptor$asx($arguments),
  82443. $function = t1.$index($arguments, 0),
  82444. args = type$.SassArgumentList_2._as(t1.$index($arguments, 1));
  82445. t1 = this.$this;
  82446. t2 = t1._evaluate0$_callableNode;
  82447. t2.toString;
  82448. t3 = A._setArrayType([], type$.JSArray_Expression_2);
  82449. t4 = type$.String;
  82450. t5 = type$.Expression_2;
  82451. t6 = t2.get$span(t2);
  82452. t7 = t2.get$span(t2);
  82453. args._argument_list$_wereKeywordsAccessed = true;
  82454. t8 = args._argument_list$_keywords;
  82455. if (t8.get$isEmpty(t8))
  82456. t2 = null;
  82457. else {
  82458. t9 = type$.Value_2;
  82459. t10 = A.LinkedHashMap_LinkedHashMap$_empty(t9, t9);
  82460. for (args._argument_list$_wereKeywordsAccessed = true, t8 = t8.get$entries(t8), t8 = t8.get$iterator(t8); t8.moveNext$0();) {
  82461. t11 = t8.get$current(t8);
  82462. t10.$indexSet(0, new A.SassString0(t11.key, false), t11.value);
  82463. }
  82464. t2 = new A.ValueExpression0(new A.SassMap0(A.ConstantMap_ConstantMap$from(t10, t9, t9)), t2.get$span(t2));
  82465. }
  82466. invocation = new A.ArgumentInvocation0(A.List_List$unmodifiable(t3, t5), A.ConstantMap_ConstantMap$from(A.LinkedHashMap_LinkedHashMap$_empty(t4, t5), t4, t5), new A.ValueExpression0(args, t7), t2, t6);
  82467. if ($function instanceof A.SassString0) {
  82468. t2 = $function.toString$0(0);
  82469. A.EvaluationContext_current0().warn$2$deprecation(0, string$.Passin + t2 + "))", true);
  82470. callableNode = t1._evaluate0$_callableNode;
  82471. return t1.visitFunctionExpression$1(new A.FunctionExpression0(null, $function._string0$_text, invocation, callableNode.get$span(callableNode)));
  82472. }
  82473. callable = $function.assertFunction$1("function").callable;
  82474. if (type$.Callable_2._is(callable)) {
  82475. t2 = t1._evaluate0$_callableNode;
  82476. t2.toString;
  82477. return t1._evaluate0$_runFunctionCallable$3(invocation, callable, t2);
  82478. } else
  82479. throw A.wrapException(A.SassScriptException$0("The function " + callable.get$name(callable) + string$.x20is_as, null));
  82480. },
  82481. $signature: 3
  82482. };
  82483. A._EvaluateVisitor_closure28.prototype = {
  82484. call$1($arguments) {
  82485. var withMap, t2, values, configuration, t3,
  82486. t1 = J.getInterceptor$asx($arguments),
  82487. url = A.Uri_parse(t1.$index($arguments, 0).assertString$1("url")._string0$_text);
  82488. t1 = t1.$index($arguments, 1).get$realNull();
  82489. withMap = t1 == null ? null : t1.assertMap$1("with")._map0$_contents;
  82490. t1 = this.$this;
  82491. t2 = t1._evaluate0$_callableNode;
  82492. t2.toString;
  82493. if (withMap != null) {
  82494. values = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.ConfiguredValue_2);
  82495. withMap.forEach$1(0, new A._EvaluateVisitor__closure5(values, t2.get$span(t2), t2));
  82496. configuration = new A.ExplicitConfiguration0(t2, values, null);
  82497. } else
  82498. configuration = B.Configuration_Map_empty_null0;
  82499. t3 = t2.get$span(t2);
  82500. t1._evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors(url, "load-css()", t2, new A._EvaluateVisitor__closure6(t1), t3.get$sourceUrl(t3), configuration, true);
  82501. t1._evaluate0$_assertConfigurationIsEmpty$2$nameInError(configuration, true);
  82502. },
  82503. $signature: 394
  82504. };
  82505. A._EvaluateVisitor__closure5.prototype = {
  82506. call$2(variable, value) {
  82507. var t1 = variable.assertString$1("with key"),
  82508. $name = A.stringReplaceAllUnchecked(t1._string0$_text, "_", "-");
  82509. t1 = this.values;
  82510. if (t1.containsKey$1($name))
  82511. throw A.wrapException("The variable $" + $name + " was configured twice.");
  82512. t1.$indexSet(0, $name, new A.ConfiguredValue0(value, this.span, this.callableNode));
  82513. },
  82514. $signature: 55
  82515. };
  82516. A._EvaluateVisitor__closure6.prototype = {
  82517. call$1(module) {
  82518. var t1 = this.$this;
  82519. return t1._evaluate0$_combineCss$2$clone(module, true).accept$1(t1);
  82520. },
  82521. $signature: 61
  82522. };
  82523. A._EvaluateVisitor_run_closure1.prototype = {
  82524. call$0() {
  82525. var t2, _this = this,
  82526. t1 = _this.node,
  82527. url = t1.span.file.url;
  82528. if (url != null) {
  82529. t2 = _this.$this;
  82530. t2._evaluate0$_activeModules.$indexSet(0, url, null);
  82531. if (!(t2._evaluate0$_nodeImporter != null && url.toString$0(0) === "stdin"))
  82532. t2._evaluate0$_loadedUrls.add$1(0, url);
  82533. }
  82534. t2 = _this.$this;
  82535. return new A.EvaluateResult0(t2._evaluate0$_combineCss$1(t2._evaluate0$_execute$2(_this.importer, t1)), t2._evaluate0$_loadedUrls);
  82536. },
  82537. $signature: 396
  82538. };
  82539. A._EvaluateVisitor__loadModule_closure3.prototype = {
  82540. call$0() {
  82541. return this.callback.call$1(this.builtInModule);
  82542. },
  82543. $signature: 0
  82544. };
  82545. A._EvaluateVisitor__loadModule_closure4.prototype = {
  82546. call$0() {
  82547. var oldInDependency, module, error, stackTrace, error0, stackTrace0, error1, stackTrace1, error2, stackTrace2, message, exception, t3, t4, t5, t6, t7, _this = this,
  82548. t1 = _this.$this,
  82549. t2 = _this.nodeWithSpan,
  82550. result = t1._evaluate0$_loadStylesheet$3$baseUrl(_this.url.toString$0(0), t2.get$span(t2), _this.baseUrl),
  82551. stylesheet = result.stylesheet,
  82552. canonicalUrl = stylesheet.span.file.url;
  82553. if (canonicalUrl != null && t1._evaluate0$_activeModules.containsKey$1(canonicalUrl)) {
  82554. message = _this.namesInErrors ? "Module loop: " + $.$get$context().prettyUri$1(canonicalUrl) + " is already being loaded." : string$.Modulel;
  82555. t2 = A.NullableExtension_andThen0(t1._evaluate0$_activeModules.$index(0, canonicalUrl), new A._EvaluateVisitor__loadModule__closure1(t1, message));
  82556. throw A.wrapException(t2 == null ? t1._evaluate0$_exception$1(message) : t2);
  82557. }
  82558. if (canonicalUrl != null)
  82559. t1._evaluate0$_activeModules.$indexSet(0, canonicalUrl, t2);
  82560. oldInDependency = t1._evaluate0$_inDependency;
  82561. t1._evaluate0$_inDependency = result.isDependency;
  82562. module = null;
  82563. try {
  82564. module = t1._evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan(result.importer, stylesheet, _this.configuration, _this.namesInErrors, t2);
  82565. } finally {
  82566. t1._evaluate0$_activeModules.remove$1(0, canonicalUrl);
  82567. t1._evaluate0$_inDependency = oldInDependency;
  82568. }
  82569. try {
  82570. _this.callback.call$1(module);
  82571. } catch (exception) {
  82572. t2 = A.unwrapException(exception);
  82573. if (type$.SassRuntimeException_2._is(t2))
  82574. throw exception;
  82575. else if (t2 instanceof A.MultiSpanSassException0) {
  82576. error = t2;
  82577. stackTrace = A.getTraceFromException(exception);
  82578. t2 = error._span_exception$_message;
  82579. t3 = error;
  82580. t4 = J.getInterceptor$z(t3);
  82581. t3 = A.SourceSpanException.prototype.get$span.call(t4, t3);
  82582. t4 = error.primaryLabel;
  82583. t5 = error.secondarySpans;
  82584. t6 = error;
  82585. t7 = J.getInterceptor$z(t6);
  82586. A.throwWithTrace0(new A.MultiSpanSassRuntimeException0(t1._evaluate0$_stackTrace$1(A.SourceSpanException.prototype.get$span.call(t7, t6)), t4, A.ConstantMap_ConstantMap$from(t5, type$.FileSpan, type$.String), t2, t3), stackTrace);
  82587. } else if (t2 instanceof A.SassException0) {
  82588. error0 = t2;
  82589. stackTrace0 = A.getTraceFromException(exception);
  82590. t2 = error0;
  82591. t3 = J.getInterceptor$z(t2);
  82592. A.throwWithTrace0(t1._evaluate0$_exception$2(error0._span_exception$_message, A.SourceSpanException.prototype.get$span.call(t3, t2)), stackTrace0);
  82593. } else if (t2 instanceof A.MultiSpanSassScriptException0) {
  82594. error1 = t2;
  82595. stackTrace1 = A.getTraceFromException(exception);
  82596. A.throwWithTrace0(t1._evaluate0$_multiSpanException$3(error1.message, error1.primaryLabel, error1.secondarySpans), stackTrace1);
  82597. } else if (t2 instanceof A.SassScriptException0) {
  82598. error2 = t2;
  82599. stackTrace2 = A.getTraceFromException(exception);
  82600. A.throwWithTrace0(t1._evaluate0$_exception$1(error2.message), stackTrace2);
  82601. } else
  82602. throw exception;
  82603. }
  82604. },
  82605. $signature: 1
  82606. };
  82607. A._EvaluateVisitor__loadModule__closure1.prototype = {
  82608. call$1(previousLoad) {
  82609. return this.$this._evaluate0$_multiSpanException$3(this.message, "new load", A.LinkedHashMap_LinkedHashMap$_literal([previousLoad.get$span(previousLoad), "original load"], type$.FileSpan, type$.String));
  82610. },
  82611. $signature: 92
  82612. };
  82613. A._EvaluateVisitor__execute_closure1.prototype = {
  82614. call$0() {
  82615. var t3, t4, t5, t6, _this = this,
  82616. t1 = _this.$this,
  82617. oldImporter = t1._evaluate0$_importer,
  82618. oldStylesheet = t1._evaluate0$__stylesheet,
  82619. oldRoot = t1._evaluate0$__root,
  82620. oldParent = t1._evaluate0$__parent,
  82621. oldEndOfImports = t1._evaluate0$__endOfImports,
  82622. oldOutOfOrderImports = t1._evaluate0$_outOfOrderImports,
  82623. oldExtensionStore = t1._evaluate0$__extensionStore,
  82624. t2 = t1._evaluate0$_atRootExcludingStyleRule,
  82625. oldStyleRule = t2 ? null : t1._evaluate0$_styleRuleIgnoringAtRoot,
  82626. oldMediaQueries = t1._evaluate0$_mediaQueries,
  82627. oldDeclarationName = t1._evaluate0$_declarationName,
  82628. oldInUnknownAtRule = t1._evaluate0$_inUnknownAtRule,
  82629. oldInKeyframes = t1._evaluate0$_inKeyframes,
  82630. oldConfiguration = t1._evaluate0$_configuration;
  82631. t1._evaluate0$_importer = _this.importer;
  82632. t3 = t1._evaluate0$__stylesheet = _this.stylesheet;
  82633. t4 = t3.span;
  82634. t5 = t1._evaluate0$__parent = t1._evaluate0$__root = A.ModifiableCssStylesheet$0(t4);
  82635. t1._evaluate0$__endOfImports = 0;
  82636. t1._evaluate0$_outOfOrderImports = null;
  82637. t1._evaluate0$__extensionStore = _this.extensionStore;
  82638. t1._evaluate0$_declarationName = t1._evaluate0$_mediaQueries = t1._evaluate0$_styleRuleIgnoringAtRoot = null;
  82639. t1._evaluate0$_inKeyframes = t1._evaluate0$_atRootExcludingStyleRule = t1._evaluate0$_inUnknownAtRule = false;
  82640. t6 = _this.configuration;
  82641. if (t6 != null)
  82642. t1._evaluate0$_configuration = t6;
  82643. t1.visitStylesheet$1(t3);
  82644. t3 = t1._evaluate0$_outOfOrderImports == null ? t5 : new A.CssStylesheet0(new A.UnmodifiableListView(t1._evaluate0$_addOutOfOrderImports$0(), type$.UnmodifiableListView_CssNode_2), t4);
  82645. _this.css._value = t3;
  82646. t1._evaluate0$_importer = oldImporter;
  82647. t1._evaluate0$__stylesheet = oldStylesheet;
  82648. t1._evaluate0$__root = oldRoot;
  82649. t1._evaluate0$__parent = oldParent;
  82650. t1._evaluate0$__endOfImports = oldEndOfImports;
  82651. t1._evaluate0$_outOfOrderImports = oldOutOfOrderImports;
  82652. t1._evaluate0$__extensionStore = oldExtensionStore;
  82653. t1._evaluate0$_styleRuleIgnoringAtRoot = oldStyleRule;
  82654. t1._evaluate0$_mediaQueries = oldMediaQueries;
  82655. t1._evaluate0$_declarationName = oldDeclarationName;
  82656. t1._evaluate0$_inUnknownAtRule = oldInUnknownAtRule;
  82657. t1._evaluate0$_atRootExcludingStyleRule = t2;
  82658. t1._evaluate0$_inKeyframes = oldInKeyframes;
  82659. t1._evaluate0$_configuration = oldConfiguration;
  82660. },
  82661. $signature: 1
  82662. };
  82663. A._EvaluateVisitor__combineCss_closure5.prototype = {
  82664. call$1(module) {
  82665. return module.get$transitivelyContainsCss();
  82666. },
  82667. $signature: 110
  82668. };
  82669. A._EvaluateVisitor__combineCss_closure6.prototype = {
  82670. call$1(target) {
  82671. return !this.selectors.contains$1(0, target);
  82672. },
  82673. $signature: 13
  82674. };
  82675. A._EvaluateVisitor__combineCss_closure7.prototype = {
  82676. call$1(module) {
  82677. return module.cloneCss$0();
  82678. },
  82679. $signature: 397
  82680. };
  82681. A._EvaluateVisitor__extendModules_closure3.prototype = {
  82682. call$1(target) {
  82683. return !this.originalSelectors.contains$1(0, target);
  82684. },
  82685. $signature: 13
  82686. };
  82687. A._EvaluateVisitor__extendModules_closure4.prototype = {
  82688. call$0() {
  82689. return A._setArrayType([], type$.JSArray_ExtensionStore_2);
  82690. },
  82691. $signature: 199
  82692. };
  82693. A._EvaluateVisitor__topologicalModules_visitModule1.prototype = {
  82694. call$1(module) {
  82695. var t1, t2, t3, _i, upstream;
  82696. for (t1 = module.get$upstream(), t2 = t1.length, t3 = this.seen, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
  82697. upstream = t1[_i];
  82698. if (upstream.get$transitivelyContainsCss() && t3.add$1(0, upstream))
  82699. this.call$1(upstream);
  82700. }
  82701. this.sorted.addFirst$1(module);
  82702. },
  82703. $signature: 61
  82704. };
  82705. A._EvaluateVisitor_visitAtRootRule_closure5.prototype = {
  82706. call$0() {
  82707. var t1 = A.SpanScanner$(this.resolved, null);
  82708. return new A.AtRootQueryParser0(t1, this.$this._evaluate0$_logger).parse$0();
  82709. },
  82710. $signature: 130
  82711. };
  82712. A._EvaluateVisitor_visitAtRootRule_closure6.prototype = {
  82713. call$0() {
  82714. var t1, t2, t3, _i;
  82715. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  82716. t1[_i].accept$1(t3);
  82717. },
  82718. $signature: 1
  82719. };
  82720. A._EvaluateVisitor_visitAtRootRule_closure7.prototype = {
  82721. call$0() {
  82722. var t1, t2, t3, _i;
  82723. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  82724. t1[_i].accept$1(t3);
  82725. },
  82726. $signature: 0
  82727. };
  82728. A._EvaluateVisitor__scopeForAtRoot_closure11.prototype = {
  82729. call$1(callback) {
  82730. var t1 = this.$this,
  82731. t2 = t1._evaluate0$_assertInModule$2(t1._evaluate0$__parent, "__parent");
  82732. t1._evaluate0$__parent = this.newParent;
  82733. t1._evaluate0$_environment.scope$1$2$when(callback, this.node.hasDeclarations, type$.void);
  82734. t1._evaluate0$__parent = t2;
  82735. },
  82736. $signature: 28
  82737. };
  82738. A._EvaluateVisitor__scopeForAtRoot_closure12.prototype = {
  82739. call$1(callback) {
  82740. var t1 = this.$this,
  82741. oldAtRootExcludingStyleRule = t1._evaluate0$_atRootExcludingStyleRule;
  82742. t1._evaluate0$_atRootExcludingStyleRule = true;
  82743. this.innerScope.call$1(callback);
  82744. t1._evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  82745. },
  82746. $signature: 28
  82747. };
  82748. A._EvaluateVisitor__scopeForAtRoot_closure13.prototype = {
  82749. call$1(callback) {
  82750. return this.$this._evaluate0$_withMediaQueries$3(null, null, new A._EvaluateVisitor__scopeForAtRoot__closure1(this.innerScope, callback));
  82751. },
  82752. $signature: 28
  82753. };
  82754. A._EvaluateVisitor__scopeForAtRoot__closure1.prototype = {
  82755. call$0() {
  82756. return this.innerScope.call$1(this.callback);
  82757. },
  82758. $signature: 1
  82759. };
  82760. A._EvaluateVisitor__scopeForAtRoot_closure14.prototype = {
  82761. call$1(callback) {
  82762. var t1 = this.$this,
  82763. wasInKeyframes = t1._evaluate0$_inKeyframes;
  82764. t1._evaluate0$_inKeyframes = false;
  82765. this.innerScope.call$1(callback);
  82766. t1._evaluate0$_inKeyframes = wasInKeyframes;
  82767. },
  82768. $signature: 28
  82769. };
  82770. A._EvaluateVisitor__scopeForAtRoot_closure15.prototype = {
  82771. call$1($parent) {
  82772. return type$.CssAtRule_2._is($parent);
  82773. },
  82774. $signature: 197
  82775. };
  82776. A._EvaluateVisitor__scopeForAtRoot_closure16.prototype = {
  82777. call$1(callback) {
  82778. var t1 = this.$this,
  82779. wasInUnknownAtRule = t1._evaluate0$_inUnknownAtRule;
  82780. t1._evaluate0$_inUnknownAtRule = false;
  82781. this.innerScope.call$1(callback);
  82782. t1._evaluate0$_inUnknownAtRule = wasInUnknownAtRule;
  82783. },
  82784. $signature: 28
  82785. };
  82786. A._EvaluateVisitor_visitContentRule_closure1.prototype = {
  82787. call$0() {
  82788. var t1, t2, t3, _i;
  82789. for (t1 = this.content.declaration.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  82790. t1[_i].accept$1(t3);
  82791. return null;
  82792. },
  82793. $signature: 1
  82794. };
  82795. A._EvaluateVisitor_visitDeclaration_closure3.prototype = {
  82796. call$1(value) {
  82797. return new A.CssValue0(value.accept$1(this.$this), value.get$span(value), type$.CssValue_Value_2);
  82798. },
  82799. $signature: 398
  82800. };
  82801. A._EvaluateVisitor_visitDeclaration_closure4.prototype = {
  82802. call$0() {
  82803. var t1, t2, t3, _i;
  82804. for (t1 = this.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  82805. t1[_i].accept$1(t3);
  82806. },
  82807. $signature: 1
  82808. };
  82809. A._EvaluateVisitor_visitEachRule_closure5.prototype = {
  82810. call$1(value) {
  82811. var t1 = this.$this,
  82812. t2 = this.nodeWithSpan;
  82813. return t1._evaluate0$_environment.setLocalVariable$3(B.JSArray_methods.get$first(this.node.variables), t1._evaluate0$_withoutSlash$2(value, t2), t2);
  82814. },
  82815. $signature: 56
  82816. };
  82817. A._EvaluateVisitor_visitEachRule_closure6.prototype = {
  82818. call$1(value) {
  82819. return this.$this._evaluate0$_setMultipleVariables$3(this.node.variables, value, this.nodeWithSpan);
  82820. },
  82821. $signature: 56
  82822. };
  82823. A._EvaluateVisitor_visitEachRule_closure7.prototype = {
  82824. call$0() {
  82825. var _this = this,
  82826. t1 = _this.$this;
  82827. return t1._evaluate0$_handleReturn$2(_this.list.get$asList(), new A._EvaluateVisitor_visitEachRule__closure1(t1, _this.setVariables, _this.node));
  82828. },
  82829. $signature: 41
  82830. };
  82831. A._EvaluateVisitor_visitEachRule__closure1.prototype = {
  82832. call$1(element) {
  82833. var t1;
  82834. this.setVariables.call$1(element);
  82835. t1 = this.$this;
  82836. return t1._evaluate0$_handleReturn$2(this.node.children, new A._EvaluateVisitor_visitEachRule___closure1(t1));
  82837. },
  82838. $signature: 185
  82839. };
  82840. A._EvaluateVisitor_visitEachRule___closure1.prototype = {
  82841. call$1(child) {
  82842. return child.accept$1(this.$this);
  82843. },
  82844. $signature: 80
  82845. };
  82846. A._EvaluateVisitor_visitExtendRule_closure1.prototype = {
  82847. call$0() {
  82848. return A.SelectorList_SelectorList$parse0(A.trimAscii0(this.targetText.value, true), false, true, this.$this._evaluate0$_logger);
  82849. },
  82850. $signature: 45
  82851. };
  82852. A._EvaluateVisitor_visitAtRule_closure5.prototype = {
  82853. call$1(value) {
  82854. return this.$this._evaluate0$_interpolationToValue$3$trim$warnForColor(value, true, true);
  82855. },
  82856. $signature: 401
  82857. };
  82858. A._EvaluateVisitor_visitAtRule_closure6.prototype = {
  82859. call$0() {
  82860. var t2, t3, _i,
  82861. t1 = this.$this,
  82862. styleRule = t1._evaluate0$_atRootExcludingStyleRule ? null : t1._evaluate0$_styleRuleIgnoringAtRoot;
  82863. if (styleRule == null || t1._evaluate0$_inKeyframes)
  82864. for (t2 = this.children, t3 = t2.length, _i = 0; _i < t3; ++_i)
  82865. t2[_i].accept$1(t1);
  82866. else
  82867. t1._evaluate0$_withParent$2$3$scopeWhen(A.ModifiableCssStyleRule$0(styleRule.selector, styleRule.span, styleRule.originalSelector), new A._EvaluateVisitor_visitAtRule__closure1(t1, this.children), false, type$.ModifiableCssStyleRule_2, type$.Null);
  82868. },
  82869. $signature: 1
  82870. };
  82871. A._EvaluateVisitor_visitAtRule__closure1.prototype = {
  82872. call$0() {
  82873. var t1, t2, t3, _i;
  82874. for (t1 = this.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  82875. t1[_i].accept$1(t3);
  82876. },
  82877. $signature: 1
  82878. };
  82879. A._EvaluateVisitor_visitAtRule_closure7.prototype = {
  82880. call$1(node) {
  82881. return type$.CssStyleRule_2._is(node);
  82882. },
  82883. $signature: 6
  82884. };
  82885. A._EvaluateVisitor_visitForRule_closure9.prototype = {
  82886. call$0() {
  82887. return this.node.from.accept$1(this.$this).assertNumber$0();
  82888. },
  82889. $signature: 182
  82890. };
  82891. A._EvaluateVisitor_visitForRule_closure10.prototype = {
  82892. call$0() {
  82893. return this.node.to.accept$1(this.$this).assertNumber$0();
  82894. },
  82895. $signature: 182
  82896. };
  82897. A._EvaluateVisitor_visitForRule_closure11.prototype = {
  82898. call$0() {
  82899. return this.fromNumber.assertInt$0();
  82900. },
  82901. $signature: 12
  82902. };
  82903. A._EvaluateVisitor_visitForRule_closure12.prototype = {
  82904. call$0() {
  82905. var t1 = this.fromNumber;
  82906. return this.toNumber.coerce$2(t1.get$numeratorUnits(t1), t1.get$denominatorUnits(t1)).assertInt$0();
  82907. },
  82908. $signature: 12
  82909. };
  82910. A._EvaluateVisitor_visitForRule_closure13.prototype = {
  82911. call$0() {
  82912. var i, t3, t4, t5, t6, t7, t8, result, _this = this,
  82913. t1 = _this.$this,
  82914. t2 = _this.node,
  82915. nodeWithSpan = t1._evaluate0$_expressionNode$1(t2.from);
  82916. for (i = _this.from, t3 = _this._box_0, t4 = _this.direction, t5 = t2.variable, t6 = _this.fromNumber, t2 = t2.children; i !== t3.to; i += t4) {
  82917. t7 = t1._evaluate0$_environment;
  82918. t8 = t6.get$numeratorUnits(t6);
  82919. t7.setLocalVariable$3(t5, A.SassNumber_SassNumber$withUnits0(i, t6.get$denominatorUnits(t6), t8), nodeWithSpan);
  82920. result = t1._evaluate0$_handleReturn$2(t2, new A._EvaluateVisitor_visitForRule__closure1(t1));
  82921. if (result != null)
  82922. return result;
  82923. }
  82924. return null;
  82925. },
  82926. $signature: 41
  82927. };
  82928. A._EvaluateVisitor_visitForRule__closure1.prototype = {
  82929. call$1(child) {
  82930. return child.accept$1(this.$this);
  82931. },
  82932. $signature: 80
  82933. };
  82934. A._EvaluateVisitor_visitForwardRule_closure3.prototype = {
  82935. call$1(module) {
  82936. this.$this._evaluate0$_environment.forwardModule$2(module, this.node);
  82937. },
  82938. $signature: 61
  82939. };
  82940. A._EvaluateVisitor_visitForwardRule_closure4.prototype = {
  82941. call$1(module) {
  82942. this.$this._evaluate0$_environment.forwardModule$2(module, this.node);
  82943. },
  82944. $signature: 61
  82945. };
  82946. A._EvaluateVisitor_visitIfRule_closure1.prototype = {
  82947. call$0() {
  82948. var t1 = this.$this;
  82949. return t1._evaluate0$_handleReturn$2(this._box_0.clause.children, new A._EvaluateVisitor_visitIfRule__closure1(t1));
  82950. },
  82951. $signature: 41
  82952. };
  82953. A._EvaluateVisitor_visitIfRule__closure1.prototype = {
  82954. call$1(child) {
  82955. return child.accept$1(this.$this);
  82956. },
  82957. $signature: 80
  82958. };
  82959. A._EvaluateVisitor__visitDynamicImport_closure1.prototype = {
  82960. call$0() {
  82961. var t3, t4, oldImporter, oldInDependency, loadsUserDefinedModules, children, t5, t6, t7, t8, t9, t10, environment, module, visitor,
  82962. t1 = this.$this,
  82963. t2 = this.$import,
  82964. result = t1._evaluate0$_loadStylesheet$3$forImport(t2.urlString, t2.span, true),
  82965. stylesheet = result.stylesheet,
  82966. url = stylesheet.span.file.url;
  82967. if (url != null) {
  82968. t3 = t1._evaluate0$_activeModules;
  82969. if (t3.containsKey$1(url)) {
  82970. t2 = A.NullableExtension_andThen0(t3.$index(0, url), new A._EvaluateVisitor__visitDynamicImport__closure7(t1));
  82971. throw A.wrapException(t2 == null ? t1._evaluate0$_exception$1("This file is already being loaded.") : t2);
  82972. }
  82973. t3.$indexSet(0, url, t2);
  82974. }
  82975. t2 = stylesheet._stylesheet1$_uses;
  82976. t3 = type$.UnmodifiableListView_UseRule_2;
  82977. t4 = new A.UnmodifiableListView(t2, t3);
  82978. if (t4.get$length(t4) === 0) {
  82979. t4 = new A.UnmodifiableListView(stylesheet._stylesheet1$_forwards, type$.UnmodifiableListView_ForwardRule_2);
  82980. t4 = t4.get$length(t4) === 0;
  82981. } else
  82982. t4 = false;
  82983. if (t4) {
  82984. oldImporter = t1._evaluate0$_importer;
  82985. t2 = t1._evaluate0$_assertInModule$2(t1._evaluate0$__stylesheet, "_stylesheet");
  82986. oldInDependency = t1._evaluate0$_inDependency;
  82987. t1._evaluate0$_importer = result.importer;
  82988. t1._evaluate0$__stylesheet = stylesheet;
  82989. t1._evaluate0$_inDependency = result.isDependency;
  82990. t1.visitStylesheet$1(stylesheet);
  82991. t1._evaluate0$_importer = oldImporter;
  82992. t1._evaluate0$__stylesheet = t2;
  82993. t1._evaluate0$_inDependency = oldInDependency;
  82994. t1._evaluate0$_activeModules.remove$1(0, url);
  82995. return;
  82996. }
  82997. t2 = new A.UnmodifiableListView(t2, t3);
  82998. if (!t2.any$1(t2, new A._EvaluateVisitor__visitDynamicImport__closure8())) {
  82999. t2 = new A.UnmodifiableListView(stylesheet._stylesheet1$_forwards, type$.UnmodifiableListView_ForwardRule_2);
  83000. loadsUserDefinedModules = t2.any$1(t2, new A._EvaluateVisitor__visitDynamicImport__closure9());
  83001. } else
  83002. loadsUserDefinedModules = true;
  83003. children = A._Cell$();
  83004. t2 = t1._evaluate0$_environment;
  83005. t3 = type$.String;
  83006. t4 = type$.Module_Callable_2;
  83007. t5 = type$.AstNode_2;
  83008. t6 = A._setArrayType([], type$.JSArray_Module_Callable_2);
  83009. t7 = t2._environment0$_variables;
  83010. t7 = A._setArrayType(t7.slice(0), A._arrayInstanceType(t7));
  83011. t8 = t2._environment0$_variableNodes;
  83012. t8 = A._setArrayType(t8.slice(0), A._arrayInstanceType(t8));
  83013. t9 = t2._environment0$_functions;
  83014. t9 = A._setArrayType(t9.slice(0), A._arrayInstanceType(t9));
  83015. t10 = t2._environment0$_mixins;
  83016. t10 = A._setArrayType(t10.slice(0), A._arrayInstanceType(t10));
  83017. environment = A.Environment$_0(A.LinkedHashMap_LinkedHashMap$_empty(t3, t4), A.LinkedHashMap_LinkedHashMap$_empty(t3, t5), A.LinkedHashMap_LinkedHashMap$_empty(t4, t5), t2._environment0$_importedModules, null, null, t6, t7, t8, t9, t10, t2._environment0$_content);
  83018. t1._evaluate0$_withEnvironment$2(environment, new A._EvaluateVisitor__visitDynamicImport__closure10(t1, result, stylesheet, loadsUserDefinedModules, environment, children));
  83019. module = environment.toDummyModule$0();
  83020. t1._evaluate0$_environment.importForwards$1(module);
  83021. if (loadsUserDefinedModules) {
  83022. if (module.transitivelyContainsCss)
  83023. t1._evaluate0$_combineCss$2$clone(module, module.transitivelyContainsExtensions).accept$1(t1);
  83024. visitor = new A._ImportedCssVisitor1(t1);
  83025. for (t2 = J.get$iterator$ax(children._readLocal$0()); t2.moveNext$0();)
  83026. t2.get$current(t2).accept$1(visitor);
  83027. }
  83028. t1._evaluate0$_activeModules.remove$1(0, url);
  83029. },
  83030. $signature: 0
  83031. };
  83032. A._EvaluateVisitor__visitDynamicImport__closure7.prototype = {
  83033. call$1(previousLoad) {
  83034. return this.$this._evaluate0$_multiSpanException$3("This file is already being loaded.", "new load", A.LinkedHashMap_LinkedHashMap$_literal([previousLoad.get$span(previousLoad), "original load"], type$.FileSpan, type$.String));
  83035. },
  83036. $signature: 92
  83037. };
  83038. A._EvaluateVisitor__visitDynamicImport__closure8.prototype = {
  83039. call$1(rule) {
  83040. return rule.url.get$scheme() !== "sass";
  83041. },
  83042. $signature: 190
  83043. };
  83044. A._EvaluateVisitor__visitDynamicImport__closure9.prototype = {
  83045. call$1(rule) {
  83046. return rule.url.get$scheme() !== "sass";
  83047. },
  83048. $signature: 188
  83049. };
  83050. A._EvaluateVisitor__visitDynamicImport__closure10.prototype = {
  83051. call$0() {
  83052. var t7, t8, t9, _this = this,
  83053. t1 = _this.$this,
  83054. oldImporter = t1._evaluate0$_importer,
  83055. t2 = t1._evaluate0$_assertInModule$2(t1._evaluate0$__stylesheet, "_stylesheet"),
  83056. t3 = t1._evaluate0$_assertInModule$2(t1._evaluate0$__root, "_root"),
  83057. t4 = t1._evaluate0$_assertInModule$2(t1._evaluate0$__parent, "__parent"),
  83058. t5 = t1._evaluate0$_assertInModule$2(t1._evaluate0$__endOfImports, "_endOfImports"),
  83059. oldOutOfOrderImports = t1._evaluate0$_outOfOrderImports,
  83060. oldConfiguration = t1._evaluate0$_configuration,
  83061. oldInDependency = t1._evaluate0$_inDependency,
  83062. t6 = _this.result;
  83063. t1._evaluate0$_importer = t6.importer;
  83064. t7 = t1._evaluate0$__stylesheet = _this.stylesheet;
  83065. t8 = _this.loadsUserDefinedModules;
  83066. if (t8) {
  83067. t9 = A.ModifiableCssStylesheet$0(t7.span);
  83068. t1._evaluate0$__root = t9;
  83069. t1._evaluate0$__parent = t1._evaluate0$_assertInModule$2(t9, "_root");
  83070. t1._evaluate0$__endOfImports = 0;
  83071. t1._evaluate0$_outOfOrderImports = null;
  83072. }
  83073. t1._evaluate0$_inDependency = t6.isDependency;
  83074. t6 = new A.UnmodifiableListView(t7._stylesheet1$_forwards, type$.UnmodifiableListView_ForwardRule_2);
  83075. if (!t6.get$isEmpty(t6))
  83076. t1._evaluate0$_configuration = _this.environment.toImplicitConfiguration$0();
  83077. t1.visitStylesheet$1(t7);
  83078. t6 = t8 ? t1._evaluate0$_addOutOfOrderImports$0() : A._setArrayType([], type$.JSArray_ModifiableCssNode_2);
  83079. _this.children._value = t6;
  83080. t1._evaluate0$_importer = oldImporter;
  83081. t1._evaluate0$__stylesheet = t2;
  83082. if (t8) {
  83083. t1._evaluate0$__root = t3;
  83084. t1._evaluate0$__parent = t4;
  83085. t1._evaluate0$__endOfImports = t5;
  83086. t1._evaluate0$_outOfOrderImports = oldOutOfOrderImports;
  83087. }
  83088. t1._evaluate0$_configuration = oldConfiguration;
  83089. t1._evaluate0$_inDependency = oldInDependency;
  83090. },
  83091. $signature: 1
  83092. };
  83093. A._EvaluateVisitor_visitIncludeRule_closure7.prototype = {
  83094. call$0() {
  83095. var t1 = this.node;
  83096. return this.$this._evaluate0$_environment.getMixin$2$namespace(t1.name, t1.namespace);
  83097. },
  83098. $signature: 109
  83099. };
  83100. A._EvaluateVisitor_visitIncludeRule_closure8.prototype = {
  83101. call$0() {
  83102. return this.node.get$spanWithoutContent();
  83103. },
  83104. $signature: 31
  83105. };
  83106. A._EvaluateVisitor_visitIncludeRule_closure10.prototype = {
  83107. call$1($content) {
  83108. var t1 = this.$this;
  83109. return new A.UserDefinedCallable0($content, t1._evaluate0$_environment.closure$0(), t1._evaluate0$_inDependency, type$.UserDefinedCallable_Environment_2);
  83110. },
  83111. $signature: 403
  83112. };
  83113. A._EvaluateVisitor_visitIncludeRule_closure9.prototype = {
  83114. call$0() {
  83115. var _this = this,
  83116. t1 = _this.$this,
  83117. t2 = t1._evaluate0$_environment,
  83118. oldContent = t2._environment0$_content;
  83119. t2._environment0$_content = _this.contentCallable;
  83120. new A._EvaluateVisitor_visitIncludeRule__closure1(t1, _this.mixin, _this.nodeWithSpan).call$0();
  83121. t2._environment0$_content = oldContent;
  83122. },
  83123. $signature: 1
  83124. };
  83125. A._EvaluateVisitor_visitIncludeRule__closure1.prototype = {
  83126. call$0() {
  83127. var t1 = this.$this,
  83128. t2 = t1._evaluate0$_environment,
  83129. oldInMixin = t2._environment0$_inMixin;
  83130. t2._environment0$_inMixin = true;
  83131. new A._EvaluateVisitor_visitIncludeRule___closure1(t1, this.mixin, this.nodeWithSpan).call$0();
  83132. t2._environment0$_inMixin = oldInMixin;
  83133. },
  83134. $signature: 0
  83135. };
  83136. A._EvaluateVisitor_visitIncludeRule___closure1.prototype = {
  83137. call$0() {
  83138. var t1, t2, t3, t4, _i;
  83139. for (t1 = this.mixin.declaration.children, t2 = t1.length, t3 = this.$this, t4 = this.nodeWithSpan, _i = 0; _i < t2; ++_i)
  83140. t3._evaluate0$_addErrorSpan$2(t4, new A._EvaluateVisitor_visitIncludeRule____closure1(t3, t1[_i]));
  83141. },
  83142. $signature: 0
  83143. };
  83144. A._EvaluateVisitor_visitIncludeRule____closure1.prototype = {
  83145. call$0() {
  83146. return this.statement.accept$1(this.$this);
  83147. },
  83148. $signature: 41
  83149. };
  83150. A._EvaluateVisitor_visitMediaRule_closure5.prototype = {
  83151. call$1(mediaQueries) {
  83152. return this.$this._evaluate0$_mergeMediaQueries$2(mediaQueries, this.queries);
  83153. },
  83154. $signature: 89
  83155. };
  83156. A._EvaluateVisitor_visitMediaRule_closure6.prototype = {
  83157. call$0() {
  83158. var _this = this,
  83159. t1 = _this.$this,
  83160. t2 = _this.mergedQueries;
  83161. if (t2 == null)
  83162. t2 = _this.queries;
  83163. t1._evaluate0$_withMediaQueries$3(t2, _this.mergedSources, new A._EvaluateVisitor_visitMediaRule__closure1(t1, _this.node));
  83164. },
  83165. $signature: 1
  83166. };
  83167. A._EvaluateVisitor_visitMediaRule__closure1.prototype = {
  83168. call$0() {
  83169. var t2, t3, _i,
  83170. t1 = this.$this,
  83171. styleRule = t1._evaluate0$_atRootExcludingStyleRule ? null : t1._evaluate0$_styleRuleIgnoringAtRoot;
  83172. if (styleRule == null)
  83173. for (t2 = this.node.children, t3 = t2.length, _i = 0; _i < t3; ++_i)
  83174. t2[_i].accept$1(t1);
  83175. else
  83176. t1._evaluate0$_withParent$2$3$scopeWhen(A.ModifiableCssStyleRule$0(styleRule.selector, styleRule.span, styleRule.originalSelector), new A._EvaluateVisitor_visitMediaRule___closure1(t1, this.node), false, type$.ModifiableCssStyleRule_2, type$.Null);
  83177. },
  83178. $signature: 1
  83179. };
  83180. A._EvaluateVisitor_visitMediaRule___closure1.prototype = {
  83181. call$0() {
  83182. var t1, t2, t3, _i;
  83183. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  83184. t1[_i].accept$1(t3);
  83185. },
  83186. $signature: 1
  83187. };
  83188. A._EvaluateVisitor_visitMediaRule_closure7.prototype = {
  83189. call$1(node) {
  83190. var t1;
  83191. if (!type$.CssStyleRule_2._is(node)) {
  83192. t1 = this.mergedSources;
  83193. t1 = t1.get$isNotEmpty(t1) && type$.CssMediaRule_2._is(node) && B.JSArray_methods.every$1(node.queries, t1.get$contains(t1));
  83194. } else
  83195. t1 = true;
  83196. return t1;
  83197. },
  83198. $signature: 6
  83199. };
  83200. A._EvaluateVisitor__visitMediaQueries_closure1.prototype = {
  83201. call$0() {
  83202. var t1 = A.SpanScanner$(this.resolved, null);
  83203. return new A.MediaQueryParser0(t1, this.$this._evaluate0$_logger).parse$0();
  83204. },
  83205. $signature: 125
  83206. };
  83207. A._EvaluateVisitor_visitStyleRule_closure15.prototype = {
  83208. call$0() {
  83209. return A.KeyframeSelectorParser$0(this.selectorText.value, this.$this._evaluate0$_logger).parse$0();
  83210. },
  83211. $signature: 50
  83212. };
  83213. A._EvaluateVisitor_visitStyleRule_closure16.prototype = {
  83214. call$0() {
  83215. var t1, t2, t3, _i;
  83216. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  83217. t1[_i].accept$1(t3);
  83218. },
  83219. $signature: 1
  83220. };
  83221. A._EvaluateVisitor_visitStyleRule_closure17.prototype = {
  83222. call$1(node) {
  83223. return type$.CssStyleRule_2._is(node);
  83224. },
  83225. $signature: 6
  83226. };
  83227. A._EvaluateVisitor_visitStyleRule_closure18.prototype = {
  83228. call$0() {
  83229. var _s11_ = "_stylesheet",
  83230. t1 = this.$this;
  83231. return A.SelectorList_SelectorList$parse0(this.selectorText.value, !t1._evaluate0$_assertInModule$2(t1._evaluate0$__stylesheet, _s11_).plainCss, !t1._evaluate0$_assertInModule$2(t1._evaluate0$__stylesheet, _s11_).plainCss, t1._evaluate0$_logger);
  83232. },
  83233. $signature: 45
  83234. };
  83235. A._EvaluateVisitor_visitStyleRule_closure19.prototype = {
  83236. call$0() {
  83237. var t1 = this._box_0.parsedSelector,
  83238. t2 = this.$this,
  83239. t3 = t2._evaluate0$_styleRuleIgnoringAtRoot;
  83240. t3 = t3 == null ? null : t3.originalSelector;
  83241. return t1.resolveParentSelectors$2$implicitParent(t3, !t2._evaluate0$_atRootExcludingStyleRule);
  83242. },
  83243. $signature: 45
  83244. };
  83245. A._EvaluateVisitor_visitStyleRule_closure20.prototype = {
  83246. call$0() {
  83247. var t1 = this.$this;
  83248. t1._evaluate0$_withStyleRule$2(this.rule, new A._EvaluateVisitor_visitStyleRule__closure1(t1, this.node));
  83249. },
  83250. $signature: 1
  83251. };
  83252. A._EvaluateVisitor_visitStyleRule__closure1.prototype = {
  83253. call$0() {
  83254. var t1, t2, t3, _i;
  83255. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  83256. t1[_i].accept$1(t3);
  83257. },
  83258. $signature: 1
  83259. };
  83260. A._EvaluateVisitor_visitStyleRule_closure21.prototype = {
  83261. call$1(node) {
  83262. return type$.CssStyleRule_2._is(node);
  83263. },
  83264. $signature: 6
  83265. };
  83266. A._EvaluateVisitor_visitStyleRule_closure22.prototype = {
  83267. call$1(child) {
  83268. return type$.CssComment_2._is(child);
  83269. },
  83270. $signature: 124
  83271. };
  83272. A._EvaluateVisitor_visitSupportsRule_closure3.prototype = {
  83273. call$0() {
  83274. var t2, t3, _i,
  83275. t1 = this.$this,
  83276. styleRule = t1._evaluate0$_atRootExcludingStyleRule ? null : t1._evaluate0$_styleRuleIgnoringAtRoot;
  83277. if (styleRule == null)
  83278. for (t2 = this.node.children, t3 = t2.length, _i = 0; _i < t3; ++_i)
  83279. t2[_i].accept$1(t1);
  83280. else
  83281. t1._evaluate0$_withParent$2$2(A.ModifiableCssStyleRule$0(styleRule.selector, styleRule.span, styleRule.originalSelector), new A._EvaluateVisitor_visitSupportsRule__closure1(t1, this.node), type$.ModifiableCssStyleRule_2, type$.Null);
  83282. },
  83283. $signature: 1
  83284. };
  83285. A._EvaluateVisitor_visitSupportsRule__closure1.prototype = {
  83286. call$0() {
  83287. var t1, t2, t3, _i;
  83288. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  83289. t1[_i].accept$1(t3);
  83290. },
  83291. $signature: 1
  83292. };
  83293. A._EvaluateVisitor_visitSupportsRule_closure4.prototype = {
  83294. call$1(node) {
  83295. return type$.CssStyleRule_2._is(node);
  83296. },
  83297. $signature: 6
  83298. };
  83299. A._EvaluateVisitor_visitVariableDeclaration_closure5.prototype = {
  83300. call$0() {
  83301. var t1 = this.override;
  83302. this.$this._evaluate0$_environment.setVariable$4$global(this.node.name, t1.value, t1.assignmentNode, true);
  83303. },
  83304. $signature: 1
  83305. };
  83306. A._EvaluateVisitor_visitVariableDeclaration_closure6.prototype = {
  83307. call$0() {
  83308. var t1 = this.node;
  83309. return this.$this._evaluate0$_environment.getVariable$2$namespace(t1.name, t1.namespace);
  83310. },
  83311. $signature: 41
  83312. };
  83313. A._EvaluateVisitor_visitVariableDeclaration_closure7.prototype = {
  83314. call$0() {
  83315. var t1 = this.$this,
  83316. t2 = this.node;
  83317. t1._evaluate0$_environment.setVariable$5$global$namespace(t2.name, this.value, t1._evaluate0$_expressionNode$1(t2.expression), t2.isGlobal, t2.namespace);
  83318. },
  83319. $signature: 1
  83320. };
  83321. A._EvaluateVisitor_visitUseRule_closure1.prototype = {
  83322. call$1(module) {
  83323. var t1 = this.node;
  83324. this.$this._evaluate0$_environment.addModule$3$namespace(module, t1, t1.namespace);
  83325. },
  83326. $signature: 61
  83327. };
  83328. A._EvaluateVisitor_visitWarnRule_closure1.prototype = {
  83329. call$0() {
  83330. return this.node.expression.accept$1(this.$this);
  83331. },
  83332. $signature: 47
  83333. };
  83334. A._EvaluateVisitor_visitWhileRule_closure1.prototype = {
  83335. call$0() {
  83336. var t1, t2, t3, result;
  83337. for (t1 = this.node, t2 = t1.condition, t3 = this.$this, t1 = t1.children; t2.accept$1(t3).get$isTruthy();) {
  83338. result = t3._evaluate0$_handleReturn$2(t1, new A._EvaluateVisitor_visitWhileRule__closure1(t3));
  83339. if (result != null)
  83340. return result;
  83341. }
  83342. return null;
  83343. },
  83344. $signature: 41
  83345. };
  83346. A._EvaluateVisitor_visitWhileRule__closure1.prototype = {
  83347. call$1(child) {
  83348. return child.accept$1(this.$this);
  83349. },
  83350. $signature: 80
  83351. };
  83352. A._EvaluateVisitor_visitBinaryOperationExpression_closure1.prototype = {
  83353. call$0() {
  83354. var right, result,
  83355. t1 = this.node,
  83356. t2 = this.$this,
  83357. left = t1.left.accept$1(t2),
  83358. t3 = t1.operator;
  83359. switch (t3) {
  83360. case B.BinaryOperator_axY0:
  83361. right = t1.right.accept$1(t2);
  83362. return new A.SassString0(A.serializeValue0(left, false, true) + "=" + A.serializeValue0(right, false, true), false);
  83363. case B.BinaryOperator_or_or_1_or0:
  83364. return left.get$isTruthy() ? left : t1.right.accept$1(t2);
  83365. case B.BinaryOperator_and_and_2_and0:
  83366. return left.get$isTruthy() ? t1.right.accept$1(t2) : left;
  83367. case B.BinaryOperator_nZh0:
  83368. return left.$eq(0, t1.right.accept$1(t2)) ? B.SassBoolean_true0 : B.SassBoolean_false0;
  83369. case B.BinaryOperator_Vr90:
  83370. return !left.$eq(0, t1.right.accept$1(t2)) ? B.SassBoolean_true0 : B.SassBoolean_false0;
  83371. case B.BinaryOperator_cw10:
  83372. return left.greaterThan$1(t1.right.accept$1(t2));
  83373. case B.BinaryOperator_Wma0:
  83374. return left.greaterThanOrEquals$1(t1.right.accept$1(t2));
  83375. case B.BinaryOperator_apg0:
  83376. return left.lessThan$1(t1.right.accept$1(t2));
  83377. case B.BinaryOperator_oqF0:
  83378. return left.lessThanOrEquals$1(t1.right.accept$1(t2));
  83379. case B.BinaryOperator_qbf0:
  83380. return left.plus$1(t1.right.accept$1(t2));
  83381. case B.BinaryOperator_KlB0:
  83382. return left.minus$1(t1.right.accept$1(t2));
  83383. case B.BinaryOperator_6pl0:
  83384. return left.times$1(t1.right.accept$1(t2));
  83385. case B.BinaryOperator_qpm0:
  83386. right = t1.right.accept$1(t2);
  83387. result = left.dividedBy$1(right);
  83388. if (t1.allowsSlash && left instanceof A.SassNumber0 && right instanceof A.SassNumber0)
  83389. return type$.SassNumber_2._as(result).withSlash$2(left, right);
  83390. else {
  83391. if (left instanceof A.SassNumber0 && right instanceof A.SassNumber0)
  83392. t2._evaluate0$_warn$3$deprecation(string$.Using__o + A.S(new A._EvaluateVisitor_visitBinaryOperationExpression_closure_recommendation1().call$1(t1)) + " or calc(" + t1.toString$0(0) + string$.x29x0a_Morx20, t1.get$span(t1), true);
  83393. return result;
  83394. }
  83395. case B.BinaryOperator_PHH0:
  83396. return left.modulo$1(t1.right.accept$1(t2));
  83397. default:
  83398. throw A.wrapException(A.ArgumentError$("Unknown binary operator " + t3.toString$0(0) + ".", null));
  83399. }
  83400. },
  83401. $signature: 47
  83402. };
  83403. A._EvaluateVisitor_visitBinaryOperationExpression_closure_recommendation1.prototype = {
  83404. call$1(expression) {
  83405. if (expression instanceof A.BinaryOperationExpression0 && expression.operator === B.BinaryOperator_qpm0)
  83406. return "math.div(" + A.S(this.call$1(expression.left)) + ", " + A.S(this.call$1(expression.right)) + ")";
  83407. else if (expression instanceof A.ParenthesizedExpression0)
  83408. return expression.expression.toString$0(0);
  83409. else
  83410. return expression.toString$0(0);
  83411. },
  83412. $signature: 122
  83413. };
  83414. A._EvaluateVisitor_visitVariableExpression_closure1.prototype = {
  83415. call$0() {
  83416. var t1 = this.node;
  83417. return this.$this._evaluate0$_environment.getVariable$2$namespace(t1.name, t1.namespace);
  83418. },
  83419. $signature: 41
  83420. };
  83421. A._EvaluateVisitor_visitUnaryOperationExpression_closure1.prototype = {
  83422. call$0() {
  83423. var _this = this,
  83424. t1 = _this.node.operator;
  83425. switch (t1) {
  83426. case B.UnaryOperator_gg40:
  83427. return _this.operand.unaryPlus$0();
  83428. case B.UnaryOperator_TLI0:
  83429. return _this.operand.unaryMinus$0();
  83430. case B.UnaryOperator_Ix10:
  83431. return new A.SassString0("/" + A.serializeValue0(_this.operand, false, true), false);
  83432. case B.UnaryOperator_not_not_not0:
  83433. return _this.operand.unaryNot$0();
  83434. default:
  83435. throw A.wrapException(A.StateError$("Unknown unary operator " + t1.toString$0(0) + "."));
  83436. }
  83437. },
  83438. $signature: 47
  83439. };
  83440. A._EvaluateVisitor__visitCalculationValue_closure1.prototype = {
  83441. call$0() {
  83442. var t1 = this.$this,
  83443. t2 = this.node,
  83444. t3 = this.inMinMax;
  83445. return A.SassCalculation_operateInternal0(t1._evaluate0$_binaryOperatorToCalculationOperator$1(t2.operator), t1._evaluate0$_visitCalculationValue$2$inMinMax(t2.left, t3), t1._evaluate0$_visitCalculationValue$2$inMinMax(t2.right, t3), t3, !t1._evaluate0$_inSupportsDeclaration);
  83446. },
  83447. $signature: 76
  83448. };
  83449. A._EvaluateVisitor_visitListExpression_closure1.prototype = {
  83450. call$1(expression) {
  83451. return expression.accept$1(this.$this);
  83452. },
  83453. $signature: 404
  83454. };
  83455. A._EvaluateVisitor_visitFunctionExpression_closure3.prototype = {
  83456. call$0() {
  83457. var t1 = this.node;
  83458. return this.$this._evaluate0$_getFunction$2$namespace(A.stringReplaceAllUnchecked(t1.originalName, "_", "-"), t1.namespace);
  83459. },
  83460. $signature: 109
  83461. };
  83462. A._EvaluateVisitor_visitFunctionExpression_closure4.prototype = {
  83463. call$0() {
  83464. var t1 = this.node;
  83465. return this.$this._evaluate0$_runFunctionCallable$3(t1.$arguments, this._box_0.$function, t1);
  83466. },
  83467. $signature: 47
  83468. };
  83469. A._EvaluateVisitor_visitInterpolatedFunctionExpression_closure1.prototype = {
  83470. call$0() {
  83471. var t1 = this.node;
  83472. return this.$this._evaluate0$_runFunctionCallable$3(t1.$arguments, this.$function, t1);
  83473. },
  83474. $signature: 47
  83475. };
  83476. A._EvaluateVisitor__runUserDefinedCallable_closure1.prototype = {
  83477. call$0() {
  83478. var _this = this,
  83479. t1 = _this.$this,
  83480. t2 = _this.callable;
  83481. return t1._evaluate0$_withEnvironment$2(t2.environment.closure$0(), new A._EvaluateVisitor__runUserDefinedCallable__closure1(t1, _this.evaluated, t2, _this.nodeWithSpan, _this.run, _this.V));
  83482. },
  83483. $signature() {
  83484. return this.V._eval$1("0()");
  83485. }
  83486. };
  83487. A._EvaluateVisitor__runUserDefinedCallable__closure1.prototype = {
  83488. call$0() {
  83489. var _this = this,
  83490. t1 = _this.$this,
  83491. t2 = _this.V;
  83492. return t1._evaluate0$_environment.scope$1$1(new A._EvaluateVisitor__runUserDefinedCallable___closure1(t1, _this.evaluated, _this.callable, _this.nodeWithSpan, _this.run, t2), t2);
  83493. },
  83494. $signature() {
  83495. return this.V._eval$1("0()");
  83496. }
  83497. };
  83498. A._EvaluateVisitor__runUserDefinedCallable___closure1.prototype = {
  83499. call$0() {
  83500. var declaredArguments, t7, minLength, t8, i, argument, t9, value, t10, t11, restArgument, rest, argumentList, result, _this = this,
  83501. t1 = _this.$this,
  83502. t2 = _this.evaluated,
  83503. t3 = t2.positional,
  83504. t4 = t2.named,
  83505. t5 = _this.callable.declaration.$arguments,
  83506. t6 = _this.nodeWithSpan;
  83507. t1._evaluate0$_verifyArguments$4(t3.length, t4, t5, t6);
  83508. declaredArguments = t5.$arguments;
  83509. t7 = declaredArguments.length;
  83510. minLength = Math.min(t3.length, t7);
  83511. for (t8 = t2.positionalNodes, i = 0; i < minLength; ++i)
  83512. t1._evaluate0$_environment.setLocalVariable$3(declaredArguments[i].name, t3[i], t8[i]);
  83513. for (i = t3.length, t8 = t2.namedNodes; i < t7; ++i) {
  83514. argument = declaredArguments[i];
  83515. t9 = argument.name;
  83516. value = t4.remove$1(0, t9);
  83517. if (value == null) {
  83518. t10 = argument.defaultValue;
  83519. value = t1._evaluate0$_withoutSlash$2(t10.accept$1(t1), t1._evaluate0$_expressionNode$1(t10));
  83520. }
  83521. t10 = t1._evaluate0$_environment;
  83522. t11 = t8.$index(0, t9);
  83523. if (t11 == null) {
  83524. t11 = argument.defaultValue;
  83525. t11.toString;
  83526. t11 = t1._evaluate0$_expressionNode$1(t11);
  83527. }
  83528. t10.setLocalVariable$3(t9, value, t11);
  83529. }
  83530. restArgument = t5.restArgument;
  83531. if (restArgument != null) {
  83532. rest = t3.length > t7 ? B.JSArray_methods.sublist$1(t3, t7) : B.List_empty19;
  83533. t2 = t2.separator;
  83534. argumentList = A.SassArgumentList$0(rest, t4, t2 === B.ListSeparator_undecided_null_undecided0 ? B.ListSeparator_rXA0 : t2);
  83535. t1._evaluate0$_environment.setLocalVariable$3(restArgument, argumentList, t6);
  83536. } else
  83537. argumentList = null;
  83538. result = _this.run.call$0();
  83539. if (argumentList == null)
  83540. return result;
  83541. t2 = t4.__js_helper$_length;
  83542. if (t2 === 0)
  83543. return result;
  83544. if (argumentList._argument_list$_wereKeywordsAccessed)
  83545. return result;
  83546. t3 = A._instanceType(t4)._eval$1("LinkedHashMapKeyIterable<1>");
  83547. throw A.wrapException(A.MultiSpanSassRuntimeException$0("No " + A.pluralize0("argument", t2, null) + " named " + A.toSentence0(A.MappedIterable_MappedIterable(new A.LinkedHashMapKeyIterable(t4, t3), new A._EvaluateVisitor__runUserDefinedCallable____closure1(), t3._eval$1("Iterable.E"), type$.Object), "or") + ".", t6.get$span(t6), "invocation", A.LinkedHashMap_LinkedHashMap$_literal([t5.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), t1._evaluate0$_stackTrace$1(t6.get$span(t6))));
  83548. },
  83549. $signature() {
  83550. return this.V._eval$1("0()");
  83551. }
  83552. };
  83553. A._EvaluateVisitor__runUserDefinedCallable____closure1.prototype = {
  83554. call$1($name) {
  83555. return "$" + $name;
  83556. },
  83557. $signature: 5
  83558. };
  83559. A._EvaluateVisitor__runFunctionCallable_closure1.prototype = {
  83560. call$0() {
  83561. var t1, t2, t3, t4, _i, $returnValue;
  83562. for (t1 = this.callable.declaration, t2 = t1.children, t3 = t2.length, t4 = this.$this, _i = 0; _i < t3; ++_i) {
  83563. $returnValue = t2[_i].accept$1(t4);
  83564. if ($returnValue instanceof A.Value0)
  83565. return $returnValue;
  83566. }
  83567. throw A.wrapException(t4._evaluate0$_exception$2("Function finished without @return.", t1.span));
  83568. },
  83569. $signature: 47
  83570. };
  83571. A._EvaluateVisitor__runBuiltInCallable_closure3.prototype = {
  83572. call$0() {
  83573. return this.overload.verify$2(this.evaluated.positional.length, this.namedSet);
  83574. },
  83575. $signature: 0
  83576. };
  83577. A._EvaluateVisitor__runBuiltInCallable_closure4.prototype = {
  83578. call$1($name) {
  83579. return "$" + $name;
  83580. },
  83581. $signature: 5
  83582. };
  83583. A._EvaluateVisitor__evaluateArguments_closure7.prototype = {
  83584. call$1(value) {
  83585. return value;
  83586. },
  83587. $signature: 36
  83588. };
  83589. A._EvaluateVisitor__evaluateArguments_closure8.prototype = {
  83590. call$1(value) {
  83591. return this.$this._evaluate0$_withoutSlash$2(value, this.restNodeForSpan);
  83592. },
  83593. $signature: 36
  83594. };
  83595. A._EvaluateVisitor__evaluateArguments_closure9.prototype = {
  83596. call$2(key, value) {
  83597. var _this = this,
  83598. t1 = _this.restNodeForSpan;
  83599. _this.named.$indexSet(0, key, _this.$this._evaluate0$_withoutSlash$2(value, t1));
  83600. _this.namedNodes.$indexSet(0, key, t1);
  83601. },
  83602. $signature: 88
  83603. };
  83604. A._EvaluateVisitor__evaluateArguments_closure10.prototype = {
  83605. call$1(value) {
  83606. return value;
  83607. },
  83608. $signature: 36
  83609. };
  83610. A._EvaluateVisitor__evaluateMacroArguments_closure7.prototype = {
  83611. call$1(value) {
  83612. var t1 = this.restArgs;
  83613. return new A.ValueExpression0(value, t1.get$span(t1));
  83614. },
  83615. $signature: 58
  83616. };
  83617. A._EvaluateVisitor__evaluateMacroArguments_closure8.prototype = {
  83618. call$1(value) {
  83619. var t1 = this.restArgs;
  83620. return new A.ValueExpression0(this.$this._evaluate0$_withoutSlash$2(value, this.restNodeForSpan), t1.get$span(t1));
  83621. },
  83622. $signature: 58
  83623. };
  83624. A._EvaluateVisitor__evaluateMacroArguments_closure9.prototype = {
  83625. call$2(key, value) {
  83626. var _this = this,
  83627. t1 = _this.restArgs;
  83628. _this.named.$indexSet(0, key, new A.ValueExpression0(_this.$this._evaluate0$_withoutSlash$2(value, _this.restNodeForSpan), t1.get$span(t1)));
  83629. },
  83630. $signature: 88
  83631. };
  83632. A._EvaluateVisitor__evaluateMacroArguments_closure10.prototype = {
  83633. call$1(value) {
  83634. var t1 = this.keywordRestArgs;
  83635. return new A.ValueExpression0(this.$this._evaluate0$_withoutSlash$2(value, this.keywordRestNodeForSpan), t1.get$span(t1));
  83636. },
  83637. $signature: 58
  83638. };
  83639. A._EvaluateVisitor__addRestMap_closure1.prototype = {
  83640. call$2(key, value) {
  83641. var t2, _this = this,
  83642. t1 = _this.$this;
  83643. if (key instanceof A.SassString0)
  83644. _this.values.$indexSet(0, key._string0$_text, _this.convert.call$1(t1._evaluate0$_withoutSlash$2(value, _this.expressionNode)));
  83645. else {
  83646. t2 = _this.nodeWithSpan;
  83647. throw A.wrapException(t1._evaluate0$_exception$2(string$.Variab_ + key.toString$0(0) + " is not a string in " + _this.map.toString$0(0) + ".", t2.get$span(t2)));
  83648. }
  83649. },
  83650. $signature: 55
  83651. };
  83652. A._EvaluateVisitor__verifyArguments_closure1.prototype = {
  83653. call$0() {
  83654. return this.$arguments.verify$2(this.positional, new A.MapKeySet(this.named, type$.MapKeySet_String));
  83655. },
  83656. $signature: 0
  83657. };
  83658. A._EvaluateVisitor_visitStringExpression_closure1.prototype = {
  83659. call$1(value) {
  83660. var t1, result;
  83661. if (typeof value == "string")
  83662. return value;
  83663. type$.Expression_2._as(value);
  83664. t1 = this.$this;
  83665. result = value.accept$1(t1);
  83666. return result instanceof A.SassString0 ? result._string0$_text : t1._evaluate0$_serialize$3$quote(result, value, false);
  83667. },
  83668. $signature: 46
  83669. };
  83670. A._EvaluateVisitor_visitCssAtRule_closure3.prototype = {
  83671. call$0() {
  83672. var t1, t2, t3, t4;
  83673. for (t1 = this.node.children, t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = this.$this, t3 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) {
  83674. t4 = t1.__internal$_current;
  83675. (t4 == null ? t3._as(t4) : t4).accept$1(t2);
  83676. }
  83677. },
  83678. $signature: 1
  83679. };
  83680. A._EvaluateVisitor_visitCssAtRule_closure4.prototype = {
  83681. call$1(node) {
  83682. return type$.CssStyleRule_2._is(node);
  83683. },
  83684. $signature: 6
  83685. };
  83686. A._EvaluateVisitor_visitCssKeyframeBlock_closure3.prototype = {
  83687. call$0() {
  83688. var t1, t2, t3, t4;
  83689. for (t1 = this.node.children, t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = this.$this, t3 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) {
  83690. t4 = t1.__internal$_current;
  83691. (t4 == null ? t3._as(t4) : t4).accept$1(t2);
  83692. }
  83693. },
  83694. $signature: 1
  83695. };
  83696. A._EvaluateVisitor_visitCssKeyframeBlock_closure4.prototype = {
  83697. call$1(node) {
  83698. return type$.CssStyleRule_2._is(node);
  83699. },
  83700. $signature: 6
  83701. };
  83702. A._EvaluateVisitor_visitCssMediaRule_closure5.prototype = {
  83703. call$1(mediaQueries) {
  83704. return this.$this._evaluate0$_mergeMediaQueries$2(mediaQueries, this.node.queries);
  83705. },
  83706. $signature: 89
  83707. };
  83708. A._EvaluateVisitor_visitCssMediaRule_closure6.prototype = {
  83709. call$0() {
  83710. var _this = this,
  83711. t1 = _this.$this,
  83712. t2 = _this.mergedQueries;
  83713. if (t2 == null)
  83714. t2 = _this.node.queries;
  83715. t1._evaluate0$_withMediaQueries$3(t2, _this.mergedSources, new A._EvaluateVisitor_visitCssMediaRule__closure1(t1, _this.node));
  83716. },
  83717. $signature: 1
  83718. };
  83719. A._EvaluateVisitor_visitCssMediaRule__closure1.prototype = {
  83720. call$0() {
  83721. var t2, t3, t4,
  83722. t1 = this.$this,
  83723. styleRule = t1._evaluate0$_atRootExcludingStyleRule ? null : t1._evaluate0$_styleRuleIgnoringAtRoot;
  83724. if (styleRule == null)
  83725. for (t2 = this.node.children, t2 = new A.ListIterator(t2, t2.get$length(t2)), t3 = A._instanceType(t2)._precomputed1; t2.moveNext$0();) {
  83726. t4 = t2.__internal$_current;
  83727. (t4 == null ? t3._as(t4) : t4).accept$1(t1);
  83728. }
  83729. else
  83730. t1._evaluate0$_withParent$2$3$scopeWhen(A.ModifiableCssStyleRule$0(styleRule.selector, styleRule.span, styleRule.originalSelector), new A._EvaluateVisitor_visitCssMediaRule___closure1(t1, this.node), false, type$.ModifiableCssStyleRule_2, type$.Null);
  83731. },
  83732. $signature: 1
  83733. };
  83734. A._EvaluateVisitor_visitCssMediaRule___closure1.prototype = {
  83735. call$0() {
  83736. var t1, t2, t3, t4;
  83737. for (t1 = this.node.children, t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = this.$this, t3 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) {
  83738. t4 = t1.__internal$_current;
  83739. (t4 == null ? t3._as(t4) : t4).accept$1(t2);
  83740. }
  83741. },
  83742. $signature: 1
  83743. };
  83744. A._EvaluateVisitor_visitCssMediaRule_closure7.prototype = {
  83745. call$1(node) {
  83746. var t1;
  83747. if (!type$.CssStyleRule_2._is(node)) {
  83748. t1 = this.mergedSources;
  83749. t1 = t1.get$isNotEmpty(t1) && type$.CssMediaRule_2._is(node) && B.JSArray_methods.every$1(node.queries, t1.get$contains(t1));
  83750. } else
  83751. t1 = true;
  83752. return t1;
  83753. },
  83754. $signature: 6
  83755. };
  83756. A._EvaluateVisitor_visitCssStyleRule_closure3.prototype = {
  83757. call$0() {
  83758. var t1 = this.$this;
  83759. t1._evaluate0$_withStyleRule$2(this.rule, new A._EvaluateVisitor_visitCssStyleRule__closure1(t1, this.node));
  83760. },
  83761. $signature: 1
  83762. };
  83763. A._EvaluateVisitor_visitCssStyleRule__closure1.prototype = {
  83764. call$0() {
  83765. var t1, t2, t3, t4;
  83766. for (t1 = this.node.children, t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = this.$this, t3 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) {
  83767. t4 = t1.__internal$_current;
  83768. (t4 == null ? t3._as(t4) : t4).accept$1(t2);
  83769. }
  83770. },
  83771. $signature: 1
  83772. };
  83773. A._EvaluateVisitor_visitCssStyleRule_closure4.prototype = {
  83774. call$1(node) {
  83775. return type$.CssStyleRule_2._is(node);
  83776. },
  83777. $signature: 6
  83778. };
  83779. A._EvaluateVisitor_visitCssSupportsRule_closure3.prototype = {
  83780. call$0() {
  83781. var t2, t3, t4,
  83782. t1 = this.$this,
  83783. styleRule = t1._evaluate0$_atRootExcludingStyleRule ? null : t1._evaluate0$_styleRuleIgnoringAtRoot;
  83784. if (styleRule == null)
  83785. for (t2 = this.node.children, t2 = new A.ListIterator(t2, t2.get$length(t2)), t3 = A._instanceType(t2)._precomputed1; t2.moveNext$0();) {
  83786. t4 = t2.__internal$_current;
  83787. (t4 == null ? t3._as(t4) : t4).accept$1(t1);
  83788. }
  83789. else
  83790. t1._evaluate0$_withParent$2$2(A.ModifiableCssStyleRule$0(styleRule.selector, styleRule.span, styleRule.originalSelector), new A._EvaluateVisitor_visitCssSupportsRule__closure1(t1, this.node), type$.ModifiableCssStyleRule_2, type$.Null);
  83791. },
  83792. $signature: 1
  83793. };
  83794. A._EvaluateVisitor_visitCssSupportsRule__closure1.prototype = {
  83795. call$0() {
  83796. var t1, t2, t3, t4;
  83797. for (t1 = this.node.children, t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = this.$this, t3 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) {
  83798. t4 = t1.__internal$_current;
  83799. (t4 == null ? t3._as(t4) : t4).accept$1(t2);
  83800. }
  83801. },
  83802. $signature: 1
  83803. };
  83804. A._EvaluateVisitor_visitCssSupportsRule_closure4.prototype = {
  83805. call$1(node) {
  83806. return type$.CssStyleRule_2._is(node);
  83807. },
  83808. $signature: 6
  83809. };
  83810. A._EvaluateVisitor__performInterpolation_closure1.prototype = {
  83811. call$1(value) {
  83812. var t1, result, t2, t3;
  83813. if (typeof value == "string")
  83814. return value;
  83815. type$.Expression_2._as(value);
  83816. t1 = this.$this;
  83817. result = value.accept$1(t1);
  83818. if (this.warnForColor && result instanceof A.SassColor0 && $.$get$namesByColor0().containsKey$1(result)) {
  83819. t2 = A.Interpolation$0(A._setArrayType([""], type$.JSArray_Object), this.interpolation.span);
  83820. t3 = $.$get$namesByColor0();
  83821. t1._evaluate0$_warn$2(string$.You_pr + A.S(t3.$index(0, result)) + string$.x20in_in + result.toString$0(0) + string$.x2c_whic + A.S(t3.$index(0, result)) + string$.x22x29__If + new A.BinaryOperationExpression0(B.BinaryOperator_qbf0, new A.StringExpression0(t2, true), value, false).toString$0(0) + "'.", value.get$span(value));
  83822. }
  83823. return t1._evaluate0$_serialize$3$quote(result, value, false);
  83824. },
  83825. $signature: 46
  83826. };
  83827. A._EvaluateVisitor__serialize_closure1.prototype = {
  83828. call$0() {
  83829. return A.serializeValue0(this.value, false, this.quote);
  83830. },
  83831. $signature: 30
  83832. };
  83833. A._EvaluateVisitor__expressionNode_closure1.prototype = {
  83834. call$0() {
  83835. var t1 = this.expression;
  83836. return this.$this._evaluate0$_environment.getVariableNode$2$namespace(t1.name, t1.namespace);
  83837. },
  83838. $signature: 176
  83839. };
  83840. A._EvaluateVisitor__withoutSlash_recommendation1.prototype = {
  83841. call$1(number) {
  83842. var asSlash = number.asSlash;
  83843. if (asSlash != null)
  83844. return "math.div(" + A.S(this.call$1(asSlash.item1)) + ", " + A.S(this.call$1(asSlash.item2)) + ")";
  83845. else
  83846. return A.serializeValue0(number, true, true);
  83847. },
  83848. $signature: 175
  83849. };
  83850. A._EvaluateVisitor__stackFrame_closure1.prototype = {
  83851. call$1(url) {
  83852. var t1 = this.$this._evaluate0$_importCache;
  83853. t1 = t1 == null ? null : t1.humanize$1(url);
  83854. return t1 == null ? url : t1;
  83855. },
  83856. $signature: 102
  83857. };
  83858. A._EvaluateVisitor__stackTrace_closure1.prototype = {
  83859. call$1(tuple) {
  83860. return this.$this._evaluate0$_stackFrame$2(tuple.item1, J.get$span$z(tuple.item2));
  83861. },
  83862. $signature: 173
  83863. };
  83864. A._ImportedCssVisitor1.prototype = {
  83865. visitCssAtRule$1(node) {
  83866. var t1 = node.isChildless ? null : new A._ImportedCssVisitor_visitCssAtRule_closure1();
  83867. this._evaluate0$_visitor._evaluate0$_addChild$2$through(node, t1);
  83868. },
  83869. visitCssComment$1(node) {
  83870. return this._evaluate0$_visitor._evaluate0$_addChild$1(node);
  83871. },
  83872. visitCssDeclaration$1(node) {
  83873. },
  83874. visitCssImport$1(node) {
  83875. var t2,
  83876. _s13_ = "_endOfImports",
  83877. t1 = this._evaluate0$_visitor;
  83878. if (t1._evaluate0$_assertInModule$2(t1._evaluate0$__parent, "__parent") !== t1._evaluate0$_assertInModule$2(t1._evaluate0$__root, "_root"))
  83879. t1._evaluate0$_addChild$1(node);
  83880. else if (t1._evaluate0$_assertInModule$2(t1._evaluate0$__endOfImports, _s13_) === J.get$length$asx(t1._evaluate0$_assertInModule$2(t1._evaluate0$__root, "_root").children._collection$_source)) {
  83881. t1._evaluate0$_addChild$1(node);
  83882. t1._evaluate0$__endOfImports = t1._evaluate0$_assertInModule$2(t1._evaluate0$__endOfImports, _s13_) + 1;
  83883. } else {
  83884. t2 = t1._evaluate0$_outOfOrderImports;
  83885. (t2 == null ? t1._evaluate0$_outOfOrderImports = A._setArrayType([], type$.JSArray_ModifiableCssImport_2) : t2).push(node);
  83886. }
  83887. },
  83888. visitCssKeyframeBlock$1(node) {
  83889. },
  83890. visitCssMediaRule$1(node) {
  83891. var t1 = this._evaluate0$_visitor,
  83892. mediaQueries = t1._evaluate0$_mediaQueries;
  83893. t1._evaluate0$_addChild$2$through(node, new A._ImportedCssVisitor_visitCssMediaRule_closure1(mediaQueries == null || t1._evaluate0$_mergeMediaQueries$2(mediaQueries, node.queries) != null));
  83894. },
  83895. visitCssStyleRule$1(node) {
  83896. return this._evaluate0$_visitor._evaluate0$_addChild$2$through(node, new A._ImportedCssVisitor_visitCssStyleRule_closure1());
  83897. },
  83898. visitCssStylesheet$1(node) {
  83899. var t1, t2, t3;
  83900. for (t1 = node.children, t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) {
  83901. t3 = t1.__internal$_current;
  83902. (t3 == null ? t2._as(t3) : t3).accept$1(this);
  83903. }
  83904. },
  83905. visitCssSupportsRule$1(node) {
  83906. return this._evaluate0$_visitor._evaluate0$_addChild$2$through(node, new A._ImportedCssVisitor_visitCssSupportsRule_closure1());
  83907. }
  83908. };
  83909. A._ImportedCssVisitor_visitCssAtRule_closure1.prototype = {
  83910. call$1(node) {
  83911. return type$.CssStyleRule_2._is(node);
  83912. },
  83913. $signature: 6
  83914. };
  83915. A._ImportedCssVisitor_visitCssMediaRule_closure1.prototype = {
  83916. call$1(node) {
  83917. var t1;
  83918. if (!type$.CssStyleRule_2._is(node))
  83919. t1 = this.hasBeenMerged && type$.CssMediaRule_2._is(node);
  83920. else
  83921. t1 = true;
  83922. return t1;
  83923. },
  83924. $signature: 6
  83925. };
  83926. A._ImportedCssVisitor_visitCssStyleRule_closure1.prototype = {
  83927. call$1(node) {
  83928. return type$.CssStyleRule_2._is(node);
  83929. },
  83930. $signature: 6
  83931. };
  83932. A._ImportedCssVisitor_visitCssSupportsRule_closure1.prototype = {
  83933. call$1(node) {
  83934. return type$.CssStyleRule_2._is(node);
  83935. },
  83936. $signature: 6
  83937. };
  83938. A._EvaluationContext1.prototype = {
  83939. get$currentCallableSpan() {
  83940. var callableNode = this._evaluate0$_visitor._evaluate0$_callableNode;
  83941. if (callableNode != null)
  83942. return callableNode.get$span(callableNode);
  83943. throw A.wrapException(A.StateError$(string$.No_Sasc));
  83944. },
  83945. warn$2$deprecation(_, message, deprecation) {
  83946. var t1 = this._evaluate0$_visitor,
  83947. t2 = t1._evaluate0$_importSpan;
  83948. if (t2 == null) {
  83949. t2 = t1._evaluate0$_callableNode;
  83950. t2 = t2 == null ? null : t2.get$span(t2);
  83951. }
  83952. t1._evaluate0$_warn$3$deprecation(message, t2 == null ? this._evaluate0$_defaultWarnNodeWithSpan.span : t2, deprecation);
  83953. },
  83954. $isEvaluationContext0: 1
  83955. };
  83956. A._ArgumentResults1.prototype = {};
  83957. A._LoadedStylesheet1.prototype = {};
  83958. A.EveryCssVisitor0.prototype = {
  83959. visitCssAtRule$1(node) {
  83960. var t1 = node.children;
  83961. return t1.every$1(t1, new A.EveryCssVisitor_visitCssAtRule_closure0(this));
  83962. },
  83963. visitCssComment$1(node) {
  83964. return false;
  83965. },
  83966. visitCssDeclaration$1(node) {
  83967. return false;
  83968. },
  83969. visitCssImport$1(node) {
  83970. return false;
  83971. },
  83972. visitCssKeyframeBlock$1(node) {
  83973. var t1 = node.children;
  83974. return t1.every$1(t1, new A.EveryCssVisitor_visitCssKeyframeBlock_closure0(this));
  83975. },
  83976. visitCssMediaRule$1(node) {
  83977. var t1 = node.children;
  83978. return t1.every$1(t1, new A.EveryCssVisitor_visitCssMediaRule_closure0(this));
  83979. },
  83980. visitCssStyleRule$1(node) {
  83981. var t1 = node.children;
  83982. return t1.every$1(t1, new A.EveryCssVisitor_visitCssStyleRule_closure0(this));
  83983. },
  83984. visitCssStylesheet$1(node) {
  83985. return J.every$1$ax(node.get$children(node), new A.EveryCssVisitor_visitCssStylesheet_closure0(this));
  83986. },
  83987. visitCssSupportsRule$1(node) {
  83988. var t1 = node.children;
  83989. return t1.every$1(t1, new A.EveryCssVisitor_visitCssSupportsRule_closure0(this));
  83990. }
  83991. };
  83992. A.EveryCssVisitor_visitCssAtRule_closure0.prototype = {
  83993. call$1(child) {
  83994. return child.accept$1(this.$this);
  83995. },
  83996. $signature: 6
  83997. };
  83998. A.EveryCssVisitor_visitCssKeyframeBlock_closure0.prototype = {
  83999. call$1(child) {
  84000. return child.accept$1(this.$this);
  84001. },
  84002. $signature: 6
  84003. };
  84004. A.EveryCssVisitor_visitCssMediaRule_closure0.prototype = {
  84005. call$1(child) {
  84006. return child.accept$1(this.$this);
  84007. },
  84008. $signature: 6
  84009. };
  84010. A.EveryCssVisitor_visitCssStyleRule_closure0.prototype = {
  84011. call$1(child) {
  84012. return child.accept$1(this.$this);
  84013. },
  84014. $signature: 6
  84015. };
  84016. A.EveryCssVisitor_visitCssStylesheet_closure0.prototype = {
  84017. call$1(child) {
  84018. return child.accept$1(this.$this);
  84019. },
  84020. $signature: 6
  84021. };
  84022. A.EveryCssVisitor_visitCssSupportsRule_closure0.prototype = {
  84023. call$1(child) {
  84024. return child.accept$1(this.$this);
  84025. },
  84026. $signature: 6
  84027. };
  84028. A._NodeException.prototype = {};
  84029. A.exceptionClass_closure.prototype = {
  84030. call$0() {
  84031. var jsClass = type$.JSClass._as(new self.Function("", " return class Exception extends Error {\n constructor(dartException, message) {\n super(message);\n\n // Define this as non-enumerable so that it doesn't show up when the\n // exception hits the top level.\n Object.defineProperty(this, '_dartException', {\n value: dartException,\n enumerable: false\n });\n }\n\n toString() {\n return this.message;\n }\n }\n ").call$0());
  84032. A.defineGetter(jsClass, "name", null, "sass.Exception");
  84033. A.LinkedHashMap_LinkedHashMap$_literal(["sassMessage", new A.exceptionClass__closure(), "sassStack", new A.exceptionClass__closure0(), "span", new A.exceptionClass__closure1()], type$.String, type$.Function).forEach$1(0, A.JSClassExtension_get_defineGetter(jsClass));
  84034. return jsClass;
  84035. },
  84036. $signature: 25
  84037. };
  84038. A.exceptionClass__closure.prototype = {
  84039. call$1(exception) {
  84040. return J.get$_dartException$x(exception)._span_exception$_message;
  84041. },
  84042. $signature: 178
  84043. };
  84044. A.exceptionClass__closure0.prototype = {
  84045. call$1(exception) {
  84046. return J.get$trace$z(J.get$_dartException$x(exception)).toString$0(0);
  84047. },
  84048. $signature: 178
  84049. };
  84050. A.exceptionClass__closure1.prototype = {
  84051. call$1(exception) {
  84052. var t1 = J.get$_dartException$x(exception),
  84053. t2 = J.getInterceptor$z(t1);
  84054. return A.SourceSpanException.prototype.get$span.call(t2, t1);
  84055. },
  84056. $signature: 406
  84057. };
  84058. A.SassException0.prototype = {
  84059. get$trace(_) {
  84060. return A.Trace$(A._setArrayType([A.frameForSpan0(A.SourceSpanException.prototype.get$span.call(this, this), "root stylesheet", null)], type$.JSArray_Frame), null);
  84061. },
  84062. get$span(_) {
  84063. return A.SourceSpanException.prototype.get$span.call(this, this);
  84064. },
  84065. toString$1$color(_, color) {
  84066. var t2, _i, frame, t3, _this = this,
  84067. buffer = new A.StringBuffer(""),
  84068. t1 = "" + ("Error: " + _this._span_exception$_message + "\n");
  84069. buffer._contents = t1;
  84070. buffer._contents = t1 + A.SourceSpanException.prototype.get$span.call(_this, _this).highlight$1$color(color);
  84071. for (t1 = _this.get$trace(_this).toString$0(0).split("\n"), t2 = t1.length, _i = 0; _i < t2; ++_i) {
  84072. frame = t1[_i];
  84073. if (J.get$length$asx(frame) === 0)
  84074. continue;
  84075. t3 = buffer._contents += "\n";
  84076. buffer._contents = t3 + (" " + A.S(frame));
  84077. }
  84078. t1 = buffer._contents;
  84079. return t1.charCodeAt(0) == 0 ? t1 : t1;
  84080. },
  84081. toString$0($receiver) {
  84082. return this.toString$1$color($receiver, null);
  84083. }
  84084. };
  84085. A.MultiSpanSassException0.prototype = {
  84086. toString$1$color(_, color) {
  84087. var t1, t2, _i, frame, _this = this,
  84088. useColor = color === true && true,
  84089. buffer = new A.StringBuffer("Error: " + _this._span_exception$_message + "\n");
  84090. A.NullableExtension_andThen0(A.Highlighter$multiple(A.SourceSpanException.prototype.get$span.call(_this, _this), _this.primaryLabel, _this.secondarySpans, useColor, null, null).highlight$0(), buffer.get$write(buffer));
  84091. for (t1 = _this.get$trace(_this).toString$0(0).split("\n"), t2 = t1.length, _i = 0; _i < t2; ++_i) {
  84092. frame = t1[_i];
  84093. if (J.get$length$asx(frame) === 0)
  84094. continue;
  84095. buffer._contents += "\n";
  84096. buffer._contents += " " + A.S(frame);
  84097. }
  84098. t1 = buffer._contents;
  84099. return t1.charCodeAt(0) == 0 ? t1 : t1;
  84100. },
  84101. toString$0($receiver) {
  84102. return this.toString$1$color($receiver, null);
  84103. }
  84104. };
  84105. A.SassRuntimeException0.prototype = {
  84106. get$trace(receiver) {
  84107. return this.trace;
  84108. }
  84109. };
  84110. A.MultiSpanSassRuntimeException0.prototype = {$isSassRuntimeException0: 1,
  84111. get$trace(receiver) {
  84112. return this.trace;
  84113. }
  84114. };
  84115. A.SassFormatException0.prototype = {
  84116. get$source() {
  84117. var t1 = A.SourceSpanException.prototype.get$span.call(this, this);
  84118. return A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t1.get$file(t1)._decodedChars, 0, null), 0, null);
  84119. },
  84120. $isFormatException: 1,
  84121. $isSourceSpanFormatException: 1
  84122. };
  84123. A.SassScriptException0.prototype = {
  84124. toString$0(_) {
  84125. return this.message + string$.x0a_BUG_;
  84126. },
  84127. get$message(receiver) {
  84128. return this.message;
  84129. }
  84130. };
  84131. A.MultiSpanSassScriptException0.prototype = {};
  84132. A.Exports.prototype = {};
  84133. A.LoggerNamespace.prototype = {};
  84134. A.ExtendRule0.prototype = {
  84135. accept$1$1(visitor) {
  84136. return visitor.visitExtendRule$1(this);
  84137. },
  84138. accept$1(visitor) {
  84139. return this.accept$1$1(visitor, type$.dynamic);
  84140. },
  84141. toString$0(_) {
  84142. var t1 = this.selector.toString$0(0),
  84143. t2 = this.isOptional ? " !optional" : "";
  84144. return "@extend " + t1 + t2 + ";";
  84145. },
  84146. $isAstNode0: 1,
  84147. $isStatement0: 1,
  84148. get$span(receiver) {
  84149. return this.span;
  84150. }
  84151. };
  84152. A.Extension0.prototype = {
  84153. toString$0(_) {
  84154. var t1 = this.extender.toString$0(0),
  84155. t2 = this.target.toString$0(0),
  84156. t3 = this.isOptional ? " !optional" : "";
  84157. return t1 + " {@extend " + t2 + t3 + "}";
  84158. }
  84159. };
  84160. A.Extender0.prototype = {
  84161. assertCompatibleMediaContext$1(mediaContext) {
  84162. var expectedMediaContext,
  84163. extension = this._extension$_extension;
  84164. if (extension == null)
  84165. return;
  84166. expectedMediaContext = extension.mediaContext;
  84167. if (expectedMediaContext == null)
  84168. return;
  84169. if (mediaContext != null && B.C_ListEquality.equals$2(0, expectedMediaContext, mediaContext))
  84170. return;
  84171. throw A.wrapException(A.SassException$0(string$.You_ma, extension.span));
  84172. },
  84173. toString$0(_) {
  84174. return A.serializeSelector0(this.selector, true);
  84175. }
  84176. };
  84177. A.ExtensionStore0.prototype = {
  84178. get$isEmpty(_) {
  84179. return this._extension_store$_extensions.__js_helper$_length === 0;
  84180. },
  84181. get$simpleSelectors() {
  84182. return new A.MapKeySet(this._extension_store$_selectors, type$.MapKeySet_SimpleSelector_2);
  84183. },
  84184. extensionsWhereTarget$1($async$callback) {
  84185. var $async$self = this;
  84186. return A._makeSyncStarIterable(function() {
  84187. var callback = $async$callback;
  84188. var $async$goto = 0, $async$handler = 1, $async$currentError, t1, t2, t3;
  84189. return function $async$extensionsWhereTarget$1($async$errorCode, $async$result) {
  84190. if ($async$errorCode === 1) {
  84191. $async$currentError = $async$result;
  84192. $async$goto = $async$handler;
  84193. }
  84194. while (true)
  84195. switch ($async$goto) {
  84196. case 0:
  84197. // Function start
  84198. t1 = $async$self._extension_store$_extensions, t1 = t1.get$entries(t1), t1 = t1.get$iterator(t1);
  84199. case 2:
  84200. // for condition
  84201. if (!t1.moveNext$0()) {
  84202. // goto after for
  84203. $async$goto = 3;
  84204. break;
  84205. }
  84206. t2 = t1.get$current(t1);
  84207. if (!callback.call$1(t2.key)) {
  84208. // goto for condition
  84209. $async$goto = 2;
  84210. break;
  84211. }
  84212. t2 = J.get$values$z(t2.value), t2 = t2.get$iterator(t2);
  84213. case 4:
  84214. // for condition
  84215. if (!t2.moveNext$0()) {
  84216. // goto after for
  84217. $async$goto = 5;
  84218. break;
  84219. }
  84220. t3 = t2.get$current(t2);
  84221. $async$goto = t3 instanceof A.MergedExtension0 ? 6 : 8;
  84222. break;
  84223. case 6:
  84224. // then
  84225. t3 = t3.unmerge$0();
  84226. $async$goto = 9;
  84227. return A._IterationMarker_yieldStar(new A.WhereIterable(t3, new A.ExtensionStore_extensionsWhereTarget_closure0(), t3.$ti._eval$1("WhereIterable<Iterable.E>")));
  84228. case 9:
  84229. // after yield
  84230. // goto join
  84231. $async$goto = 7;
  84232. break;
  84233. case 8:
  84234. // else
  84235. $async$goto = !t3.isOptional ? 10 : 11;
  84236. break;
  84237. case 10:
  84238. // then
  84239. $async$goto = 12;
  84240. return t3;
  84241. case 12:
  84242. // after yield
  84243. case 11:
  84244. // join
  84245. case 7:
  84246. // join
  84247. // goto for condition
  84248. $async$goto = 4;
  84249. break;
  84250. case 5:
  84251. // after for
  84252. // goto for condition
  84253. $async$goto = 2;
  84254. break;
  84255. case 3:
  84256. // after for
  84257. // implicit return
  84258. return A._IterationMarker_endOfIteration();
  84259. case 1:
  84260. // rethrow
  84261. return A._IterationMarker_uncaughtError($async$currentError);
  84262. }
  84263. };
  84264. }, type$.Extension_2);
  84265. },
  84266. addSelector$3(selector, selectorSpan, mediaContext) {
  84267. var originalSelector, error, stackTrace, t1, t2, t3, _i, exception, t4, modifiableSelector, _this = this;
  84268. selector = selector;
  84269. originalSelector = selector;
  84270. if (!originalSelector.accept$1(B._IsInvisibleVisitor_true0))
  84271. for (t1 = originalSelector.components, t2 = t1.length, t3 = _this._extension_store$_originals, _i = 0; _i < t2; ++_i)
  84272. t3.add$1(0, t1[_i]);
  84273. t1 = _this._extension_store$_extensions;
  84274. if (t1.__js_helper$_length !== 0)
  84275. try {
  84276. selector = _this._extension_store$_extendList$4(originalSelector, selectorSpan, t1, mediaContext);
  84277. } catch (exception) {
  84278. t1 = A.unwrapException(exception);
  84279. if (t1 instanceof A.SassException0) {
  84280. error = t1;
  84281. stackTrace = A.getTraceFromException(exception);
  84282. t1 = error;
  84283. t2 = J.getInterceptor$z(t1);
  84284. t3 = error;
  84285. t4 = J.getInterceptor$z(t3);
  84286. A.throwWithTrace0(new A.SassException0("From " + A.SourceSpanException.prototype.get$span.call(t2, t1).message$1(0, "") + "\n" + error._span_exception$_message, A.SourceSpanException.prototype.get$span.call(t4, t3)), stackTrace);
  84287. } else
  84288. throw exception;
  84289. }
  84290. modifiableSelector = new A.ModifiableCssValue0(selector, selectorSpan, type$.ModifiableCssValue_SelectorList_2);
  84291. if (mediaContext != null)
  84292. _this._extension_store$_mediaContexts.$indexSet(0, modifiableSelector, mediaContext);
  84293. _this._extension_store$_registerSelector$2(selector, modifiableSelector);
  84294. return modifiableSelector;
  84295. },
  84296. _extension_store$_registerSelector$2(list, selector) {
  84297. var t1, t2, t3, _i, t4, t5, _i0, t6, t7, _i1, simple, selectorInPseudo;
  84298. for (t1 = list.components, t2 = t1.length, t3 = this._extension_store$_selectors, _i = 0; _i < t2; ++_i)
  84299. for (t4 = t1[_i].components, t5 = t4.length, _i0 = 0; _i0 < t5; ++_i0)
  84300. for (t6 = t4[_i0].selector.components, t7 = t6.length, _i1 = 0; _i1 < t7; ++_i1) {
  84301. simple = t6[_i1];
  84302. J.add$1$ax(t3.putIfAbsent$2(simple, new A.ExtensionStore__registerSelector_closure0()), selector);
  84303. if (!(simple instanceof A.PseudoSelector0))
  84304. continue;
  84305. selectorInPseudo = simple.selector;
  84306. if (selectorInPseudo != null)
  84307. this._extension_store$_registerSelector$2(selectorInPseudo, selector);
  84308. }
  84309. },
  84310. addExtension$4(extender, target, extend, mediaContext) {
  84311. var t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, newExtensions, _i, complex, t12, extension, existingExtension, t13, newExtensionsByTarget, additionalExtensions, _this = this,
  84312. selectors = _this._extension_store$_selectors.$index(0, target),
  84313. t1 = _this._extension_store$_extensionsByExtender,
  84314. existingExtensions = t1.$index(0, target),
  84315. sources = _this._extension_store$_extensions.putIfAbsent$2(target, new A.ExtensionStore_addExtension_closure2());
  84316. for (t2 = extender.value.components, t3 = t2.length, t4 = selectors == null, t5 = _this._extension_store$_sourceSpecificity, t6 = extender.span, t7 = extend.span, t8 = extend.isOptional, t9 = existingExtensions != null, t10 = type$.ComplexSelector_2, t11 = type$.Extension_2, newExtensions = null, _i = 0; _i < t3; ++_i) {
  84317. complex = t2[_i];
  84318. if (complex.accept$1(B.C__IsUselessVisitor0))
  84319. continue;
  84320. complex.get$specificity();
  84321. t12 = new A.Extender0(complex, false, t6);
  84322. extension = t12._extension$_extension = new A.Extension0(t12, target, mediaContext, t8, t7);
  84323. existingExtension = sources.$index(0, complex);
  84324. if (existingExtension != null) {
  84325. sources.$indexSet(0, complex, A.MergedExtension_merge0(existingExtension, extension));
  84326. continue;
  84327. }
  84328. sources.$indexSet(0, complex, extension);
  84329. for (t12 = new A._SyncStarIterator(_this._extension_store$_simpleSelectors$1(complex)._outerHelper()); t12.moveNext$0();) {
  84330. t13 = t12.get$current(t12);
  84331. J.add$1$ax(t1.putIfAbsent$2(t13, new A.ExtensionStore_addExtension_closure3()), extension);
  84332. t5.putIfAbsent$2(t13, new A.ExtensionStore_addExtension_closure4(complex));
  84333. }
  84334. if (!t4 || t9) {
  84335. if (newExtensions == null)
  84336. newExtensions = A.LinkedHashMap_LinkedHashMap$_empty(t10, t11);
  84337. newExtensions.$indexSet(0, complex, extension);
  84338. }
  84339. }
  84340. if (newExtensions == null)
  84341. return;
  84342. t1 = type$.SimpleSelector_2;
  84343. newExtensionsByTarget = A.LinkedHashMap_LinkedHashMap$_literal([target, newExtensions], t1, type$.Map_ComplexSelector_Extension_2);
  84344. if (t9) {
  84345. additionalExtensions = _this._extension_store$_extendExistingExtensions$2(existingExtensions, newExtensionsByTarget);
  84346. if (additionalExtensions != null)
  84347. A.mapAddAll20(newExtensionsByTarget, additionalExtensions, t1, t10, t11);
  84348. }
  84349. if (!t4)
  84350. _this._extension_store$_extendExistingSelectors$2(selectors, newExtensionsByTarget);
  84351. },
  84352. _extension_store$_simpleSelectors$1(complex) {
  84353. return this._simpleSelectors$body$ExtensionStore0(complex);
  84354. },
  84355. _simpleSelectors$body$ExtensionStore0($async$complex) {
  84356. var $async$self = this;
  84357. return A._makeSyncStarIterable(function() {
  84358. var complex = $async$complex;
  84359. var $async$goto = 0, $async$handler = 1, $async$currentError, t1, t2, _i, t3, t4, _i0, simple, selector, t5, t6, _i1;
  84360. return function $async$_extension_store$_simpleSelectors$1($async$errorCode, $async$result) {
  84361. if ($async$errorCode === 1) {
  84362. $async$currentError = $async$result;
  84363. $async$goto = $async$handler;
  84364. }
  84365. while (true)
  84366. switch ($async$goto) {
  84367. case 0:
  84368. // Function start
  84369. t1 = complex.components, t2 = t1.length, _i = 0;
  84370. case 2:
  84371. // for condition
  84372. if (!(_i < t2)) {
  84373. // goto after for
  84374. $async$goto = 4;
  84375. break;
  84376. }
  84377. t3 = t1[_i].selector.components, t4 = t3.length, _i0 = 0;
  84378. case 5:
  84379. // for condition
  84380. if (!(_i0 < t4)) {
  84381. // goto after for
  84382. $async$goto = 7;
  84383. break;
  84384. }
  84385. simple = t3[_i0];
  84386. $async$goto = 8;
  84387. return simple;
  84388. case 8:
  84389. // after yield
  84390. if (!(simple instanceof A.PseudoSelector0)) {
  84391. // goto for update
  84392. $async$goto = 6;
  84393. break;
  84394. }
  84395. selector = simple.selector;
  84396. if (selector == null) {
  84397. // goto for update
  84398. $async$goto = 6;
  84399. break;
  84400. }
  84401. t5 = selector.components, t6 = t5.length, _i1 = 0;
  84402. case 9:
  84403. // for condition
  84404. if (!(_i1 < t6)) {
  84405. // goto after for
  84406. $async$goto = 11;
  84407. break;
  84408. }
  84409. $async$goto = 12;
  84410. return A._IterationMarker_yieldStar($async$self._extension_store$_simpleSelectors$1(t5[_i1]));
  84411. case 12:
  84412. // after yield
  84413. case 10:
  84414. // for update
  84415. ++_i1;
  84416. // goto for condition
  84417. $async$goto = 9;
  84418. break;
  84419. case 11:
  84420. // after for
  84421. case 6:
  84422. // for update
  84423. ++_i0;
  84424. // goto for condition
  84425. $async$goto = 5;
  84426. break;
  84427. case 7:
  84428. // after for
  84429. case 3:
  84430. // for update
  84431. ++_i;
  84432. // goto for condition
  84433. $async$goto = 2;
  84434. break;
  84435. case 4:
  84436. // after for
  84437. // implicit return
  84438. return A._IterationMarker_endOfIteration();
  84439. case 1:
  84440. // rethrow
  84441. return A._IterationMarker_uncaughtError($async$currentError);
  84442. }
  84443. };
  84444. }, type$.SimpleSelector_2);
  84445. },
  84446. _extension_store$_extendExistingExtensions$2(extensions, newExtensions) {
  84447. var extension, selectors, error, stackTrace, t1, t2, t3, t4, t5, t6, additionalExtensions, _i, t7, exception, t8, t9, containsExtension, first, _i0, complex, t10, t11, t12, t13, t14, withExtender, existingExtension, _i1, _i2;
  84448. for (t1 = J.toList$0$ax(extensions), t2 = t1.length, t3 = this._extension_store$_extensionsByExtender, t4 = type$.SimpleSelector_2, t5 = type$.Map_ComplexSelector_Extension_2, t6 = this._extension_store$_extensions, additionalExtensions = null, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
  84449. extension = t1[_i];
  84450. t7 = t6.$index(0, extension.target);
  84451. t7.toString;
  84452. selectors = null;
  84453. try {
  84454. selectors = this._extension_store$_extendComplex$4(extension.extender.selector, extension.extender.span, newExtensions, extension.mediaContext);
  84455. if (selectors == null)
  84456. continue;
  84457. } catch (exception) {
  84458. t8 = A.unwrapException(exception);
  84459. if (t8 instanceof A.SassException0) {
  84460. error = t8;
  84461. stackTrace = A.getTraceFromException(exception);
  84462. t8 = error;
  84463. t9 = J.getInterceptor$z(t8);
  84464. A.throwWithTrace0(new A.SassException0("From " + extension.extender.span.message$1(0, "") + "\n" + error._span_exception$_message, A.SourceSpanException.prototype.get$span.call(t9, t8)), stackTrace);
  84465. } else
  84466. throw exception;
  84467. }
  84468. t8 = J.get$first$ax(selectors);
  84469. t9 = extension.extender.selector;
  84470. containsExtension = B.C_ListEquality.equals$2(0, t8.leadingCombinators, t9.leadingCombinators) && B.C_ListEquality.equals$2(0, t8.components, t9.components);
  84471. for (t8 = selectors, t9 = t8.length, first = true, _i0 = 0; _i0 < t8.length; t8.length === t9 || (0, A.throwConcurrentModificationError)(t8), ++_i0) {
  84472. complex = t8[_i0];
  84473. if (containsExtension && first) {
  84474. first = false;
  84475. continue;
  84476. }
  84477. t10 = extension;
  84478. t11 = t10.extender;
  84479. t12 = t10.target;
  84480. t13 = t10.span;
  84481. t14 = t10.mediaContext;
  84482. t10 = t10.isOptional;
  84483. complex.get$specificity();
  84484. t11 = new A.Extender0(complex, false, t11.span);
  84485. withExtender = t11._extension$_extension = new A.Extension0(t11, t12, t14, t10, t13);
  84486. existingExtension = t7.$index(0, complex);
  84487. if (existingExtension != null)
  84488. t7.$indexSet(0, complex, A.MergedExtension_merge0(existingExtension, withExtender));
  84489. else {
  84490. t7.$indexSet(0, complex, withExtender);
  84491. for (t10 = complex.components, t11 = t10.length, _i1 = 0; _i1 < t11; ++_i1)
  84492. for (t12 = t10[_i1].selector.components, t13 = t12.length, _i2 = 0; _i2 < t13; ++_i2)
  84493. J.add$1$ax(t3.putIfAbsent$2(t12[_i2], new A.ExtensionStore__extendExistingExtensions_closure1()), withExtender);
  84494. if (newExtensions.containsKey$1(extension.target)) {
  84495. if (additionalExtensions == null)
  84496. additionalExtensions = A.LinkedHashMap_LinkedHashMap$_empty(t4, t5);
  84497. additionalExtensions.putIfAbsent$2(extension.target, new A.ExtensionStore__extendExistingExtensions_closure2()).$indexSet(0, complex, withExtender);
  84498. }
  84499. }
  84500. }
  84501. if (!containsExtension)
  84502. t7.remove$1(0, extension.extender);
  84503. }
  84504. return additionalExtensions;
  84505. },
  84506. _extension_store$_extendExistingSelectors$2(selectors, newExtensions) {
  84507. var selector, error, stackTrace, t1, t2, oldValue, exception, t3, t4;
  84508. for (t1 = selectors.get$iterator(selectors), t2 = this._extension_store$_mediaContexts; t1.moveNext$0();) {
  84509. selector = t1.get$current(t1);
  84510. oldValue = selector.value;
  84511. try {
  84512. selector.value = this._extension_store$_extendList$4(selector.value, selector.span, newExtensions, t2.$index(0, selector));
  84513. } catch (exception) {
  84514. t3 = A.unwrapException(exception);
  84515. if (t3 instanceof A.SassException0) {
  84516. error = t3;
  84517. stackTrace = A.getTraceFromException(exception);
  84518. t3 = error;
  84519. t4 = J.getInterceptor$z(t3);
  84520. A.throwWithTrace0(new A.SassException0("From " + selector.span.message$1(0, "") + "\n" + error._span_exception$_message, A.SourceSpanException.prototype.get$span.call(t4, t3)), stackTrace);
  84521. } else
  84522. throw exception;
  84523. }
  84524. if (oldValue === selector.value)
  84525. continue;
  84526. this._extension_store$_registerSelector$2(selector.value, selector);
  84527. }
  84528. },
  84529. addExtensions$1(extensionStores) {
  84530. var t1, t2, t3, _box_0 = {};
  84531. _box_0.newExtensions = _box_0.selectorsToExtend = _box_0.extensionsToExtend = null;
  84532. for (t1 = J.get$iterator$ax(extensionStores), t2 = this._extension_store$_sourceSpecificity; t1.moveNext$0();) {
  84533. t3 = t1.get$current(t1);
  84534. if (t3.get$isEmpty(t3))
  84535. continue;
  84536. t2.addAll$1(0, t3.get$_extension_store$_sourceSpecificity());
  84537. t3.get$_extension_store$_extensions().forEach$1(0, new A.ExtensionStore_addExtensions_closure1(_box_0, this));
  84538. }
  84539. A.NullableExtension_andThen0(_box_0.newExtensions, new A.ExtensionStore_addExtensions_closure2(_box_0, this));
  84540. },
  84541. _extension_store$_extendList$4(list, listSpan, extensions, mediaQueryContext) {
  84542. var t1, t2, t3, extended, i, complex, result, t4;
  84543. for (t1 = list.components, t2 = t1.length, t3 = type$.JSArray_ComplexSelector_2, extended = null, i = 0; i < t2; ++i) {
  84544. complex = t1[i];
  84545. result = this._extension_store$_extendComplex$4(complex, listSpan, extensions, mediaQueryContext);
  84546. if (result == null) {
  84547. if (extended != null)
  84548. extended.push(complex);
  84549. } else {
  84550. if (extended == null)
  84551. if (i === 0)
  84552. extended = A._setArrayType([], t3);
  84553. else {
  84554. t4 = B.JSArray_methods.sublist$2(t1, 0, i);
  84555. extended = A._setArrayType(t4.slice(0), A._arrayInstanceType(t4));
  84556. }
  84557. B.JSArray_methods.addAll$1(extended, result);
  84558. }
  84559. }
  84560. if (extended == null)
  84561. return list;
  84562. t1 = this._extension_store$_originals;
  84563. return A.SelectorList$0(this._extension_store$_trim$2(extended, t1.get$contains(t1)));
  84564. },
  84565. _extension_store$_extendList$3(list, listSpan, extensions) {
  84566. return this._extension_store$_extendList$4(list, listSpan, extensions, null);
  84567. },
  84568. _extension_store$_extendComplex$4(complex, complexSpan, extensions, mediaQueryContext) {
  84569. var isOriginal, t3, t4, t5, t6, t7, t8, t9, t10, t11, extendedNotExpanded, i, component, extended, t12, result, t13, t14, t15, t16, _null = null,
  84570. _s56_ = string$.leadin,
  84571. _box_0 = {},
  84572. t1 = complex.leadingCombinators,
  84573. t2 = t1.length;
  84574. if (t2 > 1)
  84575. return _null;
  84576. isOriginal = this._extension_store$_originals.contains$1(0, complex);
  84577. for (t3 = complex.components, t4 = t3.length, t5 = type$.JSArray_List_ComplexSelector_2, t6 = type$.Combinator_2, t7 = type$.ComplexSelectorComponent_2, t8 = complex.lineBreak, t9 = !t8, t10 = type$.JSArray_ComplexSelector_2, t2 = t2 === 0, t11 = type$.JSArray_ComplexSelectorComponent_2, extendedNotExpanded = _null, i = 0; i < t4; ++i) {
  84578. component = t3[i];
  84579. extended = this._extension_store$_extendCompound$5$inOriginal(component, complexSpan, extensions, mediaQueryContext, isOriginal);
  84580. if (extended == null) {
  84581. if (extendedNotExpanded != null) {
  84582. t12 = A._setArrayType([component], t11);
  84583. result = A.List_List$from(B.List_empty13, false, t6);
  84584. result.fixed$length = Array;
  84585. result.immutable$list = Array;
  84586. t13 = result;
  84587. result = A.List_List$from(t12, false, t7);
  84588. result.fixed$length = Array;
  84589. result.immutable$list = Array;
  84590. t12 = result;
  84591. if (t13.length === 0 && t12.length === 0)
  84592. A.throwExpression(A.ArgumentError$(_s56_, _null));
  84593. extendedNotExpanded.push(A._setArrayType([new A.ComplexSelector0(t13, t12, t8)], t10));
  84594. }
  84595. } else if (extendedNotExpanded != null)
  84596. extendedNotExpanded.push(extended);
  84597. else if (i !== 0) {
  84598. t12 = A._arrayInstanceType(t3);
  84599. t13 = new A.SubListIterable(t3, 0, i, t12._eval$1("SubListIterable<1>"));
  84600. t13.SubListIterable$3(t3, 0, i, t12._precomputed1);
  84601. result = A.List_List$from(t1, false, t6);
  84602. result.fixed$length = Array;
  84603. result.immutable$list = Array;
  84604. t12 = result;
  84605. result = A.List_List$from(t13, false, t7);
  84606. result.fixed$length = Array;
  84607. result.immutable$list = Array;
  84608. t13 = result;
  84609. if (t12.length === 0 && t13.length === 0)
  84610. A.throwExpression(A.ArgumentError$(_s56_, _null));
  84611. extendedNotExpanded = A._setArrayType([A._setArrayType([new A.ComplexSelector0(t12, t13, t8)], t10), extended], t5);
  84612. } else if (t2)
  84613. extendedNotExpanded = A._setArrayType([extended], t5);
  84614. else {
  84615. t12 = A._setArrayType([], t10);
  84616. for (t13 = J.get$iterator$ax(extended); t13.moveNext$0();) {
  84617. t14 = t13.get$current(t13);
  84618. t15 = t14.leadingCombinators;
  84619. if (t15.length === 0 || B.C_ListEquality.equals$2(0, t1, t15)) {
  84620. t15 = t14.components;
  84621. t14 = !t9 || t14.lineBreak;
  84622. result = A.List_List$from(t1, false, t6);
  84623. result.fixed$length = Array;
  84624. result.immutable$list = Array;
  84625. t16 = result;
  84626. result = A.List_List$from(t15, false, t7);
  84627. result.fixed$length = Array;
  84628. result.immutable$list = Array;
  84629. t15 = result;
  84630. if (t16.length === 0 && t15.length === 0)
  84631. A.throwExpression(A.ArgumentError$(_s56_, _null));
  84632. t12.push(new A.ComplexSelector0(t16, t15, t14));
  84633. }
  84634. }
  84635. extendedNotExpanded = A._setArrayType([t12], t5);
  84636. }
  84637. }
  84638. if (extendedNotExpanded == null)
  84639. return _null;
  84640. _box_0.first = true;
  84641. t1 = type$.ComplexSelector_2;
  84642. t1 = J.expand$1$1$ax(A.paths0(extendedNotExpanded, t1), new A.ExtensionStore__extendComplex_closure0(_box_0, this, complex), t1);
  84643. return A.List_List$of(t1, true, t1.$ti._eval$1("Iterable.E"));
  84644. },
  84645. _extension_store$_extendCompound$5$inOriginal(component, componentSpan, extensions, mediaQueryContext, inOriginal) {
  84646. var t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, options, i, simple, extended, result, t13, t14, compound, complex, extenderPaths, withCombinators, isOriginal, _this = this, _null = null,
  84647. _s28_ = "components may not be empty.",
  84648. _s56_ = string$.leadin,
  84649. t1 = _this._extension_store$_mode,
  84650. targetsUsed = t1 === B.ExtendMode_normal_normal0 || extensions.get$length(extensions) < 2 ? _null : A.LinkedHashSet_LinkedHashSet$_empty(type$.SimpleSelector_2),
  84651. simples = component.selector.components;
  84652. for (t2 = simples.length, t3 = type$.JSArray_List_Extender_2, t4 = type$.JSArray_Extender_2, t5 = type$.Combinator_2, t6 = type$.JSArray_ComplexSelectorComponent_2, t7 = type$.ComplexSelectorComponent_2, t8 = A._arrayInstanceType(simples), t9 = t8._precomputed1, t8 = t8._eval$1("SubListIterable<1>"), t10 = type$.SimpleSelector_2, t11 = _this._extension_store$_sourceSpecificity, t12 = type$.JSArray_SimpleSelector_2, options = _null, i = 0; i < t2; ++i) {
  84653. simple = simples[i];
  84654. extended = _this._extension_store$_extendSimple$5(simple, componentSpan, extensions, mediaQueryContext, targetsUsed);
  84655. if (extended == null) {
  84656. if (options != null) {
  84657. result = A.List_List$from(A._setArrayType([simple], t12), false, t10);
  84658. result.fixed$length = Array;
  84659. result.immutable$list = Array;
  84660. t13 = result;
  84661. if (t13.length === 0)
  84662. A.throwExpression(A.ArgumentError$(_s28_, _null));
  84663. result = A.List_List$from(B.List_empty13, false, t5);
  84664. result.fixed$length = Array;
  84665. result.immutable$list = Array;
  84666. t13 = A._setArrayType([new A.ComplexSelectorComponent0(new A.CompoundSelector0(t13), result)], t6);
  84667. result = A.List_List$from(B.List_empty13, false, t5);
  84668. result.fixed$length = Array;
  84669. result.immutable$list = Array;
  84670. t14 = result;
  84671. result = A.List_List$from(t13, false, t7);
  84672. result.fixed$length = Array;
  84673. result.immutable$list = Array;
  84674. t13 = result;
  84675. if (t14.length === 0 && t13.length === 0)
  84676. A.throwExpression(A.ArgumentError$(_s56_, _null));
  84677. t11.$index(0, simple);
  84678. options.push(A._setArrayType([new A.Extender0(new A.ComplexSelector0(t14, t13, false), true, componentSpan)], t4));
  84679. }
  84680. } else {
  84681. if (options == null) {
  84682. options = A._setArrayType([], t3);
  84683. if (i !== 0) {
  84684. t13 = new A.SubListIterable(simples, 0, i, t8);
  84685. t13.SubListIterable$3(simples, 0, i, t9);
  84686. result = A.List_List$from(t13, false, t10);
  84687. result.fixed$length = Array;
  84688. result.immutable$list = Array;
  84689. t13 = result;
  84690. compound = new A.CompoundSelector0(t13);
  84691. if (t13.length === 0)
  84692. A.throwExpression(A.ArgumentError$(_s28_, _null));
  84693. result = A.List_List$from(B.List_empty13, false, t5);
  84694. result.fixed$length = Array;
  84695. result.immutable$list = Array;
  84696. t13 = A._setArrayType([new A.ComplexSelectorComponent0(compound, result)], t6);
  84697. result = A.List_List$from(B.List_empty13, false, t5);
  84698. result.fixed$length = Array;
  84699. result.immutable$list = Array;
  84700. t14 = result;
  84701. result = A.List_List$from(t13, false, t7);
  84702. result.fixed$length = Array;
  84703. result.immutable$list = Array;
  84704. t13 = result;
  84705. if (t14.length === 0 && t13.length === 0)
  84706. A.throwExpression(A.ArgumentError$(_s56_, _null));
  84707. _this._extension_store$_sourceSpecificityFor$1(compound);
  84708. options.push(A._setArrayType([new A.Extender0(new A.ComplexSelector0(t14, t13, false), true, componentSpan)], t4));
  84709. }
  84710. }
  84711. B.JSArray_methods.addAll$1(options, extended);
  84712. }
  84713. }
  84714. if (options == null)
  84715. return _null;
  84716. if (targetsUsed != null && targetsUsed._collection$_length !== extensions.get$length(extensions))
  84717. return _null;
  84718. if (options.length === 1) {
  84719. for (t1 = J.get$iterator$ax(B.JSArray_methods.get$first(options)), t2 = component.combinators, t3 = type$.JSArray_ComplexSelector_2, result = _null; t1.moveNext$0();) {
  84720. t4 = t1.get$current(t1);
  84721. t4.assertCompatibleMediaContext$1(mediaQueryContext);
  84722. complex = t4.selector.withAdditionalCombinators$1(t2);
  84723. if (complex.accept$1(B.C__IsUselessVisitor0))
  84724. continue;
  84725. if (result == null)
  84726. result = A._setArrayType([], t3);
  84727. result.push(complex);
  84728. }
  84729. return result;
  84730. }
  84731. extenderPaths = A.paths0(options, type$.Extender_2);
  84732. t2 = A._setArrayType([], type$.JSArray_ComplexSelector_2);
  84733. t1 = t1 === B.ExtendMode_replace_replace0;
  84734. t3 = !t1;
  84735. if (t3)
  84736. t2.push(A.ComplexSelector$0(B.List_empty13, A._setArrayType([new A.ComplexSelectorComponent0(A.CompoundSelector$0(J.expand$1$1$ax(J.get$first$ax(extenderPaths), new A.ExtensionStore__extendCompound_closure2(), t10)), A.List_List$unmodifiable(component.combinators, t5))], t6), false));
  84737. t4 = J.skip$1$ax(extenderPaths, t1 ? 0 : 1);
  84738. t4 = t4.get$iterator(t4);
  84739. t5 = component.combinators;
  84740. for (; t4.moveNext$0();) {
  84741. extended = _this._extension_store$_unifyExtenders$2(t4.get$current(t4), mediaQueryContext);
  84742. if (extended == null)
  84743. continue;
  84744. for (t1 = J.get$iterator$ax(extended); t1.moveNext$0();) {
  84745. withCombinators = t1.get$current(t1).withAdditionalCombinators$1(t5);
  84746. if (!withCombinators.accept$1(B.C__IsUselessVisitor0))
  84747. t2.push(withCombinators);
  84748. }
  84749. }
  84750. isOriginal = new A.ExtensionStore__extendCompound_closure3();
  84751. return _this._extension_store$_trim$2(t2, inOriginal && t3 ? new A.ExtensionStore__extendCompound_closure4(B.JSArray_methods.get$first(t2)) : isOriginal);
  84752. },
  84753. _extension_store$_unifyExtenders$2(extenders, mediaQueryContext) {
  84754. var t1, t2, t3, originals, originalsLineBreak, t4, complexes, _null = null,
  84755. toUnify = A.QueueList$(_null, type$.ComplexSelector_2);
  84756. for (t1 = J.getInterceptor$ax(extenders), t2 = t1.get$iterator(extenders), t3 = type$.JSArray_SimpleSelector_2, originals = _null, originalsLineBreak = false; t2.moveNext$0();) {
  84757. t4 = t2.get$current(t2);
  84758. if (t4.isOriginal) {
  84759. if (originals == null)
  84760. originals = A._setArrayType([], t3);
  84761. t4 = t4.selector;
  84762. B.JSArray_methods.addAll$1(originals, B.JSArray_methods.get$last(t4.components).selector.components);
  84763. originalsLineBreak = originalsLineBreak || t4.lineBreak;
  84764. } else {
  84765. t4 = t4.selector;
  84766. if (t4.accept$1(B.C__IsUselessVisitor0))
  84767. return _null;
  84768. else
  84769. toUnify._queue_list$_add$1(t4);
  84770. }
  84771. }
  84772. if (originals != null)
  84773. toUnify.addFirst$1(A.ComplexSelector$0(B.List_empty13, A._setArrayType([new A.ComplexSelectorComponent0(A.CompoundSelector$0(originals), A.List_List$unmodifiable(B.List_empty13, type$.Combinator_2))], type$.JSArray_ComplexSelectorComponent_2), originalsLineBreak));
  84774. complexes = A.unifyComplex0(toUnify);
  84775. if (complexes == null)
  84776. return _null;
  84777. for (t1 = t1.get$iterator(extenders); t1.moveNext$0();)
  84778. t1.get$current(t1).assertCompatibleMediaContext$1(mediaQueryContext);
  84779. return complexes;
  84780. },
  84781. _extension_store$_extendSimple$5(simple, simpleSpan, extensions, mediaQueryContext, targetsUsed) {
  84782. var extended,
  84783. t1 = new A.ExtensionStore__extendSimple_withoutPseudo0(this, extensions, targetsUsed, simpleSpan);
  84784. if (simple instanceof A.PseudoSelector0 && simple.selector != null) {
  84785. extended = this._extension_store$_extendPseudo$4(simple, simpleSpan, extensions, mediaQueryContext);
  84786. if (extended != null)
  84787. return new A.MappedListIterable(extended, new A.ExtensionStore__extendSimple_closure1(this, t1, simpleSpan), A._arrayInstanceType(extended)._eval$1("MappedListIterable<1,List<Extender0>>"));
  84788. }
  84789. return A.NullableExtension_andThen0(t1.call$1(simple), new A.ExtensionStore__extendSimple_closure2());
  84790. },
  84791. _extension_store$_extenderForSimple$2(simple, span) {
  84792. var t1 = A.ComplexSelector$0(B.List_empty13, A._setArrayType([new A.ComplexSelectorComponent0(A.CompoundSelector$0(A._setArrayType([simple], type$.JSArray_SimpleSelector_2)), A.List_List$unmodifiable(B.List_empty13, type$.Combinator_2))], type$.JSArray_ComplexSelectorComponent_2), false);
  84793. this._extension_store$_sourceSpecificity.$index(0, simple);
  84794. return new A.Extender0(t1, true, span);
  84795. },
  84796. _extension_store$_extendPseudo$4(pseudo, pseudoSpan, extensions, mediaQueryContext) {
  84797. var extended, complexes, t1, result,
  84798. selector = pseudo.selector;
  84799. if (selector == null)
  84800. throw A.wrapException(A.ArgumentError$("Selector " + pseudo.toString$0(0) + " must have a selector argument.", null));
  84801. extended = this._extension_store$_extendList$4(selector, pseudoSpan, extensions, mediaQueryContext);
  84802. if (extended === selector)
  84803. return null;
  84804. complexes = extended.components;
  84805. t1 = pseudo.normalizedName === "not";
  84806. if (t1 && !B.JSArray_methods.any$1(selector.components, new A.ExtensionStore__extendPseudo_closure4()) && B.JSArray_methods.any$1(complexes, new A.ExtensionStore__extendPseudo_closure5()))
  84807. complexes = new A.WhereIterable(complexes, new A.ExtensionStore__extendPseudo_closure6(), A._arrayInstanceType(complexes)._eval$1("WhereIterable<1>"));
  84808. complexes = J.expand$1$1$ax(complexes, new A.ExtensionStore__extendPseudo_closure7(pseudo), type$.ComplexSelector_2);
  84809. if (t1 && selector.components.length === 1) {
  84810. t1 = A.MappedIterable_MappedIterable(complexes, new A.ExtensionStore__extendPseudo_closure8(pseudo), complexes.$ti._eval$1("Iterable.E"), type$.PseudoSelector_2);
  84811. result = A.List_List$of(t1, true, A._instanceType(t1)._eval$1("Iterable.E"));
  84812. return result.length === 0 ? null : result;
  84813. } else
  84814. return A._setArrayType([A.PseudoSelector$0(pseudo.name, pseudo.argument, !pseudo.isClass, A.SelectorList$0(complexes))], type$.JSArray_PseudoSelector_2);
  84815. },
  84816. _extension_store$_trim$2(selectors, isOriginal) {
  84817. var result, i, t1, t2, numOriginals, _box_0, complex1, j, t3, t4, _i, t5, maxSpecificity;
  84818. if (selectors.length > 100)
  84819. return selectors;
  84820. result = A.QueueList$(null, type$.ComplexSelector_2);
  84821. $label0$0:
  84822. for (i = selectors.length - 1, t1 = A._arrayInstanceType(selectors), t2 = t1._precomputed1, t1 = t1._eval$1("SubListIterable<1>"), numOriginals = 0; i >= 0; --i) {
  84823. _box_0 = {};
  84824. complex1 = selectors[i];
  84825. if (isOriginal.call$1(complex1)) {
  84826. for (j = 0; j < numOriginals; ++j)
  84827. if (J.$eq$(result.$index(0, j), complex1)) {
  84828. A.rotateSlice0(result, 0, j + 1);
  84829. continue $label0$0;
  84830. }
  84831. ++numOriginals;
  84832. result.addFirst$1(complex1);
  84833. continue $label0$0;
  84834. }
  84835. _box_0.maxSpecificity = 0;
  84836. for (t3 = complex1.components, t4 = t3.length, _i = 0, t5 = 0; _i < t4; ++_i, t5 = maxSpecificity) {
  84837. maxSpecificity = Math.max(t5, this._extension_store$_sourceSpecificityFor$1(t3[_i].selector));
  84838. _box_0.maxSpecificity = maxSpecificity;
  84839. }
  84840. if (result.any$1(result, new A.ExtensionStore__trim_closure1(_box_0, complex1)))
  84841. continue $label0$0;
  84842. t3 = new A.SubListIterable(selectors, 0, i, t1);
  84843. t3.SubListIterable$3(selectors, 0, i, t2);
  84844. if (t3.any$1(0, new A.ExtensionStore__trim_closure2(_box_0, complex1)))
  84845. continue $label0$0;
  84846. result.addFirst$1(complex1);
  84847. }
  84848. return result;
  84849. },
  84850. _extension_store$_sourceSpecificityFor$1(compound) {
  84851. var t1, t2, t3, specificity, _i, t4;
  84852. for (t1 = compound.components, t2 = t1.length, t3 = this._extension_store$_sourceSpecificity, specificity = 0, _i = 0; _i < t2; ++_i) {
  84853. t4 = t3.$index(0, t1[_i]);
  84854. specificity = Math.max(specificity, A.checkNum(t4 == null ? 0 : t4));
  84855. }
  84856. return specificity;
  84857. },
  84858. clone$0() {
  84859. var t3, t4, _this = this,
  84860. t1 = type$.SimpleSelector_2,
  84861. newSelectors = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Set_ModifiableCssValue_SelectorList_2),
  84862. t2 = type$.ModifiableCssValue_SelectorList_2,
  84863. newMediaContexts = A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.List_CssMediaQuery_2),
  84864. oldToNewSelectors = A.LinkedHashMap_LinkedHashMap$_empty(type$.CssValue_SelectorList_2, t2);
  84865. _this._extension_store$_selectors.forEach$1(0, new A.ExtensionStore_clone_closure0(_this, newSelectors, oldToNewSelectors, newMediaContexts));
  84866. t2 = type$.Extension_2;
  84867. t3 = A.copyMapOfMap0(_this._extension_store$_extensions, t1, type$.ComplexSelector_2, t2);
  84868. t2 = A.copyMapOfList0(_this._extension_store$_extensionsByExtender, t1, t2);
  84869. t1 = new A._LinkedIdentityHashMap(type$._LinkedIdentityHashMap_SimpleSelector_int_2);
  84870. t1.addAll$1(0, _this._extension_store$_sourceSpecificity);
  84871. t4 = new A._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_ComplexSelector_2);
  84872. t4.addAll$1(0, _this._extension_store$_originals);
  84873. return new A.Tuple2(new A.ExtensionStore0(newSelectors, t3, t2, newMediaContexts, t1, t4, B.ExtendMode_normal_normal0), oldToNewSelectors, type$.Tuple2_of_ExtensionStore_and_Map_of_CssValue_SelectorList_and_ModifiableCssValue_SelectorList_2);
  84874. },
  84875. get$_extension_store$_extensions() {
  84876. return this._extension_store$_extensions;
  84877. },
  84878. get$_extension_store$_sourceSpecificity() {
  84879. return this._extension_store$_sourceSpecificity;
  84880. }
  84881. };
  84882. A.ExtensionStore_extensionsWhereTarget_closure0.prototype = {
  84883. call$1(extension) {
  84884. return !extension.isOptional;
  84885. },
  84886. $signature: 407
  84887. };
  84888. A.ExtensionStore__registerSelector_closure0.prototype = {
  84889. call$0() {
  84890. return A.LinkedHashSet_LinkedHashSet$_empty(type$.ModifiableCssValue_SelectorList_2);
  84891. },
  84892. $signature: 408
  84893. };
  84894. A.ExtensionStore_addExtension_closure2.prototype = {
  84895. call$0() {
  84896. return A.LinkedHashMap_LinkedHashMap$_empty(type$.ComplexSelector_2, type$.Extension_2);
  84897. },
  84898. $signature: 108
  84899. };
  84900. A.ExtensionStore_addExtension_closure3.prototype = {
  84901. call$0() {
  84902. return A._setArrayType([], type$.JSArray_Extension_2);
  84903. },
  84904. $signature: 172
  84905. };
  84906. A.ExtensionStore_addExtension_closure4.prototype = {
  84907. call$0() {
  84908. return this.complex.get$specificity();
  84909. },
  84910. $signature: 12
  84911. };
  84912. A.ExtensionStore__extendExistingExtensions_closure1.prototype = {
  84913. call$0() {
  84914. return A._setArrayType([], type$.JSArray_Extension_2);
  84915. },
  84916. $signature: 172
  84917. };
  84918. A.ExtensionStore__extendExistingExtensions_closure2.prototype = {
  84919. call$0() {
  84920. return A.LinkedHashMap_LinkedHashMap$_empty(type$.ComplexSelector_2, type$.Extension_2);
  84921. },
  84922. $signature: 108
  84923. };
  84924. A.ExtensionStore_addExtensions_closure1.prototype = {
  84925. call$2(target, newSources) {
  84926. var first, t1, extensionsForTarget, t2, t3, t4, selectorsForTarget, t5, existingSources, _this = this;
  84927. if (target instanceof A.PlaceholderSelector0) {
  84928. first = B.JSString_methods._codeUnitAt$1(target.name, 0);
  84929. t1 = first === 45 || first === 95;
  84930. } else
  84931. t1 = false;
  84932. if (t1)
  84933. return;
  84934. t1 = _this.$this;
  84935. extensionsForTarget = t1._extension_store$_extensionsByExtender.$index(0, target);
  84936. t2 = extensionsForTarget == null;
  84937. if (!t2) {
  84938. t3 = _this._box_0;
  84939. t4 = t3.extensionsToExtend;
  84940. B.JSArray_methods.addAll$1(t4 == null ? t3.extensionsToExtend = A._setArrayType([], type$.JSArray_Extension_2) : t4, extensionsForTarget);
  84941. }
  84942. selectorsForTarget = t1._extension_store$_selectors.$index(0, target);
  84943. t3 = selectorsForTarget != null;
  84944. if (t3) {
  84945. t4 = _this._box_0;
  84946. t5 = t4.selectorsToExtend;
  84947. (t5 == null ? t4.selectorsToExtend = A.LinkedHashSet_LinkedHashSet$_empty(type$.ModifiableCssValue_SelectorList_2) : t5).addAll$1(0, selectorsForTarget);
  84948. }
  84949. t1 = t1._extension_store$_extensions;
  84950. existingSources = t1.$index(0, target);
  84951. if (existingSources == null) {
  84952. t4 = type$.ComplexSelector_2;
  84953. t5 = type$.Extension_2;
  84954. t1.$indexSet(0, target, A.LinkedHashMap_LinkedHashMap$of(newSources, t4, t5));
  84955. if (!t2 || t3) {
  84956. t1 = _this._box_0;
  84957. t2 = t1.newExtensions;
  84958. t1 = t2 == null ? t1.newExtensions = A.LinkedHashMap_LinkedHashMap$_empty(type$.SimpleSelector_2, type$.Map_ComplexSelector_Extension_2) : t2;
  84959. t1.$indexSet(0, target, A.LinkedHashMap_LinkedHashMap$of(newSources, t4, t5));
  84960. }
  84961. } else
  84962. newSources.forEach$1(0, new A.ExtensionStore_addExtensions__closure4(_this._box_0, existingSources, extensionsForTarget, selectorsForTarget, target));
  84963. },
  84964. $signature: 411
  84965. };
  84966. A.ExtensionStore_addExtensions__closure4.prototype = {
  84967. call$2(extender, extension) {
  84968. var t2, _this = this,
  84969. t1 = _this.existingSources;
  84970. if (t1.containsKey$1(extender)) {
  84971. t2 = t1.$index(0, extender);
  84972. extension = A.MergedExtension_merge0(t2, extension);
  84973. t1.$indexSet(0, extender, extension);
  84974. } else
  84975. t1.$indexSet(0, extender, extension);
  84976. if (_this.extensionsForTarget != null || _this.selectorsForTarget != null) {
  84977. t1 = _this._box_0;
  84978. t2 = t1.newExtensions;
  84979. t1 = t2 == null ? t1.newExtensions = A.LinkedHashMap_LinkedHashMap$_empty(type$.SimpleSelector_2, type$.Map_ComplexSelector_Extension_2) : t2;
  84980. J.$indexSet$ax(t1.putIfAbsent$2(_this.target, new A.ExtensionStore_addExtensions___closure0()), extender, extension);
  84981. }
  84982. },
  84983. $signature: 412
  84984. };
  84985. A.ExtensionStore_addExtensions___closure0.prototype = {
  84986. call$0() {
  84987. return A.LinkedHashMap_LinkedHashMap$_empty(type$.ComplexSelector_2, type$.Extension_2);
  84988. },
  84989. $signature: 108
  84990. };
  84991. A.ExtensionStore_addExtensions_closure2.prototype = {
  84992. call$1(newExtensions) {
  84993. var t1 = this._box_0,
  84994. t2 = this.$this;
  84995. A.NullableExtension_andThen0(t1.extensionsToExtend, new A.ExtensionStore_addExtensions__closure2(t2, newExtensions));
  84996. A.NullableExtension_andThen0(t1.selectorsToExtend, new A.ExtensionStore_addExtensions__closure3(t2, newExtensions));
  84997. },
  84998. $signature: 413
  84999. };
  85000. A.ExtensionStore_addExtensions__closure2.prototype = {
  85001. call$1(extensionsToExtend) {
  85002. return this.$this._extension_store$_extendExistingExtensions$2(extensionsToExtend, this.newExtensions);
  85003. },
  85004. $signature: 414
  85005. };
  85006. A.ExtensionStore_addExtensions__closure3.prototype = {
  85007. call$1(selectorsToExtend) {
  85008. return this.$this._extension_store$_extendExistingSelectors$2(selectorsToExtend, this.newExtensions);
  85009. },
  85010. $signature: 415
  85011. };
  85012. A.ExtensionStore__extendComplex_closure0.prototype = {
  85013. call$1(path) {
  85014. var t1 = this.complex;
  85015. return J.map$1$1$ax(A.weave0(path, t1.lineBreak), new A.ExtensionStore__extendComplex__closure0(this._box_0, this.$this, t1), type$.ComplexSelector_2);
  85016. },
  85017. $signature: 416
  85018. };
  85019. A.ExtensionStore__extendComplex__closure0.prototype = {
  85020. call$1(outputComplex) {
  85021. var _this = this,
  85022. t1 = _this._box_0;
  85023. if (t1.first && _this.$this._extension_store$_originals.contains$1(0, _this.complex))
  85024. _this.$this._extension_store$_originals.add$1(0, outputComplex);
  85025. t1.first = false;
  85026. return outputComplex;
  85027. },
  85028. $signature: 71
  85029. };
  85030. A.ExtensionStore__extendCompound_closure2.prototype = {
  85031. call$1(extender) {
  85032. return B.JSArray_methods.get$last(extender.selector.components).selector.components;
  85033. },
  85034. $signature: 418
  85035. };
  85036. A.ExtensionStore__extendCompound_closure3.prototype = {
  85037. call$1(_) {
  85038. return false;
  85039. },
  85040. $signature: 15
  85041. };
  85042. A.ExtensionStore__extendCompound_closure4.prototype = {
  85043. call$1(complex) {
  85044. return complex.$eq(0, this.original);
  85045. },
  85046. $signature: 15
  85047. };
  85048. A.ExtensionStore__extendSimple_withoutPseudo0.prototype = {
  85049. call$1(simple) {
  85050. var t1, t2, _this = this,
  85051. extensionsForSimple = _this.extensions.$index(0, simple);
  85052. if (extensionsForSimple == null)
  85053. return null;
  85054. t1 = _this.targetsUsed;
  85055. if (t1 != null)
  85056. t1.add$1(0, simple);
  85057. t1 = A._setArrayType([], type$.JSArray_Extender_2);
  85058. t2 = _this.$this;
  85059. if (t2._extension_store$_mode !== B.ExtendMode_replace_replace0)
  85060. t1.push(t2._extension_store$_extenderForSimple$2(simple, _this.simpleSpan));
  85061. for (t2 = extensionsForSimple.get$values(extensionsForSimple), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  85062. t1.push(t2.get$current(t2).extender);
  85063. return t1;
  85064. },
  85065. $signature: 419
  85066. };
  85067. A.ExtensionStore__extendSimple_closure1.prototype = {
  85068. call$1(pseudo) {
  85069. var t1 = this.withoutPseudo.call$1(pseudo);
  85070. return t1 == null ? A._setArrayType([this.$this._extension_store$_extenderForSimple$2(pseudo, this.simpleSpan)], type$.JSArray_Extender_2) : t1;
  85071. },
  85072. $signature: 420
  85073. };
  85074. A.ExtensionStore__extendSimple_closure2.prototype = {
  85075. call$1(result) {
  85076. return A._setArrayType([result], type$.JSArray_List_Extender_2);
  85077. },
  85078. $signature: 421
  85079. };
  85080. A.ExtensionStore__extendPseudo_closure4.prototype = {
  85081. call$1(complex) {
  85082. return complex.components.length > 1;
  85083. },
  85084. $signature: 15
  85085. };
  85086. A.ExtensionStore__extendPseudo_closure5.prototype = {
  85087. call$1(complex) {
  85088. return complex.components.length === 1;
  85089. },
  85090. $signature: 15
  85091. };
  85092. A.ExtensionStore__extendPseudo_closure6.prototype = {
  85093. call$1(complex) {
  85094. return complex.components.length <= 1;
  85095. },
  85096. $signature: 15
  85097. };
  85098. A.ExtensionStore__extendPseudo_closure7.prototype = {
  85099. call$1(complex) {
  85100. var innerPseudo, innerSelector,
  85101. t1 = complex.get$singleCompound();
  85102. if (t1 == null)
  85103. innerPseudo = null;
  85104. else {
  85105. t1 = t1.components;
  85106. innerPseudo = t1.length === 1 ? B.JSArray_methods.get$first(t1) : null;
  85107. }
  85108. if (!(innerPseudo instanceof A.PseudoSelector0))
  85109. return A._setArrayType([complex], type$.JSArray_ComplexSelector_2);
  85110. innerSelector = innerPseudo.selector;
  85111. if (innerSelector == null)
  85112. return A._setArrayType([complex], type$.JSArray_ComplexSelector_2);
  85113. t1 = this.pseudo;
  85114. switch (t1.normalizedName) {
  85115. case "not":
  85116. if (!B.Set_YEQji._map.containsKey$1(innerPseudo.normalizedName))
  85117. return A._setArrayType([], type$.JSArray_ComplexSelector_2);
  85118. return innerSelector.components;
  85119. case "is":
  85120. case "matches":
  85121. case "where":
  85122. case "any":
  85123. case "current":
  85124. case "nth-child":
  85125. case "nth-last-child":
  85126. if (innerPseudo.name !== t1.name)
  85127. return A._setArrayType([], type$.JSArray_ComplexSelector_2);
  85128. if (innerPseudo.argument != t1.argument)
  85129. return A._setArrayType([], type$.JSArray_ComplexSelector_2);
  85130. return innerSelector.components;
  85131. case "has":
  85132. case "host":
  85133. case "host-context":
  85134. case "slotted":
  85135. return A._setArrayType([complex], type$.JSArray_ComplexSelector_2);
  85136. default:
  85137. return A._setArrayType([], type$.JSArray_ComplexSelector_2);
  85138. }
  85139. },
  85140. $signature: 422
  85141. };
  85142. A.ExtensionStore__extendPseudo_closure8.prototype = {
  85143. call$1(complex) {
  85144. var t1 = this.pseudo;
  85145. return A.PseudoSelector$0(t1.name, t1.argument, !t1.isClass, A.SelectorList$0(A._setArrayType([complex], type$.JSArray_ComplexSelector_2)));
  85146. },
  85147. $signature: 423
  85148. };
  85149. A.ExtensionStore__trim_closure1.prototype = {
  85150. call$1(complex2) {
  85151. return complex2.get$specificity() >= this._box_0.maxSpecificity && complex2.isSuperselector$1(this.complex1);
  85152. },
  85153. $signature: 15
  85154. };
  85155. A.ExtensionStore__trim_closure2.prototype = {
  85156. call$1(complex2) {
  85157. return complex2.get$specificity() >= this._box_0.maxSpecificity && complex2.isSuperselector$1(this.complex1);
  85158. },
  85159. $signature: 15
  85160. };
  85161. A.ExtensionStore_clone_closure0.prototype = {
  85162. call$2(simple, selectors) {
  85163. var t2, t3, t4, t5, t6, newSelector, mediaContext, _this = this,
  85164. t1 = type$.ModifiableCssValue_SelectorList_2,
  85165. newSelectorSet = A.LinkedHashSet_LinkedHashSet$_empty(t1);
  85166. _this.newSelectors.$indexSet(0, simple, newSelectorSet);
  85167. for (t2 = selectors.get$iterator(selectors), t3 = _this.oldToNewSelectors, t4 = _this.$this._extension_store$_mediaContexts, t5 = _this.newMediaContexts; t2.moveNext$0();) {
  85168. t6 = t2.get$current(t2);
  85169. newSelector = new A.ModifiableCssValue0(t6.value, t6.span, t1);
  85170. newSelectorSet.add$1(0, newSelector);
  85171. t3.$indexSet(0, t6, newSelector);
  85172. mediaContext = t4.$index(0, t6);
  85173. if (mediaContext != null)
  85174. t5.$indexSet(0, newSelector, mediaContext);
  85175. }
  85176. },
  85177. $signature: 424
  85178. };
  85179. A.FiberClass.prototype = {};
  85180. A.Fiber.prototype = {};
  85181. A.NodeToDartFileImporter.prototype = {
  85182. canonicalize$1(_, url) {
  85183. var result, t1, resultUrl;
  85184. if (url.get$scheme() === "file")
  85185. return $.$get$_filesystemImporter0().canonicalize$1(0, url);
  85186. result = this._file0$_findFileUrl.call$2(url.toString$0(0), {fromImport: A.fromImport0()});
  85187. if (result == null)
  85188. return null;
  85189. t1 = self.Promise;
  85190. if (result instanceof t1)
  85191. A.jsThrow(new self.Error("The findFileUrl() function can't return a Promise for synchron compile functions."));
  85192. else {
  85193. t1 = self.URL;
  85194. if (!(result instanceof t1))
  85195. A.jsThrow(new self.Error(string$.The_fie));
  85196. }
  85197. resultUrl = A.Uri_parse(J.toString$0$(type$.JSUrl._as(result)));
  85198. if (resultUrl.get$scheme() !== "file")
  85199. A.jsThrow(new self.Error(string$.The_fiu + url.toString$0(0) + '".'));
  85200. return $.$get$_filesystemImporter0().canonicalize$1(0, resultUrl);
  85201. },
  85202. load$1(_, url) {
  85203. return $.$get$_filesystemImporter0().load$1(0, url);
  85204. }
  85205. };
  85206. A.FilesystemImporter0.prototype = {
  85207. canonicalize$1(_, url) {
  85208. if (url.get$scheme() !== "file" && url.get$scheme() !== "")
  85209. return null;
  85210. return A.NullableExtension_andThen0(A.resolveImportPath0(A.join(this._filesystem$_loadPath, $.$get$context().style.pathFromUri$1(A._parseUri(url)), null)), new A.FilesystemImporter_canonicalize_closure0());
  85211. },
  85212. load$1(_, url) {
  85213. var path = $.$get$context().style.pathFromUri$1(A._parseUri(url));
  85214. return A.ImporterResult$(A.readFile0(path), url, A.Syntax_forPath0(path));
  85215. },
  85216. toString$0(_) {
  85217. return this._filesystem$_loadPath;
  85218. }
  85219. };
  85220. A.FilesystemImporter_canonicalize_closure0.prototype = {
  85221. call$1(resolved) {
  85222. var t1, t2, t0, _null = null;
  85223. if (J.$eq$(J.get$platform$x(self.process), "win32") || J.$eq$(J.get$platform$x(self.process), "darwin")) {
  85224. t1 = $.$get$context();
  85225. t2 = A._realCasePath0(A.absolute(t1.normalize$1(resolved), _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null));
  85226. t0 = t2;
  85227. t2 = t1;
  85228. t1 = t0;
  85229. } else {
  85230. t1 = $.$get$context();
  85231. t2 = t1.canonicalize$1(0, resolved);
  85232. t0 = t2;
  85233. t2 = t1;
  85234. t1 = t0;
  85235. }
  85236. return t2.toUri$1(t1);
  85237. },
  85238. $signature: 159
  85239. };
  85240. A.ForRule0.prototype = {
  85241. accept$1$1(visitor) {
  85242. return visitor.visitForRule$1(this);
  85243. },
  85244. accept$1(visitor) {
  85245. return this.accept$1$1(visitor, type$.dynamic);
  85246. },
  85247. toString$0(_) {
  85248. var _this = this,
  85249. t1 = _this.from.toString$0(0),
  85250. t2 = _this.isExclusive ? "to" : "through",
  85251. t3 = _this.children;
  85252. return "@for $" + _this.variable + " from " + t1 + " " + t2 + " " + _this.to.toString$0(0) + " {" + (t3 && B.JSArray_methods).join$1(t3, " ") + "}";
  85253. },
  85254. get$span(receiver) {
  85255. return this.span;
  85256. }
  85257. };
  85258. A.ForwardRule0.prototype = {
  85259. accept$1$1(visitor) {
  85260. return visitor.visitForwardRule$1(this);
  85261. },
  85262. accept$1(visitor) {
  85263. return this.accept$1$1(visitor, type$.dynamic);
  85264. },
  85265. toString$0(_) {
  85266. var t2, prefix, _this = this,
  85267. t1 = "@forward " + A.StringExpression_quoteText0(_this.url.toString$0(0)),
  85268. shownMixinsAndFunctions = _this.shownMixinsAndFunctions,
  85269. hiddenMixinsAndFunctions = _this.hiddenMixinsAndFunctions;
  85270. if (shownMixinsAndFunctions != null) {
  85271. t2 = _this.shownVariables;
  85272. t2.toString;
  85273. t2 = t1 + " show " + _this._forward_rule0$_memberList$2(shownMixinsAndFunctions, t2);
  85274. t1 = t2;
  85275. } else {
  85276. if (hiddenMixinsAndFunctions != null) {
  85277. t2 = hiddenMixinsAndFunctions._base;
  85278. t2 = t2.get$isNotEmpty(t2);
  85279. } else
  85280. t2 = false;
  85281. if (t2) {
  85282. t2 = _this.hiddenVariables;
  85283. t2.toString;
  85284. t2 = t1 + " hide " + _this._forward_rule0$_memberList$2(hiddenMixinsAndFunctions, t2);
  85285. t1 = t2;
  85286. }
  85287. }
  85288. prefix = _this.prefix;
  85289. if (prefix != null)
  85290. t1 += " as " + prefix + "*";
  85291. t2 = _this.configuration;
  85292. t1 = (t2.length !== 0 ? t1 + (" with (" + B.JSArray_methods.join$1(t2, ", ") + ")") : t1) + ";";
  85293. return t1.charCodeAt(0) == 0 ? t1 : t1;
  85294. },
  85295. _forward_rule0$_memberList$2(mixinsAndFunctions, variables) {
  85296. var t2,
  85297. t1 = A.List_List$of(mixinsAndFunctions, true, type$.String);
  85298. for (t2 = variables._base, t2 = t2.get$iterator(t2); t2.moveNext$0();)
  85299. t1.push("$" + t2.get$current(t2));
  85300. return B.JSArray_methods.join$1(t1, ", ");
  85301. },
  85302. $isAstNode0: 1,
  85303. $isStatement0: 1,
  85304. get$span(receiver) {
  85305. return this.span;
  85306. }
  85307. };
  85308. A.ForwardedModuleView0.prototype = {
  85309. get$url(_) {
  85310. var t1 = this._forwarded_view0$_inner;
  85311. return t1.get$url(t1);
  85312. },
  85313. get$upstream() {
  85314. return this._forwarded_view0$_inner.get$upstream();
  85315. },
  85316. get$extensionStore() {
  85317. return this._forwarded_view0$_inner.get$extensionStore();
  85318. },
  85319. get$css(_) {
  85320. var t1 = this._forwarded_view0$_inner;
  85321. return t1.get$css(t1);
  85322. },
  85323. get$transitivelyContainsCss() {
  85324. return this._forwarded_view0$_inner.get$transitivelyContainsCss();
  85325. },
  85326. get$transitivelyContainsExtensions() {
  85327. return this._forwarded_view0$_inner.get$transitivelyContainsExtensions();
  85328. },
  85329. setVariable$3($name, value, nodeWithSpan) {
  85330. var prefix,
  85331. _s19_ = "Undefined variable.",
  85332. t1 = this._forwarded_view0$_rule,
  85333. shownVariables = t1.shownVariables,
  85334. hiddenVariables = t1.hiddenVariables;
  85335. if (shownVariables != null && !shownVariables._base.contains$1(0, $name))
  85336. throw A.wrapException(A.SassScriptException$0(_s19_, null));
  85337. else if (hiddenVariables != null && hiddenVariables._base.contains$1(0, $name))
  85338. throw A.wrapException(A.SassScriptException$0(_s19_, null));
  85339. prefix = t1.prefix;
  85340. if (prefix != null) {
  85341. if (!B.JSString_methods.startsWith$1($name, prefix))
  85342. throw A.wrapException(A.SassScriptException$0(_s19_, null));
  85343. $name = B.JSString_methods.substring$1($name, prefix.length);
  85344. }
  85345. return this._forwarded_view0$_inner.setVariable$3($name, value, nodeWithSpan);
  85346. },
  85347. variableIdentity$1($name) {
  85348. var prefix = this._forwarded_view0$_rule.prefix;
  85349. if (prefix != null)
  85350. $name = B.JSString_methods.substring$1($name, prefix.length);
  85351. return this._forwarded_view0$_inner.variableIdentity$1($name);
  85352. },
  85353. $eq(_, other) {
  85354. if (other == null)
  85355. return false;
  85356. return other instanceof A.ForwardedModuleView0 && this._forwarded_view0$_inner.$eq(0, other._forwarded_view0$_inner) && this._forwarded_view0$_rule === other._forwarded_view0$_rule;
  85357. },
  85358. get$hashCode(_) {
  85359. var t1 = this._forwarded_view0$_inner;
  85360. return (t1.get$hashCode(t1) ^ A.Primitives_objectHashCode(this._forwarded_view0$_rule)) >>> 0;
  85361. },
  85362. cloneCss$0() {
  85363. return A.ForwardedModuleView$0(this._forwarded_view0$_inner.cloneCss$0(), this._forwarded_view0$_rule, this.$ti._precomputed1);
  85364. },
  85365. toString$0(_) {
  85366. return "forwarded " + this._forwarded_view0$_inner.toString$0(0);
  85367. },
  85368. $isModule0: 1,
  85369. get$variables() {
  85370. return this.variables;
  85371. },
  85372. get$variableNodes() {
  85373. return this.variableNodes;
  85374. },
  85375. get$functions(receiver) {
  85376. return this.functions;
  85377. },
  85378. get$mixins() {
  85379. return this.mixins;
  85380. }
  85381. };
  85382. A.FunctionExpression0.prototype = {
  85383. accept$1$1(visitor) {
  85384. return visitor.visitFunctionExpression$1(this);
  85385. },
  85386. accept$1(visitor) {
  85387. return this.accept$1$1(visitor, type$.dynamic);
  85388. },
  85389. toString$0(_) {
  85390. var t1 = this.namespace;
  85391. t1 = t1 != null ? "" + (t1 + ".") : "";
  85392. t1 += this.originalName + this.$arguments.toString$0(0);
  85393. return t1.charCodeAt(0) == 0 ? t1 : t1;
  85394. },
  85395. $isExpression0: 1,
  85396. $isAstNode0: 1,
  85397. get$span(receiver) {
  85398. return this.span;
  85399. }
  85400. };
  85401. A.JSFunction0.prototype = {};
  85402. A.SupportsFunction0.prototype = {
  85403. toString$0(_) {
  85404. return this.name.toString$0(0) + "(" + this.$arguments.toString$0(0) + ")";
  85405. },
  85406. $isAstNode0: 1,
  85407. get$span(receiver) {
  85408. return this.span;
  85409. }
  85410. };
  85411. A.functionClass_closure.prototype = {
  85412. call$0() {
  85413. var t1 = type$.JSClass,
  85414. jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.SassFunction", new A.functionClass__closure()));
  85415. A.JSClassExtension_injectSuperclass(t1._as(new A.SassFunction0(A.BuiltInCallable$function0("f", "", new A.functionClass__closure0(), null)).constructor), jsClass);
  85416. return jsClass;
  85417. },
  85418. $signature: 25
  85419. };
  85420. A.functionClass__closure.prototype = {
  85421. call$3($self, signature, callback) {
  85422. var paren = B.JSString_methods.indexOf$1(signature, "(");
  85423. if (paren === -1 || !B.JSString_methods.endsWith$1(signature, ")"))
  85424. A.jsThrow(new self.Error('Invalid signature for new sass.SassFunction(): "' + signature + '"'));
  85425. return new A.SassFunction0(A.BuiltInCallable$function0(B.JSString_methods.substring$2(signature, 0, paren), B.JSString_methods.substring$2(signature, paren + 1, signature.length - 1), callback, null));
  85426. },
  85427. "call*": "call$3",
  85428. $requiredArgCount: 3,
  85429. $signature: 425
  85430. };
  85431. A.functionClass__closure0.prototype = {
  85432. call$1(_) {
  85433. return B.C__SassNull0;
  85434. },
  85435. $signature: 3
  85436. };
  85437. A.SassFunction0.prototype = {
  85438. accept$1$1(visitor) {
  85439. var t1, t2;
  85440. if (!visitor._serialize0$_inspect)
  85441. A.throwExpression(A.SassScriptException$0(this.toString$0(0) + " isn't a valid CSS value.", null));
  85442. t1 = visitor._serialize0$_buffer;
  85443. t1.write$1(0, "get-function(");
  85444. t2 = this.callable;
  85445. visitor._serialize0$_visitQuotedString$1(t2.get$name(t2));
  85446. t1.writeCharCode$1(41);
  85447. return null;
  85448. },
  85449. accept$1(visitor) {
  85450. return this.accept$1$1(visitor, type$.dynamic);
  85451. },
  85452. assertFunction$1($name) {
  85453. return this;
  85454. },
  85455. $eq(_, other) {
  85456. if (other == null)
  85457. return false;
  85458. return other instanceof A.SassFunction0 && this.callable.$eq(0, other.callable);
  85459. },
  85460. get$hashCode(_) {
  85461. var t1 = this.callable;
  85462. return t1.get$hashCode(t1);
  85463. }
  85464. };
  85465. A.FunctionRule0.prototype = {
  85466. accept$1$1(visitor) {
  85467. return visitor.visitFunctionRule$1(this);
  85468. },
  85469. accept$1(visitor) {
  85470. return this.accept$1$1(visitor, type$.dynamic);
  85471. },
  85472. toString$0(_) {
  85473. var t1 = this.children;
  85474. return "@function " + this.name + "(" + this.$arguments.toString$0(0) + ") {" + (t1 && B.JSArray_methods).join$1(t1, " ") + "}";
  85475. }
  85476. };
  85477. A.unifyComplex_closure0.prototype = {
  85478. call$1(complex) {
  85479. return complex.lineBreak;
  85480. },
  85481. $signature: 15
  85482. };
  85483. A._weaveParents_closure3.prototype = {
  85484. call$2(group1, group2) {
  85485. var unified, t1;
  85486. if (B.C_ListEquality.equals$2(0, group1, group2))
  85487. return group1;
  85488. if (A._complexIsParentSuperselector0(group1, group2))
  85489. return group2;
  85490. if (A._complexIsParentSuperselector0(group2, group1))
  85491. return group1;
  85492. if (!A._mustUnify0(group1, group2))
  85493. return null;
  85494. unified = A.unifyComplex0(A._setArrayType([A.ComplexSelector$0(B.List_empty13, group1, false), A.ComplexSelector$0(B.List_empty13, group2, false)], type$.JSArray_ComplexSelector_2));
  85495. if (unified == null)
  85496. return null;
  85497. t1 = J.getInterceptor$asx(unified);
  85498. if (t1.get$length(unified) > 1)
  85499. return null;
  85500. return t1.get$first(unified).components;
  85501. },
  85502. $signature: 426
  85503. };
  85504. A._weaveParents_closure4.prototype = {
  85505. call$1(sequence) {
  85506. return A._complexIsParentSuperselector0(sequence.get$first(sequence), this.group);
  85507. },
  85508. $signature: 427
  85509. };
  85510. A._weaveParents_closure5.prototype = {
  85511. call$1(sequence) {
  85512. return sequence.get$length(sequence) === 0;
  85513. },
  85514. $signature: 180
  85515. };
  85516. A._weaveParents_closure6.prototype = {
  85517. call$1(choice) {
  85518. return J.get$isNotEmpty$asx(choice);
  85519. },
  85520. $signature: 428
  85521. };
  85522. A._mustUnify_closure0.prototype = {
  85523. call$1(component) {
  85524. return B.JSArray_methods.any$1(component.selector.components, new A._mustUnify__closure0(this.uniqueSelectors));
  85525. },
  85526. $signature: 51
  85527. };
  85528. A._mustUnify__closure0.prototype = {
  85529. call$1(simple) {
  85530. var t1;
  85531. if (!(simple instanceof A.IDSelector0))
  85532. t1 = simple instanceof A.PseudoSelector0 && !simple.isClass;
  85533. else
  85534. t1 = true;
  85535. return t1 && this.uniqueSelectors.contains$1(0, simple);
  85536. },
  85537. $signature: 13
  85538. };
  85539. A.paths_closure0.prototype = {
  85540. call$2(paths, choice) {
  85541. var t1 = this.T;
  85542. t1 = J.expand$1$1$ax(choice, new A.paths__closure0(paths, t1), t1._eval$1("List<0>"));
  85543. return A.List_List$of(t1, true, t1.$ti._eval$1("Iterable.E"));
  85544. },
  85545. $signature() {
  85546. return this.T._eval$1("List<List<0>>(List<List<0>>,List<0>)");
  85547. }
  85548. };
  85549. A.paths__closure0.prototype = {
  85550. call$1(option) {
  85551. var t1 = this.T;
  85552. return J.map$1$1$ax(this.paths, new A.paths___closure0(option, t1), t1._eval$1("List<0>"));
  85553. },
  85554. $signature() {
  85555. return this.T._eval$1("Iterable<List<0>>(0)");
  85556. }
  85557. };
  85558. A.paths___closure0.prototype = {
  85559. call$1(path) {
  85560. var t1 = A.List_List$of(path, true, this.T);
  85561. t1.push(this.option);
  85562. return t1;
  85563. },
  85564. $signature() {
  85565. return this.T._eval$1("List<0>(List<0>)");
  85566. }
  85567. };
  85568. A.listIsSuperselector_closure0.prototype = {
  85569. call$1(complex1) {
  85570. return B.JSArray_methods.any$1(this.list1, new A.listIsSuperselector__closure0(complex1));
  85571. },
  85572. $signature: 15
  85573. };
  85574. A.listIsSuperselector__closure0.prototype = {
  85575. call$1(complex2) {
  85576. return complex2.isSuperselector$1(this.complex1);
  85577. },
  85578. $signature: 15
  85579. };
  85580. A.complexIsSuperselector_closure1.prototype = {
  85581. call$1($parent) {
  85582. return $parent.combinators.length > 1;
  85583. },
  85584. $signature: 51
  85585. };
  85586. A.complexIsSuperselector_closure2.prototype = {
  85587. call$1(component) {
  85588. return A._isSupercombinator0(this.combinator1, A.IterableExtension_get_firstOrNull(component.combinators));
  85589. },
  85590. $signature: 51
  85591. };
  85592. A._selectorPseudoIsSuperselector_closure6.prototype = {
  85593. call$1(selector2) {
  85594. return A.listIsSuperselector0(this.selector1.components, selector2.components);
  85595. },
  85596. $signature: 70
  85597. };
  85598. A._selectorPseudoIsSuperselector_closure7.prototype = {
  85599. call$1(complex1) {
  85600. var t1, t2, t3;
  85601. if (complex1.leadingCombinators.length === 0) {
  85602. t1 = complex1.components;
  85603. t2 = A._setArrayType([], type$.JSArray_ComplexSelectorComponent_2);
  85604. t3 = this.parents;
  85605. if (t3 != null)
  85606. B.JSArray_methods.addAll$1(t2, t3);
  85607. t2.push(new A.ComplexSelectorComponent0(this.compound2, A.List_List$unmodifiable(B.List_empty13, type$.Combinator_2)));
  85608. t1 = A.complexIsSuperselector0(t1, t2);
  85609. } else
  85610. t1 = false;
  85611. return t1;
  85612. },
  85613. $signature: 15
  85614. };
  85615. A._selectorPseudoIsSuperselector_closure8.prototype = {
  85616. call$1(selector2) {
  85617. return A.listIsSuperselector0(this.selector1.components, selector2.components);
  85618. },
  85619. $signature: 70
  85620. };
  85621. A._selectorPseudoIsSuperselector_closure9.prototype = {
  85622. call$1(selector2) {
  85623. return A.listIsSuperselector0(this.selector1.components, selector2.components);
  85624. },
  85625. $signature: 70
  85626. };
  85627. A._selectorPseudoIsSuperselector_closure10.prototype = {
  85628. call$1(complex) {
  85629. if (complex.accept$1(B._IsBogusVisitor_true0))
  85630. return false;
  85631. return B.JSArray_methods.any$1(this.compound2.components, new A._selectorPseudoIsSuperselector__closure0(complex, this.pseudo1));
  85632. },
  85633. $signature: 15
  85634. };
  85635. A._selectorPseudoIsSuperselector__closure0.prototype = {
  85636. call$1(simple2) {
  85637. var selector2, _this = this;
  85638. if (simple2 instanceof A.TypeSelector0)
  85639. return B.JSArray_methods.any$1(B.JSArray_methods.get$last(_this.complex.components).selector.components, new A._selectorPseudoIsSuperselector___closure1(simple2));
  85640. else if (simple2 instanceof A.IDSelector0)
  85641. return B.JSArray_methods.any$1(B.JSArray_methods.get$last(_this.complex.components).selector.components, new A._selectorPseudoIsSuperselector___closure2(simple2));
  85642. else if (simple2 instanceof A.PseudoSelector0 && simple2.name === _this.pseudo1.name) {
  85643. selector2 = simple2.selector;
  85644. if (selector2 == null)
  85645. return false;
  85646. return A.listIsSuperselector0(selector2.components, A._setArrayType([_this.complex], type$.JSArray_ComplexSelector_2));
  85647. } else
  85648. return false;
  85649. },
  85650. $signature: 13
  85651. };
  85652. A._selectorPseudoIsSuperselector___closure1.prototype = {
  85653. call$1(simple1) {
  85654. var t1;
  85655. if (simple1 instanceof A.TypeSelector0) {
  85656. t1 = this.simple2.name.$eq(0, simple1.name);
  85657. t1 = !t1;
  85658. } else
  85659. t1 = false;
  85660. return t1;
  85661. },
  85662. $signature: 13
  85663. };
  85664. A._selectorPseudoIsSuperselector___closure2.prototype = {
  85665. call$1(simple1) {
  85666. var t1;
  85667. if (simple1 instanceof A.IDSelector0) {
  85668. t1 = simple1.name;
  85669. t1 = this.simple2.name !== t1;
  85670. } else
  85671. t1 = false;
  85672. return t1;
  85673. },
  85674. $signature: 13
  85675. };
  85676. A._selectorPseudoIsSuperselector_closure11.prototype = {
  85677. call$1(selector2) {
  85678. var t1 = B.C_ListEquality.equals$2(0, this.selector1.components, selector2.components);
  85679. return t1;
  85680. },
  85681. $signature: 70
  85682. };
  85683. A._selectorPseudoIsSuperselector_closure12.prototype = {
  85684. call$1(pseudo2) {
  85685. var t1, selector2;
  85686. if (!(pseudo2 instanceof A.PseudoSelector0))
  85687. return false;
  85688. t1 = this.pseudo1;
  85689. if (pseudo2.name !== t1.name)
  85690. return false;
  85691. if (pseudo2.argument != t1.argument)
  85692. return false;
  85693. selector2 = pseudo2.selector;
  85694. if (selector2 == null)
  85695. return false;
  85696. return A.listIsSuperselector0(this.selector1.components, selector2.components);
  85697. },
  85698. $signature: 13
  85699. };
  85700. A._selectorPseudoArgs_closure1.prototype = {
  85701. call$1(pseudo) {
  85702. return pseudo.isClass === this.isClass && pseudo.name === this.name;
  85703. },
  85704. $signature: 430
  85705. };
  85706. A._selectorPseudoArgs_closure2.prototype = {
  85707. call$1(pseudo) {
  85708. return pseudo.selector;
  85709. },
  85710. $signature: 431
  85711. };
  85712. A.globalFunctions_closure0.prototype = {
  85713. call$1($arguments) {
  85714. var t1 = J.getInterceptor$asx($arguments);
  85715. return t1.$index($arguments, 0).get$isTruthy() ? t1.$index($arguments, 1) : t1.$index($arguments, 2);
  85716. },
  85717. $signature: 3
  85718. };
  85719. A.IDSelector0.prototype = {
  85720. get$specificity() {
  85721. return A._asInt(Math.pow(A.SimpleSelector0.prototype.get$specificity.call(this), 2));
  85722. },
  85723. accept$1$1(visitor) {
  85724. return visitor.visitIDSelector$1(this);
  85725. },
  85726. accept$1(visitor) {
  85727. return this.accept$1$1(visitor, type$.dynamic);
  85728. },
  85729. addSuffix$1(suffix) {
  85730. return new A.IDSelector0(this.name + suffix);
  85731. },
  85732. unify$1(compound) {
  85733. if (B.JSArray_methods.any$1(compound, new A.IDSelector_unify_closure0(this)))
  85734. return null;
  85735. return this.super$SimpleSelector$unify0(compound);
  85736. },
  85737. $eq(_, other) {
  85738. if (other == null)
  85739. return false;
  85740. return other instanceof A.IDSelector0 && other.name === this.name;
  85741. },
  85742. get$hashCode(_) {
  85743. return B.JSString_methods.get$hashCode(this.name);
  85744. }
  85745. };
  85746. A.IDSelector_unify_closure0.prototype = {
  85747. call$1(simple) {
  85748. var t1;
  85749. if (simple instanceof A.IDSelector0) {
  85750. t1 = simple.name;
  85751. t1 = this.$this.name !== t1;
  85752. } else
  85753. t1 = false;
  85754. return t1;
  85755. },
  85756. $signature: 13
  85757. };
  85758. A.IfExpression0.prototype = {
  85759. accept$1$1(visitor) {
  85760. return visitor.visitIfExpression$1(this);
  85761. },
  85762. accept$1(visitor) {
  85763. return this.accept$1$1(visitor, type$.dynamic);
  85764. },
  85765. toString$0(_) {
  85766. return "if" + this.$arguments.toString$0(0);
  85767. },
  85768. $isExpression0: 1,
  85769. $isAstNode0: 1,
  85770. get$span(receiver) {
  85771. return this.span;
  85772. }
  85773. };
  85774. A.IfRule0.prototype = {
  85775. accept$1$1(visitor) {
  85776. return visitor.visitIfRule$1(this);
  85777. },
  85778. accept$1(visitor) {
  85779. return this.accept$1$1(visitor, type$.dynamic);
  85780. },
  85781. toString$0(_) {
  85782. var result = A.ListExtensions_mapIndexed(this.clauses, new A.IfRule_toString_closure0(), type$.IfClause_2, type$.String).join$1(0, " "),
  85783. lastClause = this.lastClause;
  85784. return lastClause != null ? result + (" " + lastClause.toString$0(0)) : result;
  85785. },
  85786. $isAstNode0: 1,
  85787. $isStatement0: 1,
  85788. get$span(receiver) {
  85789. return this.span;
  85790. }
  85791. };
  85792. A.IfRule_toString_closure0.prototype = {
  85793. call$2(index, clause) {
  85794. var t1 = index === 0 ? "if" : "else if";
  85795. return "@" + t1 + " " + clause.expression.toString$0(0) + " {" + B.JSArray_methods.join$1(clause.children, " ") + "}";
  85796. },
  85797. $signature: 432
  85798. };
  85799. A.IfRuleClause0.prototype = {};
  85800. A.IfRuleClause$__closure0.prototype = {
  85801. call$1(child) {
  85802. var t1;
  85803. if (!(child instanceof A.VariableDeclaration0))
  85804. if (!(child instanceof A.FunctionRule0))
  85805. if (!(child instanceof A.MixinRule0))
  85806. t1 = child instanceof A.ImportRule0 && B.JSArray_methods.any$1(child.imports, new A.IfRuleClause$___closure0());
  85807. else
  85808. t1 = true;
  85809. else
  85810. t1 = true;
  85811. else
  85812. t1 = true;
  85813. return t1;
  85814. },
  85815. $signature: 144
  85816. };
  85817. A.IfRuleClause$___closure0.prototype = {
  85818. call$1($import) {
  85819. return $import instanceof A.DynamicImport0;
  85820. },
  85821. $signature: 142
  85822. };
  85823. A.IfClause0.prototype = {
  85824. toString$0(_) {
  85825. return "@if " + this.expression.toString$0(0) + " {" + B.JSArray_methods.join$1(this.children, " ") + "}";
  85826. }
  85827. };
  85828. A.ElseClause0.prototype = {
  85829. toString$0(_) {
  85830. return "@else {" + B.JSArray_methods.join$1(this.children, " ") + "}";
  85831. }
  85832. };
  85833. A.ImmutableList.prototype = {};
  85834. A.ImmutableMap.prototype = {};
  85835. A.immutableMapToDartMap_closure.prototype = {
  85836. call$3(value, key, _) {
  85837. this.dartMap.$indexSet(0, key, value);
  85838. },
  85839. "call*": "call$3",
  85840. $requiredArgCount: 3,
  85841. $signature: 435
  85842. };
  85843. A.NodeImporter.prototype = {
  85844. loadRelative$3(url, previous, forImport) {
  85845. var t1, t2, _null = null;
  85846. if ($.$get$url().style.rootLength$1(url) > 0) {
  85847. if (!B.JSString_methods.startsWith$1(url, "/") && !B.JSString_methods.startsWith$1(url, "file:"))
  85848. return _null;
  85849. return this._tryPath$2($.$get$context().style.pathFromUri$1(A._parseUri(url)), forImport);
  85850. }
  85851. if ((previous == null ? _null : previous.get$scheme()) !== "file")
  85852. return _null;
  85853. t1 = $.$get$context();
  85854. t2 = t1.style;
  85855. return this._tryPath$2(A.join(t1.dirname$1(t2.pathFromUri$1(A._parseUri(previous))), t2.pathFromUri$1(A._parseUri(url)), _null), forImport);
  85856. },
  85857. load$3(_, url, previous, forImport) {
  85858. var t1, t2, t3, t4, t5, _i, importer, context, value, _this = this,
  85859. previousString = _this._previousToString$1(previous);
  85860. for (t1 = _this._implementation$_importers, t2 = t1.length, t3 = _this._implementation$_options, t4 = type$.RenderContextOptions, t5 = type$.JSArray_Object, _i = 0; _i < t2; ++_i) {
  85861. importer = t1[_i];
  85862. context = {options: t4._as(t3), fromImport: forImport};
  85863. J.set$context$x(J.get$options$x(context), context);
  85864. value = J.apply$2$x(importer, context, A._setArrayType([url, previousString], t5));
  85865. if (value != null)
  85866. return _this._handleImportResult$4(url, previous, value, forImport);
  85867. }
  85868. return _this._resolveLoadPathFromUrl$2(A.Uri_parse(url), forImport);
  85869. },
  85870. loadAsync$3(url, previous, forImport) {
  85871. return this.loadAsync$body$NodeImporter(url, previous, forImport);
  85872. },
  85873. loadAsync$body$NodeImporter(url, previous, forImport) {
  85874. var $async$goto = 0,
  85875. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Tuple2_String_String),
  85876. $async$returnValue, $async$self = this, t1, t2, _i, value, previousString;
  85877. var $async$loadAsync$3 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  85878. if ($async$errorCode === 1)
  85879. return A._asyncRethrow($async$result, $async$completer);
  85880. while (true)
  85881. switch ($async$goto) {
  85882. case 0:
  85883. // Function start
  85884. previousString = $async$self._previousToString$1(previous);
  85885. t1 = $async$self._implementation$_importers, t2 = t1.length, _i = 0;
  85886. case 3:
  85887. // for condition
  85888. if (!(_i < t2)) {
  85889. // goto after for
  85890. $async$goto = 5;
  85891. break;
  85892. }
  85893. $async$goto = 6;
  85894. return A._asyncAwait($async$self._callImporterAsync$4(t1[_i], url, previousString, forImport), $async$loadAsync$3);
  85895. case 6:
  85896. // returning from await.
  85897. value = $async$result;
  85898. if (value != null) {
  85899. $async$returnValue = $async$self._handleImportResult$4(url, previous, value, forImport);
  85900. // goto return
  85901. $async$goto = 1;
  85902. break;
  85903. }
  85904. case 4:
  85905. // for update
  85906. ++_i;
  85907. // goto for condition
  85908. $async$goto = 3;
  85909. break;
  85910. case 5:
  85911. // after for
  85912. $async$returnValue = $async$self._resolveLoadPathFromUrl$2(A.Uri_parse(url), forImport);
  85913. // goto return
  85914. $async$goto = 1;
  85915. break;
  85916. case 1:
  85917. // return
  85918. return A._asyncReturn($async$returnValue, $async$completer);
  85919. }
  85920. });
  85921. return A._asyncStartSync($async$loadAsync$3, $async$completer);
  85922. },
  85923. _previousToString$1(previous) {
  85924. if (previous == null)
  85925. return "stdin";
  85926. if (previous.get$scheme() === "file")
  85927. return $.$get$context().style.pathFromUri$1(A._parseUri(previous));
  85928. return previous.toString$0(0);
  85929. },
  85930. _resolveLoadPathFromUrl$2(url, forImport) {
  85931. return url.get$scheme() === "" || url.get$scheme() === "file" ? this._resolveLoadPath$2($.$get$context().style.pathFromUri$1(A._parseUri(url)), forImport) : null;
  85932. },
  85933. _resolveLoadPath$2(path, forImport) {
  85934. var t1, t2, _i, t3, result, _null = null,
  85935. cwdResult = this._tryPath$2(A.absolute(path, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null), forImport);
  85936. if (cwdResult != null)
  85937. return cwdResult;
  85938. for (t1 = this._includePaths, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  85939. t3 = A.join(t1[_i], path, _null);
  85940. result = this._tryPath$2($.$get$context().absolute$15(t3, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null), forImport);
  85941. if (result != null)
  85942. return result;
  85943. }
  85944. return _null;
  85945. },
  85946. _tryPath$2(path, forImport) {
  85947. var t1;
  85948. if (forImport) {
  85949. t1 = type$.nullable_Object;
  85950. t1 = A.runZoned(new A.NodeImporter__tryPath_closure(path), A.LinkedHashMap_LinkedHashMap$_literal([B.Symbol__inImportRule, true], t1, t1), type$.nullable_String);
  85951. } else
  85952. t1 = A.resolveImportPath0(path);
  85953. return A.NullableExtension_andThen0(t1, new A.NodeImporter__tryPath_closure0());
  85954. },
  85955. _handleImportResult$4(url, previous, value, forImport) {
  85956. var t1, file, contents, t2, resolved;
  85957. if (value instanceof self.Error)
  85958. throw A.wrapException(value);
  85959. if (!type$.NodeImporterResult_2._is(value))
  85960. return null;
  85961. t1 = J.getInterceptor$x(value);
  85962. file = t1.get$file(value);
  85963. contents = t1.get$contents(value);
  85964. t1 = contents == null;
  85965. t2 = !t1;
  85966. if (t2 && A._asString(new self.Function("value", "return typeof value").call$1(contents)) !== "string")
  85967. A.jsThrow(new A.ArgumentError(true, contents, "contents", "must be a string but was: " + A.jsType(contents)));
  85968. if (file == null) {
  85969. t1 = t1 ? "" : contents;
  85970. return new A.Tuple2(t1, url, type$.Tuple2_String_String);
  85971. } else if (t2)
  85972. return new A.Tuple2(contents, $.$get$context().toUri$1(file).toString$0(0), type$.Tuple2_String_String);
  85973. else {
  85974. resolved = this.loadRelative$3($.$get$context().toUri$1(file).toString$0(0), previous, forImport);
  85975. if (resolved == null)
  85976. resolved = this._resolveLoadPath$2(file, forImport);
  85977. if (resolved != null)
  85978. return resolved;
  85979. throw A.wrapException("Can't find stylesheet to import.");
  85980. }
  85981. },
  85982. _callImporterAsync$4(importer, url, previousString, forImport) {
  85983. return this._callImporterAsync$body$NodeImporter(importer, url, previousString, forImport);
  85984. },
  85985. _callImporterAsync$body$NodeImporter(importer, url, previousString, forImport) {
  85986. var $async$goto = 0,
  85987. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Object),
  85988. $async$returnValue, $async$self = this, t1, result;
  85989. var $async$_callImporterAsync$4 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  85990. if ($async$errorCode === 1)
  85991. return A._asyncRethrow($async$result, $async$completer);
  85992. while (true)
  85993. switch ($async$goto) {
  85994. case 0:
  85995. // Function start
  85996. t1 = new A._Future($.Zone__current, type$._Future_Object);
  85997. result = J.apply$2$x(importer, $async$self._renderContext$1(forImport), A._setArrayType([url, previousString, A.allowInterop(new A._AsyncCompleter(t1, type$._AsyncCompleter_Object).get$complete())], type$.JSArray_Object));
  85998. $async$goto = A._asBool($.$get$_isUndefined().call$1(result)) ? 3 : 4;
  85999. break;
  86000. case 3:
  86001. // then
  86002. $async$goto = 5;
  86003. return A._asyncAwait(t1, $async$_callImporterAsync$4);
  86004. case 5:
  86005. // returning from await.
  86006. $async$returnValue = $async$result;
  86007. // goto return
  86008. $async$goto = 1;
  86009. break;
  86010. case 4:
  86011. // join
  86012. $async$returnValue = result;
  86013. // goto return
  86014. $async$goto = 1;
  86015. break;
  86016. case 1:
  86017. // return
  86018. return A._asyncReturn($async$returnValue, $async$completer);
  86019. }
  86020. });
  86021. return A._asyncStartSync($async$_callImporterAsync$4, $async$completer);
  86022. },
  86023. _renderContext$1(fromImport) {
  86024. var context = {options: type$.RenderContextOptions._as(this._implementation$_options), fromImport: fromImport};
  86025. J.set$context$x(J.get$options$x(context), context);
  86026. return context;
  86027. }
  86028. };
  86029. A.NodeImporter__tryPath_closure.prototype = {
  86030. call$0() {
  86031. return A.resolveImportPath0(this.path);
  86032. },
  86033. $signature: 42
  86034. };
  86035. A.NodeImporter__tryPath_closure0.prototype = {
  86036. call$1(resolved) {
  86037. return new A.Tuple2(A.readFile0(resolved), $.$get$context().toUri$1(resolved).toString$0(0), type$.Tuple2_String_String);
  86038. },
  86039. $signature: 436
  86040. };
  86041. A.ModifiableCssImport0.prototype = {
  86042. accept$1$1(visitor) {
  86043. return visitor.visitCssImport$1(this);
  86044. },
  86045. accept$1(visitor) {
  86046. return this.accept$1$1(visitor, type$.dynamic);
  86047. },
  86048. $isCssImport0: 1,
  86049. get$span(receiver) {
  86050. return this.span;
  86051. }
  86052. };
  86053. A.ImportCache0.prototype = {
  86054. canonicalize$4$baseImporter$baseUrl$forImport(_, url, baseImporter, baseUrl, forImport) {
  86055. var relativeResult, _this = this;
  86056. if (baseImporter != null) {
  86057. relativeResult = _this._import_cache$_relativeCanonicalizeCache.putIfAbsent$2(new A.Tuple4(url, forImport, baseImporter, baseUrl, type$.Tuple4_of_Uri_and_bool_and_Importer_and_nullable_Uri_2), new A.ImportCache_canonicalize_closure1(_this, baseUrl, url, baseImporter, forImport));
  86058. if (relativeResult != null)
  86059. return relativeResult;
  86060. }
  86061. return _this._import_cache$_canonicalizeCache.putIfAbsent$2(new A.Tuple2(url, forImport, type$.Tuple2_Uri_bool), new A.ImportCache_canonicalize_closure2(_this, url, forImport));
  86062. },
  86063. _import_cache$_canonicalize$3(importer, url, forImport) {
  86064. var t1, result;
  86065. if (forImport) {
  86066. t1 = type$.nullable_Object;
  86067. result = A.runZoned(new A.ImportCache__canonicalize_closure0(importer, url), A.LinkedHashMap_LinkedHashMap$_literal([B.Symbol__inImportRule, true], t1, t1), type$.nullable_Uri);
  86068. } else
  86069. result = importer.canonicalize$1(0, url);
  86070. if ((result == null ? null : result.get$scheme()) === "")
  86071. this._import_cache$_logger.warn$2$deprecation(0, "Importer " + importer.toString$0(0) + " canonicalized " + url.toString$0(0) + " to " + A.S(result) + string$.x2e_Rela, true);
  86072. return result;
  86073. },
  86074. importCanonical$4$originalUrl$quiet(importer, canonicalUrl, originalUrl, quiet) {
  86075. return this._import_cache$_importCache.putIfAbsent$2(canonicalUrl, new A.ImportCache_importCanonical_closure0(this, importer, canonicalUrl, originalUrl, quiet));
  86076. },
  86077. importCanonical$3$originalUrl(importer, canonicalUrl, originalUrl) {
  86078. return this.importCanonical$4$originalUrl$quiet(importer, canonicalUrl, originalUrl, false);
  86079. },
  86080. humanize$1(canonicalUrl) {
  86081. var t2, url,
  86082. t1 = this._import_cache$_canonicalizeCache;
  86083. t1 = A.IterableNullableExtension_whereNotNull(t1.get$values(t1), type$.Tuple3_Importer_Uri_Uri_2);
  86084. t2 = t1.$ti;
  86085. url = A.minBy(new A.MappedIterable(new A.WhereIterable(t1, new A.ImportCache_humanize_closure2(canonicalUrl), t2._eval$1("WhereIterable<Iterable.E>")), new A.ImportCache_humanize_closure3(), t2._eval$1("MappedIterable<Iterable.E,Uri>")), new A.ImportCache_humanize_closure4());
  86086. if (url == null)
  86087. return canonicalUrl;
  86088. t1 = $.$get$url();
  86089. return url.resolve$1(A.ParsedPath_ParsedPath$parse(canonicalUrl.get$path(canonicalUrl), t1.style).get$basename());
  86090. },
  86091. sourceMapUrl$1(_, canonicalUrl) {
  86092. var t1 = this._import_cache$_resultsCache.$index(0, canonicalUrl);
  86093. t1 = t1 == null ? null : t1.get$sourceMapUrl(t1);
  86094. return t1 == null ? canonicalUrl : t1;
  86095. }
  86096. };
  86097. A.ImportCache_canonicalize_closure1.prototype = {
  86098. call$0() {
  86099. var canonicalUrl, _this = this,
  86100. t1 = _this.baseUrl,
  86101. resolvedUrl = t1 == null ? null : t1.resolveUri$1(_this.url);
  86102. if (resolvedUrl == null)
  86103. resolvedUrl = _this.url;
  86104. t1 = _this.baseImporter;
  86105. canonicalUrl = _this.$this._import_cache$_canonicalize$3(t1, resolvedUrl, _this.forImport);
  86106. if (canonicalUrl == null)
  86107. return null;
  86108. return new A.Tuple3(t1, canonicalUrl, resolvedUrl, type$.Tuple3_Importer_Uri_Uri_2);
  86109. },
  86110. $signature: 251
  86111. };
  86112. A.ImportCache_canonicalize_closure2.prototype = {
  86113. call$0() {
  86114. var t1, t2, t3, t4, t5, _i, importer, canonicalUrl;
  86115. for (t1 = this.$this, t2 = t1._import_cache$_importers, t3 = t2.length, t4 = this.url, t5 = this.forImport, _i = 0; _i < t2.length; t2.length === t3 || (0, A.throwConcurrentModificationError)(t2), ++_i) {
  86116. importer = t2[_i];
  86117. canonicalUrl = t1._import_cache$_canonicalize$3(importer, t4, t5);
  86118. if (canonicalUrl != null)
  86119. return new A.Tuple3(importer, canonicalUrl, t4, type$.Tuple3_Importer_Uri_Uri_2);
  86120. }
  86121. return null;
  86122. },
  86123. $signature: 251
  86124. };
  86125. A.ImportCache__canonicalize_closure0.prototype = {
  86126. call$0() {
  86127. return this.importer.canonicalize$1(0, this.url);
  86128. },
  86129. $signature: 155
  86130. };
  86131. A.ImportCache_importCanonical_closure0.prototype = {
  86132. call$0() {
  86133. var t2, t3, t4, _this = this,
  86134. t1 = _this.canonicalUrl,
  86135. result = _this.importer.load$1(0, t1);
  86136. if (result == null)
  86137. return null;
  86138. t2 = _this.$this;
  86139. t2._import_cache$_resultsCache.$indexSet(0, t1, result);
  86140. t3 = result.contents;
  86141. t4 = result.syntax;
  86142. t1 = _this.originalUrl.resolveUri$1(t1);
  86143. return A.Stylesheet_Stylesheet$parse0(t3, t4, _this.quiet ? $.$get$Logger_quiet0() : t2._import_cache$_logger, t1);
  86144. },
  86145. $signature: 438
  86146. };
  86147. A.ImportCache_humanize_closure2.prototype = {
  86148. call$1(tuple) {
  86149. return tuple.item2.$eq(0, this.canonicalUrl);
  86150. },
  86151. $signature: 439
  86152. };
  86153. A.ImportCache_humanize_closure3.prototype = {
  86154. call$1(tuple) {
  86155. return tuple.item3;
  86156. },
  86157. $signature: 440
  86158. };
  86159. A.ImportCache_humanize_closure4.prototype = {
  86160. call$1(url) {
  86161. return url.get$path(url).length;
  86162. },
  86163. $signature: 78
  86164. };
  86165. A.ImportRule0.prototype = {
  86166. accept$1$1(visitor) {
  86167. return visitor.visitImportRule$1(this);
  86168. },
  86169. accept$1(visitor) {
  86170. return this.accept$1$1(visitor, type$.dynamic);
  86171. },
  86172. toString$0(_) {
  86173. return "@import " + B.JSArray_methods.join$1(this.imports, ", ") + ";";
  86174. },
  86175. $isAstNode0: 1,
  86176. $isStatement0: 1,
  86177. get$span(receiver) {
  86178. return this.span;
  86179. }
  86180. };
  86181. A.NodeImporter0.prototype = {};
  86182. A.CanonicalizeOptions.prototype = {};
  86183. A.NodeImporterResult0.prototype = {};
  86184. A.Importer0.prototype = {};
  86185. A.NodeImporterResult1.prototype = {};
  86186. A.IncludeRule0.prototype = {
  86187. get$spanWithoutContent() {
  86188. var t2, t3,
  86189. t1 = this.span;
  86190. if (!(this.content == null)) {
  86191. t2 = t1.file;
  86192. t3 = this.$arguments.span;
  86193. t3 = A.SpanExtensions_trimRight0(A.SpanExtensions_trimLeft0(t2.span$2(0, A.FileLocation$_(t2, t1._file$_start).offset, t3.get$end(t3).offset)));
  86194. t1 = t3;
  86195. }
  86196. return t1;
  86197. },
  86198. accept$1$1(visitor) {
  86199. return visitor.visitIncludeRule$1(this);
  86200. },
  86201. accept$1(visitor) {
  86202. return this.accept$1$1(visitor, type$.dynamic);
  86203. },
  86204. toString$0(_) {
  86205. var t2, _this = this,
  86206. t1 = _this.namespace;
  86207. t1 = t1 != null ? "@include " + (t1 + ".") : "@include ";
  86208. t1 += _this.name;
  86209. t2 = _this.$arguments;
  86210. if (!t2.get$isEmpty(t2))
  86211. t1 += "(" + t2.toString$0(0) + ")";
  86212. t2 = _this.content;
  86213. t1 += t2 == null ? ";" : " " + t2.toString$0(0);
  86214. return t1.charCodeAt(0) == 0 ? t1 : t1;
  86215. },
  86216. $isAstNode0: 1,
  86217. $isStatement0: 1,
  86218. get$span(receiver) {
  86219. return this.span;
  86220. }
  86221. };
  86222. A.InterpolatedFunctionExpression0.prototype = {
  86223. accept$1$1(visitor) {
  86224. return visitor.visitInterpolatedFunctionExpression$1(this);
  86225. },
  86226. accept$1(visitor) {
  86227. return this.accept$1$1(visitor, type$.dynamic);
  86228. },
  86229. toString$0(_) {
  86230. return this.name.toString$0(0) + this.$arguments.toString$0(0);
  86231. },
  86232. $isExpression0: 1,
  86233. $isAstNode0: 1,
  86234. get$span(receiver) {
  86235. return this.span;
  86236. }
  86237. };
  86238. A.Interpolation0.prototype = {
  86239. get$asPlain() {
  86240. var first,
  86241. t1 = this.contents,
  86242. t2 = t1.length;
  86243. if (t2 === 0)
  86244. return "";
  86245. if (t2 > 1)
  86246. return null;
  86247. first = B.JSArray_methods.get$first(t1);
  86248. return typeof first == "string" ? first : null;
  86249. },
  86250. get$initialPlain() {
  86251. var first = B.JSArray_methods.get$first(this.contents);
  86252. return typeof first == "string" ? first : "";
  86253. },
  86254. Interpolation$20(contents, span) {
  86255. var t1, t2, t3, i, t4, t5,
  86256. _s8_ = "contents";
  86257. for (t1 = this.contents, t2 = t1.length, t3 = type$.Expression_2, i = 0; i < t2; ++i) {
  86258. t4 = t1[i];
  86259. t5 = typeof t4 == "string";
  86260. if (!t5 && !t3._is(t4))
  86261. throw A.wrapException(A.ArgumentError$value(t1, _s8_, string$.May_on));
  86262. if (i !== 0 && typeof t1[i - 1] == "string" && t5)
  86263. throw A.wrapException(A.ArgumentError$value(t1, _s8_, "May not contain adjacent Strings."));
  86264. }
  86265. },
  86266. toString$0(_) {
  86267. var t1 = this.contents;
  86268. return new A.MappedListIterable(t1, new A.Interpolation_toString_closure0(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$0(0);
  86269. },
  86270. $isAstNode0: 1,
  86271. get$span(receiver) {
  86272. return this.span;
  86273. }
  86274. };
  86275. A.Interpolation_toString_closure0.prototype = {
  86276. call$1(value) {
  86277. return typeof value == "string" ? value : "#{" + A.S(value) + "}";
  86278. },
  86279. $signature: 46
  86280. };
  86281. A.SupportsInterpolation0.prototype = {
  86282. toString$0(_) {
  86283. return "#{" + this.expression.toString$0(0) + "}";
  86284. },
  86285. $isAstNode0: 1,
  86286. get$span(receiver) {
  86287. return this.span;
  86288. }
  86289. };
  86290. A.InterpolationBuffer0.prototype = {
  86291. writeCharCode$1(character) {
  86292. this._interpolation_buffer0$_text._contents += A.Primitives_stringFromCharCode(character);
  86293. return null;
  86294. },
  86295. add$1(_, expression) {
  86296. this._interpolation_buffer0$_flushText$0();
  86297. this._interpolation_buffer0$_contents.push(expression);
  86298. },
  86299. addInterpolation$1(interpolation) {
  86300. var first, t1, _this = this,
  86301. toAdd = interpolation.contents;
  86302. if (toAdd.length === 0)
  86303. return;
  86304. first = B.JSArray_methods.get$first(toAdd);
  86305. if (typeof first == "string") {
  86306. _this._interpolation_buffer0$_text._contents += first;
  86307. toAdd = A.SubListIterable$(toAdd, 1, null, A._arrayInstanceType(toAdd)._precomputed1);
  86308. }
  86309. _this._interpolation_buffer0$_flushText$0();
  86310. t1 = _this._interpolation_buffer0$_contents;
  86311. B.JSArray_methods.addAll$1(t1, toAdd);
  86312. if (typeof B.JSArray_methods.get$last(t1) == "string")
  86313. _this._interpolation_buffer0$_text._contents += A.S(t1.pop());
  86314. },
  86315. _interpolation_buffer0$_flushText$0() {
  86316. var t1 = this._interpolation_buffer0$_text,
  86317. t2 = t1._contents;
  86318. if (t2.length === 0)
  86319. return;
  86320. this._interpolation_buffer0$_contents.push(t2.charCodeAt(0) == 0 ? t2 : t2);
  86321. t1._contents = "";
  86322. },
  86323. interpolation$1(span) {
  86324. var t1 = A.List_List$of(this._interpolation_buffer0$_contents, true, type$.Object),
  86325. t2 = this._interpolation_buffer0$_text._contents;
  86326. if (t2.length !== 0)
  86327. t1.push(t2.charCodeAt(0) == 0 ? t2 : t2);
  86328. return A.Interpolation$0(t1, span);
  86329. },
  86330. toString$0(_) {
  86331. var t1, t2, _i, t3, element;
  86332. for (t1 = this._interpolation_buffer0$_contents, t2 = t1.length, _i = 0, t3 = ""; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
  86333. element = t1[_i];
  86334. t3 = typeof element == "string" ? t3 + element : t3 + "#{" + A.S(element) + A.Primitives_stringFromCharCode(125);
  86335. }
  86336. t1 = t3 + this._interpolation_buffer0$_text.toString$0(0);
  86337. return t1.charCodeAt(0) == 0 ? t1 : t1;
  86338. }
  86339. };
  86340. A._realCasePath_helper0.prototype = {
  86341. call$1(path) {
  86342. var dirname = $.$get$context().dirname$1(path);
  86343. if (dirname === path)
  86344. return path;
  86345. return $._realCaseCache0.putIfAbsent$2(path, new A._realCasePath_helper_closure0(this, dirname, path));
  86346. },
  86347. $signature: 5
  86348. };
  86349. A._realCasePath_helper_closure0.prototype = {
  86350. call$0() {
  86351. var matches, t2, exception,
  86352. realDirname = this.helper.call$1(this.dirname),
  86353. t1 = this.path,
  86354. basename = A.ParsedPath_ParsedPath$parse(t1, $.$get$context().style).get$basename();
  86355. try {
  86356. matches = J.where$1$ax(A.listDir0(realDirname), new A._realCasePath_helper__closure0(basename)).toList$0(0);
  86357. t2 = J.get$length$asx(matches) !== 1 ? A.join(realDirname, basename, null) : J.$index$asx(matches, 0);
  86358. return t2;
  86359. } catch (exception) {
  86360. if (A.unwrapException(exception) instanceof A.FileSystemException0)
  86361. return t1;
  86362. else
  86363. throw exception;
  86364. }
  86365. },
  86366. $signature: 30
  86367. };
  86368. A._realCasePath_helper__closure0.prototype = {
  86369. call$1(realPath) {
  86370. return A.equalsIgnoreCase0(A.ParsedPath_ParsedPath$parse(realPath, $.$get$context().style).get$basename(), this.basename);
  86371. },
  86372. $signature: 8
  86373. };
  86374. A.ModifiableCssKeyframeBlock0.prototype = {
  86375. accept$1$1(visitor) {
  86376. return visitor.visitCssKeyframeBlock$1(this);
  86377. },
  86378. accept$1(visitor) {
  86379. return this.accept$1$1(visitor, type$.dynamic);
  86380. },
  86381. copyWithoutChildren$0() {
  86382. return A.ModifiableCssKeyframeBlock$0(this.selector, this.span);
  86383. },
  86384. get$span(receiver) {
  86385. return this.span;
  86386. }
  86387. };
  86388. A.KeyframeSelectorParser0.prototype = {
  86389. parse$0() {
  86390. return this.wrapSpanFormatException$1(new A.KeyframeSelectorParser_parse_closure0(this));
  86391. },
  86392. _keyframe_selector$_percentage$0() {
  86393. var t3, next,
  86394. t1 = this.scanner,
  86395. t2 = t1.scanChar$1(43) ? "" + A.Primitives_stringFromCharCode(43) : "",
  86396. second = t1.peekChar$0();
  86397. if (!A.isDigit0(second) && second !== 46)
  86398. t1.error$1(0, "Expected number.");
  86399. while (true) {
  86400. t3 = t1.peekChar$0();
  86401. if (!(t3 != null && t3 >= 48 && t3 <= 57))
  86402. break;
  86403. t2 += A.Primitives_stringFromCharCode(t1.readChar$0());
  86404. }
  86405. if (t1.peekChar$0() === 46) {
  86406. t2 += A.Primitives_stringFromCharCode(t1.readChar$0());
  86407. while (true) {
  86408. t3 = t1.peekChar$0();
  86409. if (!(t3 != null && t3 >= 48 && t3 <= 57))
  86410. break;
  86411. t2 += A.Primitives_stringFromCharCode(t1.readChar$0());
  86412. }
  86413. }
  86414. if (this.scanIdentChar$1(101)) {
  86415. t2 += A.Primitives_stringFromCharCode(101);
  86416. next = t1.peekChar$0();
  86417. if (next === 43 || next === 45)
  86418. t2 += A.Primitives_stringFromCharCode(t1.readChar$0());
  86419. if (!A.isDigit0(t1.peekChar$0()))
  86420. t1.error$1(0, "Expected digit.");
  86421. while (true) {
  86422. t3 = t1.peekChar$0();
  86423. if (!(t3 != null && t3 >= 48 && t3 <= 57))
  86424. break;
  86425. t2 += A.Primitives_stringFromCharCode(t1.readChar$0());
  86426. }
  86427. }
  86428. t1.expectChar$1(37);
  86429. t2 += A.Primitives_stringFromCharCode(37);
  86430. return t2.charCodeAt(0) == 0 ? t2 : t2;
  86431. }
  86432. };
  86433. A.KeyframeSelectorParser_parse_closure0.prototype = {
  86434. call$0() {
  86435. var selectors = A._setArrayType([], type$.JSArray_String),
  86436. t1 = this.$this,
  86437. t2 = t1.scanner;
  86438. do {
  86439. t1.whitespace$0();
  86440. if (t1.lookingAtIdentifier$0())
  86441. if (t1.scanIdentifier$1("from"))
  86442. selectors.push("from");
  86443. else {
  86444. t1.expectIdentifier$2$name("to", '"to" or "from"');
  86445. selectors.push("to");
  86446. }
  86447. else
  86448. selectors.push(t1._keyframe_selector$_percentage$0());
  86449. t1.whitespace$0();
  86450. } while (t2.scanChar$1(44));
  86451. t2.expectDone$0();
  86452. return selectors;
  86453. },
  86454. $signature: 50
  86455. };
  86456. A.render_closure.prototype = {
  86457. call$0() {
  86458. var error, exception;
  86459. try {
  86460. this.callback.call$2(null, A.renderSync(this.options));
  86461. } catch (exception) {
  86462. error = A.unwrapException(exception);
  86463. this.callback.call$2(error, null);
  86464. }
  86465. return null;
  86466. },
  86467. $signature: 1
  86468. };
  86469. A.render_closure0.prototype = {
  86470. call$1(result) {
  86471. this.callback.call$2(null, result);
  86472. },
  86473. $signature: 441
  86474. };
  86475. A.render_closure1.prototype = {
  86476. call$2(error, stackTrace) {
  86477. var t2, t3, _null = null,
  86478. t1 = this.callback;
  86479. if (error instanceof A.SassException0)
  86480. t1.call$2(A._wrapException(error, stackTrace), _null);
  86481. else {
  86482. t2 = J.toString$0$(error);
  86483. t3 = A.getTrace0(error);
  86484. t1.call$2(A._newRenderError(t2, t3 == null ? stackTrace : t3, _null, _null, _null, 3), _null);
  86485. }
  86486. },
  86487. $signature: 64
  86488. };
  86489. A._parseFunctions_closure.prototype = {
  86490. call$2(signature, callback) {
  86491. var fiber, _this = this,
  86492. t1 = _this.options,
  86493. context = {options: A._contextOptions(t1, _this.start)};
  86494. J.set$context$x(J.get$options$x(context), context);
  86495. fiber = J.get$fiber$x(t1);
  86496. if (fiber != null)
  86497. _this.result.push(A.Callable_Callable$fromSignature(B.JSString_methods.trimLeft$0(signature), new A._parseFunctions__closure(fiber, callback, context), false));
  86498. else {
  86499. t1 = _this.result;
  86500. if (!_this.asynch)
  86501. t1.push(A.Callable_Callable$fromSignature(B.JSString_methods.trimLeft$0(signature), new A._parseFunctions__closure0(callback, context), false));
  86502. else
  86503. t1.push(A.AsyncCallable_AsyncCallable$fromSignature(B.JSString_methods.trimLeft$0(signature), new A._parseFunctions__closure1(callback, context), false));
  86504. }
  86505. },
  86506. $signature: 114
  86507. };
  86508. A._parseFunctions__closure.prototype = {
  86509. call$1($arguments) {
  86510. var result,
  86511. t1 = this.fiber,
  86512. currentFiber = J.get$current$x(t1),
  86513. t2 = type$.Object;
  86514. t2 = A.List_List$of(J.map$1$1$ax($arguments, A.value0__wrapValue$closure(), t2), true, t2);
  86515. t2.push(A.allowInterop(new A._parseFunctions___closure0(currentFiber)));
  86516. result = J.apply$2$x(type$.JSFunction._as(this.callback), this.context, t2);
  86517. return A.unwrapValue(A._asBool($.$get$_isUndefined().call$1(result)) ? A.runZoned(new A._parseFunctions___closure1(t1), null, type$.nullable_Object) : result);
  86518. },
  86519. $signature: 3
  86520. };
  86521. A._parseFunctions___closure0.prototype = {
  86522. call$1(result) {
  86523. A.scheduleMicrotask(new A._parseFunctions____closure(this.currentFiber, result));
  86524. },
  86525. call$0() {
  86526. return this.call$1(null);
  86527. },
  86528. "call*": "call$1",
  86529. $requiredArgCount: 0,
  86530. $defaultValues() {
  86531. return [null];
  86532. },
  86533. $signature: 87
  86534. };
  86535. A._parseFunctions____closure.prototype = {
  86536. call$0() {
  86537. return J.run$1$x(this.currentFiber, this.result);
  86538. },
  86539. $signature: 0
  86540. };
  86541. A._parseFunctions___closure1.prototype = {
  86542. call$0() {
  86543. return J.yield$0$x(this.fiber);
  86544. },
  86545. $signature: 76
  86546. };
  86547. A._parseFunctions__closure0.prototype = {
  86548. call$1($arguments) {
  86549. return A.unwrapValue(J.apply$2$x(type$.JSFunction._as(this.callback), this.context, J.map$1$1$ax($arguments, A.value0__wrapValue$closure(), type$.Object).toList$0(0)));
  86550. },
  86551. $signature: 3
  86552. };
  86553. A._parseFunctions__closure1.prototype = {
  86554. call$1($arguments) {
  86555. return this.$call$body$_parseFunctions__closure($arguments);
  86556. },
  86557. $call$body$_parseFunctions__closure($arguments) {
  86558. var $async$goto = 0,
  86559. $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
  86560. $async$returnValue, $async$self = this, result, t1, t2, $async$temp1;
  86561. var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  86562. if ($async$errorCode === 1)
  86563. return A._asyncRethrow($async$result, $async$completer);
  86564. while (true)
  86565. switch ($async$goto) {
  86566. case 0:
  86567. // Function start
  86568. t1 = new A._Future($.Zone__current, type$._Future_nullable_Object);
  86569. t2 = type$.Object;
  86570. t2 = A.List_List$of(J.map$1$1$ax($arguments, A.value0__wrapValue$closure(), t2), true, t2);
  86571. t2.push(A.allowInterop(new A._parseFunctions___closure(new A._AsyncCompleter(t1, type$._AsyncCompleter_nullable_Object))));
  86572. result = J.apply$2$x(type$.JSFunction._as($async$self.callback), $async$self.context, t2);
  86573. $async$temp1 = A;
  86574. $async$goto = A._asBool($.$get$_isUndefined().call$1(result)) ? 3 : 5;
  86575. break;
  86576. case 3:
  86577. // then
  86578. $async$goto = 6;
  86579. return A._asyncAwait(t1, $async$call$1);
  86580. case 6:
  86581. // returning from await.
  86582. // goto join
  86583. $async$goto = 4;
  86584. break;
  86585. case 5:
  86586. // else
  86587. $async$result = result;
  86588. case 4:
  86589. // join
  86590. $async$returnValue = $async$temp1.unwrapValue($async$result);
  86591. // goto return
  86592. $async$goto = 1;
  86593. break;
  86594. case 1:
  86595. // return
  86596. return A._asyncReturn($async$returnValue, $async$completer);
  86597. }
  86598. });
  86599. return A._asyncStartSync($async$call$1, $async$completer);
  86600. },
  86601. $signature: 95
  86602. };
  86603. A._parseFunctions___closure.prototype = {
  86604. call$1(result) {
  86605. return this.completer.complete$1(result);
  86606. },
  86607. call$0() {
  86608. return this.call$1(null);
  86609. },
  86610. "call*": "call$1",
  86611. $requiredArgCount: 0,
  86612. $defaultValues() {
  86613. return [null];
  86614. },
  86615. $signature: 227
  86616. };
  86617. A._parseImporter_closure.prototype = {
  86618. call$1(importer) {
  86619. return type$.JSFunction._as(A.allowInteropCaptureThis(new A._parseImporter__closure(this.fiber, importer)));
  86620. },
  86621. $signature: 442
  86622. };
  86623. A._parseImporter__closure.prototype = {
  86624. call$4(thisArg, url, previous, _) {
  86625. var t1 = this.fiber,
  86626. result = J.apply$2$x(this.importer, thisArg, A._setArrayType([url, previous, A.allowInterop(new A._parseImporter___closure(J.get$current$x(t1)))], type$.JSArray_Object));
  86627. if (A._asBool($.$get$_isUndefined().call$1(result)))
  86628. return A.runZoned(new A._parseImporter___closure0(t1), null, type$.Object);
  86629. return result;
  86630. },
  86631. call$3(thisArg, url, previous) {
  86632. return this.call$4(thisArg, url, previous, null);
  86633. },
  86634. "call*": "call$4",
  86635. $requiredArgCount: 3,
  86636. $defaultValues() {
  86637. return [null];
  86638. },
  86639. $signature: 443
  86640. };
  86641. A._parseImporter___closure.prototype = {
  86642. call$1(result) {
  86643. A.scheduleMicrotask(new A._parseImporter____closure(this.currentFiber, result));
  86644. },
  86645. $signature: 444
  86646. };
  86647. A._parseImporter____closure.prototype = {
  86648. call$0() {
  86649. return J.run$1$x(this.currentFiber, this.result);
  86650. },
  86651. $signature: 0
  86652. };
  86653. A._parseImporter___closure0.prototype = {
  86654. call$0() {
  86655. return J.yield$0$x(this.fiber);
  86656. },
  86657. $signature: 76
  86658. };
  86659. A.LimitedMapView0.prototype = {
  86660. get$keys(_) {
  86661. return this._limited_map_view0$_keys;
  86662. },
  86663. get$length(_) {
  86664. return this._limited_map_view0$_keys._collection$_length;
  86665. },
  86666. get$isEmpty(_) {
  86667. return this._limited_map_view0$_keys._collection$_length === 0;
  86668. },
  86669. get$isNotEmpty(_) {
  86670. return this._limited_map_view0$_keys._collection$_length !== 0;
  86671. },
  86672. $index(_, key) {
  86673. return this._limited_map_view0$_keys.contains$1(0, key) ? this._limited_map_view0$_map.$index(0, key) : null;
  86674. },
  86675. containsKey$1(key) {
  86676. return this._limited_map_view0$_keys.contains$1(0, key);
  86677. },
  86678. remove$1(_, key) {
  86679. return this._limited_map_view0$_keys.contains$1(0, key) ? this._limited_map_view0$_map.remove$1(0, key) : null;
  86680. }
  86681. };
  86682. A.ListExpression0.prototype = {
  86683. accept$1$1(visitor) {
  86684. return visitor.visitListExpression$1(this);
  86685. },
  86686. accept$1(visitor) {
  86687. return this.accept$1$1(visitor, type$.dynamic);
  86688. },
  86689. toString$0(_) {
  86690. var _this = this,
  86691. t1 = _this.hasBrackets,
  86692. t2 = t1 ? "" + A.Primitives_stringFromCharCode(91) : "",
  86693. t3 = _this.contents,
  86694. t4 = _this.separator === B.ListSeparator_rXA0 ? ", " : " ";
  86695. t4 = t2 + new A.MappedListIterable(t3, new A.ListExpression_toString_closure0(_this), A._arrayInstanceType(t3)._eval$1("MappedListIterable<1,String>")).join$1(0, t4);
  86696. t1 = t1 ? t4 + A.Primitives_stringFromCharCode(93) : t4;
  86697. return t1.charCodeAt(0) == 0 ? t1 : t1;
  86698. },
  86699. _list3$_elementNeedsParens$1(expression) {
  86700. var t1;
  86701. if (expression instanceof A.ListExpression0) {
  86702. if (expression.contents.length < 2)
  86703. return false;
  86704. if (expression.hasBrackets)
  86705. return false;
  86706. t1 = expression.separator;
  86707. return this.separator === B.ListSeparator_rXA0 ? t1 === B.ListSeparator_rXA0 : t1 !== B.ListSeparator_undecided_null_undecided0;
  86708. }
  86709. if (this.separator !== B.ListSeparator_EVt0)
  86710. return false;
  86711. if (expression instanceof A.UnaryOperationExpression0) {
  86712. t1 = expression.operator;
  86713. return t1 === B.UnaryOperator_gg40 || t1 === B.UnaryOperator_TLI0;
  86714. }
  86715. return false;
  86716. },
  86717. $isExpression0: 1,
  86718. $isAstNode0: 1,
  86719. get$span(receiver) {
  86720. return this.span;
  86721. }
  86722. };
  86723. A.ListExpression_toString_closure0.prototype = {
  86724. call$1(element) {
  86725. return this.$this._list3$_elementNeedsParens$1(element) ? "(" + element.toString$0(0) + ")" : element.toString$0(0);
  86726. },
  86727. $signature: 122
  86728. };
  86729. A._length_closure2.prototype = {
  86730. call$1($arguments) {
  86731. return A.SassNumber_SassNumber0(J.$index$asx($arguments, 0).get$asList().length, null);
  86732. },
  86733. $signature: 10
  86734. };
  86735. A._nth_closure0.prototype = {
  86736. call$1($arguments) {
  86737. var t1 = J.getInterceptor$asx($arguments),
  86738. list = t1.$index($arguments, 0),
  86739. index = t1.$index($arguments, 1);
  86740. return list.get$asList()[list.sassIndexToListIndex$2(index, "n")];
  86741. },
  86742. $signature: 3
  86743. };
  86744. A._setNth_closure0.prototype = {
  86745. call$1($arguments) {
  86746. var t1 = J.getInterceptor$asx($arguments),
  86747. list = t1.$index($arguments, 0),
  86748. index = t1.$index($arguments, 1),
  86749. value = t1.$index($arguments, 2),
  86750. t2 = list.get$asList(),
  86751. newList = A._setArrayType(t2.slice(0), A._arrayInstanceType(t2));
  86752. newList[list.sassIndexToListIndex$2(index, "n")] = value;
  86753. return t1.$index($arguments, 0).withListContents$1(newList);
  86754. },
  86755. $signature: 22
  86756. };
  86757. A._join_closure0.prototype = {
  86758. call$1($arguments) {
  86759. var separator, bracketed,
  86760. t1 = J.getInterceptor$asx($arguments),
  86761. list1 = t1.$index($arguments, 0),
  86762. list2 = t1.$index($arguments, 1),
  86763. separatorParam = t1.$index($arguments, 2).assertString$1("separator"),
  86764. bracketedParam = t1.$index($arguments, 3);
  86765. t1 = separatorParam._string0$_text;
  86766. if (t1 === "auto")
  86767. if (list1.get$separator(list1) !== B.ListSeparator_undecided_null_undecided0)
  86768. separator = list1.get$separator(list1);
  86769. else
  86770. separator = list2.get$separator(list2) !== B.ListSeparator_undecided_null_undecided0 ? list2.get$separator(list2) : B.ListSeparator_EVt0;
  86771. else if (t1 === "space")
  86772. separator = B.ListSeparator_EVt0;
  86773. else if (t1 === "comma")
  86774. separator = B.ListSeparator_rXA0;
  86775. else {
  86776. if (t1 !== "slash")
  86777. throw A.wrapException(A.SassScriptException$0(string$.x24separ, null));
  86778. separator = B.ListSeparator_zg90;
  86779. }
  86780. bracketed = bracketedParam instanceof A.SassString0 && bracketedParam._string0$_text === "auto" ? list1.get$hasBrackets() : bracketedParam.get$isTruthy();
  86781. t1 = A.List_List$of(list1.get$asList(), true, type$.Value_2);
  86782. B.JSArray_methods.addAll$1(t1, list2.get$asList());
  86783. return A.SassList$0(t1, separator, bracketed);
  86784. },
  86785. $signature: 22
  86786. };
  86787. A._append_closure2.prototype = {
  86788. call$1($arguments) {
  86789. var separator,
  86790. t1 = J.getInterceptor$asx($arguments),
  86791. list = t1.$index($arguments, 0),
  86792. value = t1.$index($arguments, 1);
  86793. t1 = t1.$index($arguments, 2).assertString$1("separator")._string0$_text;
  86794. if (t1 === "auto")
  86795. separator = list.get$separator(list) === B.ListSeparator_undecided_null_undecided0 ? B.ListSeparator_EVt0 : list.get$separator(list);
  86796. else if (t1 === "space")
  86797. separator = B.ListSeparator_EVt0;
  86798. else if (t1 === "comma")
  86799. separator = B.ListSeparator_rXA0;
  86800. else {
  86801. if (t1 !== "slash")
  86802. throw A.wrapException(A.SassScriptException$0(string$.x24separ, null));
  86803. separator = B.ListSeparator_zg90;
  86804. }
  86805. t1 = A.List_List$of(list.get$asList(), true, type$.Value_2);
  86806. t1.push(value);
  86807. return list.withListContents$2$separator(t1, separator);
  86808. },
  86809. $signature: 22
  86810. };
  86811. A._zip_closure0.prototype = {
  86812. call$1($arguments) {
  86813. var results, result, _box_0 = {},
  86814. t1 = J.$index$asx($arguments, 0).get$asList(),
  86815. t2 = A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,List<Value0>>"),
  86816. lists = A.List_List$of(new A.MappedListIterable(t1, new A._zip__closure2(), t2), true, t2._eval$1("ListIterable.E"));
  86817. if (lists.length === 0)
  86818. return B.SassList_Sof1;
  86819. _box_0.i = 0;
  86820. results = A._setArrayType([], type$.JSArray_SassList_2);
  86821. for (t1 = A._arrayInstanceType(lists)._eval$1("MappedListIterable<1,Value0>"), t2 = type$.Value_2; B.JSArray_methods.every$1(lists, new A._zip__closure3(_box_0));) {
  86822. result = A.List_List$from(new A.MappedListIterable(lists, new A._zip__closure4(_box_0), t1), false, t2);
  86823. result.fixed$length = Array;
  86824. result.immutable$list = Array;
  86825. results.push(new A.SassList0(result, B.ListSeparator_EVt0, false));
  86826. ++_box_0.i;
  86827. }
  86828. return A.SassList$0(results, B.ListSeparator_rXA0, false);
  86829. },
  86830. $signature: 22
  86831. };
  86832. A._zip__closure2.prototype = {
  86833. call$1(list) {
  86834. return list.get$asList();
  86835. },
  86836. $signature: 446
  86837. };
  86838. A._zip__closure3.prototype = {
  86839. call$1(list) {
  86840. return this._box_0.i !== J.get$length$asx(list);
  86841. },
  86842. $signature: 447
  86843. };
  86844. A._zip__closure4.prototype = {
  86845. call$1(list) {
  86846. return J.$index$asx(list, this._box_0.i);
  86847. },
  86848. $signature: 3
  86849. };
  86850. A._index_closure2.prototype = {
  86851. call$1($arguments) {
  86852. var t1 = J.getInterceptor$asx($arguments),
  86853. index = B.JSArray_methods.indexOf$1(t1.$index($arguments, 0).get$asList(), t1.$index($arguments, 1));
  86854. return index === -1 ? B.C__SassNull0 : A.SassNumber_SassNumber0(index + 1, null);
  86855. },
  86856. $signature: 3
  86857. };
  86858. A._separator_closure0.prototype = {
  86859. call$1($arguments) {
  86860. switch (J.get$separator$x(J.$index$asx($arguments, 0))) {
  86861. case B.ListSeparator_rXA0:
  86862. return new A.SassString0("comma", false);
  86863. case B.ListSeparator_zg90:
  86864. return new A.SassString0("slash", false);
  86865. default:
  86866. return new A.SassString0("space", false);
  86867. }
  86868. },
  86869. $signature: 18
  86870. };
  86871. A._isBracketed_closure0.prototype = {
  86872. call$1($arguments) {
  86873. return J.$index$asx($arguments, 0).get$hasBrackets() ? B.SassBoolean_true0 : B.SassBoolean_false0;
  86874. },
  86875. $signature: 20
  86876. };
  86877. A._slash_closure0.prototype = {
  86878. call$1($arguments) {
  86879. var list = J.$index$asx($arguments, 0).get$asList();
  86880. if (list.length < 2)
  86881. throw A.wrapException(A.SassScriptException$0("At least two elements are required.", null));
  86882. return A.SassList$0(list, B.ListSeparator_zg90, false);
  86883. },
  86884. $signature: 22
  86885. };
  86886. A.SelectorList0.prototype = {
  86887. get$asSassList() {
  86888. var t1 = this.components;
  86889. return A.SassList$0(new A.MappedListIterable(t1, new A.SelectorList_asSassList_closure0(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value0>")), B.ListSeparator_rXA0, false);
  86890. },
  86891. accept$1$1(visitor) {
  86892. return visitor.visitSelectorList$1(this);
  86893. },
  86894. accept$1(visitor) {
  86895. return this.accept$1$1(visitor, type$.dynamic);
  86896. },
  86897. unify$1(other) {
  86898. var t3, t4, t5, t6, _i, complex1, _i0, t7,
  86899. t1 = type$.JSArray_ComplexSelector_2,
  86900. t2 = A._setArrayType([], t1);
  86901. for (t3 = this.components, t4 = t3.length, t5 = other.components, t6 = t5.length, _i = 0; _i < t4; ++_i) {
  86902. complex1 = t3[_i];
  86903. for (_i0 = 0; _i0 < t6; ++_i0) {
  86904. t7 = A.unifyComplex0(A._setArrayType([complex1, t5[_i0]], t1));
  86905. if (t7 != null)
  86906. B.JSArray_methods.addAll$1(t2, t7);
  86907. }
  86908. }
  86909. return t2.length === 0 ? null : A.SelectorList$0(t2);
  86910. },
  86911. resolveParentSelectors$2$implicitParent($parent, implicitParent) {
  86912. var t1, _this = this;
  86913. if ($parent == null) {
  86914. if (!B.JSArray_methods.any$1(_this.components, _this.get$_list2$_complexContainsParentSelector()))
  86915. return _this;
  86916. throw A.wrapException(A.SassScriptException$0(string$.Top_le, null));
  86917. }
  86918. t1 = _this.components;
  86919. return A.SelectorList$0(A.flattenVertically0(new A.MappedListIterable(t1, new A.SelectorList_resolveParentSelectors_closure0(_this, implicitParent, $parent), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Iterable<ComplexSelector0>>")), type$.ComplexSelector_2));
  86920. },
  86921. resolveParentSelectors$1($parent) {
  86922. return this.resolveParentSelectors$2$implicitParent($parent, true);
  86923. },
  86924. _list2$_complexContainsParentSelector$1(complex) {
  86925. return B.JSArray_methods.any$1(complex.components, new A.SelectorList__complexContainsParentSelector_closure0());
  86926. },
  86927. _list2$_resolveParentSelectorsCompound$2(component, $parent) {
  86928. var resolvedSimples, parentSelector, t1,
  86929. simples = component.selector.components,
  86930. containsSelectorPseudo = B.JSArray_methods.any$1(simples, new A.SelectorList__resolveParentSelectorsCompound_closure2());
  86931. if (!containsSelectorPseudo && !(B.JSArray_methods.get$first(simples) instanceof A.ParentSelector0))
  86932. return null;
  86933. resolvedSimples = containsSelectorPseudo ? new A.MappedListIterable(simples, new A.SelectorList__resolveParentSelectorsCompound_closure3($parent), A._arrayInstanceType(simples)._eval$1("MappedListIterable<1,SimpleSelector0>")) : simples;
  86934. parentSelector = B.JSArray_methods.get$first(simples);
  86935. if (!(parentSelector instanceof A.ParentSelector0))
  86936. return A._setArrayType([A.ComplexSelector$0(B.List_empty13, A._setArrayType([new A.ComplexSelectorComponent0(A.CompoundSelector$0(resolvedSimples), A.List_List$unmodifiable(component.combinators, type$.Combinator_2))], type$.JSArray_ComplexSelectorComponent_2), false)], type$.JSArray_ComplexSelector_2);
  86937. else if (simples.length === 1 && parentSelector.suffix == null)
  86938. return $parent.withAdditionalCombinators$1(component.combinators).components;
  86939. t1 = $parent.components;
  86940. return new A.MappedListIterable(t1, new A.SelectorList__resolveParentSelectorsCompound_closure4(parentSelector, resolvedSimples, component), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector0>"));
  86941. },
  86942. isSuperselector$1(other) {
  86943. return A.listIsSuperselector0(this.components, other.components);
  86944. },
  86945. withAdditionalCombinators$1(combinators) {
  86946. var t1;
  86947. if (combinators.length === 0)
  86948. t1 = this;
  86949. else {
  86950. t1 = this.components;
  86951. t1 = A.SelectorList$0(new A.MappedListIterable(t1, new A.SelectorList_withAdditionalCombinators_closure0(combinators), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector0>")));
  86952. }
  86953. return t1;
  86954. },
  86955. get$hashCode(_) {
  86956. return B.C_ListEquality0.hash$1(this.components);
  86957. },
  86958. $eq(_, other) {
  86959. if (other == null)
  86960. return false;
  86961. return other instanceof A.SelectorList0 && B.C_ListEquality.equals$2(0, this.components, other.components);
  86962. }
  86963. };
  86964. A.SelectorList_asSassList_closure0.prototype = {
  86965. call$1(complex) {
  86966. var t3, t4, _i, component, t5, visitor, t6, t7, _i0,
  86967. t1 = type$.JSArray_Value_2,
  86968. t2 = A._setArrayType([], t1);
  86969. for (t3 = complex.leadingCombinators, t4 = t3.length, _i = 0; _i < t4; ++_i)
  86970. t2.push(new A.SassString0(t3[_i]._combinator0$_text, false));
  86971. for (t3 = complex.components, t4 = t3.length, _i = 0; _i < t4; ++_i) {
  86972. component = t3[_i];
  86973. t5 = component.selector;
  86974. visitor = A._SerializeVisitor$0(null, true, null, true, false, null, true);
  86975. t5.accept$1(visitor);
  86976. t5 = A._setArrayType([new A.SassString0(visitor._serialize0$_buffer.toString$0(0), false)], t1);
  86977. for (t6 = component.combinators, t7 = t6.length, _i0 = 0; _i0 < t7; ++_i0)
  86978. t5.push(new A.SassString0(t6[_i0]._combinator0$_text, false));
  86979. B.JSArray_methods.addAll$1(t2, t5);
  86980. }
  86981. return A.SassList$0(t2, B.ListSeparator_EVt0, false);
  86982. },
  86983. $signature: 448
  86984. };
  86985. A.SelectorList_resolveParentSelectors_closure0.prototype = {
  86986. call$1(complex) {
  86987. var t2, newComplexes, t3, t4, t5, t6, t7, t8, t9, _i, component, resolved, t10, result, t11, i, t12, _i0, newComplex, t13, _this = this,
  86988. _s56_ = string$.leadin,
  86989. t1 = _this.$this;
  86990. if (!t1._list2$_complexContainsParentSelector$1(complex)) {
  86991. if (!_this.implicitParent)
  86992. return A._setArrayType([complex], type$.JSArray_ComplexSelector_2);
  86993. t1 = _this.parent.components;
  86994. return new A.MappedListIterable(t1, new A.SelectorList_resolveParentSelectors__closure0(complex), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector0>"));
  86995. }
  86996. t2 = type$.JSArray_ComplexSelector_2;
  86997. newComplexes = A._setArrayType([], t2);
  86998. for (t3 = complex.components, t4 = t3.length, t5 = _this.parent, t6 = type$.Combinator_2, t7 = type$.ComplexSelectorComponent_2, t8 = complex.leadingCombinators, t9 = type$.JSArray_ComplexSelectorComponent_2, _i = 0; _i < t4; ++_i) {
  86999. component = t3[_i];
  87000. resolved = t1._list2$_resolveParentSelectorsCompound$2(component, t5);
  87001. if (resolved == null)
  87002. if (newComplexes.length === 0) {
  87003. t10 = A._setArrayType([component], t9);
  87004. result = A.List_List$from(t8, false, t6);
  87005. result.fixed$length = Array;
  87006. result.immutable$list = Array;
  87007. t11 = result;
  87008. result = A.List_List$from(t10, false, t7);
  87009. result.fixed$length = Array;
  87010. result.immutable$list = Array;
  87011. t10 = result;
  87012. if (t11.length === 0 && t10.length === 0)
  87013. A.throwExpression(A.ArgumentError$(_s56_, null));
  87014. newComplexes.push(new A.ComplexSelector0(t11, t10, false));
  87015. } else
  87016. for (i = 0; i < newComplexes.length; ++i) {
  87017. t10 = newComplexes[i];
  87018. t11 = t10.leadingCombinators;
  87019. t12 = A.List_List$of(t10.components, true, t7);
  87020. t12.push(component);
  87021. t10 = t10.lineBreak || false;
  87022. result = A.List_List$from(t11, false, t6);
  87023. result.fixed$length = Array;
  87024. result.immutable$list = Array;
  87025. t11 = result;
  87026. result = A.List_List$from(t12, false, t7);
  87027. result.fixed$length = Array;
  87028. result.immutable$list = Array;
  87029. t12 = result;
  87030. if (t11.length === 0 && t12.length === 0)
  87031. A.throwExpression(A.ArgumentError$(_s56_, null));
  87032. newComplexes[i] = new A.ComplexSelector0(t11, t12, t10);
  87033. }
  87034. else if (newComplexes.length === 0)
  87035. B.JSArray_methods.addAll$1(newComplexes, resolved);
  87036. else {
  87037. t10 = A._setArrayType([], t2);
  87038. for (t11 = newComplexes.length, t12 = J.getInterceptor$ax(resolved), _i0 = 0; _i0 < newComplexes.length; newComplexes.length === t11 || (0, A.throwConcurrentModificationError)(newComplexes), ++_i0) {
  87039. newComplex = newComplexes[_i0];
  87040. for (t13 = t12.get$iterator(resolved); t13.moveNext$0();)
  87041. t10.push(newComplex.concatenate$1(t13.get$current(t13)));
  87042. }
  87043. newComplexes = t10;
  87044. }
  87045. }
  87046. return newComplexes;
  87047. },
  87048. $signature: 449
  87049. };
  87050. A.SelectorList_resolveParentSelectors__closure0.prototype = {
  87051. call$1(parentComplex) {
  87052. return parentComplex.concatenate$1(this.complex);
  87053. },
  87054. $signature: 71
  87055. };
  87056. A.SelectorList__complexContainsParentSelector_closure0.prototype = {
  87057. call$1(component) {
  87058. return B.JSArray_methods.any$1(component.selector.components, new A.SelectorList__complexContainsParentSelector__closure0());
  87059. },
  87060. $signature: 51
  87061. };
  87062. A.SelectorList__complexContainsParentSelector__closure0.prototype = {
  87063. call$1(simple) {
  87064. var selector;
  87065. if (simple instanceof A.ParentSelector0)
  87066. return true;
  87067. if (!(simple instanceof A.PseudoSelector0))
  87068. return false;
  87069. selector = simple.selector;
  87070. return selector != null && B.JSArray_methods.any$1(selector.components, selector.get$_list2$_complexContainsParentSelector());
  87071. },
  87072. $signature: 13
  87073. };
  87074. A.SelectorList__resolveParentSelectorsCompound_closure2.prototype = {
  87075. call$1(simple) {
  87076. var selector;
  87077. if (!(simple instanceof A.PseudoSelector0))
  87078. return false;
  87079. selector = simple.selector;
  87080. return selector != null && B.JSArray_methods.any$1(selector.components, selector.get$_list2$_complexContainsParentSelector());
  87081. },
  87082. $signature: 13
  87083. };
  87084. A.SelectorList__resolveParentSelectorsCompound_closure3.prototype = {
  87085. call$1(simple) {
  87086. var selector, t1, t2, t3;
  87087. if (!(simple instanceof A.PseudoSelector0))
  87088. return simple;
  87089. selector = simple.selector;
  87090. if (selector == null)
  87091. return simple;
  87092. if (!B.JSArray_methods.any$1(selector.components, selector.get$_list2$_complexContainsParentSelector()))
  87093. return simple;
  87094. t1 = selector.resolveParentSelectors$2$implicitParent(this.parent, false);
  87095. t2 = simple.name;
  87096. t3 = simple.isClass;
  87097. return A.PseudoSelector$0(t2, simple.argument, !t3, t1);
  87098. },
  87099. $signature: 450
  87100. };
  87101. A.SelectorList__resolveParentSelectorsCompound_closure4.prototype = {
  87102. call$1(complex) {
  87103. var suffix, lastSimples, t2, t3, t4, last,
  87104. t1 = complex.components,
  87105. lastComponent = B.JSArray_methods.get$last(t1);
  87106. if (lastComponent.combinators.length !== 0)
  87107. throw A.wrapException(A.SassScriptException$0('Parent "' + complex.toString$0(0) + '" is incompatible with this selector.', null));
  87108. suffix = this.parentSelector.suffix;
  87109. lastSimples = lastComponent.selector.components;
  87110. t2 = type$.SimpleSelector_2;
  87111. t3 = this.resolvedSimples;
  87112. t4 = J.getInterceptor$ax(t3);
  87113. if (suffix == null) {
  87114. t2 = A.List_List$of(lastSimples, true, t2);
  87115. B.JSArray_methods.addAll$1(t2, t4.skip$1(t3, 1));
  87116. } else {
  87117. t2 = A.List_List$of(A.IterableExtension_get_exceptLast0(lastSimples), true, t2);
  87118. t2.push(B.JSArray_methods.get$last(lastSimples).addSuffix$1(suffix));
  87119. B.JSArray_methods.addAll$1(t2, t4.skip$1(t3, 1));
  87120. }
  87121. last = A.CompoundSelector$0(t2);
  87122. t2 = complex.leadingCombinators;
  87123. t1 = A.List_List$of(A.IterableExtension_get_exceptLast0(t1), true, type$.ComplexSelectorComponent_2);
  87124. t1.push(new A.ComplexSelectorComponent0(last, A.List_List$unmodifiable(this.component.combinators, type$.Combinator_2)));
  87125. return A.ComplexSelector$0(t2, t1, complex.lineBreak);
  87126. },
  87127. $signature: 71
  87128. };
  87129. A.SelectorList_withAdditionalCombinators_closure0.prototype = {
  87130. call$1(complex) {
  87131. return complex.withAdditionalCombinators$1(this.combinators);
  87132. },
  87133. $signature: 71
  87134. };
  87135. A._NodeSassList.prototype = {};
  87136. A.legacyListClass_closure.prototype = {
  87137. call$4(thisArg, $length, commaSeparator, dartValue) {
  87138. var t1;
  87139. if (dartValue == null) {
  87140. $length.toString;
  87141. t1 = A.Iterable_Iterable$generate($length, new A.legacyListClass__closure(), type$.Value_2);
  87142. t1 = A.SassList$0(t1, commaSeparator !== false ? B.ListSeparator_rXA0 : B.ListSeparator_EVt0, false);
  87143. } else
  87144. t1 = dartValue;
  87145. J.set$dartValue$x(thisArg, t1);
  87146. },
  87147. call$2(thisArg, $length) {
  87148. return this.call$4(thisArg, $length, null, null);
  87149. },
  87150. call$3(thisArg, $length, commaSeparator) {
  87151. return this.call$4(thisArg, $length, commaSeparator, null);
  87152. },
  87153. "call*": "call$4",
  87154. $requiredArgCount: 2,
  87155. $defaultValues() {
  87156. return [null, null];
  87157. },
  87158. $signature: 451
  87159. };
  87160. A.legacyListClass__closure.prototype = {
  87161. call$1(_) {
  87162. return B.C__SassNull0;
  87163. },
  87164. $signature: 237
  87165. };
  87166. A.legacyListClass_closure0.prototype = {
  87167. call$2(thisArg, index) {
  87168. return A.wrapValue(J.get$dartValue$x(thisArg)._list1$_contents[index]);
  87169. },
  87170. $signature: 453
  87171. };
  87172. A.legacyListClass_closure1.prototype = {
  87173. call$3(thisArg, index, value) {
  87174. var t1 = J.getInterceptor$x(thisArg),
  87175. t2 = t1.get$dartValue(thisArg)._list1$_contents,
  87176. mutable = A._setArrayType(t2.slice(0), A._arrayInstanceType(t2));
  87177. mutable[index] = A.unwrapValue(value);
  87178. t1.set$dartValue(thisArg, t1.get$dartValue(thisArg).withListContents$1(mutable));
  87179. },
  87180. "call*": "call$3",
  87181. $requiredArgCount: 3,
  87182. $signature: 454
  87183. };
  87184. A.legacyListClass_closure2.prototype = {
  87185. call$1(thisArg) {
  87186. return J.get$dartValue$x(thisArg)._list1$_separator === B.ListSeparator_rXA0;
  87187. },
  87188. $signature: 455
  87189. };
  87190. A.legacyListClass_closure3.prototype = {
  87191. call$2(thisArg, isComma) {
  87192. var t1 = J.getInterceptor$x(thisArg),
  87193. t2 = t1.get$dartValue(thisArg)._list1$_contents,
  87194. t3 = isComma ? B.ListSeparator_rXA0 : B.ListSeparator_EVt0;
  87195. t1.set$dartValue(thisArg, A.SassList$0(t2, t3, t1.get$dartValue(thisArg)._list1$_hasBrackets));
  87196. },
  87197. $signature: 456
  87198. };
  87199. A.legacyListClass_closure4.prototype = {
  87200. call$1(thisArg) {
  87201. return J.get$dartValue$x(thisArg)._list1$_contents.length;
  87202. },
  87203. $signature: 457
  87204. };
  87205. A.listClass_closure.prototype = {
  87206. call$0() {
  87207. var t1 = type$.JSClass,
  87208. jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.SassList", new A.listClass__closure()));
  87209. J.get$$prototype$x(jsClass).get = A.allowInteropCaptureThisNamed("get", new A.listClass__closure0());
  87210. A.JSClassExtension_injectSuperclass(t1._as(B.SassList_nj9.constructor), jsClass);
  87211. return jsClass;
  87212. },
  87213. $signature: 25
  87214. };
  87215. A.listClass__closure.prototype = {
  87216. call$3($self, contentsOrOptions, options) {
  87217. var contents, t1, t2;
  87218. if (self.immutable.isList(contentsOrOptions))
  87219. contents = J.cast$1$0$ax(J.toArray$0$x(type$.ImmutableList._as(contentsOrOptions)), type$.Value_2);
  87220. else if (type$.List_dynamic._is(contentsOrOptions))
  87221. contents = J.cast$1$0$ax(contentsOrOptions, type$.Value_2);
  87222. else {
  87223. contents = A._setArrayType([], type$.JSArray_Value_2);
  87224. type$.nullable__ConstructorOptions._as(contentsOrOptions);
  87225. options = contentsOrOptions;
  87226. }
  87227. t1 = options == null;
  87228. if (!t1) {
  87229. t2 = J.get$separator$x(options);
  87230. t2 = A._asBool($.$get$_isUndefined().call$1(t2));
  87231. } else
  87232. t2 = true;
  87233. t2 = t2 ? B.ListSeparator_rXA0 : A.jsToDartSeparator(J.get$separator$x(options));
  87234. t1 = t1 ? null : J.get$brackets$x(options);
  87235. return A.SassList$0(contents, t2, t1 == null ? false : t1);
  87236. },
  87237. call$1($self) {
  87238. return this.call$3($self, null, null);
  87239. },
  87240. call$2($self, contentsOrOptions) {
  87241. return this.call$3($self, contentsOrOptions, null);
  87242. },
  87243. "call*": "call$3",
  87244. $requiredArgCount: 1,
  87245. $defaultValues() {
  87246. return [null, null];
  87247. },
  87248. $signature: 458
  87249. };
  87250. A.listClass__closure0.prototype = {
  87251. call$2($self, indexFloat) {
  87252. var index = B.JSNumber_methods.floor$0(indexFloat);
  87253. if (index < 0)
  87254. index = $self.get$asList().length + index;
  87255. if (index < 0 || index >= $self.get$asList().length)
  87256. return self.undefined;
  87257. return $self.get$asList()[index];
  87258. },
  87259. $signature: 205
  87260. };
  87261. A._ConstructorOptions.prototype = {};
  87262. A.SassList0.prototype = {
  87263. get$separator(_) {
  87264. return this._list1$_separator;
  87265. },
  87266. get$hasBrackets() {
  87267. return this._list1$_hasBrackets;
  87268. },
  87269. get$isBlank() {
  87270. return !this._list1$_hasBrackets && B.JSArray_methods.every$1(this._list1$_contents, new A.SassList_isBlank_closure0());
  87271. },
  87272. get$asList() {
  87273. return this._list1$_contents;
  87274. },
  87275. get$lengthAsList() {
  87276. return this._list1$_contents.length;
  87277. },
  87278. SassList$3$brackets0(contents, _separator, brackets) {
  87279. if (this._list1$_separator === B.ListSeparator_undecided_null_undecided0 && this._list1$_contents.length > 1)
  87280. throw A.wrapException(A.ArgumentError$(string$.A_list, null));
  87281. },
  87282. accept$1$1(visitor) {
  87283. return visitor.visitList$1(this);
  87284. },
  87285. accept$1(visitor) {
  87286. return this.accept$1$1(visitor, type$.dynamic);
  87287. },
  87288. assertMap$1($name) {
  87289. return this._list1$_contents.length === 0 ? B.SassMap_Map_empty0 : this.super$Value$assertMap0($name);
  87290. },
  87291. tryMap$0() {
  87292. return this._list1$_contents.length === 0 ? B.SassMap_Map_empty0 : null;
  87293. },
  87294. $eq(_, other) {
  87295. var t1, _this = this;
  87296. if (other == null)
  87297. return false;
  87298. if (!(other instanceof A.SassList0 && other._list1$_separator === _this._list1$_separator && other._list1$_hasBrackets === _this._list1$_hasBrackets && B.C_ListEquality.equals$2(0, other._list1$_contents, _this._list1$_contents)))
  87299. t1 = _this._list1$_contents.length === 0 && other instanceof A.SassMap0 && other.get$asList().length === 0;
  87300. else
  87301. t1 = true;
  87302. return t1;
  87303. },
  87304. get$hashCode(_) {
  87305. return B.C_ListEquality0.hash$1(this._list1$_contents);
  87306. }
  87307. };
  87308. A.SassList_isBlank_closure0.prototype = {
  87309. call$1(element) {
  87310. return element.get$isBlank();
  87311. },
  87312. $signature: 49
  87313. };
  87314. A.ListSeparator0.prototype = {
  87315. toString$0(_) {
  87316. return this._list1$_name;
  87317. }
  87318. };
  87319. A.NodeLogger.prototype = {};
  87320. A.WarnOptions.prototype = {};
  87321. A.DebugOptions.prototype = {};
  87322. A._QuietLogger0.prototype = {
  87323. warn$4$deprecation$span$trace(_, message, deprecation, span, trace) {
  87324. },
  87325. warn$2$span($receiver, message, span) {
  87326. return this.warn$4$deprecation$span$trace($receiver, message, false, span, null);
  87327. },
  87328. warn$3$deprecation$span($receiver, message, deprecation, span) {
  87329. return this.warn$4$deprecation$span$trace($receiver, message, deprecation, span, null);
  87330. }
  87331. };
  87332. A.LoudComment0.prototype = {
  87333. get$span(_) {
  87334. return this.text.span;
  87335. },
  87336. accept$1$1(visitor) {
  87337. return visitor.visitLoudComment$1(this);
  87338. },
  87339. accept$1(visitor) {
  87340. return this.accept$1$1(visitor, type$.dynamic);
  87341. },
  87342. toString$0(_) {
  87343. return this.text.toString$0(0);
  87344. },
  87345. $isAstNode0: 1,
  87346. $isStatement0: 1
  87347. };
  87348. A.MapExpression0.prototype = {
  87349. accept$1$1(visitor) {
  87350. return visitor.visitMapExpression$1(this);
  87351. },
  87352. accept$1(visitor) {
  87353. return this.accept$1$1(visitor, type$.dynamic);
  87354. },
  87355. toString$0(_) {
  87356. var t1 = this.pairs;
  87357. return "(" + new A.MappedListIterable(t1, new A.MapExpression_toString_closure0(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$1(0, ", ") + ")";
  87358. },
  87359. $isExpression0: 1,
  87360. $isAstNode0: 1,
  87361. get$span(receiver) {
  87362. return this.span;
  87363. }
  87364. };
  87365. A.MapExpression_toString_closure0.prototype = {
  87366. call$1(pair) {
  87367. return A.S(pair.item1) + ": " + A.S(pair.item2);
  87368. },
  87369. $signature: 460
  87370. };
  87371. A._get_closure0.prototype = {
  87372. call$1($arguments) {
  87373. var value,
  87374. t1 = J.getInterceptor$asx($arguments),
  87375. map = t1.$index($arguments, 0).assertMap$1("map"),
  87376. t2 = A._setArrayType([t1.$index($arguments, 1)], type$.JSArray_Value_2);
  87377. B.JSArray_methods.addAll$1(t2, t1.$index($arguments, 2).get$asList());
  87378. for (t1 = A.IterableExtension_get_exceptLast0(t2), t1 = t1.get$iterator(t1); t1.moveNext$0(); map = value) {
  87379. value = map._map0$_contents.$index(0, t1.get$current(t1));
  87380. if (!(value instanceof A.SassMap0))
  87381. return B.C__SassNull0;
  87382. }
  87383. t1 = map._map0$_contents.$index(0, B.JSArray_methods.get$last(t2));
  87384. return t1 == null ? B.C__SassNull0 : t1;
  87385. },
  87386. $signature: 3
  87387. };
  87388. A._set_closure1.prototype = {
  87389. call$1($arguments) {
  87390. var t1 = J.getInterceptor$asx($arguments);
  87391. return A._modify0(t1.$index($arguments, 0).assertMap$1("map"), A._setArrayType([t1.$index($arguments, 1)], type$.JSArray_Value_2), new A._set__closure2($arguments), true);
  87392. },
  87393. $signature: 3
  87394. };
  87395. A._set__closure2.prototype = {
  87396. call$1(_) {
  87397. return J.$index$asx(this.$arguments, 2);
  87398. },
  87399. $signature: 36
  87400. };
  87401. A._set_closure2.prototype = {
  87402. call$1($arguments) {
  87403. var t1 = J.getInterceptor$asx($arguments),
  87404. map = t1.$index($arguments, 0).assertMap$1("map"),
  87405. args = t1.$index($arguments, 1).get$asList();
  87406. t1 = args.length;
  87407. if (t1 === 0)
  87408. throw A.wrapException(A.SassScriptException$0("Expected $args to contain a key.", null));
  87409. else if (t1 === 1)
  87410. throw A.wrapException(A.SassScriptException$0("Expected $args to contain a value.", null));
  87411. return A._modify0(map, B.JSArray_methods.sublist$2(args, 0, t1 - 1), new A._set__closure1(args), true);
  87412. },
  87413. $signature: 3
  87414. };
  87415. A._set__closure1.prototype = {
  87416. call$1(_) {
  87417. return B.JSArray_methods.get$last(this.args);
  87418. },
  87419. $signature: 36
  87420. };
  87421. A._merge_closure1.prototype = {
  87422. call$1($arguments) {
  87423. var t2,
  87424. t1 = J.getInterceptor$asx($arguments),
  87425. map1 = t1.$index($arguments, 0).assertMap$1("map1"),
  87426. map2 = t1.$index($arguments, 1).assertMap$1("map2");
  87427. t1 = type$.Value_2;
  87428. t2 = A.LinkedHashMap_LinkedHashMap$of(map1._map0$_contents, t1, t1);
  87429. t2.addAll$1(0, map2._map0$_contents);
  87430. return new A.SassMap0(A.ConstantMap_ConstantMap$from(t2, t1, t1));
  87431. },
  87432. $signature: 37
  87433. };
  87434. A._merge_closure2.prototype = {
  87435. call$1($arguments) {
  87436. var map2,
  87437. t1 = J.getInterceptor$asx($arguments),
  87438. map1 = t1.$index($arguments, 0).assertMap$1("map1"),
  87439. args = t1.$index($arguments, 1).get$asList();
  87440. t1 = args.length;
  87441. if (t1 === 0)
  87442. throw A.wrapException(A.SassScriptException$0("Expected $args to contain a key.", null));
  87443. else if (t1 === 1)
  87444. throw A.wrapException(A.SassScriptException$0("Expected $args to contain a map.", null));
  87445. map2 = B.JSArray_methods.get$last(args).assertMap$1("map2");
  87446. return A._modify0(map1, A.IterableExtension_get_exceptLast0(args), new A._merge__closure0(map2), true);
  87447. },
  87448. $signature: 3
  87449. };
  87450. A._merge__closure0.prototype = {
  87451. call$1(oldValue) {
  87452. var t1, t2,
  87453. nestedMap = oldValue.tryMap$0();
  87454. if (nestedMap == null)
  87455. return this.map2;
  87456. t1 = type$.Value_2;
  87457. t2 = A.LinkedHashMap_LinkedHashMap$of(nestedMap._map0$_contents, t1, t1);
  87458. t2.addAll$1(0, this.map2._map0$_contents);
  87459. return new A.SassMap0(A.ConstantMap_ConstantMap$from(t2, t1, t1));
  87460. },
  87461. $signature: 461
  87462. };
  87463. A._deepMerge_closure0.prototype = {
  87464. call$1($arguments) {
  87465. var t1 = J.getInterceptor$asx($arguments);
  87466. return A._deepMergeImpl0(t1.$index($arguments, 0).assertMap$1("map1"), t1.$index($arguments, 1).assertMap$1("map2"));
  87467. },
  87468. $signature: 37
  87469. };
  87470. A._deepRemove_closure0.prototype = {
  87471. call$1($arguments) {
  87472. var t1 = J.getInterceptor$asx($arguments),
  87473. map = t1.$index($arguments, 0).assertMap$1("map"),
  87474. t2 = A._setArrayType([t1.$index($arguments, 1)], type$.JSArray_Value_2);
  87475. B.JSArray_methods.addAll$1(t2, t1.$index($arguments, 2).get$asList());
  87476. return A._modify0(map, A.IterableExtension_get_exceptLast0(t2), new A._deepRemove__closure0(t2), false);
  87477. },
  87478. $signature: 3
  87479. };
  87480. A._deepRemove__closure0.prototype = {
  87481. call$1(value) {
  87482. var t1, t2,
  87483. nestedMap = value.tryMap$0();
  87484. if (nestedMap != null && nestedMap._map0$_contents.containsKey$1(B.JSArray_methods.get$last(this.keys))) {
  87485. t1 = type$.Value_2;
  87486. t2 = A.LinkedHashMap_LinkedHashMap$of(nestedMap._map0$_contents, t1, t1);
  87487. t2.remove$1(0, B.JSArray_methods.get$last(this.keys));
  87488. return new A.SassMap0(A.ConstantMap_ConstantMap$from(t2, t1, t1));
  87489. }
  87490. return value;
  87491. },
  87492. $signature: 36
  87493. };
  87494. A._remove_closure1.prototype = {
  87495. call$1($arguments) {
  87496. return J.$index$asx($arguments, 0).assertMap$1("map");
  87497. },
  87498. $signature: 37
  87499. };
  87500. A._remove_closure2.prototype = {
  87501. call$1($arguments) {
  87502. var mutableMap, t3, _i,
  87503. t1 = J.getInterceptor$asx($arguments),
  87504. map = t1.$index($arguments, 0).assertMap$1("map"),
  87505. t2 = A._setArrayType([t1.$index($arguments, 1)], type$.JSArray_Value_2);
  87506. B.JSArray_methods.addAll$1(t2, t1.$index($arguments, 2).get$asList());
  87507. t1 = type$.Value_2;
  87508. mutableMap = A.LinkedHashMap_LinkedHashMap$of(map._map0$_contents, t1, t1);
  87509. for (t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, A.throwConcurrentModificationError)(t2), ++_i)
  87510. mutableMap.remove$1(0, t2[_i]);
  87511. return new A.SassMap0(A.ConstantMap_ConstantMap$from(mutableMap, t1, t1));
  87512. },
  87513. $signature: 37
  87514. };
  87515. A._keys_closure0.prototype = {
  87516. call$1($arguments) {
  87517. var t1 = J.$index$asx($arguments, 0).assertMap$1("map")._map0$_contents;
  87518. return A.SassList$0(t1.get$keys(t1), B.ListSeparator_rXA0, false);
  87519. },
  87520. $signature: 22
  87521. };
  87522. A._values_closure0.prototype = {
  87523. call$1($arguments) {
  87524. var t1 = J.$index$asx($arguments, 0).assertMap$1("map")._map0$_contents;
  87525. return A.SassList$0(t1.get$values(t1), B.ListSeparator_rXA0, false);
  87526. },
  87527. $signature: 22
  87528. };
  87529. A._hasKey_closure0.prototype = {
  87530. call$1($arguments) {
  87531. var value,
  87532. t1 = J.getInterceptor$asx($arguments),
  87533. map = t1.$index($arguments, 0).assertMap$1("map"),
  87534. t2 = A._setArrayType([t1.$index($arguments, 1)], type$.JSArray_Value_2);
  87535. B.JSArray_methods.addAll$1(t2, t1.$index($arguments, 2).get$asList());
  87536. for (t1 = A.IterableExtension_get_exceptLast0(t2), t1 = t1.get$iterator(t1); t1.moveNext$0(); map = value) {
  87537. value = map._map0$_contents.$index(0, t1.get$current(t1));
  87538. if (!(value instanceof A.SassMap0))
  87539. return B.SassBoolean_false0;
  87540. }
  87541. return map._map0$_contents.containsKey$1(B.JSArray_methods.get$last(t2)) ? B.SassBoolean_true0 : B.SassBoolean_false0;
  87542. },
  87543. $signature: 20
  87544. };
  87545. A._modify_modifyNestedMap0.prototype = {
  87546. call$1(map) {
  87547. var nestedMap, _this = this,
  87548. t1 = type$.Value_2,
  87549. mutableMap = A.LinkedHashMap_LinkedHashMap$of(map._map0$_contents, t1, t1),
  87550. t2 = _this.keyIterator,
  87551. key = t2.get$current(t2);
  87552. if (!t2.moveNext$0()) {
  87553. t2 = mutableMap.$index(0, key);
  87554. if (t2 == null)
  87555. t2 = B.C__SassNull0;
  87556. mutableMap.$indexSet(0, key, _this.modify.call$1(t2));
  87557. return new A.SassMap0(A.ConstantMap_ConstantMap$from(mutableMap, t1, t1));
  87558. }
  87559. t2 = mutableMap.$index(0, key);
  87560. nestedMap = t2 == null ? null : t2.tryMap$0();
  87561. t2 = nestedMap == null;
  87562. if (t2 && !_this.addNesting)
  87563. return new A.SassMap0(A.ConstantMap_ConstantMap$from(mutableMap, t1, t1));
  87564. mutableMap.$indexSet(0, key, _this.call$1(t2 ? B.SassMap_Map_empty0 : nestedMap));
  87565. return new A.SassMap0(A.ConstantMap_ConstantMap$from(mutableMap, t1, t1));
  87566. },
  87567. $signature: 462
  87568. };
  87569. A._deepMergeImpl_closure0.prototype = {
  87570. call$2(key, value) {
  87571. var valueMap, merged,
  87572. t1 = this.result,
  87573. t2 = t1.$index(0, key),
  87574. resultMap = t2 == null ? null : t2.tryMap$0();
  87575. if (resultMap == null)
  87576. t1.$indexSet(0, key, value);
  87577. else {
  87578. valueMap = value.tryMap$0();
  87579. if (valueMap != null) {
  87580. merged = A._deepMergeImpl0(resultMap, valueMap);
  87581. if (merged === resultMap)
  87582. return;
  87583. t1.$indexSet(0, key, merged);
  87584. } else
  87585. t1.$indexSet(0, key, value);
  87586. }
  87587. },
  87588. $signature: 55
  87589. };
  87590. A._NodeSassMap.prototype = {};
  87591. A.legacyMapClass_closure.prototype = {
  87592. call$3(thisArg, $length, dartValue) {
  87593. var t1, t2, t3, map;
  87594. if (dartValue == null) {
  87595. $length.toString;
  87596. t1 = type$.Value_2;
  87597. t2 = A.Iterable_Iterable$generate($length, new A.legacyMapClass__closure(), t1);
  87598. t3 = A.Iterable_Iterable$generate($length, new A.legacyMapClass__closure0(), t1);
  87599. map = A.LinkedHashMap_LinkedHashMap(null, null, null, t1, t1);
  87600. A.MapBase__fillMapWithIterables(map, t2, t3);
  87601. t1 = new A.SassMap0(A.ConstantMap_ConstantMap$from(map, t1, t1));
  87602. } else
  87603. t1 = dartValue;
  87604. J.set$dartValue$x(thisArg, t1);
  87605. },
  87606. call$2(thisArg, $length) {
  87607. return this.call$3(thisArg, $length, null);
  87608. },
  87609. "call*": "call$3",
  87610. $requiredArgCount: 2,
  87611. $defaultValues() {
  87612. return [null];
  87613. },
  87614. $signature: 463
  87615. };
  87616. A.legacyMapClass__closure.prototype = {
  87617. call$1(i) {
  87618. return A.SassNumber_SassNumber0(i, null);
  87619. },
  87620. $signature: 464
  87621. };
  87622. A.legacyMapClass__closure0.prototype = {
  87623. call$1(_) {
  87624. return B.C__SassNull0;
  87625. },
  87626. $signature: 237
  87627. };
  87628. A.legacyMapClass_closure0.prototype = {
  87629. call$2(thisArg, index) {
  87630. var t1 = J.get$dartValue$x(thisArg)._map0$_contents;
  87631. return A.wrapValue(J.elementAt$1$ax(t1.get$keys(t1), index));
  87632. },
  87633. $signature: 195
  87634. };
  87635. A.legacyMapClass_closure1.prototype = {
  87636. call$2(thisArg, index) {
  87637. var t1 = J.get$dartValue$x(thisArg)._map0$_contents;
  87638. return A.wrapValue(t1.get$values(t1).elementAt$1(0, index));
  87639. },
  87640. $signature: 195
  87641. };
  87642. A.legacyMapClass_closure2.prototype = {
  87643. call$1(thisArg) {
  87644. var t1 = J.get$dartValue$x(thisArg)._map0$_contents;
  87645. return t1.get$length(t1);
  87646. },
  87647. $signature: 466
  87648. };
  87649. A.legacyMapClass_closure3.prototype = {
  87650. call$3(thisArg, index, key) {
  87651. var newKey, t2, newMap, t3, i, t4, t5,
  87652. t1 = J.getInterceptor$x(thisArg);
  87653. A.RangeError_checkValidIndex(index, t1.get$dartValue(thisArg)._map0$_contents, "index");
  87654. newKey = A.unwrapValue(key);
  87655. t2 = type$.Value_2;
  87656. newMap = A.LinkedHashMap_LinkedHashMap$_empty(t2, t2);
  87657. for (t3 = t1.get$dartValue(thisArg)._map0$_contents, t3 = t3.get$entries(t3), t3 = t3.get$iterator(t3), i = 0; t3.moveNext$0();) {
  87658. t4 = t3.get$current(t3);
  87659. if (i === index)
  87660. newMap.$indexSet(0, newKey, t4.value);
  87661. else {
  87662. t5 = t4.key;
  87663. if (newKey.$eq(0, t5))
  87664. throw A.wrapException(A.ArgumentError$value(key, "key", "is already in the map"));
  87665. newMap.$indexSet(0, t5, t4.value);
  87666. }
  87667. ++i;
  87668. }
  87669. t1.set$dartValue(thisArg, new A.SassMap0(A.ConstantMap_ConstantMap$from(newMap, t2, t2)));
  87670. },
  87671. "call*": "call$3",
  87672. $requiredArgCount: 3,
  87673. $signature: 187
  87674. };
  87675. A.legacyMapClass_closure4.prototype = {
  87676. call$3(thisArg, index, value) {
  87677. var t3,
  87678. t1 = J.getInterceptor$x(thisArg),
  87679. t2 = t1.get$dartValue(thisArg)._map0$_contents,
  87680. key = J.elementAt$1$ax(t2.get$keys(t2), index);
  87681. t2 = type$.Value_2;
  87682. t3 = A.LinkedHashMap_LinkedHashMap$of(t1.get$dartValue(thisArg)._map0$_contents, t2, t2);
  87683. t3.$indexSet(0, key, A.unwrapValue(value));
  87684. t1.set$dartValue(thisArg, new A.SassMap0(A.ConstantMap_ConstantMap$from(t3, t2, t2)));
  87685. },
  87686. "call*": "call$3",
  87687. $requiredArgCount: 3,
  87688. $signature: 187
  87689. };
  87690. A.mapClass_closure.prototype = {
  87691. call$0() {
  87692. var t1 = type$.JSClass,
  87693. jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.SassMap", new A.mapClass__closure())),
  87694. t2 = J.getInterceptor$x(jsClass);
  87695. A.defineGetter(t2.get$$prototype(jsClass), "contents", new A.mapClass__closure0(), null);
  87696. t2.get$$prototype(jsClass).get = A.allowInteropCaptureThisNamed("get", new A.mapClass__closure1());
  87697. A.JSClassExtension_injectSuperclass(t1._as(B.SassMap_Map_empty0.constructor), jsClass);
  87698. return jsClass;
  87699. },
  87700. $signature: 25
  87701. };
  87702. A.mapClass__closure.prototype = {
  87703. call$2($self, contents) {
  87704. var t1;
  87705. if (contents == null)
  87706. t1 = B.SassMap_Map_empty0;
  87707. else {
  87708. t1 = type$.Value_2;
  87709. t1 = new A.SassMap0(A.ConstantMap_ConstantMap$from(A.immutableMapToDartMap(contents).cast$2$0(0, t1, t1), t1, t1));
  87710. }
  87711. return t1;
  87712. },
  87713. call$1($self) {
  87714. return this.call$2($self, null);
  87715. },
  87716. "call*": "call$2",
  87717. $requiredArgCount: 1,
  87718. $defaultValues() {
  87719. return [null];
  87720. },
  87721. $signature: 468
  87722. };
  87723. A.mapClass__closure0.prototype = {
  87724. call$1($self) {
  87725. return A.dartMapToImmutableMap($self._map0$_contents);
  87726. },
  87727. $signature: 469
  87728. };
  87729. A.mapClass__closure1.prototype = {
  87730. call$2($self, indexOrKey) {
  87731. var index, t1, entry;
  87732. if (typeof indexOrKey == "number") {
  87733. index = B.JSNumber_methods.floor$0(indexOrKey);
  87734. if (index < 0) {
  87735. t1 = $self._map0$_contents;
  87736. index = t1.get$length(t1) + index;
  87737. }
  87738. if (index >= 0) {
  87739. t1 = $self._map0$_contents;
  87740. t1 = index >= t1.get$length(t1);
  87741. } else
  87742. t1 = true;
  87743. if (t1)
  87744. return self.undefined;
  87745. t1 = $self._map0$_contents;
  87746. entry = t1.get$entries(t1).elementAt$1(0, index);
  87747. return A.SassList$0(A._setArrayType([entry.key, entry.value], type$.JSArray_Value_2), B.ListSeparator_EVt0, false);
  87748. } else {
  87749. t1 = $self._map0$_contents.$index(0, indexOrKey);
  87750. return t1 == null ? self.undefined : t1;
  87751. }
  87752. },
  87753. $signature: 470
  87754. };
  87755. A.SassMap0.prototype = {
  87756. get$separator(_) {
  87757. var t1 = this._map0$_contents;
  87758. return t1.get$isEmpty(t1) ? B.ListSeparator_undecided_null_undecided0 : B.ListSeparator_rXA0;
  87759. },
  87760. get$asList() {
  87761. var result = A._setArrayType([], type$.JSArray_Value_2);
  87762. this._map0$_contents.forEach$1(0, new A.SassMap_asList_closure0(result));
  87763. return result;
  87764. },
  87765. get$lengthAsList() {
  87766. var t1 = this._map0$_contents;
  87767. return t1.get$length(t1);
  87768. },
  87769. accept$1$1(visitor) {
  87770. return visitor.visitMap$1(this);
  87771. },
  87772. accept$1(visitor) {
  87773. return this.accept$1$1(visitor, type$.dynamic);
  87774. },
  87775. assertMap$1($name) {
  87776. return this;
  87777. },
  87778. tryMap$0() {
  87779. return this;
  87780. },
  87781. $eq(_, other) {
  87782. var t1;
  87783. if (other == null)
  87784. return false;
  87785. if (!(other instanceof A.SassMap0 && B.C_MapEquality.equals$2(0, other._map0$_contents, this._map0$_contents))) {
  87786. t1 = this._map0$_contents;
  87787. t1 = t1.get$isEmpty(t1) && other instanceof A.SassList0 && other._list1$_contents.length === 0;
  87788. } else
  87789. t1 = true;
  87790. return t1;
  87791. },
  87792. get$hashCode(_) {
  87793. var t1 = this._map0$_contents;
  87794. return t1.get$isEmpty(t1) ? B.C_ListEquality0.hash$1(B.List_empty19) : B.C_MapEquality.hash$1(t1);
  87795. }
  87796. };
  87797. A.SassMap_asList_closure0.prototype = {
  87798. call$2(key, value) {
  87799. this.result.push(A.SassList$0(A._setArrayType([key, value], type$.JSArray_Value_2), B.ListSeparator_EVt0, false));
  87800. },
  87801. $signature: 55
  87802. };
  87803. A._ceil_closure0.prototype = {
  87804. call$1(value) {
  87805. return B.JSNumber_methods.ceil$0(value);
  87806. },
  87807. $signature: 29
  87808. };
  87809. A._clamp_closure0.prototype = {
  87810. call$1($arguments) {
  87811. var t1 = J.getInterceptor$asx($arguments),
  87812. min = t1.$index($arguments, 0).assertNumber$1("min"),
  87813. number = t1.$index($arguments, 1).assertNumber$1("number"),
  87814. max = t1.$index($arguments, 2).assertNumber$1("max");
  87815. number.convertValueToMatch$3(min, "number", "min");
  87816. max.convertValueToMatch$3(min, "max", "min");
  87817. if (min.greaterThanOrEquals$1(max).value)
  87818. return min;
  87819. if (min.greaterThanOrEquals$1(number).value)
  87820. return min;
  87821. if (number.greaterThanOrEquals$1(max).value)
  87822. return max;
  87823. return number;
  87824. },
  87825. $signature: 10
  87826. };
  87827. A._floor_closure0.prototype = {
  87828. call$1(value) {
  87829. return B.JSNumber_methods.floor$0(value);
  87830. },
  87831. $signature: 29
  87832. };
  87833. A._max_closure0.prototype = {
  87834. call$1($arguments) {
  87835. var t1, t2, max, _i, number;
  87836. for (t1 = J.$index$asx($arguments, 0).get$asList(), t2 = t1.length, max = null, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
  87837. number = t1[_i].assertNumber$0();
  87838. if (max == null || max.lessThan$1(number).value)
  87839. max = number;
  87840. }
  87841. if (max != null)
  87842. return max;
  87843. throw A.wrapException(A.SassScriptException$0("At least one argument must be passed.", null));
  87844. },
  87845. $signature: 10
  87846. };
  87847. A._min_closure0.prototype = {
  87848. call$1($arguments) {
  87849. var t1, t2, min, _i, number;
  87850. for (t1 = J.$index$asx($arguments, 0).get$asList(), t2 = t1.length, min = null, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
  87851. number = t1[_i].assertNumber$0();
  87852. if (min == null || min.greaterThan$1(number).value)
  87853. min = number;
  87854. }
  87855. if (min != null)
  87856. return min;
  87857. throw A.wrapException(A.SassScriptException$0("At least one argument must be passed.", null));
  87858. },
  87859. $signature: 10
  87860. };
  87861. A._round_closure0.prototype = {
  87862. call$1(number) {
  87863. return B.JSNumber_methods.round$0(number);
  87864. },
  87865. $signature: 29
  87866. };
  87867. A._abs_closure0.prototype = {
  87868. call$1(value) {
  87869. return Math.abs(value);
  87870. },
  87871. $signature: 29
  87872. };
  87873. A._hypot_closure0.prototype = {
  87874. call$1($arguments) {
  87875. var subtotal, i, i0, t3, t4,
  87876. t1 = J.$index$asx($arguments, 0).get$asList(),
  87877. t2 = A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,SassNumber0>"),
  87878. numbers = A.List_List$of(new A.MappedListIterable(t1, new A._hypot__closure0(), t2), true, t2._eval$1("ListIterable.E"));
  87879. t1 = numbers.length;
  87880. if (t1 === 0)
  87881. throw A.wrapException(A.SassScriptException$0("At least one argument must be passed.", null));
  87882. for (subtotal = 0, i = 0; i < t1; i = i0) {
  87883. i0 = i + 1;
  87884. subtotal += Math.pow(numbers[i].convertValueToMatch$3(numbers[0], "numbers[" + i0 + "]", "numbers[1]"), 2);
  87885. }
  87886. t1 = Math.sqrt(subtotal);
  87887. t2 = numbers[0];
  87888. t3 = J.getInterceptor$x(t2);
  87889. t4 = t3.get$numeratorUnits(t2);
  87890. return A.SassNumber_SassNumber$withUnits0(t1, t3.get$denominatorUnits(t2), t4);
  87891. },
  87892. $signature: 10
  87893. };
  87894. A._hypot__closure0.prototype = {
  87895. call$1(argument) {
  87896. return argument.assertNumber$0();
  87897. },
  87898. $signature: 471
  87899. };
  87900. A._log_closure0.prototype = {
  87901. call$1($arguments) {
  87902. var base,
  87903. _s18_ = " to have no units.",
  87904. _null = null,
  87905. t1 = J.getInterceptor$asx($arguments),
  87906. number = t1.$index($arguments, 0).assertNumber$1("number");
  87907. if (number.get$hasUnits())
  87908. throw A.wrapException(A.SassScriptException$0("$number: Expected " + number.toString$0(0) + _s18_, _null));
  87909. else if (J.$eq$(t1.$index($arguments, 1), B.C__SassNull0))
  87910. return A.SassNumber_SassNumber0(Math.log(number._number1$_value), _null);
  87911. base = t1.$index($arguments, 1).assertNumber$1("base");
  87912. if (base.get$hasUnits())
  87913. throw A.wrapException(A.SassScriptException$0("$base: Expected " + base.toString$0(0) + _s18_, _null));
  87914. else
  87915. return A.SassNumber_SassNumber0(Math.log(number._number1$_value) / Math.log(base._number1$_value), _null);
  87916. },
  87917. $signature: 10
  87918. };
  87919. A._pow_closure0.prototype = {
  87920. call$1($arguments) {
  87921. var _s18_ = " to have no units.",
  87922. t1 = J.getInterceptor$asx($arguments),
  87923. base = t1.$index($arguments, 0).assertNumber$1("base"),
  87924. exponent = t1.$index($arguments, 1).assertNumber$1("exponent");
  87925. if (base.get$hasUnits())
  87926. throw A.wrapException(A.SassScriptException$0("$base: Expected " + base.toString$0(0) + _s18_, null));
  87927. else if (exponent.get$hasUnits())
  87928. throw A.wrapException(A.SassScriptException$0("$exponent: Expected " + exponent.toString$0(0) + _s18_, null));
  87929. else
  87930. return A.SassNumber_SassNumber0(Math.pow(base._number1$_value, exponent._number1$_value), null);
  87931. },
  87932. $signature: 10
  87933. };
  87934. A._sqrt_closure0.prototype = {
  87935. call$1($arguments) {
  87936. var number = J.$index$asx($arguments, 0).assertNumber$1("number");
  87937. if (number.get$hasUnits())
  87938. throw A.wrapException(A.SassScriptException$0("$number: Expected " + number.toString$0(0) + " to have no units.", null));
  87939. else
  87940. return A.SassNumber_SassNumber0(Math.sqrt(number._number1$_value), null);
  87941. },
  87942. $signature: 10
  87943. };
  87944. A._acos_closure0.prototype = {
  87945. call$1($arguments) {
  87946. var number = J.$index$asx($arguments, 0).assertNumber$1("number");
  87947. if (number.get$hasUnits())
  87948. throw A.wrapException(A.SassScriptException$0("$number: Expected " + number.toString$0(0) + " to have no units.", null));
  87949. else
  87950. return A.SassNumber_SassNumber$withUnits0(Math.acos(number._number1$_value) * 180 / 3.141592653589793, null, A._setArrayType(["deg"], type$.JSArray_String));
  87951. },
  87952. $signature: 10
  87953. };
  87954. A._asin_closure0.prototype = {
  87955. call$1($arguments) {
  87956. var number = J.$index$asx($arguments, 0).assertNumber$1("number");
  87957. if (number.get$hasUnits())
  87958. throw A.wrapException(A.SassScriptException$0("$number: Expected " + number.toString$0(0) + " to have no units.", null));
  87959. else
  87960. return A.SassNumber_SassNumber$withUnits0(Math.asin(number._number1$_value) * 180 / 3.141592653589793, null, A._setArrayType(["deg"], type$.JSArray_String));
  87961. },
  87962. $signature: 10
  87963. };
  87964. A._atan_closure0.prototype = {
  87965. call$1($arguments) {
  87966. var number = J.$index$asx($arguments, 0).assertNumber$1("number");
  87967. if (number.get$hasUnits())
  87968. throw A.wrapException(A.SassScriptException$0("$number: Expected " + number.toString$0(0) + " to have no units.", null));
  87969. else
  87970. return A.SassNumber_SassNumber$withUnits0(Math.atan(number._number1$_value) * 180 / 3.141592653589793, null, A._setArrayType(["deg"], type$.JSArray_String));
  87971. },
  87972. $signature: 10
  87973. };
  87974. A._atan2_closure0.prototype = {
  87975. call$1($arguments) {
  87976. var t1 = J.getInterceptor$asx($arguments),
  87977. y = t1.$index($arguments, 0).assertNumber$1("y");
  87978. return A.SassNumber_SassNumber$withUnits0(Math.atan2(y._number1$_value, t1.$index($arguments, 1).assertNumber$1("x").convertValueToMatch$3(y, "x", "y")) * 180 / 3.141592653589793, null, A._setArrayType(["deg"], type$.JSArray_String));
  87979. },
  87980. $signature: 10
  87981. };
  87982. A._cos_closure0.prototype = {
  87983. call$1($arguments) {
  87984. return A.SassNumber_SassNumber0(Math.cos(J.$index$asx($arguments, 0).assertNumber$1("number").coerceValueToUnit$2("rad", "number")), null);
  87985. },
  87986. $signature: 10
  87987. };
  87988. A._sin_closure0.prototype = {
  87989. call$1($arguments) {
  87990. return A.SassNumber_SassNumber0(Math.sin(J.$index$asx($arguments, 0).assertNumber$1("number").coerceValueToUnit$2("rad", "number")), null);
  87991. },
  87992. $signature: 10
  87993. };
  87994. A._tan_closure0.prototype = {
  87995. call$1($arguments) {
  87996. return A.SassNumber_SassNumber0(Math.tan(J.$index$asx($arguments, 0).assertNumber$1("number").coerceValueToUnit$2("rad", "number")), null);
  87997. },
  87998. $signature: 10
  87999. };
  88000. A._compatible_closure0.prototype = {
  88001. call$1($arguments) {
  88002. var t1 = J.getInterceptor$asx($arguments);
  88003. return t1.$index($arguments, 0).assertNumber$1("number1").isComparableTo$1(t1.$index($arguments, 1).assertNumber$1("number2")) ? B.SassBoolean_true0 : B.SassBoolean_false0;
  88004. },
  88005. $signature: 20
  88006. };
  88007. A._isUnitless_closure0.prototype = {
  88008. call$1($arguments) {
  88009. return !J.$index$asx($arguments, 0).assertNumber$1("number").get$hasUnits() ? B.SassBoolean_true0 : B.SassBoolean_false0;
  88010. },
  88011. $signature: 20
  88012. };
  88013. A._unit_closure0.prototype = {
  88014. call$1($arguments) {
  88015. return new A.SassString0(J.$index$asx($arguments, 0).assertNumber$1("number").get$unitString(), true);
  88016. },
  88017. $signature: 18
  88018. };
  88019. A._percentage_closure0.prototype = {
  88020. call$1($arguments) {
  88021. var number = J.$index$asx($arguments, 0).assertNumber$1("number");
  88022. number.assertNoUnits$1("number");
  88023. return A.SassNumber_SassNumber0(number._number1$_value * 100, "%");
  88024. },
  88025. $signature: 10
  88026. };
  88027. A._randomFunction_closure0.prototype = {
  88028. call$1($arguments) {
  88029. var limit, t2, t3, t4, limitScalar,
  88030. t1 = J.getInterceptor$asx($arguments);
  88031. if (J.$eq$(t1.$index($arguments, 0), B.C__SassNull0))
  88032. return A.SassNumber_SassNumber0($.$get$_random2().nextDouble$0(), null);
  88033. limit = t1.$index($arguments, 0).assertNumber$1("limit");
  88034. if (limit.get$hasUnits()) {
  88035. t1 = limit.toString$0(0);
  88036. t2 = limit.get$unitString();
  88037. t3 = limit.get$unitString();
  88038. t4 = limit.get$unitString();
  88039. A.EvaluationContext_current0().warn$2$deprecation(0, string$.math_r + t1 + string$.x29x20in_a + t2 + ")) * 1" + t3 + string$.x0a_To_p + t4 + string$.x29x29__Mo, true);
  88040. }
  88041. limitScalar = limit.assertInt$1("limit");
  88042. if (limitScalar < 1)
  88043. throw A.wrapException(A.SassScriptException$0("$limit: Must be greater than 0, was " + limit.toString$0(0) + ".", null));
  88044. return A.SassNumber_SassNumber0($.$get$_random2().nextInt$1(limitScalar) + 1, null);
  88045. },
  88046. $signature: 10
  88047. };
  88048. A._div_closure0.prototype = {
  88049. call$1($arguments) {
  88050. var t1 = J.getInterceptor$asx($arguments),
  88051. number1 = t1.$index($arguments, 0),
  88052. number2 = t1.$index($arguments, 1);
  88053. if (!(number1 instanceof A.SassNumber0) || !(number2 instanceof A.SassNumber0))
  88054. A.EvaluationContext_current0().warn$2$deprecation(0, string$.math_d, false);
  88055. return number1.dividedBy$1(number2);
  88056. },
  88057. $signature: 3
  88058. };
  88059. A._numberFunction_closure0.prototype = {
  88060. call$1($arguments) {
  88061. var number = J.$index$asx($arguments, 0).assertNumber$1("number"),
  88062. t1 = this.transform.call$1(number._number1$_value),
  88063. t2 = number.get$numeratorUnits(number);
  88064. return A.SassNumber_SassNumber$withUnits0(t1, number.get$denominatorUnits(number), t2);
  88065. },
  88066. $signature: 10
  88067. };
  88068. A.CssMediaQuery0.prototype = {
  88069. merge$1(other) {
  88070. var t1, ourModifier, t2, t3, ourType, t4, theirModifier, t5, t6, theirType, t7, t8, negativeConditions, conditions, type, modifier, fewerConditions, fewerConditions0, moreConditions, _this = this, _null = null, _s3_ = "all";
  88071. if (!_this.conjunction || !other.conjunction)
  88072. return B._SingletonCssMediaQueryMergeResult_unrepresentable0;
  88073. t1 = _this.modifier;
  88074. ourModifier = t1 == null ? _null : t1.toLowerCase();
  88075. t2 = _this.type;
  88076. t3 = t2 == null;
  88077. ourType = t3 ? _null : t2.toLowerCase();
  88078. t4 = other.modifier;
  88079. theirModifier = t4 == null ? _null : t4.toLowerCase();
  88080. t5 = other.type;
  88081. t6 = t5 == null;
  88082. theirType = t6 ? _null : t5.toLowerCase();
  88083. t7 = ourType == null;
  88084. if (t7 && theirType == null) {
  88085. t1 = A.List_List$of(_this.conditions, true, type$.String);
  88086. B.JSArray_methods.addAll$1(t1, other.conditions);
  88087. return new A.MediaQuerySuccessfulMergeResult0(A.CssMediaQuery$condition0(t1, true));
  88088. }
  88089. t8 = ourModifier === "not";
  88090. if (t8 !== (theirModifier === "not")) {
  88091. if (ourType == theirType) {
  88092. negativeConditions = t8 ? _this.conditions : other.conditions;
  88093. if (B.JSArray_methods.every$1(negativeConditions, B.JSArray_methods.get$contains(t8 ? other.conditions : _this.conditions)))
  88094. return B._SingletonCssMediaQueryMergeResult_empty0;
  88095. else
  88096. return B._SingletonCssMediaQueryMergeResult_unrepresentable0;
  88097. } else if (t3 || A.equalsIgnoreCase0(t2, _s3_) || t6 || A.equalsIgnoreCase0(t5, _s3_))
  88098. return B._SingletonCssMediaQueryMergeResult_unrepresentable0;
  88099. if (t8) {
  88100. conditions = other.conditions;
  88101. type = theirType;
  88102. modifier = theirModifier;
  88103. } else {
  88104. conditions = _this.conditions;
  88105. type = ourType;
  88106. modifier = ourModifier;
  88107. }
  88108. } else if (t8) {
  88109. if (ourType != theirType)
  88110. return B._SingletonCssMediaQueryMergeResult_unrepresentable0;
  88111. fewerConditions = _this.conditions;
  88112. fewerConditions0 = other.conditions;
  88113. t3 = fewerConditions.length > fewerConditions0.length;
  88114. moreConditions = t3 ? fewerConditions : fewerConditions0;
  88115. if (t3)
  88116. fewerConditions = fewerConditions0;
  88117. if (!B.JSArray_methods.every$1(fewerConditions, B.JSArray_methods.get$contains(moreConditions)))
  88118. return B._SingletonCssMediaQueryMergeResult_unrepresentable0;
  88119. conditions = moreConditions;
  88120. type = ourType;
  88121. modifier = ourModifier;
  88122. } else if (t3 || A.equalsIgnoreCase0(t2, _s3_)) {
  88123. type = (t6 || A.equalsIgnoreCase0(t5, _s3_)) && t7 ? _null : theirType;
  88124. t3 = A.List_List$of(_this.conditions, true, type$.String);
  88125. B.JSArray_methods.addAll$1(t3, other.conditions);
  88126. conditions = t3;
  88127. modifier = theirModifier;
  88128. } else {
  88129. if (t6 || A.equalsIgnoreCase0(t5, _s3_)) {
  88130. t3 = A.List_List$of(_this.conditions, true, type$.String);
  88131. B.JSArray_methods.addAll$1(t3, other.conditions);
  88132. conditions = t3;
  88133. modifier = ourModifier;
  88134. } else {
  88135. if (ourType != theirType)
  88136. return B._SingletonCssMediaQueryMergeResult_empty0;
  88137. else {
  88138. modifier = ourModifier == null ? theirModifier : ourModifier;
  88139. t3 = A.List_List$of(_this.conditions, true, type$.String);
  88140. B.JSArray_methods.addAll$1(t3, other.conditions);
  88141. }
  88142. conditions = t3;
  88143. }
  88144. type = ourType;
  88145. }
  88146. t2 = type == ourType ? t2 : t5;
  88147. return new A.MediaQuerySuccessfulMergeResult0(A.CssMediaQuery$type0(t2, conditions, modifier == ourModifier ? t1 : t4));
  88148. },
  88149. $eq(_, other) {
  88150. if (other == null)
  88151. return false;
  88152. return other instanceof A.CssMediaQuery0 && other.modifier == this.modifier && other.type == this.type && B.C_ListEquality.equals$2(0, other.conditions, this.conditions);
  88153. },
  88154. get$hashCode(_) {
  88155. return J.get$hashCode$(this.modifier) ^ J.get$hashCode$(this.type) ^ B.C_ListEquality0.hash$1(this.conditions);
  88156. },
  88157. toString$0(_) {
  88158. var t2, _this = this,
  88159. t1 = _this.modifier;
  88160. t1 = t1 != null ? "" + (t1 + " ") : "";
  88161. t2 = _this.type;
  88162. if (t2 != null) {
  88163. t1 += t2;
  88164. if (_this.conditions.length !== 0)
  88165. t1 += " and ";
  88166. }
  88167. t2 = _this.conjunction ? " and " : " or ";
  88168. t2 = t1 + B.JSArray_methods.join$1(_this.conditions, t2);
  88169. return t2.charCodeAt(0) == 0 ? t2 : t2;
  88170. }
  88171. };
  88172. A._SingletonCssMediaQueryMergeResult0.prototype = {
  88173. toString$0(_) {
  88174. return this._media_query0$_name;
  88175. }
  88176. };
  88177. A.MediaQuerySuccessfulMergeResult0.prototype = {
  88178. toString$0(_) {
  88179. return this.query.toString$0(0);
  88180. }
  88181. };
  88182. A.MediaQueryParser0.prototype = {
  88183. parse$0() {
  88184. return this.wrapSpanFormatException$1(new A.MediaQueryParser_parse_closure0(this));
  88185. },
  88186. _media_query1$_mediaQuery$0() {
  88187. var conditions, conjunction, identifier1, identifier2, type, modifier, _this = this, _s3_ = "and", _null = null;
  88188. if (_this.scanner.peekChar$0() === 40) {
  88189. conditions = A._setArrayType([_this._media_query1$_mediaInParens$0()], type$.JSArray_String);
  88190. _this.whitespace$0();
  88191. if (_this.scanIdentifier$1(_s3_)) {
  88192. _this.expectWhitespace$0();
  88193. B.JSArray_methods.addAll$1(conditions, _this._media_query1$_mediaLogicSequence$1(_s3_));
  88194. conjunction = true;
  88195. } else if (_this.scanIdentifier$1("or")) {
  88196. _this.expectWhitespace$0();
  88197. B.JSArray_methods.addAll$1(conditions, _this._media_query1$_mediaLogicSequence$1("or"));
  88198. conjunction = false;
  88199. } else
  88200. conjunction = true;
  88201. return A.CssMediaQuery$condition0(conditions, conjunction);
  88202. }
  88203. identifier1 = _this.identifier$0();
  88204. if (A.equalsIgnoreCase0(identifier1, "not")) {
  88205. _this.expectWhitespace$0();
  88206. if (!_this.lookingAtIdentifier$0())
  88207. return A.CssMediaQuery$condition0(A._setArrayType(["(not " + _this._media_query1$_mediaInParens$0() + ")"], type$.JSArray_String), _null);
  88208. }
  88209. _this.whitespace$0();
  88210. if (!_this.lookingAtIdentifier$0())
  88211. return A.CssMediaQuery$type0(identifier1, _null, _null);
  88212. identifier2 = _this.identifier$0();
  88213. if (A.equalsIgnoreCase0(identifier2, _s3_)) {
  88214. _this.expectWhitespace$0();
  88215. type = identifier1;
  88216. modifier = _null;
  88217. } else {
  88218. _this.whitespace$0();
  88219. if (_this.scanIdentifier$1(_s3_))
  88220. _this.expectWhitespace$0();
  88221. else
  88222. return A.CssMediaQuery$type0(identifier2, _null, identifier1);
  88223. type = identifier2;
  88224. modifier = identifier1;
  88225. }
  88226. if (_this.scanIdentifier$1("not")) {
  88227. _this.expectWhitespace$0();
  88228. return A.CssMediaQuery$type0(type, A._setArrayType(["(not " + _this._media_query1$_mediaInParens$0() + ")"], type$.JSArray_String), modifier);
  88229. }
  88230. return A.CssMediaQuery$type0(type, _this._media_query1$_mediaLogicSequence$1(_s3_), modifier);
  88231. },
  88232. _media_query1$_mediaLogicSequence$1(operator) {
  88233. var t1, t2, _this = this,
  88234. result = A._setArrayType([], type$.JSArray_String);
  88235. for (t1 = _this.scanner; true;) {
  88236. t1.expectChar$2$name(40, "media condition in parentheses");
  88237. t2 = _this.declarationValue$0();
  88238. t1.expectChar$1(41);
  88239. result.push("(" + t2 + ")");
  88240. _this.whitespace$0();
  88241. if (!_this.scanIdentifier$1(operator))
  88242. return result;
  88243. _this.expectWhitespace$0();
  88244. }
  88245. },
  88246. _media_query1$_mediaInParens$0() {
  88247. var t2,
  88248. t1 = this.scanner;
  88249. t1.expectChar$2$name(40, "media condition in parentheses");
  88250. t2 = this.declarationValue$0();
  88251. t1.expectChar$1(41);
  88252. return "(" + t2 + ")";
  88253. }
  88254. };
  88255. A.MediaQueryParser_parse_closure0.prototype = {
  88256. call$0() {
  88257. var queries = A._setArrayType([], type$.JSArray_CssMediaQuery_2),
  88258. t1 = this.$this,
  88259. t2 = t1.scanner;
  88260. do {
  88261. t1.whitespace$0();
  88262. queries.push(t1._media_query1$_mediaQuery$0());
  88263. t1.whitespace$0();
  88264. } while (t2.scanChar$1(44));
  88265. t2.expectDone$0();
  88266. return queries;
  88267. },
  88268. $signature: 125
  88269. };
  88270. A.ModifiableCssMediaRule0.prototype = {
  88271. accept$1$1(visitor) {
  88272. return visitor.visitCssMediaRule$1(this);
  88273. },
  88274. accept$1(visitor) {
  88275. return this.accept$1$1(visitor, type$.dynamic);
  88276. },
  88277. copyWithoutChildren$0() {
  88278. return A.ModifiableCssMediaRule$0(this.queries, this.span);
  88279. },
  88280. $isCssMediaRule0: 1,
  88281. get$span(receiver) {
  88282. return this.span;
  88283. }
  88284. };
  88285. A.MediaRule0.prototype = {
  88286. accept$1$1(visitor) {
  88287. return visitor.visitMediaRule$1(this);
  88288. },
  88289. accept$1(visitor) {
  88290. return this.accept$1$1(visitor, type$.dynamic);
  88291. },
  88292. toString$0(_) {
  88293. var t1 = this.children;
  88294. return "@media " + this.query.toString$0(0) + " {" + (t1 && B.JSArray_methods).join$1(t1, " ") + "}";
  88295. },
  88296. get$span(receiver) {
  88297. return this.span;
  88298. }
  88299. };
  88300. A.MergedExtension0.prototype = {
  88301. unmerge$0() {
  88302. var $async$self = this;
  88303. return A._makeSyncStarIterable(function() {
  88304. var $async$goto = 0, $async$handler = 1, $async$currentError, right, left;
  88305. return function $async$unmerge$0($async$errorCode, $async$result) {
  88306. if ($async$errorCode === 1) {
  88307. $async$currentError = $async$result;
  88308. $async$goto = $async$handler;
  88309. }
  88310. while (true)
  88311. switch ($async$goto) {
  88312. case 0:
  88313. // Function start
  88314. left = $async$self.left;
  88315. $async$goto = left instanceof A.MergedExtension0 ? 2 : 4;
  88316. break;
  88317. case 2:
  88318. // then
  88319. $async$goto = 5;
  88320. return A._IterationMarker_yieldStar(left.unmerge$0());
  88321. case 5:
  88322. // after yield
  88323. // goto join
  88324. $async$goto = 3;
  88325. break;
  88326. case 4:
  88327. // else
  88328. $async$goto = 6;
  88329. return left;
  88330. case 6:
  88331. // after yield
  88332. case 3:
  88333. // join
  88334. right = $async$self.right;
  88335. $async$goto = right instanceof A.MergedExtension0 ? 7 : 9;
  88336. break;
  88337. case 7:
  88338. // then
  88339. $async$goto = 10;
  88340. return A._IterationMarker_yieldStar(right.unmerge$0());
  88341. case 10:
  88342. // after yield
  88343. // goto join
  88344. $async$goto = 8;
  88345. break;
  88346. case 9:
  88347. // else
  88348. $async$goto = 11;
  88349. return right;
  88350. case 11:
  88351. // after yield
  88352. case 8:
  88353. // join
  88354. // implicit return
  88355. return A._IterationMarker_endOfIteration();
  88356. case 1:
  88357. // rethrow
  88358. return A._IterationMarker_uncaughtError($async$currentError);
  88359. }
  88360. };
  88361. }, type$.Extension_2);
  88362. }
  88363. };
  88364. A.MergedMapView0.prototype = {
  88365. get$keys(_) {
  88366. var t1 = this._merged_map_view$_mapsByKey;
  88367. return new A.LinkedHashMapKeyIterable(t1, A._instanceType(t1)._eval$1("LinkedHashMapKeyIterable<1>"));
  88368. },
  88369. get$length(_) {
  88370. return this._merged_map_view$_mapsByKey.__js_helper$_length;
  88371. },
  88372. get$isEmpty(_) {
  88373. return this._merged_map_view$_mapsByKey.__js_helper$_length === 0;
  88374. },
  88375. get$isNotEmpty(_) {
  88376. return this._merged_map_view$_mapsByKey.__js_helper$_length !== 0;
  88377. },
  88378. MergedMapView$10(maps, $K, $V) {
  88379. var t1, t2, t3, _i, map, t4, t5, t6;
  88380. for (t1 = maps.length, t2 = this._merged_map_view$_mapsByKey, t3 = $K._eval$1("@<0>")._bind$1($V)._eval$1("MergedMapView0<1,2>"), _i = 0; _i < maps.length; maps.length === t1 || (0, A.throwConcurrentModificationError)(maps), ++_i) {
  88381. map = maps[_i];
  88382. if (t3._is(map))
  88383. for (t4 = map._merged_map_view$_mapsByKey, t4 = t4.get$values(t4), t4 = new A.MappedIterator(J.get$iterator$ax(t4.__internal$_iterable), t4._f), t5 = A._instanceType(t4)._rest[1]; t4.moveNext$0();) {
  88384. t6 = t4.__internal$_current;
  88385. if (t6 == null)
  88386. t6 = t5._as(t6);
  88387. A.setAll0(t2, t6.get$keys(t6), t6);
  88388. }
  88389. else
  88390. A.setAll0(t2, map.get$keys(map), map);
  88391. }
  88392. },
  88393. $index(_, key) {
  88394. var t1 = this._merged_map_view$_mapsByKey.$index(0, this.$ti._precomputed1._as(key));
  88395. return t1 == null ? null : t1.$index(0, key);
  88396. },
  88397. $indexSet(_, key, value) {
  88398. var child = this._merged_map_view$_mapsByKey.$index(0, key);
  88399. if (child == null)
  88400. throw A.wrapException(A.UnsupportedError$(string$.New_en));
  88401. child.$indexSet(0, key, value);
  88402. },
  88403. remove$1(_, key) {
  88404. throw A.wrapException(A.UnsupportedError$(string$.Entrie));
  88405. },
  88406. containsKey$1(key) {
  88407. return this._merged_map_view$_mapsByKey.containsKey$1(key);
  88408. }
  88409. };
  88410. A.global_closure57.prototype = {
  88411. call$1($arguments) {
  88412. return $._features0.contains$1(0, J.$index$asx($arguments, 0).assertString$1("feature")._string0$_text) ? B.SassBoolean_true0 : B.SassBoolean_false0;
  88413. },
  88414. $signature: 20
  88415. };
  88416. A.global_closure58.prototype = {
  88417. call$1($arguments) {
  88418. return new A.SassString0(A.serializeValue0(J.get$first$ax($arguments), true, true), false);
  88419. },
  88420. $signature: 18
  88421. };
  88422. A.global_closure59.prototype = {
  88423. call$1($arguments) {
  88424. var value = J.$index$asx($arguments, 0);
  88425. if (value instanceof A.SassArgumentList0)
  88426. return new A.SassString0("arglist", false);
  88427. if (value instanceof A.SassBoolean0)
  88428. return new A.SassString0("bool", false);
  88429. if (value instanceof A.SassColor0)
  88430. return new A.SassString0("color", false);
  88431. if (value instanceof A.SassList0)
  88432. return new A.SassString0("list", false);
  88433. if (value instanceof A.SassMap0)
  88434. return new A.SassString0("map", false);
  88435. if (value.$eq(0, B.C__SassNull0))
  88436. return new A.SassString0("null", false);
  88437. if (value instanceof A.SassNumber0)
  88438. return new A.SassString0("number", false);
  88439. if (value instanceof A.SassFunction0)
  88440. return new A.SassString0("function", false);
  88441. if (value instanceof A.SassCalculation0)
  88442. return new A.SassString0("calculation", false);
  88443. return new A.SassString0("string", false);
  88444. },
  88445. $signature: 18
  88446. };
  88447. A.global_closure60.prototype = {
  88448. call$1($arguments) {
  88449. var t1, t2, t3, t4,
  88450. argumentList = J.$index$asx($arguments, 0);
  88451. if (argumentList instanceof A.SassArgumentList0) {
  88452. t1 = type$.Value_2;
  88453. t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  88454. for (argumentList._argument_list$_wereKeywordsAccessed = true, t3 = argumentList._argument_list$_keywords, t3 = t3.get$entries(t3), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  88455. t4 = t3.get$current(t3);
  88456. t2.$indexSet(0, new A.SassString0(t4.key, false), t4.value);
  88457. }
  88458. return new A.SassMap0(A.ConstantMap_ConstantMap$from(t2, t1, t1));
  88459. } else
  88460. throw A.wrapException("$args: " + argumentList.toString$0(0) + " is not an argument list.");
  88461. },
  88462. $signature: 37
  88463. };
  88464. A.local_closure1.prototype = {
  88465. call$1($arguments) {
  88466. return new A.SassString0(J.$index$asx($arguments, 0).assertCalculation$1("calc").name, true);
  88467. },
  88468. $signature: 18
  88469. };
  88470. A.local_closure2.prototype = {
  88471. call$1($arguments) {
  88472. var t1 = J.$index$asx($arguments, 0).assertCalculation$1("calc").$arguments;
  88473. return A.SassList$0(new A.MappedListIterable(t1, new A.local__closure0(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value0>")), B.ListSeparator_rXA0, false);
  88474. },
  88475. $signature: 22
  88476. };
  88477. A.local__closure0.prototype = {
  88478. call$1(argument) {
  88479. if (argument instanceof A.Value0)
  88480. return argument;
  88481. return new A.SassString0(J.toString$0$(argument), false);
  88482. },
  88483. $signature: 472
  88484. };
  88485. A.MixinRule0.prototype = {
  88486. get$hasContent() {
  88487. var result, _this = this,
  88488. value = _this._mixin_rule$__MixinRule_hasContent_FI;
  88489. if (value === $) {
  88490. result = J.$eq$(B.C__HasContentVisitor0.visitChildren$1(_this.children), true);
  88491. _this._mixin_rule$__MixinRule_hasContent_FI !== $ && A.throwUnnamedLateFieldADI();
  88492. _this._mixin_rule$__MixinRule_hasContent_FI = result;
  88493. value = result;
  88494. }
  88495. return value;
  88496. },
  88497. accept$1$1(visitor) {
  88498. return visitor.visitMixinRule$1(this);
  88499. },
  88500. accept$1(visitor) {
  88501. return this.accept$1$1(visitor, type$.dynamic);
  88502. },
  88503. toString$0(_) {
  88504. var t1 = "@mixin " + this.name,
  88505. t2 = this.$arguments;
  88506. if (!(t2.$arguments.length === 0 && t2.restArgument == null))
  88507. t1 += "(" + t2.toString$0(0) + ")";
  88508. t2 = this.children;
  88509. t2 = t1 + (" {" + (t2 && B.JSArray_methods).join$1(t2, " ") + "}");
  88510. return t2.charCodeAt(0) == 0 ? t2 : t2;
  88511. }
  88512. };
  88513. A._HasContentVisitor0.prototype = {
  88514. visitContentRule$1(_) {
  88515. return true;
  88516. }
  88517. };
  88518. A.__HasContentVisitor_Object_StatementSearchVisitor0.prototype = {};
  88519. A.ExtendMode0.prototype = {
  88520. toString$0(_) {
  88521. return this.name;
  88522. }
  88523. };
  88524. A.MultiSpan0.prototype = {
  88525. get$start(_) {
  88526. var t1 = this._multi_span0$_primary;
  88527. return t1.get$start(t1);
  88528. },
  88529. get$end(_) {
  88530. var t1 = this._multi_span0$_primary;
  88531. return t1.get$end(t1);
  88532. },
  88533. get$text() {
  88534. return this._multi_span0$_primary.get$text();
  88535. },
  88536. get$context(_) {
  88537. var t1 = this._multi_span0$_primary;
  88538. return t1.get$context(t1);
  88539. },
  88540. get$file(_) {
  88541. var t1 = this._multi_span0$_primary;
  88542. return t1.get$file(t1);
  88543. },
  88544. get$length(_) {
  88545. var t1 = this._multi_span0$_primary;
  88546. return t1.get$length(t1);
  88547. },
  88548. get$sourceUrl(_) {
  88549. var t1 = this._multi_span0$_primary;
  88550. return t1.get$sourceUrl(t1);
  88551. },
  88552. compareTo$1(_, other) {
  88553. return this._multi_span0$_primary.compareTo$1(0, other);
  88554. },
  88555. toString$0(_) {
  88556. return this._multi_span0$_primary.toString$0(0);
  88557. },
  88558. expand$1(_, other) {
  88559. return new A.MultiSpan0(this._multi_span0$_primary.expand$1(0, other), this.primaryLabel, this.secondarySpans);
  88560. },
  88561. highlight$1$color(color) {
  88562. var t1 = color === true || false;
  88563. return A.Highlighter$multiple(this._multi_span0$_primary, this.primaryLabel, this.secondarySpans, t1, null, null).highlight$0();
  88564. },
  88565. message$2$color(_, message, color) {
  88566. var t1 = J.$eq$(color, true) || typeof color == "string",
  88567. t2 = typeof color == "string" ? color : null;
  88568. return A.SourceSpanExtension_messageMultiple(this._multi_span0$_primary, message, this.primaryLabel, this.secondarySpans, t1, t2);
  88569. },
  88570. message$1($receiver, message) {
  88571. return this.message$2$color($receiver, message, null);
  88572. },
  88573. $isComparable: 1,
  88574. $isFileSpan: 1,
  88575. $isSourceSpan: 1,
  88576. $isSourceSpanWithContext: 1
  88577. };
  88578. A.SupportsNegation0.prototype = {
  88579. toString$0(_) {
  88580. var t1 = this.condition;
  88581. if (t1 instanceof A.SupportsNegation0 || t1 instanceof A.SupportsOperation0)
  88582. return "not (" + t1.toString$0(0) + ")";
  88583. else
  88584. return "not " + t1.toString$0(0);
  88585. },
  88586. $isAstNode0: 1,
  88587. get$span(receiver) {
  88588. return this.span;
  88589. }
  88590. };
  88591. A.NoOpImporter.prototype = {
  88592. canonicalize$1(_, url) {
  88593. return null;
  88594. },
  88595. load$1(_, url) {
  88596. return null;
  88597. },
  88598. toString$0(_) {
  88599. return "(unknown)";
  88600. }
  88601. };
  88602. A.NoSourceMapBuffer0.prototype = {
  88603. get$length(_) {
  88604. return this._no_source_map_buffer0$_buffer._contents.length;
  88605. },
  88606. forSpan$1$2(span, callback) {
  88607. return callback.call$0();
  88608. },
  88609. forSpan$2(span, callback) {
  88610. return this.forSpan$1$2(span, callback, type$.dynamic);
  88611. },
  88612. write$1(_, object) {
  88613. this._no_source_map_buffer0$_buffer._contents += A.S(object);
  88614. return null;
  88615. },
  88616. writeCharCode$1(charCode) {
  88617. this._no_source_map_buffer0$_buffer._contents += A.Primitives_stringFromCharCode(charCode);
  88618. return null;
  88619. },
  88620. toString$0(_) {
  88621. var t1 = this._no_source_map_buffer0$_buffer._contents;
  88622. return t1.charCodeAt(0) == 0 ? t1 : t1;
  88623. },
  88624. buildSourceMap$1$prefix(prefix) {
  88625. return A.throwExpression(A.UnsupportedError$(string$.NoSour));
  88626. }
  88627. };
  88628. A.AstNode0.prototype = {};
  88629. A._FakeAstNode0.prototype = {
  88630. get$span(_) {
  88631. return this._node1$_callback.call$0();
  88632. },
  88633. $isAstNode0: 1
  88634. };
  88635. A.CssNode0.prototype = {
  88636. toString$0(_) {
  88637. return A.serialize0(this, true, null, true, null, false, null, true).css;
  88638. }
  88639. };
  88640. A.CssParentNode0.prototype = {};
  88641. A._IsInvisibleVisitor1.prototype = {
  88642. visitCssAtRule$1(rule) {
  88643. return false;
  88644. },
  88645. visitCssComment$1(comment) {
  88646. return this.includeComments && B.JSString_methods._codeUnitAt$1(comment.text, 2) !== 33;
  88647. },
  88648. visitCssStyleRule$1(rule) {
  88649. var t1 = rule.selector.value;
  88650. return (this.includeBogus ? t1.accept$1(B._IsInvisibleVisitor_true0) : t1.accept$1(B._IsInvisibleVisitor_false0)) || this.super$EveryCssVisitor$visitCssStyleRule0(rule);
  88651. }
  88652. };
  88653. A.__IsInvisibleVisitor_Object_EveryCssVisitor0.prototype = {};
  88654. A.FileSystemException0.prototype = {
  88655. toString$0(_) {
  88656. var t1 = $.$get$context();
  88657. return t1.prettyUri$1(t1.toUri$1(this.path)) + ": " + this.message;
  88658. },
  88659. get$message(receiver) {
  88660. return this.message;
  88661. }
  88662. };
  88663. A.Stderr0.prototype = {
  88664. writeln$1(object) {
  88665. var t1 = object == null ? "" : object;
  88666. J.write$1$x(this._node$_stderr, t1 + "\n");
  88667. },
  88668. writeln$0() {
  88669. return this.writeln$1(null);
  88670. }
  88671. };
  88672. A._readFile_closure0.prototype = {
  88673. call$0() {
  88674. return J.readFileSync$2$x(A.fs(), this.path, this.encoding);
  88675. },
  88676. $signature: 86
  88677. };
  88678. A.fileExists_closure0.prototype = {
  88679. call$0() {
  88680. var error, systemError, exception,
  88681. t1 = this.path;
  88682. if (!J.existsSync$1$x(A.fs(), t1))
  88683. return false;
  88684. try {
  88685. t1 = J.isFile$0$x(J.statSync$1$x(A.fs(), t1));
  88686. return t1;
  88687. } catch (exception) {
  88688. error = A.unwrapException(exception);
  88689. systemError = type$.JsSystemError._as(error);
  88690. if (J.$eq$(J.get$code$x(systemError), "ENOENT"))
  88691. return false;
  88692. throw exception;
  88693. }
  88694. },
  88695. $signature: 26
  88696. };
  88697. A.dirExists_closure0.prototype = {
  88698. call$0() {
  88699. var error, systemError, exception,
  88700. t1 = this.path;
  88701. if (!J.existsSync$1$x(A.fs(), t1))
  88702. return false;
  88703. try {
  88704. t1 = J.isDirectory$0$x(J.statSync$1$x(A.fs(), t1));
  88705. return t1;
  88706. } catch (exception) {
  88707. error = A.unwrapException(exception);
  88708. systemError = type$.JsSystemError._as(error);
  88709. if (J.$eq$(J.get$code$x(systemError), "ENOENT"))
  88710. return false;
  88711. throw exception;
  88712. }
  88713. },
  88714. $signature: 26
  88715. };
  88716. A.listDir_closure0.prototype = {
  88717. call$0() {
  88718. var t1 = this.path;
  88719. if (!this.recursive)
  88720. return J.map$1$1$ax(J.readdirSync$1$x(A.fs(), t1), new A.listDir__closure1(t1), type$.String).where$1(0, new A.listDir__closure2());
  88721. else
  88722. return new A.listDir_closure_list0().call$1(t1);
  88723. },
  88724. $signature: 164
  88725. };
  88726. A.listDir__closure1.prototype = {
  88727. call$1(child) {
  88728. return A.join(this.path, A._asString(child), null);
  88729. },
  88730. $signature: 100
  88731. };
  88732. A.listDir__closure2.prototype = {
  88733. call$1(child) {
  88734. return !A.dirExists0(child);
  88735. },
  88736. $signature: 8
  88737. };
  88738. A.listDir_closure_list0.prototype = {
  88739. call$1($parent) {
  88740. return J.expand$1$1$ax(J.readdirSync$1$x(A.fs(), $parent), new A.listDir__list_closure0($parent, this), type$.String);
  88741. },
  88742. $signature: 165
  88743. };
  88744. A.listDir__list_closure0.prototype = {
  88745. call$1(child) {
  88746. var path = A.join(this.parent, A._asString(child), null);
  88747. return A.dirExists0(path) ? this.list.call$1(path) : A._setArrayType([path], type$.JSArray_String);
  88748. },
  88749. $signature: 166
  88750. };
  88751. A.ModifiableCssNode0.prototype = {
  88752. get$hasFollowingSibling() {
  88753. var t2,
  88754. t1 = this._node0$_parent;
  88755. if (t1 == null)
  88756. t1 = null;
  88757. else {
  88758. t1 = t1.children;
  88759. t2 = this._node0$_indexInParent;
  88760. t2.toString;
  88761. t1 = A.SubListIterable$(t1, t2 + 1, null, t1.$ti._eval$1("ListMixin.E")).any$1(0, new A.ModifiableCssNode_hasFollowingSibling_closure0());
  88762. }
  88763. return t1 === true;
  88764. },
  88765. get$isGroupEnd() {
  88766. return this.isGroupEnd;
  88767. }
  88768. };
  88769. A.ModifiableCssNode_hasFollowingSibling_closure0.prototype = {
  88770. call$1(sibling) {
  88771. return !sibling.accept$1(B._IsInvisibleVisitor_true_false0);
  88772. },
  88773. $signature: 124
  88774. };
  88775. A.ModifiableCssParentNode0.prototype = {
  88776. get$isChildless() {
  88777. return false;
  88778. },
  88779. addChild$1(child) {
  88780. var t1;
  88781. child._node0$_parent = this;
  88782. t1 = this._node0$_children;
  88783. child._node0$_indexInParent = t1.length;
  88784. t1.push(child);
  88785. },
  88786. $isCssParentNode0: 1,
  88787. get$children(receiver) {
  88788. return this.children;
  88789. }
  88790. };
  88791. A.main_closure0.prototype = {
  88792. call$2(_, __) {
  88793. },
  88794. $signature: 473
  88795. };
  88796. A.main_closure1.prototype = {
  88797. call$2(_, __) {
  88798. },
  88799. $signature: 474
  88800. };
  88801. A.NodeToDartLogger.prototype = {
  88802. warn$4$deprecation$span$trace(_, message, deprecation, span, trace) {
  88803. var t1 = this._node,
  88804. warn = t1 == null ? null : J.get$warn$x(t1);
  88805. if (warn == null)
  88806. this._withAscii$1(new A.NodeToDartLogger_warn_closure(this, message, span, trace, deprecation));
  88807. else {
  88808. t1 = span == null ? type$.nullable_SourceSpan._as(self.undefined) : span;
  88809. warn.call$2(message, {deprecation: deprecation, span: t1, stack: J.toString$0$(trace)});
  88810. }
  88811. },
  88812. warn$1($receiver, message) {
  88813. return this.warn$4$deprecation$span$trace($receiver, message, false, null, null);
  88814. },
  88815. warn$2$deprecation($receiver, message, deprecation) {
  88816. return this.warn$4$deprecation$span$trace($receiver, message, deprecation, null, null);
  88817. },
  88818. warn$2$span($receiver, message, span) {
  88819. return this.warn$4$deprecation$span$trace($receiver, message, false, span, null);
  88820. },
  88821. warn$3$deprecation$span($receiver, message, deprecation, span) {
  88822. return this.warn$4$deprecation$span$trace($receiver, message, deprecation, span, null);
  88823. },
  88824. warn$2$trace($receiver, message, trace) {
  88825. return this.warn$4$deprecation$span$trace($receiver, message, false, null, trace);
  88826. },
  88827. debug$2(_, message, span) {
  88828. var t1 = this._node,
  88829. debug = t1 == null ? null : J.get$debug$x(t1);
  88830. if (debug == null)
  88831. this._withAscii$1(new A.NodeToDartLogger_debug_closure(this, message, span));
  88832. else
  88833. debug.call$2(message, {span: span});
  88834. },
  88835. _withAscii$1$1(callback) {
  88836. var t1,
  88837. wasAscii = $._glyphs === B.C_AsciiGlyphSet;
  88838. $._glyphs = this._ascii ? B.C_AsciiGlyphSet : B.C_UnicodeGlyphSet;
  88839. try {
  88840. t1 = callback.call$0();
  88841. return t1;
  88842. } finally {
  88843. $._glyphs = wasAscii ? B.C_AsciiGlyphSet : B.C_UnicodeGlyphSet;
  88844. }
  88845. },
  88846. _withAscii$1(callback) {
  88847. return this._withAscii$1$1(callback, type$.dynamic);
  88848. }
  88849. };
  88850. A.NodeToDartLogger_warn_closure.prototype = {
  88851. call$0() {
  88852. var _this = this;
  88853. _this.$this._fallback.warn$4$deprecation$span$trace(0, _this.message, _this.deprecation, _this.span, _this.trace);
  88854. },
  88855. $signature: 1
  88856. };
  88857. A.NodeToDartLogger_debug_closure.prototype = {
  88858. call$0() {
  88859. return this.$this._fallback.debug$2(0, this.message, this.span);
  88860. },
  88861. $signature: 0
  88862. };
  88863. A.NullExpression0.prototype = {
  88864. accept$1$1(visitor) {
  88865. return visitor.visitNullExpression$1(this);
  88866. },
  88867. accept$1(visitor) {
  88868. return this.accept$1$1(visitor, type$.dynamic);
  88869. },
  88870. toString$0(_) {
  88871. return "null";
  88872. },
  88873. $isExpression0: 1,
  88874. $isAstNode0: 1,
  88875. get$span(receiver) {
  88876. return this.span;
  88877. }
  88878. };
  88879. A.legacyNullClass_closure.prototype = {
  88880. call$0() {
  88881. var t1 = type$.JSClass,
  88882. jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.types.Null", new A.legacyNullClass__closure()));
  88883. jsClass.NULL = B.C__SassNull0;
  88884. A.JSClassExtension_injectSuperclass(t1._as(B.C__SassNull0.constructor), jsClass);
  88885. return jsClass;
  88886. },
  88887. $signature: 25
  88888. };
  88889. A.legacyNullClass__closure.prototype = {
  88890. call$2(_, __) {
  88891. throw A.wrapException("new sass.types.Null() isn't allowed. Use sass.types.Null.NULL instead.");
  88892. },
  88893. call$1(_) {
  88894. return this.call$2(_, null);
  88895. },
  88896. "call*": "call$2",
  88897. $requiredArgCount: 1,
  88898. $defaultValues() {
  88899. return [null];
  88900. },
  88901. $signature: 158
  88902. };
  88903. A._SassNull0.prototype = {
  88904. get$isTruthy() {
  88905. return false;
  88906. },
  88907. get$isBlank() {
  88908. return true;
  88909. },
  88910. get$realNull() {
  88911. return null;
  88912. },
  88913. accept$1$1(visitor) {
  88914. if (visitor._serialize0$_inspect)
  88915. visitor._serialize0$_buffer.write$1(0, "null");
  88916. return null;
  88917. },
  88918. accept$1(visitor) {
  88919. return this.accept$1$1(visitor, type$.dynamic);
  88920. },
  88921. unaryNot$0() {
  88922. return B.SassBoolean_true0;
  88923. }
  88924. };
  88925. A.NumberExpression0.prototype = {
  88926. accept$1$1(visitor) {
  88927. return visitor.visitNumberExpression$1(this);
  88928. },
  88929. accept$1(visitor) {
  88930. return this.accept$1$1(visitor, type$.dynamic);
  88931. },
  88932. toString$0(_) {
  88933. return A.serializeValue0(A.SassNumber_SassNumber0(this.value, this.unit), true, true);
  88934. },
  88935. $isExpression0: 1,
  88936. $isAstNode0: 1,
  88937. get$span(receiver) {
  88938. return this.span;
  88939. }
  88940. };
  88941. A._NodeSassNumber.prototype = {};
  88942. A.legacyNumberClass_closure.prototype = {
  88943. call$4(thisArg, value, unit, dartValue) {
  88944. var t1;
  88945. if (dartValue == null) {
  88946. value.toString;
  88947. t1 = A._parseNumber(value, unit);
  88948. } else
  88949. t1 = dartValue;
  88950. J.set$dartValue$x(thisArg, t1);
  88951. },
  88952. call$2(thisArg, value) {
  88953. return this.call$4(thisArg, value, null, null);
  88954. },
  88955. call$3(thisArg, value, unit) {
  88956. return this.call$4(thisArg, value, unit, null);
  88957. },
  88958. "call*": "call$4",
  88959. $requiredArgCount: 2,
  88960. $defaultValues() {
  88961. return [null, null];
  88962. },
  88963. $signature: 475
  88964. };
  88965. A.legacyNumberClass_closure0.prototype = {
  88966. call$1(thisArg) {
  88967. return J.get$dartValue$x(thisArg)._number1$_value;
  88968. },
  88969. $signature: 476
  88970. };
  88971. A.legacyNumberClass_closure1.prototype = {
  88972. call$2(thisArg, value) {
  88973. var t1 = J.getInterceptor$x(thisArg),
  88974. t2 = J.get$numeratorUnits$x(t1.get$dartValue(thisArg));
  88975. t1.set$dartValue(thisArg, A.SassNumber_SassNumber$withUnits0(value, J.get$denominatorUnits$x(t1.get$dartValue(thisArg)), t2));
  88976. },
  88977. $signature: 477
  88978. };
  88979. A.legacyNumberClass_closure2.prototype = {
  88980. call$1(thisArg) {
  88981. var t1 = J.getInterceptor$x(thisArg),
  88982. t2 = B.JSArray_methods.join$1(J.get$numeratorUnits$x(t1.get$dartValue(thisArg)), "*"),
  88983. t3 = J.get$denominatorUnits$x(t1.get$dartValue(thisArg)).length === 0 ? "" : "/";
  88984. return t2 + t3 + B.JSArray_methods.join$1(J.get$denominatorUnits$x(t1.get$dartValue(thisArg)), "*");
  88985. },
  88986. $signature: 478
  88987. };
  88988. A.legacyNumberClass_closure3.prototype = {
  88989. call$2(thisArg, unit) {
  88990. var t1 = J.getInterceptor$x(thisArg);
  88991. t1.set$dartValue(thisArg, A._parseNumber(t1.get$dartValue(thisArg)._number1$_value, unit));
  88992. },
  88993. $signature: 479
  88994. };
  88995. A._parseNumber_closure.prototype = {
  88996. call$1(unit) {
  88997. return unit.length === 0;
  88998. },
  88999. $signature: 8
  89000. };
  89001. A._parseNumber_closure0.prototype = {
  89002. call$1(unit) {
  89003. return unit.length === 0;
  89004. },
  89005. $signature: 8
  89006. };
  89007. A.numberClass_closure.prototype = {
  89008. call$0() {
  89009. var t1 = type$.JSClass,
  89010. jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.SassNumber", new A.numberClass__closure())),
  89011. t2 = type$.String,
  89012. t3 = type$.Function;
  89013. A.LinkedHashMap_LinkedHashMap$_literal(["value", new A.numberClass__closure0(), "isInt", new A.numberClass__closure1(), "asInt", new A.numberClass__closure2(), "numeratorUnits", new A.numberClass__closure3(), "denominatorUnits", new A.numberClass__closure4(), "hasUnits", new A.numberClass__closure5()], t2, t3).forEach$1(0, A.JSClassExtension_get_defineGetter(jsClass));
  89014. A.LinkedHashMap_LinkedHashMap$_literal(["assertInt", new A.numberClass__closure6(), "assertInRange", new A.numberClass__closure7(), "assertNoUnits", new A.numberClass__closure8(), "assertUnit", new A.numberClass__closure9(), "hasUnit", new A.numberClass__closure10(), "compatibleWithUnit", new A.numberClass__closure11(), "convert", new A.numberClass__closure12(), "convertToMatch", new A.numberClass__closure13(), "convertValue", new A.numberClass__closure14(), "convertValueToMatch", new A.numberClass__closure15(), "coerce", new A.numberClass__closure16(), "coerceToMatch", new A.numberClass__closure17(), "coerceValue", new A.numberClass__closure18(), "coerceValueToMatch", new A.numberClass__closure19()], t2, t3).forEach$1(0, A.JSClassExtension_get_defineMethod(jsClass));
  89015. A.JSClassExtension_injectSuperclass(t1._as(self.Object.getPrototypeOf(J.get$$prototype$x(t1._as(A.SassNumber_SassNumber0(0, null).constructor))).constructor), jsClass);
  89016. return jsClass;
  89017. },
  89018. $signature: 25
  89019. };
  89020. A.numberClass__closure.prototype = {
  89021. call$3($self, value, unitOrOptions) {
  89022. var t1, t2, _null = null;
  89023. if (typeof unitOrOptions == "string")
  89024. return A.SassNumber_SassNumber0(value, unitOrOptions);
  89025. type$.nullable__ConstructorOptions_2._as(unitOrOptions);
  89026. t1 = unitOrOptions == null;
  89027. if (t1)
  89028. t2 = _null;
  89029. else {
  89030. t2 = A.NullableExtension_andThen0(J.get$numeratorUnits$x(unitOrOptions), A.immutable__jsToDartList$closure());
  89031. t2 = t2 == null ? _null : J.cast$1$0$ax(t2, type$.String);
  89032. }
  89033. if (t1)
  89034. t1 = _null;
  89035. else {
  89036. t1 = A.NullableExtension_andThen0(J.get$denominatorUnits$x(unitOrOptions), A.immutable__jsToDartList$closure());
  89037. t1 = t1 == null ? _null : J.cast$1$0$ax(t1, type$.String);
  89038. }
  89039. return A.SassNumber_SassNumber$withUnits0(value, t1, t2);
  89040. },
  89041. call$2($self, value) {
  89042. return this.call$3($self, value, null);
  89043. },
  89044. "call*": "call$3",
  89045. $requiredArgCount: 2,
  89046. $defaultValues() {
  89047. return [null];
  89048. },
  89049. $signature: 480
  89050. };
  89051. A.numberClass__closure0.prototype = {
  89052. call$1($self) {
  89053. return $self._number1$_value;
  89054. },
  89055. $signature: 481
  89056. };
  89057. A.numberClass__closure1.prototype = {
  89058. call$1($self) {
  89059. return A.fuzzyIsInt($self._number1$_value);
  89060. },
  89061. $signature: 186
  89062. };
  89063. A.numberClass__closure2.prototype = {
  89064. call$1($self) {
  89065. return A.fuzzyAsInt0($self._number1$_value);
  89066. },
  89067. $signature: 483
  89068. };
  89069. A.numberClass__closure3.prototype = {
  89070. call$1($self) {
  89071. return new self.immutable.List($self.get$numeratorUnits($self));
  89072. },
  89073. $signature: 174
  89074. };
  89075. A.numberClass__closure4.prototype = {
  89076. call$1($self) {
  89077. return new self.immutable.List($self.get$denominatorUnits($self));
  89078. },
  89079. $signature: 174
  89080. };
  89081. A.numberClass__closure5.prototype = {
  89082. call$1($self) {
  89083. return $self.get$hasUnits();
  89084. },
  89085. $signature: 186
  89086. };
  89087. A.numberClass__closure6.prototype = {
  89088. call$2($self, $name) {
  89089. return $self.assertInt$1($name);
  89090. },
  89091. call$1($self) {
  89092. return this.call$2($self, null);
  89093. },
  89094. "call*": "call$2",
  89095. $requiredArgCount: 1,
  89096. $defaultValues() {
  89097. return [null];
  89098. },
  89099. $signature: 485
  89100. };
  89101. A.numberClass__closure7.prototype = {
  89102. call$4($self, min, max, $name) {
  89103. return $self.valueInRange$3(min, max, $name);
  89104. },
  89105. call$3($self, min, max) {
  89106. return this.call$4($self, min, max, null);
  89107. },
  89108. "call*": "call$4",
  89109. $requiredArgCount: 3,
  89110. $defaultValues() {
  89111. return [null];
  89112. },
  89113. $signature: 486
  89114. };
  89115. A.numberClass__closure8.prototype = {
  89116. call$2($self, $name) {
  89117. $self.assertNoUnits$1($name);
  89118. return $self;
  89119. },
  89120. call$1($self) {
  89121. return this.call$2($self, null);
  89122. },
  89123. "call*": "call$2",
  89124. $requiredArgCount: 1,
  89125. $defaultValues() {
  89126. return [null];
  89127. },
  89128. $signature: 487
  89129. };
  89130. A.numberClass__closure9.prototype = {
  89131. call$3($self, unit, $name) {
  89132. $self.assertUnit$2(unit, $name);
  89133. return $self;
  89134. },
  89135. call$2($self, unit) {
  89136. return this.call$3($self, unit, null);
  89137. },
  89138. "call*": "call$3",
  89139. $requiredArgCount: 2,
  89140. $defaultValues() {
  89141. return [null];
  89142. },
  89143. $signature: 488
  89144. };
  89145. A.numberClass__closure10.prototype = {
  89146. call$2($self, unit) {
  89147. return $self.hasUnit$1(unit);
  89148. },
  89149. $signature: 169
  89150. };
  89151. A.numberClass__closure11.prototype = {
  89152. call$2($self, unit) {
  89153. return $self.get$hasUnits() && $self.compatibleWithUnit$1(unit);
  89154. },
  89155. $signature: 169
  89156. };
  89157. A.numberClass__closure12.prototype = {
  89158. call$4($self, numeratorUnits, denominatorUnits, $name) {
  89159. var t1 = self.immutable.isOrderedMap(numeratorUnits) ? J.toArray$0$x(type$.ImmutableList._as(numeratorUnits)) : type$.List_dynamic._as(numeratorUnits),
  89160. t2 = type$.String;
  89161. t1 = J.cast$1$0$ax(t1, t2);
  89162. t2 = J.cast$1$0$ax(self.immutable.isOrderedMap(denominatorUnits) ? J.toArray$0$x(type$.ImmutableList._as(denominatorUnits)) : type$.List_dynamic._as(denominatorUnits), t2);
  89163. return A.SassNumber_SassNumber$withUnits0($self._number1$_coerceOrConvertValue$4$coerceUnitless$name(t1, t2, false, $name), t2, t1);
  89164. },
  89165. call$3($self, numeratorUnits, denominatorUnits) {
  89166. return this.call$4($self, numeratorUnits, denominatorUnits, null);
  89167. },
  89168. "call*": "call$4",
  89169. $requiredArgCount: 3,
  89170. $defaultValues() {
  89171. return [null];
  89172. },
  89173. $signature: 154
  89174. };
  89175. A.numberClass__closure13.prototype = {
  89176. call$4($self, other, $name, otherName) {
  89177. return $self.convertToMatch$3(other, $name, otherName);
  89178. },
  89179. call$2($self, other) {
  89180. return this.call$4($self, other, null, null);
  89181. },
  89182. call$3($self, other, $name) {
  89183. return this.call$4($self, other, $name, null);
  89184. },
  89185. "call*": "call$4",
  89186. $requiredArgCount: 2,
  89187. $defaultValues() {
  89188. return [null, null];
  89189. },
  89190. $signature: 252
  89191. };
  89192. A.numberClass__closure14.prototype = {
  89193. call$4($self, numeratorUnits, denominatorUnits, $name) {
  89194. var t1 = self.immutable.isOrderedMap(numeratorUnits) ? J.toArray$0$x(type$.ImmutableList._as(numeratorUnits)) : type$.List_dynamic._as(numeratorUnits),
  89195. t2 = type$.String;
  89196. t1 = J.cast$1$0$ax(t1, t2);
  89197. return $self._number1$_coerceOrConvertValue$4$coerceUnitless$name(t1, J.cast$1$0$ax(self.immutable.isOrderedMap(denominatorUnits) ? J.toArray$0$x(type$.ImmutableList._as(denominatorUnits)) : type$.List_dynamic._as(denominatorUnits), t2), false, $name);
  89198. },
  89199. call$3($self, numeratorUnits, denominatorUnits) {
  89200. return this.call$4($self, numeratorUnits, denominatorUnits, null);
  89201. },
  89202. "call*": "call$4",
  89203. $requiredArgCount: 3,
  89204. $defaultValues() {
  89205. return [null];
  89206. },
  89207. $signature: 255
  89208. };
  89209. A.numberClass__closure15.prototype = {
  89210. call$4($self, other, $name, otherName) {
  89211. return $self.convertValueToMatch$3(other, $name, otherName);
  89212. },
  89213. call$2($self, other) {
  89214. return this.call$4($self, other, null, null);
  89215. },
  89216. call$3($self, other, $name) {
  89217. return this.call$4($self, other, $name, null);
  89218. },
  89219. "call*": "call$4",
  89220. $requiredArgCount: 2,
  89221. $defaultValues() {
  89222. return [null, null];
  89223. },
  89224. $signature: 244
  89225. };
  89226. A.numberClass__closure16.prototype = {
  89227. call$4($self, numeratorUnits, denominatorUnits, $name) {
  89228. var t1 = self.immutable.isOrderedMap(numeratorUnits) ? J.toArray$0$x(type$.ImmutableList._as(numeratorUnits)) : type$.List_dynamic._as(numeratorUnits),
  89229. t2 = type$.String;
  89230. t1 = J.cast$1$0$ax(t1, t2);
  89231. return $self.coerce$3(t1, J.cast$1$0$ax(self.immutable.isOrderedMap(denominatorUnits) ? J.toArray$0$x(type$.ImmutableList._as(denominatorUnits)) : type$.List_dynamic._as(denominatorUnits), t2), $name);
  89232. },
  89233. call$3($self, numeratorUnits, denominatorUnits) {
  89234. return this.call$4($self, numeratorUnits, denominatorUnits, null);
  89235. },
  89236. "call*": "call$4",
  89237. $requiredArgCount: 3,
  89238. $defaultValues() {
  89239. return [null];
  89240. },
  89241. $signature: 154
  89242. };
  89243. A.numberClass__closure17.prototype = {
  89244. call$4($self, other, $name, otherName) {
  89245. return $self.coerceToMatch$3(other, $name, otherName);
  89246. },
  89247. call$2($self, other) {
  89248. return this.call$4($self, other, null, null);
  89249. },
  89250. call$3($self, other, $name) {
  89251. return this.call$4($self, other, $name, null);
  89252. },
  89253. "call*": "call$4",
  89254. $requiredArgCount: 2,
  89255. $defaultValues() {
  89256. return [null, null];
  89257. },
  89258. $signature: 252
  89259. };
  89260. A.numberClass__closure18.prototype = {
  89261. call$4($self, numeratorUnits, denominatorUnits, $name) {
  89262. var t1 = self.immutable.isOrderedMap(numeratorUnits) ? J.toArray$0$x(type$.ImmutableList._as(numeratorUnits)) : type$.List_dynamic._as(numeratorUnits),
  89263. t2 = type$.String;
  89264. t1 = J.cast$1$0$ax(t1, t2);
  89265. return $self.coerceValue$3(t1, J.cast$1$0$ax(self.immutable.isOrderedMap(denominatorUnits) ? J.toArray$0$x(type$.ImmutableList._as(denominatorUnits)) : type$.List_dynamic._as(denominatorUnits), t2), $name);
  89266. },
  89267. call$3($self, numeratorUnits, denominatorUnits) {
  89268. return this.call$4($self, numeratorUnits, denominatorUnits, null);
  89269. },
  89270. "call*": "call$4",
  89271. $requiredArgCount: 3,
  89272. $defaultValues() {
  89273. return [null];
  89274. },
  89275. $signature: 255
  89276. };
  89277. A.numberClass__closure19.prototype = {
  89278. call$4($self, other, $name, otherName) {
  89279. return $self.coerceValueToMatch$3(other, $name, otherName);
  89280. },
  89281. call$2($self, other) {
  89282. return this.call$4($self, other, null, null);
  89283. },
  89284. call$3($self, other, $name) {
  89285. return this.call$4($self, other, $name, null);
  89286. },
  89287. "call*": "call$4",
  89288. $requiredArgCount: 2,
  89289. $defaultValues() {
  89290. return [null, null];
  89291. },
  89292. $signature: 244
  89293. };
  89294. A._ConstructorOptions0.prototype = {};
  89295. A.SassNumber0.prototype = {
  89296. get$unitString() {
  89297. var _this = this;
  89298. return _this.get$hasUnits() ? _this._number1$_unitString$2(_this.get$numeratorUnits(_this), _this.get$denominatorUnits(_this)) : "";
  89299. },
  89300. accept$1$1(visitor) {
  89301. return visitor.visitNumber$1(this);
  89302. },
  89303. accept$1(visitor) {
  89304. return this.accept$1$1(visitor, type$.dynamic);
  89305. },
  89306. withoutSlash$0() {
  89307. var _this = this;
  89308. return _this.asSlash == null ? _this : _this.withValue$1(_this._number1$_value);
  89309. },
  89310. assertNumber$1($name) {
  89311. return this;
  89312. },
  89313. assertNumber$0() {
  89314. return this.assertNumber$1(null);
  89315. },
  89316. assertInt$1($name) {
  89317. var integer = A.fuzzyAsInt0(this._number1$_value);
  89318. if (integer != null)
  89319. return integer;
  89320. throw A.wrapException(A.SassScriptException$0(this.toString$0(0) + " is not an int.", $name));
  89321. },
  89322. assertInt$0() {
  89323. return this.assertInt$1(null);
  89324. },
  89325. valueInRange$3(min, max, $name) {
  89326. var _this = this,
  89327. result = A.fuzzyCheckRange0(_this._number1$_value, min, max);
  89328. if (result != null)
  89329. return result;
  89330. throw A.wrapException(A.SassScriptException$0("Expected " + _this.toString$0(0) + " to be within " + A.S(min) + _this.get$unitString() + " and " + A.S(max) + _this.get$unitString() + ".", $name));
  89331. },
  89332. valueInRangeWithUnit$4(min, max, $name, unit) {
  89333. var result = A.fuzzyCheckRange0(this._number1$_value, min, max);
  89334. if (result != null)
  89335. return result;
  89336. throw A.wrapException(A.SassScriptException$0("Expected " + this.toString$0(0) + " to be within " + min + unit + " and " + max + unit + ".", $name));
  89337. },
  89338. hasCompatibleUnits$1(other) {
  89339. var _this = this;
  89340. if (_this.get$numeratorUnits(_this).length !== other.get$numeratorUnits(other).length)
  89341. return false;
  89342. if (_this.get$denominatorUnits(_this).length !== other.get$denominatorUnits(other).length)
  89343. return false;
  89344. return _this.isComparableTo$1(other);
  89345. },
  89346. assertUnit$2(unit, $name) {
  89347. if (this.hasUnit$1(unit))
  89348. return;
  89349. throw A.wrapException(A.SassScriptException$0("Expected " + this.toString$0(0) + ' to have unit "' + unit + '".', $name));
  89350. },
  89351. assertNoUnits$1($name) {
  89352. if (!this.get$hasUnits())
  89353. return;
  89354. throw A.wrapException(A.SassScriptException$0("Expected " + this.toString$0(0) + " to have no units.", $name));
  89355. },
  89356. convertToMatch$3(other, $name, otherName) {
  89357. var t1 = this.convertValueToMatch$3(other, $name, otherName),
  89358. t2 = other.get$numeratorUnits(other);
  89359. return A.SassNumber_SassNumber$withUnits0(t1, other.get$denominatorUnits(other), t2);
  89360. },
  89361. convertValueToMatch$3(other, $name, otherName) {
  89362. return this._number1$_coerceOrConvertValue$6$coerceUnitless$name$other$otherName(other.get$numeratorUnits(other), other.get$denominatorUnits(other), false, $name, other, otherName);
  89363. },
  89364. coerce$3(newNumerators, newDenominators, $name) {
  89365. return A.SassNumber_SassNumber$withUnits0(this.coerceValue$3(newNumerators, newDenominators, $name), newDenominators, newNumerators);
  89366. },
  89367. coerce$2(newNumerators, newDenominators) {
  89368. return this.coerce$3(newNumerators, newDenominators, null);
  89369. },
  89370. coerceValue$3(newNumerators, newDenominators, $name) {
  89371. return this._number1$_coerceOrConvertValue$4$coerceUnitless$name(newNumerators, newDenominators, true, $name);
  89372. },
  89373. coerceValueToUnit$2(unit, $name) {
  89374. var t1 = type$.JSArray_String;
  89375. return this.coerceValue$3(A._setArrayType([unit], t1), A._setArrayType([], t1), $name);
  89376. },
  89377. coerceValueToUnit$1(unit) {
  89378. return this.coerceValueToUnit$2(unit, null);
  89379. },
  89380. coerceToMatch$3(other, $name, otherName) {
  89381. var t1 = this.coerceValueToMatch$3(other, $name, otherName),
  89382. t2 = other.get$numeratorUnits(other);
  89383. return A.SassNumber_SassNumber$withUnits0(t1, other.get$denominatorUnits(other), t2);
  89384. },
  89385. coerceValueToMatch$3(other, $name, otherName) {
  89386. return this._number1$_coerceOrConvertValue$6$coerceUnitless$name$other$otherName(other.get$numeratorUnits(other), other.get$denominatorUnits(other), true, $name, other, otherName);
  89387. },
  89388. coerceValueToMatch$1(other) {
  89389. return this.coerceValueToMatch$3(other, null, null);
  89390. },
  89391. _number1$_coerceOrConvertValue$6$coerceUnitless$name$other$otherName(newNumerators, newDenominators, coerceUnitless, $name, other, otherName) {
  89392. var t1, otherHasUnits, t2, compatibilityException, oldNumerators, oldDenominators, _this = this, _box_0 = {};
  89393. if (B.C_ListEquality.equals$2(0, _this.get$numeratorUnits(_this), newNumerators) && B.C_ListEquality.equals$2(0, _this.get$denominatorUnits(_this), newDenominators))
  89394. return _this._number1$_value;
  89395. t1 = J.getInterceptor$asx(newNumerators);
  89396. otherHasUnits = t1.get$isNotEmpty(newNumerators) || J.get$isNotEmpty$asx(newDenominators);
  89397. if (coerceUnitless)
  89398. t2 = !_this.get$hasUnits() || !otherHasUnits;
  89399. else
  89400. t2 = false;
  89401. if (t2)
  89402. return _this._number1$_value;
  89403. compatibilityException = new A.SassNumber__coerceOrConvertValue_compatibilityException0(_this, other, otherName, otherHasUnits, $name, newNumerators, newDenominators);
  89404. _box_0.value = _this._number1$_value;
  89405. t2 = _this.get$numeratorUnits(_this);
  89406. oldNumerators = A._setArrayType(t2.slice(0), A._arrayInstanceType(t2));
  89407. for (t1 = t1.get$iterator(newNumerators); t1.moveNext$0();)
  89408. A.removeFirstWhere0(oldNumerators, new A.SassNumber__coerceOrConvertValue_closure3(_box_0, t1.get$current(t1)), new A.SassNumber__coerceOrConvertValue_closure4(compatibilityException));
  89409. t1 = _this.get$denominatorUnits(_this);
  89410. oldDenominators = A._setArrayType(t1.slice(0), A._arrayInstanceType(t1));
  89411. for (t1 = J.get$iterator$ax(newDenominators); t1.moveNext$0();)
  89412. A.removeFirstWhere0(oldDenominators, new A.SassNumber__coerceOrConvertValue_closure5(_box_0, t1.get$current(t1)), new A.SassNumber__coerceOrConvertValue_closure6(compatibilityException));
  89413. if (oldNumerators.length !== 0 || oldDenominators.length !== 0)
  89414. throw A.wrapException(compatibilityException.call$0());
  89415. return _box_0.value;
  89416. },
  89417. _number1$_coerceOrConvertValue$4$coerceUnitless$name(newNumerators, newDenominators, coerceUnitless, $name) {
  89418. return this._number1$_coerceOrConvertValue$6$coerceUnitless$name$other$otherName(newNumerators, newDenominators, coerceUnitless, $name, null, null);
  89419. },
  89420. isComparableTo$1(other) {
  89421. var exception;
  89422. if (!this.get$hasUnits() || !other.get$hasUnits())
  89423. return true;
  89424. try {
  89425. this.greaterThan$1(other);
  89426. return true;
  89427. } catch (exception) {
  89428. if (A.unwrapException(exception) instanceof A.SassScriptException0)
  89429. return false;
  89430. else
  89431. throw exception;
  89432. }
  89433. },
  89434. greaterThan$1(other) {
  89435. if (other instanceof A.SassNumber0)
  89436. return this._number1$_coerceUnits$2(other, A.number2__fuzzyGreaterThan$closure()) ? B.SassBoolean_true0 : B.SassBoolean_false0;
  89437. throw A.wrapException(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " > " + other.toString$0(0) + '".', null));
  89438. },
  89439. greaterThanOrEquals$1(other) {
  89440. if (other instanceof A.SassNumber0)
  89441. return this._number1$_coerceUnits$2(other, A.number2__fuzzyGreaterThanOrEquals$closure()) ? B.SassBoolean_true0 : B.SassBoolean_false0;
  89442. throw A.wrapException(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " >= " + other.toString$0(0) + '".', null));
  89443. },
  89444. lessThan$1(other) {
  89445. if (other instanceof A.SassNumber0)
  89446. return this._number1$_coerceUnits$2(other, A.number2__fuzzyLessThan$closure()) ? B.SassBoolean_true0 : B.SassBoolean_false0;
  89447. throw A.wrapException(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " < " + other.toString$0(0) + '".', null));
  89448. },
  89449. lessThanOrEquals$1(other) {
  89450. if (other instanceof A.SassNumber0)
  89451. return this._number1$_coerceUnits$2(other, A.number2__fuzzyLessThanOrEquals$closure()) ? B.SassBoolean_true0 : B.SassBoolean_false0;
  89452. throw A.wrapException(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " <= " + other.toString$0(0) + '".', null));
  89453. },
  89454. modulo$1(other) {
  89455. if (other instanceof A.SassNumber0)
  89456. return this.withValue$1(this._number1$_coerceUnits$2(other, A.number2__moduloLikeSass$closure()));
  89457. throw A.wrapException(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " % " + other.toString$0(0) + '".', null));
  89458. },
  89459. plus$1(other) {
  89460. var _this = this;
  89461. if (other instanceof A.SassNumber0)
  89462. return _this.withValue$1(_this._number1$_coerceUnits$2(other, new A.SassNumber_plus_closure0()));
  89463. if (!(other instanceof A.SassColor0))
  89464. return _this.super$Value$plus0(other);
  89465. throw A.wrapException(A.SassScriptException$0('Undefined operation "' + _this.toString$0(0) + " + " + other.toString$0(0) + '".', null));
  89466. },
  89467. minus$1(other) {
  89468. var _this = this;
  89469. if (other instanceof A.SassNumber0)
  89470. return _this.withValue$1(_this._number1$_coerceUnits$2(other, new A.SassNumber_minus_closure0()));
  89471. if (!(other instanceof A.SassColor0))
  89472. return _this.super$Value$minus0(other);
  89473. throw A.wrapException(A.SassScriptException$0('Undefined operation "' + _this.toString$0(0) + " - " + other.toString$0(0) + '".', null));
  89474. },
  89475. times$1(other) {
  89476. var _this = this;
  89477. if (other instanceof A.SassNumber0) {
  89478. if (!other.get$hasUnits())
  89479. return _this.withValue$1(_this._number1$_value * other._number1$_value);
  89480. return _this.multiplyUnits$3(_this._number1$_value * other._number1$_value, other.get$numeratorUnits(other), other.get$denominatorUnits(other));
  89481. }
  89482. throw A.wrapException(A.SassScriptException$0('Undefined operation "' + _this.toString$0(0) + " * " + other.toString$0(0) + '".', null));
  89483. },
  89484. dividedBy$1(other) {
  89485. var _this = this;
  89486. if (other instanceof A.SassNumber0) {
  89487. if (!other.get$hasUnits())
  89488. return _this.withValue$1(_this._number1$_value / other._number1$_value);
  89489. return _this.multiplyUnits$3(_this._number1$_value / other._number1$_value, other.get$denominatorUnits(other), other.get$numeratorUnits(other));
  89490. }
  89491. return _this.super$Value$dividedBy0(other);
  89492. },
  89493. unaryPlus$0() {
  89494. return this;
  89495. },
  89496. _number1$_coerceUnits$1$2(other, operation) {
  89497. var t1, exception;
  89498. try {
  89499. t1 = operation.call$2(this._number1$_value, other.coerceValueToMatch$1(this));
  89500. return t1;
  89501. } catch (exception) {
  89502. if (A.unwrapException(exception) instanceof A.SassScriptException0) {
  89503. this.coerceValueToMatch$1(other);
  89504. throw exception;
  89505. } else
  89506. throw exception;
  89507. }
  89508. },
  89509. _number1$_coerceUnits$2(other, operation) {
  89510. return this._number1$_coerceUnits$1$2(other, operation, type$.dynamic);
  89511. },
  89512. multiplyUnits$3(value, otherNumerators, otherDenominators) {
  89513. var newNumerators, mutableOtherDenominators, t1, t2, _i, numerator, mutableDenominatorUnits, _this = this, _box_0 = {};
  89514. _box_0.value = value;
  89515. if (_this.get$numeratorUnits(_this).length === 0) {
  89516. if (otherDenominators.length === 0 && !_this._number1$_areAnyConvertible$2(_this.get$denominatorUnits(_this), otherNumerators))
  89517. return A.SassNumber_SassNumber$withUnits0(value, _this.get$denominatorUnits(_this), otherNumerators);
  89518. else if (_this.get$denominatorUnits(_this).length === 0)
  89519. return A.SassNumber_SassNumber$withUnits0(value, otherDenominators, otherNumerators);
  89520. } else if (otherNumerators.length === 0)
  89521. if (otherDenominators.length === 0)
  89522. return A.SassNumber_SassNumber$withUnits0(value, otherDenominators, _this.get$numeratorUnits(_this));
  89523. else if (_this.get$denominatorUnits(_this).length === 0 && !_this._number1$_areAnyConvertible$2(_this.get$numeratorUnits(_this), otherDenominators))
  89524. return A.SassNumber_SassNumber$withUnits0(value, otherDenominators, _this.get$numeratorUnits(_this));
  89525. newNumerators = A._setArrayType([], type$.JSArray_String);
  89526. mutableOtherDenominators = A._setArrayType(otherDenominators.slice(0), A._arrayInstanceType(otherDenominators));
  89527. for (t1 = _this.get$numeratorUnits(_this), t2 = t1.length, _i = 0; _i < t2; ++_i) {
  89528. numerator = t1[_i];
  89529. A.removeFirstWhere0(mutableOtherDenominators, new A.SassNumber_multiplyUnits_closure3(_box_0, numerator), new A.SassNumber_multiplyUnits_closure4(newNumerators, numerator));
  89530. }
  89531. t1 = _this.get$denominatorUnits(_this);
  89532. mutableDenominatorUnits = A._setArrayType(t1.slice(0), A._arrayInstanceType(t1));
  89533. for (t1 = otherNumerators.length, _i = 0; _i < t1; ++_i) {
  89534. numerator = otherNumerators[_i];
  89535. A.removeFirstWhere0(mutableDenominatorUnits, new A.SassNumber_multiplyUnits_closure5(_box_0, numerator), new A.SassNumber_multiplyUnits_closure6(newNumerators, numerator));
  89536. }
  89537. t1 = _box_0.value;
  89538. B.JSArray_methods.addAll$1(mutableDenominatorUnits, mutableOtherDenominators);
  89539. return A.SassNumber_SassNumber$withUnits0(t1, mutableDenominatorUnits, newNumerators);
  89540. },
  89541. _number1$_areAnyConvertible$2(units1, units2) {
  89542. return B.JSArray_methods.any$1(units1, new A.SassNumber__areAnyConvertible_closure0(units2));
  89543. },
  89544. _number1$_unitString$2(numerators, denominators) {
  89545. var t2,
  89546. t1 = J.getInterceptor$asx(numerators);
  89547. if (t1.get$isEmpty(numerators)) {
  89548. t1 = J.getInterceptor$asx(denominators);
  89549. if (t1.get$isEmpty(denominators))
  89550. return "no units";
  89551. if (t1.get$length(denominators) === 1)
  89552. return J.$add$ansx(t1.get$single(denominators), "^-1");
  89553. return "(" + t1.join$1(denominators, "*") + ")^-1";
  89554. }
  89555. t2 = J.getInterceptor$asx(denominators);
  89556. if (t2.get$isEmpty(denominators))
  89557. return t1.join$1(numerators, "*");
  89558. return t1.join$1(numerators, "*") + "/" + t2.join$1(denominators, "*");
  89559. },
  89560. $eq(_, other) {
  89561. var _this = this;
  89562. if (other == null)
  89563. return false;
  89564. if (other instanceof A.SassNumber0) {
  89565. if (_this.get$numeratorUnits(_this).length !== other.get$numeratorUnits(other).length || _this.get$denominatorUnits(_this).length !== other.get$denominatorUnits(other).length)
  89566. return false;
  89567. if (!_this.get$hasUnits())
  89568. return A.fuzzyEquals0(_this._number1$_value, other._number1$_value);
  89569. if (!B.C_ListEquality.equals$2(0, _this._number1$_canonicalizeUnitList$1(_this.get$numeratorUnits(_this)), _this._number1$_canonicalizeUnitList$1(other.get$numeratorUnits(other))) || !B.C_ListEquality.equals$2(0, _this._number1$_canonicalizeUnitList$1(_this.get$denominatorUnits(_this)), _this._number1$_canonicalizeUnitList$1(other.get$denominatorUnits(other))))
  89570. return false;
  89571. return A.fuzzyEquals0(_this._number1$_value * _this._number1$_canonicalMultiplier$1(_this.get$numeratorUnits(_this)) / _this._number1$_canonicalMultiplier$1(_this.get$denominatorUnits(_this)), other._number1$_value * _this._number1$_canonicalMultiplier$1(other.get$numeratorUnits(other)) / _this._number1$_canonicalMultiplier$1(other.get$denominatorUnits(other)));
  89572. } else
  89573. return false;
  89574. },
  89575. get$hashCode(_) {
  89576. var _this = this,
  89577. t1 = _this.hashCache;
  89578. return t1 == null ? _this.hashCache = A.fuzzyHashCode0(_this._number1$_value * _this._number1$_canonicalMultiplier$1(_this.get$numeratorUnits(_this)) / _this._number1$_canonicalMultiplier$1(_this.get$denominatorUnits(_this))) : t1;
  89579. },
  89580. _number1$_canonicalizeUnitList$1(units) {
  89581. var type,
  89582. t1 = units.length;
  89583. if (t1 === 0)
  89584. return units;
  89585. if (t1 === 1) {
  89586. type = $.$get$_typesByUnit0().$index(0, B.JSArray_methods.get$first(units));
  89587. if (type == null)
  89588. t1 = units;
  89589. else {
  89590. t1 = B.Map_U8AHF.$index(0, type);
  89591. t1.toString;
  89592. t1 = A._setArrayType([B.JSArray_methods.get$first(t1)], type$.JSArray_String);
  89593. }
  89594. return t1;
  89595. }
  89596. t1 = A._arrayInstanceType(units)._eval$1("MappedListIterable<1,String>");
  89597. t1 = A.List_List$of(new A.MappedListIterable(units, new A.SassNumber__canonicalizeUnitList_closure0(), t1), true, t1._eval$1("ListIterable.E"));
  89598. B.JSArray_methods.sort$0(t1);
  89599. return t1;
  89600. },
  89601. _number1$_canonicalMultiplier$1(units) {
  89602. return B.JSArray_methods.fold$2(units, 1, new A.SassNumber__canonicalMultiplier_closure0(this));
  89603. },
  89604. canonicalMultiplierForUnit$1(unit) {
  89605. var t1,
  89606. innerMap = B.Map_K2BWj.$index(0, unit);
  89607. if (innerMap == null)
  89608. t1 = 1;
  89609. else {
  89610. t1 = innerMap.get$values(innerMap);
  89611. t1 = 1 / t1.get$first(t1);
  89612. }
  89613. return t1;
  89614. },
  89615. unitSuggestion$2($name, unit) {
  89616. var t2, t3, result, _this = this,
  89617. t1 = _this.get$denominatorUnits(_this);
  89618. t1 = new A.MappedListIterable(t1, new A.SassNumber_unitSuggestion_closure1(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$0(0);
  89619. t2 = _this.get$numeratorUnits(_this);
  89620. t2 = new A.MappedListIterable(t2, new A.SassNumber_unitSuggestion_closure2(), A._arrayInstanceType(t2)._eval$1("MappedListIterable<1,String>")).join$0(0);
  89621. t3 = unit == null ? "" : " * 1" + unit;
  89622. result = "$" + $name + t1 + t2 + t3;
  89623. return _this.get$numeratorUnits(_this).length === 0 ? result : "calc(" + result + ")";
  89624. },
  89625. unitSuggestion$1($name) {
  89626. return this.unitSuggestion$2($name, null);
  89627. }
  89628. };
  89629. A.SassNumber__coerceOrConvertValue_compatibilityException0.prototype = {
  89630. call$0() {
  89631. var t2, t3, message, t4, type, unit, _this = this,
  89632. t1 = _this.other;
  89633. if (t1 != null) {
  89634. t2 = _this.$this;
  89635. t3 = t2.toString$0(0) + " and";
  89636. message = new A.StringBuffer(t3);
  89637. t4 = _this.otherName;
  89638. if (t4 != null)
  89639. t3 = message._contents = t3 + (" $" + t4 + ":");
  89640. t1 = t3 + (" " + t1.toString$0(0) + " have incompatible units");
  89641. message._contents = t1;
  89642. if (!t2.get$hasUnits() || !_this.otherHasUnits)
  89643. message._contents = t1 + " (one has units and the other doesn't)";
  89644. t1 = message.toString$0(0) + ".";
  89645. t2 = _this.name;
  89646. return new A.SassScriptException0(t2 == null ? t1 : "$" + t2 + ": " + t1);
  89647. } else if (!_this.otherHasUnits) {
  89648. t1 = "Expected " + _this.$this.toString$0(0) + " to have no units.";
  89649. t2 = _this.name;
  89650. return new A.SassScriptException0(t2 == null ? t1 : "$" + t2 + ": " + t1);
  89651. } else {
  89652. t1 = _this.newNumerators;
  89653. t2 = J.getInterceptor$asx(t1);
  89654. if (t2.get$length(t1) === 1 && J.get$isEmpty$asx(_this.newDenominators)) {
  89655. type = $.$get$_typesByUnit0().$index(0, t2.get$first(t1));
  89656. if (type != null) {
  89657. t1 = _this.$this.toString$0(0);
  89658. t2 = B.JSArray_methods.contains$1(A._setArrayType([97, 101, 105, 111, 117], type$.JSArray_int), B.JSString_methods._codeUnitAt$1(type, 0)) ? "an " + type : "a " + type;
  89659. t3 = B.Map_U8AHF.$index(0, type);
  89660. t3.toString;
  89661. t3 = "Expected " + t1 + " to have " + t2 + " unit (" + B.JSArray_methods.join$1(t3, ", ") + ").";
  89662. t2 = _this.name;
  89663. return new A.SassScriptException0(t2 == null ? t3 : "$" + t2 + ": " + t3);
  89664. }
  89665. }
  89666. t3 = _this.newDenominators;
  89667. unit = A.pluralize0("unit", t2.get$length(t1) + J.get$length$asx(t3), null);
  89668. t2 = _this.$this;
  89669. t3 = "Expected " + t2.toString$0(0) + " to have " + unit + " " + t2._number1$_unitString$2(t1, t3) + ".";
  89670. t1 = _this.name;
  89671. return new A.SassScriptException0(t1 == null ? t3 : "$" + t1 + ": " + t3);
  89672. }
  89673. },
  89674. $signature: 494
  89675. };
  89676. A.SassNumber__coerceOrConvertValue_closure3.prototype = {
  89677. call$1(oldNumerator) {
  89678. var factor = A.conversionFactor0(this.newNumerator, oldNumerator);
  89679. if (factor == null)
  89680. return false;
  89681. this._box_0.value *= factor;
  89682. return true;
  89683. },
  89684. $signature: 8
  89685. };
  89686. A.SassNumber__coerceOrConvertValue_closure4.prototype = {
  89687. call$0() {
  89688. return A.throwExpression(this.compatibilityException.call$0());
  89689. },
  89690. $signature: 0
  89691. };
  89692. A.SassNumber__coerceOrConvertValue_closure5.prototype = {
  89693. call$1(oldDenominator) {
  89694. var factor = A.conversionFactor0(this.newDenominator, oldDenominator);
  89695. if (factor == null)
  89696. return false;
  89697. this._box_0.value /= factor;
  89698. return true;
  89699. },
  89700. $signature: 8
  89701. };
  89702. A.SassNumber__coerceOrConvertValue_closure6.prototype = {
  89703. call$0() {
  89704. return A.throwExpression(this.compatibilityException.call$0());
  89705. },
  89706. $signature: 0
  89707. };
  89708. A.SassNumber_plus_closure0.prototype = {
  89709. call$2(num1, num2) {
  89710. return num1 + num2;
  89711. },
  89712. $signature: 54
  89713. };
  89714. A.SassNumber_minus_closure0.prototype = {
  89715. call$2(num1, num2) {
  89716. return num1 - num2;
  89717. },
  89718. $signature: 54
  89719. };
  89720. A.SassNumber_multiplyUnits_closure3.prototype = {
  89721. call$1(denominator) {
  89722. var factor = A.conversionFactor0(this.numerator, denominator);
  89723. if (factor == null)
  89724. return false;
  89725. this._box_0.value /= factor;
  89726. return true;
  89727. },
  89728. $signature: 8
  89729. };
  89730. A.SassNumber_multiplyUnits_closure4.prototype = {
  89731. call$0() {
  89732. return this.newNumerators.push(this.numerator);
  89733. },
  89734. $signature: 0
  89735. };
  89736. A.SassNumber_multiplyUnits_closure5.prototype = {
  89737. call$1(denominator) {
  89738. var factor = A.conversionFactor0(this.numerator, denominator);
  89739. if (factor == null)
  89740. return false;
  89741. this._box_0.value /= factor;
  89742. return true;
  89743. },
  89744. $signature: 8
  89745. };
  89746. A.SassNumber_multiplyUnits_closure6.prototype = {
  89747. call$0() {
  89748. return this.newNumerators.push(this.numerator);
  89749. },
  89750. $signature: 0
  89751. };
  89752. A.SassNumber__areAnyConvertible_closure0.prototype = {
  89753. call$1(unit1) {
  89754. var innerMap = B.Map_K2BWj.$index(0, unit1);
  89755. if (innerMap == null)
  89756. return B.JSArray_methods.contains$1(this.units2, unit1);
  89757. return B.JSArray_methods.any$1(this.units2, innerMap.get$containsKey());
  89758. },
  89759. $signature: 8
  89760. };
  89761. A.SassNumber__canonicalizeUnitList_closure0.prototype = {
  89762. call$1(unit) {
  89763. var t1,
  89764. type = $.$get$_typesByUnit0().$index(0, unit);
  89765. if (type == null)
  89766. t1 = unit;
  89767. else {
  89768. t1 = B.Map_U8AHF.$index(0, type);
  89769. t1.toString;
  89770. t1 = B.JSArray_methods.get$first(t1);
  89771. }
  89772. return t1;
  89773. },
  89774. $signature: 5
  89775. };
  89776. A.SassNumber__canonicalMultiplier_closure0.prototype = {
  89777. call$2(multiplier, unit) {
  89778. return multiplier * this.$this.canonicalMultiplierForUnit$1(unit);
  89779. },
  89780. $signature: 211
  89781. };
  89782. A.SassNumber_unitSuggestion_closure1.prototype = {
  89783. call$1(unit) {
  89784. return " * 1" + unit;
  89785. },
  89786. $signature: 5
  89787. };
  89788. A.SassNumber_unitSuggestion_closure2.prototype = {
  89789. call$1(unit) {
  89790. return " / 1" + unit;
  89791. },
  89792. $signature: 5
  89793. };
  89794. A.SupportsOperation0.prototype = {
  89795. toString$0(_) {
  89796. var _this = this;
  89797. return _this._operation0$_parenthesize$1(_this.left) + " " + _this.operator + " " + _this._operation0$_parenthesize$1(_this.right);
  89798. },
  89799. _operation0$_parenthesize$1(condition) {
  89800. var t1;
  89801. if (!(condition instanceof A.SupportsNegation0))
  89802. t1 = condition instanceof A.SupportsOperation0 && condition.operator === this.operator;
  89803. else
  89804. t1 = true;
  89805. return t1 ? "(" + condition.toString$0(0) + ")" : condition.toString$0(0);
  89806. },
  89807. $isAstNode0: 1,
  89808. get$span(receiver) {
  89809. return this.span;
  89810. }
  89811. };
  89812. A.ParentSelector0.prototype = {
  89813. accept$1$1(visitor) {
  89814. return visitor.visitParentSelector$1(this);
  89815. },
  89816. accept$1(visitor) {
  89817. return this.accept$1$1(visitor, type$.dynamic);
  89818. },
  89819. unify$1(compound) {
  89820. return A.throwExpression(A.UnsupportedError$("& doesn't support unification."));
  89821. }
  89822. };
  89823. A.ParentStatement0.prototype = {$isAstNode0: 1, $isStatement0: 1};
  89824. A.ParentStatement_closure0.prototype = {
  89825. call$1(child) {
  89826. var t1;
  89827. if (!(child instanceof A.VariableDeclaration0))
  89828. if (!(child instanceof A.FunctionRule0))
  89829. if (!(child instanceof A.MixinRule0))
  89830. t1 = child instanceof A.ImportRule0 && B.JSArray_methods.any$1(child.imports, new A.ParentStatement__closure0());
  89831. else
  89832. t1 = true;
  89833. else
  89834. t1 = true;
  89835. else
  89836. t1 = true;
  89837. return t1;
  89838. },
  89839. $signature: 144
  89840. };
  89841. A.ParentStatement__closure0.prototype = {
  89842. call$1($import) {
  89843. return $import instanceof A.DynamicImport0;
  89844. },
  89845. $signature: 142
  89846. };
  89847. A.ParenthesizedExpression0.prototype = {
  89848. accept$1$1(visitor) {
  89849. return visitor.visitParenthesizedExpression$1(this);
  89850. },
  89851. accept$1(visitor) {
  89852. return this.accept$1$1(visitor, type$.dynamic);
  89853. },
  89854. toString$0(_) {
  89855. return "(" + this.expression.toString$0(0) + ")";
  89856. },
  89857. $isExpression0: 1,
  89858. $isAstNode0: 1,
  89859. get$span(receiver) {
  89860. return this.span;
  89861. }
  89862. };
  89863. A.Parser1.prototype = {
  89864. _parser0$_parseIdentifier$0() {
  89865. return this.wrapSpanFormatException$1(new A.Parser__parseIdentifier_closure0(this));
  89866. },
  89867. whitespace$0() {
  89868. do
  89869. this.whitespaceWithoutComments$0();
  89870. while (this.scanComment$0());
  89871. },
  89872. whitespaceWithoutComments$0() {
  89873. var t3,
  89874. t1 = this.scanner,
  89875. t2 = t1.string.length;
  89876. while (true) {
  89877. if (t1._string_scanner$_position !== t2) {
  89878. t3 = t1.peekChar$0();
  89879. t3 = t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12;
  89880. } else
  89881. t3 = false;
  89882. if (!t3)
  89883. break;
  89884. t1.readChar$0();
  89885. }
  89886. },
  89887. spaces$0() {
  89888. var t3,
  89889. t1 = this.scanner,
  89890. t2 = t1.string.length;
  89891. while (true) {
  89892. if (t1._string_scanner$_position !== t2) {
  89893. t3 = t1.peekChar$0();
  89894. t3 = t3 === 32 || t3 === 9;
  89895. } else
  89896. t3 = false;
  89897. if (!t3)
  89898. break;
  89899. t1.readChar$0();
  89900. }
  89901. },
  89902. scanComment$0() {
  89903. var next,
  89904. t1 = this.scanner;
  89905. if (t1.peekChar$0() !== 47)
  89906. return false;
  89907. next = t1.peekChar$1(1);
  89908. if (next === 47) {
  89909. this.silentComment$0();
  89910. return true;
  89911. } else if (next === 42) {
  89912. this.loudComment$0();
  89913. return true;
  89914. } else
  89915. return false;
  89916. },
  89917. expectWhitespace$0() {
  89918. var t2, t3,
  89919. t1 = this.scanner;
  89920. if (t1._string_scanner$_position !== t1.string.length) {
  89921. t2 = t1.peekChar$0();
  89922. t3 = !(t2 === 32 || t2 === 9 || t2 === 10 || t2 === 13 || t2 === 12 || this.scanComment$0());
  89923. t2 = t3;
  89924. } else
  89925. t2 = true;
  89926. if (t2)
  89927. t1.error$1(0, "Expected whitespace.");
  89928. this.whitespace$0();
  89929. },
  89930. silentComment$0() {
  89931. var t2, t3,
  89932. t1 = this.scanner;
  89933. t1.expect$1("//");
  89934. t2 = t1.string.length;
  89935. while (true) {
  89936. if (t1._string_scanner$_position !== t2) {
  89937. t3 = t1.peekChar$0();
  89938. t3 = !(t3 === 10 || t3 === 13 || t3 === 12);
  89939. } else
  89940. t3 = false;
  89941. if (!t3)
  89942. break;
  89943. t1.readChar$0();
  89944. }
  89945. },
  89946. loudComment$0() {
  89947. var next,
  89948. t1 = this.scanner;
  89949. t1.expect$1("/*");
  89950. for (; true;) {
  89951. if (t1.readChar$0() !== 42)
  89952. continue;
  89953. do
  89954. next = t1.readChar$0();
  89955. while (next === 42);
  89956. if (next === 47)
  89957. break;
  89958. }
  89959. },
  89960. identifier$2$normalize$unit(normalize, unit) {
  89961. var t2, first, _this = this,
  89962. _s20_ = "Expected identifier.",
  89963. text = new A.StringBuffer(""),
  89964. t1 = _this.scanner;
  89965. if (t1.scanChar$1(45)) {
  89966. t2 = text._contents = "" + A.Primitives_stringFromCharCode(45);
  89967. if (t1.scanChar$1(45)) {
  89968. text._contents = t2 + A.Primitives_stringFromCharCode(45);
  89969. _this._parser0$_identifierBody$3$normalize$unit(text, normalize, unit);
  89970. t1 = text._contents;
  89971. return t1.charCodeAt(0) == 0 ? t1 : t1;
  89972. }
  89973. } else
  89974. t2 = "";
  89975. first = t1.peekChar$0();
  89976. if (first == null)
  89977. t1.error$1(0, _s20_);
  89978. else if (normalize && first === 95) {
  89979. t1.readChar$0();
  89980. text._contents = t2 + A.Primitives_stringFromCharCode(45);
  89981. } else if (first === 95 || A.isAlphabetic1(first) || first >= 128)
  89982. text._contents = t2 + A.Primitives_stringFromCharCode(t1.readChar$0());
  89983. else if (first === 92)
  89984. text._contents = t2 + A.S(_this.escape$1$identifierStart(true));
  89985. else
  89986. t1.error$1(0, _s20_);
  89987. _this._parser0$_identifierBody$3$normalize$unit(text, normalize, unit);
  89988. t1 = text._contents;
  89989. return t1.charCodeAt(0) == 0 ? t1 : t1;
  89990. },
  89991. identifier$0() {
  89992. return this.identifier$2$normalize$unit(false, false);
  89993. },
  89994. identifier$1$normalize(normalize) {
  89995. return this.identifier$2$normalize$unit(normalize, false);
  89996. },
  89997. identifier$1$unit(unit) {
  89998. return this.identifier$2$normalize$unit(false, unit);
  89999. },
  90000. _parser0$_identifierBody$3$normalize$unit(text, normalize, unit) {
  90001. var t1, next, second, t2;
  90002. for (t1 = this.scanner; true;) {
  90003. next = t1.peekChar$0();
  90004. if (next == null)
  90005. break;
  90006. else if (unit && next === 45) {
  90007. second = t1.peekChar$1(1);
  90008. if (second != null)
  90009. if (second !== 46)
  90010. t2 = second >= 48 && second <= 57;
  90011. else
  90012. t2 = true;
  90013. else
  90014. t2 = false;
  90015. if (t2)
  90016. break;
  90017. text._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  90018. } else if (normalize && next === 95) {
  90019. t1.readChar$0();
  90020. text._contents += A.Primitives_stringFromCharCode(45);
  90021. } else {
  90022. if (next !== 95) {
  90023. if (!(next >= 97 && next <= 122))
  90024. t2 = next >= 65 && next <= 90;
  90025. else
  90026. t2 = true;
  90027. t2 = t2 || next >= 128;
  90028. } else
  90029. t2 = true;
  90030. if (!t2)
  90031. t2 = next >= 48 && next <= 57 || next === 45;
  90032. else
  90033. t2 = true;
  90034. if (t2)
  90035. text._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  90036. else if (next === 92)
  90037. text._contents += A.S(this.escape$0());
  90038. else
  90039. break;
  90040. }
  90041. }
  90042. },
  90043. _parser0$_identifierBody$1(text) {
  90044. return this._parser0$_identifierBody$3$normalize$unit(text, false, false);
  90045. },
  90046. string$0() {
  90047. var buffer, next, t2,
  90048. t1 = this.scanner,
  90049. quote = t1.readChar$0();
  90050. if (quote !== 39 && quote !== 34)
  90051. t1.error$2$position(0, "Expected string.", t1._string_scanner$_position - 1);
  90052. buffer = new A.StringBuffer("");
  90053. for (; true;) {
  90054. next = t1.peekChar$0();
  90055. if (next === quote) {
  90056. t1.readChar$0();
  90057. break;
  90058. } else if (next == null || next === 10 || next === 13 || next === 12)
  90059. t1.error$1(0, "Expected " + A.Primitives_stringFromCharCode(quote) + ".");
  90060. else if (next === 92) {
  90061. t2 = t1.peekChar$1(1);
  90062. if (t2 === 10 || t2 === 13 || t2 === 12) {
  90063. t1.readChar$0();
  90064. t1.readChar$0();
  90065. } else
  90066. buffer._contents += A.Primitives_stringFromCharCode(A.consumeEscapedCharacter0(t1));
  90067. } else
  90068. buffer._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  90069. }
  90070. t1 = buffer._contents;
  90071. return t1.charCodeAt(0) == 0 ? t1 : t1;
  90072. },
  90073. declarationValue$1$allowEmpty(allowEmpty) {
  90074. var t1, t2, wroteNewline, next, start, end, t3, url, _this = this,
  90075. buffer = new A.StringBuffer(""),
  90076. brackets = A._setArrayType([], type$.JSArray_int);
  90077. $label0$1:
  90078. for (t1 = _this.scanner, t2 = _this.get$string(), wroteNewline = false; true;) {
  90079. next = t1.peekChar$0();
  90080. switch (next) {
  90081. case 92:
  90082. buffer._contents += A.S(_this.escape$1$identifierStart(true));
  90083. wroteNewline = false;
  90084. break;
  90085. case 34:
  90086. case 39:
  90087. start = t1._string_scanner$_position;
  90088. t2.call$0();
  90089. end = t1._string_scanner$_position;
  90090. buffer._contents += B.JSString_methods.substring$2(t1.string, start, end);
  90091. wroteNewline = false;
  90092. break;
  90093. case 47:
  90094. if (t1.peekChar$1(1) === 42) {
  90095. t3 = _this.get$loudComment();
  90096. start = t1._string_scanner$_position;
  90097. t3.call$0();
  90098. end = t1._string_scanner$_position;
  90099. buffer._contents += B.JSString_methods.substring$2(t1.string, start, end);
  90100. } else
  90101. buffer._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  90102. wroteNewline = false;
  90103. break;
  90104. case 32:
  90105. case 9:
  90106. if (!wroteNewline) {
  90107. t3 = t1.peekChar$1(1);
  90108. t3 = !(t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12);
  90109. } else
  90110. t3 = true;
  90111. if (t3)
  90112. buffer._contents += A.Primitives_stringFromCharCode(32);
  90113. t1.readChar$0();
  90114. break;
  90115. case 10:
  90116. case 13:
  90117. case 12:
  90118. t3 = t1.peekChar$1(-1);
  90119. if (!(t3 === 10 || t3 === 13 || t3 === 12))
  90120. buffer._contents += "\n";
  90121. t1.readChar$0();
  90122. wroteNewline = true;
  90123. break;
  90124. case 40:
  90125. case 123:
  90126. case 91:
  90127. next.toString;
  90128. buffer._contents += A.Primitives_stringFromCharCode(next);
  90129. brackets.push(A.opposite0(t1.readChar$0()));
  90130. wroteNewline = false;
  90131. break;
  90132. case 41:
  90133. case 125:
  90134. case 93:
  90135. if (brackets.length === 0)
  90136. break $label0$1;
  90137. next.toString;
  90138. buffer._contents += A.Primitives_stringFromCharCode(next);
  90139. t1.expectChar$1(brackets.pop());
  90140. wroteNewline = false;
  90141. break;
  90142. case 59:
  90143. if (brackets.length === 0)
  90144. break $label0$1;
  90145. buffer._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  90146. break;
  90147. case 117:
  90148. case 85:
  90149. url = _this.tryUrl$0();
  90150. if (url != null)
  90151. buffer._contents += url;
  90152. else
  90153. buffer._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  90154. wroteNewline = false;
  90155. break;
  90156. default:
  90157. if (next == null)
  90158. break $label0$1;
  90159. if (_this.lookingAtIdentifier$0())
  90160. buffer._contents += _this.identifier$0();
  90161. else
  90162. buffer._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  90163. wroteNewline = false;
  90164. break;
  90165. }
  90166. }
  90167. if (brackets.length !== 0)
  90168. t1.expectChar$1(B.JSArray_methods.get$last(brackets));
  90169. if (!allowEmpty && buffer._contents.length === 0)
  90170. t1.error$1(0, "Expected token.");
  90171. t1 = buffer._contents;
  90172. return t1.charCodeAt(0) == 0 ? t1 : t1;
  90173. },
  90174. declarationValue$0() {
  90175. return this.declarationValue$1$allowEmpty(false);
  90176. },
  90177. tryUrl$0() {
  90178. var buffer, next, t2, _this = this,
  90179. t1 = _this.scanner,
  90180. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  90181. if (!_this.scanIdentifier$1("url"))
  90182. return null;
  90183. if (!t1.scanChar$1(40)) {
  90184. t1.set$state(start);
  90185. return null;
  90186. }
  90187. _this.whitespace$0();
  90188. buffer = new A.StringBuffer("");
  90189. buffer._contents = "" + "url(";
  90190. for (; true;) {
  90191. next = t1.peekChar$0();
  90192. if (next == null)
  90193. break;
  90194. else if (next === 92)
  90195. buffer._contents += A.S(_this.escape$0());
  90196. else {
  90197. if (next !== 37)
  90198. if (next !== 38)
  90199. if (next !== 35)
  90200. t2 = next >= 42 && next <= 126 || next >= 128;
  90201. else
  90202. t2 = true;
  90203. else
  90204. t2 = true;
  90205. else
  90206. t2 = true;
  90207. if (t2)
  90208. buffer._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  90209. else if (next === 32 || next === 9 || next === 10 || next === 13 || next === 12) {
  90210. _this.whitespace$0();
  90211. if (t1.peekChar$0() !== 41)
  90212. break;
  90213. } else if (next === 41) {
  90214. t2 = buffer._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  90215. return t2.charCodeAt(0) == 0 ? t2 : t2;
  90216. } else
  90217. break;
  90218. }
  90219. }
  90220. t1.set$state(start);
  90221. return null;
  90222. },
  90223. variableName$0() {
  90224. this.scanner.expectChar$1(36);
  90225. return this.identifier$1$normalize(true);
  90226. },
  90227. escape$1$identifierStart(identifierStart) {
  90228. var value, first, i, next, t2, exception,
  90229. _s25_ = "Expected escape sequence.",
  90230. t1 = this.scanner,
  90231. start = t1._string_scanner$_position;
  90232. t1.expectChar$1(92);
  90233. value = 0;
  90234. first = t1.peekChar$0();
  90235. if (first == null)
  90236. t1.error$1(0, _s25_);
  90237. else if (first === 10 || first === 13 || first === 12)
  90238. t1.error$1(0, _s25_);
  90239. else if (A.isHex0(first)) {
  90240. for (i = 0; i < 6; ++i) {
  90241. next = t1.peekChar$0();
  90242. if (next == null || !A.isHex0(next))
  90243. break;
  90244. value *= 16;
  90245. value += A.asHex0(t1.readChar$0());
  90246. }
  90247. this.scanCharIf$1(A.character0__isWhitespace$closure());
  90248. } else
  90249. value = t1.readChar$0();
  90250. if (identifierStart) {
  90251. t2 = value;
  90252. t2 = t2 === 95 || A.isAlphabetic1(t2) || t2 >= 128;
  90253. } else {
  90254. t2 = value;
  90255. t2 = t2 === 95 || A.isAlphabetic1(t2) || t2 >= 128 || A.isDigit0(t2) || t2 === 45;
  90256. }
  90257. if (t2)
  90258. try {
  90259. t2 = A.Primitives_stringFromCharCode(value);
  90260. return t2;
  90261. } catch (exception) {
  90262. if (type$.RangeError._is(A.unwrapException(exception)))
  90263. t1.error$3$length$position(0, "Invalid Unicode code point.", t1._string_scanner$_position - start, start);
  90264. else
  90265. throw exception;
  90266. }
  90267. else {
  90268. if (!(value <= 31))
  90269. if (!J.$eq$(value, 127))
  90270. t1 = identifierStart && A.isDigit0(value);
  90271. else
  90272. t1 = true;
  90273. else
  90274. t1 = true;
  90275. if (t1) {
  90276. t1 = "" + A.Primitives_stringFromCharCode(92);
  90277. if (value > 15)
  90278. t1 += A.Primitives_stringFromCharCode(A.hexCharFor0(B.JSNumber_methods._shrOtherPositive$1(value, 4)));
  90279. t1 = t1 + A.Primitives_stringFromCharCode(A.hexCharFor0(value & 15)) + A.Primitives_stringFromCharCode(32);
  90280. return t1.charCodeAt(0) == 0 ? t1 : t1;
  90281. } else
  90282. return A.String_String$fromCharCodes(A._setArrayType([92, value], type$.JSArray_int), 0, null);
  90283. }
  90284. },
  90285. escape$0() {
  90286. return this.escape$1$identifierStart(false);
  90287. },
  90288. scanCharIf$1(condition) {
  90289. var t1 = this.scanner;
  90290. if (!condition.call$1(t1.peekChar$0()))
  90291. return false;
  90292. t1.readChar$0();
  90293. return true;
  90294. },
  90295. scanIdentChar$2$caseSensitive(char, caseSensitive) {
  90296. var t3,
  90297. t1 = new A.Parser_scanIdentChar_matches0(caseSensitive, char),
  90298. t2 = this.scanner,
  90299. next = t2.peekChar$0();
  90300. if (next != null && t1.call$1(next)) {
  90301. t2.readChar$0();
  90302. return true;
  90303. } else if (next === 92) {
  90304. t3 = t2._string_scanner$_position;
  90305. if (t1.call$1(A.consumeEscapedCharacter0(t2)))
  90306. return true;
  90307. t2.set$state(new A._SpanScannerState(t2, t3));
  90308. }
  90309. return false;
  90310. },
  90311. scanIdentChar$1(char) {
  90312. return this.scanIdentChar$2$caseSensitive(char, false);
  90313. },
  90314. expectIdentChar$1(letter) {
  90315. var t1;
  90316. if (this.scanIdentChar$2$caseSensitive(letter, false))
  90317. return;
  90318. t1 = this.scanner;
  90319. t1.error$2$position(0, 'Expected "' + A.Primitives_stringFromCharCode(letter) + '".', t1._string_scanner$_position);
  90320. },
  90321. lookingAtIdentifier$1($forward) {
  90322. var t1, first, second;
  90323. if ($forward == null)
  90324. $forward = 0;
  90325. t1 = this.scanner;
  90326. first = t1.peekChar$1($forward);
  90327. if (first == null)
  90328. return false;
  90329. if (first === 95 || A.isAlphabetic1(first) || first >= 128 || first === 92)
  90330. return true;
  90331. if (first !== 45)
  90332. return false;
  90333. second = t1.peekChar$1($forward + 1);
  90334. if (second == null)
  90335. return false;
  90336. return second === 95 || A.isAlphabetic1(second) || second >= 128 || second === 92 || second === 45;
  90337. },
  90338. lookingAtIdentifier$0() {
  90339. return this.lookingAtIdentifier$1(null);
  90340. },
  90341. lookingAtIdentifierBody$0() {
  90342. var t1,
  90343. next = this.scanner.peekChar$0();
  90344. if (next != null)
  90345. t1 = next === 95 || A.isAlphabetic1(next) || next >= 128 || A.isDigit0(next) || next === 45 || next === 92;
  90346. else
  90347. t1 = false;
  90348. return t1;
  90349. },
  90350. scanIdentifier$2$caseSensitive(text, caseSensitive) {
  90351. var t1, t2, _this = this;
  90352. if (!_this.lookingAtIdentifier$0())
  90353. return false;
  90354. t1 = _this.scanner;
  90355. t2 = t1._string_scanner$_position;
  90356. if (_this._parser0$_consumeIdentifier$2(text, caseSensitive) && !_this.lookingAtIdentifierBody$0())
  90357. return true;
  90358. else {
  90359. t1.set$state(new A._SpanScannerState(t1, t2));
  90360. return false;
  90361. }
  90362. },
  90363. scanIdentifier$1(text) {
  90364. return this.scanIdentifier$2$caseSensitive(text, false);
  90365. },
  90366. _parser0$_consumeIdentifier$2(text, caseSensitive) {
  90367. var t1, t2, t3;
  90368. for (t1 = new A.CodeUnits(text), t1 = new A.ListIterator(t1, t1.get$length(t1)), t2 = A._instanceType(t1)._precomputed1; t1.moveNext$0();) {
  90369. t3 = t1.__internal$_current;
  90370. if (!this.scanIdentChar$2$caseSensitive(t3 == null ? t2._as(t3) : t3, caseSensitive))
  90371. return false;
  90372. }
  90373. return true;
  90374. },
  90375. expectIdentifier$2$name(text, $name) {
  90376. var t1, start, t2, t3, t4, t5, t6;
  90377. if ($name == null)
  90378. $name = '"' + text + '"';
  90379. t1 = this.scanner;
  90380. start = t1._string_scanner$_position;
  90381. for (t2 = new A.CodeUnits(text), t2 = new A.ListIterator(t2, t2.get$length(t2)), t3 = "Expected " + $name, t4 = t3 + ".", t5 = A._instanceType(t2)._precomputed1; t2.moveNext$0();) {
  90382. t6 = t2.__internal$_current;
  90383. if (this.scanIdentChar$2$caseSensitive(t6 == null ? t5._as(t6) : t6, false))
  90384. continue;
  90385. t1.error$2$position(0, t4, start);
  90386. }
  90387. if (!this.lookingAtIdentifierBody$0())
  90388. return;
  90389. t1.error$2$position(0, t3, start);
  90390. },
  90391. expectIdentifier$1(text) {
  90392. return this.expectIdentifier$2$name(text, null);
  90393. },
  90394. rawText$1(consumer) {
  90395. var t1 = this.scanner,
  90396. start = t1._string_scanner$_position;
  90397. consumer.call$0();
  90398. return t1.substring$1(0, start);
  90399. },
  90400. error$3(_, message, span, trace) {
  90401. var exception = new A.StringScannerException(this.scanner.string, message, span);
  90402. if (trace == null)
  90403. throw A.wrapException(exception);
  90404. else
  90405. A.throwWithTrace0(exception, trace);
  90406. },
  90407. error$2($receiver, message, span) {
  90408. return this.error$3($receiver, message, span, null);
  90409. },
  90410. withErrorMessage$1$2(message, callback) {
  90411. var error, stackTrace, t1, exception;
  90412. try {
  90413. t1 = callback.call$0();
  90414. return t1;
  90415. } catch (exception) {
  90416. t1 = A.unwrapException(exception);
  90417. if (type$.SourceSpanFormatException._is(t1)) {
  90418. error = t1;
  90419. stackTrace = A.getTraceFromException(exception);
  90420. t1 = J.get$span$z(error);
  90421. A.throwWithTrace0(new A.SourceSpanFormatException(error.get$source(), message, t1), stackTrace);
  90422. } else
  90423. throw exception;
  90424. }
  90425. },
  90426. withErrorMessage$2(message, callback) {
  90427. return this.withErrorMessage$1$2(message, callback, type$.dynamic);
  90428. },
  90429. wrapSpanFormatException$1$1(callback) {
  90430. var error, stackTrace, span, startPosition, t1, exception;
  90431. try {
  90432. t1 = callback.call$0();
  90433. return t1;
  90434. } catch (exception) {
  90435. t1 = A.unwrapException(exception);
  90436. if (type$.SourceSpanFormatException._is(t1)) {
  90437. error = t1;
  90438. stackTrace = A.getTraceFromException(exception);
  90439. span = J.get$span$z(error);
  90440. if (A.startsWithIgnoreCase0(error._span_exception$_message, "expected") && J.get$length$asx(span) === 0) {
  90441. startPosition = this._parser0$_firstNewlineBefore$1(J.get$start$z(span).offset);
  90442. if (!J.$eq$(startPosition, J.get$start$z(span).offset))
  90443. span = J.get$file$x(span).span$2(0, startPosition, startPosition);
  90444. }
  90445. A.throwWithTrace0(new A.SassFormatException0(error._span_exception$_message, span), stackTrace);
  90446. } else
  90447. throw exception;
  90448. }
  90449. },
  90450. wrapSpanFormatException$1(callback) {
  90451. return this.wrapSpanFormatException$1$1(callback, type$.dynamic);
  90452. },
  90453. _parser0$_firstNewlineBefore$1(position) {
  90454. var t1, lastNewline, codeUnit,
  90455. index = position - 1;
  90456. for (t1 = this.scanner.string, lastNewline = null; index >= 0;) {
  90457. codeUnit = B.JSString_methods.codeUnitAt$1(t1, index);
  90458. if (!(codeUnit === 32 || codeUnit === 9 || codeUnit === 10 || codeUnit === 13 || codeUnit === 12))
  90459. return lastNewline == null ? position : lastNewline;
  90460. if (codeUnit === 10 || codeUnit === 13 || codeUnit === 12)
  90461. lastNewline = index;
  90462. --index;
  90463. }
  90464. return position;
  90465. }
  90466. };
  90467. A.Parser__parseIdentifier_closure0.prototype = {
  90468. call$0() {
  90469. var t1 = this.$this,
  90470. result = t1.identifier$0();
  90471. t1.scanner.expectDone$0();
  90472. return result;
  90473. },
  90474. $signature: 30
  90475. };
  90476. A.Parser_scanIdentChar_matches0.prototype = {
  90477. call$1(actual) {
  90478. var t1 = this.char;
  90479. return this.caseSensitive ? actual === t1 : A.characterEqualsIgnoreCase0(t1, actual);
  90480. },
  90481. $signature: 57
  90482. };
  90483. A.PlaceholderSelector0.prototype = {
  90484. accept$1$1(visitor) {
  90485. return visitor.visitPlaceholderSelector$1(this);
  90486. },
  90487. accept$1(visitor) {
  90488. return this.accept$1$1(visitor, type$.dynamic);
  90489. },
  90490. addSuffix$1(suffix) {
  90491. return new A.PlaceholderSelector0(this.name + suffix);
  90492. },
  90493. $eq(_, other) {
  90494. if (other == null)
  90495. return false;
  90496. return other instanceof A.PlaceholderSelector0 && other.name === this.name;
  90497. },
  90498. get$hashCode(_) {
  90499. return B.JSString_methods.get$hashCode(this.name);
  90500. }
  90501. };
  90502. A.PlainCssCallable0.prototype = {
  90503. $eq(_, other) {
  90504. if (other == null)
  90505. return false;
  90506. return other instanceof A.PlainCssCallable0 && this.name === other.name;
  90507. },
  90508. get$hashCode(_) {
  90509. return B.JSString_methods.get$hashCode(this.name);
  90510. },
  90511. $isAsyncCallable0: 1,
  90512. $isCallable0: 1,
  90513. get$name(receiver) {
  90514. return this.name;
  90515. }
  90516. };
  90517. A.PrefixedMapView0.prototype = {
  90518. get$keys(_) {
  90519. return new A._PrefixedKeys0(this);
  90520. },
  90521. get$length(_) {
  90522. var t1 = this._prefixed_map_view0$_map;
  90523. return t1.get$length(t1);
  90524. },
  90525. get$isEmpty(_) {
  90526. var t1 = this._prefixed_map_view0$_map;
  90527. return t1.get$isEmpty(t1);
  90528. },
  90529. get$isNotEmpty(_) {
  90530. var t1 = this._prefixed_map_view0$_map;
  90531. return t1.get$isNotEmpty(t1);
  90532. },
  90533. $index(_, key) {
  90534. return typeof key == "string" && B.JSString_methods.startsWith$1(key, this._prefixed_map_view0$_prefix) ? this._prefixed_map_view0$_map.$index(0, J.substring$1$s(key, this._prefixed_map_view0$_prefix.length)) : null;
  90535. },
  90536. containsKey$1(key) {
  90537. return typeof key == "string" && B.JSString_methods.startsWith$1(key, this._prefixed_map_view0$_prefix) && this._prefixed_map_view0$_map.containsKey$1(J.substring$1$s(key, this._prefixed_map_view0$_prefix.length));
  90538. }
  90539. };
  90540. A._PrefixedKeys0.prototype = {
  90541. get$length(_) {
  90542. var t1 = this._prefixed_map_view0$_view._prefixed_map_view0$_map;
  90543. return t1.get$length(t1);
  90544. },
  90545. get$iterator(_) {
  90546. var t1 = this._prefixed_map_view0$_view._prefixed_map_view0$_map;
  90547. t1 = J.map$1$1$ax(t1.get$keys(t1), new A._PrefixedKeys_iterator_closure0(this), type$.String);
  90548. return t1.get$iterator(t1);
  90549. },
  90550. contains$1(_, key) {
  90551. return this._prefixed_map_view0$_view.containsKey$1(key);
  90552. }
  90553. };
  90554. A._PrefixedKeys_iterator_closure0.prototype = {
  90555. call$1(key) {
  90556. return this.$this._prefixed_map_view0$_view._prefixed_map_view0$_prefix + key;
  90557. },
  90558. $signature: 5
  90559. };
  90560. A.PseudoSelector0.prototype = {
  90561. get$isHostContext() {
  90562. return this.isClass && this.name === "host-context" && this.selector != null;
  90563. },
  90564. get$specificity() {
  90565. var result, _this = this,
  90566. value = _this._pseudo$__PseudoSelector_specificity_FI;
  90567. if (value === $) {
  90568. result = new A.PseudoSelector_specificity_closure0(_this).call$0();
  90569. _this._pseudo$__PseudoSelector_specificity_FI !== $ && A.throwUnnamedLateFieldADI();
  90570. _this._pseudo$__PseudoSelector_specificity_FI = result;
  90571. value = result;
  90572. }
  90573. return value;
  90574. },
  90575. addSuffix$1(suffix) {
  90576. var _this = this;
  90577. if (_this.argument != null || _this.selector != null)
  90578. _this.super$SimpleSelector$addSuffix0(suffix);
  90579. return A.PseudoSelector$0(_this.name + suffix, null, !_this.isClass, null);
  90580. },
  90581. unify$1(compound) {
  90582. var other, result, t2, addedThis, _i, simple, _this = this,
  90583. t1 = _this.name;
  90584. if (t1 === "host" || t1 === "host-context") {
  90585. if (!B.JSArray_methods.every$1(compound, new A.PseudoSelector_unify_closure0()))
  90586. return null;
  90587. } else if (compound.length === 1) {
  90588. other = B.JSArray_methods.get$first(compound);
  90589. if (!(other instanceof A.UniversalSelector0))
  90590. if (other instanceof A.PseudoSelector0)
  90591. t1 = other.isClass && other.name === "host" || other.get$isHostContext();
  90592. else
  90593. t1 = false;
  90594. else
  90595. t1 = true;
  90596. if (t1)
  90597. return other.unify$1(A._setArrayType([_this], type$.JSArray_SimpleSelector_2));
  90598. }
  90599. if (B.JSArray_methods.contains$1(compound, _this))
  90600. return compound;
  90601. result = A._setArrayType([], type$.JSArray_SimpleSelector_2);
  90602. for (t1 = compound.length, t2 = !_this.isClass, addedThis = false, _i = 0; _i < compound.length; compound.length === t1 || (0, A.throwConcurrentModificationError)(compound), ++_i) {
  90603. simple = compound[_i];
  90604. if (simple instanceof A.PseudoSelector0 && !simple.isClass) {
  90605. if (t2)
  90606. return null;
  90607. result.push(_this);
  90608. addedThis = true;
  90609. }
  90610. result.push(simple);
  90611. }
  90612. if (!addedThis)
  90613. result.push(_this);
  90614. return result;
  90615. },
  90616. isSuperselector$1(other) {
  90617. var selector, t1, _this = this;
  90618. if (_this.super$SimpleSelector$isSuperselector0(other))
  90619. return true;
  90620. selector = _this.selector;
  90621. if (selector == null)
  90622. return _this.$eq(0, other);
  90623. if (other instanceof A.PseudoSelector0 && !_this.isClass && !other.isClass && _this.normalizedName === "slotted" && other.name === _this.name) {
  90624. t1 = A.NullableExtension_andThen0(other.selector, selector.get$isSuperselector());
  90625. return t1 == null ? false : t1;
  90626. }
  90627. t1 = type$.JSArray_SimpleSelector_2;
  90628. return A.compoundIsSuperselector0(A.CompoundSelector$0(A._setArrayType([_this], t1)), A.CompoundSelector$0(A._setArrayType([other], t1)), null);
  90629. },
  90630. accept$1$1(visitor) {
  90631. return visitor.visitPseudoSelector$1(this);
  90632. },
  90633. accept$1(visitor) {
  90634. return this.accept$1$1(visitor, type$.dynamic);
  90635. },
  90636. $eq(_, other) {
  90637. var _this = this;
  90638. if (other == null)
  90639. return false;
  90640. return other instanceof A.PseudoSelector0 && other.name === _this.name && other.isClass === _this.isClass && other.argument == _this.argument && J.$eq$(other.selector, _this.selector);
  90641. },
  90642. get$hashCode(_) {
  90643. var _this = this,
  90644. t1 = B.JSString_methods.get$hashCode(_this.name),
  90645. t2 = !_this.isClass ? 519018 : 218159;
  90646. return (t1 ^ t2 ^ J.get$hashCode$(_this.argument) ^ J.get$hashCode$(_this.selector)) >>> 0;
  90647. }
  90648. };
  90649. A.PseudoSelector_specificity_closure0.prototype = {
  90650. call$0() {
  90651. var selector, t2,
  90652. t1 = this.$this;
  90653. if (!t1.isClass)
  90654. return 1;
  90655. selector = t1.selector;
  90656. if (selector == null)
  90657. return A.SimpleSelector0.prototype.get$specificity.call(t1);
  90658. switch (t1.normalizedName) {
  90659. case "where":
  90660. return 0;
  90661. case "is":
  90662. case "not":
  90663. case "has":
  90664. case "matches":
  90665. t1 = selector.components;
  90666. return A.IterableIntegerExtension_get_max(new A.MappedListIterable(t1, new A.PseudoSelector_specificity__closure1(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,int>")));
  90667. case "nth-child":
  90668. case "nth-last-child":
  90669. t1 = A.SimpleSelector0.prototype.get$specificity.call(t1);
  90670. t2 = selector.components;
  90671. return t1 + A.IterableIntegerExtension_get_max(new A.MappedListIterable(t2, new A.PseudoSelector_specificity__closure2(), A._arrayInstanceType(t2)._eval$1("MappedListIterable<1,int>")));
  90672. default:
  90673. return A.SimpleSelector0.prototype.get$specificity.call(t1);
  90674. }
  90675. },
  90676. $signature: 12
  90677. };
  90678. A.PseudoSelector_specificity__closure1.prototype = {
  90679. call$1(component) {
  90680. return component.get$specificity();
  90681. },
  90682. $signature: 243
  90683. };
  90684. A.PseudoSelector_specificity__closure2.prototype = {
  90685. call$1(component) {
  90686. return component.get$specificity();
  90687. },
  90688. $signature: 243
  90689. };
  90690. A.PseudoSelector_unify_closure0.prototype = {
  90691. call$1(simple) {
  90692. var t1;
  90693. if (simple instanceof A.PseudoSelector0)
  90694. t1 = simple.isClass && simple.name === "host" || simple.selector != null;
  90695. else
  90696. t1 = false;
  90697. return t1;
  90698. },
  90699. $signature: 13
  90700. };
  90701. A.PublicMemberMapView0.prototype = {
  90702. get$keys(_) {
  90703. var t1 = this._public_member_map_view0$_inner;
  90704. return J.where$1$ax(t1.get$keys(t1), A.utils0__isPublic$closure());
  90705. },
  90706. containsKey$1(key) {
  90707. return typeof key == "string" && A.isPublic0(key) && this._public_member_map_view0$_inner.containsKey$1(key);
  90708. },
  90709. $index(_, key) {
  90710. if (typeof key == "string" && A.isPublic0(key))
  90711. return this._public_member_map_view0$_inner.$index(0, key);
  90712. return null;
  90713. }
  90714. };
  90715. A.QualifiedName0.prototype = {
  90716. $eq(_, other) {
  90717. if (other == null)
  90718. return false;
  90719. return other instanceof A.QualifiedName0 && other.name === this.name && other.namespace == this.namespace;
  90720. },
  90721. get$hashCode(_) {
  90722. return B.JSString_methods.get$hashCode(this.name) ^ J.get$hashCode$(this.namespace);
  90723. },
  90724. toString$0(_) {
  90725. var t1 = this.namespace,
  90726. t2 = this.name;
  90727. return t1 == null ? t2 : t1 + "|" + t2;
  90728. }
  90729. };
  90730. A.JSClass0.prototype = {};
  90731. A.JSClassExtension_setCustomInspect_closure.prototype = {
  90732. call$4($self, _, __, ___) {
  90733. return this.inspect.call$1($self);
  90734. },
  90735. call$3($self, _, __) {
  90736. return this.call$4($self, _, __, null);
  90737. },
  90738. "call*": "call$4",
  90739. $requiredArgCount: 3,
  90740. $defaultValues() {
  90741. return [null];
  90742. },
  90743. $signature: 496
  90744. };
  90745. A.JSClassExtension_get_defineMethod_closure.prototype = {
  90746. call$2($name, body) {
  90747. J.get$$prototype$x(this._this)[$name] = A.allowInteropCaptureThisNamed($name, body);
  90748. return null;
  90749. },
  90750. $signature: 240
  90751. };
  90752. A.JSClassExtension_get_defineGetter_closure.prototype = {
  90753. call$2($name, body) {
  90754. A.defineGetter(J.get$$prototype$x(this._this), $name, body, null);
  90755. return null;
  90756. },
  90757. $signature: 240
  90758. };
  90759. A.RenderContext0.prototype = {};
  90760. A.RenderContextOptions0.prototype = {};
  90761. A.RenderContextResult0.prototype = {};
  90762. A.RenderContextResultStats0.prototype = {};
  90763. A.RenderOptions.prototype = {};
  90764. A.RenderResult.prototype = {};
  90765. A.RenderResultStats.prototype = {};
  90766. A.ImporterResult0.prototype = {
  90767. get$sourceMapUrl(_) {
  90768. var t1 = this._result$_sourceMapUrl;
  90769. return t1 == null ? A.Uri_Uri$dataFromString(this.contents, B.C_Utf8Codec, null) : t1;
  90770. }
  90771. };
  90772. A.ReturnRule0.prototype = {
  90773. accept$1$1(visitor) {
  90774. return visitor.visitReturnRule$1(this);
  90775. },
  90776. accept$1(visitor) {
  90777. return this.accept$1$1(visitor, type$.dynamic);
  90778. },
  90779. toString$0(_) {
  90780. return "@return " + this.expression.toString$0(0) + ";";
  90781. },
  90782. $isAstNode0: 1,
  90783. $isStatement0: 1,
  90784. get$span(receiver) {
  90785. return this.span;
  90786. }
  90787. };
  90788. A.main_printError.prototype = {
  90789. call$2(error, stackTrace) {
  90790. var t1 = this._box_0;
  90791. if (t1.printedError)
  90792. $.$get$stderr().writeln$0();
  90793. t1.printedError = true;
  90794. t1 = $.$get$stderr();
  90795. t1.writeln$1(error);
  90796. if (stackTrace != null) {
  90797. t1.writeln$0();
  90798. t1.writeln$1(B.JSString_methods.trimRight$0(A.Trace_Trace$from(stackTrace).get$terse().toString$0(0)));
  90799. }
  90800. },
  90801. $signature: 498
  90802. };
  90803. A.main_closure.prototype = {
  90804. call$0() {
  90805. var t1, exception;
  90806. try {
  90807. t1 = this.destination;
  90808. if (t1 != null && !this._box_0.options.get$emitErrorCss())
  90809. A.deleteFile(t1);
  90810. } catch (exception) {
  90811. if (!(A.unwrapException(exception) instanceof A.FileSystemException))
  90812. throw exception;
  90813. }
  90814. },
  90815. $signature: 1
  90816. };
  90817. A.SassParser0.prototype = {
  90818. get$currentIndentation() {
  90819. return this._sass0$_currentIndentation;
  90820. },
  90821. get$indented() {
  90822. return true;
  90823. },
  90824. styleRuleSelector$0() {
  90825. var t4,
  90826. t1 = this.scanner,
  90827. t2 = t1._string_scanner$_position,
  90828. t3 = new A.StringBuffer(""),
  90829. buffer = new A.InterpolationBuffer0(t3, A._setArrayType([], type$.JSArray_Object));
  90830. do {
  90831. buffer.addInterpolation$1(this.almostAnyValue$1$omitComments(true));
  90832. t4 = t3._contents += A.Primitives_stringFromCharCode(10);
  90833. } while (B.JSString_methods.endsWith$1(B.JSString_methods.trimRight$0(t4.charCodeAt(0) == 0 ? t4 : t4), ",") && this.scanCharIf$1(A.character0__isNewline$closure()));
  90834. return buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  90835. },
  90836. expectStatementSeparator$1($name) {
  90837. var t1, _this = this;
  90838. if (!_this.atEndOfStatement$0())
  90839. _this._sass0$_expectNewline$0();
  90840. if (_this._sass0$_peekIndentation$0() <= _this._sass0$_currentIndentation)
  90841. return;
  90842. t1 = $name == null ? "here" : "beneath a " + $name;
  90843. _this.scanner.error$2$position(0, "Nothing may be indented " + t1 + ".", _this._sass0$_nextIndentationEnd.position);
  90844. },
  90845. expectStatementSeparator$0() {
  90846. return this.expectStatementSeparator$1(null);
  90847. },
  90848. atEndOfStatement$0() {
  90849. var next = this.scanner.peekChar$0();
  90850. return next == null || next === 10 || next === 13 || next === 12;
  90851. },
  90852. lookingAtChildren$0() {
  90853. return this.atEndOfStatement$0() && this._sass0$_peekIndentation$0() > this._sass0$_currentIndentation;
  90854. },
  90855. importArgument$0() {
  90856. var url, span, innerError, stackTrace, start, next, t2, exception, _this = this,
  90857. t1 = _this.scanner;
  90858. switch (t1.peekChar$0()) {
  90859. case 117:
  90860. case 85:
  90861. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  90862. if (_this.scanIdentifier$1("url"))
  90863. if (t1.scanChar$1(40)) {
  90864. t1.set$state(start);
  90865. return _this.super$StylesheetParser$importArgument0();
  90866. } else
  90867. t1.set$state(start);
  90868. break;
  90869. case 39:
  90870. case 34:
  90871. return _this.super$StylesheetParser$importArgument0();
  90872. }
  90873. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  90874. next = t1.peekChar$0();
  90875. while (true) {
  90876. if (next != null)
  90877. if (next !== 44)
  90878. if (next !== 59)
  90879. t2 = !(next === 10 || next === 13 || next === 12);
  90880. else
  90881. t2 = false;
  90882. else
  90883. t2 = false;
  90884. else
  90885. t2 = false;
  90886. if (!t2)
  90887. break;
  90888. t1.readChar$0();
  90889. next = t1.peekChar$0();
  90890. }
  90891. url = t1.substring$1(0, start.position);
  90892. span = t1.spanFrom$1(start);
  90893. if (_this.isPlainImportUrl$1(url))
  90894. return new A.StaticImport0(A.Interpolation$0(A._setArrayType([A.serializeValue0(new A.SassString0(url, true), true, true)], type$.JSArray_Object), span), null, span);
  90895. else
  90896. try {
  90897. t1 = _this.parseImportUrl$1(url);
  90898. return new A.DynamicImport0(t1, span);
  90899. } catch (exception) {
  90900. t1 = A.unwrapException(exception);
  90901. if (type$.FormatException._is(t1)) {
  90902. innerError = t1;
  90903. stackTrace = A.getTraceFromException(exception);
  90904. _this.error$3(0, "Invalid URL: " + J.get$message$x(innerError), span, stackTrace);
  90905. } else
  90906. throw exception;
  90907. }
  90908. },
  90909. scanElse$1(ifIndentation) {
  90910. var t1, t2, startIndentation, startNextIndentation, startNextIndentationEnd, _this = this;
  90911. if (_this._sass0$_peekIndentation$0() !== ifIndentation)
  90912. return false;
  90913. t1 = _this.scanner;
  90914. t2 = t1._string_scanner$_position;
  90915. startIndentation = _this._sass0$_currentIndentation;
  90916. startNextIndentation = _this._sass0$_nextIndentation;
  90917. startNextIndentationEnd = _this._sass0$_nextIndentationEnd;
  90918. _this._sass0$_readIndentation$0();
  90919. if (t1.scanChar$1(64) && _this.scanIdentifier$1("else"))
  90920. return true;
  90921. t1.set$state(new A._SpanScannerState(t1, t2));
  90922. _this._sass0$_currentIndentation = startIndentation;
  90923. _this._sass0$_nextIndentation = startNextIndentation;
  90924. _this._sass0$_nextIndentationEnd = startNextIndentationEnd;
  90925. return false;
  90926. },
  90927. children$1(_, child) {
  90928. var children = A._setArrayType([], type$.JSArray_Statement_2);
  90929. this._sass0$_whileIndentedLower$1(new A.SassParser_children_closure0(this, child, children));
  90930. return children;
  90931. },
  90932. statements$1(statement) {
  90933. var statements, t2, child,
  90934. t1 = this.scanner,
  90935. first = t1.peekChar$0();
  90936. if (first === 9 || first === 32)
  90937. t1.error$3$length$position(0, string$.Indent, t1._string_scanner$_position, 0);
  90938. statements = A._setArrayType([], type$.JSArray_Statement_2);
  90939. for (t2 = t1.string.length; t1._string_scanner$_position !== t2;) {
  90940. child = this._sass0$_child$1(statement);
  90941. if (child != null)
  90942. statements.push(child);
  90943. this._sass0$_readIndentation$0();
  90944. }
  90945. return statements;
  90946. },
  90947. _sass0$_child$1(child) {
  90948. var _this = this,
  90949. t1 = _this.scanner;
  90950. switch (t1.peekChar$0()) {
  90951. case 13:
  90952. case 10:
  90953. case 12:
  90954. return null;
  90955. case 36:
  90956. return _this.variableDeclarationWithoutNamespace$0();
  90957. case 47:
  90958. switch (t1.peekChar$1(1)) {
  90959. case 47:
  90960. return _this._sass0$_silentComment$0();
  90961. case 42:
  90962. return _this._sass0$_loudComment$0();
  90963. default:
  90964. return child.call$0();
  90965. }
  90966. default:
  90967. return child.call$0();
  90968. }
  90969. },
  90970. _sass0$_silentComment$0() {
  90971. var buffer, parentIndentation, t3, t4, t5, commentPrefix, i, t6, i0, t7, _this = this,
  90972. t1 = _this.scanner,
  90973. t2 = t1._string_scanner$_position;
  90974. t1.expect$1("//");
  90975. buffer = new A.StringBuffer("");
  90976. parentIndentation = _this._sass0$_currentIndentation;
  90977. t3 = t1.string.length;
  90978. t4 = 1 + parentIndentation;
  90979. t5 = 2 + parentIndentation;
  90980. $label0$0:
  90981. do {
  90982. commentPrefix = t1.scanChar$1(47) ? "///" : "//";
  90983. for (i = commentPrefix.length; true;) {
  90984. t6 = buffer._contents += commentPrefix;
  90985. for (i0 = i; i0 < _this._sass0$_currentIndentation - parentIndentation; ++i0) {
  90986. t6 += A.Primitives_stringFromCharCode(32);
  90987. buffer._contents = t6;
  90988. }
  90989. while (true) {
  90990. if (t1._string_scanner$_position !== t3) {
  90991. t7 = t1.peekChar$0();
  90992. t7 = !(t7 === 10 || t7 === 13 || t7 === 12);
  90993. } else
  90994. t7 = false;
  90995. if (!t7)
  90996. break;
  90997. t6 += A.Primitives_stringFromCharCode(t1.readChar$0());
  90998. buffer._contents = t6;
  90999. }
  91000. buffer._contents = t6 + "\n";
  91001. if (_this._sass0$_peekIndentation$0() < parentIndentation)
  91002. break $label0$0;
  91003. if (_this._sass0$_peekIndentation$0() === parentIndentation) {
  91004. if (t1.peekChar$1(t4) === 47 && t1.peekChar$1(t5) === 47)
  91005. _this._sass0$_readIndentation$0();
  91006. break;
  91007. }
  91008. _this._sass0$_readIndentation$0();
  91009. }
  91010. } while (t1.scan$1("//"));
  91011. t3 = buffer._contents;
  91012. return _this.lastSilentComment = new A.SilentComment0(t3.charCodeAt(0) == 0 ? t3 : t3, t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  91013. },
  91014. _sass0$_loudComment$0() {
  91015. var t3, t4, buffer, parentIndentation, t5, t6, first, beginningOfComment, t7, end, i, _this = this,
  91016. t1 = _this.scanner,
  91017. t2 = t1._string_scanner$_position;
  91018. t1.expect$1("/*");
  91019. t3 = new A.StringBuffer("");
  91020. t4 = A._setArrayType([], type$.JSArray_Object);
  91021. buffer = new A.InterpolationBuffer0(t3, t4);
  91022. t3._contents = "" + "/*";
  91023. parentIndentation = _this._sass0$_currentIndentation;
  91024. for (t5 = t1.string, t6 = t5.length, first = true; true; first = false) {
  91025. if (first) {
  91026. beginningOfComment = t1._string_scanner$_position;
  91027. _this.spaces$0();
  91028. t7 = t1.peekChar$0();
  91029. if (t7 === 10 || t7 === 13 || t7 === 12) {
  91030. _this._sass0$_readIndentation$0();
  91031. t7 = t3._contents += A.Primitives_stringFromCharCode(32);
  91032. } else {
  91033. end = t1._string_scanner$_position;
  91034. t7 = t3._contents += B.JSString_methods.substring$2(t5, beginningOfComment, end);
  91035. }
  91036. } else {
  91037. t7 = t3._contents += "\n";
  91038. t7 += " * ";
  91039. t3._contents = t7;
  91040. }
  91041. for (i = 3; i < _this._sass0$_currentIndentation - parentIndentation; ++i) {
  91042. t7 += A.Primitives_stringFromCharCode(32);
  91043. t3._contents = t7;
  91044. }
  91045. $label0$1:
  91046. for (; t1._string_scanner$_position !== t6;)
  91047. switch (t1.peekChar$0()) {
  91048. case 10:
  91049. case 13:
  91050. case 12:
  91051. break $label0$1;
  91052. case 35:
  91053. if (t1.peekChar$1(1) === 123) {
  91054. t7 = _this.singleInterpolation$0();
  91055. buffer._interpolation_buffer0$_flushText$0();
  91056. t4.push(t7);
  91057. } else
  91058. t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  91059. break;
  91060. default:
  91061. t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  91062. break;
  91063. }
  91064. if (_this._sass0$_peekIndentation$0() <= parentIndentation)
  91065. break;
  91066. for (; _this._sass0$_lookingAtDoubleNewline$0();) {
  91067. _this._sass0$_expectNewline$0();
  91068. t7 = t3._contents += "\n";
  91069. t3._contents = t7 + " *";
  91070. }
  91071. _this._sass0$_readIndentation$0();
  91072. }
  91073. t4 = t3._contents;
  91074. if (!B.JSString_methods.endsWith$1(B.JSString_methods.trimRight$0(t4.charCodeAt(0) == 0 ? t4 : t4), "*/"))
  91075. t3._contents += " */";
  91076. return new A.LoudComment0(buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2))));
  91077. },
  91078. whitespaceWithoutComments$0() {
  91079. var t1, t2, next;
  91080. for (t1 = this.scanner, t2 = t1.string.length; t1._string_scanner$_position !== t2;) {
  91081. next = t1.peekChar$0();
  91082. if (next !== 9 && next !== 32)
  91083. break;
  91084. t1.readChar$0();
  91085. }
  91086. },
  91087. loudComment$0() {
  91088. var next,
  91089. t1 = this.scanner;
  91090. t1.expect$1("/*");
  91091. for (; true;) {
  91092. next = t1.readChar$0();
  91093. if (next === 10 || next === 13 || next === 12)
  91094. t1.error$1(0, "expected */.");
  91095. if (next !== 42)
  91096. continue;
  91097. do
  91098. next = t1.readChar$0();
  91099. while (next === 42);
  91100. if (next === 47)
  91101. break;
  91102. }
  91103. },
  91104. _sass0$_expectNewline$0() {
  91105. var t1 = this.scanner;
  91106. switch (t1.peekChar$0()) {
  91107. case 59:
  91108. t1.error$1(0, string$.semico);
  91109. break;
  91110. case 13:
  91111. t1.readChar$0();
  91112. if (t1.peekChar$0() === 10)
  91113. t1.readChar$0();
  91114. return;
  91115. case 10:
  91116. case 12:
  91117. t1.readChar$0();
  91118. return;
  91119. default:
  91120. t1.error$1(0, "expected newline.");
  91121. }
  91122. },
  91123. _sass0$_lookingAtDoubleNewline$0() {
  91124. var nextChar,
  91125. t1 = this.scanner;
  91126. switch (t1.peekChar$0()) {
  91127. case 13:
  91128. nextChar = t1.peekChar$1(1);
  91129. if (nextChar === 10) {
  91130. t1 = t1.peekChar$1(2);
  91131. return t1 === 10 || t1 === 13 || t1 === 12;
  91132. }
  91133. return nextChar === 13 || nextChar === 12;
  91134. case 10:
  91135. case 12:
  91136. t1 = t1.peekChar$1(1);
  91137. return t1 === 10 || t1 === 13 || t1 === 12;
  91138. default:
  91139. return false;
  91140. }
  91141. },
  91142. _sass0$_whileIndentedLower$1(body) {
  91143. var t1, t2, childIndentation, indentation, t3, t4, _this = this,
  91144. parentIndentation = _this._sass0$_currentIndentation;
  91145. for (t1 = _this.scanner, t2 = t1._sourceFile, childIndentation = null; _this._sass0$_peekIndentation$0() > parentIndentation;) {
  91146. indentation = _this._sass0$_readIndentation$0();
  91147. if (childIndentation == null)
  91148. childIndentation = indentation;
  91149. if (childIndentation !== indentation) {
  91150. t3 = t1._string_scanner$_position;
  91151. t4 = t2.getColumn$1(t3);
  91152. t1.error$3$length$position(0, "Inconsistent indentation, expected " + childIndentation + " spaces.", t2.getColumn$1(t1._string_scanner$_position), t3 - t4);
  91153. }
  91154. body.call$0();
  91155. }
  91156. },
  91157. _sass0$_readIndentation$0() {
  91158. var t1, _this = this,
  91159. currentIndentation = _this._sass0$_nextIndentation;
  91160. if (currentIndentation == null)
  91161. currentIndentation = _this._sass0$_nextIndentation = _this._sass0$_peekIndentation$0();
  91162. _this._sass0$_currentIndentation = currentIndentation;
  91163. t1 = _this._sass0$_nextIndentationEnd;
  91164. t1.toString;
  91165. _this.scanner.set$state(t1);
  91166. _this._sass0$_nextIndentationEnd = _this._sass0$_nextIndentation = null;
  91167. return currentIndentation;
  91168. },
  91169. _sass0$_peekIndentation$0() {
  91170. var t1, t2, t3, start, containsTab, containsSpace, nextIndentation, next, t4, _this = this,
  91171. cached = _this._sass0$_nextIndentation;
  91172. if (cached != null)
  91173. return cached;
  91174. t1 = _this.scanner;
  91175. t2 = t1._string_scanner$_position;
  91176. t3 = t1.string.length;
  91177. if (t2 === t3) {
  91178. _this._sass0$_nextIndentation = 0;
  91179. _this._sass0$_nextIndentationEnd = new A._SpanScannerState(t1, t2);
  91180. return 0;
  91181. }
  91182. start = new A._SpanScannerState(t1, t2);
  91183. if (!_this.scanCharIf$1(A.character0__isNewline$closure()))
  91184. t1.error$2$position(0, "Expected newline.", t1._string_scanner$_position);
  91185. containsTab = A._Cell$();
  91186. containsSpace = A._Cell$();
  91187. nextIndentation = A._Cell$();
  91188. t2 = nextIndentation.__late_helper$_name;
  91189. do {
  91190. containsSpace._value = containsTab._value = false;
  91191. nextIndentation._value = 0;
  91192. for (; true;) {
  91193. next = t1.peekChar$0();
  91194. if (next === 32)
  91195. containsSpace._value = true;
  91196. else if (next === 9)
  91197. containsTab._value = true;
  91198. else
  91199. break;
  91200. t4 = nextIndentation._value;
  91201. if (t4 === nextIndentation)
  91202. A.throwExpression(A.LateError$localNI(t2));
  91203. nextIndentation._value = t4 + 1;
  91204. t1.readChar$0();
  91205. }
  91206. t4 = t1._string_scanner$_position;
  91207. if (t4 === t3) {
  91208. _this._sass0$_nextIndentation = 0;
  91209. _this._sass0$_nextIndentationEnd = new A._SpanScannerState(t1, t4);
  91210. t1.set$state(start);
  91211. return 0;
  91212. }
  91213. } while (_this.scanCharIf$1(A.character0__isNewline$closure()));
  91214. t2 = containsTab._readLocal$0();
  91215. t3 = containsSpace._readLocal$0();
  91216. if (t2) {
  91217. if (t3) {
  91218. t2 = t1._string_scanner$_position;
  91219. t3 = t1._sourceFile;
  91220. t4 = t3.getColumn$1(t2);
  91221. t1.error$3$length$position(0, "Tabs and spaces may not be mixed.", t3.getColumn$1(t1._string_scanner$_position), t2 - t4);
  91222. } else if (_this._sass0$_spaces === true) {
  91223. t2 = t1._string_scanner$_position;
  91224. t3 = t1._sourceFile;
  91225. t4 = t3.getColumn$1(t2);
  91226. t1.error$3$length$position(0, "Expected spaces, was tabs.", t3.getColumn$1(t1._string_scanner$_position), t2 - t4);
  91227. }
  91228. } else if (t3 && _this._sass0$_spaces === false) {
  91229. t2 = t1._string_scanner$_position;
  91230. t3 = t1._sourceFile;
  91231. t4 = t3.getColumn$1(t2);
  91232. t1.error$3$length$position(0, "Expected tabs, was spaces.", t3.getColumn$1(t1._string_scanner$_position), t2 - t4);
  91233. }
  91234. _this._sass0$_nextIndentation = nextIndentation._readLocal$0();
  91235. if (nextIndentation._readLocal$0() > 0)
  91236. if (_this._sass0$_spaces == null)
  91237. _this._sass0$_spaces = containsSpace._readLocal$0();
  91238. _this._sass0$_nextIndentationEnd = new A._SpanScannerState(t1, t1._string_scanner$_position);
  91239. t1.set$state(start);
  91240. return nextIndentation._readLocal$0();
  91241. }
  91242. };
  91243. A.SassParser_children_closure0.prototype = {
  91244. call$0() {
  91245. var parsedChild = this.$this._sass0$_child$1(this.child);
  91246. if (parsedChild != null)
  91247. this.children.push(parsedChild);
  91248. },
  91249. $signature: 0
  91250. };
  91251. A._Exports.prototype = {};
  91252. A._wrapMain_closure.prototype = {
  91253. call$1(_) {
  91254. return A._translateReturnValue(this.main.call$0());
  91255. },
  91256. $signature: 98
  91257. };
  91258. A._wrapMain_closure0.prototype = {
  91259. call$1(args) {
  91260. return A._translateReturnValue(this.main.call$1(A.List_List$from(type$.List_dynamic._as(args), true, type$.String)));
  91261. },
  91262. $signature: 98
  91263. };
  91264. A.ScssParser0.prototype = {
  91265. get$indented() {
  91266. return false;
  91267. },
  91268. get$currentIndentation() {
  91269. return 0;
  91270. },
  91271. styleRuleSelector$0() {
  91272. return this.almostAnyValue$0();
  91273. },
  91274. expectStatementSeparator$1($name) {
  91275. var t1, next;
  91276. this.whitespaceWithoutComments$0();
  91277. t1 = this.scanner;
  91278. if (t1._string_scanner$_position === t1.string.length)
  91279. return;
  91280. next = t1.peekChar$0();
  91281. if (next === 59 || next === 125)
  91282. return;
  91283. t1.expectChar$1(59);
  91284. },
  91285. expectStatementSeparator$0() {
  91286. return this.expectStatementSeparator$1(null);
  91287. },
  91288. atEndOfStatement$0() {
  91289. var next = this.scanner.peekChar$0();
  91290. return next == null || next === 59 || next === 125 || next === 123;
  91291. },
  91292. lookingAtChildren$0() {
  91293. return this.scanner.peekChar$0() === 123;
  91294. },
  91295. scanElse$1(ifIndentation) {
  91296. var t3, _this = this,
  91297. t1 = _this.scanner,
  91298. t2 = t1._string_scanner$_position;
  91299. _this.whitespace$0();
  91300. t3 = t1._string_scanner$_position;
  91301. if (t1.scanChar$1(64)) {
  91302. if (_this.scanIdentifier$2$caseSensitive("else", true))
  91303. return true;
  91304. if (_this.scanIdentifier$2$caseSensitive("elseif", true)) {
  91305. _this.logger.warn$3$deprecation$span(0, string$.x40elsei, true, t1.spanFrom$1(new A._SpanScannerState(t1, t3)));
  91306. t1.set$position(t1._string_scanner$_position - 2);
  91307. return true;
  91308. }
  91309. }
  91310. t1.set$state(new A._SpanScannerState(t1, t2));
  91311. return false;
  91312. },
  91313. children$1(_, child) {
  91314. var children, _this = this,
  91315. t1 = _this.scanner;
  91316. t1.expectChar$1(123);
  91317. _this.whitespaceWithoutComments$0();
  91318. children = A._setArrayType([], type$.JSArray_Statement_2);
  91319. for (; true;)
  91320. switch (t1.peekChar$0()) {
  91321. case 36:
  91322. children.push(_this.variableDeclarationWithoutNamespace$0());
  91323. break;
  91324. case 47:
  91325. switch (t1.peekChar$1(1)) {
  91326. case 47:
  91327. children.push(_this._scss0$_silentComment$0());
  91328. _this.whitespaceWithoutComments$0();
  91329. break;
  91330. case 42:
  91331. children.push(_this._scss0$_loudComment$0());
  91332. _this.whitespaceWithoutComments$0();
  91333. break;
  91334. default:
  91335. children.push(child.call$0());
  91336. break;
  91337. }
  91338. break;
  91339. case 59:
  91340. t1.readChar$0();
  91341. _this.whitespaceWithoutComments$0();
  91342. break;
  91343. case 125:
  91344. t1.expectChar$1(125);
  91345. return children;
  91346. default:
  91347. children.push(child.call$0());
  91348. break;
  91349. }
  91350. },
  91351. statements$1(statement) {
  91352. var t1, t2, child, _this = this,
  91353. statements = A._setArrayType([], type$.JSArray_Statement_2);
  91354. _this.whitespaceWithoutComments$0();
  91355. for (t1 = _this.scanner, t2 = t1.string.length; t1._string_scanner$_position !== t2;)
  91356. switch (t1.peekChar$0()) {
  91357. case 36:
  91358. statements.push(_this.variableDeclarationWithoutNamespace$0());
  91359. break;
  91360. case 47:
  91361. switch (t1.peekChar$1(1)) {
  91362. case 47:
  91363. statements.push(_this._scss0$_silentComment$0());
  91364. _this.whitespaceWithoutComments$0();
  91365. break;
  91366. case 42:
  91367. statements.push(_this._scss0$_loudComment$0());
  91368. _this.whitespaceWithoutComments$0();
  91369. break;
  91370. default:
  91371. child = statement.call$0();
  91372. if (child != null)
  91373. statements.push(child);
  91374. break;
  91375. }
  91376. break;
  91377. case 59:
  91378. t1.readChar$0();
  91379. _this.whitespaceWithoutComments$0();
  91380. break;
  91381. default:
  91382. child = statement.call$0();
  91383. if (child != null)
  91384. statements.push(child);
  91385. break;
  91386. }
  91387. return statements;
  91388. },
  91389. _scss0$_silentComment$0() {
  91390. var t2, t3, _this = this,
  91391. t1 = _this.scanner,
  91392. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  91393. t1.expect$1("//");
  91394. t2 = t1.string.length;
  91395. do {
  91396. while (true) {
  91397. if (t1._string_scanner$_position !== t2) {
  91398. t3 = t1.readChar$0();
  91399. t3 = !(t3 === 10 || t3 === 13 || t3 === 12);
  91400. } else
  91401. t3 = false;
  91402. if (!t3)
  91403. break;
  91404. }
  91405. if (t1._string_scanner$_position === t2)
  91406. break;
  91407. _this.whitespaceWithoutComments$0();
  91408. } while (t1.scan$1("//"));
  91409. if (_this.get$plainCss())
  91410. _this.error$2(0, string$.Silent, t1.spanFrom$1(start));
  91411. return _this.lastSilentComment = new A.SilentComment0(t1.substring$1(0, start.position), t1.spanFrom$1(start));
  91412. },
  91413. _scss0$_loudComment$0() {
  91414. var t3, t4, buffer, t5, endPosition, t6, result,
  91415. t1 = this.scanner,
  91416. t2 = t1._string_scanner$_position;
  91417. t1.expect$1("/*");
  91418. t3 = new A.StringBuffer("");
  91419. t4 = A._setArrayType([], type$.JSArray_Object);
  91420. buffer = new A.InterpolationBuffer0(t3, t4);
  91421. t3._contents = "" + "/*";
  91422. for (; true;)
  91423. switch (t1.peekChar$0()) {
  91424. case 35:
  91425. if (t1.peekChar$1(1) === 123) {
  91426. t5 = this.singleInterpolation$0();
  91427. buffer._interpolation_buffer0$_flushText$0();
  91428. t4.push(t5);
  91429. } else
  91430. t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  91431. break;
  91432. case 42:
  91433. t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  91434. if (t1.peekChar$0() !== 47)
  91435. break;
  91436. t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  91437. endPosition = t1._string_scanner$_position;
  91438. t5 = t1._sourceFile;
  91439. t6 = new A._SpanScannerState(t1, t2).position;
  91440. t1 = new A._FileSpan(t5, t6, endPosition);
  91441. t1._FileSpan$3(t5, t6, endPosition);
  91442. t6 = type$.Object;
  91443. t5 = A.List_List$of(t4, true, t6);
  91444. t2 = t3._contents;
  91445. if (t2.length !== 0)
  91446. t5.push(t2.charCodeAt(0) == 0 ? t2 : t2);
  91447. result = A.List_List$from(t5, false, t6);
  91448. result.fixed$length = Array;
  91449. result.immutable$list = Array;
  91450. t2 = new A.Interpolation0(result, t1);
  91451. t2.Interpolation$20(t5, t1);
  91452. return new A.LoudComment0(t2);
  91453. case 13:
  91454. t1.readChar$0();
  91455. if (t1.peekChar$0() !== 10)
  91456. t3._contents += A.Primitives_stringFromCharCode(10);
  91457. break;
  91458. case 12:
  91459. t1.readChar$0();
  91460. t3._contents += A.Primitives_stringFromCharCode(10);
  91461. break;
  91462. default:
  91463. t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  91464. break;
  91465. }
  91466. }
  91467. };
  91468. A.Selector0.prototype = {
  91469. assertNotBogus$1$name($name) {
  91470. var t1;
  91471. if (!this.accept$1(B._IsBogusVisitor_true0))
  91472. return;
  91473. t1 = this.toString$0(0);
  91474. A.EvaluationContext_current0().warn$2$deprecation(0, "$" + $name + ": " + (t1 + string$.x20is_nov), true);
  91475. },
  91476. toString$0(_) {
  91477. var visitor = A._SerializeVisitor$0(null, true, null, true, false, null, true);
  91478. this.accept$1(visitor);
  91479. return visitor._serialize0$_buffer.toString$0(0);
  91480. }
  91481. };
  91482. A._IsInvisibleVisitor2.prototype = {
  91483. visitSelectorList$1(list) {
  91484. return B.JSArray_methods.every$1(list.components, this.get$visitComplexSelector());
  91485. },
  91486. visitComplexSelector$1(complex) {
  91487. var t1;
  91488. if (!this.super$AnySelectorVisitor$visitComplexSelector0(complex))
  91489. t1 = this.includeBogus && complex.accept$1(B._IsBogusVisitor_false0);
  91490. else
  91491. t1 = true;
  91492. return t1;
  91493. },
  91494. visitPlaceholderSelector$1(placeholder) {
  91495. return true;
  91496. },
  91497. visitPseudoSelector$1(pseudo) {
  91498. var t1,
  91499. selector = pseudo.selector;
  91500. if (selector == null)
  91501. return false;
  91502. if (pseudo.name === "not")
  91503. t1 = this.includeBogus && selector.accept$1(B._IsBogusVisitor_true0);
  91504. else
  91505. t1 = this.visitSelectorList$1(selector);
  91506. return t1;
  91507. }
  91508. };
  91509. A._IsBogusVisitor0.prototype = {
  91510. visitComplexSelector$1(complex) {
  91511. var t2, t3,
  91512. t1 = complex.components;
  91513. if (t1.length === 0)
  91514. return complex.leadingCombinators.length !== 0;
  91515. else {
  91516. t2 = complex.leadingCombinators;
  91517. t3 = this.includeLeadingCombinator ? 0 : 1;
  91518. return t2.length > t3 || B.JSArray_methods.get$last(t1).combinators.length !== 0 || B.JSArray_methods.any$1(t1, new A._IsBogusVisitor_visitComplexSelector_closure0(this));
  91519. }
  91520. },
  91521. visitPseudoSelector$1(pseudo) {
  91522. var selector = pseudo.selector;
  91523. if (selector == null)
  91524. return false;
  91525. return pseudo.name === "has" ? selector.accept$1(B._IsBogusVisitor_false0) : selector.accept$1(B._IsBogusVisitor_true0);
  91526. }
  91527. };
  91528. A._IsBogusVisitor_visitComplexSelector_closure0.prototype = {
  91529. call$1(component) {
  91530. return component.combinators.length > 1 || this.$this.visitCompoundSelector$1(component.selector);
  91531. },
  91532. $signature: 51
  91533. };
  91534. A._IsUselessVisitor0.prototype = {
  91535. visitComplexSelector$1(complex) {
  91536. return complex.leadingCombinators.length > 1 || B.JSArray_methods.any$1(complex.components, new A._IsUselessVisitor_visitComplexSelector_closure0(this));
  91537. },
  91538. visitPseudoSelector$1(pseudo) {
  91539. return pseudo.accept$1(B._IsBogusVisitor_true0);
  91540. }
  91541. };
  91542. A._IsUselessVisitor_visitComplexSelector_closure0.prototype = {
  91543. call$1(component) {
  91544. return component.combinators.length > 1 || this.$this.visitCompoundSelector$1(component.selector);
  91545. },
  91546. $signature: 51
  91547. };
  91548. A.__IsBogusVisitor_Object_AnySelectorVisitor0.prototype = {};
  91549. A.__IsInvisibleVisitor_Object_AnySelectorVisitor0.prototype = {};
  91550. A.__IsUselessVisitor_Object_AnySelectorVisitor0.prototype = {};
  91551. A.SelectorExpression0.prototype = {
  91552. accept$1$1(visitor) {
  91553. return visitor.visitSelectorExpression$1(this);
  91554. },
  91555. accept$1(visitor) {
  91556. return this.accept$1$1(visitor, type$.dynamic);
  91557. },
  91558. toString$0(_) {
  91559. return "&";
  91560. },
  91561. $isExpression0: 1,
  91562. $isAstNode0: 1,
  91563. get$span(receiver) {
  91564. return this.span;
  91565. }
  91566. };
  91567. A._nest_closure0.prototype = {
  91568. call$1($arguments) {
  91569. var t1 = {},
  91570. selectors = J.$index$asx($arguments, 0).get$asList();
  91571. if (selectors.length === 0)
  91572. throw A.wrapException(A.SassScriptException$0(string$.x24selec, null));
  91573. t1.first = true;
  91574. return new A.MappedListIterable(selectors, new A._nest__closure1(t1), A._arrayInstanceType(selectors)._eval$1("MappedListIterable<1,SelectorList0>")).reduce$1(0, new A._nest__closure2()).get$asSassList();
  91575. },
  91576. $signature: 22
  91577. };
  91578. A._nest__closure1.prototype = {
  91579. call$1(selector) {
  91580. var t1 = this._box_0,
  91581. result = A.SassApiValue_assertSelector0(selector, !t1.first, null);
  91582. t1.first = false;
  91583. return result;
  91584. },
  91585. $signature: 229
  91586. };
  91587. A._nest__closure2.prototype = {
  91588. call$2($parent, child) {
  91589. return child.resolveParentSelectors$1($parent);
  91590. },
  91591. $signature: 225
  91592. };
  91593. A._append_closure1.prototype = {
  91594. call$1($arguments) {
  91595. var selectors = J.$index$asx($arguments, 0).get$asList();
  91596. if (selectors.length === 0)
  91597. throw A.wrapException(A.SassScriptException$0(string$.x24selec, null));
  91598. return new A.MappedListIterable(selectors, new A._append__closure1(), A._arrayInstanceType(selectors)._eval$1("MappedListIterable<1,SelectorList0>")).reduce$1(0, new A._append__closure2()).get$asSassList();
  91599. },
  91600. $signature: 22
  91601. };
  91602. A._append__closure1.prototype = {
  91603. call$1(selector) {
  91604. return A.SassApiValue_assertSelector0(selector, false, null);
  91605. },
  91606. $signature: 229
  91607. };
  91608. A._append__closure2.prototype = {
  91609. call$2($parent, child) {
  91610. var t1 = child.components;
  91611. return A.SelectorList$0(new A.MappedListIterable(t1, new A._append___closure0($parent), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector0>"))).resolveParentSelectors$1($parent);
  91612. },
  91613. $signature: 225
  91614. };
  91615. A._append___closure0.prototype = {
  91616. call$1(complex) {
  91617. var t1, component, newCompound, t2;
  91618. if (complex.leadingCombinators.length !== 0)
  91619. throw A.wrapException(A.SassScriptException$0("Can't append " + complex.toString$0(0) + " to " + this.parent.toString$0(0) + ".", null));
  91620. t1 = complex.components;
  91621. component = B.JSArray_methods.get$first(t1);
  91622. newCompound = A._prependParent0(component.selector);
  91623. if (newCompound == null)
  91624. throw A.wrapException(A.SassScriptException$0("Can't append " + complex.toString$0(0) + " to " + this.parent.toString$0(0) + ".", null));
  91625. t2 = A._setArrayType([new A.ComplexSelectorComponent0(newCompound, A.List_List$unmodifiable(component.combinators, type$.Combinator_2))], type$.JSArray_ComplexSelectorComponent_2);
  91626. B.JSArray_methods.addAll$1(t2, A.SubListIterable$(t1, 1, null, A._arrayInstanceType(t1)._precomputed1));
  91627. return A.ComplexSelector$0(B.List_empty13, t2, false);
  91628. },
  91629. $signature: 71
  91630. };
  91631. A._extend_closure0.prototype = {
  91632. call$1($arguments) {
  91633. var target, source,
  91634. _s8_ = "selector",
  91635. _s8_0 = "extendee",
  91636. _s8_1 = "extender",
  91637. t1 = J.getInterceptor$asx($arguments),
  91638. selector = A.SassApiValue_assertSelector0(t1.$index($arguments, 0), false, _s8_);
  91639. selector.assertNotBogus$1$name(_s8_);
  91640. target = A.SassApiValue_assertSelector0(t1.$index($arguments, 1), false, _s8_0);
  91641. target.assertNotBogus$1$name(_s8_0);
  91642. source = A.SassApiValue_assertSelector0(t1.$index($arguments, 2), false, _s8_1);
  91643. source.assertNotBogus$1$name(_s8_1);
  91644. return A.ExtensionStore__extendOrReplace0(selector, source, target, B.ExtendMode_allTargets_allTargets0, A.EvaluationContext_current0().get$currentCallableSpan()).get$asSassList();
  91645. },
  91646. $signature: 22
  91647. };
  91648. A._replace_closure0.prototype = {
  91649. call$1($arguments) {
  91650. var target, source,
  91651. _s8_ = "selector",
  91652. _s8_0 = "original",
  91653. _s11_ = "replacement",
  91654. t1 = J.getInterceptor$asx($arguments),
  91655. selector = A.SassApiValue_assertSelector0(t1.$index($arguments, 0), false, _s8_);
  91656. selector.assertNotBogus$1$name(_s8_);
  91657. target = A.SassApiValue_assertSelector0(t1.$index($arguments, 1), false, _s8_0);
  91658. target.assertNotBogus$1$name(_s8_0);
  91659. source = A.SassApiValue_assertSelector0(t1.$index($arguments, 2), false, _s11_);
  91660. source.assertNotBogus$1$name(_s11_);
  91661. return A.ExtensionStore__extendOrReplace0(selector, source, target, B.ExtendMode_replace_replace0, A.EvaluationContext_current0().get$currentCallableSpan()).get$asSassList();
  91662. },
  91663. $signature: 22
  91664. };
  91665. A._unify_closure0.prototype = {
  91666. call$1($arguments) {
  91667. var selector2, result,
  91668. _s9_ = "selector1",
  91669. _s9_0 = "selector2",
  91670. t1 = J.getInterceptor$asx($arguments),
  91671. selector1 = A.SassApiValue_assertSelector0(t1.$index($arguments, 0), false, _s9_);
  91672. selector1.assertNotBogus$1$name(_s9_);
  91673. selector2 = A.SassApiValue_assertSelector0(t1.$index($arguments, 1), false, _s9_0);
  91674. selector2.assertNotBogus$1$name(_s9_0);
  91675. result = selector1.unify$1(selector2);
  91676. return result == null ? B.C__SassNull0 : result.get$asSassList();
  91677. },
  91678. $signature: 3
  91679. };
  91680. A._isSuperselector_closure0.prototype = {
  91681. call$1($arguments) {
  91682. var selector2,
  91683. t1 = J.getInterceptor$asx($arguments),
  91684. selector1 = A.SassApiValue_assertSelector0(t1.$index($arguments, 0), false, "super");
  91685. selector1.assertNotBogus$1$name("super");
  91686. selector2 = A.SassApiValue_assertSelector0(t1.$index($arguments, 1), false, "sub");
  91687. selector2.assertNotBogus$1$name("sub");
  91688. return A.listIsSuperselector0(selector1.components, selector2.components) ? B.SassBoolean_true0 : B.SassBoolean_false0;
  91689. },
  91690. $signature: 20
  91691. };
  91692. A._simpleSelectors_closure0.prototype = {
  91693. call$1($arguments) {
  91694. var t1 = A.SassApiValue_assertCompoundSelector0(J.$index$asx($arguments, 0), "selector").components;
  91695. return A.SassList$0(new A.MappedListIterable(t1, new A._simpleSelectors__closure0(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value0>")), B.ListSeparator_rXA0, false);
  91696. },
  91697. $signature: 22
  91698. };
  91699. A._simpleSelectors__closure0.prototype = {
  91700. call$1(simple) {
  91701. return new A.SassString0(A.serializeSelector0(simple, true), false);
  91702. },
  91703. $signature: 501
  91704. };
  91705. A._parse_closure0.prototype = {
  91706. call$1($arguments) {
  91707. return A.SassApiValue_assertSelector0(J.$index$asx($arguments, 0), false, "selector").get$asSassList();
  91708. },
  91709. $signature: 22
  91710. };
  91711. A.SelectorParser0.prototype = {
  91712. parse$0() {
  91713. return this.wrapSpanFormatException$1(new A.SelectorParser_parse_closure0(this));
  91714. },
  91715. parseCompoundSelector$0() {
  91716. return this.wrapSpanFormatException$1(new A.SelectorParser_parseCompoundSelector_closure0(this));
  91717. },
  91718. _selector$_selectorList$0() {
  91719. var t3, t4, lineBreak, _this = this,
  91720. t1 = _this.scanner,
  91721. t2 = t1._sourceFile,
  91722. previousLine = t2.getLine$1(t1._string_scanner$_position),
  91723. components = A._setArrayType([_this._selector$_complexSelector$0()], type$.JSArray_ComplexSelector_2);
  91724. _this.whitespace$0();
  91725. for (t3 = t1.string.length; t1.scanChar$1(44);) {
  91726. _this.whitespace$0();
  91727. if (t1.peekChar$0() === 44)
  91728. continue;
  91729. t4 = t1._string_scanner$_position;
  91730. if (t4 === t3)
  91731. break;
  91732. lineBreak = t2.getLine$1(t4) !== previousLine;
  91733. if (lineBreak)
  91734. previousLine = t2.getLine$1(t1._string_scanner$_position);
  91735. components.push(_this._selector$_complexSelector$1$lineBreak(lineBreak));
  91736. }
  91737. return A.SelectorList$0(components);
  91738. },
  91739. _selector$_complexSelector$1$lineBreak(lineBreak) {
  91740. var t2, t3, t4, lastCompound, initialCombinators, next, t5, result, _this = this,
  91741. t1 = type$.JSArray_Combinator_2,
  91742. combinators = A._setArrayType([], t1),
  91743. components = A._setArrayType([], type$.JSArray_ComplexSelectorComponent_2);
  91744. $label0$1:
  91745. for (t2 = _this.scanner, t3 = B.Set_2Vk2._map, t4 = type$.Combinator_2, lastCompound = null, initialCombinators = null; true;) {
  91746. _this.whitespace$0();
  91747. next = t2.peekChar$0();
  91748. switch (next) {
  91749. case 43:
  91750. t2.readChar$0();
  91751. combinators.push(B.Combinator_4QF0);
  91752. break;
  91753. case 62:
  91754. t2.readChar$0();
  91755. combinators.push(B.Combinator_Cht0);
  91756. break;
  91757. case 126:
  91758. t2.readChar$0();
  91759. combinators.push(B.Combinator_Htt0);
  91760. break;
  91761. default:
  91762. if (next != null)
  91763. t5 = !t3.containsKey$1(next) && !_this.lookingAtIdentifier$0();
  91764. else
  91765. t5 = true;
  91766. if (t5)
  91767. break $label0$1;
  91768. if (lastCompound != null) {
  91769. result = A.List_List$from(combinators, false, t4);
  91770. result.fixed$length = Array;
  91771. result.immutable$list = Array;
  91772. components.push(new A.ComplexSelectorComponent0(lastCompound, result));
  91773. } else if (combinators.length !== 0)
  91774. initialCombinators = combinators;
  91775. lastCompound = _this._selector$_compoundSelector$0();
  91776. combinators = A._setArrayType([], t1);
  91777. if (t2.peekChar$0() === 38)
  91778. t2.error$1(0, string$.x22x26__ma);
  91779. break;
  91780. }
  91781. }
  91782. if (lastCompound != null)
  91783. components.push(new A.ComplexSelectorComponent0(lastCompound, A.List_List$unmodifiable(combinators, t4)));
  91784. else if (combinators.length !== 0)
  91785. initialCombinators = combinators;
  91786. else
  91787. t2.error$1(0, "expected selector.");
  91788. return A.ComplexSelector$0(initialCombinators == null ? B.List_empty13 : initialCombinators, components, lineBreak);
  91789. },
  91790. _selector$_complexSelector$0() {
  91791. return this._selector$_complexSelector$1$lineBreak(false);
  91792. },
  91793. _selector$_compoundSelector$0() {
  91794. var t2,
  91795. components = A._setArrayType([this._selector$_simpleSelector$0()], type$.JSArray_SimpleSelector_2),
  91796. t1 = this.scanner;
  91797. while (true) {
  91798. t2 = t1.peekChar$0();
  91799. if (!(t2 === 42 || t2 === 91 || t2 === 46 || t2 === 35 || t2 === 37 || t2 === 58))
  91800. break;
  91801. components.push(this._selector$_simpleSelector$1$allowParent(false));
  91802. }
  91803. return A.CompoundSelector$0(components);
  91804. },
  91805. _selector$_simpleSelector$1$allowParent(allowParent) {
  91806. var $name, text, t2, suffix, _this = this,
  91807. t1 = _this.scanner,
  91808. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  91809. if (allowParent == null)
  91810. allowParent = _this._selector$_allowParent;
  91811. switch (t1.peekChar$0()) {
  91812. case 91:
  91813. return _this._selector$_attributeSelector$0();
  91814. case 46:
  91815. t1.expectChar$1(46);
  91816. return new A.ClassSelector0(_this.identifier$0());
  91817. case 35:
  91818. t1.expectChar$1(35);
  91819. return new A.IDSelector0(_this.identifier$0());
  91820. case 37:
  91821. t1.expectChar$1(37);
  91822. $name = _this.identifier$0();
  91823. if (!_this._selector$_allowPlaceholder)
  91824. _this.error$2(0, string$.Placeh, t1.spanFrom$1(start));
  91825. return new A.PlaceholderSelector0($name);
  91826. case 58:
  91827. return _this._selector$_pseudoSelector$0();
  91828. case 38:
  91829. t1.expectChar$1(38);
  91830. if (_this.lookingAtIdentifierBody$0()) {
  91831. text = new A.StringBuffer("");
  91832. _this._parser0$_identifierBody$1(text);
  91833. if (text._contents.length === 0)
  91834. t1.error$1(0, "Expected identifier body.");
  91835. t2 = text._contents;
  91836. suffix = t2.charCodeAt(0) == 0 ? t2 : t2;
  91837. } else
  91838. suffix = null;
  91839. if (!allowParent)
  91840. _this.error$2(0, "Parent selectors aren't allowed here.", t1.spanFrom$1(start));
  91841. return new A.ParentSelector0(suffix);
  91842. default:
  91843. return _this._selector$_typeOrUniversalSelector$0();
  91844. }
  91845. },
  91846. _selector$_simpleSelector$0() {
  91847. return this._selector$_simpleSelector$1$allowParent(null);
  91848. },
  91849. _selector$_attributeSelector$0() {
  91850. var $name, operator, next, value, modifier, _this = this, _null = null,
  91851. t1 = _this.scanner;
  91852. t1.expectChar$1(91);
  91853. _this.whitespace$0();
  91854. $name = _this._selector$_attributeName$0();
  91855. _this.whitespace$0();
  91856. if (t1.scanChar$1(93))
  91857. return new A.AttributeSelector0($name, _null, _null, _null);
  91858. operator = _this._selector$_attributeOperator$0();
  91859. _this.whitespace$0();
  91860. next = t1.peekChar$0();
  91861. value = next === 39 || next === 34 ? _this.string$0() : _this.identifier$0();
  91862. _this.whitespace$0();
  91863. next = t1.peekChar$0();
  91864. modifier = next != null && A.isAlphabetic1(next) ? A.Primitives_stringFromCharCode(t1.readChar$0()) : _null;
  91865. t1.expectChar$1(93);
  91866. return new A.AttributeSelector0($name, operator, value, modifier);
  91867. },
  91868. _selector$_attributeName$0() {
  91869. var nameOrNamespace, _this = this,
  91870. t1 = _this.scanner;
  91871. if (t1.scanChar$1(42)) {
  91872. t1.expectChar$1(124);
  91873. return new A.QualifiedName0(_this.identifier$0(), "*");
  91874. }
  91875. if (t1.scanChar$1(124))
  91876. return new A.QualifiedName0(_this.identifier$0(), "");
  91877. nameOrNamespace = _this.identifier$0();
  91878. if (t1.peekChar$0() !== 124 || t1.peekChar$1(1) === 61)
  91879. return new A.QualifiedName0(nameOrNamespace, null);
  91880. t1.readChar$0();
  91881. return new A.QualifiedName0(_this.identifier$0(), nameOrNamespace);
  91882. },
  91883. _selector$_attributeOperator$0() {
  91884. var t1 = this.scanner,
  91885. t2 = t1._string_scanner$_position;
  91886. switch (t1.readChar$0()) {
  91887. case 61:
  91888. return B.AttributeOperator_ES60;
  91889. case 126:
  91890. t1.expectChar$1(61);
  91891. return B.AttributeOperator_r600;
  91892. case 124:
  91893. t1.expectChar$1(61);
  91894. return B.AttributeOperator_ivT0;
  91895. case 94:
  91896. t1.expectChar$1(61);
  91897. return B.AttributeOperator_eot0;
  91898. case 36:
  91899. t1.expectChar$1(61);
  91900. return B.AttributeOperator_BGd0;
  91901. case 42:
  91902. t1.expectChar$1(61);
  91903. return B.AttributeOperator_8aB0;
  91904. default:
  91905. t1.error$2$position(0, 'Expected "]".', t2);
  91906. }
  91907. },
  91908. _selector$_pseudoSelector$0() {
  91909. var element, $name, unvendored, selector, argument, t2, _this = this, _null = null,
  91910. t1 = _this.scanner;
  91911. t1.expectChar$1(58);
  91912. element = t1.scanChar$1(58);
  91913. $name = _this.identifier$0();
  91914. if (!t1.scanChar$1(40))
  91915. return A.PseudoSelector$0($name, _null, element, _null);
  91916. _this.whitespace$0();
  91917. unvendored = A.unvendor0($name);
  91918. if (element)
  91919. if ($._selectorPseudoElements0.contains$1(0, unvendored)) {
  91920. selector = _this._selector$_selectorList$0();
  91921. argument = _null;
  91922. } else {
  91923. argument = _this.declarationValue$1$allowEmpty(true);
  91924. selector = _null;
  91925. }
  91926. else if ($._selectorPseudoClasses0.contains$1(0, unvendored)) {
  91927. selector = _this._selector$_selectorList$0();
  91928. argument = _null;
  91929. } else if (unvendored === "nth-child" || unvendored === "nth-last-child") {
  91930. argument = _this._selector$_aNPlusB$0();
  91931. _this.whitespace$0();
  91932. t2 = t1.peekChar$1(-1);
  91933. if ((t2 === 32 || t2 === 9 || t2 === 10 || t2 === 13 || t2 === 12) && t1.peekChar$0() !== 41) {
  91934. _this.expectIdentifier$1("of");
  91935. argument += " of";
  91936. _this.whitespace$0();
  91937. selector = _this._selector$_selectorList$0();
  91938. } else
  91939. selector = _null;
  91940. } else {
  91941. argument = B.JSString_methods.trimRight$0(_this.declarationValue$1$allowEmpty(true));
  91942. selector = _null;
  91943. }
  91944. t1.expectChar$1(41);
  91945. return A.PseudoSelector$0($name, argument, element, selector);
  91946. },
  91947. _selector$_aNPlusB$0() {
  91948. var t2, first, t3, next, last, _this = this,
  91949. t1 = _this.scanner;
  91950. switch (t1.peekChar$0()) {
  91951. case 101:
  91952. case 69:
  91953. _this.expectIdentifier$1("even");
  91954. return "even";
  91955. case 111:
  91956. case 79:
  91957. _this.expectIdentifier$1("odd");
  91958. return "odd";
  91959. case 43:
  91960. case 45:
  91961. t2 = "" + A.Primitives_stringFromCharCode(t1.readChar$0());
  91962. break;
  91963. default:
  91964. t2 = "";
  91965. }
  91966. first = t1.peekChar$0();
  91967. if (first != null && A.isDigit0(first)) {
  91968. while (true) {
  91969. t3 = t1.peekChar$0();
  91970. if (!(t3 != null && t3 >= 48 && t3 <= 57))
  91971. break;
  91972. t2 += A.Primitives_stringFromCharCode(t1.readChar$0());
  91973. }
  91974. _this.whitespace$0();
  91975. if (!_this.scanIdentChar$1(110))
  91976. return t2.charCodeAt(0) == 0 ? t2 : t2;
  91977. } else
  91978. _this.expectIdentChar$1(110);
  91979. t2 += A.Primitives_stringFromCharCode(110);
  91980. _this.whitespace$0();
  91981. next = t1.peekChar$0();
  91982. if (next !== 43 && next !== 45)
  91983. return t2.charCodeAt(0) == 0 ? t2 : t2;
  91984. t2 += A.Primitives_stringFromCharCode(t1.readChar$0());
  91985. _this.whitespace$0();
  91986. last = t1.peekChar$0();
  91987. if (last == null || !A.isDigit0(last))
  91988. t1.error$1(0, "Expected a number.");
  91989. while (true) {
  91990. t3 = t1.peekChar$0();
  91991. if (!(t3 != null && t3 >= 48 && t3 <= 57))
  91992. break;
  91993. t2 += A.Primitives_stringFromCharCode(t1.readChar$0());
  91994. }
  91995. return t2.charCodeAt(0) == 0 ? t2 : t2;
  91996. },
  91997. _selector$_typeOrUniversalSelector$0() {
  91998. var nameOrNamespace, _this = this,
  91999. t1 = _this.scanner,
  92000. first = t1.peekChar$0();
  92001. if (first === 42) {
  92002. t1.readChar$0();
  92003. if (!t1.scanChar$1(124))
  92004. return new A.UniversalSelector0(null);
  92005. if (t1.scanChar$1(42))
  92006. return new A.UniversalSelector0("*");
  92007. else
  92008. return new A.TypeSelector0(new A.QualifiedName0(_this.identifier$0(), "*"));
  92009. } else if (first === 124) {
  92010. t1.readChar$0();
  92011. if (t1.scanChar$1(42))
  92012. return new A.UniversalSelector0("");
  92013. else
  92014. return new A.TypeSelector0(new A.QualifiedName0(_this.identifier$0(), ""));
  92015. }
  92016. nameOrNamespace = _this.identifier$0();
  92017. if (!t1.scanChar$1(124))
  92018. return new A.TypeSelector0(new A.QualifiedName0(nameOrNamespace, null));
  92019. else if (t1.scanChar$1(42))
  92020. return new A.UniversalSelector0(nameOrNamespace);
  92021. else
  92022. return new A.TypeSelector0(new A.QualifiedName0(_this.identifier$0(), nameOrNamespace));
  92023. }
  92024. };
  92025. A.SelectorParser_parse_closure0.prototype = {
  92026. call$0() {
  92027. var t1 = this.$this,
  92028. selector = t1._selector$_selectorList$0();
  92029. t1 = t1.scanner;
  92030. if (t1._string_scanner$_position !== t1.string.length)
  92031. t1.error$1(0, "expected selector.");
  92032. return selector;
  92033. },
  92034. $signature: 45
  92035. };
  92036. A.SelectorParser_parseCompoundSelector_closure0.prototype = {
  92037. call$0() {
  92038. var t1 = this.$this,
  92039. compound = t1._selector$_compoundSelector$0();
  92040. t1 = t1.scanner;
  92041. if (t1._string_scanner$_position !== t1.string.length)
  92042. t1.error$1(0, "expected selector.");
  92043. return compound;
  92044. },
  92045. $signature: 502
  92046. };
  92047. A.serialize_closure0.prototype = {
  92048. call$1(codeUnit) {
  92049. return codeUnit > 127;
  92050. },
  92051. $signature: 57
  92052. };
  92053. A._SerializeVisitor0.prototype = {
  92054. visitCssStylesheet$1(node) {
  92055. var t1, t2, t3, t4, t5, t6, t7, t8, previous, previous0, t9, _this = this;
  92056. for (t1 = J.get$iterator$ax(node.get$children(node)), t2 = !_this._serialize0$_inspect, t3 = _this._serialize0$_style === B.OutputStyle_10, t4 = !t3, t5 = type$.CssComment_2, t6 = type$.CssParentNode_2, t7 = _this._serialize0$_buffer, t8 = _this._lineFeed.text, previous = null; t1.moveNext$0();) {
  92057. previous0 = t1.get$current(t1);
  92058. if (t2)
  92059. t9 = t3 ? previous0.accept$1(B._IsInvisibleVisitor_true_true0) : previous0.accept$1(B._IsInvisibleVisitor_true_false0);
  92060. else
  92061. t9 = false;
  92062. if (t9)
  92063. continue;
  92064. if (previous != null) {
  92065. if (t6._is(previous) ? previous.get$isChildless() : !t5._is(previous))
  92066. t7.writeCharCode$1(59);
  92067. if (_this._serialize0$_isTrailingComment$2(previous0, previous)) {
  92068. if (t4)
  92069. t7.writeCharCode$1(32);
  92070. } else {
  92071. if (t4)
  92072. t7.write$1(0, t8);
  92073. if (previous.get$isGroupEnd())
  92074. if (t4)
  92075. t7.write$1(0, t8);
  92076. }
  92077. }
  92078. previous0.accept$1(_this);
  92079. previous = previous0;
  92080. }
  92081. if (previous != null)
  92082. t1 = (t6._is(previous) ? previous.get$isChildless() : !t5._is(previous)) && t4;
  92083. else
  92084. t1 = false;
  92085. if (t1)
  92086. t7.writeCharCode$1(59);
  92087. },
  92088. visitCssComment$1(node) {
  92089. this._serialize0$_buffer.forSpan$2(node.span, new A._SerializeVisitor_visitCssComment_closure0(this, node));
  92090. },
  92091. visitCssAtRule$1(node) {
  92092. var t1, _this = this;
  92093. _this._serialize0$_writeIndentation$0();
  92094. t1 = _this._serialize0$_buffer;
  92095. t1.forSpan$2(node.span, new A._SerializeVisitor_visitCssAtRule_closure0(_this, node));
  92096. if (!node.isChildless) {
  92097. if (_this._serialize0$_style !== B.OutputStyle_10)
  92098. t1.writeCharCode$1(32);
  92099. _this._serialize0$_visitChildren$1(node);
  92100. }
  92101. },
  92102. visitCssMediaRule$1(node) {
  92103. var t1, _this = this;
  92104. _this._serialize0$_writeIndentation$0();
  92105. t1 = _this._serialize0$_buffer;
  92106. t1.forSpan$2(node.span, new A._SerializeVisitor_visitCssMediaRule_closure0(_this, node));
  92107. if (_this._serialize0$_style !== B.OutputStyle_10)
  92108. t1.writeCharCode$1(32);
  92109. _this._serialize0$_visitChildren$1(node);
  92110. },
  92111. visitCssImport$1(node) {
  92112. this._serialize0$_writeIndentation$0();
  92113. this._serialize0$_buffer.forSpan$2(node.span, new A._SerializeVisitor_visitCssImport_closure0(this, node));
  92114. },
  92115. _serialize0$_writeImportUrl$1(url) {
  92116. var urlContents, maybeQuote, _this = this;
  92117. if (_this._serialize0$_style !== B.OutputStyle_10 || B.JSString_methods._codeUnitAt$1(url, 0) !== 117) {
  92118. _this._serialize0$_buffer.write$1(0, url);
  92119. return;
  92120. }
  92121. urlContents = B.JSString_methods.substring$2(url, 4, url.length - 1);
  92122. maybeQuote = B.JSString_methods._codeUnitAt$1(urlContents, 0);
  92123. if (maybeQuote === 39 || maybeQuote === 34)
  92124. _this._serialize0$_buffer.write$1(0, urlContents);
  92125. else
  92126. _this._serialize0$_visitQuotedString$1(urlContents);
  92127. },
  92128. visitCssKeyframeBlock$1(node) {
  92129. var t1, _this = this;
  92130. _this._serialize0$_writeIndentation$0();
  92131. t1 = _this._serialize0$_buffer;
  92132. t1.forSpan$2(node.selector.span, new A._SerializeVisitor_visitCssKeyframeBlock_closure0(_this, node));
  92133. if (_this._serialize0$_style !== B.OutputStyle_10)
  92134. t1.writeCharCode$1(32);
  92135. _this._serialize0$_visitChildren$1(node);
  92136. },
  92137. _serialize0$_visitMediaQuery$1(query) {
  92138. var t2, condition, operator, t3, _this = this,
  92139. t1 = query.modifier;
  92140. if (t1 != null) {
  92141. t2 = _this._serialize0$_buffer;
  92142. t2.write$1(0, t1);
  92143. t2.writeCharCode$1(32);
  92144. }
  92145. t1 = query.type;
  92146. if (t1 != null) {
  92147. t2 = _this._serialize0$_buffer;
  92148. t2.write$1(0, t1);
  92149. if (query.conditions.length !== 0)
  92150. t2.write$1(0, " and ");
  92151. }
  92152. t1 = query.conditions;
  92153. if (t1.length === 1 && J.startsWith$1$s(B.JSArray_methods.get$first(t1), "(not ")) {
  92154. t2 = _this._serialize0$_buffer;
  92155. t2.write$1(0, "not ");
  92156. condition = B.JSArray_methods.get$first(t1);
  92157. t2.write$1(0, B.JSString_methods.substring$2(condition, 5, condition.length - 1));
  92158. } else {
  92159. operator = query.conjunction ? "and" : "or";
  92160. t2 = _this._serialize0$_style === B.OutputStyle_10 ? operator + " " : " " + operator + " ";
  92161. t3 = _this._serialize0$_buffer;
  92162. _this._serialize0$_writeBetween$3(t1, t2, t3.get$write(t3));
  92163. }
  92164. },
  92165. visitCssStyleRule$1(node) {
  92166. var t1, _this = this;
  92167. _this._serialize0$_writeIndentation$0();
  92168. t1 = _this._serialize0$_buffer;
  92169. t1.forSpan$2(node.selector.span, new A._SerializeVisitor_visitCssStyleRule_closure0(_this, node));
  92170. if (_this._serialize0$_style !== B.OutputStyle_10)
  92171. t1.writeCharCode$1(32);
  92172. _this._serialize0$_visitChildren$1(node);
  92173. },
  92174. visitCssSupportsRule$1(node) {
  92175. var t1, _this = this;
  92176. _this._serialize0$_writeIndentation$0();
  92177. t1 = _this._serialize0$_buffer;
  92178. t1.forSpan$2(node.span, new A._SerializeVisitor_visitCssSupportsRule_closure0(_this, node));
  92179. if (_this._serialize0$_style !== B.OutputStyle_10)
  92180. t1.writeCharCode$1(32);
  92181. _this._serialize0$_visitChildren$1(node);
  92182. },
  92183. visitCssDeclaration$1(node) {
  92184. var error, stackTrace, error0, stackTrace0, t1, t2, exception, _this = this;
  92185. _this._serialize0$_writeIndentation$0();
  92186. t1 = node.name;
  92187. _this._serialize0$_write$1(t1);
  92188. t2 = _this._serialize0$_buffer;
  92189. t2.writeCharCode$1(58);
  92190. if (J.startsWith$1$s(t1.get$value(t1), "--") && node.parsedAsCustomProperty) {
  92191. t1 = node.value;
  92192. t2.forSpan$2(t1.get$span(t1), new A._SerializeVisitor_visitCssDeclaration_closure1(_this, node));
  92193. } else {
  92194. if (_this._serialize0$_style !== B.OutputStyle_10)
  92195. t2.writeCharCode$1(32);
  92196. try {
  92197. t2.forSpan$2(node.valueSpanForMap, new A._SerializeVisitor_visitCssDeclaration_closure2(_this, node));
  92198. } catch (exception) {
  92199. t1 = A.unwrapException(exception);
  92200. if (t1 instanceof A.MultiSpanSassScriptException0) {
  92201. error = t1;
  92202. stackTrace = A.getTraceFromException(exception);
  92203. t1 = error.message;
  92204. t2 = node.value;
  92205. t2 = t2.get$span(t2);
  92206. A.throwWithTrace0(new A.MultiSpanSassException0(error.primaryLabel, A.ConstantMap_ConstantMap$from(error.secondarySpans, type$.FileSpan, type$.String), t1, t2), stackTrace);
  92207. } else if (t1 instanceof A.SassScriptException0) {
  92208. error0 = t1;
  92209. stackTrace0 = A.getTraceFromException(exception);
  92210. t1 = node.value;
  92211. A.throwWithTrace0(new A.SassException0(error0.message, t1.get$span(t1)), stackTrace0);
  92212. } else
  92213. throw exception;
  92214. }
  92215. }
  92216. },
  92217. _serialize0$_writeFoldedValue$1(node) {
  92218. var t2, next, t3,
  92219. t1 = node.value,
  92220. scanner = A.StringScanner$(type$.SassString_2._as(t1.get$value(t1))._string0$_text, null, null);
  92221. for (t1 = scanner.string.length, t2 = this._serialize0$_buffer; scanner._string_scanner$_position !== t1;) {
  92222. next = scanner.readChar$0();
  92223. if (next !== 10) {
  92224. t2.writeCharCode$1(next);
  92225. continue;
  92226. }
  92227. t2.writeCharCode$1(32);
  92228. while (true) {
  92229. t3 = scanner.peekChar$0();
  92230. if (!(t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12))
  92231. break;
  92232. scanner.readChar$0();
  92233. }
  92234. }
  92235. },
  92236. _serialize0$_writeReindentedValue$1(node) {
  92237. var _this = this,
  92238. t1 = node.value,
  92239. value = type$.SassString_2._as(t1.get$value(t1))._string0$_text,
  92240. minimumIndentation = _this._serialize0$_minimumIndentation$1(value);
  92241. if (minimumIndentation == null) {
  92242. _this._serialize0$_buffer.write$1(0, value);
  92243. return;
  92244. } else if (minimumIndentation === -1) {
  92245. t1 = _this._serialize0$_buffer;
  92246. t1.write$1(0, A.trimAsciiRight0(value, true));
  92247. t1.writeCharCode$1(32);
  92248. return;
  92249. }
  92250. t1 = node.name;
  92251. t1 = t1.get$span(t1);
  92252. t1 = t1.get$start(t1);
  92253. _this._serialize0$_writeWithIndent$2(value, Math.min(minimumIndentation, t1.file.getColumn$1(t1.offset)));
  92254. },
  92255. _serialize0$_minimumIndentation$1(text) {
  92256. var character, t2, min, next, min0,
  92257. scanner = A.LineScanner$(text),
  92258. t1 = scanner.string.length;
  92259. while (true) {
  92260. if (scanner._string_scanner$_position !== t1) {
  92261. character = scanner.super$StringScanner$readChar();
  92262. scanner._adjustLineAndColumn$1(character);
  92263. t2 = character !== 10;
  92264. } else
  92265. t2 = false;
  92266. if (!t2)
  92267. break;
  92268. }
  92269. if (scanner._string_scanner$_position === t1)
  92270. return scanner.peekChar$1(-1) === 10 ? -1 : null;
  92271. for (min = null; scanner._string_scanner$_position !== t1;) {
  92272. for (; scanner._string_scanner$_position !== t1;) {
  92273. next = scanner.peekChar$0();
  92274. if (next !== 32 && next !== 9)
  92275. break;
  92276. scanner._adjustLineAndColumn$1(scanner.super$StringScanner$readChar());
  92277. }
  92278. if (scanner._string_scanner$_position === t1 || scanner.scanChar$1(10))
  92279. continue;
  92280. min0 = scanner._line_scanner$_column;
  92281. min = min == null ? min0 : Math.min(min, min0);
  92282. while (true) {
  92283. if (scanner._string_scanner$_position !== t1) {
  92284. character = scanner.super$StringScanner$readChar();
  92285. scanner._adjustLineAndColumn$1(character);
  92286. t2 = character !== 10;
  92287. } else
  92288. t2 = false;
  92289. if (!t2)
  92290. break;
  92291. }
  92292. }
  92293. return min == null ? -1 : min;
  92294. },
  92295. _serialize0$_writeWithIndent$2(text, minimumIndentation) {
  92296. var t1, t2, t3, character, lineStart, newlines, end,
  92297. scanner = A.LineScanner$(text);
  92298. for (t1 = scanner.string, t2 = t1.length, t3 = this._serialize0$_buffer; scanner._string_scanner$_position !== t2;) {
  92299. character = scanner.super$StringScanner$readChar();
  92300. scanner._adjustLineAndColumn$1(character);
  92301. if (character === 10)
  92302. break;
  92303. t3.writeCharCode$1(character);
  92304. }
  92305. for (; true;) {
  92306. lineStart = scanner._string_scanner$_position;
  92307. for (newlines = 1; true;) {
  92308. if (scanner._string_scanner$_position === t2) {
  92309. t3.writeCharCode$1(32);
  92310. return;
  92311. }
  92312. character = scanner.super$StringScanner$readChar();
  92313. scanner._adjustLineAndColumn$1(character);
  92314. if (character === 32 || character === 9)
  92315. continue;
  92316. if (character !== 10)
  92317. break;
  92318. lineStart = scanner._string_scanner$_position;
  92319. ++newlines;
  92320. }
  92321. this._serialize0$_writeTimes$2(10, newlines);
  92322. this._serialize0$_writeIndentation$0();
  92323. end = scanner._string_scanner$_position;
  92324. t3.write$1(0, B.JSString_methods.substring$2(t1, lineStart + minimumIndentation, end));
  92325. for (; true;) {
  92326. if (scanner._string_scanner$_position === t2)
  92327. return;
  92328. character = scanner.super$StringScanner$readChar();
  92329. scanner._adjustLineAndColumn$1(character);
  92330. if (character === 10)
  92331. break;
  92332. t3.writeCharCode$1(character);
  92333. }
  92334. }
  92335. },
  92336. _serialize0$_writeCalculationValue$1(value) {
  92337. var left, parenthesizeLeft, operatorWhitespace, t1, t2, right, parenthesizeRight, _this = this;
  92338. if (value instanceof A.Value0)
  92339. value.accept$1(_this);
  92340. else if (value instanceof A.CalculationInterpolation0)
  92341. _this._serialize0$_buffer.write$1(0, value.value);
  92342. else if (value instanceof A.CalculationOperation0) {
  92343. left = value.left;
  92344. if (!(left instanceof A.CalculationInterpolation0))
  92345. parenthesizeLeft = left instanceof A.CalculationOperation0 && left.operator.precedence < value.operator.precedence;
  92346. else
  92347. parenthesizeLeft = true;
  92348. if (parenthesizeLeft)
  92349. _this._serialize0$_buffer.writeCharCode$1(40);
  92350. _this._serialize0$_writeCalculationValue$1(left);
  92351. if (parenthesizeLeft)
  92352. _this._serialize0$_buffer.writeCharCode$1(41);
  92353. operatorWhitespace = _this._serialize0$_style !== B.OutputStyle_10 || value.operator.precedence === 1;
  92354. if (operatorWhitespace)
  92355. _this._serialize0$_buffer.writeCharCode$1(32);
  92356. t1 = _this._serialize0$_buffer;
  92357. t2 = value.operator;
  92358. t1.write$1(0, t2.operator);
  92359. if (operatorWhitespace)
  92360. t1.writeCharCode$1(32);
  92361. right = value.right;
  92362. if (!(right instanceof A.CalculationInterpolation0))
  92363. parenthesizeRight = right instanceof A.CalculationOperation0 && _this._serialize0$_parenthesizeCalculationRhs$2(t2, right.operator);
  92364. else
  92365. parenthesizeRight = true;
  92366. if (parenthesizeRight)
  92367. t1.writeCharCode$1(40);
  92368. _this._serialize0$_writeCalculationValue$1(right);
  92369. if (parenthesizeRight)
  92370. t1.writeCharCode$1(41);
  92371. }
  92372. },
  92373. _serialize0$_parenthesizeCalculationRhs$2(outer, right) {
  92374. if (outer === B.CalculationOperator_OvN0)
  92375. return true;
  92376. if (outer === B.CalculationOperator_IyK0)
  92377. return false;
  92378. return right === B.CalculationOperator_IyK0 || right === B.CalculationOperator_2bx0;
  92379. },
  92380. _serialize0$_writeRgb$1(value) {
  92381. var t3,
  92382. t1 = value._color1$_alpha,
  92383. opaque = A.fuzzyEquals0(t1, 1),
  92384. t2 = this._serialize0$_buffer;
  92385. t2.write$1(0, opaque ? "rgb(" : "rgba(");
  92386. t2.write$1(0, value.get$red(value));
  92387. t3 = this._serialize0$_style === B.OutputStyle_10;
  92388. t2.write$1(0, t3 ? "," : ", ");
  92389. t2.write$1(0, value.get$green(value));
  92390. t2.write$1(0, t3 ? "," : ", ");
  92391. t2.write$1(0, value.get$blue(value));
  92392. if (!opaque) {
  92393. t2.write$1(0, t3 ? "," : ", ");
  92394. this._serialize0$_writeNumber$1(t1);
  92395. }
  92396. t2.writeCharCode$1(41);
  92397. },
  92398. _serialize0$_canUseShortHex$1(color) {
  92399. var t1 = color.get$red(color);
  92400. if ((t1 & 15) === B.JSInt_methods._shrOtherPositive$1(t1, 4)) {
  92401. t1 = color.get$green(color);
  92402. if ((t1 & 15) === B.JSInt_methods._shrOtherPositive$1(t1, 4)) {
  92403. t1 = color.get$blue(color);
  92404. t1 = (t1 & 15) === B.JSInt_methods._shrOtherPositive$1(t1, 4);
  92405. } else
  92406. t1 = false;
  92407. } else
  92408. t1 = false;
  92409. return t1;
  92410. },
  92411. _serialize0$_writeHexComponent$1(color) {
  92412. var t1 = this._serialize0$_buffer;
  92413. t1.writeCharCode$1(A.hexCharFor0(B.JSInt_methods._shrOtherPositive$1(color, 4)));
  92414. t1.writeCharCode$1(A.hexCharFor0(color & 15));
  92415. },
  92416. visitList$1(value) {
  92417. var t2, t3, singleton, t4, t5, _this = this,
  92418. t1 = value._list1$_hasBrackets;
  92419. if (t1)
  92420. _this._serialize0$_buffer.writeCharCode$1(91);
  92421. else if (value._list1$_contents.length === 0) {
  92422. if (!_this._serialize0$_inspect)
  92423. throw A.wrapException(A.SassScriptException$0("() isn't a valid CSS value.", null));
  92424. _this._serialize0$_buffer.write$1(0, "()");
  92425. return;
  92426. }
  92427. t2 = _this._serialize0$_inspect;
  92428. if (t2)
  92429. if (value._list1$_contents.length === 1) {
  92430. t3 = value._list1$_separator;
  92431. t3 = t3 === B.ListSeparator_rXA0 || t3 === B.ListSeparator_zg90;
  92432. singleton = t3;
  92433. } else
  92434. singleton = false;
  92435. else
  92436. singleton = false;
  92437. if (singleton && !t1)
  92438. _this._serialize0$_buffer.writeCharCode$1(40);
  92439. t3 = value._list1$_contents;
  92440. t3 = t2 ? t3 : new A.WhereIterable(t3, new A._SerializeVisitor_visitList_closure2(), A._arrayInstanceType(t3)._eval$1("WhereIterable<1>"));
  92441. t4 = value._list1$_separator;
  92442. t5 = _this._serialize0$_separatorString$1(t4);
  92443. _this._serialize0$_writeBetween$3(t3, t5, t2 ? new A._SerializeVisitor_visitList_closure3(_this, value) : new A._SerializeVisitor_visitList_closure4(_this));
  92444. if (singleton) {
  92445. t2 = _this._serialize0$_buffer;
  92446. t2.write$1(0, t4.separator);
  92447. if (!t1)
  92448. t2.writeCharCode$1(41);
  92449. }
  92450. if (t1)
  92451. _this._serialize0$_buffer.writeCharCode$1(93);
  92452. },
  92453. _serialize0$_separatorString$1(separator) {
  92454. switch (separator) {
  92455. case B.ListSeparator_rXA0:
  92456. return this._serialize0$_style === B.OutputStyle_10 ? "," : ", ";
  92457. case B.ListSeparator_zg90:
  92458. return this._serialize0$_style === B.OutputStyle_10 ? "/" : " / ";
  92459. case B.ListSeparator_EVt0:
  92460. return " ";
  92461. default:
  92462. return "";
  92463. }
  92464. },
  92465. _serialize0$_elementNeedsParens$2(separator, value) {
  92466. var t1;
  92467. if (value instanceof A.SassList0) {
  92468. if (value._list1$_contents.length < 2)
  92469. return false;
  92470. if (value._list1$_hasBrackets)
  92471. return false;
  92472. switch (separator) {
  92473. case B.ListSeparator_rXA0:
  92474. return value._list1$_separator === B.ListSeparator_rXA0;
  92475. case B.ListSeparator_zg90:
  92476. t1 = value._list1$_separator;
  92477. return t1 === B.ListSeparator_rXA0 || t1 === B.ListSeparator_zg90;
  92478. default:
  92479. return value._list1$_separator !== B.ListSeparator_undecided_null_undecided0;
  92480. }
  92481. }
  92482. return false;
  92483. },
  92484. visitMap$1(map) {
  92485. var t1, t2, _this = this;
  92486. if (!_this._serialize0$_inspect)
  92487. throw A.wrapException(A.SassScriptException$0(map.toString$0(0) + " isn't a valid CSS value.", null));
  92488. t1 = _this._serialize0$_buffer;
  92489. t1.writeCharCode$1(40);
  92490. t2 = map._map0$_contents;
  92491. _this._serialize0$_writeBetween$3(t2.get$entries(t2), ", ", new A._SerializeVisitor_visitMap_closure0(_this));
  92492. t1.writeCharCode$1(41);
  92493. },
  92494. _serialize0$_writeMapElement$1(value) {
  92495. var needsParens = value instanceof A.SassList0 && value._list1$_separator === B.ListSeparator_rXA0 && !value._list1$_hasBrackets;
  92496. if (needsParens)
  92497. this._serialize0$_buffer.writeCharCode$1(40);
  92498. value.accept$1(this);
  92499. if (needsParens)
  92500. this._serialize0$_buffer.writeCharCode$1(41);
  92501. },
  92502. visitNumber$1(value) {
  92503. var _this = this,
  92504. asSlash = value.asSlash;
  92505. if (asSlash != null) {
  92506. _this.visitNumber$1(asSlash.item1);
  92507. _this._serialize0$_buffer.writeCharCode$1(47);
  92508. _this.visitNumber$1(asSlash.item2);
  92509. return;
  92510. }
  92511. _this._serialize0$_writeNumber$1(value._number1$_value);
  92512. if (!_this._serialize0$_inspect) {
  92513. if (value.get$numeratorUnits(value).length > 1 || value.get$denominatorUnits(value).length !== 0)
  92514. throw A.wrapException(A.SassScriptException$0(value.toString$0(0) + " isn't a valid CSS value.", null));
  92515. if (value.get$numeratorUnits(value).length !== 0)
  92516. _this._serialize0$_buffer.write$1(0, B.JSArray_methods.get$first(value.get$numeratorUnits(value)));
  92517. } else
  92518. _this._serialize0$_buffer.write$1(0, value.get$unitString());
  92519. },
  92520. _serialize0$_writeNumber$1(number) {
  92521. var text, _this = this,
  92522. integer = A.fuzzyAsInt0(number);
  92523. if (integer != null) {
  92524. _this._serialize0$_buffer.write$1(0, _this._serialize0$_removeExponent$1(B.JSInt_methods.toString$0(integer)));
  92525. return;
  92526. }
  92527. text = _this._serialize0$_removeExponent$1(B.JSNumber_methods.toString$0(number));
  92528. if (text.length < 12) {
  92529. if (_this._serialize0$_style === B.OutputStyle_10 && B.JSString_methods._codeUnitAt$1(text, 0) === 48)
  92530. text = B.JSString_methods.substring$1(text, 1);
  92531. _this._serialize0$_buffer.write$1(0, text);
  92532. return;
  92533. }
  92534. _this._serialize0$_writeRounded$1(text);
  92535. },
  92536. _serialize0$_removeExponent$1(text) {
  92537. var buffer, t3, additionalZeroes,
  92538. t1 = B.JSString_methods._codeUnitAt$1(text, 0),
  92539. negative = t1 === 45,
  92540. exponent = A._Cell$(),
  92541. t2 = text.length,
  92542. i = 0;
  92543. while (true) {
  92544. if (!(i < t2)) {
  92545. buffer = null;
  92546. break;
  92547. }
  92548. c$0: {
  92549. if (B.JSString_methods._codeUnitAt$1(text, i) !== 101)
  92550. break c$0;
  92551. buffer = new A.StringBuffer("");
  92552. t1 = buffer._contents = "" + A.Primitives_stringFromCharCode(t1);
  92553. if (negative) {
  92554. t1 += A.Primitives_stringFromCharCode(B.JSString_methods._codeUnitAt$1(text, 1));
  92555. buffer._contents = t1;
  92556. if (i > 3)
  92557. buffer._contents = t1 + B.JSString_methods.substring$2(text, 3, i);
  92558. } else if (i > 2)
  92559. buffer._contents = t1 + B.JSString_methods.substring$2(text, 2, i);
  92560. exponent._value = A.int_parse(B.JSString_methods.substring$2(text, i + 1, t2), null);
  92561. break;
  92562. }
  92563. ++i;
  92564. }
  92565. if (buffer == null)
  92566. return text;
  92567. if (exponent._readLocal$0() > 0) {
  92568. t1 = exponent._readLocal$0();
  92569. t2 = buffer._contents;
  92570. t3 = negative ? 1 : 0;
  92571. additionalZeroes = t1 - (t2.length - 1 - t3);
  92572. for (t1 = t2, i = 0; i < additionalZeroes; ++i) {
  92573. t1 += A.Primitives_stringFromCharCode(48);
  92574. buffer._contents = t1;
  92575. }
  92576. return t1.charCodeAt(0) == 0 ? t1 : t1;
  92577. } else {
  92578. t1 = (negative ? "" + A.Primitives_stringFromCharCode(45) : "") + "0.";
  92579. t2 = exponent.__late_helper$_name;
  92580. i = -1;
  92581. while (true) {
  92582. t3 = exponent._value;
  92583. if (t3 === exponent)
  92584. A.throwExpression(A.LateError$localNI(t2));
  92585. if (!(i > t3))
  92586. break;
  92587. t1 += A.Primitives_stringFromCharCode(48);
  92588. --i;
  92589. }
  92590. if (negative) {
  92591. t2 = buffer._contents;
  92592. t2 = B.JSString_methods.substring$1(t2.charCodeAt(0) == 0 ? t2 : t2, 1);
  92593. } else
  92594. t2 = buffer;
  92595. t2 = t1 + A.S(t2);
  92596. return t2.charCodeAt(0) == 0 ? t2 : t2;
  92597. }
  92598. },
  92599. _serialize0$_writeRounded$1(text) {
  92600. var t1, digits, negative, textIndex, digitsIndex, textIndex0, codeUnit, digitsIndex0, indexAfterPrecision, digitsIndex1, newDigit, writtenIndex, t2, _this = this;
  92601. if (B.JSString_methods.endsWith$1(text, ".0")) {
  92602. _this._serialize0$_buffer.write$1(0, B.JSString_methods.substring$2(text, 0, text.length - 2));
  92603. return;
  92604. }
  92605. t1 = text.length;
  92606. digits = new Uint8Array(t1 + 1);
  92607. negative = B.JSString_methods._codeUnitAt$1(text, 0) === 45;
  92608. textIndex = negative ? 1 : 0;
  92609. for (digitsIndex = 1; true; textIndex = textIndex0, digitsIndex = digitsIndex0) {
  92610. if (textIndex === t1) {
  92611. _this._serialize0$_buffer.write$1(0, text);
  92612. return;
  92613. }
  92614. textIndex0 = textIndex + 1;
  92615. codeUnit = B.JSString_methods._codeUnitAt$1(text, textIndex);
  92616. if (codeUnit === 46) {
  92617. textIndex = textIndex0;
  92618. break;
  92619. }
  92620. digitsIndex0 = digitsIndex + 1;
  92621. digits[digitsIndex] = codeUnit - 48;
  92622. }
  92623. indexAfterPrecision = textIndex + 10;
  92624. if (indexAfterPrecision >= t1) {
  92625. _this._serialize0$_buffer.write$1(0, text);
  92626. return;
  92627. }
  92628. for (digitsIndex0 = digitsIndex; textIndex < indexAfterPrecision; textIndex = textIndex0, digitsIndex0 = digitsIndex1) {
  92629. digitsIndex1 = digitsIndex0 + 1;
  92630. textIndex0 = textIndex + 1;
  92631. digits[digitsIndex0] = B.JSString_methods._codeUnitAt$1(text, textIndex) - 48;
  92632. }
  92633. if (B.JSString_methods._codeUnitAt$1(text, textIndex) - 48 >= 5)
  92634. for (; true; digitsIndex0 = digitsIndex1) {
  92635. digitsIndex1 = digitsIndex0 - 1;
  92636. newDigit = digits[digitsIndex1] + 1;
  92637. digits[digitsIndex1] = newDigit;
  92638. if (newDigit !== 10)
  92639. break;
  92640. }
  92641. for (; digitsIndex0 < digitsIndex; ++digitsIndex0)
  92642. digits[digitsIndex0] = 0;
  92643. while (true) {
  92644. t1 = digitsIndex0 > digitsIndex;
  92645. if (!(t1 && digits[digitsIndex0 - 1] === 0))
  92646. break;
  92647. --digitsIndex0;
  92648. }
  92649. if (digitsIndex0 === 2 && digits[0] === 0 && digits[1] === 0) {
  92650. _this._serialize0$_buffer.writeCharCode$1(48);
  92651. return;
  92652. }
  92653. if (negative)
  92654. _this._serialize0$_buffer.writeCharCode$1(45);
  92655. if (digits[0] === 0)
  92656. writtenIndex = _this._serialize0$_style === B.OutputStyle_10 && digits[1] === 0 ? 2 : 1;
  92657. else
  92658. writtenIndex = 0;
  92659. for (t2 = _this._serialize0$_buffer; writtenIndex < digitsIndex; ++writtenIndex)
  92660. t2.writeCharCode$1(48 + digits[writtenIndex]);
  92661. if (t1) {
  92662. t2.writeCharCode$1(46);
  92663. for (; writtenIndex < digitsIndex0; ++writtenIndex)
  92664. t2.writeCharCode$1(48 + digits[writtenIndex]);
  92665. }
  92666. },
  92667. _serialize0$_visitQuotedString$2$forceDoubleQuote(string, forceDoubleQuote) {
  92668. var t1, includesSingleQuote, includesDoubleQuote, i, char, newIndex, quote, _this = this,
  92669. buffer = forceDoubleQuote ? _this._serialize0$_buffer : new A.StringBuffer("");
  92670. if (forceDoubleQuote)
  92671. buffer.writeCharCode$1(34);
  92672. for (t1 = string.length, includesSingleQuote = false, includesDoubleQuote = false, i = 0; i < t1; ++i) {
  92673. char = B.JSString_methods._codeUnitAt$1(string, i);
  92674. switch (char) {
  92675. case 39:
  92676. if (forceDoubleQuote)
  92677. buffer.writeCharCode$1(39);
  92678. else {
  92679. if (includesDoubleQuote) {
  92680. _this._serialize0$_visitQuotedString$2$forceDoubleQuote(string, true);
  92681. return;
  92682. } else
  92683. buffer.writeCharCode$1(39);
  92684. includesSingleQuote = true;
  92685. }
  92686. break;
  92687. case 34:
  92688. if (forceDoubleQuote) {
  92689. buffer.writeCharCode$1(92);
  92690. buffer.writeCharCode$1(34);
  92691. } else {
  92692. if (includesSingleQuote) {
  92693. _this._serialize0$_visitQuotedString$2$forceDoubleQuote(string, true);
  92694. return;
  92695. } else
  92696. buffer.writeCharCode$1(34);
  92697. includesDoubleQuote = true;
  92698. }
  92699. break;
  92700. case 0:
  92701. case 1:
  92702. case 2:
  92703. case 3:
  92704. case 4:
  92705. case 5:
  92706. case 6:
  92707. case 7:
  92708. case 8:
  92709. case 10:
  92710. case 11:
  92711. case 12:
  92712. case 13:
  92713. case 14:
  92714. case 15:
  92715. case 16:
  92716. case 17:
  92717. case 18:
  92718. case 19:
  92719. case 20:
  92720. case 21:
  92721. case 22:
  92722. case 23:
  92723. case 24:
  92724. case 25:
  92725. case 26:
  92726. case 27:
  92727. case 28:
  92728. case 29:
  92729. case 30:
  92730. case 31:
  92731. _this._serialize0$_writeEscape$4(buffer, char, string, i);
  92732. break;
  92733. case 92:
  92734. buffer.writeCharCode$1(92);
  92735. buffer.writeCharCode$1(92);
  92736. break;
  92737. default:
  92738. newIndex = _this._serialize0$_tryPrivateUseCharacter$4(buffer, char, string, i);
  92739. if (newIndex != null) {
  92740. i = newIndex;
  92741. break;
  92742. }
  92743. buffer.writeCharCode$1(char);
  92744. break;
  92745. }
  92746. }
  92747. if (forceDoubleQuote)
  92748. buffer.writeCharCode$1(34);
  92749. else {
  92750. quote = includesDoubleQuote ? 39 : 34;
  92751. t1 = _this._serialize0$_buffer;
  92752. t1.writeCharCode$1(quote);
  92753. t1.write$1(0, buffer);
  92754. t1.writeCharCode$1(quote);
  92755. }
  92756. },
  92757. _serialize0$_visitQuotedString$1(string) {
  92758. return this._serialize0$_visitQuotedString$2$forceDoubleQuote(string, false);
  92759. },
  92760. _serialize0$_visitUnquotedString$1(string) {
  92761. var t1, t2, afterNewline, i, char, newIndex;
  92762. for (t1 = string.length, t2 = this._serialize0$_buffer, afterNewline = false, i = 0; i < t1; ++i) {
  92763. char = B.JSString_methods._codeUnitAt$1(string, i);
  92764. switch (char) {
  92765. case 10:
  92766. t2.writeCharCode$1(32);
  92767. afterNewline = true;
  92768. break;
  92769. case 32:
  92770. if (!afterNewline)
  92771. t2.writeCharCode$1(32);
  92772. break;
  92773. default:
  92774. newIndex = this._serialize0$_tryPrivateUseCharacter$4(t2, char, string, i);
  92775. if (newIndex != null) {
  92776. i = newIndex;
  92777. afterNewline = false;
  92778. break;
  92779. }
  92780. t2.writeCharCode$1(char);
  92781. afterNewline = false;
  92782. break;
  92783. }
  92784. }
  92785. },
  92786. _serialize0$_tryPrivateUseCharacter$4(buffer, codeUnit, string, i) {
  92787. var t1;
  92788. if (this._serialize0$_style === B.OutputStyle_10)
  92789. return null;
  92790. if (codeUnit >= 57344 && codeUnit <= 63743) {
  92791. this._serialize0$_writeEscape$4(buffer, codeUnit, string, i);
  92792. return i;
  92793. }
  92794. if (codeUnit >>> 7 === 439 && string.length > i + 1) {
  92795. t1 = i + 1;
  92796. this._serialize0$_writeEscape$4(buffer, 65536 + ((codeUnit & 1023) << 10) + (B.JSString_methods._codeUnitAt$1(string, t1) & 1023), string, t1);
  92797. return t1;
  92798. }
  92799. return null;
  92800. },
  92801. _serialize0$_writeEscape$4(buffer, character, string, i) {
  92802. var t1, next;
  92803. buffer.writeCharCode$1(92);
  92804. buffer.write$1(0, B.JSInt_methods.toRadixString$1(character, 16));
  92805. t1 = i + 1;
  92806. if (string.length === t1)
  92807. return;
  92808. next = B.JSString_methods._codeUnitAt$1(string, t1);
  92809. if (A.isHex0(next) || next === 32 || next === 9)
  92810. buffer.writeCharCode$1(32);
  92811. },
  92812. visitAttributeSelector$1(attribute) {
  92813. var value, t2,
  92814. t1 = this._serialize0$_buffer;
  92815. t1.writeCharCode$1(91);
  92816. t1.write$1(0, attribute.name);
  92817. value = attribute.value;
  92818. if (value != null) {
  92819. t1.write$1(0, attribute.op);
  92820. if (A.Parser_isIdentifier0(value) && !B.JSString_methods.startsWith$1(value, "--")) {
  92821. t1.write$1(0, value);
  92822. t2 = attribute.modifier;
  92823. if (t2 != null)
  92824. t1.writeCharCode$1(32);
  92825. } else {
  92826. this._serialize0$_visitQuotedString$1(value);
  92827. t2 = attribute.modifier;
  92828. if (t2 != null)
  92829. if (this._serialize0$_style !== B.OutputStyle_10)
  92830. t1.writeCharCode$1(32);
  92831. }
  92832. if (t2 != null)
  92833. t1.write$1(0, t2);
  92834. }
  92835. t1.writeCharCode$1(93);
  92836. },
  92837. visitClassSelector$1(klass) {
  92838. var t1 = this._serialize0$_buffer;
  92839. t1.writeCharCode$1(46);
  92840. t1.write$1(0, klass.name);
  92841. },
  92842. visitComplexSelector$1(complex) {
  92843. var t2, t3, t4, t5, t6, i, component, t7, t8, t9, _this = this,
  92844. t1 = complex.leadingCombinators;
  92845. _this._serialize0$_writeCombinators$1(t1);
  92846. if (t1.length !== 0 && complex.components.length !== 0)
  92847. if (_this._serialize0$_style !== B.OutputStyle_10)
  92848. _this._serialize0$_buffer.writeCharCode$1(32);
  92849. for (t1 = complex.components, t2 = t1.length, t3 = t2 - 1, t4 = _this._serialize0$_buffer, t5 = _this._serialize0$_style === B.OutputStyle_10, t6 = !t5, i = 0; i < t2; ++i) {
  92850. component = t1[i];
  92851. _this.visitCompoundSelector$1(component.selector);
  92852. t7 = component.combinators;
  92853. t8 = t7.length === 0;
  92854. if (!t8)
  92855. if (t6)
  92856. t4.writeCharCode$1(32);
  92857. t9 = t5 ? "" : " ";
  92858. _this._serialize0$_writeBetween$3(t7, t9, t4.get$write(t4));
  92859. if (i !== t3)
  92860. t7 = !t5 || t8;
  92861. else
  92862. t7 = false;
  92863. if (t7)
  92864. t4.writeCharCode$1(32);
  92865. }
  92866. },
  92867. _serialize0$_writeCombinators$1(combinators) {
  92868. var t1 = this._serialize0$_style === B.OutputStyle_10 ? "" : " ",
  92869. t2 = this._serialize0$_buffer;
  92870. return this._serialize0$_writeBetween$3(combinators, t1, t2.get$write(t2));
  92871. },
  92872. visitCompoundSelector$1(compound) {
  92873. var t2, t3, _i,
  92874. t1 = this._serialize0$_buffer,
  92875. start = t1.get$length(t1);
  92876. for (t2 = compound.components, t3 = t2.length, _i = 0; _i < t3; ++_i)
  92877. t2[_i].accept$1(this);
  92878. if (t1.get$length(t1) === start)
  92879. t1.writeCharCode$1(42);
  92880. },
  92881. visitIDSelector$1(id) {
  92882. var t1 = this._serialize0$_buffer;
  92883. t1.writeCharCode$1(35);
  92884. t1.write$1(0, id.name);
  92885. },
  92886. visitSelectorList$1(list) {
  92887. var t1, t2, t3, t4, first, t5, _this = this,
  92888. complexes = list.components;
  92889. for (t1 = J.get$iterator$ax(_this._serialize0$_inspect ? complexes : new A.WhereIterable(complexes, new A._SerializeVisitor_visitSelectorList_closure0(), A._arrayInstanceType(complexes)._eval$1("WhereIterable<1>"))), t2 = _this._serialize0$_style !== B.OutputStyle_10, t3 = _this._serialize0$_buffer, t4 = _this._lineFeed.text, first = true; t1.moveNext$0();) {
  92890. t5 = t1.get$current(t1);
  92891. if (first)
  92892. first = false;
  92893. else {
  92894. t3.writeCharCode$1(44);
  92895. if (t5.lineBreak) {
  92896. if (t2)
  92897. t3.write$1(0, t4);
  92898. _this._serialize0$_writeIndentation$0();
  92899. } else if (t2)
  92900. t3.writeCharCode$1(32);
  92901. }
  92902. _this.visitComplexSelector$1(t5);
  92903. }
  92904. },
  92905. visitParentSelector$1($parent) {
  92906. var t2,
  92907. t1 = this._serialize0$_buffer;
  92908. t1.writeCharCode$1(38);
  92909. t2 = $parent.suffix;
  92910. if (t2 != null)
  92911. t1.write$1(0, t2);
  92912. },
  92913. visitPlaceholderSelector$1(placeholder) {
  92914. var t1 = this._serialize0$_buffer;
  92915. t1.writeCharCode$1(37);
  92916. t1.write$1(0, placeholder.name);
  92917. },
  92918. visitPseudoSelector$1(pseudo) {
  92919. var t3, t4, t5,
  92920. innerSelector = pseudo.selector,
  92921. t1 = innerSelector == null,
  92922. t2 = !t1;
  92923. if (t2 && pseudo.name === "not" && innerSelector.accept$1(B._IsInvisibleVisitor_true0))
  92924. return;
  92925. t3 = this._serialize0$_buffer;
  92926. t3.writeCharCode$1(58);
  92927. if (!pseudo.isSyntacticClass)
  92928. t3.writeCharCode$1(58);
  92929. t3.write$1(0, pseudo.name);
  92930. t4 = pseudo.argument;
  92931. t5 = t4 == null;
  92932. if (t5 && t1)
  92933. return;
  92934. t3.writeCharCode$1(40);
  92935. if (!t5) {
  92936. t3.write$1(0, t4);
  92937. if (t2)
  92938. t3.writeCharCode$1(32);
  92939. }
  92940. if (t2)
  92941. this.visitSelectorList$1(innerSelector);
  92942. t3.writeCharCode$1(41);
  92943. },
  92944. visitTypeSelector$1(type) {
  92945. this._serialize0$_buffer.write$1(0, type.name);
  92946. },
  92947. visitUniversalSelector$1(universal) {
  92948. var t2,
  92949. t1 = universal.namespace;
  92950. if (t1 != null) {
  92951. t2 = this._serialize0$_buffer;
  92952. t2.write$1(0, t1);
  92953. t2.writeCharCode$1(124);
  92954. }
  92955. this._serialize0$_buffer.writeCharCode$1(42);
  92956. },
  92957. _serialize0$_write$1(value) {
  92958. return this._serialize0$_buffer.forSpan$2(value.get$span(value), new A._SerializeVisitor__write_closure0(this, value));
  92959. },
  92960. _serialize0$_visitChildren$1($parent) {
  92961. var t2, t3, t4, t5, t6, t7, t8, t9, prePrevious, previous, t10, previous0, t11, savedIndentation, _this = this,
  92962. t1 = _this._serialize0$_buffer;
  92963. t1.writeCharCode$1(123);
  92964. for (t2 = $parent.children, t2 = new A.ListIterator(t2, t2.get$length(t2)), t3 = _this._serialize0$_style === B.OutputStyle_10, t4 = !t3, t5 = !_this._serialize0$_inspect, t6 = A._instanceType(t2)._precomputed1, t7 = type$.CssComment_2, t8 = type$.CssParentNode_2, t9 = _this._lineFeed.text, prePrevious = null, previous = null; t2.moveNext$0();) {
  92965. t10 = t2.__internal$_current;
  92966. previous0 = t10 == null ? t6._as(t10) : t10;
  92967. if (t5)
  92968. t10 = t3 ? previous0.accept$1(B._IsInvisibleVisitor_true_true0) : previous0.accept$1(B._IsInvisibleVisitor_true_false0);
  92969. else
  92970. t10 = false;
  92971. if (t10)
  92972. continue;
  92973. t10 = previous == null;
  92974. if (!t10)
  92975. t11 = t8._is(previous) ? previous.get$isChildless() : !t7._is(previous);
  92976. else
  92977. t11 = false;
  92978. if (t11)
  92979. t1.writeCharCode$1(59);
  92980. if (_this._serialize0$_isTrailingComment$2(previous0, t10 ? $parent : previous)) {
  92981. if (t4)
  92982. t1.writeCharCode$1(32);
  92983. savedIndentation = _this._serialize0$_indentation;
  92984. _this._serialize0$_indentation = 0;
  92985. new A._SerializeVisitor__visitChildren_closure1(_this, previous0).call$0();
  92986. _this._serialize0$_indentation = savedIndentation;
  92987. } else {
  92988. if (t4)
  92989. t1.write$1(0, t9);
  92990. ++_this._serialize0$_indentation;
  92991. new A._SerializeVisitor__visitChildren_closure2(_this, previous0).call$0();
  92992. --_this._serialize0$_indentation;
  92993. }
  92994. prePrevious = previous;
  92995. previous = previous0;
  92996. }
  92997. if (previous != null) {
  92998. if ((t8._is(previous) ? previous.get$isChildless() : !t7._is(previous)) && t4)
  92999. t1.writeCharCode$1(59);
  93000. if (prePrevious == null && _this._serialize0$_isTrailingComment$2(previous, $parent)) {
  93001. if (t4)
  93002. t1.writeCharCode$1(32);
  93003. } else {
  93004. _this._serialize0$_writeLineFeed$0();
  93005. _this._serialize0$_writeIndentation$0();
  93006. }
  93007. }
  93008. t1.writeCharCode$1(125);
  93009. },
  93010. _serialize0$_isTrailingComment$2(node, previous) {
  93011. var t1, t2, t3, searchFrom, endOffset, t4, span;
  93012. if (this._serialize0$_style === B.OutputStyle_10)
  93013. return false;
  93014. if (!type$.CssComment_2._is(node))
  93015. return false;
  93016. t1 = previous.get$span(previous);
  93017. t2 = node.span;
  93018. if (!(J.$eq$(t1.get$file(t1).url, t2.get$file(t2).url) && t1.get$start(t1).offset <= t2.get$start(t2).offset && t1.get$end(t1).offset >= t2.get$end(t2).offset)) {
  93019. t1 = t2.get$start(t2);
  93020. t1 = t1.file.getLine$1(t1.offset);
  93021. t2 = previous.get$span(previous);
  93022. t2 = t2.get$end(t2);
  93023. return t1 === t2.file.getLine$1(t2.offset);
  93024. }
  93025. t1 = t2.get$start(t2);
  93026. t3 = previous.get$span(previous);
  93027. searchFrom = t1.offset - t3.get$start(t3).offset - 1;
  93028. if (searchFrom < 0)
  93029. return false;
  93030. endOffset = Math.max(0, B.JSString_methods.lastIndexOf$2(previous.get$span(previous).get$text(), "{", searchFrom));
  93031. t1 = previous.get$span(previous);
  93032. t1 = t1.get$file(t1);
  93033. t3 = previous.get$span(previous);
  93034. t3 = t3.get$start(t3);
  93035. t4 = previous.get$span(previous);
  93036. span = t1.span$2(0, t3.offset, t4.get$start(t4).offset + endOffset);
  93037. t2 = t2.get$start(t2);
  93038. t2 = t2.file.getLine$1(t2.offset);
  93039. t4 = A.FileLocation$_(span.file, span._end);
  93040. return t2 === t4.file.getLine$1(t4.offset);
  93041. },
  93042. _serialize0$_writeLineFeed$0() {
  93043. if (this._serialize0$_style !== B.OutputStyle_10)
  93044. this._serialize0$_buffer.write$1(0, this._lineFeed.text);
  93045. },
  93046. _serialize0$_writeIndentation$0() {
  93047. var _this = this;
  93048. if (_this._serialize0$_style === B.OutputStyle_10)
  93049. return;
  93050. _this._serialize0$_writeTimes$2(_this._serialize0$_indentCharacter, _this._serialize0$_indentation * _this._serialize0$_indentWidth);
  93051. },
  93052. _serialize0$_writeTimes$2(char, times) {
  93053. var t1, i;
  93054. for (t1 = this._serialize0$_buffer, i = 0; i < times; ++i)
  93055. t1.writeCharCode$1(char);
  93056. },
  93057. _serialize0$_writeBetween$1$3(iterable, text, callback) {
  93058. var t1, t2, first, value;
  93059. for (t1 = J.get$iterator$ax(iterable), t2 = this._serialize0$_buffer, first = true; t1.moveNext$0();) {
  93060. value = t1.get$current(t1);
  93061. if (first)
  93062. first = false;
  93063. else
  93064. t2.write$1(0, text);
  93065. callback.call$1(value);
  93066. }
  93067. },
  93068. _serialize0$_writeBetween$3(iterable, text, callback) {
  93069. return this._serialize0$_writeBetween$1$3(iterable, text, callback, type$.dynamic);
  93070. }
  93071. };
  93072. A._SerializeVisitor_visitCssComment_closure0.prototype = {
  93073. call$0() {
  93074. var t2, t3, minimumIndentation,
  93075. t1 = this.$this;
  93076. if (t1._serialize0$_style === B.OutputStyle_10 && B.JSString_methods._codeUnitAt$1(this.node.text, 2) !== 33)
  93077. return;
  93078. t2 = this.node;
  93079. t3 = t2.text;
  93080. minimumIndentation = t1._serialize0$_minimumIndentation$1(t3);
  93081. if (minimumIndentation == null) {
  93082. t1._serialize0$_writeIndentation$0();
  93083. t1._serialize0$_buffer.write$1(0, t3);
  93084. return;
  93085. }
  93086. t2 = t2.span;
  93087. t2 = t2.get$start(t2);
  93088. minimumIndentation = Math.min(minimumIndentation, t2.file.getColumn$1(t2.offset));
  93089. t1._serialize0$_writeIndentation$0();
  93090. t1._serialize0$_writeWithIndent$2(t3, minimumIndentation);
  93091. },
  93092. $signature: 1
  93093. };
  93094. A._SerializeVisitor_visitCssAtRule_closure0.prototype = {
  93095. call$0() {
  93096. var t3, value,
  93097. t1 = this.$this,
  93098. t2 = t1._serialize0$_buffer;
  93099. t2.writeCharCode$1(64);
  93100. t3 = this.node;
  93101. t1._serialize0$_write$1(t3.name);
  93102. value = t3.value;
  93103. if (value != null) {
  93104. t2.writeCharCode$1(32);
  93105. t1._serialize0$_write$1(value);
  93106. }
  93107. },
  93108. $signature: 1
  93109. };
  93110. A._SerializeVisitor_visitCssMediaRule_closure0.prototype = {
  93111. call$0() {
  93112. var t3, firstQuery, t4, t5,
  93113. t1 = this.$this,
  93114. t2 = t1._serialize0$_buffer;
  93115. t2.write$1(0, "@media");
  93116. t3 = this.node.queries;
  93117. firstQuery = B.JSArray_methods.get$first(t3);
  93118. t4 = t1._serialize0$_style === B.OutputStyle_10;
  93119. if (t4)
  93120. if (firstQuery.modifier == null)
  93121. if (firstQuery.type == null) {
  93122. t5 = firstQuery.conditions;
  93123. t5 = t5.length === 1 && J.startsWith$1$s(B.JSArray_methods.get$first(t5), "(not ");
  93124. } else
  93125. t5 = true;
  93126. else
  93127. t5 = true;
  93128. else
  93129. t5 = true;
  93130. if (t5)
  93131. t2.writeCharCode$1(32);
  93132. t2 = t4 ? "," : ", ";
  93133. t1._serialize0$_writeBetween$3(t3, t2, t1.get$_serialize0$_visitMediaQuery());
  93134. },
  93135. $signature: 1
  93136. };
  93137. A._SerializeVisitor_visitCssImport_closure0.prototype = {
  93138. call$0() {
  93139. var t3, t4, t5, modifiers,
  93140. t1 = this.$this,
  93141. t2 = t1._serialize0$_buffer;
  93142. t2.write$1(0, "@import");
  93143. t3 = t1._serialize0$_style !== B.OutputStyle_10;
  93144. if (t3)
  93145. t2.writeCharCode$1(32);
  93146. t4 = this.node;
  93147. t5 = t4.url;
  93148. t2.forSpan$2(t5.get$span(t5), new A._SerializeVisitor_visitCssImport__closure0(t1, t4));
  93149. modifiers = t4.modifiers;
  93150. if (modifiers != null) {
  93151. if (t3)
  93152. t2.writeCharCode$1(32);
  93153. t2.write$1(0, modifiers);
  93154. }
  93155. },
  93156. $signature: 1
  93157. };
  93158. A._SerializeVisitor_visitCssImport__closure0.prototype = {
  93159. call$0() {
  93160. var t1 = this.node.url;
  93161. return this.$this._serialize0$_writeImportUrl$1(t1.get$value(t1));
  93162. },
  93163. $signature: 0
  93164. };
  93165. A._SerializeVisitor_visitCssKeyframeBlock_closure0.prototype = {
  93166. call$0() {
  93167. var t1 = this.$this,
  93168. t2 = t1._serialize0$_style === B.OutputStyle_10 ? "," : ", ",
  93169. t3 = t1._serialize0$_buffer;
  93170. return t1._serialize0$_writeBetween$3(this.node.selector.value, t2, t3.get$write(t3));
  93171. },
  93172. $signature: 0
  93173. };
  93174. A._SerializeVisitor_visitCssStyleRule_closure0.prototype = {
  93175. call$0() {
  93176. return this.$this.visitSelectorList$1(this.node.selector.value);
  93177. },
  93178. $signature: 0
  93179. };
  93180. A._SerializeVisitor_visitCssSupportsRule_closure0.prototype = {
  93181. call$0() {
  93182. var t1 = this.$this,
  93183. t2 = t1._serialize0$_buffer;
  93184. t2.write$1(0, "@supports");
  93185. if (!(t1._serialize0$_style === B.OutputStyle_10 && J.codeUnitAt$1$s(this.node.condition.value, 0) === 40))
  93186. t2.writeCharCode$1(32);
  93187. t1._serialize0$_write$1(this.node.condition);
  93188. },
  93189. $signature: 1
  93190. };
  93191. A._SerializeVisitor_visitCssDeclaration_closure1.prototype = {
  93192. call$0() {
  93193. var t1 = this.$this,
  93194. t2 = this.node;
  93195. if (t1._serialize0$_style === B.OutputStyle_10)
  93196. t1._serialize0$_writeFoldedValue$1(t2);
  93197. else
  93198. t1._serialize0$_writeReindentedValue$1(t2);
  93199. },
  93200. $signature: 1
  93201. };
  93202. A._SerializeVisitor_visitCssDeclaration_closure2.prototype = {
  93203. call$0() {
  93204. var t1 = this.node.value;
  93205. return t1.get$value(t1).accept$1(this.$this);
  93206. },
  93207. $signature: 0
  93208. };
  93209. A._SerializeVisitor_visitList_closure2.prototype = {
  93210. call$1(element) {
  93211. return !element.get$isBlank();
  93212. },
  93213. $signature: 49
  93214. };
  93215. A._SerializeVisitor_visitList_closure3.prototype = {
  93216. call$1(element) {
  93217. var t1 = this.$this,
  93218. needsParens = t1._serialize0$_elementNeedsParens$2(this.value._list1$_separator, element);
  93219. if (needsParens)
  93220. t1._serialize0$_buffer.writeCharCode$1(40);
  93221. element.accept$1(t1);
  93222. if (needsParens)
  93223. t1._serialize0$_buffer.writeCharCode$1(41);
  93224. },
  93225. $signature: 56
  93226. };
  93227. A._SerializeVisitor_visitList_closure4.prototype = {
  93228. call$1(element) {
  93229. element.accept$1(this.$this);
  93230. },
  93231. $signature: 56
  93232. };
  93233. A._SerializeVisitor_visitMap_closure0.prototype = {
  93234. call$1(entry) {
  93235. var t1 = this.$this;
  93236. t1._serialize0$_writeMapElement$1(entry.key);
  93237. t1._serialize0$_buffer.write$1(0, ": ");
  93238. t1._serialize0$_writeMapElement$1(entry.value);
  93239. },
  93240. $signature: 504
  93241. };
  93242. A._SerializeVisitor_visitSelectorList_closure0.prototype = {
  93243. call$1(complex) {
  93244. return !complex.accept$1(B._IsInvisibleVisitor_true0);
  93245. },
  93246. $signature: 15
  93247. };
  93248. A._SerializeVisitor__write_closure0.prototype = {
  93249. call$0() {
  93250. var t1 = this.value;
  93251. return this.$this._serialize0$_buffer.write$1(0, t1.get$value(t1));
  93252. },
  93253. $signature: 0
  93254. };
  93255. A._SerializeVisitor__visitChildren_closure1.prototype = {
  93256. call$0() {
  93257. return this.child.accept$1(this.$this);
  93258. },
  93259. $signature: 0
  93260. };
  93261. A._SerializeVisitor__visitChildren_closure2.prototype = {
  93262. call$0() {
  93263. this.child.accept$1(this.$this);
  93264. },
  93265. $signature: 0
  93266. };
  93267. A.OutputStyle0.prototype = {
  93268. toString$0(_) {
  93269. return "OutputStyle." + this._name;
  93270. }
  93271. };
  93272. A.LineFeed0.prototype = {
  93273. toString$0(_) {
  93274. return this.name;
  93275. }
  93276. };
  93277. A.SerializeResult0.prototype = {};
  93278. A.ShadowedModuleView0.prototype = {
  93279. get$url(_) {
  93280. var t1 = this._shadowed_view0$_inner;
  93281. return t1.get$url(t1);
  93282. },
  93283. get$upstream() {
  93284. return this._shadowed_view0$_inner.get$upstream();
  93285. },
  93286. get$extensionStore() {
  93287. return this._shadowed_view0$_inner.get$extensionStore();
  93288. },
  93289. get$css(_) {
  93290. var t1 = this._shadowed_view0$_inner;
  93291. return t1.get$css(t1);
  93292. },
  93293. get$transitivelyContainsCss() {
  93294. return this._shadowed_view0$_inner.get$transitivelyContainsCss();
  93295. },
  93296. get$transitivelyContainsExtensions() {
  93297. return this._shadowed_view0$_inner.get$transitivelyContainsExtensions();
  93298. },
  93299. setVariable$3($name, value, nodeWithSpan) {
  93300. if (!this.variables.containsKey$1($name))
  93301. throw A.wrapException(A.SassScriptException$0("Undefined variable.", null));
  93302. else
  93303. return this._shadowed_view0$_inner.setVariable$3($name, value, nodeWithSpan);
  93304. },
  93305. variableIdentity$1($name) {
  93306. return this._shadowed_view0$_inner.variableIdentity$1($name);
  93307. },
  93308. $eq(_, other) {
  93309. var t1, t2, _this = this;
  93310. if (other == null)
  93311. return false;
  93312. if (other instanceof A.ShadowedModuleView0)
  93313. if (_this._shadowed_view0$_inner.$eq(0, other._shadowed_view0$_inner)) {
  93314. t1 = _this.variables;
  93315. t1 = t1.get$keys(t1);
  93316. t2 = other.variables;
  93317. if (B.C_IterableEquality.equals$2(0, t1, t2.get$keys(t2))) {
  93318. t1 = _this.functions;
  93319. t1 = t1.get$keys(t1);
  93320. t2 = other.functions;
  93321. if (B.C_IterableEquality.equals$2(0, t1, t2.get$keys(t2))) {
  93322. t1 = _this.mixins;
  93323. t1 = t1.get$keys(t1);
  93324. t2 = other.mixins;
  93325. t2 = B.C_IterableEquality.equals$2(0, t1, t2.get$keys(t2));
  93326. t1 = t2;
  93327. } else
  93328. t1 = false;
  93329. } else
  93330. t1 = false;
  93331. } else
  93332. t1 = false;
  93333. else
  93334. t1 = false;
  93335. return t1;
  93336. },
  93337. get$hashCode(_) {
  93338. var t1 = this._shadowed_view0$_inner;
  93339. return t1.get$hashCode(t1);
  93340. },
  93341. cloneCss$0() {
  93342. var _this = this;
  93343. return new A.ShadowedModuleView0(_this._shadowed_view0$_inner.cloneCss$0(), _this.variables, _this.variableNodes, _this.functions, _this.mixins, _this.$ti);
  93344. },
  93345. toString$0(_) {
  93346. return "shadowed " + this._shadowed_view0$_inner.toString$0(0);
  93347. },
  93348. $isModule0: 1,
  93349. get$variables() {
  93350. return this.variables;
  93351. },
  93352. get$variableNodes() {
  93353. return this.variableNodes;
  93354. },
  93355. get$functions(receiver) {
  93356. return this.functions;
  93357. },
  93358. get$mixins() {
  93359. return this.mixins;
  93360. }
  93361. };
  93362. A.SilentComment0.prototype = {
  93363. accept$1$1(visitor) {
  93364. return visitor.visitSilentComment$1(this);
  93365. },
  93366. accept$1(visitor) {
  93367. return this.accept$1$1(visitor, type$.dynamic);
  93368. },
  93369. toString$0(_) {
  93370. return this.text;
  93371. },
  93372. $isAstNode0: 1,
  93373. $isStatement0: 1,
  93374. get$span(receiver) {
  93375. return this.span;
  93376. }
  93377. };
  93378. A.SimpleSelector0.prototype = {
  93379. get$specificity() {
  93380. return 1000;
  93381. },
  93382. addSuffix$1(suffix) {
  93383. return A.throwExpression(A.SassScriptException$0('Invalid parent selector "' + this.toString$0(0) + '"', null));
  93384. },
  93385. unify$1(compound) {
  93386. var other, t1, result, addedThis, _i, simple, _this = this;
  93387. if (compound.length === 1) {
  93388. other = B.JSArray_methods.get$first(compound);
  93389. if (!(other instanceof A.UniversalSelector0))
  93390. if (other instanceof A.PseudoSelector0)
  93391. t1 = other.isClass && other.name === "host" || other.get$isHostContext();
  93392. else
  93393. t1 = false;
  93394. else
  93395. t1 = true;
  93396. if (t1)
  93397. return other.unify$1(A._setArrayType([_this], type$.JSArray_SimpleSelector_2));
  93398. }
  93399. if (B.JSArray_methods.contains$1(compound, _this))
  93400. return compound;
  93401. result = A._setArrayType([], type$.JSArray_SimpleSelector_2);
  93402. for (t1 = compound.length, addedThis = false, _i = 0; _i < compound.length; compound.length === t1 || (0, A.throwConcurrentModificationError)(compound), ++_i) {
  93403. simple = compound[_i];
  93404. if (!addedThis && simple instanceof A.PseudoSelector0) {
  93405. result.push(_this);
  93406. addedThis = true;
  93407. }
  93408. result.push(simple);
  93409. }
  93410. if (!addedThis)
  93411. result.push(_this);
  93412. return result;
  93413. },
  93414. isSuperselector$1(other) {
  93415. var list;
  93416. if (this.$eq(0, other))
  93417. return true;
  93418. if (other instanceof A.PseudoSelector0 && other.isClass) {
  93419. list = other.selector;
  93420. if (list != null && $._subselectorPseudos0.contains$1(0, other.normalizedName))
  93421. return B.JSArray_methods.every$1(list.components, new A.SimpleSelector_isSuperselector_closure0(this));
  93422. }
  93423. return false;
  93424. }
  93425. };
  93426. A.SimpleSelector_isSuperselector_closure0.prototype = {
  93427. call$1(complex) {
  93428. var t1 = complex.components;
  93429. return t1.length !== 0 && B.JSArray_methods.any$1(B.JSArray_methods.get$last(t1).selector.components, new A.SimpleSelector_isSuperselector__closure0(this.$this));
  93430. },
  93431. $signature: 15
  93432. };
  93433. A.SimpleSelector_isSuperselector__closure0.prototype = {
  93434. call$1(simple) {
  93435. return this.$this.isSuperselector$1(simple);
  93436. },
  93437. $signature: 13
  93438. };
  93439. A.SingleUnitSassNumber0.prototype = {
  93440. get$numeratorUnits(_) {
  93441. return A.List_List$unmodifiable([this._single_unit$_unit], type$.String);
  93442. },
  93443. get$denominatorUnits(_) {
  93444. return B.List_empty;
  93445. },
  93446. get$hasUnits() {
  93447. return true;
  93448. },
  93449. withValue$1(value) {
  93450. return new A.SingleUnitSassNumber0(this._single_unit$_unit, value, null);
  93451. },
  93452. withSlash$2(numerator, denominator) {
  93453. return new A.SingleUnitSassNumber0(this._single_unit$_unit, this._number1$_value, new A.Tuple2(numerator, denominator, type$.Tuple2_SassNumber_SassNumber_2));
  93454. },
  93455. hasUnit$1(unit) {
  93456. return unit === this._single_unit$_unit;
  93457. },
  93458. hasCompatibleUnits$1(other) {
  93459. return other instanceof A.SingleUnitSassNumber0 && A.conversionFactor0(this._single_unit$_unit, other._single_unit$_unit) != null;
  93460. },
  93461. hasPossiblyCompatibleUnits$1(other) {
  93462. var t1, knownCompatibilities, otherUnit;
  93463. if (!(other instanceof A.SingleUnitSassNumber0))
  93464. return false;
  93465. t1 = $.$get$_knownCompatibilitiesByUnit0();
  93466. knownCompatibilities = t1.$index(0, this._single_unit$_unit.toLowerCase());
  93467. if (knownCompatibilities == null)
  93468. return true;
  93469. otherUnit = other._single_unit$_unit.toLowerCase();
  93470. return knownCompatibilities.contains$1(0, otherUnit) || !t1.containsKey$1(otherUnit);
  93471. },
  93472. compatibleWithUnit$1(unit) {
  93473. return A.conversionFactor0(this._single_unit$_unit, unit) != null;
  93474. },
  93475. coerceToMatch$3(other, $name, otherName) {
  93476. var t1 = other instanceof A.SingleUnitSassNumber0 ? this._single_unit$_coerceToUnit$1(other._single_unit$_unit) : null;
  93477. return t1 == null ? this.super$SassNumber$coerceToMatch(other, $name, otherName) : t1;
  93478. },
  93479. coerceValueToMatch$3(other, $name, otherName) {
  93480. var t1 = other instanceof A.SingleUnitSassNumber0 ? this._single_unit$_coerceValueToUnit$1(other._single_unit$_unit) : null;
  93481. return t1 == null ? this.super$SassNumber$coerceValueToMatch0(other, $name, otherName) : t1;
  93482. },
  93483. coerceValueToMatch$1(other) {
  93484. return this.coerceValueToMatch$3(other, null, null);
  93485. },
  93486. convertToMatch$3(other, $name, otherName) {
  93487. var t1 = other instanceof A.SingleUnitSassNumber0 ? this._single_unit$_coerceToUnit$1(other._single_unit$_unit) : null;
  93488. return t1 == null ? this.super$SassNumber$convertToMatch(other, $name, otherName) : t1;
  93489. },
  93490. convertValueToMatch$3(other, $name, otherName) {
  93491. var t1 = other instanceof A.SingleUnitSassNumber0 ? this._single_unit$_coerceValueToUnit$1(other._single_unit$_unit) : null;
  93492. return t1 == null ? this.super$SassNumber$convertValueToMatch0(other, $name, otherName) : t1;
  93493. },
  93494. coerce$3(newNumerators, newDenominators, $name) {
  93495. var t1 = J.getInterceptor$asx(newNumerators);
  93496. t1 = t1.get$length(newNumerators) === 1 && J.get$isEmpty$asx(newDenominators) ? this._single_unit$_coerceToUnit$1(t1.$index(newNumerators, 0)) : null;
  93497. return t1 == null ? this.super$SassNumber$coerce0(newNumerators, newDenominators, $name) : t1;
  93498. },
  93499. coerce$2(newNumerators, newDenominators) {
  93500. return this.coerce$3(newNumerators, newDenominators, null);
  93501. },
  93502. coerceValue$3(newNumerators, newDenominators, $name) {
  93503. var t1 = J.getInterceptor$asx(newNumerators);
  93504. t1 = t1.get$length(newNumerators) === 1 && J.get$isEmpty$asx(newDenominators) ? this._single_unit$_coerceValueToUnit$1(t1.$index(newNumerators, 0)) : null;
  93505. return t1 == null ? this.super$SassNumber$coerceValue0(newNumerators, newDenominators, $name) : t1;
  93506. },
  93507. coerceValueToUnit$2(unit, $name) {
  93508. var t1 = this._single_unit$_coerceValueToUnit$1(unit);
  93509. return t1 == null ? this.super$SassNumber$coerceValueToUnit0(unit, $name) : t1;
  93510. },
  93511. coerceValueToUnit$1(unit) {
  93512. return this.coerceValueToUnit$2(unit, null);
  93513. },
  93514. _single_unit$_coerceToUnit$1(unit) {
  93515. var t1 = this._single_unit$_unit;
  93516. if (t1 === unit)
  93517. return this;
  93518. return A.NullableExtension_andThen0(A.conversionFactor0(unit, t1), new A.SingleUnitSassNumber__coerceToUnit_closure0(this, unit));
  93519. },
  93520. _single_unit$_coerceValueToUnit$1(unit) {
  93521. return A.NullableExtension_andThen0(A.conversionFactor0(unit, this._single_unit$_unit), new A.SingleUnitSassNumber__coerceValueToUnit_closure0(this));
  93522. },
  93523. multiplyUnits$3(value, otherNumerators, otherDenominators) {
  93524. var mutableOtherDenominators, t1 = {};
  93525. t1.value = value;
  93526. t1.newNumerators = otherNumerators;
  93527. mutableOtherDenominators = A._setArrayType(otherDenominators.slice(0), A._arrayInstanceType(otherDenominators));
  93528. A.removeFirstWhere0(mutableOtherDenominators, new A.SingleUnitSassNumber_multiplyUnits_closure1(t1, this), new A.SingleUnitSassNumber_multiplyUnits_closure2(t1, this));
  93529. return A.SassNumber_SassNumber$withUnits0(t1.value, mutableOtherDenominators, t1.newNumerators);
  93530. },
  93531. unaryMinus$0() {
  93532. return new A.SingleUnitSassNumber0(this._single_unit$_unit, -this._number1$_value, null);
  93533. },
  93534. $eq(_, other) {
  93535. var factor;
  93536. if (other == null)
  93537. return false;
  93538. if (other instanceof A.SingleUnitSassNumber0) {
  93539. factor = A.conversionFactor0(other._single_unit$_unit, this._single_unit$_unit);
  93540. return factor != null && A.fuzzyEquals0(this._number1$_value * factor, other._number1$_value);
  93541. } else
  93542. return false;
  93543. },
  93544. get$hashCode(_) {
  93545. var _this = this,
  93546. t1 = _this.hashCache;
  93547. return t1 == null ? _this.hashCache = A.fuzzyHashCode0(_this._number1$_value * _this.canonicalMultiplierForUnit$1(_this._single_unit$_unit)) : t1;
  93548. }
  93549. };
  93550. A.SingleUnitSassNumber__coerceToUnit_closure0.prototype = {
  93551. call$1(factor) {
  93552. return new A.SingleUnitSassNumber0(this.unit, this.$this._number1$_value * factor, null);
  93553. },
  93554. $signature: 505
  93555. };
  93556. A.SingleUnitSassNumber__coerceValueToUnit_closure0.prototype = {
  93557. call$1(factor) {
  93558. return this.$this._number1$_value * factor;
  93559. },
  93560. $signature: 29
  93561. };
  93562. A.SingleUnitSassNumber_multiplyUnits_closure1.prototype = {
  93563. call$1(denominator) {
  93564. var factor = A.conversionFactor0(denominator, this.$this._single_unit$_unit);
  93565. if (factor == null)
  93566. return false;
  93567. this._box_0.value *= factor;
  93568. return true;
  93569. },
  93570. $signature: 8
  93571. };
  93572. A.SingleUnitSassNumber_multiplyUnits_closure2.prototype = {
  93573. call$0() {
  93574. var t1 = A._setArrayType([this.$this._single_unit$_unit], type$.JSArray_String),
  93575. t2 = this._box_0;
  93576. B.JSArray_methods.addAll$1(t1, t2.newNumerators);
  93577. t2.newNumerators = t1;
  93578. },
  93579. $signature: 0
  93580. };
  93581. A.SourceMapBuffer0.prototype = {
  93582. get$_source_map_buffer0$_targetLocation() {
  93583. var t1 = this._source_map_buffer0$_buffer._contents,
  93584. t2 = this._source_map_buffer0$_line;
  93585. return A.SourceLocation$(t1.length, this._source_map_buffer0$_column, t2, null);
  93586. },
  93587. get$length(_) {
  93588. return this._source_map_buffer0$_buffer._contents.length;
  93589. },
  93590. forSpan$1$2(span, callback) {
  93591. var t1, _this = this,
  93592. wasInSpan = _this._source_map_buffer0$_inSpan;
  93593. _this._source_map_buffer0$_inSpan = true;
  93594. _this._source_map_buffer0$_addEntry$2(span.get$start(span), _this.get$_source_map_buffer0$_targetLocation());
  93595. try {
  93596. t1 = callback.call$0();
  93597. return t1;
  93598. } finally {
  93599. _this._source_map_buffer0$_inSpan = wasInSpan;
  93600. }
  93601. },
  93602. forSpan$2(span, callback) {
  93603. return this.forSpan$1$2(span, callback, type$.dynamic);
  93604. },
  93605. _source_map_buffer0$_addEntry$2(source, target) {
  93606. var entry, t2,
  93607. t1 = this._source_map_buffer0$_entries;
  93608. if (t1.length !== 0) {
  93609. entry = B.JSArray_methods.get$last(t1);
  93610. t2 = entry.source;
  93611. if (t2.file.getLine$1(t2.offset) === source.file.getLine$1(source.offset) && entry.target.line === target.line)
  93612. return;
  93613. if (entry.target.offset === target.offset)
  93614. return;
  93615. }
  93616. t1.push(new A.Entry(source, target, null));
  93617. },
  93618. write$1(_, object) {
  93619. var t1, i,
  93620. string = J.toString$0$(object);
  93621. this._source_map_buffer0$_buffer._contents += string;
  93622. for (t1 = string.length, i = 0; i < t1; ++i)
  93623. if (B.JSString_methods._codeUnitAt$1(string, i) === 10)
  93624. this._source_map_buffer0$_writeLine$0();
  93625. else
  93626. ++this._source_map_buffer0$_column;
  93627. },
  93628. writeCharCode$1(charCode) {
  93629. this._source_map_buffer0$_buffer._contents += A.Primitives_stringFromCharCode(charCode);
  93630. if (charCode === 10)
  93631. this._source_map_buffer0$_writeLine$0();
  93632. else
  93633. ++this._source_map_buffer0$_column;
  93634. },
  93635. _source_map_buffer0$_writeLine$0() {
  93636. var _this = this,
  93637. t1 = _this._source_map_buffer0$_entries;
  93638. if (B.JSArray_methods.get$last(t1).target.line === _this._source_map_buffer0$_line && B.JSArray_methods.get$last(t1).target.column === _this._source_map_buffer0$_column)
  93639. t1.pop();
  93640. ++_this._source_map_buffer0$_line;
  93641. _this._source_map_buffer0$_column = 0;
  93642. if (_this._source_map_buffer0$_inSpan)
  93643. t1.push(new A.Entry(B.JSArray_methods.get$last(t1).source, _this.get$_source_map_buffer0$_targetLocation(), null));
  93644. },
  93645. toString$0(_) {
  93646. var t1 = this._source_map_buffer0$_buffer._contents;
  93647. return t1.charCodeAt(0) == 0 ? t1 : t1;
  93648. },
  93649. buildSourceMap$1$prefix(prefix) {
  93650. var i, t2, prefixColumn, _box_0 = {},
  93651. t1 = prefix.length;
  93652. if (t1 === 0)
  93653. return A.SingleMapping_SingleMapping$fromEntries(this._source_map_buffer0$_entries);
  93654. _box_0.prefixColumn = _box_0.prefixLines = 0;
  93655. for (i = 0, t2 = 0; i < t1; ++i)
  93656. if (B.JSString_methods._codeUnitAt$1(prefix, i) === 10) {
  93657. ++_box_0.prefixLines;
  93658. _box_0.prefixColumn = 0;
  93659. t2 = 0;
  93660. } else {
  93661. prefixColumn = t2 + 1;
  93662. _box_0.prefixColumn = prefixColumn;
  93663. t2 = prefixColumn;
  93664. }
  93665. t2 = this._source_map_buffer0$_entries;
  93666. return A.SingleMapping_SingleMapping$fromEntries(new A.MappedListIterable(t2, new A.SourceMapBuffer_buildSourceMap_closure0(_box_0, t1), A._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Entry>")));
  93667. }
  93668. };
  93669. A.SourceMapBuffer_buildSourceMap_closure0.prototype = {
  93670. call$1(entry) {
  93671. var t1 = entry.source,
  93672. t2 = entry.target,
  93673. t3 = t2.line,
  93674. t4 = this._box_0,
  93675. t5 = t4.prefixLines;
  93676. t4 = t3 === 0 ? t4.prefixColumn : 0;
  93677. return new A.Entry(t1, A.SourceLocation$(t2.offset + this.prefixLength, t2.column + t4, t3 + t5, null), entry.identifierName);
  93678. },
  93679. $signature: 206
  93680. };
  93681. A.updateSourceSpanPrototype_closure.prototype = {
  93682. call$1(span) {
  93683. return span.get$start(span);
  93684. },
  93685. $signature: 220
  93686. };
  93687. A.updateSourceSpanPrototype_closure0.prototype = {
  93688. call$1(span) {
  93689. return span.get$end(span);
  93690. },
  93691. $signature: 220
  93692. };
  93693. A.updateSourceSpanPrototype_closure1.prototype = {
  93694. call$1(span) {
  93695. return A.NullableExtension_andThen0(span.get$sourceUrl(span), A.utils1__dartToJSUrl$closure());
  93696. },
  93697. $signature: 507
  93698. };
  93699. A.updateSourceSpanPrototype_closure2.prototype = {
  93700. call$1(span) {
  93701. return span.get$text();
  93702. },
  93703. $signature: 194
  93704. };
  93705. A.updateSourceSpanPrototype_closure3.prototype = {
  93706. call$1(span) {
  93707. return span.get$context(span);
  93708. },
  93709. $signature: 194
  93710. };
  93711. A.updateSourceSpanPrototype_closure4.prototype = {
  93712. call$1($location) {
  93713. return $location.get$line();
  93714. },
  93715. $signature: 193
  93716. };
  93717. A.updateSourceSpanPrototype_closure5.prototype = {
  93718. call$1($location) {
  93719. return $location.get$column();
  93720. },
  93721. $signature: 193
  93722. };
  93723. A.StatementSearchVisitor0.prototype = {
  93724. visitAtRootRule$1(node) {
  93725. return this.visitChildren$1(node.children);
  93726. },
  93727. visitAtRule$1(node) {
  93728. return A.NullableExtension_andThen0(node.children, this.get$visitChildren());
  93729. },
  93730. visitContentBlock$1(node) {
  93731. return this.visitChildren$1(node.children);
  93732. },
  93733. visitDebugRule$1(node) {
  93734. return null;
  93735. },
  93736. visitDeclaration$1(node) {
  93737. return A.NullableExtension_andThen0(node.children, this.get$visitChildren());
  93738. },
  93739. visitEachRule$1(node) {
  93740. return this.visitChildren$1(node.children);
  93741. },
  93742. visitErrorRule$1(node) {
  93743. return null;
  93744. },
  93745. visitExtendRule$1(node) {
  93746. return null;
  93747. },
  93748. visitForRule$1(node) {
  93749. return this.visitChildren$1(node.children);
  93750. },
  93751. visitForwardRule$1(node) {
  93752. return null;
  93753. },
  93754. visitFunctionRule$1(node) {
  93755. return this.visitChildren$1(node.children);
  93756. },
  93757. visitIfRule$1(node) {
  93758. var t1 = A._IterableExtension__search0(node.clauses, new A.StatementSearchVisitor_visitIfRule_closure1(this));
  93759. return t1 == null ? A.NullableExtension_andThen0(node.lastClause, new A.StatementSearchVisitor_visitIfRule_closure2(this)) : t1;
  93760. },
  93761. visitImportRule$1(node) {
  93762. return null;
  93763. },
  93764. visitIncludeRule$1(node) {
  93765. return A.NullableExtension_andThen0(node.content, this.get$visitContentBlock());
  93766. },
  93767. visitLoudComment$1(node) {
  93768. return null;
  93769. },
  93770. visitMediaRule$1(node) {
  93771. return this.visitChildren$1(node.children);
  93772. },
  93773. visitMixinRule$1(node) {
  93774. return this.visitChildren$1(node.children);
  93775. },
  93776. visitReturnRule$1(node) {
  93777. return null;
  93778. },
  93779. visitSilentComment$1(node) {
  93780. return null;
  93781. },
  93782. visitStyleRule$1(node) {
  93783. return this.visitChildren$1(node.children);
  93784. },
  93785. visitStylesheet$1(node) {
  93786. return this.visitChildren$1(node.children);
  93787. },
  93788. visitSupportsRule$1(node) {
  93789. return this.visitChildren$1(node.children);
  93790. },
  93791. visitUseRule$1(node) {
  93792. return null;
  93793. },
  93794. visitVariableDeclaration$1(node) {
  93795. return null;
  93796. },
  93797. visitWarnRule$1(node) {
  93798. return null;
  93799. },
  93800. visitWhileRule$1(node) {
  93801. return this.visitChildren$1(node.children);
  93802. },
  93803. visitChildren$1(children) {
  93804. return A._IterableExtension__search0(children, new A.StatementSearchVisitor_visitChildren_closure0(this));
  93805. }
  93806. };
  93807. A.StatementSearchVisitor_visitIfRule_closure1.prototype = {
  93808. call$1(clause) {
  93809. return A._IterableExtension__search0(clause.children, new A.StatementSearchVisitor_visitIfRule__closure2(this.$this));
  93810. },
  93811. $signature() {
  93812. return A._instanceType(this.$this)._eval$1("StatementSearchVisitor0.T?(IfClause0)");
  93813. }
  93814. };
  93815. A.StatementSearchVisitor_visitIfRule__closure2.prototype = {
  93816. call$1(child) {
  93817. return child.accept$1(this.$this);
  93818. },
  93819. $signature() {
  93820. return A._instanceType(this.$this)._eval$1("StatementSearchVisitor0.T?(Statement0)");
  93821. }
  93822. };
  93823. A.StatementSearchVisitor_visitIfRule_closure2.prototype = {
  93824. call$1(lastClause) {
  93825. return A._IterableExtension__search0(lastClause.children, new A.StatementSearchVisitor_visitIfRule__closure1(this.$this));
  93826. },
  93827. $signature() {
  93828. return A._instanceType(this.$this)._eval$1("StatementSearchVisitor0.T?(ElseClause0)");
  93829. }
  93830. };
  93831. A.StatementSearchVisitor_visitIfRule__closure1.prototype = {
  93832. call$1(child) {
  93833. return child.accept$1(this.$this);
  93834. },
  93835. $signature() {
  93836. return A._instanceType(this.$this)._eval$1("StatementSearchVisitor0.T?(Statement0)");
  93837. }
  93838. };
  93839. A.StatementSearchVisitor_visitChildren_closure0.prototype = {
  93840. call$1(child) {
  93841. return child.accept$1(this.$this);
  93842. },
  93843. $signature() {
  93844. return A._instanceType(this.$this)._eval$1("StatementSearchVisitor0.T?(Statement0)");
  93845. }
  93846. };
  93847. A.StaticImport0.prototype = {
  93848. toString$0(_) {
  93849. var t1 = this.url.toString$0(0),
  93850. t2 = this.modifiers;
  93851. return t1 + (t2 == null ? "" : " " + t2.toString$0(0));
  93852. },
  93853. $isImport0: 1,
  93854. $isAstNode0: 1,
  93855. get$span(receiver) {
  93856. return this.span;
  93857. }
  93858. };
  93859. A.StderrLogger0.prototype = {
  93860. warn$4$deprecation$span$trace(_, message, deprecation, span, trace) {
  93861. var t2, t3, t4,
  93862. t1 = this.color;
  93863. if (t1) {
  93864. t2 = $.$get$stderr0();
  93865. t3 = t2._node$_stderr;
  93866. t4 = J.getInterceptor$x(t3);
  93867. t4.write$1(t3, "\x1b[33m\x1b[1m");
  93868. if (deprecation)
  93869. t4.write$1(t3, "Deprecation ");
  93870. t4.write$1(t3, "Warning\x1b[0m");
  93871. } else {
  93872. if (deprecation)
  93873. J.write$1$x($.$get$stderr0()._node$_stderr, "DEPRECATION ");
  93874. t2 = $.$get$stderr0();
  93875. J.write$1$x(t2._node$_stderr, "WARNING");
  93876. }
  93877. if (span == null)
  93878. t2.writeln$1(": " + message);
  93879. else if (trace != null)
  93880. t2.writeln$1(": " + message + "\n\n" + span.highlight$1$color(t1));
  93881. else
  93882. t2.writeln$1(" on " + span.message$2$color(0, "\n" + message, t1));
  93883. if (trace != null)
  93884. t2.writeln$1(A.indent0(B.JSString_methods.trimRight$0(trace.toString$0(0)), 4));
  93885. t2.writeln$0();
  93886. },
  93887. warn$1($receiver, message) {
  93888. return this.warn$4$deprecation$span$trace($receiver, message, false, null, null);
  93889. },
  93890. warn$2$deprecation($receiver, message, deprecation) {
  93891. return this.warn$4$deprecation$span$trace($receiver, message, deprecation, null, null);
  93892. },
  93893. warn$2$span($receiver, message, span) {
  93894. return this.warn$4$deprecation$span$trace($receiver, message, false, span, null);
  93895. },
  93896. warn$3$deprecation$span($receiver, message, deprecation, span) {
  93897. return this.warn$4$deprecation$span$trace($receiver, message, deprecation, span, null);
  93898. },
  93899. warn$2$trace($receiver, message, trace) {
  93900. return this.warn$4$deprecation$span$trace($receiver, message, false, null, trace);
  93901. },
  93902. debug$2(_, message, span) {
  93903. var url, t3, t4,
  93904. t1 = span.file,
  93905. t2 = span._file$_start;
  93906. if (A.FileLocation$_(t1, t2).file.url == null)
  93907. url = "-";
  93908. else {
  93909. t3 = A.FileLocation$_(t1, t2);
  93910. url = $.$get$context().prettyUri$1(t3.file.url);
  93911. }
  93912. t3 = $.$get$stderr0();
  93913. t2 = A.FileLocation$_(t1, t2);
  93914. t2 = t2.file.getLine$1(t2.offset);
  93915. t1 = t3._node$_stderr;
  93916. t4 = J.getInterceptor$x(t1);
  93917. t4.write$1(t1, url + ":" + (t2 + 1) + " ");
  93918. t4.write$1(t1, this.color ? "\x1b[1mDebug\x1b[0m" : "DEBUG");
  93919. t3.writeln$1(": " + message);
  93920. }
  93921. };
  93922. A.StringExpression0.prototype = {
  93923. get$span(_) {
  93924. return this.text.span;
  93925. },
  93926. accept$1$1(visitor) {
  93927. return visitor.visitStringExpression$1(this);
  93928. },
  93929. accept$1(visitor) {
  93930. return this.accept$1$1(visitor, type$.dynamic);
  93931. },
  93932. asInterpolation$1$static($static) {
  93933. var t1, t2, quote, t3, t4, buffer, t5, t6, _i, value;
  93934. if (!this.hasQuotes)
  93935. return this.text;
  93936. t1 = this.text;
  93937. t2 = t1.contents;
  93938. quote = A.StringExpression__bestQuote0(new A.WhereTypeIterable(t2, type$.WhereTypeIterable_String));
  93939. t3 = new A.StringBuffer("");
  93940. t4 = A._setArrayType([], type$.JSArray_Object);
  93941. buffer = new A.InterpolationBuffer0(t3, t4);
  93942. t3._contents = "" + A.Primitives_stringFromCharCode(quote);
  93943. for (t5 = t2.length, t6 = type$.Expression_2, _i = 0; _i < t5; ++_i) {
  93944. value = t2[_i];
  93945. if (t6._is(value)) {
  93946. buffer._interpolation_buffer0$_flushText$0();
  93947. t4.push(value);
  93948. } else if (typeof value == "string")
  93949. A.StringExpression__quoteInnerText0(value, quote, buffer, $static);
  93950. }
  93951. t3._contents += A.Primitives_stringFromCharCode(quote);
  93952. return buffer.interpolation$1(t1.span);
  93953. },
  93954. asInterpolation$0() {
  93955. return this.asInterpolation$1$static(false);
  93956. },
  93957. toString$0(_) {
  93958. return this.asInterpolation$0().toString$0(0);
  93959. },
  93960. $isExpression0: 1,
  93961. $isAstNode0: 1
  93962. };
  93963. A.module_closure9.prototype = {
  93964. call$1($arguments) {
  93965. var limit, t2, chunks, i, lastEnd, match, t3,
  93966. t1 = J.getInterceptor$asx($arguments),
  93967. string = t1.$index($arguments, 0).assertString$1("string"),
  93968. separator = t1.$index($arguments, 1).assertString$1("separator");
  93969. t1 = t1.$index($arguments, 2).get$realNull();
  93970. limit = t1 == null ? null : t1.assertNumber$1("limit").assertInt$1("limit");
  93971. if (limit != null && limit < 1)
  93972. throw A.wrapException(A.SassScriptException$0("$limit: Must be 1 or greater, was " + A.S(limit) + ".", null));
  93973. t1 = string._string0$_text;
  93974. if (t1.length === 0)
  93975. return B.SassList_Sof2;
  93976. else {
  93977. t2 = separator._string0$_text;
  93978. if (t2.length === 0)
  93979. return A.SassList$0(A.MappedIterable_MappedIterable(new A.Runes(t1), new A.module__closure2(string), type$.Runes._eval$1("Iterable.E"), type$.Value_2), B.ListSeparator_rXA0, true);
  93980. }
  93981. chunks = A._setArrayType([], type$.JSArray_String);
  93982. for (t2 = B.JSString_methods.allMatches$1(t2, t1), t2 = new A._StringAllMatchesIterator(t2._input, t2._pattern, t2.__js_helper$_index), i = 0, lastEnd = 0; t2.moveNext$0();) {
  93983. match = t2.__js_helper$_current;
  93984. t3 = match.start;
  93985. chunks.push(B.JSString_methods.substring$2(t1, lastEnd, t3));
  93986. lastEnd = t3 + match.pattern.length;
  93987. ++i;
  93988. if (i === limit)
  93989. break;
  93990. }
  93991. chunks.push(B.JSString_methods.substring$1(t1, lastEnd));
  93992. return A.SassList$0(new A.MappedListIterable(chunks, new A.module__closure3(string), type$.MappedListIterable_String_Value_2), B.ListSeparator_rXA0, true);
  93993. },
  93994. $signature: 22
  93995. };
  93996. A.module__closure2.prototype = {
  93997. call$1(rune) {
  93998. return new A.SassString0(A.Primitives_stringFromCharCode(rune), this.string._string0$_hasQuotes);
  93999. },
  94000. $signature: 510
  94001. };
  94002. A.module__closure3.prototype = {
  94003. call$1(chunk) {
  94004. return new A.SassString0(chunk, this.string._string0$_hasQuotes);
  94005. },
  94006. $signature: 511
  94007. };
  94008. A._unquote_closure0.prototype = {
  94009. call$1($arguments) {
  94010. var string = J.$index$asx($arguments, 0).assertString$1("string");
  94011. if (!string._string0$_hasQuotes)
  94012. return string;
  94013. return new A.SassString0(string._string0$_text, false);
  94014. },
  94015. $signature: 18
  94016. };
  94017. A._quote_closure0.prototype = {
  94018. call$1($arguments) {
  94019. var string = J.$index$asx($arguments, 0).assertString$1("string");
  94020. if (string._string0$_hasQuotes)
  94021. return string;
  94022. return new A.SassString0(string._string0$_text, true);
  94023. },
  94024. $signature: 18
  94025. };
  94026. A._length_closure1.prototype = {
  94027. call$1($arguments) {
  94028. return A.SassNumber_SassNumber0(J.$index$asx($arguments, 0).assertString$1("string").get$_string0$_sassLength(), null);
  94029. },
  94030. $signature: 10
  94031. };
  94032. A._insert_closure0.prototype = {
  94033. call$1($arguments) {
  94034. var indexInt, codeUnitIndex, _s5_ = "index",
  94035. t1 = J.getInterceptor$asx($arguments),
  94036. string = t1.$index($arguments, 0).assertString$1("string"),
  94037. insert = t1.$index($arguments, 1).assertString$1("insert"),
  94038. index = t1.$index($arguments, 2).assertNumber$1(_s5_);
  94039. index.assertNoUnits$1(_s5_);
  94040. indexInt = index.assertInt$1(_s5_);
  94041. if (indexInt < 0)
  94042. indexInt = Math.max(string.get$_string0$_sassLength() + indexInt + 2, 0);
  94043. t1 = string._string0$_text;
  94044. codeUnitIndex = A.codepointIndexToCodeUnitIndex0(t1, A._codepointForIndex0(indexInt, string.get$_string0$_sassLength(), false));
  94045. return new A.SassString0(B.JSString_methods.replaceRange$3(t1, codeUnitIndex, codeUnitIndex, insert._string0$_text), string._string0$_hasQuotes);
  94046. },
  94047. $signature: 18
  94048. };
  94049. A._index_closure1.prototype = {
  94050. call$1($arguments) {
  94051. var t1 = J.getInterceptor$asx($arguments),
  94052. t2 = t1.$index($arguments, 0).assertString$1("string")._string0$_text,
  94053. codeUnitIndex = B.JSString_methods.indexOf$1(t2, t1.$index($arguments, 1).assertString$1("substring")._string0$_text);
  94054. if (codeUnitIndex === -1)
  94055. return B.C__SassNull0;
  94056. return A.SassNumber_SassNumber0(A.codeUnitIndexToCodepointIndex0(t2, codeUnitIndex) + 1, null);
  94057. },
  94058. $signature: 3
  94059. };
  94060. A._slice_closure0.prototype = {
  94061. call$1($arguments) {
  94062. var lengthInCodepoints, endInt, startCodepoint, endCodepoint,
  94063. _s8_ = "start-at",
  94064. t1 = J.getInterceptor$asx($arguments),
  94065. string = t1.$index($arguments, 0).assertString$1("string"),
  94066. start = t1.$index($arguments, 1).assertNumber$1(_s8_),
  94067. end = t1.$index($arguments, 2).assertNumber$1("end-at");
  94068. start.assertNoUnits$1(_s8_);
  94069. end.assertNoUnits$1("end-at");
  94070. lengthInCodepoints = string.get$_string0$_sassLength();
  94071. endInt = end.assertInt$0();
  94072. if (endInt === 0)
  94073. return string._string0$_hasQuotes ? $.$get$_emptyQuoted0() : $.$get$_emptyUnquoted0();
  94074. startCodepoint = A._codepointForIndex0(start.assertInt$0(), lengthInCodepoints, false);
  94075. endCodepoint = A._codepointForIndex0(endInt, lengthInCodepoints, true);
  94076. if (endCodepoint === lengthInCodepoints)
  94077. --endCodepoint;
  94078. if (endCodepoint < startCodepoint)
  94079. return string._string0$_hasQuotes ? $.$get$_emptyQuoted0() : $.$get$_emptyUnquoted0();
  94080. t1 = string._string0$_text;
  94081. return new A.SassString0(B.JSString_methods.substring$2(t1, A.codepointIndexToCodeUnitIndex0(t1, startCodepoint), A.codepointIndexToCodeUnitIndex0(t1, endCodepoint + 1)), string._string0$_hasQuotes);
  94082. },
  94083. $signature: 18
  94084. };
  94085. A._toUpperCase_closure0.prototype = {
  94086. call$1($arguments) {
  94087. var t1, t2, i, t3, t4,
  94088. string = J.$index$asx($arguments, 0).assertString$1("string");
  94089. for (t1 = string._string0$_text, t2 = t1.length, i = 0, t3 = ""; i < t2; ++i) {
  94090. t4 = B.JSString_methods._codeUnitAt$1(t1, i);
  94091. t3 += A.Primitives_stringFromCharCode(t4 >= 97 && t4 <= 122 ? t4 & 4294967263 : t4);
  94092. }
  94093. return new A.SassString0(t3.charCodeAt(0) == 0 ? t3 : t3, string._string0$_hasQuotes);
  94094. },
  94095. $signature: 18
  94096. };
  94097. A._toLowerCase_closure0.prototype = {
  94098. call$1($arguments) {
  94099. var t1, t2, i, t3, t4,
  94100. string = J.$index$asx($arguments, 0).assertString$1("string");
  94101. for (t1 = string._string0$_text, t2 = t1.length, i = 0, t3 = ""; i < t2; ++i) {
  94102. t4 = B.JSString_methods._codeUnitAt$1(t1, i);
  94103. t3 += A.Primitives_stringFromCharCode(t4 >= 65 && t4 <= 90 ? t4 | 32 : t4);
  94104. }
  94105. return new A.SassString0(t3.charCodeAt(0) == 0 ? t3 : t3, string._string0$_hasQuotes);
  94106. },
  94107. $signature: 18
  94108. };
  94109. A._uniqueId_closure0.prototype = {
  94110. call$1($arguments) {
  94111. var t1 = $.$get$_previousUniqueId0() + ($.$get$_random1().nextInt$1(36) + 1);
  94112. $._previousUniqueId0 = t1;
  94113. if (t1 > Math.pow(36, 6))
  94114. $._previousUniqueId0 = B.JSInt_methods.$mod($.$get$_previousUniqueId0(), A._asInt(Math.pow(36, 6)));
  94115. return new A.SassString0("u" + B.JSString_methods.padLeft$2(J.toRadixString$1$n($.$get$_previousUniqueId0(), 36), 6, "0"), false);
  94116. },
  94117. $signature: 18
  94118. };
  94119. A._NodeSassString.prototype = {};
  94120. A.legacyStringClass_closure.prototype = {
  94121. call$3(thisArg, value, dartValue) {
  94122. var t1;
  94123. if (dartValue == null) {
  94124. value.toString;
  94125. t1 = new A.SassString0(value, false);
  94126. } else
  94127. t1 = dartValue;
  94128. J.set$dartValue$x(thisArg, t1);
  94129. },
  94130. call$2(thisArg, value) {
  94131. return this.call$3(thisArg, value, null);
  94132. },
  94133. "call*": "call$3",
  94134. $requiredArgCount: 2,
  94135. $defaultValues() {
  94136. return [null];
  94137. },
  94138. $signature: 512
  94139. };
  94140. A.legacyStringClass_closure0.prototype = {
  94141. call$1(thisArg) {
  94142. return J.get$dartValue$x(thisArg)._string0$_text;
  94143. },
  94144. $signature: 513
  94145. };
  94146. A.legacyStringClass_closure1.prototype = {
  94147. call$2(thisArg, value) {
  94148. J.set$dartValue$x(thisArg, new A.SassString0(value, false));
  94149. },
  94150. $signature: 514
  94151. };
  94152. A.stringClass_closure.prototype = {
  94153. call$0() {
  94154. var t2,
  94155. t1 = type$.JSClass,
  94156. jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.SassString", new A.stringClass__closure()));
  94157. A.LinkedHashMap_LinkedHashMap$_literal(["text", new A.stringClass__closure0(), "hasQuotes", new A.stringClass__closure1(), "sassLength", new A.stringClass__closure2()], type$.String, type$.Function).forEach$1(0, A.JSClassExtension_get_defineGetter(jsClass));
  94158. J.get$$prototype$x(jsClass).sassIndexToStringIndex = A.allowInteropCaptureThisNamed("sassIndexToStringIndex", new A.stringClass__closure3());
  94159. t2 = $.$get$_emptyQuoted0();
  94160. A.JSClassExtension_injectSuperclass(t1._as(t2.constructor), jsClass);
  94161. return jsClass;
  94162. },
  94163. $signature: 25
  94164. };
  94165. A.stringClass__closure.prototype = {
  94166. call$3($self, textOrOptions, options) {
  94167. var t1;
  94168. if (typeof textOrOptions == "string") {
  94169. t1 = options == null ? null : J.get$quotes$x(options);
  94170. t1 = new A.SassString0(textOrOptions, t1 == null ? true : t1);
  94171. } else {
  94172. type$.nullable__ConstructorOptions_3._as(textOrOptions);
  94173. t1 = textOrOptions == null ? null : J.get$quotes$x(textOrOptions);
  94174. t1 = (t1 == null ? true : t1) ? $.$get$_emptyQuoted0() : $.$get$_emptyUnquoted0();
  94175. }
  94176. return t1;
  94177. },
  94178. call$1($self) {
  94179. return this.call$3($self, null, null);
  94180. },
  94181. call$2($self, textOrOptions) {
  94182. return this.call$3($self, textOrOptions, null);
  94183. },
  94184. "call*": "call$3",
  94185. $requiredArgCount: 1,
  94186. $defaultValues() {
  94187. return [null, null];
  94188. },
  94189. $signature: 515
  94190. };
  94191. A.stringClass__closure0.prototype = {
  94192. call$1($self) {
  94193. return $self._string0$_text;
  94194. },
  94195. $signature: 516
  94196. };
  94197. A.stringClass__closure1.prototype = {
  94198. call$1($self) {
  94199. return $self._string0$_hasQuotes;
  94200. },
  94201. $signature: 517
  94202. };
  94203. A.stringClass__closure2.prototype = {
  94204. call$1($self) {
  94205. return $self.get$_string0$_sassLength();
  94206. },
  94207. $signature: 518
  94208. };
  94209. A.stringClass__closure3.prototype = {
  94210. call$3($self, sassIndex, $name) {
  94211. var t1 = $self._string0$_text,
  94212. index = sassIndex.assertNumber$1($name).assertInt$1($name);
  94213. if (index === 0)
  94214. A.throwExpression(A.SassScriptException$0("String index may not be 0.", $name));
  94215. else if (Math.abs(index) > $self.get$_string0$_sassLength())
  94216. A.throwExpression(A.SassScriptException$0("Invalid index " + sassIndex.toString$0(0) + " for a string with " + $self.get$_string0$_sassLength() + " characters.", $name));
  94217. return A.codepointIndexToCodeUnitIndex0(t1, index < 0 ? $self.get$_string0$_sassLength() + index : index - 1);
  94218. },
  94219. call$2($self, sassIndex) {
  94220. return this.call$3($self, sassIndex, null);
  94221. },
  94222. "call*": "call$3",
  94223. $requiredArgCount: 2,
  94224. $defaultValues() {
  94225. return [null];
  94226. },
  94227. $signature: 519
  94228. };
  94229. A._ConstructorOptions1.prototype = {};
  94230. A.SassString0.prototype = {
  94231. get$_string0$_sassLength() {
  94232. var t1, result, _this = this,
  94233. value = _this._string0$__SassString__sassLength_FI;
  94234. if (value === $) {
  94235. t1 = new A.Runes(_this._string0$_text);
  94236. result = t1.get$length(t1);
  94237. _this._string0$__SassString__sassLength_FI !== $ && A.throwUnnamedLateFieldADI();
  94238. _this._string0$__SassString__sassLength_FI = result;
  94239. value = result;
  94240. }
  94241. return value;
  94242. },
  94243. get$isSpecialNumber() {
  94244. var t1, t2;
  94245. if (this._string0$_hasQuotes)
  94246. return false;
  94247. t1 = this._string0$_text;
  94248. if (t1.length < 6)
  94249. return false;
  94250. t2 = B.JSString_methods._codeUnitAt$1(t1, 0) | 32;
  94251. if (t2 === 99) {
  94252. t2 = B.JSString_methods._codeUnitAt$1(t1, 1) | 32;
  94253. if (t2 === 108) {
  94254. if ((B.JSString_methods._codeUnitAt$1(t1, 2) | 32) !== 97)
  94255. return false;
  94256. if ((B.JSString_methods._codeUnitAt$1(t1, 3) | 32) !== 109)
  94257. return false;
  94258. if ((B.JSString_methods._codeUnitAt$1(t1, 4) | 32) !== 112)
  94259. return false;
  94260. return B.JSString_methods._codeUnitAt$1(t1, 5) === 40;
  94261. } else if (t2 === 97) {
  94262. if ((B.JSString_methods._codeUnitAt$1(t1, 2) | 32) !== 108)
  94263. return false;
  94264. if ((B.JSString_methods._codeUnitAt$1(t1, 3) | 32) !== 99)
  94265. return false;
  94266. return B.JSString_methods._codeUnitAt$1(t1, 4) === 40;
  94267. } else
  94268. return false;
  94269. } else if (t2 === 118) {
  94270. if ((B.JSString_methods._codeUnitAt$1(t1, 1) | 32) !== 97)
  94271. return false;
  94272. if ((B.JSString_methods._codeUnitAt$1(t1, 2) | 32) !== 114)
  94273. return false;
  94274. return B.JSString_methods._codeUnitAt$1(t1, 3) === 40;
  94275. } else if (t2 === 101) {
  94276. if ((B.JSString_methods._codeUnitAt$1(t1, 1) | 32) !== 110)
  94277. return false;
  94278. if ((B.JSString_methods._codeUnitAt$1(t1, 2) | 32) !== 118)
  94279. return false;
  94280. return B.JSString_methods._codeUnitAt$1(t1, 3) === 40;
  94281. } else if (t2 === 109) {
  94282. t2 = B.JSString_methods._codeUnitAt$1(t1, 1) | 32;
  94283. if (t2 === 97) {
  94284. if ((B.JSString_methods._codeUnitAt$1(t1, 2) | 32) !== 120)
  94285. return false;
  94286. return B.JSString_methods._codeUnitAt$1(t1, 3) === 40;
  94287. } else if (t2 === 105) {
  94288. if ((B.JSString_methods._codeUnitAt$1(t1, 2) | 32) !== 110)
  94289. return false;
  94290. return B.JSString_methods._codeUnitAt$1(t1, 3) === 40;
  94291. } else
  94292. return false;
  94293. } else
  94294. return false;
  94295. },
  94296. get$isVar() {
  94297. if (this._string0$_hasQuotes)
  94298. return false;
  94299. var t1 = this._string0$_text;
  94300. if (t1.length < 8)
  94301. return false;
  94302. return (B.JSString_methods._codeUnitAt$1(t1, 0) | 32) === 118 && (B.JSString_methods._codeUnitAt$1(t1, 1) | 32) === 97 && (B.JSString_methods._codeUnitAt$1(t1, 2) | 32) === 114 && B.JSString_methods._codeUnitAt$1(t1, 3) === 40;
  94303. },
  94304. get$isBlank() {
  94305. return !this._string0$_hasQuotes && this._string0$_text.length === 0;
  94306. },
  94307. accept$1$1(visitor) {
  94308. var t1 = visitor._serialize0$_quote && this._string0$_hasQuotes,
  94309. t2 = this._string0$_text;
  94310. if (t1)
  94311. visitor._serialize0$_visitQuotedString$1(t2);
  94312. else
  94313. visitor._serialize0$_visitUnquotedString$1(t2);
  94314. return null;
  94315. },
  94316. accept$1(visitor) {
  94317. return this.accept$1$1(visitor, type$.dynamic);
  94318. },
  94319. assertString$1($name) {
  94320. return this;
  94321. },
  94322. plus$1(other) {
  94323. var t1 = this._string0$_text,
  94324. t2 = this._string0$_hasQuotes;
  94325. if (other instanceof A.SassString0)
  94326. return new A.SassString0(t1 + other._string0$_text, t2);
  94327. else
  94328. return new A.SassString0(t1 + A.serializeValue0(other, false, true), t2);
  94329. },
  94330. $eq(_, other) {
  94331. if (other == null)
  94332. return false;
  94333. return other instanceof A.SassString0 && this._string0$_text === other._string0$_text;
  94334. },
  94335. get$hashCode(_) {
  94336. var t1 = this._string0$_hashCache;
  94337. return t1 == null ? this._string0$_hashCache = B.JSString_methods.get$hashCode(this._string0$_text) : t1;
  94338. }
  94339. };
  94340. A.ModifiableCssStyleRule0.prototype = {
  94341. accept$1$1(visitor) {
  94342. return visitor.visitCssStyleRule$1(this);
  94343. },
  94344. accept$1(visitor) {
  94345. return this.accept$1$1(visitor, type$.dynamic);
  94346. },
  94347. copyWithoutChildren$0() {
  94348. return A.ModifiableCssStyleRule$0(this.selector, this.span, this.originalSelector);
  94349. },
  94350. $isCssStyleRule0: 1,
  94351. get$span(receiver) {
  94352. return this.span;
  94353. }
  94354. };
  94355. A.StyleRule0.prototype = {
  94356. accept$1$1(visitor) {
  94357. return visitor.visitStyleRule$1(this);
  94358. },
  94359. accept$1(visitor) {
  94360. return this.accept$1$1(visitor, type$.dynamic);
  94361. },
  94362. toString$0(_) {
  94363. var t1 = this.children;
  94364. return this.selector.toString$0(0) + " {" + (t1 && B.JSArray_methods).join$1(t1, " ") + "}";
  94365. },
  94366. get$span(receiver) {
  94367. return this.span;
  94368. }
  94369. };
  94370. A.CssStylesheet0.prototype = {
  94371. get$isGroupEnd() {
  94372. return false;
  94373. },
  94374. get$isChildless() {
  94375. return false;
  94376. },
  94377. accept$1$1(visitor) {
  94378. return visitor.visitCssStylesheet$1(this);
  94379. },
  94380. accept$1(visitor) {
  94381. return this.accept$1$1(visitor, type$.dynamic);
  94382. },
  94383. get$children(receiver) {
  94384. return this.children;
  94385. },
  94386. get$span(receiver) {
  94387. return this.span;
  94388. }
  94389. };
  94390. A.ModifiableCssStylesheet0.prototype = {
  94391. accept$1$1(visitor) {
  94392. return visitor.visitCssStylesheet$1(this);
  94393. },
  94394. accept$1(visitor) {
  94395. return this.accept$1$1(visitor, type$.dynamic);
  94396. },
  94397. copyWithoutChildren$0() {
  94398. return A.ModifiableCssStylesheet$0(this.span);
  94399. },
  94400. $isCssStylesheet0: 1,
  94401. get$span(receiver) {
  94402. return this.span;
  94403. }
  94404. };
  94405. A.StylesheetParser0.prototype = {
  94406. parse$0() {
  94407. return this.wrapSpanFormatException$1(new A.StylesheetParser_parse_closure0(this));
  94408. },
  94409. parseArgumentDeclaration$0() {
  94410. return this._stylesheet0$_parseSingleProduction$1$1(new A.StylesheetParser_parseArgumentDeclaration_closure0(this), type$.ArgumentDeclaration_2);
  94411. },
  94412. _stylesheet0$_parseSingleProduction$1$1(production, $T) {
  94413. return this.wrapSpanFormatException$1(new A.StylesheetParser__parseSingleProduction_closure0(this, production, $T));
  94414. },
  94415. parseSignature$1$requireParens(requireParens) {
  94416. return this.wrapSpanFormatException$1(new A.StylesheetParser_parseSignature_closure(this, requireParens));
  94417. },
  94418. _stylesheet0$_statement$1$root(root) {
  94419. var t2, _this = this,
  94420. t1 = _this.scanner;
  94421. switch (t1.peekChar$0()) {
  94422. case 64:
  94423. return _this.atRule$2$root(new A.StylesheetParser__statement_closure0(_this), root);
  94424. case 43:
  94425. if (!_this.get$indented() || !_this.lookingAtIdentifier$1(1))
  94426. return _this._stylesheet0$_styleRule$0();
  94427. _this._stylesheet0$_isUseAllowed = false;
  94428. t2 = t1._string_scanner$_position;
  94429. t1.readChar$0();
  94430. return _this._stylesheet0$_includeRule$1(new A._SpanScannerState(t1, t2));
  94431. case 61:
  94432. if (!_this.get$indented())
  94433. return _this._stylesheet0$_styleRule$0();
  94434. _this._stylesheet0$_isUseAllowed = false;
  94435. t2 = t1._string_scanner$_position;
  94436. t1.readChar$0();
  94437. _this.whitespace$0();
  94438. return _this._stylesheet0$_mixinRule$1(new A._SpanScannerState(t1, t2));
  94439. case 125:
  94440. t1.error$2$length(0, 'unmatched "}".', 1);
  94441. break;
  94442. default:
  94443. return _this._stylesheet0$_inStyleRule || _this._stylesheet0$_inUnknownAtRule || _this._stylesheet0$_inMixin || _this._stylesheet0$_inContentBlock ? _this._stylesheet0$_declarationOrStyleRule$0() : _this._stylesheet0$_variableDeclarationOrStyleRule$0();
  94444. }
  94445. },
  94446. _stylesheet0$_statement$0() {
  94447. return this._stylesheet0$_statement$1$root(false);
  94448. },
  94449. variableDeclarationWithoutNamespace$2(namespace, start_) {
  94450. var t1, start, $name, t2, value, flagStart, t3, guarded, global, flag, endPosition, t4, t5, t6, declaration, _this = this,
  94451. precedingComment = _this.lastSilentComment;
  94452. _this.lastSilentComment = null;
  94453. if (start_ == null) {
  94454. t1 = _this.scanner;
  94455. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  94456. } else
  94457. start = start_;
  94458. $name = _this.variableName$0();
  94459. t1 = namespace != null;
  94460. if (t1)
  94461. _this._stylesheet0$_assertPublic$2($name, new A.StylesheetParser_variableDeclarationWithoutNamespace_closure1(_this, start));
  94462. if (_this.get$plainCss())
  94463. _this.error$2(0, string$.Sass_v, _this.scanner.spanFrom$1(start));
  94464. _this.whitespace$0();
  94465. t2 = _this.scanner;
  94466. t2.expectChar$1(58);
  94467. _this.whitespace$0();
  94468. value = _this._stylesheet0$_expression$0();
  94469. flagStart = new A._SpanScannerState(t2, t2._string_scanner$_position);
  94470. for (t3 = t2.string, guarded = false, global = false; t2.scanChar$1(33);) {
  94471. flag = _this.identifier$0();
  94472. if (flag === "default")
  94473. guarded = true;
  94474. else if (flag === "global") {
  94475. if (t1) {
  94476. endPosition = t2._string_scanner$_position;
  94477. t4 = t2._sourceFile;
  94478. t5 = flagStart.position;
  94479. t6 = new A._FileSpan(t4, t5, endPosition);
  94480. t6._FileSpan$3(t4, t5, endPosition);
  94481. A.throwExpression(new A.StringScannerException(t3, string$.x21globa, t6));
  94482. }
  94483. global = true;
  94484. } else {
  94485. endPosition = t2._string_scanner$_position;
  94486. t4 = t2._sourceFile;
  94487. t5 = flagStart.position;
  94488. t6 = new A._FileSpan(t4, t5, endPosition);
  94489. t6._FileSpan$3(t4, t5, endPosition);
  94490. A.throwExpression(new A.StringScannerException(t3, "Invalid flag name.", t6));
  94491. }
  94492. _this.whitespace$0();
  94493. flagStart = new A._SpanScannerState(t2, t2._string_scanner$_position);
  94494. }
  94495. _this.expectStatementSeparator$1("variable declaration");
  94496. declaration = A.VariableDeclaration$0($name, value, t2.spanFrom$1(start), precedingComment, global, guarded, namespace);
  94497. if (global)
  94498. _this._stylesheet0$_globalVariables.putIfAbsent$2($name, new A.StylesheetParser_variableDeclarationWithoutNamespace_closure2(declaration));
  94499. return declaration;
  94500. },
  94501. variableDeclarationWithoutNamespace$0() {
  94502. return this.variableDeclarationWithoutNamespace$2(null, null);
  94503. },
  94504. _stylesheet0$_variableDeclarationOrStyleRule$0() {
  94505. var t1, t2, variableOrInterpolation, t3, _this = this;
  94506. if (_this.get$plainCss())
  94507. return _this._stylesheet0$_styleRule$0();
  94508. if (_this.get$indented() && _this.scanner.scanChar$1(92))
  94509. return _this._stylesheet0$_styleRule$0();
  94510. if (!_this.lookingAtIdentifier$0())
  94511. return _this._stylesheet0$_styleRule$0();
  94512. t1 = _this.scanner;
  94513. t2 = t1._string_scanner$_position;
  94514. variableOrInterpolation = _this._stylesheet0$_variableDeclarationOrInterpolation$0();
  94515. if (variableOrInterpolation instanceof A.VariableDeclaration0)
  94516. return variableOrInterpolation;
  94517. else {
  94518. t3 = new A.InterpolationBuffer0(new A.StringBuffer(""), A._setArrayType([], type$.JSArray_Object));
  94519. t3.addInterpolation$1(type$.Interpolation_2._as(variableOrInterpolation));
  94520. return _this._stylesheet0$_styleRule$2(t3, new A._SpanScannerState(t1, t2));
  94521. }
  94522. },
  94523. _stylesheet0$_declarationOrStyleRule$0() {
  94524. var t1, t2, declarationOrBuffer, _this = this;
  94525. if (_this.get$plainCss() && _this._stylesheet0$_inStyleRule && !_this._stylesheet0$_inUnknownAtRule)
  94526. return _this._stylesheet0$_propertyOrVariableDeclaration$0();
  94527. if (_this.get$indented() && _this.scanner.scanChar$1(92))
  94528. return _this._stylesheet0$_styleRule$0();
  94529. t1 = _this.scanner;
  94530. t2 = t1._string_scanner$_position;
  94531. declarationOrBuffer = _this._stylesheet0$_declarationOrBuffer$0();
  94532. return type$.Statement_2._is(declarationOrBuffer) ? declarationOrBuffer : _this._stylesheet0$_styleRule$2(type$.InterpolationBuffer_2._as(declarationOrBuffer), new A._SpanScannerState(t1, t2));
  94533. },
  94534. _stylesheet0$_declarationOrBuffer$0() {
  94535. var midBuffer, couldBeSelector, beforeDeclaration, additional, t3, startsWithPunctuation, variableOrInterpolation, t4, $name, postColonWhitespace, exception, _this = this, t1 = {},
  94536. t2 = _this.scanner,
  94537. start = new A._SpanScannerState(t2, t2._string_scanner$_position),
  94538. nameBuffer = new A.InterpolationBuffer0(new A.StringBuffer(""), A._setArrayType([], type$.JSArray_Object)),
  94539. first = t2.peekChar$0();
  94540. if (first !== 58)
  94541. if (first !== 42)
  94542. if (first !== 46)
  94543. t3 = first === 35 && t2.peekChar$1(1) !== 123;
  94544. else
  94545. t3 = true;
  94546. else
  94547. t3 = true;
  94548. else
  94549. t3 = true;
  94550. if (t3) {
  94551. t3 = t2.readChar$0();
  94552. nameBuffer._interpolation_buffer0$_text._contents += A.Primitives_stringFromCharCode(t3);
  94553. t3 = _this.rawText$1(_this.get$whitespace());
  94554. nameBuffer._interpolation_buffer0$_text._contents += t3;
  94555. startsWithPunctuation = true;
  94556. } else
  94557. startsWithPunctuation = false;
  94558. if (!_this._stylesheet0$_lookingAtInterpolatedIdentifier$0())
  94559. return nameBuffer;
  94560. variableOrInterpolation = startsWithPunctuation ? _this.interpolatedIdentifier$0() : _this._stylesheet0$_variableDeclarationOrInterpolation$0();
  94561. if (variableOrInterpolation instanceof A.VariableDeclaration0)
  94562. return variableOrInterpolation;
  94563. else
  94564. nameBuffer.addInterpolation$1(type$.Interpolation_2._as(variableOrInterpolation));
  94565. _this._stylesheet0$_isUseAllowed = false;
  94566. if (t2.matches$1("/*")) {
  94567. t3 = _this.rawText$1(_this.get$loudComment());
  94568. nameBuffer._interpolation_buffer0$_text._contents += t3;
  94569. }
  94570. midBuffer = new A.StringBuffer("");
  94571. t3 = _this.get$whitespace();
  94572. midBuffer._contents += _this.rawText$1(t3);
  94573. t4 = t2._string_scanner$_position;
  94574. if (!t2.scanChar$1(58)) {
  94575. if (midBuffer._contents.length !== 0)
  94576. nameBuffer._interpolation_buffer0$_text._contents += A.Primitives_stringFromCharCode(32);
  94577. return nameBuffer;
  94578. }
  94579. midBuffer._contents += A.Primitives_stringFromCharCode(58);
  94580. $name = nameBuffer.interpolation$1(t2.spanFrom$2(start, new A._SpanScannerState(t2, t4)));
  94581. if (B.JSString_methods.startsWith$1($name.get$initialPlain(), "--")) {
  94582. t1 = _this._stylesheet0$_interpolatedDeclarationValue$0();
  94583. _this.expectStatementSeparator$1("custom property");
  94584. return A.Declaration$0($name, new A.StringExpression0(t1, false), t2.spanFrom$1(start));
  94585. }
  94586. if (t2.scanChar$1(58)) {
  94587. t1 = nameBuffer;
  94588. t2 = t1._interpolation_buffer0$_text;
  94589. t3 = t2._contents += A.S(midBuffer);
  94590. t2._contents = t3 + A.Primitives_stringFromCharCode(58);
  94591. return t1;
  94592. } else if (_this.get$indented() && _this._stylesheet0$_lookingAtInterpolatedIdentifier$0()) {
  94593. t1 = nameBuffer;
  94594. t1._interpolation_buffer0$_text._contents += A.S(midBuffer);
  94595. return t1;
  94596. }
  94597. postColonWhitespace = _this.rawText$1(t3);
  94598. if (_this.lookingAtChildren$0())
  94599. return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_declarationChild(), start, new A.StylesheetParser__declarationOrBuffer_closure1($name));
  94600. midBuffer._contents += postColonWhitespace;
  94601. couldBeSelector = postColonWhitespace.length === 0 && _this._stylesheet0$_lookingAtInterpolatedIdentifier$0();
  94602. beforeDeclaration = new A._SpanScannerState(t2, t2._string_scanner$_position);
  94603. t3 = t1.value = null;
  94604. try {
  94605. t3 = t1.value = _this._stylesheet0$_expression$0();
  94606. if (_this.lookingAtChildren$0()) {
  94607. if (couldBeSelector)
  94608. _this.expectStatementSeparator$0();
  94609. } else if (!_this.atEndOfStatement$0())
  94610. _this.expectStatementSeparator$0();
  94611. } catch (exception) {
  94612. if (type$.FormatException._is(A.unwrapException(exception))) {
  94613. if (!couldBeSelector)
  94614. throw exception;
  94615. t2.set$state(beforeDeclaration);
  94616. additional = _this.almostAnyValue$0();
  94617. if (!_this.get$indented() && t2.peekChar$0() === 59)
  94618. throw exception;
  94619. nameBuffer._interpolation_buffer0$_text._contents += A.S(midBuffer);
  94620. nameBuffer.addInterpolation$1(additional);
  94621. return nameBuffer;
  94622. } else
  94623. throw exception;
  94624. }
  94625. if (_this.lookingAtChildren$0())
  94626. return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_declarationChild(), start, new A.StylesheetParser__declarationOrBuffer_closure2(t1, $name));
  94627. else {
  94628. _this.expectStatementSeparator$0();
  94629. return A.Declaration$0($name, t3, t2.spanFrom$1(start));
  94630. }
  94631. },
  94632. _stylesheet0$_variableDeclarationOrInterpolation$0() {
  94633. var t1, start, identifier, t2, buffer, _this = this;
  94634. if (!_this.lookingAtIdentifier$0())
  94635. return _this.interpolatedIdentifier$0();
  94636. t1 = _this.scanner;
  94637. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  94638. identifier = _this.identifier$0();
  94639. if (t1.matches$1(".$")) {
  94640. t1.readChar$0();
  94641. return _this.variableDeclarationWithoutNamespace$2(identifier, start);
  94642. } else {
  94643. t2 = new A.StringBuffer("");
  94644. buffer = new A.InterpolationBuffer0(t2, A._setArrayType([], type$.JSArray_Object));
  94645. t2._contents = "" + identifier;
  94646. if (_this._stylesheet0$_lookingAtInterpolatedIdentifierBody$0())
  94647. buffer.addInterpolation$1(_this.interpolatedIdentifier$0());
  94648. return buffer.interpolation$1(t1.spanFrom$1(start));
  94649. }
  94650. },
  94651. _stylesheet0$_styleRule$2(buffer, start_) {
  94652. var t2, start, interpolation, wasInStyleRule, _this = this, t1 = {};
  94653. _this._stylesheet0$_isUseAllowed = false;
  94654. if (start_ == null) {
  94655. t2 = _this.scanner;
  94656. start = new A._SpanScannerState(t2, t2._string_scanner$_position);
  94657. } else
  94658. start = start_;
  94659. interpolation = t1.interpolation = _this.styleRuleSelector$0();
  94660. if (buffer != null) {
  94661. buffer.addInterpolation$1(interpolation);
  94662. t2 = t1.interpolation = buffer.interpolation$1(_this.scanner.spanFrom$1(start));
  94663. } else
  94664. t2 = interpolation;
  94665. if (t2.contents.length === 0)
  94666. _this.scanner.error$1(0, 'expected "}".');
  94667. wasInStyleRule = _this._stylesheet0$_inStyleRule;
  94668. _this._stylesheet0$_inStyleRule = true;
  94669. return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new A.StylesheetParser__styleRule_closure0(t1, _this, wasInStyleRule, start));
  94670. },
  94671. _stylesheet0$_styleRule$0() {
  94672. return this._stylesheet0$_styleRule$2(null, null);
  94673. },
  94674. _stylesheet0$_propertyOrVariableDeclaration$1$parseCustomProperties(parseCustomProperties) {
  94675. var first, t3, nameBuffer, variableOrInterpolation, $name, value, _this = this,
  94676. _s48_ = string$.Nested,
  94677. t1 = {},
  94678. t2 = _this.scanner,
  94679. start = new A._SpanScannerState(t2, t2._string_scanner$_position);
  94680. t1.name = null;
  94681. first = t2.peekChar$0();
  94682. if (first !== 58)
  94683. if (first !== 42)
  94684. if (first !== 46)
  94685. t3 = first === 35 && t2.peekChar$1(1) !== 123;
  94686. else
  94687. t3 = true;
  94688. else
  94689. t3 = true;
  94690. else
  94691. t3 = true;
  94692. if (t3) {
  94693. t3 = new A.StringBuffer("");
  94694. nameBuffer = new A.InterpolationBuffer0(t3, A._setArrayType([], type$.JSArray_Object));
  94695. t3._contents += A.Primitives_stringFromCharCode(t2.readChar$0());
  94696. t3._contents += _this.rawText$1(_this.get$whitespace());
  94697. nameBuffer.addInterpolation$1(_this.interpolatedIdentifier$0());
  94698. t3 = t1.name = nameBuffer.interpolation$1(t2.spanFrom$1(start));
  94699. } else if (!_this.get$plainCss()) {
  94700. variableOrInterpolation = _this._stylesheet0$_variableDeclarationOrInterpolation$0();
  94701. if (variableOrInterpolation instanceof A.VariableDeclaration0)
  94702. return variableOrInterpolation;
  94703. else {
  94704. type$.Interpolation_2._as(variableOrInterpolation);
  94705. t1.name = variableOrInterpolation;
  94706. }
  94707. t3 = variableOrInterpolation;
  94708. } else {
  94709. $name = _this.interpolatedIdentifier$0();
  94710. t1.name = $name;
  94711. t3 = $name;
  94712. }
  94713. _this.whitespace$0();
  94714. t2.expectChar$1(58);
  94715. if (parseCustomProperties && B.JSString_methods.startsWith$1(t3.get$initialPlain(), "--")) {
  94716. t1 = _this._stylesheet0$_interpolatedDeclarationValue$0();
  94717. _this.expectStatementSeparator$1("custom property");
  94718. return A.Declaration$0(t3, new A.StringExpression0(t1, false), t2.spanFrom$1(start));
  94719. }
  94720. _this.whitespace$0();
  94721. if (_this.lookingAtChildren$0()) {
  94722. if (_this.get$plainCss())
  94723. t2.error$1(0, _s48_);
  94724. return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_declarationChild(), start, new A.StylesheetParser__propertyOrVariableDeclaration_closure1(t1));
  94725. }
  94726. value = _this._stylesheet0$_expression$0();
  94727. if (_this.lookingAtChildren$0()) {
  94728. if (_this.get$plainCss())
  94729. t2.error$1(0, _s48_);
  94730. return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_declarationChild(), start, new A.StylesheetParser__propertyOrVariableDeclaration_closure2(t1, value));
  94731. } else {
  94732. _this.expectStatementSeparator$0();
  94733. return A.Declaration$0(t3, value, t2.spanFrom$1(start));
  94734. }
  94735. },
  94736. _stylesheet0$_propertyOrVariableDeclaration$0() {
  94737. return this._stylesheet0$_propertyOrVariableDeclaration$1$parseCustomProperties(true);
  94738. },
  94739. _stylesheet0$_declarationChild$0() {
  94740. if (this.scanner.peekChar$0() === 64)
  94741. return this._stylesheet0$_declarationAtRule$0();
  94742. return this._stylesheet0$_propertyOrVariableDeclaration$1$parseCustomProperties(false);
  94743. },
  94744. atRule$2$root(child, root) {
  94745. var $name, wasUseAllowed, value, optional, url, namespace, configuration, span, _this = this,
  94746. _s9_ = "@use rule",
  94747. t1 = _this.scanner,
  94748. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  94749. t1.expectChar$2$name(64, "@-rule");
  94750. $name = _this.interpolatedIdentifier$0();
  94751. _this.whitespace$0();
  94752. wasUseAllowed = _this._stylesheet0$_isUseAllowed;
  94753. _this._stylesheet0$_isUseAllowed = false;
  94754. switch ($name.get$asPlain()) {
  94755. case "at-root":
  94756. return _this._stylesheet0$_atRootRule$1(start);
  94757. case "content":
  94758. return _this._stylesheet0$_contentRule$1(start);
  94759. case "debug":
  94760. return _this._stylesheet0$_debugRule$1(start);
  94761. case "each":
  94762. return _this._stylesheet0$_eachRule$2(start, child);
  94763. case "else":
  94764. return _this._stylesheet0$_disallowedAtRule$1(start);
  94765. case "error":
  94766. return _this._stylesheet0$_errorRule$1(start);
  94767. case "extend":
  94768. if (!_this._stylesheet0$_inStyleRule && !_this._stylesheet0$_inMixin && !_this._stylesheet0$_inContentBlock)
  94769. _this.error$2(0, string$.x40exten, t1.spanFrom$1(start));
  94770. value = _this.almostAnyValue$0();
  94771. optional = t1.scanChar$1(33);
  94772. if (optional)
  94773. _this.expectIdentifier$1("optional");
  94774. _this.expectStatementSeparator$1("@extend rule");
  94775. return new A.ExtendRule0(value, optional, t1.spanFrom$1(start));
  94776. case "for":
  94777. return _this._stylesheet0$_forRule$2(start, child);
  94778. case "forward":
  94779. _this._stylesheet0$_isUseAllowed = wasUseAllowed;
  94780. if (!root)
  94781. _this._stylesheet0$_disallowedAtRule$1(start);
  94782. return _this._stylesheet0$_forwardRule$1(start);
  94783. case "function":
  94784. return _this._stylesheet0$_functionRule$1(start);
  94785. case "if":
  94786. return _this._stylesheet0$_ifRule$2(start, child);
  94787. case "import":
  94788. return _this._stylesheet0$_importRule$1(start);
  94789. case "include":
  94790. return _this._stylesheet0$_includeRule$1(start);
  94791. case "media":
  94792. return _this.mediaRule$1(start);
  94793. case "mixin":
  94794. return _this._stylesheet0$_mixinRule$1(start);
  94795. case "-moz-document":
  94796. return _this.mozDocumentRule$2(start, $name);
  94797. case "return":
  94798. return _this._stylesheet0$_disallowedAtRule$1(start);
  94799. case "supports":
  94800. return _this.supportsRule$1(start);
  94801. case "use":
  94802. _this._stylesheet0$_isUseAllowed = wasUseAllowed;
  94803. if (!root)
  94804. _this._stylesheet0$_disallowedAtRule$1(start);
  94805. url = _this._stylesheet0$_urlString$0();
  94806. _this.whitespace$0();
  94807. namespace = _this._stylesheet0$_useNamespace$2(url, start);
  94808. _this.whitespace$0();
  94809. configuration = _this._stylesheet0$_configuration$0();
  94810. _this.expectStatementSeparator$1(_s9_);
  94811. span = t1.spanFrom$1(start);
  94812. if (!_this._stylesheet0$_isUseAllowed)
  94813. _this.error$2(0, string$.x40use_r, span);
  94814. _this.expectStatementSeparator$1(_s9_);
  94815. t1 = new A.UseRule0(url, namespace, configuration == null ? B.List_empty20 : A.List_List$unmodifiable(configuration, type$.ConfiguredVariable_2), span);
  94816. t1.UseRule$4$configuration0(url, namespace, span, configuration);
  94817. return t1;
  94818. case "warn":
  94819. return _this._stylesheet0$_warnRule$1(start);
  94820. case "while":
  94821. return _this._stylesheet0$_whileRule$2(start, child);
  94822. default:
  94823. return _this.unknownAtRule$2(start, $name);
  94824. }
  94825. },
  94826. _stylesheet0$_declarationAtRule$0() {
  94827. var _this = this,
  94828. t1 = _this.scanner,
  94829. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  94830. switch (_this._stylesheet0$_plainAtRuleName$0()) {
  94831. case "content":
  94832. return _this._stylesheet0$_contentRule$1(start);
  94833. case "debug":
  94834. return _this._stylesheet0$_debugRule$1(start);
  94835. case "each":
  94836. return _this._stylesheet0$_eachRule$2(start, _this.get$_stylesheet0$_declarationChild());
  94837. case "else":
  94838. return _this._stylesheet0$_disallowedAtRule$1(start);
  94839. case "error":
  94840. return _this._stylesheet0$_errorRule$1(start);
  94841. case "for":
  94842. return _this._stylesheet0$_forRule$2(start, _this.get$_stylesheet0$_declarationChild());
  94843. case "if":
  94844. return _this._stylesheet0$_ifRule$2(start, _this.get$_stylesheet0$_declarationChild());
  94845. case "include":
  94846. return _this._stylesheet0$_includeRule$1(start);
  94847. case "warn":
  94848. return _this._stylesheet0$_warnRule$1(start);
  94849. case "while":
  94850. return _this._stylesheet0$_whileRule$2(start, _this.get$_stylesheet0$_declarationChild());
  94851. default:
  94852. return _this._stylesheet0$_disallowedAtRule$1(start);
  94853. }
  94854. },
  94855. _stylesheet0$_functionChild$0() {
  94856. var state, variableDeclarationError, stackTrace, statement, t2, namespace, exception, t3, start, value, _this = this,
  94857. t1 = _this.scanner;
  94858. if (t1.peekChar$0() !== 64) {
  94859. t2 = t1._string_scanner$_position;
  94860. state = new A._SpanScannerState(t1, t2);
  94861. try {
  94862. namespace = _this.identifier$0();
  94863. t1.expectChar$1(46);
  94864. t2 = _this.variableDeclarationWithoutNamespace$2(namespace, new A._SpanScannerState(t1, t2));
  94865. return t2;
  94866. } catch (exception) {
  94867. t2 = A.unwrapException(exception);
  94868. t3 = type$.SourceSpanFormatException;
  94869. if (t3._is(t2)) {
  94870. variableDeclarationError = t2;
  94871. stackTrace = A.getTraceFromException(exception);
  94872. t1.set$state(state);
  94873. statement = null;
  94874. try {
  94875. statement = _this._stylesheet0$_declarationOrStyleRule$0();
  94876. } catch (exception) {
  94877. if (t3._is(A.unwrapException(exception)))
  94878. throw A.wrapException(variableDeclarationError);
  94879. else
  94880. throw exception;
  94881. }
  94882. t2 = statement instanceof A.StyleRule0 ? "style rules" : "declarations";
  94883. _this.error$3(0, "@function rules may not contain " + t2 + ".", J.get$span$z(statement), stackTrace);
  94884. } else
  94885. throw exception;
  94886. }
  94887. }
  94888. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  94889. switch (_this._stylesheet0$_plainAtRuleName$0()) {
  94890. case "debug":
  94891. return _this._stylesheet0$_debugRule$1(start);
  94892. case "each":
  94893. return _this._stylesheet0$_eachRule$2(start, _this.get$_stylesheet0$_functionChild());
  94894. case "else":
  94895. return _this._stylesheet0$_disallowedAtRule$1(start);
  94896. case "error":
  94897. return _this._stylesheet0$_errorRule$1(start);
  94898. case "for":
  94899. return _this._stylesheet0$_forRule$2(start, _this.get$_stylesheet0$_functionChild());
  94900. case "if":
  94901. return _this._stylesheet0$_ifRule$2(start, _this.get$_stylesheet0$_functionChild());
  94902. case "return":
  94903. value = _this._stylesheet0$_expression$0();
  94904. _this.expectStatementSeparator$1("@return rule");
  94905. return new A.ReturnRule0(value, t1.spanFrom$1(start));
  94906. case "warn":
  94907. return _this._stylesheet0$_warnRule$1(start);
  94908. case "while":
  94909. return _this._stylesheet0$_whileRule$2(start, _this.get$_stylesheet0$_functionChild());
  94910. default:
  94911. return _this._stylesheet0$_disallowedAtRule$1(start);
  94912. }
  94913. },
  94914. _stylesheet0$_plainAtRuleName$0() {
  94915. this.scanner.expectChar$2$name(64, "@-rule");
  94916. var $name = this.identifier$0();
  94917. this.whitespace$0();
  94918. return $name;
  94919. },
  94920. _stylesheet0$_atRootRule$1(start) {
  94921. var query, _this = this,
  94922. t1 = _this.scanner;
  94923. if (t1.peekChar$0() === 40) {
  94924. query = _this._stylesheet0$_atRootQuery$0();
  94925. _this.whitespace$0();
  94926. return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new A.StylesheetParser__atRootRule_closure1(query));
  94927. } else if (_this.lookingAtChildren$0())
  94928. return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new A.StylesheetParser__atRootRule_closure2());
  94929. else
  94930. return A.AtRootRule$0(A._setArrayType([_this._stylesheet0$_styleRule$0()], type$.JSArray_Statement_2), t1.spanFrom$1(start), null);
  94931. },
  94932. _stylesheet0$_atRootQuery$0() {
  94933. var interpolation, t2, t3, t4, buffer, t5, _this = this,
  94934. t1 = _this.scanner;
  94935. if (t1.peekChar$0() === 35) {
  94936. interpolation = _this.singleInterpolation$0();
  94937. return A.Interpolation$0(A._setArrayType([interpolation], type$.JSArray_Object), interpolation.get$span(interpolation));
  94938. }
  94939. t2 = t1._string_scanner$_position;
  94940. t3 = new A.StringBuffer("");
  94941. t4 = A._setArrayType([], type$.JSArray_Object);
  94942. buffer = new A.InterpolationBuffer0(t3, t4);
  94943. t1.expectChar$1(40);
  94944. t3._contents += A.Primitives_stringFromCharCode(40);
  94945. _this.whitespace$0();
  94946. t5 = _this._stylesheet0$_expression$0();
  94947. buffer._interpolation_buffer0$_flushText$0();
  94948. t4.push(t5);
  94949. if (t1.scanChar$1(58)) {
  94950. _this.whitespace$0();
  94951. t5 = t3._contents += A.Primitives_stringFromCharCode(58);
  94952. t3._contents = t5 + A.Primitives_stringFromCharCode(32);
  94953. t5 = _this._stylesheet0$_expression$0();
  94954. buffer._interpolation_buffer0$_flushText$0();
  94955. t4.push(t5);
  94956. }
  94957. t1.expectChar$1(41);
  94958. _this.whitespace$0();
  94959. t3._contents += A.Primitives_stringFromCharCode(41);
  94960. return buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  94961. },
  94962. _stylesheet0$_contentRule$1(start) {
  94963. var t1, $arguments, t2, t3, _this = this;
  94964. if (!_this._stylesheet0$_inMixin)
  94965. _this.error$2(0, string$.x40conte, _this.scanner.spanFrom$1(start));
  94966. _this.whitespace$0();
  94967. t1 = _this.scanner;
  94968. if (t1.peekChar$0() === 40)
  94969. $arguments = _this._stylesheet0$_argumentInvocation$1$mixin(true);
  94970. else {
  94971. t2 = A.FileLocation$_(t1._sourceFile, t1._string_scanner$_position);
  94972. t3 = t2.offset;
  94973. $arguments = A.ArgumentInvocation$empty0(A._FileSpan$(t2.file, t3, t3));
  94974. }
  94975. _this.expectStatementSeparator$1("@content rule");
  94976. return new A.ContentRule0($arguments, t1.spanFrom$1(start));
  94977. },
  94978. _stylesheet0$_debugRule$1(start) {
  94979. var value = this._stylesheet0$_expression$0();
  94980. this.expectStatementSeparator$1("@debug rule");
  94981. return new A.DebugRule0(value, this.scanner.spanFrom$1(start));
  94982. },
  94983. _stylesheet0$_eachRule$2(start, child) {
  94984. var variables, t1, _this = this,
  94985. wasInControlDirective = _this._stylesheet0$_inControlDirective;
  94986. _this._stylesheet0$_inControlDirective = true;
  94987. variables = A._setArrayType([_this.variableName$0()], type$.JSArray_String);
  94988. _this.whitespace$0();
  94989. for (t1 = _this.scanner; t1.scanChar$1(44);) {
  94990. _this.whitespace$0();
  94991. t1.expectChar$1(36);
  94992. variables.push(_this.identifier$1$normalize(true));
  94993. _this.whitespace$0();
  94994. }
  94995. _this.expectIdentifier$1("in");
  94996. _this.whitespace$0();
  94997. return _this._stylesheet0$_withChildren$3(child, start, new A.StylesheetParser__eachRule_closure0(_this, wasInControlDirective, variables, _this._stylesheet0$_expression$0()));
  94998. },
  94999. _stylesheet0$_errorRule$1(start) {
  95000. var value = this._stylesheet0$_expression$0();
  95001. this.expectStatementSeparator$1("@error rule");
  95002. return new A.ErrorRule0(value, this.scanner.spanFrom$1(start));
  95003. },
  95004. _stylesheet0$_functionRule$1(start) {
  95005. var $name, $arguments, _this = this,
  95006. precedingComment = _this.lastSilentComment;
  95007. _this.lastSilentComment = null;
  95008. $name = _this.identifier$1$normalize(true);
  95009. _this.whitespace$0();
  95010. $arguments = _this._stylesheet0$_argumentDeclaration$0();
  95011. if (_this._stylesheet0$_inMixin || _this._stylesheet0$_inContentBlock)
  95012. _this.error$2(0, string$.Mixinscf, _this.scanner.spanFrom$1(start));
  95013. else if (_this._stylesheet0$_inControlDirective)
  95014. _this.error$2(0, string$.Functi, _this.scanner.spanFrom$1(start));
  95015. switch (A.unvendor0($name)) {
  95016. case "calc":
  95017. case "element":
  95018. case "expression":
  95019. case "url":
  95020. case "and":
  95021. case "or":
  95022. case "not":
  95023. case "clamp":
  95024. _this.error$2(0, "Invalid function name.", _this.scanner.spanFrom$1(start));
  95025. break;
  95026. }
  95027. _this.whitespace$0();
  95028. return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_functionChild(), start, new A.StylesheetParser__functionRule_closure0($name, $arguments, precedingComment));
  95029. },
  95030. _stylesheet0$_forRule$2(start, child) {
  95031. var variable, from, _this = this, t1 = {},
  95032. wasInControlDirective = _this._stylesheet0$_inControlDirective;
  95033. _this._stylesheet0$_inControlDirective = true;
  95034. variable = _this.variableName$0();
  95035. _this.whitespace$0();
  95036. _this.expectIdentifier$1("from");
  95037. _this.whitespace$0();
  95038. t1.exclusive = null;
  95039. from = _this._stylesheet0$_expression$1$until(new A.StylesheetParser__forRule_closure1(t1, _this));
  95040. if (t1.exclusive == null)
  95041. _this.scanner.error$1(0, 'Expected "to" or "through".');
  95042. _this.whitespace$0();
  95043. return _this._stylesheet0$_withChildren$3(child, start, new A.StylesheetParser__forRule_closure2(t1, _this, wasInControlDirective, variable, from, _this._stylesheet0$_expression$0()));
  95044. },
  95045. _stylesheet0$_forwardRule$1(start) {
  95046. var prefix, members, shownMixinsAndFunctions, shownVariables, hiddenVariables, hiddenMixinsAndFunctions, configuration, span, t1, t2, t3, t4, _this = this, _null = null,
  95047. url = _this._stylesheet0$_urlString$0();
  95048. _this.whitespace$0();
  95049. if (_this.scanIdentifier$1("as")) {
  95050. _this.whitespace$0();
  95051. prefix = _this.identifier$1$normalize(true);
  95052. _this.scanner.expectChar$1(42);
  95053. _this.whitespace$0();
  95054. } else
  95055. prefix = _null;
  95056. if (_this.scanIdentifier$1("show")) {
  95057. members = _this._stylesheet0$_memberList$0();
  95058. shownMixinsAndFunctions = members.item1;
  95059. shownVariables = members.item2;
  95060. hiddenVariables = _null;
  95061. hiddenMixinsAndFunctions = hiddenVariables;
  95062. } else {
  95063. if (_this.scanIdentifier$1("hide")) {
  95064. members = _this._stylesheet0$_memberList$0();
  95065. hiddenMixinsAndFunctions = members.item1;
  95066. hiddenVariables = members.item2;
  95067. } else {
  95068. hiddenVariables = _null;
  95069. hiddenMixinsAndFunctions = hiddenVariables;
  95070. }
  95071. shownVariables = _null;
  95072. shownMixinsAndFunctions = shownVariables;
  95073. }
  95074. configuration = _this._stylesheet0$_configuration$1$allowGuarded(true);
  95075. _this.expectStatementSeparator$1("@forward rule");
  95076. span = _this.scanner.spanFrom$1(start);
  95077. if (!_this._stylesheet0$_isUseAllowed)
  95078. _this.error$2(0, string$.x40forwa, span);
  95079. if (shownMixinsAndFunctions != null) {
  95080. shownVariables.toString;
  95081. t1 = type$.String;
  95082. t2 = A.LinkedHashSet_LinkedHashSet$of(shownMixinsAndFunctions, t1);
  95083. t3 = type$.UnmodifiableSetView_String;
  95084. t1 = A.LinkedHashSet_LinkedHashSet$of(shownVariables, t1);
  95085. t4 = configuration == null ? B.List_empty20 : A.List_List$unmodifiable(configuration, type$.ConfiguredVariable_2);
  95086. return new A.ForwardRule0(url, new A.UnmodifiableSetView(t2, t3), new A.UnmodifiableSetView(t1, t3), _null, _null, prefix, t4, span);
  95087. } else if (hiddenMixinsAndFunctions != null) {
  95088. hiddenVariables.toString;
  95089. t1 = type$.String;
  95090. t2 = A.LinkedHashSet_LinkedHashSet$of(hiddenMixinsAndFunctions, t1);
  95091. t3 = type$.UnmodifiableSetView_String;
  95092. t1 = A.LinkedHashSet_LinkedHashSet$of(hiddenVariables, t1);
  95093. t4 = configuration == null ? B.List_empty20 : A.List_List$unmodifiable(configuration, type$.ConfiguredVariable_2);
  95094. return new A.ForwardRule0(url, _null, _null, new A.UnmodifiableSetView(t2, t3), new A.UnmodifiableSetView(t1, t3), prefix, t4, span);
  95095. } else
  95096. return new A.ForwardRule0(url, _null, _null, _null, _null, prefix, configuration == null ? B.List_empty20 : A.List_List$unmodifiable(configuration, type$.ConfiguredVariable_2), span);
  95097. },
  95098. _stylesheet0$_memberList$0() {
  95099. var _this = this,
  95100. t1 = type$.String,
  95101. identifiers = A.LinkedHashSet_LinkedHashSet$_empty(t1),
  95102. variables = A.LinkedHashSet_LinkedHashSet$_empty(t1);
  95103. t1 = _this.scanner;
  95104. do {
  95105. _this.whitespace$0();
  95106. _this.withErrorMessage$2(string$.Expectv, new A.StylesheetParser__memberList_closure0(_this, variables, identifiers));
  95107. _this.whitespace$0();
  95108. } while (t1.scanChar$1(44));
  95109. return new A.Tuple2(identifiers, variables, type$.Tuple2_of_Set_String_and_Set_String);
  95110. },
  95111. _stylesheet0$_ifRule$2(start, child) {
  95112. var condition, children, clauses, lastClause, span, _this = this,
  95113. ifIndentation = _this.get$currentIndentation(),
  95114. wasInControlDirective = _this._stylesheet0$_inControlDirective;
  95115. _this._stylesheet0$_inControlDirective = true;
  95116. condition = _this._stylesheet0$_expression$0();
  95117. children = _this.children$1(0, child);
  95118. _this.whitespaceWithoutComments$0();
  95119. clauses = A._setArrayType([A.IfClause$0(condition, children)], type$.JSArray_IfClause_2);
  95120. while (true) {
  95121. if (!_this.scanElse$1(ifIndentation)) {
  95122. lastClause = null;
  95123. break;
  95124. }
  95125. _this.whitespace$0();
  95126. if (_this.scanIdentifier$1("if")) {
  95127. _this.whitespace$0();
  95128. clauses.push(A.IfClause$0(_this._stylesheet0$_expression$0(), _this.children$1(0, child)));
  95129. } else {
  95130. lastClause = A.ElseClause$0(_this.children$1(0, child));
  95131. break;
  95132. }
  95133. }
  95134. _this._stylesheet0$_inControlDirective = wasInControlDirective;
  95135. span = _this.scanner.spanFrom$1(start);
  95136. _this.whitespaceWithoutComments$0();
  95137. return new A.IfRule0(A.List_List$unmodifiable(clauses, type$.IfClause_2), lastClause, span);
  95138. },
  95139. _stylesheet0$_importRule$1(start) {
  95140. var argument, _this = this,
  95141. imports = A._setArrayType([], type$.JSArray_Import_2),
  95142. t1 = _this.scanner;
  95143. do {
  95144. _this.whitespace$0();
  95145. argument = _this.importArgument$0();
  95146. if ((_this._stylesheet0$_inControlDirective || _this._stylesheet0$_inMixin) && argument instanceof A.DynamicImport0)
  95147. _this._stylesheet0$_disallowedAtRule$1(start);
  95148. imports.push(argument);
  95149. _this.whitespace$0();
  95150. } while (t1.scanChar$1(44));
  95151. _this.expectStatementSeparator$1("@import rule");
  95152. t1 = t1.spanFrom$1(start);
  95153. return new A.ImportRule0(A.List_List$unmodifiable(imports, type$.Import_2), t1);
  95154. },
  95155. importArgument$0() {
  95156. var url, urlSpan, innerError, stackTrace, modifiers, t2, exception, _this = this,
  95157. t1 = _this.scanner,
  95158. start = new A._SpanScannerState(t1, t1._string_scanner$_position),
  95159. next = t1.peekChar$0();
  95160. if (next === 117 || next === 85) {
  95161. url = _this.dynamicUrl$0();
  95162. _this.whitespace$0();
  95163. modifiers = _this.tryImportModifiers$0();
  95164. return new A.StaticImport0(A.Interpolation$0(A._setArrayType([url], type$.JSArray_Object), t1.spanFrom$1(start)), modifiers, t1.spanFrom$1(start));
  95165. }
  95166. url = _this.string$0();
  95167. urlSpan = t1.spanFrom$1(start);
  95168. _this.whitespace$0();
  95169. modifiers = _this.tryImportModifiers$0();
  95170. if (_this.isPlainImportUrl$1(url) || modifiers != null) {
  95171. t2 = urlSpan;
  95172. return new A.StaticImport0(A.Interpolation$0(A._setArrayType([A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t2.file._decodedChars, t2._file$_start, t2._end), 0, null)], type$.JSArray_Object), urlSpan), modifiers, t1.spanFrom$1(start));
  95173. } else
  95174. try {
  95175. t1 = _this.parseImportUrl$1(url);
  95176. return new A.DynamicImport0(t1, urlSpan);
  95177. } catch (exception) {
  95178. t1 = A.unwrapException(exception);
  95179. if (type$.FormatException._is(t1)) {
  95180. innerError = t1;
  95181. stackTrace = A.getTraceFromException(exception);
  95182. _this.error$3(0, "Invalid URL: " + J.get$message$x(innerError), urlSpan, stackTrace);
  95183. } else
  95184. throw exception;
  95185. }
  95186. },
  95187. parseImportUrl$1(url) {
  95188. var t1 = $.$get$windows();
  95189. if (t1.style.rootLength$1(url) > 0 && !$.$get$url().style.isRootRelative$1(url))
  95190. return t1.toUri$1(url).toString$0(0);
  95191. A.Uri_parse(url);
  95192. return url;
  95193. },
  95194. isPlainImportUrl$1(url) {
  95195. var first;
  95196. if (url.length < 5)
  95197. return false;
  95198. if (B.JSString_methods.endsWith$1(url, ".css"))
  95199. return true;
  95200. first = B.JSString_methods._codeUnitAt$1(url, 0);
  95201. if (first === 47)
  95202. return B.JSString_methods._codeUnitAt$1(url, 1) === 47;
  95203. if (first !== 104)
  95204. return false;
  95205. return B.JSString_methods.startsWith$1(url, "http://") || B.JSString_methods.startsWith$1(url, "https://");
  95206. },
  95207. tryImportModifiers$0() {
  95208. var t1, start, t2, t3, buffer, identifier, t4, $name, query, endPosition, t5, result, _this = this;
  95209. if (!_this._stylesheet0$_lookingAtInterpolatedIdentifier$0() && _this.scanner.peekChar$0() !== 40)
  95210. return null;
  95211. t1 = _this.scanner;
  95212. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  95213. t2 = new A.StringBuffer("");
  95214. t3 = A._setArrayType([], type$.JSArray_Object);
  95215. buffer = new A.InterpolationBuffer0(t2, t3);
  95216. for (; true;)
  95217. if (_this._stylesheet0$_lookingAtInterpolatedIdentifier$0()) {
  95218. if (!(t3.length === 0 && t2._contents.length === 0))
  95219. t2._contents += A.Primitives_stringFromCharCode(32);
  95220. identifier = _this.interpolatedIdentifier$0();
  95221. buffer.addInterpolation$1(identifier);
  95222. t4 = identifier.get$asPlain();
  95223. $name = t4 == null ? null : t4.toLowerCase();
  95224. if ($name !== "and" && t1.scanChar$1(40)) {
  95225. if ($name === "supports") {
  95226. query = _this._stylesheet0$_importSupportsQuery$0();
  95227. t4 = !(query instanceof A.SupportsDeclaration0);
  95228. if (t4)
  95229. t2._contents += A.Primitives_stringFromCharCode(40);
  95230. buffer._interpolation_buffer0$_flushText$0();
  95231. t3.push(new A.SupportsExpression0(query));
  95232. if (t4)
  95233. t2._contents += A.Primitives_stringFromCharCode(41);
  95234. } else {
  95235. t2._contents += A.Primitives_stringFromCharCode(40);
  95236. buffer.addInterpolation$1(_this._stylesheet0$_interpolatedDeclarationValue$2$allowEmpty$allowSemicolon(true, true));
  95237. t2._contents += A.Primitives_stringFromCharCode(41);
  95238. }
  95239. t1.expectChar$1(41);
  95240. _this.whitespace$0();
  95241. } else {
  95242. _this.whitespace$0();
  95243. if (t1.scanChar$1(44)) {
  95244. t2._contents += ", ";
  95245. buffer.addInterpolation$1(_this._stylesheet0$_mediaQueryList$0());
  95246. endPosition = t1._string_scanner$_position;
  95247. t4 = t1._sourceFile;
  95248. t5 = start.position;
  95249. t1 = new A._FileSpan(t4, t5, endPosition);
  95250. t1._FileSpan$3(t4, t5, endPosition);
  95251. t5 = type$.Object;
  95252. t4 = A.List_List$of(t3, true, t5);
  95253. t3 = t2._contents;
  95254. if (t3.length !== 0)
  95255. t4.push(t3.charCodeAt(0) == 0 ? t3 : t3);
  95256. result = A.List_List$from(t4, false, t5);
  95257. result.fixed$length = Array;
  95258. result.immutable$list = Array;
  95259. t2 = new A.Interpolation0(result, t1);
  95260. t2.Interpolation$20(t4, t1);
  95261. return t2;
  95262. }
  95263. }
  95264. } else if (t1.peekChar$0() === 40) {
  95265. if (!(t3.length === 0 && t2._contents.length === 0))
  95266. t2._contents += A.Primitives_stringFromCharCode(32);
  95267. buffer.addInterpolation$1(_this._stylesheet0$_mediaQueryList$0());
  95268. endPosition = t1._string_scanner$_position;
  95269. t1 = t1._sourceFile;
  95270. t4 = start.position;
  95271. t5 = new A._FileSpan(t1, t4, endPosition);
  95272. t5._FileSpan$3(t1, t4, endPosition);
  95273. t4 = type$.Object;
  95274. t3 = A.List_List$of(t3, true, t4);
  95275. t1 = t2._contents;
  95276. if (t1.length !== 0)
  95277. t3.push(t1.charCodeAt(0) == 0 ? t1 : t1);
  95278. result = A.List_List$from(t3, false, t4);
  95279. result.fixed$length = Array;
  95280. result.immutable$list = Array;
  95281. t1 = new A.Interpolation0(result, t5);
  95282. t1.Interpolation$20(t3, t5);
  95283. return t1;
  95284. } else {
  95285. endPosition = t1._string_scanner$_position;
  95286. t1 = t1._sourceFile;
  95287. t4 = start.position;
  95288. t5 = new A._FileSpan(t1, t4, endPosition);
  95289. t5._FileSpan$3(t1, t4, endPosition);
  95290. t4 = type$.Object;
  95291. t3 = A.List_List$of(t3, true, t4);
  95292. t1 = t2._contents;
  95293. if (t1.length !== 0)
  95294. t3.push(t1.charCodeAt(0) == 0 ? t1 : t1);
  95295. result = A.List_List$from(t3, false, t4);
  95296. result.fixed$length = Array;
  95297. result.immutable$list = Array;
  95298. t1 = new A.Interpolation0(result, t5);
  95299. t1.Interpolation$20(t3, t5);
  95300. return t1;
  95301. }
  95302. },
  95303. _stylesheet0$_importSupportsQuery$0() {
  95304. var t1, t2, $function, $name, _this = this;
  95305. if (_this.scanIdentifier$1("not")) {
  95306. _this.whitespace$0();
  95307. t1 = _this.scanner;
  95308. t2 = t1._string_scanner$_position;
  95309. return new A.SupportsNegation0(_this._stylesheet0$_supportsConditionInParens$0(), t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  95310. } else {
  95311. t1 = _this.scanner;
  95312. if (t1.peekChar$0() === 40)
  95313. return _this._stylesheet0$_supportsCondition$0();
  95314. else {
  95315. $function = _this._stylesheet0$_tryImportSupportsFunction$0();
  95316. if ($function != null)
  95317. return $function;
  95318. t2 = t1._string_scanner$_position;
  95319. $name = _this._stylesheet0$_expression$0();
  95320. t1.expectChar$1(58);
  95321. return _this._stylesheet0$_supportsDeclarationValue$2($name, new A._SpanScannerState(t1, t2));
  95322. }
  95323. }
  95324. },
  95325. _stylesheet0$_tryImportSupportsFunction$0() {
  95326. var t1, start, $name, value, _this = this;
  95327. if (!_this._stylesheet0$_lookingAtInterpolatedIdentifier$0())
  95328. return null;
  95329. t1 = _this.scanner;
  95330. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  95331. $name = _this.interpolatedIdentifier$0();
  95332. if (!t1.scanChar$1(40)) {
  95333. t1.set$state(start);
  95334. return null;
  95335. }
  95336. value = _this._stylesheet0$_interpolatedDeclarationValue$2$allowEmpty$allowSemicolon(true, true);
  95337. t1.expectChar$1(41);
  95338. return new A.SupportsFunction0($name, value, t1.spanFrom$1(start));
  95339. },
  95340. _stylesheet0$_includeRule$1(start) {
  95341. var name0, namespace, $arguments, t2, t3, contentArguments, contentArguments_, wasInContentBlock, $content, _this = this, _null = null,
  95342. $name = _this.identifier$0(),
  95343. t1 = _this.scanner;
  95344. if (t1.scanChar$1(46)) {
  95345. name0 = _this._stylesheet0$_publicIdentifier$0();
  95346. namespace = $name;
  95347. $name = name0;
  95348. } else {
  95349. $name = A.stringReplaceAllUnchecked($name, "_", "-");
  95350. namespace = _null;
  95351. }
  95352. _this.whitespace$0();
  95353. if (t1.peekChar$0() === 40)
  95354. $arguments = _this._stylesheet0$_argumentInvocation$1$mixin(true);
  95355. else {
  95356. t2 = A.FileLocation$_(t1._sourceFile, t1._string_scanner$_position);
  95357. t3 = t2.offset;
  95358. $arguments = A.ArgumentInvocation$empty0(A._FileSpan$(t2.file, t3, t3));
  95359. }
  95360. _this.whitespace$0();
  95361. if (_this.scanIdentifier$1("using")) {
  95362. _this.whitespace$0();
  95363. contentArguments = _this._stylesheet0$_argumentDeclaration$0();
  95364. _this.whitespace$0();
  95365. } else
  95366. contentArguments = _null;
  95367. t2 = contentArguments == null;
  95368. if (!t2 || _this.lookingAtChildren$0()) {
  95369. if (t2) {
  95370. t2 = A.FileLocation$_(t1._sourceFile, t1._string_scanner$_position);
  95371. t3 = t2.offset;
  95372. contentArguments_ = new A.ArgumentDeclaration0(B.List_empty22, _null, A._FileSpan$(t2.file, t3, t3));
  95373. } else
  95374. contentArguments_ = contentArguments;
  95375. wasInContentBlock = _this._stylesheet0$_inContentBlock;
  95376. _this._stylesheet0$_inContentBlock = true;
  95377. $content = _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new A.StylesheetParser__includeRule_closure0(contentArguments_));
  95378. _this._stylesheet0$_inContentBlock = wasInContentBlock;
  95379. } else {
  95380. _this.expectStatementSeparator$0();
  95381. $content = _null;
  95382. }
  95383. t1 = t1.spanFrom$2(start, start);
  95384. t2 = $content == null ? $arguments : $content;
  95385. return new A.IncludeRule0(namespace, $name, $arguments, $content, t1.expand$1(0, t2.get$span(t2)));
  95386. },
  95387. mediaRule$1(start) {
  95388. return this._stylesheet0$_withChildren$3(this.get$_stylesheet0$_statement(), start, new A.StylesheetParser_mediaRule_closure0(this._stylesheet0$_mediaQueryList$0()));
  95389. },
  95390. _stylesheet0$_mixinRule$1(start) {
  95391. var $name, t1, $arguments, t2, t3, _this = this,
  95392. precedingComment = _this.lastSilentComment;
  95393. _this.lastSilentComment = null;
  95394. $name = _this.identifier$1$normalize(true);
  95395. _this.whitespace$0();
  95396. t1 = _this.scanner;
  95397. if (t1.peekChar$0() === 40)
  95398. $arguments = _this._stylesheet0$_argumentDeclaration$0();
  95399. else {
  95400. t2 = A.FileLocation$_(t1._sourceFile, t1._string_scanner$_position);
  95401. t3 = t2.offset;
  95402. $arguments = new A.ArgumentDeclaration0(B.List_empty22, null, A._FileSpan$(t2.file, t3, t3));
  95403. }
  95404. if (_this._stylesheet0$_inMixin || _this._stylesheet0$_inContentBlock)
  95405. _this.error$2(0, string$.Mixinscm, t1.spanFrom$1(start));
  95406. else if (_this._stylesheet0$_inControlDirective)
  95407. _this.error$2(0, string$.Mixinsb, t1.spanFrom$1(start));
  95408. _this.whitespace$0();
  95409. _this._stylesheet0$_inMixin = true;
  95410. return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new A.StylesheetParser__mixinRule_closure0(_this, $name, $arguments, precedingComment));
  95411. },
  95412. mozDocumentRule$2(start, $name) {
  95413. var t5, t6, t7, identifier, contents, argument, trailing, endPosition, t8, t9, start0, end, _this = this, _box_0 = {},
  95414. t1 = _this.scanner,
  95415. t2 = t1._string_scanner$_position,
  95416. t3 = new A.StringBuffer(""),
  95417. t4 = A._setArrayType([], type$.JSArray_Object),
  95418. buffer = new A.InterpolationBuffer0(t3, t4);
  95419. _box_0.needsDeprecationWarning = false;
  95420. for (t5 = _this.get$whitespace(), t6 = t1.string; true;) {
  95421. if (t1.peekChar$0() === 35) {
  95422. t7 = _this.singleInterpolation$0();
  95423. buffer._interpolation_buffer0$_flushText$0();
  95424. t4.push(t7);
  95425. _box_0.needsDeprecationWarning = true;
  95426. } else {
  95427. t7 = t1._string_scanner$_position;
  95428. identifier = _this.identifier$0();
  95429. switch (identifier) {
  95430. case "url":
  95431. case "url-prefix":
  95432. case "domain":
  95433. contents = _this._stylesheet0$_tryUrlContents$2$name(new A._SpanScannerState(t1, t7), identifier);
  95434. if (contents != null)
  95435. buffer.addInterpolation$1(contents);
  95436. else {
  95437. t1.expectChar$1(40);
  95438. _this.whitespace$0();
  95439. argument = _this.interpolatedString$0();
  95440. t1.expectChar$1(41);
  95441. t7 = t3._contents += identifier;
  95442. t3._contents = t7 + A.Primitives_stringFromCharCode(40);
  95443. buffer.addInterpolation$1(argument.asInterpolation$0());
  95444. t3._contents += A.Primitives_stringFromCharCode(41);
  95445. }
  95446. t7 = t3._contents;
  95447. trailing = t7.charCodeAt(0) == 0 ? t7 : t7;
  95448. if (!B.JSString_methods.endsWith$1(trailing, "url-prefix()") && !B.JSString_methods.endsWith$1(trailing, "url-prefix('')") && !B.JSString_methods.endsWith$1(trailing, 'url-prefix("")'))
  95449. _box_0.needsDeprecationWarning = true;
  95450. break;
  95451. case "regexp":
  95452. t3._contents += "regexp(";
  95453. t1.expectChar$1(40);
  95454. buffer.addInterpolation$1(_this.interpolatedString$0().asInterpolation$0());
  95455. t1.expectChar$1(41);
  95456. t3._contents += A.Primitives_stringFromCharCode(41);
  95457. _box_0.needsDeprecationWarning = true;
  95458. break;
  95459. default:
  95460. endPosition = t1._string_scanner$_position;
  95461. t8 = t1._sourceFile;
  95462. t9 = new A._FileSpan(t8, t7, endPosition);
  95463. t9._FileSpan$3(t8, t7, endPosition);
  95464. A.throwExpression(new A.StringScannerException(t6, "Invalid function name.", t9));
  95465. }
  95466. }
  95467. _this.whitespace$0();
  95468. if (!t1.scanChar$1(44))
  95469. break;
  95470. t3._contents += A.Primitives_stringFromCharCode(44);
  95471. start0 = t1._string_scanner$_position;
  95472. t5.call$0();
  95473. end = t1._string_scanner$_position;
  95474. t3._contents += B.JSString_methods.substring$2(t6, start0, end);
  95475. }
  95476. return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new A.StylesheetParser_mozDocumentRule_closure0(_box_0, _this, $name, buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2)))));
  95477. },
  95478. supportsRule$1(start) {
  95479. var _this = this,
  95480. condition = _this._stylesheet0$_supportsCondition$0();
  95481. _this.whitespace$0();
  95482. return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new A.StylesheetParser_supportsRule_closure0(condition));
  95483. },
  95484. _stylesheet0$_useNamespace$2(url, start) {
  95485. var namespace, basename, dot, t1, exception, _this = this;
  95486. if (_this.scanIdentifier$1("as")) {
  95487. _this.whitespace$0();
  95488. return _this.scanner.scanChar$1(42) ? null : _this.identifier$0();
  95489. }
  95490. basename = url.get$pathSegments().length === 0 ? "" : B.JSArray_methods.get$last(url.get$pathSegments());
  95491. dot = B.JSString_methods.indexOf$1(basename, ".");
  95492. t1 = B.JSString_methods.startsWith$1(basename, "_") ? 1 : 0;
  95493. namespace = B.JSString_methods.substring$2(basename, t1, dot === -1 ? basename.length : dot);
  95494. try {
  95495. t1 = A.SpanScanner$(namespace, null);
  95496. t1 = new A.Parser1(t1, _this.logger)._parser0$_parseIdentifier$0();
  95497. return t1;
  95498. } catch (exception) {
  95499. if (A.unwrapException(exception) instanceof A.SassFormatException0)
  95500. _this.error$2(0, 'The default namespace "' + A.S(namespace) + string$.x22x20is_n, _this.scanner.spanFrom$1(start));
  95501. else
  95502. throw exception;
  95503. }
  95504. },
  95505. _stylesheet0$_configuration$1$allowGuarded(allowGuarded) {
  95506. var variableNames, configuration, t1, t2, t3, $name, expression, t4, guarded, endPosition, t5, t6, span, _this = this;
  95507. if (!_this.scanIdentifier$1("with"))
  95508. return null;
  95509. variableNames = A.LinkedHashSet_LinkedHashSet$_empty(type$.String);
  95510. configuration = A._setArrayType([], type$.JSArray_ConfiguredVariable_2);
  95511. _this.whitespace$0();
  95512. t1 = _this.scanner;
  95513. t1.expectChar$1(40);
  95514. for (t2 = t1.string; true;) {
  95515. _this.whitespace$0();
  95516. t3 = t1._string_scanner$_position;
  95517. t1.expectChar$1(36);
  95518. $name = _this.identifier$1$normalize(true);
  95519. _this.whitespace$0();
  95520. t1.expectChar$1(58);
  95521. _this.whitespace$0();
  95522. expression = _this.expressionUntilComma$0();
  95523. t4 = t1._string_scanner$_position;
  95524. if (allowGuarded && t1.scanChar$1(33))
  95525. if (_this.identifier$0() === "default") {
  95526. _this.whitespace$0();
  95527. guarded = true;
  95528. } else {
  95529. endPosition = t1._string_scanner$_position;
  95530. t5 = t1._sourceFile;
  95531. t6 = new A._FileSpan(t5, t4, endPosition);
  95532. t6._FileSpan$3(t5, t4, endPosition);
  95533. A.throwExpression(new A.StringScannerException(t2, "Invalid flag name.", t6));
  95534. guarded = false;
  95535. }
  95536. else
  95537. guarded = false;
  95538. endPosition = t1._string_scanner$_position;
  95539. t4 = t1._sourceFile;
  95540. span = new A._FileSpan(t4, t3, endPosition);
  95541. span._FileSpan$3(t4, t3, endPosition);
  95542. if (variableNames.contains$1(0, $name))
  95543. A.throwExpression(new A.StringScannerException(t2, string$.The_sa, span));
  95544. variableNames.add$1(0, $name);
  95545. configuration.push(new A.ConfiguredVariable0($name, expression, guarded, span));
  95546. if (!t1.scanChar$1(44))
  95547. break;
  95548. _this.whitespace$0();
  95549. if (!_this._stylesheet0$_lookingAtExpression$0())
  95550. break;
  95551. }
  95552. t1.expectChar$1(41);
  95553. return configuration;
  95554. },
  95555. _stylesheet0$_configuration$0() {
  95556. return this._stylesheet0$_configuration$1$allowGuarded(false);
  95557. },
  95558. _stylesheet0$_warnRule$1(start) {
  95559. var value = this._stylesheet0$_expression$0();
  95560. this.expectStatementSeparator$1("@warn rule");
  95561. return new A.WarnRule0(value, this.scanner.spanFrom$1(start));
  95562. },
  95563. _stylesheet0$_whileRule$2(start, child) {
  95564. var _this = this,
  95565. wasInControlDirective = _this._stylesheet0$_inControlDirective;
  95566. _this._stylesheet0$_inControlDirective = true;
  95567. return _this._stylesheet0$_withChildren$3(child, start, new A.StylesheetParser__whileRule_closure0(_this, wasInControlDirective, _this._stylesheet0$_expression$0()));
  95568. },
  95569. unknownAtRule$2(start, $name) {
  95570. var t2, t3, rule, _this = this, t1 = {},
  95571. wasInUnknownAtRule = _this._stylesheet0$_inUnknownAtRule;
  95572. _this._stylesheet0$_inUnknownAtRule = true;
  95573. t1.value = null;
  95574. t2 = _this.scanner;
  95575. t3 = t2.peekChar$0() !== 33 && !_this.atEndOfStatement$0() ? t1.value = _this.almostAnyValue$0() : null;
  95576. if (_this.lookingAtChildren$0())
  95577. rule = _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new A.StylesheetParser_unknownAtRule_closure0(t1, $name));
  95578. else {
  95579. _this.expectStatementSeparator$0();
  95580. rule = A.AtRule$0($name, t2.spanFrom$1(start), null, t3);
  95581. }
  95582. _this._stylesheet0$_inUnknownAtRule = wasInUnknownAtRule;
  95583. return rule;
  95584. },
  95585. _stylesheet0$_disallowedAtRule$1(start) {
  95586. this.almostAnyValue$0();
  95587. this.error$2(0, "This at-rule is not allowed here.", this.scanner.spanFrom$1(start));
  95588. },
  95589. _stylesheet0$_argumentDeclaration$0() {
  95590. var $arguments, named, restArgument, t3, t4, $name, defaultValue, endPosition, t5, t6, _this = this,
  95591. t1 = _this.scanner,
  95592. t2 = t1._string_scanner$_position;
  95593. t1.expectChar$1(40);
  95594. _this.whitespace$0();
  95595. $arguments = A._setArrayType([], type$.JSArray_Argument_2);
  95596. named = A.LinkedHashSet_LinkedHashSet$_empty(type$.String);
  95597. t3 = t1.string;
  95598. while (true) {
  95599. if (!(t1.peekChar$0() === 36)) {
  95600. restArgument = null;
  95601. break;
  95602. }
  95603. t4 = t1._string_scanner$_position;
  95604. t1.expectChar$1(36);
  95605. $name = _this.identifier$1$normalize(true);
  95606. _this.whitespace$0();
  95607. if (t1.scanChar$1(58)) {
  95608. _this.whitespace$0();
  95609. defaultValue = _this.expressionUntilComma$0();
  95610. } else {
  95611. if (t1.scanChar$1(46)) {
  95612. t1.expectChar$1(46);
  95613. t1.expectChar$1(46);
  95614. _this.whitespace$0();
  95615. restArgument = $name;
  95616. break;
  95617. }
  95618. defaultValue = null;
  95619. }
  95620. endPosition = t1._string_scanner$_position;
  95621. t5 = t1._sourceFile;
  95622. t6 = new A._FileSpan(t5, t4, endPosition);
  95623. t6._FileSpan$3(t5, t4, endPosition);
  95624. $arguments.push(new A.Argument0($name, defaultValue, t6));
  95625. if (!named.add$1(0, $name))
  95626. A.throwExpression(new A.StringScannerException(t3, "Duplicate argument.", B.JSArray_methods.get$last($arguments).span));
  95627. if (!t1.scanChar$1(44)) {
  95628. restArgument = null;
  95629. break;
  95630. }
  95631. _this.whitespace$0();
  95632. }
  95633. t1.expectChar$1(41);
  95634. t1 = t1.spanFrom$1(new A._SpanScannerState(t1, t2));
  95635. return new A.ArgumentDeclaration0(A.List_List$unmodifiable($arguments, type$.Argument_2), restArgument, t1);
  95636. },
  95637. _stylesheet0$_argumentInvocation$2$allowEmptySecondArg$mixin(allowEmptySecondArg, mixin) {
  95638. var positional, t3, t4, named, keywordRest, t5, t6, rest, expression, t7, result, _this = this, _null = null,
  95639. t1 = _this.scanner,
  95640. t2 = t1._string_scanner$_position;
  95641. t1.expectChar$1(40);
  95642. _this.whitespace$0();
  95643. positional = A._setArrayType([], type$.JSArray_Expression_2);
  95644. t3 = type$.String;
  95645. t4 = type$.Expression_2;
  95646. named = A.LinkedHashMap_LinkedHashMap$_empty(t3, t4);
  95647. t5 = !mixin;
  95648. t6 = t1.string;
  95649. rest = _null;
  95650. while (true) {
  95651. if (!_this._stylesheet0$_lookingAtExpression$0()) {
  95652. keywordRest = _null;
  95653. break;
  95654. }
  95655. expression = _this.expressionUntilComma$1$singleEquals(t5);
  95656. _this.whitespace$0();
  95657. if (expression instanceof A.VariableExpression0 && t1.scanChar$1(58)) {
  95658. _this.whitespace$0();
  95659. t7 = expression.name;
  95660. if (named.containsKey$1(t7))
  95661. A.throwExpression(new A.StringScannerException(t6, "Duplicate argument.", expression.span));
  95662. named.$indexSet(0, t7, _this.expressionUntilComma$1$singleEquals(t5));
  95663. } else if (t1.scanChar$1(46)) {
  95664. t1.expectChar$1(46);
  95665. t1.expectChar$1(46);
  95666. if (rest != null) {
  95667. _this.whitespace$0();
  95668. keywordRest = expression;
  95669. break;
  95670. }
  95671. rest = expression;
  95672. } else if (named.__js_helper$_length !== 0)
  95673. A.throwExpression(new A.StringScannerException(t6, string$.Positi, expression.get$span(expression)));
  95674. else
  95675. positional.push(expression);
  95676. _this.whitespace$0();
  95677. if (!t1.scanChar$1(44)) {
  95678. keywordRest = _null;
  95679. break;
  95680. }
  95681. _this.whitespace$0();
  95682. if (allowEmptySecondArg && positional.length === 1 && named.__js_helper$_length === 0 && rest == null && t1.peekChar$0() === 41) {
  95683. t5 = t1._sourceFile;
  95684. t6 = t1._string_scanner$_position;
  95685. new A.FileLocation(t5, t6).FileLocation$_$2(t5, t6);
  95686. t7 = new A._FileSpan(t5, t6, t6);
  95687. t7._FileSpan$3(t5, t6, t6);
  95688. t6 = A._setArrayType([""], type$.JSArray_Object);
  95689. result = A.List_List$from(t6, false, type$.Object);
  95690. result.fixed$length = Array;
  95691. result.immutable$list = Array;
  95692. t5 = new A.Interpolation0(result, t7);
  95693. t5.Interpolation$20(t6, t7);
  95694. positional.push(new A.StringExpression0(t5, false));
  95695. keywordRest = _null;
  95696. break;
  95697. }
  95698. }
  95699. t1.expectChar$1(41);
  95700. t1 = t1.spanFrom$1(new A._SpanScannerState(t1, t2));
  95701. return new A.ArgumentInvocation0(A.List_List$unmodifiable(positional, t4), A.ConstantMap_ConstantMap$from(named, t3, t4), rest, keywordRest, t1);
  95702. },
  95703. _stylesheet0$_argumentInvocation$0() {
  95704. return this._stylesheet0$_argumentInvocation$2$allowEmptySecondArg$mixin(false, false);
  95705. },
  95706. _stylesheet0$_argumentInvocation$1$allowEmptySecondArg(allowEmptySecondArg) {
  95707. return this._stylesheet0$_argumentInvocation$2$allowEmptySecondArg$mixin(allowEmptySecondArg, false);
  95708. },
  95709. _stylesheet0$_argumentInvocation$1$mixin(mixin) {
  95710. return this._stylesheet0$_argumentInvocation$2$allowEmptySecondArg$mixin(false, mixin);
  95711. },
  95712. _stylesheet0$_expression$3$bracketList$singleEquals$until(bracketList, singleEquals, until) {
  95713. var t2, beforeBracket, start, wasInParentheses, resetState, resolveOneOperation, resolveOperations, addSingleExpression, addOperator, resolveSpaceExpressions, t3, first, next, t4, commaExpressions, spaceExpressions, singleExpression, _this = this,
  95714. _s20_ = "Expected expression.",
  95715. _box_0 = {},
  95716. t1 = until != null;
  95717. if (t1 && until.call$0())
  95718. _this.scanner.error$1(0, _s20_);
  95719. if (bracketList) {
  95720. t2 = _this.scanner;
  95721. beforeBracket = new A._SpanScannerState(t2, t2._string_scanner$_position);
  95722. t2.expectChar$1(91);
  95723. _this.whitespace$0();
  95724. if (t2.scanChar$1(93)) {
  95725. t1 = A._setArrayType([], type$.JSArray_Expression_2);
  95726. t2 = t2.spanFrom$1(beforeBracket);
  95727. return new A.ListExpression0(A.List_List$unmodifiable(t1, type$.Expression_2), B.ListSeparator_undecided_null_undecided0, true, t2);
  95728. }
  95729. } else
  95730. beforeBracket = null;
  95731. t2 = _this.scanner;
  95732. start = new A._SpanScannerState(t2, t2._string_scanner$_position);
  95733. wasInParentheses = _this._stylesheet0$_inParentheses;
  95734. _box_0.operands_ = _box_0.operators_ = _box_0.spaceExpressions_ = _box_0.commaExpressions_ = null;
  95735. _box_0.allowSlash = true;
  95736. _box_0.singleExpression_ = _this._stylesheet0$_singleExpression$0();
  95737. resetState = new A.StylesheetParser__expression_resetState0(_box_0, _this, start);
  95738. resolveOneOperation = new A.StylesheetParser__expression_resolveOneOperation0(_box_0, _this);
  95739. resolveOperations = new A.StylesheetParser__expression_resolveOperations0(_box_0, resolveOneOperation);
  95740. addSingleExpression = new A.StylesheetParser__expression_addSingleExpression0(_box_0, _this, resetState, resolveOperations);
  95741. addOperator = new A.StylesheetParser__expression_addOperator0(_box_0, _this, resolveOneOperation);
  95742. resolveSpaceExpressions = new A.StylesheetParser__expression_resolveSpaceExpressions0(_box_0, _this, resolveOperations);
  95743. $label0$0:
  95744. for (t3 = type$.JSArray_Expression_2; true;) {
  95745. _this.whitespace$0();
  95746. if (t1 && until.call$0())
  95747. break $label0$0;
  95748. first = t2.peekChar$0();
  95749. switch (first) {
  95750. case 40:
  95751. addSingleExpression.call$1(_this._stylesheet0$_parentheses$0());
  95752. break;
  95753. case 91:
  95754. addSingleExpression.call$1(_this._stylesheet0$_expression$1$bracketList(true));
  95755. break;
  95756. case 36:
  95757. addSingleExpression.call$1(_this._stylesheet0$_variable$0());
  95758. break;
  95759. case 38:
  95760. addSingleExpression.call$1(_this._stylesheet0$_selector$0());
  95761. break;
  95762. case 39:
  95763. case 34:
  95764. addSingleExpression.call$1(_this.interpolatedString$0());
  95765. break;
  95766. case 35:
  95767. addSingleExpression.call$1(_this._stylesheet0$_hashExpression$0());
  95768. break;
  95769. case 61:
  95770. t2.readChar$0();
  95771. if (singleEquals && t2.peekChar$0() !== 61)
  95772. addOperator.call$1(B.BinaryOperator_axY0);
  95773. else {
  95774. t2.expectChar$1(61);
  95775. addOperator.call$1(B.BinaryOperator_nZh0);
  95776. }
  95777. break;
  95778. case 33:
  95779. next = t2.peekChar$1(1);
  95780. if (next === 61) {
  95781. t2.readChar$0();
  95782. t2.readChar$0();
  95783. addOperator.call$1(B.BinaryOperator_Vr90);
  95784. } else {
  95785. if (next != null)
  95786. if ((next | 32) >>> 0 !== 105)
  95787. t4 = next === 32 || next === 9 || next === 10 || next === 13 || next === 12;
  95788. else
  95789. t4 = true;
  95790. else
  95791. t4 = true;
  95792. if (t4)
  95793. addSingleExpression.call$1(_this._stylesheet0$_importantExpression$0());
  95794. else
  95795. break $label0$0;
  95796. }
  95797. break;
  95798. case 60:
  95799. t2.readChar$0();
  95800. addOperator.call$1(t2.scanChar$1(61) ? B.BinaryOperator_oqF0 : B.BinaryOperator_apg0);
  95801. break;
  95802. case 62:
  95803. t2.readChar$0();
  95804. addOperator.call$1(t2.scanChar$1(61) ? B.BinaryOperator_Wma0 : B.BinaryOperator_cw10);
  95805. break;
  95806. case 42:
  95807. t2.readChar$0();
  95808. addOperator.call$1(B.BinaryOperator_6pl0);
  95809. break;
  95810. case 43:
  95811. if (_box_0.singleExpression_ == null)
  95812. addSingleExpression.call$1(_this._stylesheet0$_unaryOperation$0());
  95813. else {
  95814. t2.readChar$0();
  95815. addOperator.call$1(B.BinaryOperator_qbf0);
  95816. }
  95817. break;
  95818. case 45:
  95819. next = t2.peekChar$1(1);
  95820. if (next != null && next >= 48 && next <= 57 || next === 46)
  95821. if (_box_0.singleExpression_ != null) {
  95822. t4 = t2.peekChar$1(-1);
  95823. t4 = t4 === 32 || t4 === 9 || t4 === 10 || t4 === 13 || t4 === 12;
  95824. } else
  95825. t4 = true;
  95826. else
  95827. t4 = false;
  95828. if (t4)
  95829. addSingleExpression.call$1(_this._stylesheet0$_number$0());
  95830. else if (_this._stylesheet0$_lookingAtInterpolatedIdentifier$0())
  95831. addSingleExpression.call$1(_this.identifierLike$0());
  95832. else if (_box_0.singleExpression_ == null)
  95833. addSingleExpression.call$1(_this._stylesheet0$_unaryOperation$0());
  95834. else {
  95835. t2.readChar$0();
  95836. addOperator.call$1(B.BinaryOperator_KlB0);
  95837. }
  95838. break;
  95839. case 47:
  95840. if (_box_0.singleExpression_ == null)
  95841. addSingleExpression.call$1(_this._stylesheet0$_unaryOperation$0());
  95842. else {
  95843. t2.readChar$0();
  95844. addOperator.call$1(B.BinaryOperator_qpm0);
  95845. }
  95846. break;
  95847. case 37:
  95848. t2.readChar$0();
  95849. addOperator.call$1(B.BinaryOperator_PHH0);
  95850. break;
  95851. case 48:
  95852. case 49:
  95853. case 50:
  95854. case 51:
  95855. case 52:
  95856. case 53:
  95857. case 54:
  95858. case 55:
  95859. case 56:
  95860. case 57:
  95861. addSingleExpression.call$1(_this._stylesheet0$_number$0());
  95862. break;
  95863. case 46:
  95864. if (t2.peekChar$1(1) === 46)
  95865. break $label0$0;
  95866. addSingleExpression.call$1(_this._stylesheet0$_number$0());
  95867. break;
  95868. case 97:
  95869. if (!_this.get$plainCss() && _this.scanIdentifier$1("and"))
  95870. addOperator.call$1(B.BinaryOperator_and_and_2_and0);
  95871. else
  95872. addSingleExpression.call$1(_this.identifierLike$0());
  95873. break;
  95874. case 111:
  95875. if (!_this.get$plainCss() && _this.scanIdentifier$1("or"))
  95876. addOperator.call$1(B.BinaryOperator_or_or_1_or0);
  95877. else
  95878. addSingleExpression.call$1(_this.identifierLike$0());
  95879. break;
  95880. case 117:
  95881. case 85:
  95882. if (t2.peekChar$1(1) === 43)
  95883. addSingleExpression.call$1(_this._stylesheet0$_unicodeRange$0());
  95884. else
  95885. addSingleExpression.call$1(_this.identifierLike$0());
  95886. break;
  95887. case 98:
  95888. case 99:
  95889. case 100:
  95890. case 101:
  95891. case 102:
  95892. case 103:
  95893. case 104:
  95894. case 105:
  95895. case 106:
  95896. case 107:
  95897. case 108:
  95898. case 109:
  95899. case 110:
  95900. case 112:
  95901. case 113:
  95902. case 114:
  95903. case 115:
  95904. case 116:
  95905. case 118:
  95906. case 119:
  95907. case 120:
  95908. case 121:
  95909. case 122:
  95910. case 65:
  95911. case 66:
  95912. case 67:
  95913. case 68:
  95914. case 69:
  95915. case 70:
  95916. case 71:
  95917. case 72:
  95918. case 73:
  95919. case 74:
  95920. case 75:
  95921. case 76:
  95922. case 77:
  95923. case 78:
  95924. case 79:
  95925. case 80:
  95926. case 81:
  95927. case 82:
  95928. case 83:
  95929. case 84:
  95930. case 86:
  95931. case 87:
  95932. case 88:
  95933. case 89:
  95934. case 90:
  95935. case 95:
  95936. case 92:
  95937. addSingleExpression.call$1(_this.identifierLike$0());
  95938. break;
  95939. case 44:
  95940. if (_this._stylesheet0$_inParentheses) {
  95941. _this._stylesheet0$_inParentheses = false;
  95942. if (_box_0.allowSlash) {
  95943. resetState.call$0();
  95944. break;
  95945. }
  95946. }
  95947. commaExpressions = _box_0.commaExpressions_;
  95948. if (commaExpressions == null)
  95949. commaExpressions = _box_0.commaExpressions_ = A._setArrayType([], t3);
  95950. if (_box_0.singleExpression_ == null)
  95951. t2.error$1(0, _s20_);
  95952. resolveSpaceExpressions.call$0();
  95953. t4 = _box_0.singleExpression_;
  95954. t4.toString;
  95955. commaExpressions.push(t4);
  95956. t2.readChar$0();
  95957. _box_0.allowSlash = true;
  95958. _box_0.singleExpression_ = null;
  95959. break;
  95960. default:
  95961. if (first != null && first >= 128) {
  95962. addSingleExpression.call$1(_this.identifierLike$0());
  95963. break;
  95964. } else
  95965. break $label0$0;
  95966. }
  95967. }
  95968. if (bracketList)
  95969. t2.expectChar$1(93);
  95970. commaExpressions = _box_0.commaExpressions_;
  95971. spaceExpressions = _box_0.spaceExpressions_;
  95972. if (commaExpressions != null) {
  95973. resolveSpaceExpressions.call$0();
  95974. _this._stylesheet0$_inParentheses = wasInParentheses;
  95975. singleExpression = _box_0.singleExpression_;
  95976. if (singleExpression != null)
  95977. commaExpressions.push(singleExpression);
  95978. t1 = t2.spanFrom$1(beforeBracket == null ? start : beforeBracket);
  95979. return new A.ListExpression0(A.List_List$unmodifiable(commaExpressions, type$.Expression_2), B.ListSeparator_rXA0, bracketList, t1);
  95980. } else if (bracketList && spaceExpressions != null) {
  95981. resolveOperations.call$0();
  95982. t1 = _box_0.singleExpression_;
  95983. t1.toString;
  95984. spaceExpressions.push(t1);
  95985. beforeBracket.toString;
  95986. t2 = t2.spanFrom$1(beforeBracket);
  95987. return new A.ListExpression0(A.List_List$unmodifiable(spaceExpressions, type$.Expression_2), B.ListSeparator_EVt0, true, t2);
  95988. } else {
  95989. resolveSpaceExpressions.call$0();
  95990. if (bracketList) {
  95991. t1 = _box_0.singleExpression_;
  95992. t1.toString;
  95993. t3 = A._setArrayType([t1], t3);
  95994. beforeBracket.toString;
  95995. t2 = t2.spanFrom$1(beforeBracket);
  95996. _box_0.singleExpression_ = new A.ListExpression0(A.List_List$unmodifiable(t3, type$.Expression_2), B.ListSeparator_undecided_null_undecided0, true, t2);
  95997. }
  95998. t1 = _box_0.singleExpression_;
  95999. t1.toString;
  96000. return t1;
  96001. }
  96002. },
  96003. _stylesheet0$_expression$2$singleEquals$until(singleEquals, until) {
  96004. return this._stylesheet0$_expression$3$bracketList$singleEquals$until(false, singleEquals, until);
  96005. },
  96006. _stylesheet0$_expression$1$bracketList(bracketList) {
  96007. return this._stylesheet0$_expression$3$bracketList$singleEquals$until(bracketList, false, null);
  96008. },
  96009. _stylesheet0$_expression$0() {
  96010. return this._stylesheet0$_expression$3$bracketList$singleEquals$until(false, false, null);
  96011. },
  96012. _stylesheet0$_expression$1$until(until) {
  96013. return this._stylesheet0$_expression$3$bracketList$singleEquals$until(false, false, until);
  96014. },
  96015. expressionUntilComma$1$singleEquals(singleEquals) {
  96016. return this._stylesheet0$_expression$2$singleEquals$until(singleEquals, new A.StylesheetParser_expressionUntilComma_closure0(this));
  96017. },
  96018. expressionUntilComma$0() {
  96019. return this.expressionUntilComma$1$singleEquals(false);
  96020. },
  96021. _stylesheet0$_isSlashOperand$1(expression) {
  96022. var t1;
  96023. if (!(expression instanceof A.NumberExpression0))
  96024. if (!(expression instanceof A.CalculationExpression0))
  96025. t1 = expression instanceof A.BinaryOperationExpression0 && expression.allowsSlash;
  96026. else
  96027. t1 = true;
  96028. else
  96029. t1 = true;
  96030. return t1;
  96031. },
  96032. _stylesheet0$_singleExpression$0() {
  96033. var next, _this = this,
  96034. t1 = _this.scanner,
  96035. first = t1.peekChar$0();
  96036. switch (first) {
  96037. case 40:
  96038. return _this._stylesheet0$_parentheses$0();
  96039. case 47:
  96040. return _this._stylesheet0$_unaryOperation$0();
  96041. case 46:
  96042. return _this._stylesheet0$_number$0();
  96043. case 91:
  96044. return _this._stylesheet0$_expression$1$bracketList(true);
  96045. case 36:
  96046. return _this._stylesheet0$_variable$0();
  96047. case 38:
  96048. return _this._stylesheet0$_selector$0();
  96049. case 39:
  96050. case 34:
  96051. return _this.interpolatedString$0();
  96052. case 35:
  96053. return _this._stylesheet0$_hashExpression$0();
  96054. case 43:
  96055. next = t1.peekChar$1(1);
  96056. return A.isDigit0(next) || next === 46 ? _this._stylesheet0$_number$0() : _this._stylesheet0$_unaryOperation$0();
  96057. case 45:
  96058. return _this._stylesheet0$_minusExpression$0();
  96059. case 33:
  96060. return _this._stylesheet0$_importantExpression$0();
  96061. case 117:
  96062. case 85:
  96063. if (t1.peekChar$1(1) === 43)
  96064. return _this._stylesheet0$_unicodeRange$0();
  96065. else
  96066. return _this.identifierLike$0();
  96067. case 48:
  96068. case 49:
  96069. case 50:
  96070. case 51:
  96071. case 52:
  96072. case 53:
  96073. case 54:
  96074. case 55:
  96075. case 56:
  96076. case 57:
  96077. return _this._stylesheet0$_number$0();
  96078. case 97:
  96079. case 98:
  96080. case 99:
  96081. case 100:
  96082. case 101:
  96083. case 102:
  96084. case 103:
  96085. case 104:
  96086. case 105:
  96087. case 106:
  96088. case 107:
  96089. case 108:
  96090. case 109:
  96091. case 110:
  96092. case 111:
  96093. case 112:
  96094. case 113:
  96095. case 114:
  96096. case 115:
  96097. case 116:
  96098. case 118:
  96099. case 119:
  96100. case 120:
  96101. case 121:
  96102. case 122:
  96103. case 65:
  96104. case 66:
  96105. case 67:
  96106. case 68:
  96107. case 69:
  96108. case 70:
  96109. case 71:
  96110. case 72:
  96111. case 73:
  96112. case 74:
  96113. case 75:
  96114. case 76:
  96115. case 77:
  96116. case 78:
  96117. case 79:
  96118. case 80:
  96119. case 81:
  96120. case 82:
  96121. case 83:
  96122. case 84:
  96123. case 86:
  96124. case 87:
  96125. case 88:
  96126. case 89:
  96127. case 90:
  96128. case 95:
  96129. case 92:
  96130. return _this.identifierLike$0();
  96131. default:
  96132. if (first != null && first >= 128)
  96133. return _this.identifierLike$0();
  96134. t1.error$1(0, "Expected expression.");
  96135. }
  96136. },
  96137. _stylesheet0$_parentheses$0() {
  96138. var wasInParentheses, start, first, expressions, t1, t2, _this = this;
  96139. if (_this.get$plainCss())
  96140. _this.scanner.error$2$length(0, "Parentheses aren't allowed in plain CSS.", 1);
  96141. wasInParentheses = _this._stylesheet0$_inParentheses;
  96142. _this._stylesheet0$_inParentheses = true;
  96143. try {
  96144. t1 = _this.scanner;
  96145. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  96146. t1.expectChar$1(40);
  96147. _this.whitespace$0();
  96148. if (!_this._stylesheet0$_lookingAtExpression$0()) {
  96149. t1.expectChar$1(41);
  96150. t2 = A._setArrayType([], type$.JSArray_Expression_2);
  96151. t1 = t1.spanFrom$1(start);
  96152. t2 = A.List_List$unmodifiable(t2, type$.Expression_2);
  96153. return new A.ListExpression0(t2, B.ListSeparator_undecided_null_undecided0, false, t1);
  96154. }
  96155. first = _this.expressionUntilComma$0();
  96156. if (t1.scanChar$1(58)) {
  96157. _this.whitespace$0();
  96158. t1 = _this._stylesheet0$_map$2(first, start);
  96159. return t1;
  96160. }
  96161. if (!t1.scanChar$1(44)) {
  96162. t1.expectChar$1(41);
  96163. t1 = t1.spanFrom$1(start);
  96164. return new A.ParenthesizedExpression0(first, t1);
  96165. }
  96166. _this.whitespace$0();
  96167. expressions = A._setArrayType([first], type$.JSArray_Expression_2);
  96168. for (; true;) {
  96169. if (!_this._stylesheet0$_lookingAtExpression$0())
  96170. break;
  96171. J.add$1$ax(expressions, _this.expressionUntilComma$0());
  96172. if (!t1.scanChar$1(44))
  96173. break;
  96174. _this.whitespace$0();
  96175. }
  96176. t1.expectChar$1(41);
  96177. t1 = t1.spanFrom$1(start);
  96178. t2 = A.List_List$unmodifiable(expressions, type$.Expression_2);
  96179. return new A.ListExpression0(t2, B.ListSeparator_rXA0, false, t1);
  96180. } finally {
  96181. _this._stylesheet0$_inParentheses = wasInParentheses;
  96182. }
  96183. },
  96184. _stylesheet0$_map$2(first, start) {
  96185. var t2, key, _this = this,
  96186. t1 = type$.Tuple2_Expression_Expression_2,
  96187. pairs = A._setArrayType([new A.Tuple2(first, _this.expressionUntilComma$0(), t1)], type$.JSArray_Tuple2_Expression_Expression_2);
  96188. for (t2 = _this.scanner; t2.scanChar$1(44);) {
  96189. _this.whitespace$0();
  96190. if (!_this._stylesheet0$_lookingAtExpression$0())
  96191. break;
  96192. key = _this.expressionUntilComma$0();
  96193. t2.expectChar$1(58);
  96194. _this.whitespace$0();
  96195. pairs.push(new A.Tuple2(key, _this.expressionUntilComma$0(), t1));
  96196. }
  96197. t2.expectChar$1(41);
  96198. t2 = t2.spanFrom$1(start);
  96199. return new A.MapExpression0(A.List_List$unmodifiable(pairs, t1), t2);
  96200. },
  96201. _stylesheet0$_hashExpression$0() {
  96202. var start, first, t2, identifier, buffer, _this = this,
  96203. t1 = _this.scanner;
  96204. if (t1.peekChar$1(1) === 123)
  96205. return _this.identifierLike$0();
  96206. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  96207. t1.expectChar$1(35);
  96208. first = t1.peekChar$0();
  96209. if (first != null && A.isDigit0(first))
  96210. return new A.ColorExpression0(_this._stylesheet0$_hexColorContents$1(start), t1.spanFrom$1(start));
  96211. t2 = t1._string_scanner$_position;
  96212. identifier = _this.interpolatedIdentifier$0();
  96213. if (_this._stylesheet0$_isHexColor$1(identifier)) {
  96214. t1.set$state(new A._SpanScannerState(t1, t2));
  96215. return new A.ColorExpression0(_this._stylesheet0$_hexColorContents$1(start), t1.spanFrom$1(start));
  96216. }
  96217. t2 = new A.StringBuffer("");
  96218. buffer = new A.InterpolationBuffer0(t2, A._setArrayType([], type$.JSArray_Object));
  96219. t2._contents = "" + A.Primitives_stringFromCharCode(35);
  96220. buffer.addInterpolation$1(identifier);
  96221. return new A.StringExpression0(buffer.interpolation$1(t1.spanFrom$1(start)), false);
  96222. },
  96223. _stylesheet0$_hexColorContents$1(start) {
  96224. var red, green, blue, alpha, digit4, t2, t3, _this = this,
  96225. digit1 = _this._stylesheet0$_hexDigit$0(),
  96226. digit2 = _this._stylesheet0$_hexDigit$0(),
  96227. digit3 = _this._stylesheet0$_hexDigit$0(),
  96228. t1 = _this.scanner;
  96229. if (!A.isHex0(t1.peekChar$0())) {
  96230. red = (digit1 << 4 >>> 0) + digit1;
  96231. green = (digit2 << 4 >>> 0) + digit2;
  96232. blue = (digit3 << 4 >>> 0) + digit3;
  96233. alpha = null;
  96234. } else {
  96235. digit4 = _this._stylesheet0$_hexDigit$0();
  96236. t2 = digit1 << 4 >>> 0;
  96237. t3 = digit3 << 4 >>> 0;
  96238. if (!A.isHex0(t1.peekChar$0())) {
  96239. red = t2 + digit1;
  96240. green = (digit2 << 4 >>> 0) + digit2;
  96241. blue = t3 + digit3;
  96242. alpha = ((digit4 << 4 >>> 0) + digit4) / 255;
  96243. } else {
  96244. red = t2 + digit2;
  96245. green = t3 + digit4;
  96246. blue = (_this._stylesheet0$_hexDigit$0() << 4 >>> 0) + _this._stylesheet0$_hexDigit$0();
  96247. alpha = A.isHex0(t1.peekChar$0()) ? ((_this._stylesheet0$_hexDigit$0() << 4 >>> 0) + _this._stylesheet0$_hexDigit$0()) / 255 : null;
  96248. }
  96249. }
  96250. return A.SassColor$rgbInternal0(red, green, blue, alpha, alpha == null ? new A.SpanColorFormat0(t1.spanFrom$1(start)) : null);
  96251. },
  96252. _stylesheet0$_isHexColor$1(interpolation) {
  96253. var t1,
  96254. plain = interpolation.get$asPlain();
  96255. if (plain == null)
  96256. return false;
  96257. t1 = plain.length;
  96258. if (t1 !== 3 && t1 !== 4 && t1 !== 6 && t1 !== 8)
  96259. return false;
  96260. t1 = new A.CodeUnits(plain);
  96261. return t1.every$1(t1, A.character0__isHex$closure());
  96262. },
  96263. _stylesheet0$_hexDigit$0() {
  96264. var t1 = this.scanner,
  96265. char = t1.peekChar$0();
  96266. if (char == null || !A.isHex0(char))
  96267. t1.error$1(0, "Expected hex digit.");
  96268. return A.asHex0(t1.readChar$0());
  96269. },
  96270. _stylesheet0$_minusExpression$0() {
  96271. var _this = this,
  96272. next = _this.scanner.peekChar$1(1);
  96273. if (A.isDigit0(next) || next === 46)
  96274. return _this._stylesheet0$_number$0();
  96275. if (_this._stylesheet0$_lookingAtInterpolatedIdentifier$0())
  96276. return _this.identifierLike$0();
  96277. return _this._stylesheet0$_unaryOperation$0();
  96278. },
  96279. _stylesheet0$_importantExpression$0() {
  96280. var t1 = this.scanner,
  96281. t2 = t1._string_scanner$_position;
  96282. t1.readChar$0();
  96283. this.whitespace$0();
  96284. this.expectIdentifier$1("important");
  96285. t2 = t1.spanFrom$1(new A._SpanScannerState(t1, t2));
  96286. return new A.StringExpression0(A.Interpolation$0(A._setArrayType(["!important"], type$.JSArray_Object), t2), false);
  96287. },
  96288. _stylesheet0$_unaryOperation$0() {
  96289. var _this = this,
  96290. t1 = _this.scanner,
  96291. t2 = t1._string_scanner$_position,
  96292. operator = _this._stylesheet0$_unaryOperatorFor$1(t1.readChar$0());
  96293. if (operator == null)
  96294. t1.error$2$position(0, "Expected unary operator.", t1._string_scanner$_position - 1);
  96295. else if (_this.get$plainCss() && operator !== B.UnaryOperator_Ix10)
  96296. t1.error$3$length$position(0, "Operators aren't allowed in plain CSS.", 1, t1._string_scanner$_position - 1);
  96297. _this.whitespace$0();
  96298. return new A.UnaryOperationExpression0(operator, _this._stylesheet0$_singleExpression$0(), t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  96299. },
  96300. _stylesheet0$_unaryOperatorFor$1(character) {
  96301. switch (character) {
  96302. case 43:
  96303. return B.UnaryOperator_gg40;
  96304. case 45:
  96305. return B.UnaryOperator_TLI0;
  96306. case 47:
  96307. return B.UnaryOperator_Ix10;
  96308. default:
  96309. return null;
  96310. }
  96311. },
  96312. _stylesheet0$_number$0() {
  96313. var number, unit, t3, _this = this,
  96314. t1 = _this.scanner,
  96315. t2 = t1._string_scanner$_position,
  96316. first = t1.peekChar$0();
  96317. if (first === 43 || first === 45)
  96318. t1.readChar$0();
  96319. if (t1.peekChar$0() !== 46)
  96320. _this._stylesheet0$_consumeNaturalNumber$0();
  96321. _this._stylesheet0$_tryDecimal$1$allowTrailingDot(t1._string_scanner$_position !== t2);
  96322. _this._stylesheet0$_tryExponent$0();
  96323. number = A.double_parse(t1.substring$1(0, t2));
  96324. if (t1.scanChar$1(37))
  96325. unit = "%";
  96326. else {
  96327. if (_this.lookingAtIdentifier$0())
  96328. t3 = t1.peekChar$0() !== 45 || t1.peekChar$1(1) !== 45;
  96329. else
  96330. t3 = false;
  96331. unit = t3 ? _this.identifier$1$unit(true) : null;
  96332. }
  96333. return new A.NumberExpression0(number, unit, t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  96334. },
  96335. _stylesheet0$_consumeNaturalNumber$0() {
  96336. var t2,
  96337. t1 = this.scanner;
  96338. if (!A.isDigit0(t1.readChar$0()))
  96339. t1.error$2$position(0, "Expected digit.", t1._string_scanner$_position - 1);
  96340. while (true) {
  96341. t2 = t1.peekChar$0();
  96342. if (!(t2 != null && t2 >= 48 && t2 <= 57))
  96343. break;
  96344. t1.readChar$0();
  96345. }
  96346. },
  96347. _stylesheet0$_tryDecimal$1$allowTrailingDot(allowTrailingDot) {
  96348. var t2,
  96349. t1 = this.scanner;
  96350. if (t1.peekChar$0() !== 46)
  96351. return;
  96352. if (!A.isDigit0(t1.peekChar$1(1))) {
  96353. if (allowTrailingDot)
  96354. return;
  96355. t1.error$2$position(0, "Expected digit.", t1._string_scanner$_position + 1);
  96356. }
  96357. t1.readChar$0();
  96358. while (true) {
  96359. t2 = t1.peekChar$0();
  96360. if (!(t2 != null && t2 >= 48 && t2 <= 57))
  96361. break;
  96362. t1.readChar$0();
  96363. }
  96364. },
  96365. _stylesheet0$_tryExponent$0() {
  96366. var next, t2,
  96367. t1 = this.scanner,
  96368. first = t1.peekChar$0();
  96369. if (first !== 101 && first !== 69)
  96370. return;
  96371. next = t1.peekChar$1(1);
  96372. if (!A.isDigit0(next) && next !== 45 && next !== 43)
  96373. return;
  96374. t1.readChar$0();
  96375. if (next === 43 || next === 45)
  96376. t1.readChar$0();
  96377. if (!A.isDigit0(t1.peekChar$0()))
  96378. t1.error$1(0, "Expected digit.");
  96379. while (true) {
  96380. t2 = t1.peekChar$0();
  96381. if (!(t2 != null && t2 >= 48 && t2 <= 57))
  96382. break;
  96383. t1.readChar$0();
  96384. }
  96385. },
  96386. _stylesheet0$_unicodeRange$0() {
  96387. var firstRangeLength, hasQuestionMark, t2, secondRangeLength, _this = this,
  96388. _s26_ = "Expected at most 6 digits.",
  96389. t1 = _this.scanner,
  96390. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  96391. _this.expectIdentChar$1(117);
  96392. t1.expectChar$1(43);
  96393. for (firstRangeLength = 0; _this.scanCharIf$1(new A.StylesheetParser__unicodeRange_closure1());)
  96394. ++firstRangeLength;
  96395. for (hasQuestionMark = false; t1.scanChar$1(63); hasQuestionMark = true)
  96396. ++firstRangeLength;
  96397. if (firstRangeLength === 0)
  96398. t1.error$1(0, 'Expected hex digit or "?".');
  96399. else if (firstRangeLength > 6)
  96400. _this.error$2(0, _s26_, t1.spanFrom$1(start));
  96401. else if (hasQuestionMark) {
  96402. t2 = t1.substring$1(0, start.position);
  96403. t1 = t1.spanFrom$1(start);
  96404. return new A.StringExpression0(A.Interpolation$0(A._setArrayType([t2], type$.JSArray_Object), t1), false);
  96405. }
  96406. if (t1.scanChar$1(45)) {
  96407. t2 = t1._string_scanner$_position;
  96408. for (secondRangeLength = 0; _this.scanCharIf$1(new A.StylesheetParser__unicodeRange_closure2());)
  96409. ++secondRangeLength;
  96410. if (secondRangeLength === 0)
  96411. t1.error$1(0, "Expected hex digit.");
  96412. else if (secondRangeLength > 6)
  96413. _this.error$2(0, _s26_, t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  96414. }
  96415. if (_this._stylesheet0$_lookingAtInterpolatedIdentifierBody$0())
  96416. t1.error$1(0, "Expected end of identifier.");
  96417. t2 = t1.substring$1(0, start.position);
  96418. t1 = t1.spanFrom$1(start);
  96419. return new A.StringExpression0(A.Interpolation$0(A._setArrayType([t2], type$.JSArray_Object), t1), false);
  96420. },
  96421. _stylesheet0$_variable$0() {
  96422. var _this = this,
  96423. t1 = _this.scanner,
  96424. start = new A._SpanScannerState(t1, t1._string_scanner$_position),
  96425. $name = _this.variableName$0();
  96426. if (_this.get$plainCss())
  96427. _this.error$2(0, string$.Sass_v, t1.spanFrom$1(start));
  96428. return new A.VariableExpression0(null, $name, t1.spanFrom$1(start));
  96429. },
  96430. _stylesheet0$_selector$0() {
  96431. var t1, start, _this = this;
  96432. if (_this.get$plainCss())
  96433. _this.scanner.error$2$length(0, string$.The_pa, 1);
  96434. t1 = _this.scanner;
  96435. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  96436. t1.expectChar$1(38);
  96437. if (t1.scanChar$1(38)) {
  96438. _this.logger.warn$2$span(0, string$.In_Sas, t1.spanFrom$1(start));
  96439. t1.set$position(t1._string_scanner$_position - 1);
  96440. }
  96441. return new A.SelectorExpression0(t1.spanFrom$1(start));
  96442. },
  96443. interpolatedString$0() {
  96444. var t3, t4, buffer, next, second, t5,
  96445. t1 = this.scanner,
  96446. t2 = t1._string_scanner$_position,
  96447. quote = t1.readChar$0();
  96448. if (quote !== 39 && quote !== 34)
  96449. t1.error$2$position(0, "Expected string.", t2);
  96450. t3 = new A.StringBuffer("");
  96451. t4 = A._setArrayType([], type$.JSArray_Object);
  96452. buffer = new A.InterpolationBuffer0(t3, t4);
  96453. for (; true;) {
  96454. next = t1.peekChar$0();
  96455. if (next === quote) {
  96456. t1.readChar$0();
  96457. break;
  96458. } else if (next == null || next === 10 || next === 13 || next === 12)
  96459. t1.error$1(0, "Expected " + A.Primitives_stringFromCharCode(quote) + ".");
  96460. else if (next === 92) {
  96461. second = t1.peekChar$1(1);
  96462. if (second === 10 || second === 13 || second === 12) {
  96463. t1.readChar$0();
  96464. t1.readChar$0();
  96465. if (second === 13)
  96466. t1.scanChar$1(10);
  96467. } else
  96468. t3._contents += A.Primitives_stringFromCharCode(A.consumeEscapedCharacter0(t1));
  96469. } else if (next === 35)
  96470. if (t1.peekChar$1(1) === 123) {
  96471. t5 = this.singleInterpolation$0();
  96472. buffer._interpolation_buffer0$_flushText$0();
  96473. t4.push(t5);
  96474. } else
  96475. t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  96476. else
  96477. t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  96478. }
  96479. return new A.StringExpression0(buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2))), true);
  96480. },
  96481. identifierLike$0() {
  96482. var invocation, expression, color, specialFunction, _this = this,
  96483. t1 = _this.scanner,
  96484. start = new A._SpanScannerState(t1, t1._string_scanner$_position),
  96485. identifier = _this.interpolatedIdentifier$0(),
  96486. plain = identifier.get$asPlain(),
  96487. lower = A._Cell$(),
  96488. t2 = plain == null,
  96489. t3 = !t2;
  96490. if (t3) {
  96491. if (plain === "if" && t1.peekChar$0() === 40) {
  96492. invocation = _this._stylesheet0$_argumentInvocation$0();
  96493. return new A.IfExpression0(invocation, identifier.span.expand$1(0, invocation.span));
  96494. } else if (plain === "not") {
  96495. _this.whitespace$0();
  96496. expression = _this._stylesheet0$_singleExpression$0();
  96497. return new A.UnaryOperationExpression0(B.UnaryOperator_not_not_not0, expression, identifier.span.expand$1(0, expression.get$span(expression)));
  96498. }
  96499. lower._value = plain.toLowerCase();
  96500. if (t1.peekChar$0() !== 40) {
  96501. switch (plain) {
  96502. case "false":
  96503. return new A.BooleanExpression0(false, identifier.span);
  96504. case "null":
  96505. return new A.NullExpression0(identifier.span);
  96506. case "true":
  96507. return new A.BooleanExpression0(true, identifier.span);
  96508. }
  96509. color = $.$get$colorsByName0().$index(0, lower._readLocal$0());
  96510. if (color != null) {
  96511. t1 = identifier.span;
  96512. return new A.ColorExpression0(A.SassColor$rgbInternal0(color.get$red(color), color.get$green(color), color.get$blue(color), color._color1$_alpha, new A.SpanColorFormat0(t1)), t1);
  96513. }
  96514. }
  96515. specialFunction = _this.trySpecialFunction$2(lower._readLocal$0(), start);
  96516. if (specialFunction != null)
  96517. return specialFunction;
  96518. }
  96519. switch (t1.peekChar$0()) {
  96520. case 46:
  96521. if (t1.peekChar$1(1) === 46)
  96522. return new A.StringExpression0(identifier, false);
  96523. t1.readChar$0();
  96524. if (t3)
  96525. return _this.namespacedExpression$2(plain, start);
  96526. _this.error$2(0, string$.Interpn, identifier.span);
  96527. break;
  96528. case 40:
  96529. if (t2)
  96530. return new A.InterpolatedFunctionExpression0(identifier, _this._stylesheet0$_argumentInvocation$0(), t1.spanFrom$1(start));
  96531. else
  96532. return new A.FunctionExpression0(null, plain, _this._stylesheet0$_argumentInvocation$1$allowEmptySecondArg(J.$eq$(lower._readLocal$0(), "var")), t1.spanFrom$1(start));
  96533. default:
  96534. return new A.StringExpression0(identifier, false);
  96535. }
  96536. },
  96537. namespacedExpression$2(namespace, start) {
  96538. var $name, _this = this,
  96539. t1 = _this.scanner;
  96540. if (t1.peekChar$0() === 36) {
  96541. $name = _this.variableName$0();
  96542. _this._stylesheet0$_assertPublic$2($name, new A.StylesheetParser_namespacedExpression_closure0(_this, start));
  96543. return new A.VariableExpression0(namespace, $name, t1.spanFrom$1(start));
  96544. }
  96545. return new A.FunctionExpression0(namespace, _this._stylesheet0$_publicIdentifier$0(), _this._stylesheet0$_argumentInvocation$0(), t1.spanFrom$1(start));
  96546. },
  96547. trySpecialFunction$2($name, start) {
  96548. var t2, buffer, t3, next, _this = this, _null = null,
  96549. t1 = _this.scanner,
  96550. calculation = t1.peekChar$0() === 40 ? _this._stylesheet0$_tryCalculation$2($name, start) : _null;
  96551. if (calculation != null)
  96552. return calculation;
  96553. switch (A.unvendor0($name)) {
  96554. case "calc":
  96555. case "element":
  96556. case "expression":
  96557. if (!t1.scanChar$1(40))
  96558. return _null;
  96559. t2 = new A.StringBuffer("");
  96560. buffer = new A.InterpolationBuffer0(t2, A._setArrayType([], type$.JSArray_Object));
  96561. t3 = "" + $name;
  96562. t2._contents = t3;
  96563. t2._contents = t3 + A.Primitives_stringFromCharCode(40);
  96564. break;
  96565. case "progid":
  96566. if (!t1.scanChar$1(58))
  96567. return _null;
  96568. t2 = new A.StringBuffer("");
  96569. buffer = new A.InterpolationBuffer0(t2, A._setArrayType([], type$.JSArray_Object));
  96570. t3 = "" + $name;
  96571. t2._contents = t3;
  96572. t2._contents = t3 + A.Primitives_stringFromCharCode(58);
  96573. next = t1.peekChar$0();
  96574. while (true) {
  96575. if (next != null) {
  96576. if (!(next >= 97 && next <= 122))
  96577. t3 = next >= 65 && next <= 90;
  96578. else
  96579. t3 = true;
  96580. t3 = t3 || next === 46;
  96581. } else
  96582. t3 = false;
  96583. if (!t3)
  96584. break;
  96585. t2._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  96586. next = t1.peekChar$0();
  96587. }
  96588. t1.expectChar$1(40);
  96589. t2._contents += A.Primitives_stringFromCharCode(40);
  96590. break;
  96591. case "url":
  96592. return A.NullableExtension_andThen0(_this._stylesheet0$_tryUrlContents$1(start), new A.StylesheetParser_trySpecialFunction_closure0());
  96593. default:
  96594. return _null;
  96595. }
  96596. buffer.addInterpolation$1(_this._stylesheet0$_interpolatedDeclarationValue$1$allowEmpty(true));
  96597. t1.expectChar$1(41);
  96598. buffer._interpolation_buffer0$_text._contents += A.Primitives_stringFromCharCode(41);
  96599. return new A.StringExpression0(buffer.interpolation$1(t1.spanFrom$1(start)), false);
  96600. },
  96601. _stylesheet0$_tryCalculation$2($name, start) {
  96602. var beforeArguments, $arguments, t1, exception, t2, _this = this;
  96603. switch ($name) {
  96604. case "calc":
  96605. $arguments = _this._stylesheet0$_calculationArguments$1(1);
  96606. t1 = _this.scanner.spanFrom$1(start);
  96607. return new A.CalculationExpression0($name, A.CalculationExpression__verifyArguments0($arguments), t1);
  96608. case "min":
  96609. case "max":
  96610. t1 = _this.scanner;
  96611. beforeArguments = new A._SpanScannerState(t1, t1._string_scanner$_position);
  96612. $arguments = null;
  96613. try {
  96614. $arguments = _this._stylesheet0$_calculationArguments$0();
  96615. } catch (exception) {
  96616. if (type$.FormatException._is(A.unwrapException(exception))) {
  96617. t1.set$state(beforeArguments);
  96618. return null;
  96619. } else
  96620. throw exception;
  96621. }
  96622. t2 = $arguments;
  96623. t1 = t1.spanFrom$1(start);
  96624. return new A.CalculationExpression0($name, A.CalculationExpression__verifyArguments0(t2), t1);
  96625. case "clamp":
  96626. $arguments = _this._stylesheet0$_calculationArguments$1(3);
  96627. t1 = _this.scanner.spanFrom$1(start);
  96628. return new A.CalculationExpression0($name, A.CalculationExpression__verifyArguments0($arguments), t1);
  96629. default:
  96630. return null;
  96631. }
  96632. },
  96633. _stylesheet0$_calculationArguments$1(maxArgs) {
  96634. var interpolation, $arguments, t2, _this = this,
  96635. t1 = _this.scanner;
  96636. t1.expectChar$1(40);
  96637. interpolation = _this._stylesheet0$_containsCalculationInterpolation$0() ? new A.StringExpression0(_this._stylesheet0$_interpolatedDeclarationValue$0(), false) : null;
  96638. if (interpolation != null) {
  96639. t1.expectChar$1(41);
  96640. return A._setArrayType([interpolation], type$.JSArray_Expression_2);
  96641. }
  96642. _this.whitespace$0();
  96643. $arguments = A._setArrayType([_this._stylesheet0$_calculationSum$0()], type$.JSArray_Expression_2);
  96644. t2 = maxArgs != null;
  96645. while (true) {
  96646. if (!((!t2 || $arguments.length < maxArgs) && t1.scanChar$1(44)))
  96647. break;
  96648. _this.whitespace$0();
  96649. $arguments.push(_this._stylesheet0$_calculationSum$0());
  96650. }
  96651. t1.expectChar$2$name(41, $arguments.length === maxArgs ? '"+", "-", "*", "/", or ")"' : '"+", "-", "*", "/", ",", or ")"');
  96652. return $arguments;
  96653. },
  96654. _stylesheet0$_calculationArguments$0() {
  96655. return this._stylesheet0$_calculationArguments$1(null);
  96656. },
  96657. _stylesheet0$_calculationSum$0() {
  96658. var t1, next, t2, t3, _this = this,
  96659. sum = _this._stylesheet0$_calculationProduct$0();
  96660. for (t1 = _this.scanner; true;) {
  96661. next = t1.peekChar$0();
  96662. t2 = next === 43;
  96663. if (t2 || next === 45) {
  96664. t3 = t1.peekChar$1(-1);
  96665. if (t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12) {
  96666. t3 = t1.peekChar$1(1);
  96667. t3 = !(t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12);
  96668. } else
  96669. t3 = true;
  96670. if (t3)
  96671. t1.error$1(0, string$.x22x2b__an);
  96672. t1.readChar$0();
  96673. _this.whitespace$0();
  96674. t2 = t2 ? B.BinaryOperator_qbf0 : B.BinaryOperator_KlB0;
  96675. sum = new A.BinaryOperationExpression0(t2, sum, _this._stylesheet0$_calculationProduct$0(), false);
  96676. } else
  96677. return sum;
  96678. }
  96679. },
  96680. _stylesheet0$_calculationProduct$0() {
  96681. var t1, next, t2, _this = this,
  96682. product = _this._stylesheet0$_calculationValue$0();
  96683. for (t1 = _this.scanner; true;) {
  96684. _this.whitespace$0();
  96685. next = t1.peekChar$0();
  96686. t2 = next === 42;
  96687. if (t2 || next === 47) {
  96688. t1.readChar$0();
  96689. _this.whitespace$0();
  96690. t2 = t2 ? B.BinaryOperator_6pl0 : B.BinaryOperator_qpm0;
  96691. product = new A.BinaryOperationExpression0(t2, product, _this._stylesheet0$_calculationValue$0(), false);
  96692. } else
  96693. return product;
  96694. }
  96695. },
  96696. _stylesheet0$_calculationValue$0() {
  96697. var t2, value, start, ident, lowerCase, calculation, _this = this,
  96698. t1 = _this.scanner,
  96699. next = t1.peekChar$0();
  96700. if (next === 43 || next === 45 || next === 46 || A.isDigit0(next))
  96701. return _this._stylesheet0$_number$0();
  96702. else if (next === 36)
  96703. return _this._stylesheet0$_variable$0();
  96704. else if (next === 40) {
  96705. t2 = t1._string_scanner$_position;
  96706. t1.readChar$0();
  96707. value = _this._stylesheet0$_containsCalculationInterpolation$0() ? new A.StringExpression0(_this._stylesheet0$_interpolatedDeclarationValue$0(), false) : null;
  96708. if (value == null) {
  96709. _this.whitespace$0();
  96710. value = _this._stylesheet0$_calculationSum$0();
  96711. }
  96712. _this.whitespace$0();
  96713. t1.expectChar$1(41);
  96714. return new A.ParenthesizedExpression0(value, t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  96715. } else if (!_this.lookingAtIdentifier$0())
  96716. t1.error$1(0, string$.Expectn);
  96717. else {
  96718. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  96719. ident = _this.identifier$0();
  96720. if (t1.scanChar$1(46))
  96721. return _this.namespacedExpression$2(ident, start);
  96722. if (t1.peekChar$0() !== 40)
  96723. t1.error$1(0, 'Expected "(" or ".".');
  96724. lowerCase = ident.toLowerCase();
  96725. calculation = _this._stylesheet0$_tryCalculation$2(lowerCase, start);
  96726. if (calculation != null)
  96727. return calculation;
  96728. else if (lowerCase === "if")
  96729. return new A.IfExpression0(_this._stylesheet0$_argumentInvocation$0(), t1.spanFrom$1(start));
  96730. else
  96731. return new A.FunctionExpression0(null, ident, _this._stylesheet0$_argumentInvocation$0(), t1.spanFrom$1(start));
  96732. }
  96733. },
  96734. _stylesheet0$_containsCalculationInterpolation$0() {
  96735. var t2, parens, next, target, t3, _null = null,
  96736. _s64_ = string$.The_gi,
  96737. _s17_ = "Invalid position ",
  96738. brackets = A._setArrayType([], type$.JSArray_int),
  96739. t1 = this.scanner,
  96740. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  96741. for (t2 = t1.string.length, parens = 0; t1._string_scanner$_position !== t2;) {
  96742. next = t1.peekChar$0();
  96743. switch (next) {
  96744. case 92:
  96745. target = 1;
  96746. break;
  96747. case 47:
  96748. target = 2;
  96749. break;
  96750. case 39:
  96751. case 34:
  96752. target = 3;
  96753. break;
  96754. case 35:
  96755. target = 4;
  96756. break;
  96757. case 40:
  96758. target = 5;
  96759. break;
  96760. case 123:
  96761. case 91:
  96762. target = 6;
  96763. break;
  96764. case 41:
  96765. target = 7;
  96766. break;
  96767. case 125:
  96768. case 93:
  96769. target = 8;
  96770. break;
  96771. default:
  96772. target = 9;
  96773. break;
  96774. }
  96775. c$0:
  96776. for (; true;)
  96777. switch (target) {
  96778. case 1:
  96779. t1.readChar$0();
  96780. t1.readChar$0();
  96781. break c$0;
  96782. case 2:
  96783. if (!this.scanComment$0())
  96784. t1.readChar$0();
  96785. break c$0;
  96786. case 3:
  96787. this.interpolatedString$0();
  96788. break c$0;
  96789. case 4:
  96790. if (parens === 0 && t1.peekChar$1(1) === 123) {
  96791. if (start._scanner !== t1)
  96792. A.throwExpression(A.ArgumentError$(_s64_, _null));
  96793. t3 = start.position;
  96794. if ((t3 === 0 ? 1 / t3 < 0 : t3 < 0) || t3 > t2)
  96795. A.throwExpression(A.ArgumentError$(_s17_ + t3, _null));
  96796. t1._string_scanner$_position = t3;
  96797. t1._lastMatch = null;
  96798. return true;
  96799. }
  96800. t1.readChar$0();
  96801. break c$0;
  96802. case 5:
  96803. ++parens;
  96804. target = 6;
  96805. continue c$0;
  96806. case 6:
  96807. next.toString;
  96808. brackets.push(A.opposite0(next));
  96809. t1.readChar$0();
  96810. break c$0;
  96811. case 7:
  96812. --parens;
  96813. target = 8;
  96814. continue c$0;
  96815. case 8:
  96816. if (brackets.length === 0 || brackets.pop() !== next) {
  96817. if (start._scanner !== t1)
  96818. A.throwExpression(A.ArgumentError$(_s64_, _null));
  96819. t3 = start.position;
  96820. if ((t3 === 0 ? 1 / t3 < 0 : t3 < 0) || t3 > t2)
  96821. A.throwExpression(A.ArgumentError$(_s17_ + t3, _null));
  96822. t1._string_scanner$_position = t3;
  96823. t1._lastMatch = null;
  96824. return false;
  96825. }
  96826. t1.readChar$0();
  96827. break c$0;
  96828. case 9:
  96829. t1.readChar$0();
  96830. break c$0;
  96831. }
  96832. }
  96833. t1.set$state(start);
  96834. return false;
  96835. },
  96836. _stylesheet0$_tryUrlContents$2$name(start, $name) {
  96837. var t3, t4, buffer, t5, next, endPosition, result, _this = this,
  96838. t1 = _this.scanner,
  96839. t2 = t1._string_scanner$_position;
  96840. if (!t1.scanChar$1(40))
  96841. return null;
  96842. _this.whitespaceWithoutComments$0();
  96843. t3 = new A.StringBuffer("");
  96844. t4 = A._setArrayType([], type$.JSArray_Object);
  96845. buffer = new A.InterpolationBuffer0(t3, t4);
  96846. t5 = "" + ($name == null ? "url" : $name);
  96847. t3._contents = t5;
  96848. t3._contents = t5 + A.Primitives_stringFromCharCode(40);
  96849. for (; true;) {
  96850. next = t1.peekChar$0();
  96851. if (next == null)
  96852. break;
  96853. else if (next === 92)
  96854. t3._contents += A.S(_this.escape$0());
  96855. else {
  96856. if (next !== 33)
  96857. if (next !== 37)
  96858. if (next !== 38)
  96859. t5 = next >= 42 && next <= 126 || next >= 128;
  96860. else
  96861. t5 = true;
  96862. else
  96863. t5 = true;
  96864. else
  96865. t5 = true;
  96866. if (t5)
  96867. t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  96868. else if (next === 35)
  96869. if (t1.peekChar$1(1) === 123) {
  96870. t5 = _this.singleInterpolation$0();
  96871. buffer._interpolation_buffer0$_flushText$0();
  96872. t4.push(t5);
  96873. } else
  96874. t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  96875. else if (next === 32 || next === 9 || next === 10 || next === 13 || next === 12) {
  96876. _this.whitespaceWithoutComments$0();
  96877. if (t1.peekChar$0() !== 41)
  96878. break;
  96879. } else if (next === 41) {
  96880. t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  96881. endPosition = t1._string_scanner$_position;
  96882. t2 = t1._sourceFile;
  96883. t5 = start.position;
  96884. t1 = new A._FileSpan(t2, t5, endPosition);
  96885. t1._FileSpan$3(t2, t5, endPosition);
  96886. t5 = type$.Object;
  96887. t2 = A.List_List$of(t4, true, t5);
  96888. t4 = t3._contents;
  96889. if (t4.length !== 0)
  96890. t2.push(t4.charCodeAt(0) == 0 ? t4 : t4);
  96891. result = A.List_List$from(t2, false, t5);
  96892. result.fixed$length = Array;
  96893. result.immutable$list = Array;
  96894. t3 = new A.Interpolation0(result, t1);
  96895. t3.Interpolation$20(t2, t1);
  96896. return t3;
  96897. } else
  96898. break;
  96899. }
  96900. }
  96901. t1.set$state(new A._SpanScannerState(t1, t2));
  96902. return null;
  96903. },
  96904. _stylesheet0$_tryUrlContents$1(start) {
  96905. return this._stylesheet0$_tryUrlContents$2$name(start, null);
  96906. },
  96907. dynamicUrl$0() {
  96908. var contents, _this = this,
  96909. t1 = _this.scanner,
  96910. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  96911. _this.expectIdentifier$1("url");
  96912. contents = _this._stylesheet0$_tryUrlContents$1(start);
  96913. if (contents != null)
  96914. return new A.StringExpression0(contents, false);
  96915. return new A.InterpolatedFunctionExpression0(A.Interpolation$0(A._setArrayType(["url"], type$.JSArray_Object), t1.spanFrom$1(start)), _this._stylesheet0$_argumentInvocation$0(), t1.spanFrom$1(start));
  96916. },
  96917. almostAnyValue$1$omitComments(omitComments) {
  96918. var t4, t5, t6, next, commentStart, end, t7, contents, _this = this,
  96919. t1 = _this.scanner,
  96920. t2 = t1._string_scanner$_position,
  96921. t3 = new A.StringBuffer(""),
  96922. buffer = new A.InterpolationBuffer0(t3, A._setArrayType([], type$.JSArray_Object));
  96923. $label0$1:
  96924. for (t4 = t1.string, t5 = t4.length, t6 = !omitComments; true;) {
  96925. next = t1.peekChar$0();
  96926. switch (next) {
  96927. case 92:
  96928. t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  96929. t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  96930. break;
  96931. case 34:
  96932. case 39:
  96933. buffer.addInterpolation$1(_this.interpolatedString$0().asInterpolation$0());
  96934. break;
  96935. case 47:
  96936. commentStart = t1._string_scanner$_position;
  96937. if (_this.scanComment$0()) {
  96938. if (t6) {
  96939. end = t1._string_scanner$_position;
  96940. t3._contents += B.JSString_methods.substring$2(t4, commentStart, end);
  96941. }
  96942. } else
  96943. t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  96944. break;
  96945. case 35:
  96946. if (t1.peekChar$1(1) === 123)
  96947. buffer.addInterpolation$1(_this.interpolatedIdentifier$0());
  96948. else
  96949. t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  96950. break;
  96951. case 13:
  96952. case 10:
  96953. case 12:
  96954. if (_this.get$indented())
  96955. break $label0$1;
  96956. t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  96957. break;
  96958. case 33:
  96959. case 59:
  96960. case 123:
  96961. case 125:
  96962. break $label0$1;
  96963. case 117:
  96964. case 85:
  96965. t7 = t1._string_scanner$_position;
  96966. if (!_this.scanIdentifier$1("url")) {
  96967. t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  96968. break;
  96969. }
  96970. contents = _this._stylesheet0$_tryUrlContents$1(new A._SpanScannerState(t1, t7));
  96971. if (contents == null) {
  96972. if ((t7 === 0 ? 1 / t7 < 0 : t7 < 0) || t7 > t5)
  96973. A.throwExpression(A.ArgumentError$("Invalid position " + t7, null));
  96974. t1._string_scanner$_position = t7;
  96975. t1._lastMatch = null;
  96976. t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  96977. } else
  96978. buffer.addInterpolation$1(contents);
  96979. break;
  96980. default:
  96981. if (next == null)
  96982. break $label0$1;
  96983. if (_this.lookingAtIdentifier$0())
  96984. t3._contents += _this.identifier$0();
  96985. else
  96986. t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  96987. break;
  96988. }
  96989. }
  96990. return buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  96991. },
  96992. almostAnyValue$0() {
  96993. return this.almostAnyValue$1$omitComments(false);
  96994. },
  96995. _stylesheet0$_interpolatedDeclarationValue$3$allowColon$allowEmpty$allowSemicolon(allowColon, allowEmpty, allowSemicolon) {
  96996. var t4, t5, t6, t7, wroteNewline, next, t8, start, end, contents, _this = this,
  96997. t1 = _this.scanner,
  96998. t2 = t1._string_scanner$_position,
  96999. t3 = new A.StringBuffer(""),
  97000. buffer = new A.InterpolationBuffer0(t3, A._setArrayType([], type$.JSArray_Object)),
  97001. brackets = A._setArrayType([], type$.JSArray_int);
  97002. $label0$1:
  97003. for (t4 = t1.string, t5 = t4.length, t6 = !allowColon, t7 = !allowSemicolon, wroteNewline = false; true;) {
  97004. next = t1.peekChar$0();
  97005. switch (next) {
  97006. case 92:
  97007. t3._contents += A.S(_this.escape$1$identifierStart(true));
  97008. wroteNewline = false;
  97009. break;
  97010. case 34:
  97011. case 39:
  97012. buffer.addInterpolation$1(_this.interpolatedString$0().asInterpolation$0());
  97013. wroteNewline = false;
  97014. break;
  97015. case 47:
  97016. if (t1.peekChar$1(1) === 42) {
  97017. t8 = _this.get$loudComment();
  97018. start = t1._string_scanner$_position;
  97019. t8.call$0();
  97020. end = t1._string_scanner$_position;
  97021. t3._contents += B.JSString_methods.substring$2(t4, start, end);
  97022. } else
  97023. t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  97024. wroteNewline = false;
  97025. break;
  97026. case 35:
  97027. if (t1.peekChar$1(1) === 123)
  97028. buffer.addInterpolation$1(_this.interpolatedIdentifier$0());
  97029. else
  97030. t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  97031. wroteNewline = false;
  97032. break;
  97033. case 32:
  97034. case 9:
  97035. if (!wroteNewline) {
  97036. t8 = t1.peekChar$1(1);
  97037. t8 = !(t8 === 32 || t8 === 9 || t8 === 10 || t8 === 13 || t8 === 12);
  97038. } else
  97039. t8 = true;
  97040. if (t8)
  97041. t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  97042. else
  97043. t1.readChar$0();
  97044. break;
  97045. case 10:
  97046. case 13:
  97047. case 12:
  97048. if (_this.get$indented())
  97049. break $label0$1;
  97050. t8 = t1.peekChar$1(-1);
  97051. if (!(t8 === 10 || t8 === 13 || t8 === 12))
  97052. t3._contents += "\n";
  97053. t1.readChar$0();
  97054. wroteNewline = true;
  97055. break;
  97056. case 40:
  97057. case 123:
  97058. case 91:
  97059. next.toString;
  97060. t3._contents += A.Primitives_stringFromCharCode(next);
  97061. brackets.push(A.opposite0(t1.readChar$0()));
  97062. wroteNewline = false;
  97063. break;
  97064. case 41:
  97065. case 125:
  97066. case 93:
  97067. if (brackets.length === 0)
  97068. break $label0$1;
  97069. next.toString;
  97070. t3._contents += A.Primitives_stringFromCharCode(next);
  97071. t1.expectChar$1(brackets.pop());
  97072. wroteNewline = false;
  97073. break;
  97074. case 59:
  97075. if (t7 && brackets.length === 0)
  97076. break $label0$1;
  97077. t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  97078. wroteNewline = false;
  97079. break;
  97080. case 58:
  97081. if (t6 && brackets.length === 0)
  97082. break $label0$1;
  97083. t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  97084. wroteNewline = false;
  97085. break;
  97086. case 117:
  97087. case 85:
  97088. t8 = t1._string_scanner$_position;
  97089. if (!_this.scanIdentifier$1("url")) {
  97090. t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  97091. wroteNewline = false;
  97092. break;
  97093. }
  97094. contents = _this._stylesheet0$_tryUrlContents$1(new A._SpanScannerState(t1, t8));
  97095. if (contents == null) {
  97096. if ((t8 === 0 ? 1 / t8 < 0 : t8 < 0) || t8 > t5)
  97097. A.throwExpression(A.ArgumentError$("Invalid position " + t8, null));
  97098. t1._string_scanner$_position = t8;
  97099. t1._lastMatch = null;
  97100. t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  97101. } else
  97102. buffer.addInterpolation$1(contents);
  97103. wroteNewline = false;
  97104. break;
  97105. default:
  97106. if (next == null)
  97107. break $label0$1;
  97108. if (_this.lookingAtIdentifier$0())
  97109. t3._contents += _this.identifier$0();
  97110. else
  97111. t3._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  97112. wroteNewline = false;
  97113. break;
  97114. }
  97115. }
  97116. if (brackets.length !== 0)
  97117. t1.expectChar$1(B.JSArray_methods.get$last(brackets));
  97118. if (!allowEmpty && buffer._interpolation_buffer0$_contents.length === 0 && t3._contents.length === 0)
  97119. t1.error$1(0, "Expected token.");
  97120. return buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  97121. },
  97122. _stylesheet0$_interpolatedDeclarationValue$1$allowEmpty(allowEmpty) {
  97123. return this._stylesheet0$_interpolatedDeclarationValue$3$allowColon$allowEmpty$allowSemicolon(true, allowEmpty, false);
  97124. },
  97125. _stylesheet0$_interpolatedDeclarationValue$0() {
  97126. return this._stylesheet0$_interpolatedDeclarationValue$3$allowColon$allowEmpty$allowSemicolon(true, false, false);
  97127. },
  97128. _stylesheet0$_interpolatedDeclarationValue$2$allowEmpty$allowSemicolon(allowEmpty, allowSemicolon) {
  97129. return this._stylesheet0$_interpolatedDeclarationValue$3$allowColon$allowEmpty$allowSemicolon(true, allowEmpty, allowSemicolon);
  97130. },
  97131. interpolatedIdentifier$0() {
  97132. var first, _this = this,
  97133. _s20_ = "Expected identifier.",
  97134. t1 = _this.scanner,
  97135. start = new A._SpanScannerState(t1, t1._string_scanner$_position),
  97136. t2 = new A.StringBuffer(""),
  97137. t3 = A._setArrayType([], type$.JSArray_Object),
  97138. buffer = new A.InterpolationBuffer0(t2, t3);
  97139. if (t1.scanChar$1(45)) {
  97140. t2._contents += A.Primitives_stringFromCharCode(45);
  97141. if (t1.scanChar$1(45)) {
  97142. t2._contents += A.Primitives_stringFromCharCode(45);
  97143. _this._stylesheet0$_interpolatedIdentifierBody$1(buffer);
  97144. return buffer.interpolation$1(t1.spanFrom$1(start));
  97145. }
  97146. }
  97147. first = t1.peekChar$0();
  97148. if (first == null)
  97149. t1.error$1(0, _s20_);
  97150. else if (first === 95 || A.isAlphabetic1(first) || first >= 128)
  97151. t2._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  97152. else if (first === 92)
  97153. t2._contents += A.S(_this.escape$1$identifierStart(true));
  97154. else if (first === 35 && t1.peekChar$1(1) === 123) {
  97155. t2 = _this.singleInterpolation$0();
  97156. buffer._interpolation_buffer0$_flushText$0();
  97157. t3.push(t2);
  97158. } else
  97159. t1.error$1(0, _s20_);
  97160. _this._stylesheet0$_interpolatedIdentifierBody$1(buffer);
  97161. return buffer.interpolation$1(t1.spanFrom$1(start));
  97162. },
  97163. _stylesheet0$_interpolatedIdentifierBody$1(buffer) {
  97164. var t1, t2, t3, next, t4;
  97165. for (t1 = buffer._interpolation_buffer0$_contents, t2 = this.scanner, t3 = buffer._interpolation_buffer0$_text; true;) {
  97166. next = t2.peekChar$0();
  97167. if (next == null)
  97168. break;
  97169. else {
  97170. if (next !== 95)
  97171. if (next !== 45) {
  97172. if (!(next >= 97 && next <= 122))
  97173. t4 = next >= 65 && next <= 90;
  97174. else
  97175. t4 = true;
  97176. if (!t4)
  97177. t4 = next >= 48 && next <= 57;
  97178. else
  97179. t4 = true;
  97180. t4 = t4 || next >= 128;
  97181. } else
  97182. t4 = true;
  97183. else
  97184. t4 = true;
  97185. if (t4)
  97186. t3._contents += A.Primitives_stringFromCharCode(t2.readChar$0());
  97187. else if (next === 92)
  97188. t3._contents += A.S(this.escape$0());
  97189. else if (next === 35 && t2.peekChar$1(1) === 123) {
  97190. t4 = this.singleInterpolation$0();
  97191. buffer._interpolation_buffer0$_flushText$0();
  97192. t1.push(t4);
  97193. } else
  97194. break;
  97195. }
  97196. }
  97197. },
  97198. singleInterpolation$0() {
  97199. var contents, _this = this,
  97200. t1 = _this.scanner,
  97201. t2 = t1._string_scanner$_position;
  97202. t1.expect$1("#{");
  97203. _this.whitespace$0();
  97204. contents = _this._stylesheet0$_expression$0();
  97205. t1.expectChar$1(125);
  97206. if (_this.get$plainCss())
  97207. _this.error$2(0, string$.Interpp, t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  97208. return contents;
  97209. },
  97210. _stylesheet0$_mediaQueryList$0() {
  97211. var t4, _this = this,
  97212. t1 = _this.scanner,
  97213. t2 = t1._string_scanner$_position,
  97214. t3 = new A.StringBuffer(""),
  97215. buffer = new A.InterpolationBuffer0(t3, A._setArrayType([], type$.JSArray_Object));
  97216. for (; true;) {
  97217. _this.whitespace$0();
  97218. _this._stylesheet0$_mediaQuery$1(buffer);
  97219. _this.whitespace$0();
  97220. if (!t1.scanChar$1(44))
  97221. break;
  97222. t4 = t3._contents += A.Primitives_stringFromCharCode(44);
  97223. t3._contents = t4 + A.Primitives_stringFromCharCode(32);
  97224. }
  97225. return buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  97226. },
  97227. _stylesheet0$_mediaQuery$1(buffer) {
  97228. var identifier1, t1, identifier2, _this = this, _s3_ = "and";
  97229. if (_this.scanner.peekChar$0() === 40) {
  97230. _this._stylesheet0$_mediaInParens$1(buffer);
  97231. _this.whitespace$0();
  97232. if (_this.scanIdentifier$1(_s3_)) {
  97233. buffer._interpolation_buffer0$_text._contents += " and ";
  97234. _this.expectWhitespace$0();
  97235. _this._stylesheet0$_mediaLogicSequence$2(buffer, _s3_);
  97236. } else if (_this.scanIdentifier$1("or")) {
  97237. buffer._interpolation_buffer0$_text._contents += " or ";
  97238. _this.expectWhitespace$0();
  97239. _this._stylesheet0$_mediaLogicSequence$2(buffer, "or");
  97240. }
  97241. return;
  97242. }
  97243. identifier1 = _this.interpolatedIdentifier$0();
  97244. if (A.equalsIgnoreCase0(identifier1.get$asPlain(), "not")) {
  97245. _this.expectWhitespace$0();
  97246. if (!_this._stylesheet0$_lookingAtInterpolatedIdentifier$0()) {
  97247. buffer._interpolation_buffer0$_text._contents += "not ";
  97248. _this._stylesheet0$_mediaOrInterp$1(buffer);
  97249. return;
  97250. }
  97251. }
  97252. _this.whitespace$0();
  97253. buffer.addInterpolation$1(identifier1);
  97254. if (!_this._stylesheet0$_lookingAtInterpolatedIdentifier$0())
  97255. return;
  97256. t1 = buffer._interpolation_buffer0$_text;
  97257. t1._contents += A.Primitives_stringFromCharCode(32);
  97258. identifier2 = _this.interpolatedIdentifier$0();
  97259. if (A.equalsIgnoreCase0(identifier2.get$asPlain(), _s3_)) {
  97260. _this.expectWhitespace$0();
  97261. t1._contents += " and ";
  97262. } else {
  97263. _this.whitespace$0();
  97264. buffer.addInterpolation$1(identifier2);
  97265. if (_this.scanIdentifier$1(_s3_)) {
  97266. _this.expectWhitespace$0();
  97267. t1._contents += " and ";
  97268. } else
  97269. return;
  97270. }
  97271. if (_this.scanIdentifier$1("not")) {
  97272. _this.expectWhitespace$0();
  97273. t1._contents += "not ";
  97274. _this._stylesheet0$_mediaOrInterp$1(buffer);
  97275. return;
  97276. }
  97277. _this._stylesheet0$_mediaLogicSequence$2(buffer, _s3_);
  97278. return;
  97279. },
  97280. _stylesheet0$_mediaLogicSequence$2(buffer, operator) {
  97281. var t1, t2, _this = this;
  97282. for (t1 = buffer._interpolation_buffer0$_text; true;) {
  97283. _this._stylesheet0$_mediaOrInterp$1(buffer);
  97284. _this.whitespace$0();
  97285. if (!_this.scanIdentifier$1(operator))
  97286. return;
  97287. _this.expectWhitespace$0();
  97288. t2 = t1._contents += A.Primitives_stringFromCharCode(32);
  97289. t2 += operator;
  97290. t1._contents = t2;
  97291. t1._contents = t2 + A.Primitives_stringFromCharCode(32);
  97292. }
  97293. },
  97294. _stylesheet0$_mediaOrInterp$1(buffer) {
  97295. var interpolation;
  97296. if (this.scanner.peekChar$0() === 35) {
  97297. interpolation = this.singleInterpolation$0();
  97298. buffer.addInterpolation$1(A.Interpolation$0(A._setArrayType([interpolation], type$.JSArray_Object), interpolation.get$span(interpolation)));
  97299. } else
  97300. this._stylesheet0$_mediaInParens$1(buffer);
  97301. },
  97302. _stylesheet0$_mediaInParens$1(buffer) {
  97303. var t2, t3, t4, next, t5, _this = this,
  97304. t1 = _this.scanner;
  97305. t1.expectChar$2$name(40, "media condition in parentheses");
  97306. t2 = buffer._interpolation_buffer0$_text;
  97307. t2._contents += A.Primitives_stringFromCharCode(40);
  97308. _this.whitespace$0();
  97309. if (t1.peekChar$0() === 40) {
  97310. _this._stylesheet0$_mediaInParens$1(buffer);
  97311. _this.whitespace$0();
  97312. if (_this.scanIdentifier$1("and")) {
  97313. t2._contents += " and ";
  97314. _this.expectWhitespace$0();
  97315. _this._stylesheet0$_mediaLogicSequence$2(buffer, "and");
  97316. } else if (_this.scanIdentifier$1("or")) {
  97317. t2._contents += " or ";
  97318. _this.expectWhitespace$0();
  97319. _this._stylesheet0$_mediaLogicSequence$2(buffer, "or");
  97320. }
  97321. } else if (_this.scanIdentifier$1("not")) {
  97322. t2._contents += "not ";
  97323. _this.expectWhitespace$0();
  97324. _this._stylesheet0$_mediaOrInterp$1(buffer);
  97325. } else {
  97326. t3 = _this._stylesheet0$_expressionUntilComparison$0();
  97327. buffer._interpolation_buffer0$_flushText$0();
  97328. t4 = buffer._interpolation_buffer0$_contents;
  97329. t4.push(t3);
  97330. if (t1.scanChar$1(58)) {
  97331. _this.whitespace$0();
  97332. t3 = t2._contents += A.Primitives_stringFromCharCode(58);
  97333. t2._contents = t3 + A.Primitives_stringFromCharCode(32);
  97334. t3 = _this._stylesheet0$_expression$0();
  97335. buffer._interpolation_buffer0$_flushText$0();
  97336. t4.push(t3);
  97337. } else {
  97338. next = t1.peekChar$0();
  97339. t3 = next !== 60;
  97340. if (!t3 || next === 62 || next === 61) {
  97341. t2._contents += A.Primitives_stringFromCharCode(32);
  97342. t2._contents += A.Primitives_stringFromCharCode(t1.readChar$0());
  97343. if ((!t3 || next === 62) && t1.scanChar$1(61))
  97344. t2._contents += A.Primitives_stringFromCharCode(61);
  97345. t2._contents += A.Primitives_stringFromCharCode(32);
  97346. _this.whitespace$0();
  97347. t5 = _this._stylesheet0$_expressionUntilComparison$0();
  97348. buffer._interpolation_buffer0$_flushText$0();
  97349. t4.push(t5);
  97350. if (!t3 || next === 62) {
  97351. next.toString;
  97352. t3 = t1.scanChar$1(next);
  97353. } else
  97354. t3 = false;
  97355. if (t3) {
  97356. t3 = t2._contents += A.Primitives_stringFromCharCode(32);
  97357. t2._contents = t3 + A.Primitives_stringFromCharCode(next);
  97358. if (t1.scanChar$1(61))
  97359. t2._contents += A.Primitives_stringFromCharCode(61);
  97360. t2._contents += A.Primitives_stringFromCharCode(32);
  97361. _this.whitespace$0();
  97362. t3 = _this._stylesheet0$_expressionUntilComparison$0();
  97363. buffer._interpolation_buffer0$_flushText$0();
  97364. t4.push(t3);
  97365. }
  97366. }
  97367. }
  97368. }
  97369. t1.expectChar$1(41);
  97370. _this.whitespace$0();
  97371. t2._contents += A.Primitives_stringFromCharCode(41);
  97372. },
  97373. _stylesheet0$_expressionUntilComparison$0() {
  97374. return this._stylesheet0$_expression$1$until(new A.StylesheetParser__expressionUntilComparison_closure0(this));
  97375. },
  97376. _stylesheet0$_supportsCondition$0() {
  97377. var condition, operator, right, endPosition, t3, t4, lowerOperator, _this = this,
  97378. t1 = _this.scanner,
  97379. t2 = t1._string_scanner$_position;
  97380. if (_this.scanIdentifier$1("not")) {
  97381. _this.whitespace$0();
  97382. return new A.SupportsNegation0(_this._stylesheet0$_supportsConditionInParens$0(), t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  97383. }
  97384. condition = _this._stylesheet0$_supportsConditionInParens$0();
  97385. _this.whitespace$0();
  97386. for (operator = null; _this.lookingAtIdentifier$0();) {
  97387. if (operator != null)
  97388. _this.expectIdentifier$1(operator);
  97389. else if (_this.scanIdentifier$1("or"))
  97390. operator = "or";
  97391. else {
  97392. _this.expectIdentifier$1("and");
  97393. operator = "and";
  97394. }
  97395. _this.whitespace$0();
  97396. right = _this._stylesheet0$_supportsConditionInParens$0();
  97397. endPosition = t1._string_scanner$_position;
  97398. t3 = t1._sourceFile;
  97399. t4 = new A._FileSpan(t3, t2, endPosition);
  97400. t4._FileSpan$3(t3, t2, endPosition);
  97401. condition = new A.SupportsOperation0(condition, right, operator, t4);
  97402. lowerOperator = operator.toLowerCase();
  97403. if (lowerOperator !== "and" && lowerOperator !== "or")
  97404. A.throwExpression(A.ArgumentError$value(operator, "operator", 'may only be "and" or "or".'));
  97405. _this.whitespace$0();
  97406. }
  97407. return condition;
  97408. },
  97409. _stylesheet0$_supportsConditionInParens$0() {
  97410. var $name, nameStart, wasInParentheses, identifier, operation, contents, identifier0, t2, $arguments, condition, exception, declaration, _this = this,
  97411. t1 = _this.scanner,
  97412. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  97413. if (_this._stylesheet0$_lookingAtInterpolatedIdentifier$0()) {
  97414. identifier0 = _this.interpolatedIdentifier$0();
  97415. t2 = identifier0.get$asPlain();
  97416. if ((t2 == null ? null : t2.toLowerCase()) === "not")
  97417. _this.error$2(0, '"not" is not a valid identifier here.', identifier0.span);
  97418. if (t1.scanChar$1(40)) {
  97419. $arguments = _this._stylesheet0$_interpolatedDeclarationValue$2$allowEmpty$allowSemicolon(true, true);
  97420. t1.expectChar$1(41);
  97421. return new A.SupportsFunction0(identifier0, $arguments, t1.spanFrom$1(start));
  97422. } else {
  97423. t2 = identifier0.contents;
  97424. if (t2.length !== 1 || !type$.Expression_2._is(B.JSArray_methods.get$first(t2)))
  97425. _this.error$2(0, "Expected @supports condition.", identifier0.span);
  97426. else
  97427. return new A.SupportsInterpolation0(type$.Expression_2._as(B.JSArray_methods.get$first(t2)), t1.spanFrom$1(start));
  97428. }
  97429. }
  97430. t1.expectChar$1(40);
  97431. _this.whitespace$0();
  97432. if (_this.scanIdentifier$1("not")) {
  97433. _this.whitespace$0();
  97434. condition = _this._stylesheet0$_supportsConditionInParens$0();
  97435. t1.expectChar$1(41);
  97436. return new A.SupportsNegation0(condition, t1.spanFrom$1(start));
  97437. } else if (t1.peekChar$0() === 40) {
  97438. condition = _this._stylesheet0$_supportsCondition$0();
  97439. t1.expectChar$1(41);
  97440. return condition;
  97441. }
  97442. $name = null;
  97443. nameStart = new A._SpanScannerState(t1, t1._string_scanner$_position);
  97444. wasInParentheses = _this._stylesheet0$_inParentheses;
  97445. try {
  97446. $name = _this._stylesheet0$_expression$0();
  97447. t1.expectChar$1(58);
  97448. } catch (exception) {
  97449. if (type$.FormatException._is(A.unwrapException(exception))) {
  97450. t1.set$state(nameStart);
  97451. _this._stylesheet0$_inParentheses = wasInParentheses;
  97452. identifier = _this.interpolatedIdentifier$0();
  97453. operation = _this._stylesheet0$_trySupportsOperation$2(identifier, nameStart);
  97454. if (operation != null) {
  97455. t1.expectChar$1(41);
  97456. return operation;
  97457. }
  97458. t2 = new A.InterpolationBuffer0(new A.StringBuffer(""), A._setArrayType([], type$.JSArray_Object));
  97459. t2.addInterpolation$1(identifier);
  97460. t2.addInterpolation$1(_this._stylesheet0$_interpolatedDeclarationValue$3$allowColon$allowEmpty$allowSemicolon(false, true, true));
  97461. contents = t2.interpolation$1(t1.spanFrom$1(nameStart));
  97462. if (t1.peekChar$0() === 58)
  97463. throw exception;
  97464. t1.expectChar$1(41);
  97465. return new A.SupportsAnything0(contents, t1.spanFrom$1(start));
  97466. } else
  97467. throw exception;
  97468. }
  97469. declaration = _this._stylesheet0$_supportsDeclarationValue$2($name, start);
  97470. t1.expectChar$1(41);
  97471. return declaration;
  97472. },
  97473. _stylesheet0$_supportsDeclarationValue$2($name, start) {
  97474. var value, _this = this;
  97475. if ($name instanceof A.StringExpression0 && !$name.hasQuotes && B.JSString_methods.startsWith$1($name.text.get$initialPlain(), "--"))
  97476. value = new A.StringExpression0(_this._stylesheet0$_interpolatedDeclarationValue$0(), false);
  97477. else {
  97478. _this.whitespace$0();
  97479. value = _this._stylesheet0$_expression$0();
  97480. }
  97481. return new A.SupportsDeclaration0($name, value, _this.scanner.spanFrom$1(start));
  97482. },
  97483. _stylesheet0$_trySupportsOperation$2(interpolation, start) {
  97484. var expression, beforeWhitespace, t2, t3, operator, operation, right, t4, endPosition, t5, t6, lowerOperator, _this = this, _null = null,
  97485. t1 = interpolation.contents;
  97486. if (t1.length !== 1)
  97487. return _null;
  97488. expression = B.JSArray_methods.get$first(t1);
  97489. if (!type$.Expression_2._is(expression))
  97490. return _null;
  97491. t1 = _this.scanner;
  97492. beforeWhitespace = new A._SpanScannerState(t1, t1._string_scanner$_position);
  97493. _this.whitespace$0();
  97494. for (t2 = start.position, t3 = interpolation.span, operator = _null, operation = operator; _this.lookingAtIdentifier$0();) {
  97495. if (operator != null)
  97496. _this.expectIdentifier$1(operator);
  97497. else if (_this.scanIdentifier$1("and"))
  97498. operator = "and";
  97499. else {
  97500. if (!_this.scanIdentifier$1("or")) {
  97501. if (beforeWhitespace._scanner !== t1)
  97502. A.throwExpression(A.ArgumentError$(string$.The_gi, _null));
  97503. t2 = beforeWhitespace.position;
  97504. if ((t2 === 0 ? 1 / t2 < 0 : t2 < 0) || t2 > t1.string.length)
  97505. A.throwExpression(A.ArgumentError$("Invalid position " + t2, _null));
  97506. t1._string_scanner$_position = t2;
  97507. return t1._lastMatch = null;
  97508. }
  97509. operator = "or";
  97510. }
  97511. _this.whitespace$0();
  97512. right = _this._stylesheet0$_supportsConditionInParens$0();
  97513. t4 = operation == null ? new A.SupportsInterpolation0(expression, t3) : operation;
  97514. endPosition = t1._string_scanner$_position;
  97515. t5 = t1._sourceFile;
  97516. t6 = new A._FileSpan(t5, t2, endPosition);
  97517. t6._FileSpan$3(t5, t2, endPosition);
  97518. operation = new A.SupportsOperation0(t4, right, operator, t6);
  97519. lowerOperator = operator.toLowerCase();
  97520. if (lowerOperator !== "and" && lowerOperator !== "or")
  97521. A.throwExpression(A.ArgumentError$value(operator, "operator", 'may only be "and" or "or".'));
  97522. _this.whitespace$0();
  97523. }
  97524. return operation;
  97525. },
  97526. _stylesheet0$_lookingAtInterpolatedIdentifier$0() {
  97527. var second,
  97528. t1 = this.scanner,
  97529. first = t1.peekChar$0();
  97530. if (first == null)
  97531. return false;
  97532. if (first === 95 || A.isAlphabetic1(first) || first >= 128 || first === 92)
  97533. return true;
  97534. if (first === 35)
  97535. return t1.peekChar$1(1) === 123;
  97536. if (first !== 45)
  97537. return false;
  97538. second = t1.peekChar$1(1);
  97539. if (second == null)
  97540. return false;
  97541. if (second === 35)
  97542. return t1.peekChar$1(2) === 123;
  97543. return second === 95 || A.isAlphabetic1(second) || second >= 128 || second === 92 || second === 45;
  97544. },
  97545. _stylesheet0$_lookingAtInterpolatedIdentifierBody$0() {
  97546. var t1 = this.scanner,
  97547. first = t1.peekChar$0();
  97548. if (first == null)
  97549. return false;
  97550. if (first === 95 || A.isAlphabetic1(first) || first >= 128 || A.isDigit0(first) || first === 45 || first === 92)
  97551. return true;
  97552. return first === 35 && t1.peekChar$1(1) === 123;
  97553. },
  97554. _stylesheet0$_lookingAtExpression$0() {
  97555. var next,
  97556. t1 = this.scanner,
  97557. character = t1.peekChar$0();
  97558. if (character == null)
  97559. return false;
  97560. if (character === 46)
  97561. return t1.peekChar$1(1) !== 46;
  97562. if (character === 33) {
  97563. next = t1.peekChar$1(1);
  97564. if (next != null)
  97565. if ((next | 32) >>> 0 !== 105)
  97566. t1 = next === 32 || next === 9 || next === 10 || next === 13 || next === 12;
  97567. else
  97568. t1 = true;
  97569. else
  97570. t1 = true;
  97571. return t1;
  97572. }
  97573. if (character !== 40)
  97574. if (character !== 47)
  97575. if (character !== 91)
  97576. if (character !== 39)
  97577. if (character !== 34)
  97578. if (character !== 35)
  97579. if (character !== 43)
  97580. if (character !== 45)
  97581. if (character !== 92)
  97582. if (character !== 36)
  97583. if (character !== 38)
  97584. t1 = character === 95 || A.isAlphabetic1(character) || character >= 128 || A.isDigit0(character);
  97585. else
  97586. t1 = true;
  97587. else
  97588. t1 = true;
  97589. else
  97590. t1 = true;
  97591. else
  97592. t1 = true;
  97593. else
  97594. t1 = true;
  97595. else
  97596. t1 = true;
  97597. else
  97598. t1 = true;
  97599. else
  97600. t1 = true;
  97601. else
  97602. t1 = true;
  97603. else
  97604. t1 = true;
  97605. else
  97606. t1 = true;
  97607. return t1;
  97608. },
  97609. _stylesheet0$_withChildren$1$3(child, start, create) {
  97610. var result = create.call$2(this.children$1(0, child), this.scanner.spanFrom$1(start));
  97611. this.whitespaceWithoutComments$0();
  97612. return result;
  97613. },
  97614. _stylesheet0$_withChildren$3(child, start, create) {
  97615. return this._stylesheet0$_withChildren$1$3(child, start, create, type$.dynamic);
  97616. },
  97617. _stylesheet0$_urlString$0() {
  97618. var innerError, stackTrace, t2, exception,
  97619. t1 = this.scanner,
  97620. start = new A._SpanScannerState(t1, t1._string_scanner$_position),
  97621. url = this.string$0();
  97622. try {
  97623. t2 = A.Uri_parse(url);
  97624. return t2;
  97625. } catch (exception) {
  97626. t2 = A.unwrapException(exception);
  97627. if (type$.FormatException._is(t2)) {
  97628. innerError = t2;
  97629. stackTrace = A.getTraceFromException(exception);
  97630. this.error$3(0, "Invalid URL: " + J.get$message$x(innerError), t1.spanFrom$1(start), stackTrace);
  97631. } else
  97632. throw exception;
  97633. }
  97634. },
  97635. _stylesheet0$_publicIdentifier$0() {
  97636. var _this = this,
  97637. t1 = _this.scanner,
  97638. t2 = t1._string_scanner$_position,
  97639. result = _this.identifier$1$normalize(true);
  97640. _this._stylesheet0$_assertPublic$2(result, new A.StylesheetParser__publicIdentifier_closure0(_this, new A._SpanScannerState(t1, t2)));
  97641. return result;
  97642. },
  97643. _stylesheet0$_assertPublic$2(identifier, span) {
  97644. var first = B.JSString_methods._codeUnitAt$1(identifier, 0);
  97645. if (!(first === 45 || first === 95))
  97646. return;
  97647. this.error$2(0, string$.Privat, span.call$0());
  97648. },
  97649. get$plainCss() {
  97650. return false;
  97651. }
  97652. };
  97653. A.StylesheetParser_parse_closure0.prototype = {
  97654. call$0() {
  97655. var statements, t4,
  97656. t1 = this.$this,
  97657. t2 = t1.scanner,
  97658. t3 = t2._string_scanner$_position;
  97659. t2.scanChar$1(65279);
  97660. statements = t1.statements$1(new A.StylesheetParser_parse__closure1(t1));
  97661. t2.expectDone$0();
  97662. t4 = t1._stylesheet0$_globalVariables;
  97663. t4 = t4.get$values(t4);
  97664. B.JSArray_methods.addAll$1(statements, A.MappedIterable_MappedIterable(t4, new A.StylesheetParser_parse__closure2(), A._instanceType(t4)._eval$1("Iterable.E"), type$.Statement_2));
  97665. return A.Stylesheet$internal0(statements, t2.spanFrom$1(new A._SpanScannerState(t2, t3)), t1.get$plainCss());
  97666. },
  97667. $signature: 522
  97668. };
  97669. A.StylesheetParser_parse__closure1.prototype = {
  97670. call$0() {
  97671. var t1 = this.$this;
  97672. if (t1.scanner.scan$1("@charset")) {
  97673. t1.whitespace$0();
  97674. t1.string$0();
  97675. return null;
  97676. }
  97677. return t1._stylesheet0$_statement$1$root(true);
  97678. },
  97679. $signature: 523
  97680. };
  97681. A.StylesheetParser_parse__closure2.prototype = {
  97682. call$1(declaration) {
  97683. var t1 = declaration.name,
  97684. t2 = declaration.expression;
  97685. return A.VariableDeclaration$0(t1, new A.NullExpression0(t2.get$span(t2)), declaration.span, null, false, true, null);
  97686. },
  97687. $signature: 524
  97688. };
  97689. A.StylesheetParser_parseArgumentDeclaration_closure0.prototype = {
  97690. call$0() {
  97691. var $arguments,
  97692. t1 = this.$this,
  97693. t2 = t1.scanner;
  97694. t2.expectChar$2$name(64, "@-rule");
  97695. t1.identifier$0();
  97696. t1.whitespace$0();
  97697. t1.identifier$0();
  97698. $arguments = t1._stylesheet0$_argumentDeclaration$0();
  97699. t1.whitespace$0();
  97700. t2.expectChar$1(123);
  97701. return $arguments;
  97702. },
  97703. $signature: 525
  97704. };
  97705. A.StylesheetParser__parseSingleProduction_closure0.prototype = {
  97706. call$0() {
  97707. var result = this.production.call$0();
  97708. this.$this.scanner.expectDone$0();
  97709. return result;
  97710. },
  97711. $signature() {
  97712. return this.T._eval$1("0()");
  97713. }
  97714. };
  97715. A.StylesheetParser_parseSignature_closure.prototype = {
  97716. call$0() {
  97717. var $arguments, t2, t3,
  97718. t1 = this.$this,
  97719. $name = t1.identifier$0();
  97720. if (this.requireParens || t1.scanner.peekChar$0() === 40)
  97721. $arguments = t1._stylesheet0$_argumentDeclaration$0();
  97722. else {
  97723. t2 = t1.scanner;
  97724. t2 = A.FileLocation$_(t2._sourceFile, t2._string_scanner$_position);
  97725. t3 = t2.offset;
  97726. $arguments = new A.ArgumentDeclaration0(B.List_empty22, null, A._FileSpan$(t2.file, t3, t3));
  97727. }
  97728. t1.scanner.expectDone$0();
  97729. return new A.Tuple2($name, $arguments, type$.Tuple2_String_ArgumentDeclaration);
  97730. },
  97731. $signature: 526
  97732. };
  97733. A.StylesheetParser__statement_closure0.prototype = {
  97734. call$0() {
  97735. return this.$this._stylesheet0$_statement$0();
  97736. },
  97737. $signature: 126
  97738. };
  97739. A.StylesheetParser_variableDeclarationWithoutNamespace_closure1.prototype = {
  97740. call$0() {
  97741. return this.$this.scanner.spanFrom$1(this.start);
  97742. },
  97743. $signature: 31
  97744. };
  97745. A.StylesheetParser_variableDeclarationWithoutNamespace_closure2.prototype = {
  97746. call$0() {
  97747. return this.declaration;
  97748. },
  97749. $signature: 527
  97750. };
  97751. A.StylesheetParser__declarationOrBuffer_closure1.prototype = {
  97752. call$2(children, span) {
  97753. return A.Declaration$nested0(this.name, children, span, null);
  97754. },
  97755. $signature: 77
  97756. };
  97757. A.StylesheetParser__declarationOrBuffer_closure2.prototype = {
  97758. call$2(children, span) {
  97759. return A.Declaration$nested0(this.name, children, span, this._box_0.value);
  97760. },
  97761. $signature: 77
  97762. };
  97763. A.StylesheetParser__styleRule_closure0.prototype = {
  97764. call$2(children, span) {
  97765. var _this = this,
  97766. t1 = _this.$this;
  97767. if (t1.get$indented() && children.length === 0)
  97768. t1.logger.warn$2$span(0, string$.This_s, _this._box_0.interpolation.span);
  97769. t1._stylesheet0$_inStyleRule = _this.wasInStyleRule;
  97770. return A.StyleRule$0(_this._box_0.interpolation, children, t1.scanner.spanFrom$1(_this.start));
  97771. },
  97772. $signature: 529
  97773. };
  97774. A.StylesheetParser__propertyOrVariableDeclaration_closure1.prototype = {
  97775. call$2(children, span) {
  97776. return A.Declaration$nested0(this._box_0.name, children, span, null);
  97777. },
  97778. $signature: 77
  97779. };
  97780. A.StylesheetParser__propertyOrVariableDeclaration_closure2.prototype = {
  97781. call$2(children, span) {
  97782. return A.Declaration$nested0(this._box_0.name, children, span, this.value);
  97783. },
  97784. $signature: 77
  97785. };
  97786. A.StylesheetParser__atRootRule_closure1.prototype = {
  97787. call$2(children, span) {
  97788. return A.AtRootRule$0(children, span, this.query);
  97789. },
  97790. $signature: 156
  97791. };
  97792. A.StylesheetParser__atRootRule_closure2.prototype = {
  97793. call$2(children, span) {
  97794. return A.AtRootRule$0(children, span, null);
  97795. },
  97796. $signature: 156
  97797. };
  97798. A.StylesheetParser__eachRule_closure0.prototype = {
  97799. call$2(children, span) {
  97800. var _this = this;
  97801. _this.$this._stylesheet0$_inControlDirective = _this.wasInControlDirective;
  97802. return A.EachRule$0(_this.variables, _this.list, children, span);
  97803. },
  97804. $signature: 531
  97805. };
  97806. A.StylesheetParser__functionRule_closure0.prototype = {
  97807. call$2(children, span) {
  97808. return A.FunctionRule$0(this.name, this.$arguments, children, span, this.precedingComment);
  97809. },
  97810. $signature: 532
  97811. };
  97812. A.StylesheetParser__forRule_closure1.prototype = {
  97813. call$0() {
  97814. var t1 = this.$this;
  97815. if (!t1.lookingAtIdentifier$0())
  97816. return false;
  97817. if (t1.scanIdentifier$1("to"))
  97818. return this._box_0.exclusive = true;
  97819. else if (t1.scanIdentifier$1("through")) {
  97820. this._box_0.exclusive = false;
  97821. return true;
  97822. } else
  97823. return false;
  97824. },
  97825. $signature: 26
  97826. };
  97827. A.StylesheetParser__forRule_closure2.prototype = {
  97828. call$2(children, span) {
  97829. var t1, _this = this;
  97830. _this.$this._stylesheet0$_inControlDirective = _this.wasInControlDirective;
  97831. t1 = _this._box_0.exclusive;
  97832. t1.toString;
  97833. return A.ForRule$0(_this.variable, _this.from, _this.to, children, span, t1);
  97834. },
  97835. $signature: 533
  97836. };
  97837. A.StylesheetParser__memberList_closure0.prototype = {
  97838. call$0() {
  97839. var t1 = this.$this;
  97840. if (t1.scanner.peekChar$0() === 36)
  97841. this.variables.add$1(0, t1.variableName$0());
  97842. else
  97843. this.identifiers.add$1(0, t1.identifier$1$normalize(true));
  97844. },
  97845. $signature: 1
  97846. };
  97847. A.StylesheetParser__includeRule_closure0.prototype = {
  97848. call$2(children, span) {
  97849. return A.ContentBlock$0(this.contentArguments_, children, span);
  97850. },
  97851. $signature: 534
  97852. };
  97853. A.StylesheetParser_mediaRule_closure0.prototype = {
  97854. call$2(children, span) {
  97855. return A.MediaRule$0(this.query, children, span);
  97856. },
  97857. $signature: 535
  97858. };
  97859. A.StylesheetParser__mixinRule_closure0.prototype = {
  97860. call$2(children, span) {
  97861. var _this = this;
  97862. _this.$this._stylesheet0$_inMixin = false;
  97863. return A.MixinRule$0(_this.name, _this.$arguments, children, span, _this.precedingComment);
  97864. },
  97865. $signature: 536
  97866. };
  97867. A.StylesheetParser_mozDocumentRule_closure0.prototype = {
  97868. call$2(children, span) {
  97869. var _this = this;
  97870. if (_this._box_0.needsDeprecationWarning)
  97871. _this.$this.logger.warn$3$deprecation$span(0, string$.x40_moz_, true, span);
  97872. return A.AtRule$0(_this.name, span, children, _this.value);
  97873. },
  97874. $signature: 141
  97875. };
  97876. A.StylesheetParser_supportsRule_closure0.prototype = {
  97877. call$2(children, span) {
  97878. return A.SupportsRule$0(this.condition, children, span);
  97879. },
  97880. $signature: 538
  97881. };
  97882. A.StylesheetParser__whileRule_closure0.prototype = {
  97883. call$2(children, span) {
  97884. this.$this._stylesheet0$_inControlDirective = this.wasInControlDirective;
  97885. return A.WhileRule$0(this.condition, children, span);
  97886. },
  97887. $signature: 539
  97888. };
  97889. A.StylesheetParser_unknownAtRule_closure0.prototype = {
  97890. call$2(children, span) {
  97891. return A.AtRule$0(this.name, span, children, this._box_0.value);
  97892. },
  97893. $signature: 141
  97894. };
  97895. A.StylesheetParser__expression_resetState0.prototype = {
  97896. call$0() {
  97897. var t2,
  97898. t1 = this._box_0;
  97899. t1.operands_ = t1.operators_ = t1.spaceExpressions_ = t1.commaExpressions_ = null;
  97900. t2 = this.$this;
  97901. t2.scanner.set$state(this.start);
  97902. t1.allowSlash = true;
  97903. t1.singleExpression_ = t2._stylesheet0$_singleExpression$0();
  97904. },
  97905. $signature: 0
  97906. };
  97907. A.StylesheetParser__expression_resolveOneOperation0.prototype = {
  97908. call$0() {
  97909. var t2, t3, t4, t5, t6, t7, _this = this,
  97910. t1 = _this._box_0,
  97911. operator = t1.operators_.pop(),
  97912. left = t1.operands_.pop(),
  97913. right = t1.singleExpression_;
  97914. if (right == null) {
  97915. t2 = _this.$this.scanner;
  97916. t3 = operator.operator.length;
  97917. t2.error$3$length$position(0, "Expected expression.", t3, t2._string_scanner$_position - t3);
  97918. }
  97919. if (t1.allowSlash) {
  97920. t2 = _this.$this;
  97921. t2 = !t2._stylesheet0$_inParentheses && operator === B.BinaryOperator_qpm0 && t2._stylesheet0$_isSlashOperand$1(left) && t2._stylesheet0$_isSlashOperand$1(right);
  97922. } else
  97923. t2 = false;
  97924. if (t2)
  97925. t1.singleExpression_ = new A.BinaryOperationExpression0(B.BinaryOperator_qpm0, left, right, true);
  97926. else {
  97927. t1.singleExpression_ = new A.BinaryOperationExpression0(operator, left, right, false);
  97928. t2 = t1.allowSlash = false;
  97929. if (operator === B.BinaryOperator_qbf0 || operator === B.BinaryOperator_KlB0) {
  97930. t3 = _this.$this;
  97931. t4 = t3.scanner.string;
  97932. t5 = right.get$span(right);
  97933. t5 = t5.get$start(t5);
  97934. t6 = right.get$span(right);
  97935. t7 = operator.operator;
  97936. if (B.JSString_methods.substring$2(t4, t5.offset - 1, t6.get$start(t6).offset) === t7) {
  97937. t2 = left.get$span(left);
  97938. t2 = B.JSString_methods.codeUnitAt$1(t4, t2.get$end(t2).offset);
  97939. t2 = t2 === 32 || t2 === 9 || t2 === 10 || t2 === 13 || t2 === 12;
  97940. }
  97941. if (t2) {
  97942. t2 = left.toString$0(0);
  97943. t4 = right.toString$0(0);
  97944. t5 = left.toString$0(0);
  97945. t6 = right.toString$0(0);
  97946. t1 = t1.singleExpression_;
  97947. t3.logger.warn$3$deprecation$span(0, "This operation is parsed as:\n\n " + t2 + " " + t7 + " " + t4 + string$.x0a_but_ + t5 + " (" + t7 + t6 + ")\n\nAdd a space after " + t7 + string$.x20to_cl, true, t1.get$span(t1));
  97948. }
  97949. }
  97950. }
  97951. },
  97952. $signature: 0
  97953. };
  97954. A.StylesheetParser__expression_resolveOperations0.prototype = {
  97955. call$0() {
  97956. var t1,
  97957. operators = this._box_0.operators_;
  97958. if (operators == null)
  97959. return;
  97960. for (t1 = this.resolveOneOperation; operators.length !== 0;)
  97961. t1.call$0();
  97962. },
  97963. $signature: 0
  97964. };
  97965. A.StylesheetParser__expression_addSingleExpression0.prototype = {
  97966. call$1(expression) {
  97967. var t2, spaceExpressions, _this = this,
  97968. t1 = _this._box_0;
  97969. if (t1.singleExpression_ != null) {
  97970. t2 = _this.$this;
  97971. if (t2._stylesheet0$_inParentheses) {
  97972. t2._stylesheet0$_inParentheses = false;
  97973. if (t1.allowSlash) {
  97974. _this.resetState.call$0();
  97975. return;
  97976. }
  97977. }
  97978. spaceExpressions = t1.spaceExpressions_;
  97979. if (spaceExpressions == null)
  97980. spaceExpressions = t1.spaceExpressions_ = A._setArrayType([], type$.JSArray_Expression_2);
  97981. _this.resolveOperations.call$0();
  97982. t2 = t1.singleExpression_;
  97983. t2.toString;
  97984. spaceExpressions.push(t2);
  97985. t1.allowSlash = true;
  97986. }
  97987. t1.singleExpression_ = expression;
  97988. },
  97989. $signature: 540
  97990. };
  97991. A.StylesheetParser__expression_addOperator0.prototype = {
  97992. call$1(operator) {
  97993. var t2, t3, operators, operands, t4, singleExpression,
  97994. t1 = this.$this;
  97995. if (t1.get$plainCss() && operator !== B.BinaryOperator_qpm0 && operator !== B.BinaryOperator_axY0) {
  97996. t2 = t1.scanner;
  97997. t3 = operator.operator.length;
  97998. t2.error$3$length$position(0, "Operators aren't allowed in plain CSS.", t3, t2._string_scanner$_position - t3);
  97999. }
  98000. t2 = this._box_0;
  98001. t2.allowSlash = t2.allowSlash && operator === B.BinaryOperator_qpm0;
  98002. operators = t2.operators_;
  98003. if (operators == null)
  98004. operators = t2.operators_ = A._setArrayType([], type$.JSArray_BinaryOperator_2);
  98005. operands = t2.operands_;
  98006. if (operands == null)
  98007. operands = t2.operands_ = A._setArrayType([], type$.JSArray_Expression_2);
  98008. t3 = this.resolveOneOperation;
  98009. t4 = operator.precedence;
  98010. while (true) {
  98011. if (!(operators.length !== 0 && B.JSArray_methods.get$last(operators).precedence >= t4))
  98012. break;
  98013. t3.call$0();
  98014. }
  98015. operators.push(operator);
  98016. singleExpression = t2.singleExpression_;
  98017. if (singleExpression == null) {
  98018. t3 = t1.scanner;
  98019. t4 = operator.operator.length;
  98020. t3.error$3$length$position(0, "Expected expression.", t4, t3._string_scanner$_position - t4);
  98021. }
  98022. operands.push(singleExpression);
  98023. t1.whitespace$0();
  98024. t2.singleExpression_ = t1._stylesheet0$_singleExpression$0();
  98025. },
  98026. $signature: 541
  98027. };
  98028. A.StylesheetParser__expression_resolveSpaceExpressions0.prototype = {
  98029. call$0() {
  98030. var t1, spaceExpressions, singleExpression, t2;
  98031. this.resolveOperations.call$0();
  98032. t1 = this._box_0;
  98033. spaceExpressions = t1.spaceExpressions_;
  98034. if (spaceExpressions != null) {
  98035. singleExpression = t1.singleExpression_;
  98036. if (singleExpression == null)
  98037. this.$this.scanner.error$1(0, "Expected expression.");
  98038. spaceExpressions.push(singleExpression);
  98039. t2 = B.JSArray_methods.get$first(spaceExpressions);
  98040. t2 = t2.get$span(t2).expand$1(0, singleExpression.get$span(singleExpression));
  98041. t1.singleExpression_ = new A.ListExpression0(A.List_List$unmodifiable(spaceExpressions, type$.Expression_2), B.ListSeparator_EVt0, false, t2);
  98042. t1.spaceExpressions_ = null;
  98043. }
  98044. },
  98045. $signature: 0
  98046. };
  98047. A.StylesheetParser_expressionUntilComma_closure0.prototype = {
  98048. call$0() {
  98049. return this.$this.scanner.peekChar$0() === 44;
  98050. },
  98051. $signature: 26
  98052. };
  98053. A.StylesheetParser__unicodeRange_closure1.prototype = {
  98054. call$1(char) {
  98055. return char != null && A.isHex0(char);
  98056. },
  98057. $signature: 32
  98058. };
  98059. A.StylesheetParser__unicodeRange_closure2.prototype = {
  98060. call$1(char) {
  98061. return char != null && A.isHex0(char);
  98062. },
  98063. $signature: 32
  98064. };
  98065. A.StylesheetParser_namespacedExpression_closure0.prototype = {
  98066. call$0() {
  98067. return this.$this.scanner.spanFrom$1(this.start);
  98068. },
  98069. $signature: 31
  98070. };
  98071. A.StylesheetParser_trySpecialFunction_closure0.prototype = {
  98072. call$1(contents) {
  98073. return new A.StringExpression0(contents, false);
  98074. },
  98075. $signature: 542
  98076. };
  98077. A.StylesheetParser__expressionUntilComparison_closure0.prototype = {
  98078. call$0() {
  98079. var t1 = this.$this.scanner,
  98080. next = t1.peekChar$0();
  98081. if (next === 61)
  98082. return t1.peekChar$1(1) !== 61;
  98083. return next === 60 || next === 62;
  98084. },
  98085. $signature: 26
  98086. };
  98087. A.StylesheetParser__publicIdentifier_closure0.prototype = {
  98088. call$0() {
  98089. return this.$this.scanner.spanFrom$1(this.start);
  98090. },
  98091. $signature: 31
  98092. };
  98093. A.Stylesheet0.prototype = {
  98094. Stylesheet$internal$3$plainCss0(children, span, plainCss) {
  98095. var t1, t2, t3, t4, _i, child;
  98096. for (t1 = this.children, t2 = t1.length, t3 = this._stylesheet1$_forwards, t4 = this._stylesheet1$_uses, _i = 0; _i < t2; ++_i) {
  98097. child = t1[_i];
  98098. if (child instanceof A.UseRule0)
  98099. t4.push(child);
  98100. else if (child instanceof A.ForwardRule0)
  98101. t3.push(child);
  98102. else if (!(child instanceof A.SilentComment0) && !(child instanceof A.LoudComment0) && !(child instanceof A.VariableDeclaration0))
  98103. break;
  98104. }
  98105. },
  98106. accept$1$1(visitor) {
  98107. return visitor.visitStylesheet$1(this);
  98108. },
  98109. accept$1(visitor) {
  98110. return this.accept$1$1(visitor, type$.dynamic);
  98111. },
  98112. toString$0(_) {
  98113. var t1 = this.children;
  98114. return (t1 && B.JSArray_methods).join$1(t1, " ");
  98115. },
  98116. get$span(receiver) {
  98117. return this.span;
  98118. }
  98119. };
  98120. A.SupportsExpression0.prototype = {
  98121. get$span(_) {
  98122. var t1 = this.condition;
  98123. return t1.get$span(t1);
  98124. },
  98125. accept$1$1(visitor) {
  98126. return visitor.visitSupportsExpression$1(this);
  98127. },
  98128. accept$1(visitor) {
  98129. return this.accept$1$1(visitor, type$.dynamic);
  98130. },
  98131. toString$0(_) {
  98132. return this.condition.toString$0(0);
  98133. },
  98134. $isExpression0: 1,
  98135. $isAstNode0: 1
  98136. };
  98137. A.ModifiableCssSupportsRule0.prototype = {
  98138. accept$1$1(visitor) {
  98139. return visitor.visitCssSupportsRule$1(this);
  98140. },
  98141. accept$1(visitor) {
  98142. return this.accept$1$1(visitor, type$.dynamic);
  98143. },
  98144. copyWithoutChildren$0() {
  98145. return A.ModifiableCssSupportsRule$0(this.condition, this.span);
  98146. },
  98147. $isCssSupportsRule0: 1,
  98148. get$span(receiver) {
  98149. return this.span;
  98150. }
  98151. };
  98152. A.SupportsRule0.prototype = {
  98153. accept$1$1(visitor) {
  98154. return visitor.visitSupportsRule$1(this);
  98155. },
  98156. accept$1(visitor) {
  98157. return this.accept$1$1(visitor, type$.dynamic);
  98158. },
  98159. toString$0(_) {
  98160. var t1 = this.children;
  98161. return "@supports " + this.condition.toString$0(0) + " {" + (t1 && B.JSArray_methods).join$1(t1, " ") + "}";
  98162. },
  98163. get$span(receiver) {
  98164. return this.span;
  98165. }
  98166. };
  98167. A.NodeToDartImporter.prototype = {
  98168. canonicalize$1(_, url) {
  98169. var t1,
  98170. result = this._sync$_canonicalize.call$2(url.toString$0(0), {fromImport: A.fromImport0()});
  98171. if (result == null)
  98172. return null;
  98173. t1 = self.URL;
  98174. if (result instanceof t1)
  98175. return A.Uri_parse(J.toString$0$(type$.JSUrl._as(result)));
  98176. t1 = self.Promise;
  98177. if (result instanceof t1)
  98178. A.jsThrow(new self.Error("The canonicalize() function can't return a Promise for synchronous compile functions."));
  98179. else
  98180. A.jsThrow(new self.Error(string$.The_ca));
  98181. },
  98182. load$1(_, url) {
  98183. var t1, contents, syntax, t2,
  98184. result = this._sync$_load.call$1(new self.URL(url.toString$0(0)));
  98185. if (result == null)
  98186. return null;
  98187. t1 = self.Promise;
  98188. if (result instanceof t1)
  98189. A.jsThrow(new self.Error("The load() function can't return a Promise for synchronous compile functions."));
  98190. type$.NodeImporterResult._as(result);
  98191. t1 = J.getInterceptor$x(result);
  98192. contents = t1.get$contents(result);
  98193. if (A._asString(new self.Function("value", "return typeof value").call$1(contents)) !== "string")
  98194. A.jsThrow(new A.ArgumentError(true, contents, "contents", "must be a string but was: " + A.jsType(contents)));
  98195. syntax = t1.get$syntax(result);
  98196. if (contents == null || syntax == null)
  98197. A.jsThrow(new self.Error(string$.The_lo));
  98198. t2 = A.parseSyntax(syntax);
  98199. return A.ImporterResult$(contents, A.NullableExtension_andThen0(t1.get$sourceMapUrl(result), A.utils1__jsToDartUrl$closure()), t2);
  98200. }
  98201. };
  98202. A.Syntax0.prototype = {
  98203. toString$0(_) {
  98204. return this._syntax0$_name;
  98205. }
  98206. };
  98207. A.TerseLogger0.prototype = {
  98208. warn$4$deprecation$span$trace(_, message, deprecation, span, trace) {
  98209. var firstParagraph, t1, t2, count;
  98210. if (deprecation) {
  98211. firstParagraph = B.JSArray_methods.get$first(message.split("\n\n"));
  98212. t1 = this._terse$_warningCounts;
  98213. t2 = t1.$index(0, firstParagraph);
  98214. count = (t2 == null ? 0 : t2) + 1;
  98215. t1.$indexSet(0, firstParagraph, count);
  98216. if (count > 5)
  98217. return;
  98218. }
  98219. this._terse$_inner.warn$4$deprecation$span$trace(0, message, deprecation, span, trace);
  98220. },
  98221. warn$2$deprecation($receiver, message, deprecation) {
  98222. return this.warn$4$deprecation$span$trace($receiver, message, deprecation, null, null);
  98223. },
  98224. warn$2$span($receiver, message, span) {
  98225. return this.warn$4$deprecation$span$trace($receiver, message, false, span, null);
  98226. },
  98227. warn$3$deprecation$span($receiver, message, deprecation, span) {
  98228. return this.warn$4$deprecation$span$trace($receiver, message, deprecation, span, null);
  98229. },
  98230. warn$2$trace($receiver, message, trace) {
  98231. return this.warn$4$deprecation$span$trace($receiver, message, false, null, trace);
  98232. },
  98233. debug$2(_, message, span) {
  98234. return this._terse$_inner.debug$2(0, message, span);
  98235. },
  98236. summarize$1$node(node) {
  98237. var t2, total,
  98238. t1 = this._terse$_warningCounts;
  98239. t1 = t1.get$values(t1);
  98240. t2 = A._instanceType(t1);
  98241. total = A.IterableIntegerExtension_get_sum(new A.MappedIterable(new A.WhereIterable(t1, new A.TerseLogger_summarize_closure1(), t2._eval$1("WhereIterable<Iterable.E>")), new A.TerseLogger_summarize_closure2(), t2._eval$1("MappedIterable<Iterable.E,int>")));
  98242. if (total > 0) {
  98243. t1 = node ? "" : string$.x0aRun_i;
  98244. this._terse$_inner.warn$1(0, "" + total + string$.x20repet + t1);
  98245. }
  98246. }
  98247. };
  98248. A.TerseLogger_summarize_closure1.prototype = {
  98249. call$1(count) {
  98250. return count > 5;
  98251. },
  98252. $signature: 57
  98253. };
  98254. A.TerseLogger_summarize_closure2.prototype = {
  98255. call$1(count) {
  98256. return count - 5;
  98257. },
  98258. $signature: 171
  98259. };
  98260. A.TypeSelector0.prototype = {
  98261. get$specificity() {
  98262. return 1;
  98263. },
  98264. accept$1$1(visitor) {
  98265. return visitor.visitTypeSelector$1(this);
  98266. },
  98267. accept$1(visitor) {
  98268. return this.accept$1$1(visitor, type$.dynamic);
  98269. },
  98270. addSuffix$1(suffix) {
  98271. var t1 = this.name;
  98272. return new A.TypeSelector0(new A.QualifiedName0(t1.name + suffix, t1.namespace));
  98273. },
  98274. unify$1(compound) {
  98275. var unified, t1;
  98276. if (B.JSArray_methods.get$first(compound) instanceof A.UniversalSelector0 || B.JSArray_methods.get$first(compound) instanceof A.TypeSelector0) {
  98277. unified = A.unifyUniversalAndElement0(this, B.JSArray_methods.get$first(compound));
  98278. if (unified == null)
  98279. return null;
  98280. t1 = A._setArrayType([unified], type$.JSArray_SimpleSelector_2);
  98281. B.JSArray_methods.addAll$1(t1, A.SubListIterable$(compound, 1, null, A._arrayInstanceType(compound)._precomputed1));
  98282. return t1;
  98283. } else {
  98284. t1 = A._setArrayType([this], type$.JSArray_SimpleSelector_2);
  98285. B.JSArray_methods.addAll$1(t1, compound);
  98286. return t1;
  98287. }
  98288. },
  98289. isSuperselector$1(other) {
  98290. var t1, t2;
  98291. if (!this.super$SimpleSelector$isSuperselector0(other))
  98292. if (other instanceof A.TypeSelector0) {
  98293. t1 = this.name;
  98294. t2 = other.name;
  98295. if (t1.name === t2.name) {
  98296. t1 = t1.namespace;
  98297. t1 = t1 === "*" || t1 == t2.namespace;
  98298. } else
  98299. t1 = false;
  98300. } else
  98301. t1 = false;
  98302. else
  98303. t1 = true;
  98304. return t1;
  98305. },
  98306. $eq(_, other) {
  98307. if (other == null)
  98308. return false;
  98309. return other instanceof A.TypeSelector0 && other.name.$eq(0, this.name);
  98310. },
  98311. get$hashCode(_) {
  98312. var t1 = this.name;
  98313. return B.JSString_methods.get$hashCode(t1.name) ^ J.get$hashCode$(t1.namespace);
  98314. }
  98315. };
  98316. A.Types.prototype = {};
  98317. A.UnaryOperationExpression0.prototype = {
  98318. accept$1$1(visitor) {
  98319. return visitor.visitUnaryOperationExpression$1(this);
  98320. },
  98321. accept$1(visitor) {
  98322. return this.accept$1$1(visitor, type$.dynamic);
  98323. },
  98324. toString$0(_) {
  98325. var t1 = this.operator,
  98326. t2 = t1.operator;
  98327. t1 = t1 === B.UnaryOperator_not_not_not0 ? t2 + A.Primitives_stringFromCharCode(32) : t2;
  98328. t1 += this.operand.toString$0(0);
  98329. return t1.charCodeAt(0) == 0 ? t1 : t1;
  98330. },
  98331. $isExpression0: 1,
  98332. $isAstNode0: 1,
  98333. get$span(receiver) {
  98334. return this.span;
  98335. }
  98336. };
  98337. A.UnaryOperator0.prototype = {
  98338. toString$0(_) {
  98339. return this.name;
  98340. }
  98341. };
  98342. A.UnitlessSassNumber0.prototype = {
  98343. get$numeratorUnits(_) {
  98344. return B.List_empty;
  98345. },
  98346. get$denominatorUnits(_) {
  98347. return B.List_empty;
  98348. },
  98349. get$hasUnits() {
  98350. return false;
  98351. },
  98352. withValue$1(value) {
  98353. return new A.UnitlessSassNumber0(value, null);
  98354. },
  98355. withSlash$2(numerator, denominator) {
  98356. return new A.UnitlessSassNumber0(this._number1$_value, new A.Tuple2(numerator, denominator, type$.Tuple2_SassNumber_SassNumber_2));
  98357. },
  98358. hasUnit$1(unit) {
  98359. return false;
  98360. },
  98361. hasCompatibleUnits$1(other) {
  98362. return other instanceof A.UnitlessSassNumber0;
  98363. },
  98364. hasPossiblyCompatibleUnits$1(other) {
  98365. return other instanceof A.UnitlessSassNumber0;
  98366. },
  98367. compatibleWithUnit$1(unit) {
  98368. return true;
  98369. },
  98370. coerceToMatch$3(other, $name, otherName) {
  98371. return other.withValue$1(this._number1$_value);
  98372. },
  98373. coerceValueToMatch$3(other, $name, otherName) {
  98374. return this._number1$_value;
  98375. },
  98376. coerceValueToMatch$1(other) {
  98377. return this.coerceValueToMatch$3(other, null, null);
  98378. },
  98379. convertToMatch$3(other, $name, otherName) {
  98380. return other.get$hasUnits() ? this.super$SassNumber$convertToMatch(other, $name, otherName) : this;
  98381. },
  98382. convertValueToMatch$3(other, $name, otherName) {
  98383. return other.get$hasUnits() ? this.super$SassNumber$convertValueToMatch0(other, $name, otherName) : this._number1$_value;
  98384. },
  98385. coerce$3(newNumerators, newDenominators, $name) {
  98386. return A.SassNumber_SassNumber$withUnits0(this._number1$_value, newDenominators, newNumerators);
  98387. },
  98388. coerce$2(newNumerators, newDenominators) {
  98389. return this.coerce$3(newNumerators, newDenominators, null);
  98390. },
  98391. coerceValue$3(newNumerators, newDenominators, $name) {
  98392. return this._number1$_value;
  98393. },
  98394. coerceValueToUnit$2(unit, $name) {
  98395. return this._number1$_value;
  98396. },
  98397. coerceValueToUnit$1(unit) {
  98398. return this.coerceValueToUnit$2(unit, null);
  98399. },
  98400. greaterThan$1(other) {
  98401. var t1, t2;
  98402. if (other instanceof A.SassNumber0) {
  98403. t1 = this._number1$_value;
  98404. t2 = other._number1$_value;
  98405. return t1 > t2 && !A.fuzzyEquals0(t1, t2) ? B.SassBoolean_true0 : B.SassBoolean_false0;
  98406. }
  98407. return this.super$SassNumber$greaterThan0(other);
  98408. },
  98409. greaterThanOrEquals$1(other) {
  98410. var t1, t2;
  98411. if (other instanceof A.SassNumber0) {
  98412. t1 = this._number1$_value;
  98413. t2 = other._number1$_value;
  98414. return t1 > t2 || A.fuzzyEquals0(t1, t2) ? B.SassBoolean_true0 : B.SassBoolean_false0;
  98415. }
  98416. return this.super$SassNumber$greaterThanOrEquals0(other);
  98417. },
  98418. lessThan$1(other) {
  98419. var t1, t2;
  98420. if (other instanceof A.SassNumber0) {
  98421. t1 = this._number1$_value;
  98422. t2 = other._number1$_value;
  98423. return t1 < t2 && !A.fuzzyEquals0(t1, t2) ? B.SassBoolean_true0 : B.SassBoolean_false0;
  98424. }
  98425. return this.super$SassNumber$lessThan0(other);
  98426. },
  98427. lessThanOrEquals$1(other) {
  98428. var t1, t2;
  98429. if (other instanceof A.SassNumber0) {
  98430. t1 = this._number1$_value;
  98431. t2 = other._number1$_value;
  98432. return t1 < t2 || A.fuzzyEquals0(t1, t2) ? B.SassBoolean_true0 : B.SassBoolean_false0;
  98433. }
  98434. return this.super$SassNumber$lessThanOrEquals0(other);
  98435. },
  98436. modulo$1(other) {
  98437. if (other instanceof A.SassNumber0)
  98438. return other.withValue$1(A.moduloLikeSass0(this._number1$_value, other._number1$_value));
  98439. return this.super$SassNumber$modulo0(other);
  98440. },
  98441. plus$1(other) {
  98442. if (other instanceof A.SassNumber0)
  98443. return other.withValue$1(this._number1$_value + other._number1$_value);
  98444. return this.super$SassNumber$plus0(other);
  98445. },
  98446. minus$1(other) {
  98447. if (other instanceof A.SassNumber0)
  98448. return other.withValue$1(this._number1$_value - other._number1$_value);
  98449. return this.super$SassNumber$minus0(other);
  98450. },
  98451. times$1(other) {
  98452. if (other instanceof A.SassNumber0)
  98453. return other.withValue$1(this._number1$_value * other._number1$_value);
  98454. return this.super$SassNumber$times0(other);
  98455. },
  98456. dividedBy$1(other) {
  98457. var t1, t2;
  98458. if (other instanceof A.SassNumber0) {
  98459. t1 = this._number1$_value / other._number1$_value;
  98460. if (other.get$hasUnits()) {
  98461. t2 = other.get$denominatorUnits(other);
  98462. t2 = A.SassNumber_SassNumber$withUnits0(t1, other.get$numeratorUnits(other), t2);
  98463. t1 = t2;
  98464. } else
  98465. t1 = new A.UnitlessSassNumber0(t1, null);
  98466. return t1;
  98467. }
  98468. return this.super$SassNumber$dividedBy0(other);
  98469. },
  98470. unaryMinus$0() {
  98471. return new A.UnitlessSassNumber0(-this._number1$_value, null);
  98472. },
  98473. $eq(_, other) {
  98474. if (other == null)
  98475. return false;
  98476. return other instanceof A.UnitlessSassNumber0 && A.fuzzyEquals0(this._number1$_value, other._number1$_value);
  98477. },
  98478. get$hashCode(_) {
  98479. var t1 = this.hashCache;
  98480. return t1 == null ? this.hashCache = A.fuzzyHashCode0(this._number1$_value) : t1;
  98481. }
  98482. };
  98483. A.UniversalSelector0.prototype = {
  98484. get$specificity() {
  98485. return 0;
  98486. },
  98487. accept$1$1(visitor) {
  98488. return visitor.visitUniversalSelector$1(this);
  98489. },
  98490. accept$1(visitor) {
  98491. return this.accept$1$1(visitor, type$.dynamic);
  98492. },
  98493. unify$1(compound) {
  98494. var unified, t1, _this = this,
  98495. first = B.JSArray_methods.get$first(compound);
  98496. if (first instanceof A.UniversalSelector0 || first instanceof A.TypeSelector0) {
  98497. unified = A.unifyUniversalAndElement0(_this, first);
  98498. if (unified == null)
  98499. return null;
  98500. t1 = A._setArrayType([unified], type$.JSArray_SimpleSelector_2);
  98501. B.JSArray_methods.addAll$1(t1, A.SubListIterable$(compound, 1, null, A._arrayInstanceType(compound)._precomputed1));
  98502. return t1;
  98503. } else {
  98504. if (compound.length === 1)
  98505. if (first instanceof A.PseudoSelector0)
  98506. t1 = first.isClass && first.name === "host" || first.get$isHostContext();
  98507. else
  98508. t1 = false;
  98509. else
  98510. t1 = false;
  98511. if (t1)
  98512. return null;
  98513. }
  98514. t1 = _this.namespace;
  98515. if (t1 != null && t1 !== "*") {
  98516. t1 = A._setArrayType([_this], type$.JSArray_SimpleSelector_2);
  98517. B.JSArray_methods.addAll$1(t1, compound);
  98518. return t1;
  98519. }
  98520. if (compound.length !== 0)
  98521. return compound;
  98522. return A._setArrayType([_this], type$.JSArray_SimpleSelector_2);
  98523. },
  98524. isSuperselector$1(other) {
  98525. var t1 = this.namespace;
  98526. if (t1 === "*")
  98527. return true;
  98528. if (other instanceof A.TypeSelector0)
  98529. return t1 == other.name.namespace;
  98530. if (other instanceof A.UniversalSelector0)
  98531. return t1 == other.namespace;
  98532. return t1 == null || this.super$SimpleSelector$isSuperselector0(other);
  98533. },
  98534. $eq(_, other) {
  98535. if (other == null)
  98536. return false;
  98537. return other instanceof A.UniversalSelector0 && other.namespace == this.namespace;
  98538. },
  98539. get$hashCode(_) {
  98540. return J.get$hashCode$(this.namespace);
  98541. }
  98542. };
  98543. A.UnprefixedMapView0.prototype = {
  98544. get$keys(_) {
  98545. return new A._UnprefixedKeys0(this);
  98546. },
  98547. $index(_, key) {
  98548. return typeof key == "string" ? this._unprefixed_map_view0$_map.$index(0, this._unprefixed_map_view0$_prefix + key) : null;
  98549. },
  98550. containsKey$1(key) {
  98551. return typeof key == "string" && this._unprefixed_map_view0$_map.containsKey$1(this._unprefixed_map_view0$_prefix + key);
  98552. },
  98553. remove$1(_, key) {
  98554. return typeof key == "string" ? this._unprefixed_map_view0$_map.remove$1(0, this._unprefixed_map_view0$_prefix + key) : null;
  98555. }
  98556. };
  98557. A._UnprefixedKeys0.prototype = {
  98558. get$iterator(_) {
  98559. var t1 = this._unprefixed_map_view0$_view._unprefixed_map_view0$_map;
  98560. t1 = J.where$1$ax(t1.get$keys(t1), new A._UnprefixedKeys_iterator_closure1(this)).map$1$1(0, new A._UnprefixedKeys_iterator_closure2(this), type$.String);
  98561. return t1.get$iterator(t1);
  98562. },
  98563. contains$1(_, key) {
  98564. return this._unprefixed_map_view0$_view.containsKey$1(key);
  98565. }
  98566. };
  98567. A._UnprefixedKeys_iterator_closure1.prototype = {
  98568. call$1(key) {
  98569. return B.JSString_methods.startsWith$1(key, this.$this._unprefixed_map_view0$_view._unprefixed_map_view0$_prefix);
  98570. },
  98571. $signature: 8
  98572. };
  98573. A._UnprefixedKeys_iterator_closure2.prototype = {
  98574. call$1(key) {
  98575. return B.JSString_methods.substring$1(key, this.$this._unprefixed_map_view0$_view._unprefixed_map_view0$_prefix.length);
  98576. },
  98577. $signature: 5
  98578. };
  98579. A.JSUrl0.prototype = {};
  98580. A.UseRule0.prototype = {
  98581. UseRule$4$configuration0(url, namespace, span, configuration) {
  98582. var t1, t2, _i, variable;
  98583. for (t1 = this.configuration, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  98584. variable = t1[_i];
  98585. if (variable.isGuarded)
  98586. throw A.wrapException(A.ArgumentError$value(variable, "configured variable", "can't be guarded in a @use rule."));
  98587. }
  98588. },
  98589. accept$1$1(visitor) {
  98590. return visitor.visitUseRule$1(this);
  98591. },
  98592. accept$1(visitor) {
  98593. return this.accept$1$1(visitor, type$.dynamic);
  98594. },
  98595. toString$0(_) {
  98596. var t1 = this.url,
  98597. t2 = "@use " + A.StringExpression_quoteText0(t1.toString$0(0)),
  98598. basename = t1.get$pathSegments().length === 0 ? "" : B.JSArray_methods.get$last(t1.get$pathSegments()),
  98599. dot = B.JSString_methods.indexOf$1(basename, ".");
  98600. t1 = this.namespace;
  98601. if (t1 !== B.JSString_methods.substring$2(basename, 0, dot === -1 ? basename.length : dot))
  98602. t1 = t2 + (" as " + (t1 == null ? "*" : t1));
  98603. else
  98604. t1 = t2;
  98605. t2 = this.configuration;
  98606. t1 = (t2.length !== 0 ? t1 + (" with (" + B.JSArray_methods.join$1(t2, ", ") + ")") : t1) + ";";
  98607. return t1.charCodeAt(0) == 0 ? t1 : t1;
  98608. },
  98609. $isAstNode0: 1,
  98610. $isStatement0: 1,
  98611. get$span(receiver) {
  98612. return this.span;
  98613. }
  98614. };
  98615. A.UserDefinedCallable0.prototype = {
  98616. get$name(_) {
  98617. return this.declaration.name;
  98618. },
  98619. $isAsyncCallable0: 1,
  98620. $isCallable0: 1
  98621. };
  98622. A.resolveImportPath_closure1.prototype = {
  98623. call$0() {
  98624. return A._exactlyOne0(A._tryPath0($.$get$context().withoutExtension$1(this.path) + ".import" + this.extension));
  98625. },
  98626. $signature: 42
  98627. };
  98628. A.resolveImportPath_closure2.prototype = {
  98629. call$0() {
  98630. return A._exactlyOne0(A._tryPathWithExtensions0(this.path + ".import"));
  98631. },
  98632. $signature: 42
  98633. };
  98634. A._tryPathAsDirectory_closure0.prototype = {
  98635. call$0() {
  98636. return A._exactlyOne0(A._tryPathWithExtensions0(A.join(this.path, "index.import", null)));
  98637. },
  98638. $signature: 42
  98639. };
  98640. A._exactlyOne_closure0.prototype = {
  98641. call$1(path) {
  98642. var t1 = $.$get$context();
  98643. return " " + t1.prettyUri$1(t1.toUri$1(path));
  98644. },
  98645. $signature: 5
  98646. };
  98647. A._PropertyDescriptor0.prototype = {};
  98648. A.futureToPromise_closure0.prototype = {
  98649. call$2(resolve, reject) {
  98650. this.future.then$1$2$onError(0, new A.futureToPromise__closure0(resolve), new A.futureToPromise__closure1(reject), type$.void);
  98651. },
  98652. $signature: 543
  98653. };
  98654. A.futureToPromise__closure0.prototype = {
  98655. call$1(result) {
  98656. return this.resolve.call$1(result);
  98657. },
  98658. $signature: 27
  98659. };
  98660. A.futureToPromise__closure1.prototype = {
  98661. call$2(error, stackTrace) {
  98662. A.attachTrace0(error, stackTrace);
  98663. this.reject.call$1(error);
  98664. },
  98665. $signature: 64
  98666. };
  98667. A.objectToMap_closure.prototype = {
  98668. call$2(key, value) {
  98669. this.map.$indexSet(0, key, value);
  98670. return value;
  98671. },
  98672. $signature: 114
  98673. };
  98674. A.indent_closure0.prototype = {
  98675. call$1(line) {
  98676. return B.JSString_methods.$mul(" ", this.indentation) + line;
  98677. },
  98678. $signature: 5
  98679. };
  98680. A.flattenVertically_closure1.prototype = {
  98681. call$1(inner) {
  98682. return A.QueueList_QueueList$from(inner, this.T);
  98683. },
  98684. $signature() {
  98685. return this.T._eval$1("QueueList<0>(Iterable<0>)");
  98686. }
  98687. };
  98688. A.flattenVertically_closure2.prototype = {
  98689. call$1(queue) {
  98690. this.result.push(queue.removeFirst$0());
  98691. return queue.get$length(queue) === 0;
  98692. },
  98693. $signature() {
  98694. return this.T._eval$1("bool(QueueList<0>)");
  98695. }
  98696. };
  98697. A.longestCommonSubsequence_backtrack0.prototype = {
  98698. call$2(i, j) {
  98699. var selection, t1, _this = this;
  98700. if (i === -1 || j === -1)
  98701. return A._setArrayType([], _this.T._eval$1("JSArray<0>"));
  98702. selection = _this.selections[i][j];
  98703. if (selection != null) {
  98704. t1 = _this.call$2(i - 1, j - 1);
  98705. J.add$1$ax(t1, selection);
  98706. return t1;
  98707. }
  98708. t1 = _this.lengths;
  98709. return t1[i + 1][j] > t1[i][j + 1] ? _this.call$2(i, j - 1) : _this.call$2(i - 1, j);
  98710. },
  98711. $signature() {
  98712. return this.T._eval$1("List<0>(int,int)");
  98713. }
  98714. };
  98715. A.mapAddAll2_closure0.prototype = {
  98716. call$2(key, inner) {
  98717. var t1 = this.destination,
  98718. innerDestination = t1.$index(0, key);
  98719. if (innerDestination != null)
  98720. innerDestination.addAll$1(0, inner);
  98721. else
  98722. t1.$indexSet(0, key, inner);
  98723. },
  98724. $signature() {
  98725. return this.K1._eval$1("@<0>")._bind$1(this.K2)._bind$1(this.V)._eval$1("~(1,Map<2,3>)");
  98726. }
  98727. };
  98728. A.CssValue0.prototype = {
  98729. toString$0(_) {
  98730. return J.toString$0$(this.value);
  98731. },
  98732. $isAstNode0: 1,
  98733. get$value(receiver) {
  98734. return this.value;
  98735. },
  98736. get$span(receiver) {
  98737. return this.span;
  98738. }
  98739. };
  98740. A.ValueExpression0.prototype = {
  98741. accept$1$1(visitor) {
  98742. return visitor.visitValueExpression$1(this);
  98743. },
  98744. accept$1(visitor) {
  98745. return this.accept$1$1(visitor, type$.dynamic);
  98746. },
  98747. toString$0(_) {
  98748. return A.serializeValue0(this.value, true, true);
  98749. },
  98750. $isExpression0: 1,
  98751. $isAstNode0: 1,
  98752. get$span(receiver) {
  98753. return this.span;
  98754. }
  98755. };
  98756. A.ModifiableCssValue0.prototype = {
  98757. toString$0(_) {
  98758. return A.serializeSelector0(this.value, true);
  98759. },
  98760. $isAstNode0: 1,
  98761. $isCssValue0: 1,
  98762. get$value(receiver) {
  98763. return this.value;
  98764. },
  98765. get$span(receiver) {
  98766. return this.span;
  98767. }
  98768. };
  98769. A.valueClass_closure.prototype = {
  98770. call$0() {
  98771. var t2,
  98772. t1 = type$.JSClass,
  98773. jsClass = t1._as(self.Object.getPrototypeOf(J.get$$prototype$x(t1._as(B.C__SassNull0.constructor))).constructor);
  98774. A.JSClassExtension_setCustomInspect(jsClass, new A.valueClass__closure());
  98775. t1 = type$.String;
  98776. t2 = type$.Function;
  98777. A.LinkedHashMap_LinkedHashMap$_literal(["asList", new A.valueClass__closure0(), "hasBrackets", new A.valueClass__closure1(), "isTruthy", new A.valueClass__closure2(), "realNull", new A.valueClass__closure3(), "separator", new A.valueClass__closure4()], t1, t2).forEach$1(0, A.JSClassExtension_get_defineGetter(jsClass));
  98778. A.LinkedHashMap_LinkedHashMap$_literal(["sassIndexToListIndex", new A.valueClass__closure5(), "get", new A.valueClass__closure6(), "assertBoolean", new A.valueClass__closure7(), "assertColor", new A.valueClass__closure8(), "assertFunction", new A.valueClass__closure9(), "assertMap", new A.valueClass__closure10(), "assertNumber", new A.valueClass__closure11(), "assertString", new A.valueClass__closure12(), "tryMap", new A.valueClass__closure13(), "equals", new A.valueClass__closure14(), "hashCode", new A.valueClass__closure15(), "toString", new A.valueClass__closure16()], t1, t2).forEach$1(0, A.JSClassExtension_get_defineMethod(jsClass));
  98779. return jsClass;
  98780. },
  98781. $signature: 25
  98782. };
  98783. A.valueClass__closure.prototype = {
  98784. call$1($self) {
  98785. return J.toString$0$($self);
  98786. },
  98787. $signature: 46
  98788. };
  98789. A.valueClass__closure0.prototype = {
  98790. call$1($self) {
  98791. return new self.immutable.List($self.get$asList());
  98792. },
  98793. $signature: 544
  98794. };
  98795. A.valueClass__closure1.prototype = {
  98796. call$1($self) {
  98797. return $self.get$hasBrackets();
  98798. },
  98799. $signature: 49
  98800. };
  98801. A.valueClass__closure2.prototype = {
  98802. call$1($self) {
  98803. return $self.get$isTruthy();
  98804. },
  98805. $signature: 49
  98806. };
  98807. A.valueClass__closure3.prototype = {
  98808. call$1($self) {
  98809. return $self.get$realNull();
  98810. },
  98811. $signature: 185
  98812. };
  98813. A.valueClass__closure4.prototype = {
  98814. call$1($self) {
  98815. return $self.get$separator($self).separator;
  98816. },
  98817. $signature: 545
  98818. };
  98819. A.valueClass__closure5.prototype = {
  98820. call$3($self, sassIndex, $name) {
  98821. return $self.sassIndexToListIndex$2(sassIndex, $name);
  98822. },
  98823. call$2($self, sassIndex) {
  98824. return this.call$3($self, sassIndex, null);
  98825. },
  98826. "call*": "call$3",
  98827. $requiredArgCount: 2,
  98828. $defaultValues() {
  98829. return [null];
  98830. },
  98831. $signature: 546
  98832. };
  98833. A.valueClass__closure6.prototype = {
  98834. call$2($self, index) {
  98835. return index < 1 && index >= -1 ? $self : self.undefined;
  98836. },
  98837. $signature: 205
  98838. };
  98839. A.valueClass__closure7.prototype = {
  98840. call$2($self, $name) {
  98841. return $self.assertBoolean$1($name);
  98842. },
  98843. call$1($self) {
  98844. return this.call$2($self, null);
  98845. },
  98846. "call*": "call$2",
  98847. $requiredArgCount: 1,
  98848. $defaultValues() {
  98849. return [null];
  98850. },
  98851. $signature: 547
  98852. };
  98853. A.valueClass__closure8.prototype = {
  98854. call$2($self, $name) {
  98855. return $self.assertColor$1($name);
  98856. },
  98857. call$1($self) {
  98858. return this.call$2($self, null);
  98859. },
  98860. "call*": "call$2",
  98861. $requiredArgCount: 1,
  98862. $defaultValues() {
  98863. return [null];
  98864. },
  98865. $signature: 548
  98866. };
  98867. A.valueClass__closure9.prototype = {
  98868. call$2($self, $name) {
  98869. return $self.assertFunction$1($name);
  98870. },
  98871. call$1($self) {
  98872. return this.call$2($self, null);
  98873. },
  98874. "call*": "call$2",
  98875. $requiredArgCount: 1,
  98876. $defaultValues() {
  98877. return [null];
  98878. },
  98879. $signature: 549
  98880. };
  98881. A.valueClass__closure10.prototype = {
  98882. call$2($self, $name) {
  98883. return $self.assertMap$1($name);
  98884. },
  98885. call$1($self) {
  98886. return this.call$2($self, null);
  98887. },
  98888. "call*": "call$2",
  98889. $requiredArgCount: 1,
  98890. $defaultValues() {
  98891. return [null];
  98892. },
  98893. $signature: 550
  98894. };
  98895. A.valueClass__closure11.prototype = {
  98896. call$2($self, $name) {
  98897. return $self.assertNumber$1($name);
  98898. },
  98899. call$1($self) {
  98900. return this.call$2($self, null);
  98901. },
  98902. "call*": "call$2",
  98903. $requiredArgCount: 1,
  98904. $defaultValues() {
  98905. return [null];
  98906. },
  98907. $signature: 551
  98908. };
  98909. A.valueClass__closure12.prototype = {
  98910. call$2($self, $name) {
  98911. return $self.assertString$1($name);
  98912. },
  98913. call$1($self) {
  98914. return this.call$2($self, null);
  98915. },
  98916. "call*": "call$2",
  98917. $requiredArgCount: 1,
  98918. $defaultValues() {
  98919. return [null];
  98920. },
  98921. $signature: 552
  98922. };
  98923. A.valueClass__closure13.prototype = {
  98924. call$1($self) {
  98925. return $self.tryMap$0();
  98926. },
  98927. $signature: 553
  98928. };
  98929. A.valueClass__closure14.prototype = {
  98930. call$2($self, other) {
  98931. return $self.$eq(0, other);
  98932. },
  98933. $signature: 554
  98934. };
  98935. A.valueClass__closure15.prototype = {
  98936. call$2($self, _) {
  98937. return $self.get$hashCode($self);
  98938. },
  98939. call$1($self) {
  98940. return this.call$2($self, null);
  98941. },
  98942. "call*": "call$2",
  98943. $requiredArgCount: 1,
  98944. $defaultValues() {
  98945. return [null];
  98946. },
  98947. $signature: 555
  98948. };
  98949. A.valueClass__closure16.prototype = {
  98950. call$1($self) {
  98951. return A.serializeValue0($self, true, true);
  98952. },
  98953. $signature: 151
  98954. };
  98955. A.Value0.prototype = {
  98956. get$isTruthy() {
  98957. return true;
  98958. },
  98959. get$separator(_) {
  98960. return B.ListSeparator_undecided_null_undecided0;
  98961. },
  98962. get$hasBrackets() {
  98963. return false;
  98964. },
  98965. get$asList() {
  98966. return A._setArrayType([this], type$.JSArray_Value_2);
  98967. },
  98968. get$lengthAsList() {
  98969. return 1;
  98970. },
  98971. get$isBlank() {
  98972. return false;
  98973. },
  98974. get$isSpecialNumber() {
  98975. return false;
  98976. },
  98977. get$isVar() {
  98978. return false;
  98979. },
  98980. get$realNull() {
  98981. return this;
  98982. },
  98983. sassIndexToListIndex$2(sassIndex, $name) {
  98984. var t1, t2, index,
  98985. indexValue = sassIndex.assertNumber$1($name);
  98986. if (indexValue.get$hasUnits()) {
  98987. t1 = indexValue.get$unitString();
  98988. t2 = indexValue.unitSuggestion$1($name == null ? "index" : $name);
  98989. A.EvaluationContext_current0().warn$2$deprecation(0, "$" + A.S($name) + ": Passing a number with unit " + t1 + string$.x20is_de + t2 + string$.x0a_Morex3a, true);
  98990. }
  98991. index = indexValue.assertInt$1($name);
  98992. if (index === 0)
  98993. throw A.wrapException(A.SassScriptException$0("List index may not be 0.", $name));
  98994. if (Math.abs(index) > this.get$lengthAsList())
  98995. throw A.wrapException(A.SassScriptException$0("Invalid index " + sassIndex.toString$0(0) + " for a list with " + this.get$lengthAsList() + " elements.", $name));
  98996. return index < 0 ? this.get$lengthAsList() + index : index - 1;
  98997. },
  98998. assertBoolean$1($name) {
  98999. return A.throwExpression(A.SassScriptException$0(this.toString$0(0) + " is not a boolean.", $name));
  99000. },
  99001. assertCalculation$1($name) {
  99002. return A.throwExpression(A.SassScriptException$0(this.toString$0(0) + " is not a calculation.", $name));
  99003. },
  99004. assertColor$1($name) {
  99005. return A.throwExpression(A.SassScriptException$0(this.toString$0(0) + " is not a color.", $name));
  99006. },
  99007. assertFunction$1($name) {
  99008. return A.throwExpression(A.SassScriptException$0(this.toString$0(0) + " is not a function reference.", $name));
  99009. },
  99010. assertMap$1($name) {
  99011. return A.throwExpression(A.SassScriptException$0(this.toString$0(0) + " is not a map.", $name));
  99012. },
  99013. tryMap$0() {
  99014. return null;
  99015. },
  99016. assertNumber$1($name) {
  99017. return A.throwExpression(A.SassScriptException$0(this.toString$0(0) + " is not a number.", $name));
  99018. },
  99019. assertNumber$0() {
  99020. return this.assertNumber$1(null);
  99021. },
  99022. assertString$1($name) {
  99023. return A.throwExpression(A.SassScriptException$0(this.toString$0(0) + " is not a string.", $name));
  99024. },
  99025. _value$_selectorString$1($name) {
  99026. var string = this._value$_selectorStringOrNull$0();
  99027. if (string != null)
  99028. return string;
  99029. throw A.wrapException(A.SassScriptException$0(this.toString$0(0) + string$.x20is_noa, $name));
  99030. },
  99031. _value$_selectorStringOrNull$0() {
  99032. var t1, t2, result, t3, _i, complex, string, compound, _this = this, _null = null;
  99033. if (_this instanceof A.SassString0)
  99034. return _this._string0$_text;
  99035. if (!(_this instanceof A.SassList0))
  99036. return _null;
  99037. t1 = _this._list1$_contents;
  99038. t2 = t1.length;
  99039. if (t2 === 0)
  99040. return _null;
  99041. result = A._setArrayType([], type$.JSArray_String);
  99042. t3 = _this._list1$_separator;
  99043. switch (t3) {
  99044. case B.ListSeparator_rXA0:
  99045. for (_i = 0; _i < t2; ++_i) {
  99046. complex = t1[_i];
  99047. if (complex instanceof A.SassString0)
  99048. result.push(complex._string0$_text);
  99049. else if (complex instanceof A.SassList0 && complex._list1$_separator === B.ListSeparator_EVt0) {
  99050. string = complex._value$_selectorStringOrNull$0();
  99051. if (string == null)
  99052. return _null;
  99053. result.push(string);
  99054. } else
  99055. return _null;
  99056. }
  99057. break;
  99058. case B.ListSeparator_zg90:
  99059. return _null;
  99060. default:
  99061. for (_i = 0; _i < t2; ++_i) {
  99062. compound = t1[_i];
  99063. if (compound instanceof A.SassString0)
  99064. result.push(compound._string0$_text);
  99065. else
  99066. return _null;
  99067. }
  99068. break;
  99069. }
  99070. return B.JSArray_methods.join$1(result, t3 === B.ListSeparator_rXA0 ? ", " : " ");
  99071. },
  99072. withListContents$2$separator(contents, separator) {
  99073. var t1 = separator == null ? this.get$separator(this) : separator,
  99074. t2 = this.get$hasBrackets();
  99075. return A.SassList$0(contents, t1, t2);
  99076. },
  99077. withListContents$1(contents) {
  99078. return this.withListContents$2$separator(contents, null);
  99079. },
  99080. greaterThan$1(other) {
  99081. return A.throwExpression(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " > " + other.toString$0(0) + '".', null));
  99082. },
  99083. greaterThanOrEquals$1(other) {
  99084. return A.throwExpression(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " >= " + other.toString$0(0) + '".', null));
  99085. },
  99086. lessThan$1(other) {
  99087. return A.throwExpression(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " < " + other.toString$0(0) + '".', null));
  99088. },
  99089. lessThanOrEquals$1(other) {
  99090. return A.throwExpression(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " <= " + other.toString$0(0) + '".', null));
  99091. },
  99092. times$1(other) {
  99093. return A.throwExpression(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " * " + other.toString$0(0) + '".', null));
  99094. },
  99095. modulo$1(other) {
  99096. return A.throwExpression(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " % " + other.toString$0(0) + '".', null));
  99097. },
  99098. plus$1(other) {
  99099. if (other instanceof A.SassString0)
  99100. return new A.SassString0(A.serializeValue0(this, false, true) + other._string0$_text, other._string0$_hasQuotes);
  99101. else if (other instanceof A.SassCalculation0)
  99102. throw A.wrapException(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " + " + other.toString$0(0) + '".', null));
  99103. else
  99104. return new A.SassString0(A.serializeValue0(this, false, true) + A.serializeValue0(other, false, true), false);
  99105. },
  99106. minus$1(other) {
  99107. if (other instanceof A.SassCalculation0)
  99108. throw A.wrapException(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " - " + other.toString$0(0) + '".', null));
  99109. else
  99110. return new A.SassString0(A.serializeValue0(this, false, true) + "-" + A.serializeValue0(other, false, true), false);
  99111. },
  99112. dividedBy$1(other) {
  99113. return new A.SassString0(A.serializeValue0(this, false, true) + "/" + A.serializeValue0(other, false, true), false);
  99114. },
  99115. unaryPlus$0() {
  99116. return new A.SassString0("+" + A.serializeValue0(this, false, true), false);
  99117. },
  99118. unaryMinus$0() {
  99119. return new A.SassString0("-" + A.serializeValue0(this, false, true), false);
  99120. },
  99121. unaryNot$0() {
  99122. return B.SassBoolean_false0;
  99123. },
  99124. withoutSlash$0() {
  99125. return this;
  99126. },
  99127. toString$0(_) {
  99128. return A.serializeValue0(this, true, true);
  99129. }
  99130. };
  99131. A.VariableExpression0.prototype = {
  99132. accept$1$1(visitor) {
  99133. return visitor.visitVariableExpression$1(this);
  99134. },
  99135. accept$1(visitor) {
  99136. return this.accept$1$1(visitor, type$.dynamic);
  99137. },
  99138. toString$0(_) {
  99139. var t1 = this.namespace,
  99140. t2 = this.name;
  99141. return t1 == null ? "$" + t2 : t1 + ".$" + t2;
  99142. },
  99143. $isExpression0: 1,
  99144. $isAstNode0: 1,
  99145. get$span(receiver) {
  99146. return this.span;
  99147. }
  99148. };
  99149. A.VariableDeclaration0.prototype = {
  99150. accept$1$1(visitor) {
  99151. return visitor.visitVariableDeclaration$1(this);
  99152. },
  99153. accept$1(visitor) {
  99154. return this.accept$1$1(visitor, type$.dynamic);
  99155. },
  99156. toString$0(_) {
  99157. var t1 = this.namespace;
  99158. t1 = t1 != null ? "" + (t1 + ".") : "";
  99159. t1 += "$" + this.name + ": " + this.expression.toString$0(0) + ";";
  99160. return t1.charCodeAt(0) == 0 ? t1 : t1;
  99161. },
  99162. $isAstNode0: 1,
  99163. $isStatement0: 1,
  99164. get$span(receiver) {
  99165. return this.span;
  99166. }
  99167. };
  99168. A.WarnRule0.prototype = {
  99169. accept$1$1(visitor) {
  99170. return visitor.visitWarnRule$1(this);
  99171. },
  99172. accept$1(visitor) {
  99173. return this.accept$1$1(visitor, type$.dynamic);
  99174. },
  99175. toString$0(_) {
  99176. return "@warn " + this.expression.toString$0(0) + ";";
  99177. },
  99178. $isAstNode0: 1,
  99179. $isStatement0: 1,
  99180. get$span(receiver) {
  99181. return this.span;
  99182. }
  99183. };
  99184. A.WhileRule0.prototype = {
  99185. accept$1$1(visitor) {
  99186. return visitor.visitWhileRule$1(this);
  99187. },
  99188. accept$1(visitor) {
  99189. return this.accept$1$1(visitor, type$.dynamic);
  99190. },
  99191. toString$0(_) {
  99192. var t1 = this.children;
  99193. return "@while " + this.condition.toString$0(0) + " {" + (t1 && B.JSArray_methods).join$1(t1, " ") + "}";
  99194. },
  99195. get$span(receiver) {
  99196. return this.span;
  99197. }
  99198. };
  99199. (function aliases() {
  99200. var _ = J.LegacyJavaScriptObject.prototype;
  99201. _.super$LegacyJavaScriptObject$toString = _.toString$0;
  99202. _ = A.JsLinkedHashMap.prototype;
  99203. _.super$JsLinkedHashMap$internalContainsKey = _.internalContainsKey$1;
  99204. _.super$JsLinkedHashMap$internalGet = _.internalGet$1;
  99205. _.super$JsLinkedHashMap$internalSet = _.internalSet$2;
  99206. _.super$JsLinkedHashMap$internalRemove = _.internalRemove$1;
  99207. _ = A._BufferingStreamSubscription.prototype;
  99208. _.super$_BufferingStreamSubscription$_add = _._async$_add$1;
  99209. _.super$_BufferingStreamSubscription$_addError = _._addError$2;
  99210. _ = A.ListMixin.prototype;
  99211. _.super$ListMixin$setRange = _.setRange$4;
  99212. _ = A.Iterable.prototype;
  99213. _.super$Iterable$where = _.where$1;
  99214. _.super$Iterable$skipWhile = _.skipWhile$1;
  99215. _ = A.ModifiableCssParentNode.prototype;
  99216. _.super$ModifiableCssParentNode$addChild = _.addChild$1;
  99217. _ = A.SimpleSelector.prototype;
  99218. _.super$SimpleSelector$addSuffix = _.addSuffix$1;
  99219. _.super$SimpleSelector$unify = _.unify$1;
  99220. _.super$SimpleSelector$isSuperselector = _.isSuperselector$1;
  99221. _ = A.Parser.prototype;
  99222. _.super$Parser$silentComment = _.silentComment$0;
  99223. _ = A.StylesheetParser.prototype;
  99224. _.super$StylesheetParser$importArgument = _.importArgument$0;
  99225. _.super$StylesheetParser$namespacedExpression = _.namespacedExpression$2;
  99226. _ = A.Value.prototype;
  99227. _.super$Value$assertMap = _.assertMap$1;
  99228. _.super$Value$plus = _.plus$1;
  99229. _.super$Value$minus = _.minus$1;
  99230. _.super$Value$dividedBy = _.dividedBy$1;
  99231. _ = A.SassNumber.prototype;
  99232. _.super$SassNumber$convertValueToMatch = _.convertValueToMatch$3;
  99233. _.super$SassNumber$coerce = _.coerce$3;
  99234. _.super$SassNumber$coerceValue = _.coerceValue$3;
  99235. _.super$SassNumber$coerceValueToUnit = _.coerceValueToUnit$2;
  99236. _.super$SassNumber$coerceValueToMatch = _.coerceValueToMatch$3;
  99237. _.super$SassNumber$greaterThan = _.greaterThan$1;
  99238. _.super$SassNumber$greaterThanOrEquals = _.greaterThanOrEquals$1;
  99239. _.super$SassNumber$lessThan = _.lessThan$1;
  99240. _.super$SassNumber$lessThanOrEquals = _.lessThanOrEquals$1;
  99241. _.super$SassNumber$modulo = _.modulo$1;
  99242. _.super$SassNumber$plus = _.plus$1;
  99243. _.super$SassNumber$minus = _.minus$1;
  99244. _.super$SassNumber$times = _.times$1;
  99245. _.super$SassNumber$dividedBy = _.dividedBy$1;
  99246. _ = A.AnySelectorVisitor.prototype;
  99247. _.super$AnySelectorVisitor$visitComplexSelector = _.visitComplexSelector$1;
  99248. _ = A.EveryCssVisitor.prototype;
  99249. _.super$EveryCssVisitor$visitCssStyleRule = _.visitCssStyleRule$1;
  99250. _ = A.SourceSpanMixin.prototype;
  99251. _.super$SourceSpanMixin$compareTo = _.compareTo$1;
  99252. _.super$SourceSpanMixin$$eq = _.$eq;
  99253. _ = A.StringScanner.prototype;
  99254. _.super$StringScanner$readChar = _.readChar$0;
  99255. _.super$StringScanner$scanChar = _.scanChar$1;
  99256. _.super$StringScanner$scan = _.scan$1;
  99257. _.super$StringScanner$matches = _.matches$1;
  99258. _ = A.AnySelectorVisitor0.prototype;
  99259. _.super$AnySelectorVisitor$visitComplexSelector0 = _.visitComplexSelector$1;
  99260. _ = A.EveryCssVisitor0.prototype;
  99261. _.super$EveryCssVisitor$visitCssStyleRule0 = _.visitCssStyleRule$1;
  99262. _ = A.ModifiableCssParentNode0.prototype;
  99263. _.super$ModifiableCssParentNode$addChild0 = _.addChild$1;
  99264. _ = A.SassNumber0.prototype;
  99265. _.super$SassNumber$convertToMatch = _.convertToMatch$3;
  99266. _.super$SassNumber$convertValueToMatch0 = _.convertValueToMatch$3;
  99267. _.super$SassNumber$coerce0 = _.coerce$3;
  99268. _.super$SassNumber$coerceValue0 = _.coerceValue$3;
  99269. _.super$SassNumber$coerceValueToUnit0 = _.coerceValueToUnit$2;
  99270. _.super$SassNumber$coerceToMatch = _.coerceToMatch$3;
  99271. _.super$SassNumber$coerceValueToMatch0 = _.coerceValueToMatch$3;
  99272. _.super$SassNumber$greaterThan0 = _.greaterThan$1;
  99273. _.super$SassNumber$greaterThanOrEquals0 = _.greaterThanOrEquals$1;
  99274. _.super$SassNumber$lessThan0 = _.lessThan$1;
  99275. _.super$SassNumber$lessThanOrEquals0 = _.lessThanOrEquals$1;
  99276. _.super$SassNumber$modulo0 = _.modulo$1;
  99277. _.super$SassNumber$plus0 = _.plus$1;
  99278. _.super$SassNumber$minus0 = _.minus$1;
  99279. _.super$SassNumber$times0 = _.times$1;
  99280. _.super$SassNumber$dividedBy0 = _.dividedBy$1;
  99281. _ = A.Parser1.prototype;
  99282. _.super$Parser$silentComment0 = _.silentComment$0;
  99283. _ = A.SimpleSelector0.prototype;
  99284. _.super$SimpleSelector$addSuffix0 = _.addSuffix$1;
  99285. _.super$SimpleSelector$unify0 = _.unify$1;
  99286. _.super$SimpleSelector$isSuperselector0 = _.isSuperselector$1;
  99287. _ = A.StylesheetParser0.prototype;
  99288. _.super$StylesheetParser$importArgument0 = _.importArgument$0;
  99289. _.super$StylesheetParser$namespacedExpression0 = _.namespacedExpression$2;
  99290. _ = A.Value0.prototype;
  99291. _.super$Value$assertMap0 = _.assertMap$1;
  99292. _.super$Value$plus0 = _.plus$1;
  99293. _.super$Value$minus0 = _.minus$1;
  99294. _.super$Value$dividedBy0 = _.dividedBy$1;
  99295. })();
  99296. (function installTearOffs() {
  99297. var _static_2 = hunkHelpers._static_2,
  99298. _instance_1_i = hunkHelpers._instance_1i,
  99299. _instance_1_u = hunkHelpers._instance_1u,
  99300. _static_1 = hunkHelpers._static_1,
  99301. _static_0 = hunkHelpers._static_0,
  99302. _static = hunkHelpers.installStaticTearOff,
  99303. _instance = hunkHelpers.installInstanceTearOff,
  99304. _instance_2_u = hunkHelpers._instance_2u,
  99305. _instance_0_i = hunkHelpers._instance_0i,
  99306. _instance_0_u = hunkHelpers._instance_0u;
  99307. _static_2(J, "_interceptors_JSArray__compareAny$closure", "JSArray__compareAny", 183);
  99308. _instance_1_i(J.JSArray.prototype, "get$contains", "contains$1", 9);
  99309. _instance_1_i(A._CastIterableBase.prototype, "get$contains", "contains$1", 9);
  99310. _instance_1_u(A.CastMap.prototype, "get$containsKey", "containsKey$1", 9);
  99311. _static_1(A, "_js_helper_GeneralConstantMap__constantMapHashCode$closure", "GeneralConstantMap__constantMapHashCode", 107);
  99312. _instance_1_u(A.ConstantStringMap.prototype, "get$containsKey", "containsKey$1", 9);
  99313. _instance_1_u(A.GeneralConstantMap.prototype, "get$containsKey", "containsKey$1", 9);
  99314. _instance_1_u(A.JsLinkedHashMap.prototype, "get$containsKey", "containsKey$1", 9);
  99315. _static_1(A, "async__AsyncRun__scheduleImmediateJsOverride$closure", "_AsyncRun__scheduleImmediateJsOverride", 106);
  99316. _static_1(A, "async__AsyncRun__scheduleImmediateWithSetImmediate$closure", "_AsyncRun__scheduleImmediateWithSetImmediate", 106);
  99317. _static_1(A, "async__AsyncRun__scheduleImmediateWithTimer$closure", "_AsyncRun__scheduleImmediateWithTimer", 106);
  99318. _static_0(A, "async___startMicrotaskLoop$closure", "_startMicrotaskLoop", 0);
  99319. _static_1(A, "async___nullDataHandler$closure", "_nullDataHandler", 111);
  99320. _static_2(A, "async___nullErrorHandler$closure", "_nullErrorHandler", 72);
  99321. _static_0(A, "async___nullDoneHandler$closure", "_nullDoneHandler", 0);
  99322. _static(A, "async___rootHandleUncaughtError$closure", 5, null, ["call$5"], ["_rootHandleUncaughtError"], 559, 0);
  99323. _static(A, "async___rootRun$closure", 4, null, ["call$1$4", "call$4"], ["_rootRun", function($self, $parent, zone, f) {
  99324. return A._rootRun($self, $parent, zone, f, type$.dynamic);
  99325. }], 560, 1);
  99326. _static(A, "async___rootRunUnary$closure", 5, null, ["call$2$5", "call$5"], ["_rootRunUnary", function($self, $parent, zone, f, arg) {
  99327. return A._rootRunUnary($self, $parent, zone, f, arg, type$.dynamic, type$.dynamic);
  99328. }], 561, 1);
  99329. _static(A, "async___rootRunBinary$closure", 6, null, ["call$3$6", "call$6"], ["_rootRunBinary", function($self, $parent, zone, f, arg1, arg2) {
  99330. return A._rootRunBinary($self, $parent, zone, f, arg1, arg2, type$.dynamic, type$.dynamic, type$.dynamic);
  99331. }], 562, 1);
  99332. _static(A, "async___rootRegisterCallback$closure", 4, null, ["call$1$4", "call$4"], ["_rootRegisterCallback", function($self, $parent, zone, f) {
  99333. return A._rootRegisterCallback($self, $parent, zone, f, type$.dynamic);
  99334. }], 563, 0);
  99335. _static(A, "async___rootRegisterUnaryCallback$closure", 4, null, ["call$2$4", "call$4"], ["_rootRegisterUnaryCallback", function($self, $parent, zone, f) {
  99336. return A._rootRegisterUnaryCallback($self, $parent, zone, f, type$.dynamic, type$.dynamic);
  99337. }], 564, 0);
  99338. _static(A, "async___rootRegisterBinaryCallback$closure", 4, null, ["call$3$4", "call$4"], ["_rootRegisterBinaryCallback", function($self, $parent, zone, f) {
  99339. return A._rootRegisterBinaryCallback($self, $parent, zone, f, type$.dynamic, type$.dynamic, type$.dynamic);
  99340. }], 565, 0);
  99341. _static(A, "async___rootErrorCallback$closure", 5, null, ["call$5"], ["_rootErrorCallback"], 566, 0);
  99342. _static(A, "async___rootScheduleMicrotask$closure", 4, null, ["call$4"], ["_rootScheduleMicrotask"], 567, 0);
  99343. _static(A, "async___rootCreateTimer$closure", 5, null, ["call$5"], ["_rootCreateTimer"], 568, 0);
  99344. _static(A, "async___rootCreatePeriodicTimer$closure", 5, null, ["call$5"], ["_rootCreatePeriodicTimer"], 569, 0);
  99345. _static(A, "async___rootPrint$closure", 4, null, ["call$4"], ["_rootPrint"], 570, 0);
  99346. _static_1(A, "async___printToZone$closure", "_printToZone", 103);
  99347. _static(A, "async___rootFork$closure", 5, null, ["call$5"], ["_rootFork"], 571, 0);
  99348. _instance(A._AsyncCompleter.prototype, "get$complete", 0, 0, function() {
  99349. return [null];
  99350. }, ["call$1", "call$0"], ["complete$1", "complete$0"], 227, 0, 0);
  99351. _instance_2_u(A._Future.prototype, "get$_completeError", "_completeError$2", 72);
  99352. var _;
  99353. _instance_1_i(_ = A._StreamController.prototype, "get$add", "add$1", 27);
  99354. _instance(_, "get$addError", 0, 1, function() {
  99355. return [null];
  99356. }, ["call$2", "call$1"], ["addError$2", "addError$1"], 179, 0, 0);
  99357. _instance_0_i(_, "get$close", "close$0", 385);
  99358. _instance_1_u(_, "get$_async$_add", "_async$_add$1", 27);
  99359. _instance_2_u(_, "get$_addError", "_addError$2", 72);
  99360. _instance_0_u(_, "get$_close", "_close$0", 0);
  99361. _instance_0_u(_ = A._ControllerSubscription.prototype, "get$_async$_onPause", "_async$_onPause$0", 0);
  99362. _instance_0_u(_, "get$_async$_onResume", "_async$_onResume$0", 0);
  99363. _instance(_ = A._BufferingStreamSubscription.prototype, "get$pause", 1, 0, null, ["call$1", "call$0"], ["pause$1", "pause$0"], 375, 0, 0);
  99364. _instance_0_i(_, "get$resume", "resume$0", 0);
  99365. _instance_0_u(_, "get$_async$_onPause", "_async$_onPause$0", 0);
  99366. _instance_0_u(_, "get$_async$_onResume", "_async$_onResume$0", 0);
  99367. _instance_1_u(_ = A._StreamIterator.prototype, "get$_onData", "_onData$1", 27);
  99368. _instance_2_u(_, "get$_onError", "_onError$2", 72);
  99369. _instance_0_u(_, "get$_onDone", "_onDone$0", 0);
  99370. _instance_0_u(_ = A._ForwardingStreamSubscription.prototype, "get$_async$_onPause", "_async$_onPause$0", 0);
  99371. _instance_0_u(_, "get$_async$_onResume", "_async$_onResume$0", 0);
  99372. _instance_1_u(_, "get$_handleData", "_handleData$1", 27);
  99373. _instance_2_u(_, "get$_handleError", "_handleError$2", 372);
  99374. _instance_0_u(_, "get$_handleDone", "_handleDone$0", 0);
  99375. _static_2(A, "collection___defaultEquals$closure", "_defaultEquals", 161);
  99376. _static_1(A, "collection___defaultHashCode$closure", "_defaultHashCode", 107);
  99377. _static_2(A, "collection_ListMixin__compareAny$closure", "ListMixin__compareAny", 183);
  99378. _instance_1_u(A._HashMap.prototype, "get$containsKey", "containsKey$1", 9);
  99379. _instance_1_u(A._LinkedCustomHashMap.prototype, "get$containsKey", "containsKey$1", 9);
  99380. _instance(_ = A._LinkedHashSet.prototype, "get$_newSimilarSet", 0, 0, null, ["call$1$0", "call$0"], ["_newSimilarSet$1$0", "_newSimilarSet$0"], 145, 0, 0);
  99381. _instance_1_i(_, "get$contains", "contains$1", 9);
  99382. _instance_1_i(_, "get$add", "add$1", 9);
  99383. _instance(A._LinkedIdentityHashSet.prototype, "get$_newSimilarSet", 0, 0, null, ["call$1$0", "call$0"], ["_newSimilarSet$1$0", "_newSimilarSet$0"], 145, 0, 0);
  99384. _instance_1_u(A.MapMixin.prototype, "get$containsKey", "containsKey$1", 9);
  99385. _instance_1_u(A.MapView.prototype, "get$containsKey", "containsKey$1", 9);
  99386. _instance_1_i(A._UnmodifiableSet.prototype, "get$contains", "contains$1", 9);
  99387. _static_1(A, "convert___defaultToEncodable$closure", "_defaultToEncodable", 98);
  99388. _static_1(A, "core__identityHashCode$closure", "identityHashCode", 107);
  99389. _static_2(A, "core__identical$closure", "identical", 161);
  99390. _static_1(A, "core_Uri_decodeComponent$closure", "Uri_decodeComponent", 5);
  99391. _instance_1_i(A.Iterable.prototype, "get$contains", "contains$1", 9);
  99392. _instance_1_i(A.StringBuffer.prototype, "get$write", "write$1", 27);
  99393. _static(A, "math0__max$closure", 2, null, ["call$1$2", "call$2"], ["max", function(a, b) {
  99394. return A.max(a, b, type$.num);
  99395. }], 573, 1);
  99396. _instance_1_u(_ = A.StreamCompleter.prototype, "get$setSourceStream", "setSourceStream$1", 27);
  99397. _instance(_, "get$setError", 0, 1, function() {
  99398. return [null];
  99399. }, ["call$2", "call$1"], ["setError$2", "setError$1"], 179, 0, 0);
  99400. _instance_0_u(_ = A.StreamGroup.prototype, "get$_onListen", "_onListen$0", 0);
  99401. _instance_0_u(_, "get$_onPause", "_onPause$0", 0);
  99402. _instance_0_u(_, "get$_onResume", "_onResume$0", 0);
  99403. _instance_0_u(_, "get$_onCancel", "_onCancel$0", 226);
  99404. _instance_0_i(A.ReplAdapter.prototype, "get$exit", "exit$0", 0);
  99405. _instance_1_i(A.EmptyUnmodifiableSet.prototype, "get$contains", "contains$1", 9);
  99406. _instance_1_i(A._DelegatingIterableBase.prototype, "get$contains", "contains$1", 9);
  99407. _instance_1_i(A.MapKeySet.prototype, "get$contains", "contains$1", 9);
  99408. _instance_1_u(A._IsInvisibleVisitor0.prototype, "get$visitComplexSelector", "visitComplexSelector$1", 16);
  99409. _instance_1_u(A._IsBogusVisitor.prototype, "get$visitComplexSelector", "visitComplexSelector$1", 16);
  99410. _instance_1_u(A._IsUselessVisitor.prototype, "get$visitComplexSelector", "visitComplexSelector$1", 16);
  99411. _instance_1_u(_ = A.SelectorList.prototype, "get$_complexContainsParentSelector", "_complexContainsParentSelector$1", 16);
  99412. _instance_1_u(_, "get$isSuperselector", "isSuperselector$1", 62);
  99413. _instance_1_u(A.PseudoSelector.prototype, "get$isSuperselector", "isSuperselector$1", 14);
  99414. _instance_1_u(A.SimpleSelector.prototype, "get$isSuperselector", "isSuperselector$1", 14);
  99415. _instance_1_u(A.TypeSelector.prototype, "get$isSuperselector", "isSuperselector$1", 14);
  99416. _instance_1_u(A.UniversalSelector.prototype, "get$isSuperselector", "isSuperselector$1", 14);
  99417. _instance_1_u(A.EmptyExtensionStore.prototype, "get$addExtensions", "addExtensions$1", 248);
  99418. _instance_1_u(A.ExtensionStore.prototype, "get$addExtensions", "addExtensions$1", 248);
  99419. _static_1(A, "functions___isUnique$closure", "_isUnique", 14);
  99420. _static_1(A, "color0___opacify$closure", "_opacify", 24);
  99421. _static_1(A, "color0___transparentize$closure", "_transparentize", 24);
  99422. _instance_0_u(_ = A.Parser.prototype, "get$whitespace", "whitespace$0", 0);
  99423. _instance_0_u(_, "get$loudComment", "loudComment$0", 0);
  99424. _instance_0_u(_, "get$string", "string$0", 30);
  99425. _instance_0_u(A.SassParser.prototype, "get$loudComment", "loudComment$0", 0);
  99426. _instance(_ = A.StylesheetParser.prototype, "get$_statement", 0, 0, null, ["call$1$root", "call$0"], ["_statement$1$root", "_statement$0"], 343, 0, 0);
  99427. _instance_0_u(_, "get$_declarationChild", "_declarationChild$0", 121);
  99428. _instance_0_u(_, "get$_functionChild", "_functionChild$0", 121);
  99429. _instance(_, "get$_expression", 0, 0, null, ["call$3$bracketList$singleEquals$until", "call$0", "call$2$singleEquals$until", "call$1$bracketList", "call$1$until"], ["_expression$3$bracketList$singleEquals$until", "_expression$0", "_expression$2$singleEquals$until", "_expression$1$bracketList", "_expression$1$until"], 342, 0, 0);
  99430. _instance_1_u(A.LimitedMapView.prototype, "get$containsKey", "containsKey$1", 9);
  99431. _instance_1_u(A.MergedMapView.prototype, "get$containsKey", "containsKey$1", 9);
  99432. _instance(A.MultiSpan.prototype, "get$message", 1, 1, function() {
  99433. return {color: null};
  99434. }, ["call$2$color", "call$1"], ["message$2$color", "message$1"], 132, 0, 0);
  99435. _instance_1_i(A.NoSourceMapBuffer.prototype, "get$write", "write$1", 27);
  99436. _instance_1_u(A.PrefixedMapView.prototype, "get$containsKey", "containsKey$1", 9);
  99437. _instance_1_u(A.PublicMemberMapView.prototype, "get$containsKey", "containsKey$1", 9);
  99438. _instance_1_i(A.SourceMapBuffer.prototype, "get$write", "write$1", 27);
  99439. _instance_1_u(A.UnprefixedMapView.prototype, "get$containsKey", "containsKey$1", 9);
  99440. _static_1(A, "utils__isPublic$closure", "isPublic", 8);
  99441. _static_1(A, "calculation_SassCalculation__simplify$closure", "SassCalculation__simplify", 203);
  99442. _instance_1_u(A.AnySelectorVisitor.prototype, "get$visitComplexSelector", "visitComplexSelector$1", 16);
  99443. _instance(_ = A._EvaluateVisitor0.prototype, "get$_async_evaluate$_interpolationToValue", 0, 1, null, ["call$3$trim$warnForColor", "call$1", "call$2$warnForColor"], ["_async_evaluate$_interpolationToValue$3$trim$warnForColor", "_async_evaluate$_interpolationToValue$1", "_async_evaluate$_interpolationToValue$2$warnForColor"], 304, 0, 0);
  99444. _instance_1_u(_, "get$_async_evaluate$_expressionNode", "_async_evaluate$_expressionNode$1", 214);
  99445. _instance(_ = A._EvaluateVisitor.prototype, "get$_interpolationToValue", 0, 1, null, ["call$3$trim$warnForColor", "call$1", "call$2$warnForColor"], ["_interpolationToValue$3$trim$warnForColor", "_interpolationToValue$1", "_interpolationToValue$2$warnForColor"], 272, 0, 0);
  99446. _instance_1_u(_, "get$_expressionNode", "_expressionNode$1", 214);
  99447. _instance_1_u(_ = A.RecursiveStatementVisitor.prototype, "get$visitContentBlock", "visitContentBlock$1", 264);
  99448. _instance_1_u(_, "get$visitChildren", "visitChildren$1", 265);
  99449. _instance_1_u(_ = A._SerializeVisitor.prototype, "get$_visitMediaQuery", "_visitMediaQuery$1", 266);
  99450. _instance_1_u(_, "get$_writeCalculationValue", "_writeCalculationValue$1", 118);
  99451. _instance_1_u(_ = A.StatementSearchVisitor.prototype, "get$visitContentBlock", "visitContentBlock$1", "StatementSearchVisitor.T?(ContentBlock)");
  99452. _instance_1_u(_, "get$visitChildren", "visitChildren$1", "StatementSearchVisitor.T?(List<Statement>)");
  99453. _instance(A.SourceSpanMixin.prototype, "get$message", 1, 1, function() {
  99454. return {color: null};
  99455. }, ["call$2$color", "call$1"], ["message$2$color", "message$1"], 132, 0, 0);
  99456. _static_1(A, "frame_Frame___parseVM_tearOff$closure", "Frame___parseVM_tearOff", 93);
  99457. _static_1(A, "frame_Frame___parseV8_tearOff$closure", "Frame___parseV8_tearOff", 93);
  99458. _static_1(A, "frame_Frame___parseFirefox_tearOff$closure", "Frame___parseFirefox_tearOff", 93);
  99459. _static_1(A, "frame_Frame___parseFriendly_tearOff$closure", "Frame___parseFriendly_tearOff", 93);
  99460. _static_1(A, "trace_Trace___parseVM_tearOff$closure", "Trace___parseVM_tearOff", 181);
  99461. _static_1(A, "trace_Trace___parseFriendly_tearOff$closure", "Trace___parseFriendly_tearOff", 181);
  99462. _static(A, "from_handlers__TransformByHandlers__defaultHandleError$closure", 3, null, ["call$1$3", "call$3"], ["TransformByHandlers__defaultHandleError", function(error, stackTrace, sink) {
  99463. return A.TransformByHandlers__defaultHandleError(error, stackTrace, sink, type$.dynamic);
  99464. }], 577, 0);
  99465. _static(A, "rate_limit___collect$closure", 2, null, ["call$1$2", "call$2"], ["_collect", function($event, soFar) {
  99466. return A._collect($event, soFar, type$.dynamic);
  99467. }], 578, 0);
  99468. _instance_1_u(A.AnySelectorVisitor0.prototype, "get$visitComplexSelector", "visitComplexSelector$1", 15);
  99469. _instance(_ = A._EvaluateVisitor2.prototype, "get$_async_evaluate0$_interpolationToValue", 0, 1, null, ["call$3$trim$warnForColor", "call$1", "call$2$warnForColor"], ["_async_evaluate0$_interpolationToValue$3$trim$warnForColor", "_async_evaluate0$_interpolationToValue$1", "_async_evaluate0$_interpolationToValue$2$warnForColor"], 306, 0, 0);
  99470. _instance_1_u(_, "get$_async_evaluate0$_expressionNode", "_async_evaluate0$_expressionNode$1", 210);
  99471. _static_1(A, "calculation0_SassCalculation__simplify$closure", "SassCalculation__simplify0", 203);
  99472. _static_1(A, "color2___opacify$closure", "_opacify0", 23);
  99473. _static_1(A, "color2___transparentize$closure", "_transparentize0", 23);
  99474. _static(A, "compile__compile$closure", 1, function() {
  99475. return [null];
  99476. }, ["call$2", "call$1"], ["compile0", function(path) {
  99477. return A.compile0(path, null);
  99478. }], 579, 0);
  99479. _static(A, "compile__compileString$closure", 1, function() {
  99480. return [null];
  99481. }, ["call$2", "call$1"], ["compileString0", function(text) {
  99482. return A.compileString0(text, null);
  99483. }], 580, 0);
  99484. _static(A, "compile__compileAsync$closure", 1, function() {
  99485. return [null];
  99486. }, ["call$2", "call$1"], ["compileAsync1", function(path) {
  99487. return A.compileAsync1(path, null);
  99488. }], 581, 0);
  99489. _static(A, "compile__compileStringAsync$closure", 1, function() {
  99490. return [null];
  99491. }, ["call$2", "call$1"], ["compileStringAsync1", function(text) {
  99492. return A.compileStringAsync1(text, null);
  99493. }], 582, 0);
  99494. _static_1(A, "compile___parseImporter$closure", "_parseImporter0", 583);
  99495. _instance_1_u(A.EmptyExtensionStore0.prototype, "get$addExtensions", "addExtensions$1", 250);
  99496. _instance(_ = A._EvaluateVisitor1.prototype, "get$_evaluate0$_interpolationToValue", 0, 1, null, ["call$3$trim$warnForColor", "call$1", "call$2$warnForColor"], ["_evaluate0$_interpolationToValue$3$trim$warnForColor", "_evaluate0$_interpolationToValue$1", "_evaluate0$_interpolationToValue$2$warnForColor"], 392, 0, 0);
  99497. _instance_1_u(_, "get$_evaluate0$_expressionNode", "_evaluate0$_expressionNode$1", 210);
  99498. _instance_1_u(A.ExtensionStore0.prototype, "get$addExtensions", "addExtensions$1", 250);
  99499. _static_1(A, "functions0___isUnique$closure", "_isUnique0", 13);
  99500. _static_1(A, "immutable__jsToDartList$closure", "jsToDartList", 584);
  99501. _static_2(A, "legacy__render$closure", "render", 585);
  99502. _static_1(A, "legacy__renderSync$closure", "renderSync", 586);
  99503. _instance_1_u(A.LimitedMapView0.prototype, "get$containsKey", "containsKey$1", 9);
  99504. _instance_1_u(_ = A.SelectorList0.prototype, "get$_list2$_complexContainsParentSelector", "_list2$_complexContainsParentSelector$1", 15);
  99505. _instance_1_u(_, "get$isSuperselector", "isSuperselector$1", 70);
  99506. _instance_1_u(A.MergedMapView0.prototype, "get$containsKey", "containsKey$1", 9);
  99507. _instance(A.MultiSpan0.prototype, "get$message", 1, 1, function() {
  99508. return {color: null};
  99509. }, ["call$2$color", "call$1"], ["message$2$color", "message$1"], 132, 0, 0);
  99510. _instance_1_i(A.NoSourceMapBuffer0.prototype, "get$write", "write$1", 27);
  99511. _instance_0_u(_ = A.Parser1.prototype, "get$whitespace", "whitespace$0", 0);
  99512. _instance_0_u(_, "get$loudComment", "loudComment$0", 0);
  99513. _instance_0_u(_, "get$string", "string$0", 30);
  99514. _instance_1_u(A.PrefixedMapView0.prototype, "get$containsKey", "containsKey$1", 9);
  99515. _instance_1_u(A.PseudoSelector0.prototype, "get$isSuperselector", "isSuperselector$1", 13);
  99516. _instance_1_u(A.PublicMemberMapView0.prototype, "get$containsKey", "containsKey$1", 9);
  99517. _static_1(A, "sass__main$closure", "main0", 587);
  99518. _instance_0_u(A.SassParser0.prototype, "get$loudComment", "loudComment$0", 0);
  99519. _instance_1_u(A._IsInvisibleVisitor2.prototype, "get$visitComplexSelector", "visitComplexSelector$1", 15);
  99520. _instance_1_u(A._IsBogusVisitor0.prototype, "get$visitComplexSelector", "visitComplexSelector$1", 15);
  99521. _instance_1_u(A._IsUselessVisitor0.prototype, "get$visitComplexSelector", "visitComplexSelector$1", 15);
  99522. _instance_1_u(_ = A._SerializeVisitor0.prototype, "get$_serialize0$_visitMediaQuery", "_serialize0$_visitMediaQuery$1", 503);
  99523. _instance_1_u(_, "get$_serialize0$_writeCalculationValue", "_serialize0$_writeCalculationValue$1", 118);
  99524. _instance_1_u(A.SimpleSelector0.prototype, "get$isSuperselector", "isSuperselector$1", 13);
  99525. _instance_1_i(A.SourceMapBuffer0.prototype, "get$write", "write$1", 27);
  99526. _instance_1_u(_ = A.StatementSearchVisitor0.prototype, "get$visitContentBlock", "visitContentBlock$1", "StatementSearchVisitor0.T?(ContentBlock0)");
  99527. _instance_1_u(_, "get$visitChildren", "visitChildren$1", "StatementSearchVisitor0.T?(List<Statement0>)");
  99528. _instance(_ = A.StylesheetParser0.prototype, "get$_stylesheet0$_statement", 0, 0, null, ["call$1$root", "call$0"], ["_stylesheet0$_statement$1$root", "_stylesheet0$_statement$0"], 520, 0, 0);
  99529. _instance_0_u(_, "get$_stylesheet0$_declarationChild", "_stylesheet0$_declarationChild$0", 126);
  99530. _instance_0_u(_, "get$_stylesheet0$_functionChild", "_stylesheet0$_functionChild$0", 126);
  99531. _instance_1_u(A.TypeSelector0.prototype, "get$isSuperselector", "isSuperselector$1", 13);
  99532. _instance_1_u(A.UniversalSelector0.prototype, "get$isSuperselector", "isSuperselector$1", 13);
  99533. _instance_1_u(A.UnprefixedMapView0.prototype, "get$containsKey", "containsKey$1", 9);
  99534. _static_1(A, "utils1__jsToDartUrl$closure", "jsToDartUrl", 588);
  99535. _static_1(A, "utils1__dartToJSUrl$closure", "dartToJSUrl", 589);
  99536. _static_1(A, "utils0__isPublic$closure", "isPublic0", 8);
  99537. _static(A, "path__absolute$closure", 1, function() {
  99538. return [null, null, null, null, null, null, null, null, null, null, null, null, null, null];
  99539. }, ["call$15", "call$1", "call$2", "call$3", "call$4", "call$6", "call$5"], ["absolute", function(part1) {
  99540. return A.absolute(part1, null, null, null, null, null, null, null, null, null, null, null, null, null, null);
  99541. }, function(part1, part2) {
  99542. return A.absolute(part1, part2, null, null, null, null, null, null, null, null, null, null, null, null, null);
  99543. }, function(part1, part2, part3) {
  99544. return A.absolute(part1, part2, part3, null, null, null, null, null, null, null, null, null, null, null, null);
  99545. }, function(part1, part2, part3, part4) {
  99546. return A.absolute(part1, part2, part3, part4, null, null, null, null, null, null, null, null, null, null, null);
  99547. }, function(part1, part2, part3, part4, part5, part6) {
  99548. return A.absolute(part1, part2, part3, part4, part5, part6, null, null, null, null, null, null, null, null, null);
  99549. }, function(part1, part2, part3, part4, part5) {
  99550. return A.absolute(part1, part2, part3, part4, part5, null, null, null, null, null, null, null, null, null, null);
  99551. }], 590, 0);
  99552. _static_1(A, "path__prettyUri$closure", "prettyUri", 100);
  99553. _static_1(A, "character__isWhitespace$closure", "isWhitespace", 32);
  99554. _static_1(A, "character__isNewline$closure", "isNewline", 32);
  99555. _static_1(A, "character__isHex$closure", "isHex", 32);
  99556. _static_2(A, "number0__fuzzyLessThan$closure", "fuzzyLessThan", 43);
  99557. _static_2(A, "number0__fuzzyLessThanOrEquals$closure", "fuzzyLessThanOrEquals", 43);
  99558. _static_2(A, "number0__fuzzyGreaterThan$closure", "fuzzyGreaterThan", 43);
  99559. _static_2(A, "number0__fuzzyGreaterThanOrEquals$closure", "fuzzyGreaterThanOrEquals", 43);
  99560. _static_2(A, "number0__moduloLikeSass$closure", "moduloLikeSass", 54);
  99561. _static_1(A, "character0__isWhitespace$closure", "isWhitespace0", 32);
  99562. _static_1(A, "character0__isNewline$closure", "isNewline0", 32);
  99563. _static_1(A, "character0__isHex$closure", "isHex0", 32);
  99564. _static_2(A, "number2__fuzzyLessThan$closure", "fuzzyLessThan0", 43);
  99565. _static_2(A, "number2__fuzzyLessThanOrEquals$closure", "fuzzyLessThanOrEquals0", 43);
  99566. _static_2(A, "number2__fuzzyGreaterThan$closure", "fuzzyGreaterThan0", 43);
  99567. _static_2(A, "number2__fuzzyGreaterThanOrEquals$closure", "fuzzyGreaterThanOrEquals0", 43);
  99568. _static_1(A, "number2__fuzzyRound$closure", "fuzzyRound0", 592);
  99569. _static_2(A, "number2__moduloLikeSass$closure", "moduloLikeSass0", 54);
  99570. _static_1(A, "value0__wrapValue$closure", "wrapValue", 395);
  99571. })();
  99572. (function inheritance() {
  99573. var _mixin = hunkHelpers.mixin,
  99574. _inherit = hunkHelpers.inherit,
  99575. _inheritMany = hunkHelpers.inheritMany;
  99576. _inherit(A.Object, null);
  99577. _inheritMany(A.Object, [A.JS_CONST, J.Interceptor, J.ArrayIterator, A.Iterable, A.CastIterator, A.Closure, A.MapMixin, A.Error, A._ListBase_Object_ListMixin, A.SentinelValue, A.ListIterator, A.Iterator, A.ExpandIterator, A.EmptyIterator, A.FollowedByIterator, A.WhereTypeIterator, A.FixedLengthListMixin, A.UnmodifiableListMixin, A.Symbol, A.MapView, A.ConstantMap, A.JSInvocationMirror, A.TypeErrorDecoder, A.NullThrownFromJavaScriptException, A.ExceptionAndStackTrace, A._StackTrace, A._Required, A.LinkedHashMapCell, A.LinkedHashMapKeyIterator, A.JSSyntaxRegExp, A._MatchImplementation, A._AllMatchesIterator, A.StringMatch, A._StringAllMatchesIterator, A._Cell, A.Rti, A._FunctionParameters, A._Type, A._TimerImpl, A._AsyncAwaitCompleter, A._IterationMarker, A._SyncStarIterator, A.AsyncError, A._Completer, A._FutureListener, A._Future, A._AsyncCallbackEntry, A.Stream, A.StreamTransformerBase, A._StreamController, A._SyncStreamControllerDispatch, A._AsyncStreamControllerDispatch, A._BufferingStreamSubscription, A._AddStreamState, A._DelayedEvent, A._DelayedDone, A._PendingEvents, A._StreamIterator, A._ZoneFunction, A._ZoneSpecification, A._ZoneDelegate, A._Zone, A._HashMapKeyIterator, A.__SetBase_Object_SetMixin, A._LinkedHashSetCell, A._LinkedHashSetIterator, A.ListMixin, A._MapBaseValueIterator, A._UnmodifiableMapMixin, A._ListQueueIterator, A.SetMixin, A._UnmodifiableSetMixin, A.Codec, A._Base64Encoder, A.ChunkedConversionSink, A._JsonStringifier, A.StringConversionSinkMixin, A._Utf8Encoder, A._Utf8Decoder, A.DateTime, A.Duration, A._Enum, A.OutOfMemoryError, A.StackOverflowError, A._Exception, A.FormatException, A.MapEntry, A.Null, A._StringStackTrace, A.RuneIterator, A.StringBuffer, A._Uri, A.UriData, A._SimpleUri, A.Expando, A._JSRandom, A.ArgParser, A.ArgResults, A.Option, A.OptionType, A.Parser0, A._Usage, A.ErrorResult, A.ValueResult, A.StreamCompleter, A.StreamGroup, A._StreamGroupState, A.StreamQueue, A._NextRequest, A.Repl, A.ReplAdapter, A.DefaultEquality, A.IterableEquality, A.ListEquality, A._MapEntry, A.MapEquality, A._QueueList_Object_ListMixin, A._DelegatingIterableBase, A.UnmodifiableSetMixin, A.Context, A._PathDirection, A._PathRelation, A.Style, A.ParsedPath, A.PathException, A.CssMediaQuery, A._SingletonCssMediaQueryMergeResult, A.MediaQuerySuccessfulMergeResult, A.AstNode, A.ModifiableCssValue, A.__IsInvisibleVisitor_Object_EveryCssVisitor, A.CssValue, A._FakeAstNode, A.Argument, A.ArgumentDeclaration, A.ArgumentInvocation, A.AtRootQuery, A.ConfiguredVariable, A.BinaryOperationExpression, A.BooleanExpression, A.CalculationExpression, A.ColorExpression, A.FunctionExpression, A.IfExpression, A.InterpolatedFunctionExpression, A.ListExpression, A.MapExpression, A.NullExpression, A.NumberExpression, A.ParenthesizedExpression, A.SelectorExpression, A.StringExpression, A.SupportsExpression, A.UnaryOperationExpression, A.ValueExpression, A.VariableExpression, A.DynamicImport, A.StaticImport, A.Interpolation, A.ParentStatement, A.ContentRule, A.DebugRule, A.ErrorRule, A.ExtendRule, A.ForwardRule, A.IfRule, A.IfRuleClause, A.ImportRule, A.IncludeRule, A.LoudComment, A.__HasContentVisitor_Object_StatementSearchVisitor, A.ReturnRule, A.SilentComment, A.UseRule, A.VariableDeclaration, A.WarnRule, A.SupportsAnything, A.SupportsDeclaration, A.SupportsFunction, A.SupportsInterpolation, A.SupportsNegation, A.SupportsOperation, A.Selector, A.__IsInvisibleVisitor_Object_AnySelectorVisitor, A.__IsBogusVisitor_Object_AnySelectorVisitor, A.__IsUselessVisitor_Object_AnySelectorVisitor, A.ComplexSelectorComponent, A.QualifiedName, A.AsyncEnvironment, A._EnvironmentModule0, A.AsyncImportCache, A.AsyncBuiltInCallable, A.BuiltInCallable, A.PlainCssCallable, A.UserDefinedCallable, A.CompileResult, A.Configuration, A.ConfiguredValue, A.Environment, A._EnvironmentModule, A.SourceSpanException, A.SassScriptException, A.ExecutableOptions, A.UsageException, A._Watcher, A.EmptyExtensionStore, A.Extension, A.Extender, A.ExtensionStore, A.ImportCache, A.AsyncImporter, A.ImporterResult, A.InterpolationBuffer, A.FileSystemException, A.Stderr, A._QuietLogger, A.StderrLogger, A.TerseLogger, A.TrackingLogger, A.BuiltInModule, A.ForwardedModuleView, A.ShadowedModuleView, A.Parser, A.StylesheetGraph, A.StylesheetNode, A.MultiDirWatcher, A.MultiSpan, A.NoSourceMapBuffer, A.SourceMapBuffer, A.Value, A.CalculationOperation, A.CalculationInterpolation, A._ColorFormatEnum, A.SpanColorFormat, A.AnySelectorVisitor, A._EvaluateVisitor0, A._ImportedCssVisitor0, A.EvaluateResult, A._EvaluationContext0, A._ArgumentResults0, A._LoadedStylesheet0, A._CloneCssVisitor, A.Evaluator, A._EvaluateVisitor, A._ImportedCssVisitor, A._EvaluationContext, A._ArgumentResults, A._LoadedStylesheet, A.EveryCssVisitor, A.__FindDependenciesVisitor_Object_RecursiveStatementVisitor, A.RecursiveStatementVisitor, A._SerializeVisitor, A.SerializeResult, A.StatementSearchVisitor, A.Entry, A.Mapping, A.TargetLineEntry, A.TargetEntry, A.SourceFile, A.SourceLocationMixin, A.SourceSpanMixin, A.Highlighter, A._Highlight, A._Line, A.SourceLocation, A.Chain, A.Frame, A.LazyTrace, A.Trace, A.UnparsedFrame, A.StringScanner, A._SpanScannerState, A.AsciiGlyphSet, A.UnicodeGlyphSet, A.Tuple2, A.Tuple3, A.Tuple4, A.WatchEvent, A.ChangeType, A.AnySelectorVisitor0, A.SupportsAnything0, A.Argument0, A.ArgumentDeclaration0, A.ArgumentInvocation0, A.Value0, A.AsyncImporter0, A.AsyncBuiltInCallable0, A.AsyncEnvironment0, A._EnvironmentModule2, A._EvaluateVisitor2, A._ImportedCssVisitor2, A.EvaluateResult0, A._EvaluationContext2, A._ArgumentResults2, A._LoadedStylesheet2, A.AsyncImportCache0, A.Parser1, A.AtRootQuery0, A.ParentStatement0, A.AstNode0, A.Selector0, A.BinaryOperationExpression0, A.BooleanExpression0, A.BuiltInCallable0, A.BuiltInModule0, A.CalculationExpression0, A.CalculationOperation0, A.CalculationInterpolation0, A._CloneCssVisitor0, A.ColorExpression0, A._ColorFormatEnum0, A.SpanColorFormat0, A.CompileResult0, A.ComplexSelectorComponent0, A.Configuration0, A.ConfiguredValue0, A.ConfiguredVariable0, A.ContentRule0, A.DebugRule0, A.SupportsDeclaration0, A.DynamicImport0, A.EmptyExtensionStore0, A.Environment0, A._EnvironmentModule1, A.ErrorRule0, A._EvaluateVisitor1, A._ImportedCssVisitor1, A._EvaluationContext1, A._ArgumentResults1, A._LoadedStylesheet1, A.EveryCssVisitor0, A.SassScriptException0, A.ExtendRule0, A.Extension0, A.Extender0, A.ExtensionStore0, A.ForwardRule0, A.ForwardedModuleView0, A.FunctionExpression0, A.SupportsFunction0, A.IfExpression0, A.IfRule0, A.IfRuleClause0, A.NodeImporter, A.ImportCache0, A.ImportRule0, A.IncludeRule0, A.InterpolatedFunctionExpression0, A.Interpolation0, A.SupportsInterpolation0, A.InterpolationBuffer0, A.ListExpression0, A._QuietLogger0, A.LoudComment0, A.MapExpression0, A.CssMediaQuery0, A._SingletonCssMediaQueryMergeResult0, A.MediaQuerySuccessfulMergeResult0, A.__HasContentVisitor_Object_StatementSearchVisitor0, A.MultiSpan0, A.SupportsNegation0, A.NoSourceMapBuffer0, A._FakeAstNode0, A.__IsInvisibleVisitor_Object_EveryCssVisitor0, A.FileSystemException0, A.Stderr0, A.NodeToDartLogger, A.NullExpression0, A.NumberExpression0, A.SupportsOperation0, A.ParenthesizedExpression0, A.PlainCssCallable0, A.QualifiedName0, A.ImporterResult0, A.ReturnRule0, A.__IsInvisibleVisitor_Object_AnySelectorVisitor0, A.__IsBogusVisitor_Object_AnySelectorVisitor0, A.__IsUselessVisitor_Object_AnySelectorVisitor0, A.SelectorExpression0, A._SerializeVisitor0, A.SerializeResult0, A.ShadowedModuleView0, A.SilentComment0, A.SourceMapBuffer0, A.StatementSearchVisitor0, A.StaticImport0, A.StderrLogger0, A.StringExpression0, A.SupportsExpression0, A.TerseLogger0, A.UnaryOperationExpression0, A.UseRule0, A.UserDefinedCallable0, A.CssValue0, A.ValueExpression0, A.ModifiableCssValue0, A.VariableExpression0, A.VariableDeclaration0, A.WarnRule0]);
  99578. _inheritMany(J.Interceptor, [J.JSBool, J.JSNull, J.JavaScriptObject, J.JSArray, J.JSNumber, J.JSString, A.NativeTypedData]);
  99579. _inherit(J.LegacyJavaScriptObject, J.JavaScriptObject);
  99580. _inheritMany(J.LegacyJavaScriptObject, [J.PlainJavaScriptObject, J.UnknownJavaScriptObject, J.JavaScriptFunction, A.Stdin, A.Stdout, A.ReadlineModule, A.ReadlineOptions, A.ReadlineInterface, A.BufferModule, A.BufferConstants, A.Buffer, A.ConsoleModule, A.Console, A.EventEmitter, A.FS, A.FSConstants, A.FSWatcher, A.ReadStream, A.ReadStreamOptions, A.WriteStream, A.WriteStreamOptions, A.FileOptions, A.StatOptions, A.MkdirOptions, A.RmdirOptions, A.WatchOptions, A.WatchFileOptions, A.Stats, A.Promise, A.Date, A.JsError, A.Atomics, A.Modules, A.Module1, A.Net, A.Socket, A.NetAddress, A.NetServer, A.NodeJsError, A.Process, A.CPUUsage, A.Release, A.StreamModule, A.Readable, A.Writable, A.Duplex, A.Transform, A.WritableOptions, A.ReadableOptions, A.Immediate, A.Timeout, A.TTY, A.Util, A.JSArray0, A.Chokidar, A.ChokidarOptions, A.ChokidarWatcher, A.JSFunction, A.NodeImporterResult, A.RenderContext, A.RenderContextOptions, A.RenderContextResult, A.RenderContextResultStats, A.JSClass, A.JSUrl, A._PropertyDescriptor, A.JSArray1, A.Chokidar0, A.ChokidarOptions0, A.ChokidarWatcher0, A._NodeSassColor, A._Channels, A.CompileOptions, A.NodeCompileResult, A.Exports, A.LoggerNamespace, A.FiberClass, A.Fiber, A.JSFunction0, A.ImmutableList, A.ImmutableMap, A.NodeImporter0, A.CanonicalizeOptions, A.NodeImporterResult0, A.NodeImporterResult1, A._NodeSassList, A._ConstructorOptions, A.NodeLogger, A.WarnOptions, A.DebugOptions, A._NodeSassMap, A._NodeSassNumber, A._ConstructorOptions0, A.JSClass0, A.RenderContext0, A.RenderContextOptions0, A.RenderContextResult0, A.RenderContextResultStats0, A.RenderOptions, A.RenderResult, A.RenderResultStats, A._Exports, A._NodeSassString, A._ConstructorOptions1, A.Types, A.JSUrl0, A._PropertyDescriptor0]);
  99581. _inherit(J.JSUnmodifiableArray, J.JSArray);
  99582. _inheritMany(J.JSNumber, [J.JSInt, J.JSNumNotInt]);
  99583. _inheritMany(A.Iterable, [A._CastIterableBase, A.EfficientLengthIterable, A.MappedIterable, A.WhereIterable, A.ExpandIterable, A.TakeIterable, A.SkipIterable, A.SkipWhileIterable, A.FollowedByIterable, A.WhereTypeIterable, A._ConstantMapKeyIterable, A.IterableBase, A._StringAllMatchesIterable, A.Runes]);
  99584. _inheritMany(A._CastIterableBase, [A.CastIterable, A.__CastListBase__CastIterableBase_ListMixin, A.CastSet]);
  99585. _inherit(A._EfficientLengthCastIterable, A.CastIterable);
  99586. _inherit(A._CastListBase, A.__CastListBase__CastIterableBase_ListMixin);
  99587. _inheritMany(A.Closure, [A.Closure2Args, A.CastMap_entries_closure, A.Closure0Args, A.ConstantStringMap_values_closure, A.GeneralConstantMap__typeTest_closure, A.Instantiation, A.TearOffClosure, A.JsLinkedHashMap_values_closure, A.initHooks_closure, A.initHooks_closure1, A._AsyncRun__initializeScheduleImmediate_internalCallback, A._AsyncRun__initializeScheduleImmediate_closure, A._awaitOnObject_closure, A.Future_wait_closure, A._Future__chainForeignFuture_closure, A._Future__propagateToListeners_handleWhenCompleteCallback_closure, A.Stream_Stream$fromFuture_closure, A.Stream_length_closure, A._CustomZone_bindUnaryCallback_closure, A._RootZone_bindUnaryCallback_closure, A._HashMap_values_closure, A._LinkedCustomHashMap_closure, A.MapMixin_entries_closure, A._Uri__makePath_closure, A._createTables_setChars, A._createTables_setRange, A._convertDataTree__convert, A.ArgParser__addOption_closure, A._Usage__writeOption_closure, A._Usage__buildAllowedList_closure, A.StreamGroup__onListen_closure, A.StreamGroup__onCancel_closure, A.StreamQueue__ensureListening_closure, A.alwaysValid_closure, A.ReplAdapter_runAsync__closure, A.MapKeySet_difference_closure, A.promiseToFuture_closure, A.promiseToFuture_closure0, A.futureToPromise__closure, A.Context_joinAll_closure, A.Context_split_closure, A._validateArgList_closure, A.ParsedPath__splitExtension_closure, A.PathMap__create_closure0, A.PathMap__create_closure1, A.WindowsStyle_absolutePathToUri_closure, A.ModifiableCssNode_hasFollowingSibling_closure, A.ArgumentDeclaration_verify_closure, A.ArgumentDeclaration_verify_closure0, A.CalculationExpression__verifyArguments_closure, A.ListExpression_toString_closure, A.MapExpression_toString_closure, A.Interpolation_toString_closure, A.EachRule_toString_closure, A.IfRuleClause$__closure, A.IfRuleClause$___closure, A.ParentStatement_closure, A.ParentStatement__closure, A._IsBogusVisitor_visitComplexSelector_closure, A._IsUselessVisitor_visitComplexSelector_closure, A.ComplexSelectorComponent_toString_closure, A.IDSelector_unify_closure, A.SelectorList_asSassList_closure, A.SelectorList_resolveParentSelectors_closure, A.SelectorList_resolveParentSelectors__closure, A.SelectorList__complexContainsParentSelector_closure, A.SelectorList__complexContainsParentSelector__closure, A.SelectorList__resolveParentSelectorsCompound_closure, A.SelectorList__resolveParentSelectorsCompound_closure0, A.SelectorList__resolveParentSelectorsCompound_closure1, A.SelectorList_withAdditionalCombinators_closure, A.PseudoSelector_specificity__closure, A.PseudoSelector_specificity__closure0, A.PseudoSelector_unify_closure, A.SimpleSelector_isSuperselector_closure, A.SimpleSelector_isSuperselector__closure, A._compileStylesheet_closure0, A.AsyncEnvironment_importForwards_closure, A.AsyncEnvironment_importForwards_closure0, A.AsyncEnvironment_importForwards_closure1, A.AsyncEnvironment__getVariableFromGlobalModule_closure, A.AsyncEnvironment_setVariable_closure0, A.AsyncEnvironment__getFunctionFromGlobalModule_closure, A.AsyncEnvironment__getMixinFromGlobalModule_closure, A.AsyncEnvironment_toModule_closure, A.AsyncEnvironment_toDummyModule_closure, A.AsyncEnvironment__fromOneModule_closure, A.AsyncEnvironment__fromOneModule__closure, A._EnvironmentModule__EnvironmentModule_closure5, A._EnvironmentModule__EnvironmentModule_closure6, A._EnvironmentModule__EnvironmentModule_closure7, A._EnvironmentModule__EnvironmentModule_closure8, A._EnvironmentModule__EnvironmentModule_closure9, A._EnvironmentModule__EnvironmentModule_closure10, A.AsyncImportCache_humanize_closure, A.AsyncImportCache_humanize_closure0, A.AsyncImportCache_humanize_closure1, A.AsyncBuiltInCallable$mixin_closure, A.BuiltInCallable$mixin_closure, A._compileStylesheet_closure, A.Configuration_toString_closure, A.Environment_importForwards_closure, A.Environment_importForwards_closure0, A.Environment_importForwards_closure1, A.Environment__getVariableFromGlobalModule_closure, A.Environment_setVariable_closure0, A.Environment__getFunctionFromGlobalModule_closure, A.Environment__getMixinFromGlobalModule_closure, A.Environment_toModule_closure, A.Environment_toDummyModule_closure, A.Environment__fromOneModule_closure, A.Environment__fromOneModule__closure, A._EnvironmentModule__EnvironmentModule_closure, A._EnvironmentModule__EnvironmentModule_closure0, A._EnvironmentModule__EnvironmentModule_closure1, A._EnvironmentModule__EnvironmentModule_closure2, A._EnvironmentModule__EnvironmentModule_closure3, A._EnvironmentModule__EnvironmentModule_closure4, A._writeSourceMap_closure, A.ExecutableOptions_emitErrorCss_closure, A.watch_closure, A._Watcher__debounceEvents_closure, A.ExtensionStore_extensionsWhereTarget_closure, A.ExtensionStore_addExtensions_closure0, A.ExtensionStore_addExtensions__closure, A.ExtensionStore_addExtensions__closure0, A.ExtensionStore__extendComplex_closure, A.ExtensionStore__extendComplex__closure, A.ExtensionStore__extendCompound_closure, A.ExtensionStore__extendCompound_closure0, A.ExtensionStore__extendCompound_closure1, A.ExtensionStore__extendSimple_withoutPseudo, A.ExtensionStore__extendSimple_closure, A.ExtensionStore__extendSimple_closure0, A.ExtensionStore__extendPseudo_closure, A.ExtensionStore__extendPseudo_closure0, A.ExtensionStore__extendPseudo_closure1, A.ExtensionStore__extendPseudo_closure2, A.ExtensionStore__extendPseudo_closure3, A.ExtensionStore__trim_closure, A.ExtensionStore__trim_closure0, A.unifyComplex_closure, A._weaveParents_closure0, A._weaveParents_closure1, A._weaveParents_closure2, A._mustUnify_closure, A._mustUnify__closure, A.paths__closure, A.paths___closure, A.listIsSuperselector_closure, A.listIsSuperselector__closure, A.complexIsSuperselector_closure, A.complexIsSuperselector_closure0, A._selectorPseudoIsSuperselector_closure, A._selectorPseudoIsSuperselector_closure0, A._selectorPseudoIsSuperselector_closure1, A._selectorPseudoIsSuperselector_closure2, A._selectorPseudoIsSuperselector_closure3, A._selectorPseudoIsSuperselector__closure, A._selectorPseudoIsSuperselector___closure, A._selectorPseudoIsSuperselector___closure0, A._selectorPseudoIsSuperselector_closure4, A._selectorPseudoIsSuperselector_closure5, A._selectorPseudoArgs_closure, A._selectorPseudoArgs_closure0, A.globalFunctions_closure, A.global_closure, A.global_closure0, A.global_closure1, A.global_closure2, A.global_closure3, A.global_closure4, A.global_closure5, A.global_closure6, A.global_closure7, A.global_closure8, A.global_closure9, A.global_closure10, A.global_closure11, A.global_closure12, A.global_closure13, A.global_closure14, A.global_closure15, A.global_closure16, A.global_closure17, A.global_closure18, A.global_closure19, A.global_closure20, A.global_closure21, A.global_closure22, A.global_closure23, A.global_closure24, A.global__closure, A.global_closure25, A.module_closure0, A.module_closure1, A.module_closure2, A.module_closure3, A.module_closure4, A.module_closure5, A.module_closure6, A.module_closure7, A.module__closure1, A.module_closure8, A._red_closure, A._green_closure, A._blue_closure, A._mix_closure, A._hue_closure, A._saturation_closure, A._lightness_closure, A._complement_closure, A._adjust_closure, A._scale_closure, A._change_closure, A._ieHexStr_closure, A._ieHexStr_closure_hexString, A._updateComponents_getParam, A._updateComponents_closure, A._updateComponents_closure0, A._updateComponents_updateValue, A._functionString_closure, A._removedColorFunction_closure, A._rgb_closure, A._hsl_closure, A._hwb_closure, A._parseChannels_closure, A._length_closure0, A._nth_closure, A._setNth_closure, A._join_closure, A._append_closure0, A._zip_closure, A._zip__closure, A._zip__closure0, A._zip__closure1, A._index_closure0, A._separator_closure, A._isBracketed_closure, A._slash_closure, A._get_closure, A._set_closure, A._set__closure0, A._set_closure0, A._set__closure, A._merge_closure, A._merge_closure0, A._merge__closure, A._deepMerge_closure, A._deepRemove_closure, A._deepRemove__closure, A._remove_closure, A._remove_closure0, A._keys_closure, A._values_closure, A._hasKey_closure, A._modify_modifyNestedMap, A._ceil_closure, A._clamp_closure, A._floor_closure, A._max_closure, A._min_closure, A._round_closure, A._abs_closure, A._hypot_closure, A._hypot__closure, A._log_closure, A._pow_closure, A._sqrt_closure, A._acos_closure, A._asin_closure, A._atan_closure, A._atan2_closure, A._cos_closure, A._sin_closure, A._tan_closure, A._compatible_closure, A._isUnitless_closure, A._unit_closure, A._percentage_closure, A._randomFunction_closure, A._div_closure, A._numberFunction_closure, A.global_closure26, A.global_closure27, A.global_closure28, A.global_closure29, A.local_closure, A.local_closure0, A.local__closure, A._nest_closure, A._nest__closure, A._append_closure, A._append__closure, A._append___closure, A._extend_closure, A._replace_closure, A._unify_closure, A._isSuperselector_closure, A._simpleSelectors_closure, A._simpleSelectors__closure, A._parse_closure, A.module_closure, A.module__closure, A.module__closure0, A._unquote_closure, A._quote_closure, A._length_closure, A._insert_closure, A._index_closure, A._slice_closure, A._toUpperCase_closure, A._toLowerCase_closure, A._uniqueId_closure, A.ImportCache_humanize_closure, A.ImportCache_humanize_closure0, A.ImportCache_humanize_closure1, A.FilesystemImporter_canonicalize_closure, A._exactlyOne_closure, A._realCasePath_helper, A._realCasePath_helper__closure, A.readStdin_closure, A.readStdin_closure0, A.readStdin_closure1, A.readStdin_closure2, A.listDir__closure, A.listDir__closure0, A.listDir_closure_list, A.listDir__list_closure, A.watchDir_closure, A.watchDir_closure0, A.watchDir_closure1, A.watchDir_closure2, A.TerseLogger_summarize_closure, A.TerseLogger_summarize_closure0, A._disallowedFunctionNames_closure, A.Parser_scanIdentChar_matches, A.StylesheetParser_parse__closure0, A.StylesheetParser__expression_addSingleExpression, A.StylesheetParser__expression_addOperator, A.StylesheetParser__unicodeRange_closure, A.StylesheetParser__unicodeRange_closure0, A.StylesheetParser_trySpecialFunction_closure, A.StylesheetGraph_modifiedSince_transitiveModificationTime, A._PrefixedKeys_iterator_closure, A.SourceMapBuffer_buildSourceMap_closure, A._UnprefixedKeys_iterator_closure, A._UnprefixedKeys_iterator_closure0, A.indent_closure, A.flattenVertically_closure, A.flattenVertically_closure0, A.SassCalculation__verifyLength_closure, A.SassColor_SassColor$hwb_toRgb, A.SassList_isBlank_closure, A.SassNumber__coerceOrConvertValue_closure, A.SassNumber__coerceOrConvertValue_closure1, A.SassNumber_multiplyUnits_closure, A.SassNumber_multiplyUnits_closure1, A.SassNumber__areAnyConvertible_closure, A.SassNumber__canonicalizeUnitList_closure, A.SassNumber_unitSuggestion_closure, A.SassNumber_unitSuggestion_closure0, A.SingleUnitSassNumber__coerceToUnit_closure, A.SingleUnitSassNumber__coerceValueToUnit_closure, A.SingleUnitSassNumber_multiplyUnits_closure, A.AnySelectorVisitor_visitComplexSelector_closure, A.AnySelectorVisitor_visitCompoundSelector_closure, A._EvaluateVisitor_closure9, A._EvaluateVisitor_closure10, A._EvaluateVisitor_closure11, A._EvaluateVisitor_closure12, A._EvaluateVisitor_closure13, A._EvaluateVisitor_closure14, A._EvaluateVisitor_closure15, A._EvaluateVisitor_closure16, A._EvaluateVisitor_closure17, A._EvaluateVisitor_closure18, A._EvaluateVisitor__closure3, A._EvaluateVisitor__loadModule__closure0, A._EvaluateVisitor__combineCss_closure2, A._EvaluateVisitor__combineCss_closure3, A._EvaluateVisitor__combineCss_closure4, A._EvaluateVisitor__extendModules_closure1, A._EvaluateVisitor__topologicalModules_visitModule0, A._EvaluateVisitor__scopeForAtRoot_closure5, A._EvaluateVisitor__scopeForAtRoot_closure6, A._EvaluateVisitor__scopeForAtRoot_closure7, A._EvaluateVisitor__scopeForAtRoot_closure8, A._EvaluateVisitor__scopeForAtRoot_closure9, A._EvaluateVisitor__scopeForAtRoot_closure10, A._EvaluateVisitor_visitDeclaration_closure1, A._EvaluateVisitor_visitEachRule_closure2, A._EvaluateVisitor_visitEachRule_closure3, A._EvaluateVisitor_visitEachRule__closure0, A._EvaluateVisitor_visitEachRule___closure0, A._EvaluateVisitor_visitAtRule_closure2, A._EvaluateVisitor_visitAtRule_closure4, A._EvaluateVisitor_visitForRule__closure0, A._EvaluateVisitor_visitForwardRule_closure1, A._EvaluateVisitor_visitForwardRule_closure2, A._EvaluateVisitor_visitIfRule__closure0, A._EvaluateVisitor__visitDynamicImport__closure3, A._EvaluateVisitor__visitDynamicImport__closure4, A._EvaluateVisitor__visitDynamicImport__closure5, A._EvaluateVisitor_visitIncludeRule_closure6, A._EvaluateVisitor_visitMediaRule_closure2, A._EvaluateVisitor_visitMediaRule_closure4, A._EvaluateVisitor_visitStyleRule_closure9, A._EvaluateVisitor_visitStyleRule_closure13, A._EvaluateVisitor_visitStyleRule_closure14, A._EvaluateVisitor_visitSupportsRule_closure2, A._EvaluateVisitor_visitUseRule_closure0, A._EvaluateVisitor_visitWhileRule__closure0, A._EvaluateVisitor_visitBinaryOperationExpression_closure_recommendation0, A._EvaluateVisitor_visitListExpression_closure0, A._EvaluateVisitor__runUserDefinedCallable____closure0, A._EvaluateVisitor__runBuiltInCallable_closure2, A._EvaluateVisitor__evaluateArguments_closure3, A._EvaluateVisitor__evaluateArguments_closure4, A._EvaluateVisitor__evaluateArguments_closure6, A._EvaluateVisitor__evaluateMacroArguments_closure3, A._EvaluateVisitor__evaluateMacroArguments_closure4, A._EvaluateVisitor__evaluateMacroArguments_closure6, A._EvaluateVisitor_visitStringExpression_closure0, A._EvaluateVisitor_visitCssAtRule_closure2, A._EvaluateVisitor_visitCssKeyframeBlock_closure2, A._EvaluateVisitor_visitCssMediaRule_closure2, A._EvaluateVisitor_visitCssMediaRule_closure4, A._EvaluateVisitor_visitCssStyleRule_closure2, A._EvaluateVisitor_visitCssSupportsRule_closure2, A._EvaluateVisitor__performInterpolation_closure0, A._EvaluateVisitor__withoutSlash_recommendation0, A._EvaluateVisitor__stackFrame_closure0, A._EvaluateVisitor__stackTrace_closure0, A._ImportedCssVisitor_visitCssAtRule_closure0, A._ImportedCssVisitor_visitCssMediaRule_closure0, A._ImportedCssVisitor_visitCssStyleRule_closure0, A._ImportedCssVisitor_visitCssSupportsRule_closure0, A._EvaluateVisitor_closure, A._EvaluateVisitor_closure0, A._EvaluateVisitor_closure1, A._EvaluateVisitor_closure2, A._EvaluateVisitor_closure3, A._EvaluateVisitor_closure4, A._EvaluateVisitor_closure5, A._EvaluateVisitor_closure6, A._EvaluateVisitor_closure7, A._EvaluateVisitor_closure8, A._EvaluateVisitor__closure0, A._EvaluateVisitor__loadModule__closure, A._EvaluateVisitor__combineCss_closure, A._EvaluateVisitor__combineCss_closure0, A._EvaluateVisitor__combineCss_closure1, A._EvaluateVisitor__extendModules_closure, A._EvaluateVisitor__topologicalModules_visitModule, A._EvaluateVisitor__scopeForAtRoot_closure, A._EvaluateVisitor__scopeForAtRoot_closure0, A._EvaluateVisitor__scopeForAtRoot_closure1, A._EvaluateVisitor__scopeForAtRoot_closure2, A._EvaluateVisitor__scopeForAtRoot_closure3, A._EvaluateVisitor__scopeForAtRoot_closure4, A._EvaluateVisitor_visitDeclaration_closure, A._EvaluateVisitor_visitEachRule_closure, A._EvaluateVisitor_visitEachRule_closure0, A._EvaluateVisitor_visitEachRule__closure, A._EvaluateVisitor_visitEachRule___closure, A._EvaluateVisitor_visitAtRule_closure, A._EvaluateVisitor_visitAtRule_closure1, A._EvaluateVisitor_visitForRule__closure, A._EvaluateVisitor_visitForwardRule_closure, A._EvaluateVisitor_visitForwardRule_closure0, A._EvaluateVisitor_visitIfRule__closure, A._EvaluateVisitor__visitDynamicImport__closure, A._EvaluateVisitor__visitDynamicImport__closure0, A._EvaluateVisitor__visitDynamicImport__closure1, A._EvaluateVisitor_visitIncludeRule_closure2, A._EvaluateVisitor_visitMediaRule_closure, A._EvaluateVisitor_visitMediaRule_closure1, A._EvaluateVisitor_visitStyleRule_closure1, A._EvaluateVisitor_visitStyleRule_closure5, A._EvaluateVisitor_visitStyleRule_closure6, A._EvaluateVisitor_visitSupportsRule_closure0, A._EvaluateVisitor_visitUseRule_closure, A._EvaluateVisitor_visitWhileRule__closure, A._EvaluateVisitor_visitBinaryOperationExpression_closure_recommendation, A._EvaluateVisitor_visitListExpression_closure, A._EvaluateVisitor__runUserDefinedCallable____closure, A._EvaluateVisitor__runBuiltInCallable_closure0, A._EvaluateVisitor__evaluateArguments_closure, A._EvaluateVisitor__evaluateArguments_closure0, A._EvaluateVisitor__evaluateArguments_closure2, A._EvaluateVisitor__evaluateMacroArguments_closure, A._EvaluateVisitor__evaluateMacroArguments_closure0, A._EvaluateVisitor__evaluateMacroArguments_closure2, A._EvaluateVisitor_visitStringExpression_closure, A._EvaluateVisitor_visitCssAtRule_closure0, A._EvaluateVisitor_visitCssKeyframeBlock_closure0, A._EvaluateVisitor_visitCssMediaRule_closure, A._EvaluateVisitor_visitCssMediaRule_closure1, A._EvaluateVisitor_visitCssStyleRule_closure0, A._EvaluateVisitor_visitCssSupportsRule_closure0, A._EvaluateVisitor__performInterpolation_closure, A._EvaluateVisitor__withoutSlash_recommendation, A._EvaluateVisitor__stackFrame_closure, A._EvaluateVisitor__stackTrace_closure, A._ImportedCssVisitor_visitCssAtRule_closure, A._ImportedCssVisitor_visitCssMediaRule_closure, A._ImportedCssVisitor_visitCssStyleRule_closure, A._ImportedCssVisitor_visitCssSupportsRule_closure, A.EveryCssVisitor_visitCssAtRule_closure, A.EveryCssVisitor_visitCssKeyframeBlock_closure, A.EveryCssVisitor_visitCssMediaRule_closure, A.EveryCssVisitor_visitCssStyleRule_closure, A.EveryCssVisitor_visitCssStylesheet_closure, A.EveryCssVisitor_visitCssSupportsRule_closure, A.serialize_closure, A._SerializeVisitor_visitList_closure, A._SerializeVisitor_visitList_closure0, A._SerializeVisitor_visitList_closure1, A._SerializeVisitor_visitMap_closure, A._SerializeVisitor_visitSelectorList_closure, A.StatementSearchVisitor_visitIfRule_closure, A.StatementSearchVisitor_visitIfRule__closure0, A.StatementSearchVisitor_visitIfRule_closure0, A.StatementSearchVisitor_visitIfRule__closure, A.StatementSearchVisitor_visitChildren_closure, A.SingleMapping_SingleMapping$fromEntries_closure1, A.SingleMapping_toJson_closure, A.Highlighter$__closure, A.Highlighter$___closure, A.Highlighter$__closure0, A.Highlighter__collateLines_closure, A.Highlighter__collateLines_closure1, A.Highlighter__collateLines__closure, A.Highlighter_highlight_closure, A.Chain_Chain$parse_closure, A.Chain_toTrace_closure, A.Chain_toString_closure0, A.Chain_toString__closure0, A.Chain_toString_closure, A.Chain_toString__closure, A.Trace__parseVM_closure, A.Trace$parseV8_closure, A.Trace$parseJSCore_closure, A.Trace$parseFirefox_closure, A.Trace$parseFriendly_closure, A.Trace_terse_closure, A.Trace_foldFrames_closure, A.Trace_foldFrames_closure0, A.Trace_toString_closure0, A.Trace_toString_closure, A.TransformByHandlers_transformByHandlers__closure, A.RateLimit__debounceAggregate_closure0, A.AnySelectorVisitor_visitComplexSelector_closure0, A.AnySelectorVisitor_visitCompoundSelector_closure0, A.ArgumentDeclaration_verify_closure1, A.ArgumentDeclaration_verify_closure2, A.argumentListClass__closure, A.argumentListClass__closure0, A.AsyncBuiltInCallable$mixin_closure0, A._compileStylesheet_closure2, A.AsyncEnvironment_importForwards_closure2, A.AsyncEnvironment_importForwards_closure3, A.AsyncEnvironment_importForwards_closure4, A.AsyncEnvironment__getVariableFromGlobalModule_closure0, A.AsyncEnvironment_setVariable_closure3, A.AsyncEnvironment__getFunctionFromGlobalModule_closure0, A.AsyncEnvironment__getMixinFromGlobalModule_closure0, A.AsyncEnvironment_toModule_closure0, A.AsyncEnvironment_toDummyModule_closure0, A.AsyncEnvironment__fromOneModule_closure0, A.AsyncEnvironment__fromOneModule__closure0, A._EnvironmentModule__EnvironmentModule_closure17, A._EnvironmentModule__EnvironmentModule_closure18, A._EnvironmentModule__EnvironmentModule_closure19, A._EnvironmentModule__EnvironmentModule_closure20, A._EnvironmentModule__EnvironmentModule_closure21, A._EnvironmentModule__EnvironmentModule_closure22, A._EvaluateVisitor_closure29, A._EvaluateVisitor_closure30, A._EvaluateVisitor_closure31, A._EvaluateVisitor_closure32, A._EvaluateVisitor_closure33, A._EvaluateVisitor_closure34, A._EvaluateVisitor_closure35, A._EvaluateVisitor_closure36, A._EvaluateVisitor_closure37, A._EvaluateVisitor_closure38, A._EvaluateVisitor__closure9, A._EvaluateVisitor__loadModule__closure2, A._EvaluateVisitor__combineCss_closure8, A._EvaluateVisitor__combineCss_closure9, A._EvaluateVisitor__combineCss_closure10, A._EvaluateVisitor__extendModules_closure5, A._EvaluateVisitor__topologicalModules_visitModule2, A._EvaluateVisitor__scopeForAtRoot_closure17, A._EvaluateVisitor__scopeForAtRoot_closure18, A._EvaluateVisitor__scopeForAtRoot_closure19, A._EvaluateVisitor__scopeForAtRoot_closure20, A._EvaluateVisitor__scopeForAtRoot_closure21, A._EvaluateVisitor__scopeForAtRoot_closure22, A._EvaluateVisitor_visitDeclaration_closure5, A._EvaluateVisitor_visitEachRule_closure8, A._EvaluateVisitor_visitEachRule_closure9, A._EvaluateVisitor_visitEachRule__closure2, A._EvaluateVisitor_visitEachRule___closure2, A._EvaluateVisitor_visitAtRule_closure8, A._EvaluateVisitor_visitAtRule_closure10, A._EvaluateVisitor_visitForRule__closure2, A._EvaluateVisitor_visitForwardRule_closure5, A._EvaluateVisitor_visitForwardRule_closure6, A._EvaluateVisitor_visitIfRule__closure2, A._EvaluateVisitor__visitDynamicImport__closure11, A._EvaluateVisitor__visitDynamicImport__closure12, A._EvaluateVisitor__visitDynamicImport__closure13, A._EvaluateVisitor_visitIncludeRule_closure14, A._EvaluateVisitor_visitMediaRule_closure8, A._EvaluateVisitor_visitMediaRule_closure10, A._EvaluateVisitor_visitStyleRule_closure25, A._EvaluateVisitor_visitStyleRule_closure29, A._EvaluateVisitor_visitStyleRule_closure30, A._EvaluateVisitor_visitSupportsRule_closure6, A._EvaluateVisitor_visitUseRule_closure2, A._EvaluateVisitor_visitWhileRule__closure2, A._EvaluateVisitor_visitBinaryOperationExpression_closure_recommendation2, A._EvaluateVisitor_visitListExpression_closure2, A._EvaluateVisitor__runUserDefinedCallable____closure2, A._EvaluateVisitor__runBuiltInCallable_closure6, A._EvaluateVisitor__evaluateArguments_closure11, A._EvaluateVisitor__evaluateArguments_closure12, A._EvaluateVisitor__evaluateArguments_closure14, A._EvaluateVisitor__evaluateMacroArguments_closure11, A._EvaluateVisitor__evaluateMacroArguments_closure12, A._EvaluateVisitor__evaluateMacroArguments_closure14, A._EvaluateVisitor_visitStringExpression_closure2, A._EvaluateVisitor_visitCssAtRule_closure6, A._EvaluateVisitor_visitCssKeyframeBlock_closure6, A._EvaluateVisitor_visitCssMediaRule_closure8, A._EvaluateVisitor_visitCssMediaRule_closure10, A._EvaluateVisitor_visitCssStyleRule_closure6, A._EvaluateVisitor_visitCssSupportsRule_closure6, A._EvaluateVisitor__performInterpolation_closure2, A._EvaluateVisitor__withoutSlash_recommendation2, A._EvaluateVisitor__stackFrame_closure2, A._EvaluateVisitor__stackTrace_closure2, A._ImportedCssVisitor_visitCssAtRule_closure2, A._ImportedCssVisitor_visitCssMediaRule_closure2, A._ImportedCssVisitor_visitCssStyleRule_closure2, A._ImportedCssVisitor_visitCssSupportsRule_closure2, A.AsyncImportCache_humanize_closure2, A.AsyncImportCache_humanize_closure3, A.AsyncImportCache_humanize_closure4, A.legacyBooleanClass__closure, A.legacyBooleanClass__closure0, A.booleanClass__closure, A.BuiltInCallable$mixin_closure0, A.CalculationExpression__verifyArguments_closure0, A.SassCalculation__verifyLength_closure0, A.global_closure30, A.global_closure31, A.global_closure32, A.global_closure33, A.global_closure34, A.global_closure35, A.global_closure36, A.global_closure37, A.global_closure38, A.global_closure39, A.global_closure40, A.global_closure41, A.global_closure42, A.global_closure43, A.global_closure44, A.global_closure45, A.global_closure46, A.global_closure47, A.global_closure48, A.global_closure49, A.global_closure50, A.global_closure51, A.global_closure52, A.global_closure53, A.global_closure54, A.global_closure55, A.global__closure0, A.global_closure56, A.module_closure10, A.module_closure11, A.module_closure12, A.module_closure13, A.module_closure14, A.module_closure15, A.module_closure16, A.module_closure17, A.module__closure4, A.module_closure18, A._red_closure0, A._green_closure0, A._blue_closure0, A._mix_closure0, A._hue_closure0, A._saturation_closure0, A._lightness_closure0, A._complement_closure0, A._adjust_closure0, A._scale_closure0, A._change_closure0, A._ieHexStr_closure0, A._ieHexStr_closure_hexString0, A._updateComponents_getParam0, A._updateComponents_closure1, A._updateComponents_closure2, A._updateComponents_updateValue0, A._functionString_closure0, A._removedColorFunction_closure0, A._rgb_closure0, A._hsl_closure0, A._hwb_closure0, A._parseChannels_closure0, A.legacyColorClass_closure, A.legacyColorClass_closure0, A.legacyColorClass_closure1, A.legacyColorClass_closure2, A.legacyColorClass_closure3, A.colorClass__closure1, A.colorClass__closure2, A.colorClass__closure3, A.colorClass__closure4, A.colorClass__closure5, A.colorClass__closure6, A.colorClass__closure7, A.colorClass__closure8, A.colorClass__closure9, A.SassColor_SassColor$hwb_toRgb0, A.compileAsync__closure, A.compileStringAsync__closure, A.compileStringAsync__closure0, A._wrapAsyncSassExceptions_closure, A._parseFunctions__closure2, A._parseFunctions__closure3, A._compileStylesheet_closure1, A.ComplexSelectorComponent_toString_closure0, A.Configuration_toString_closure0, A._disallowedFunctionNames_closure0, A.EachRule_toString_closure0, A.Environment_importForwards_closure2, A.Environment_importForwards_closure3, A.Environment_importForwards_closure4, A.Environment__getVariableFromGlobalModule_closure0, A.Environment_setVariable_closure3, A.Environment__getFunctionFromGlobalModule_closure0, A.Environment__getMixinFromGlobalModule_closure0, A.Environment_toModule_closure0, A.Environment_toDummyModule_closure0, A.Environment__fromOneModule_closure0, A.Environment__fromOneModule__closure0, A._EnvironmentModule__EnvironmentModule_closure11, A._EnvironmentModule__EnvironmentModule_closure12, A._EnvironmentModule__EnvironmentModule_closure13, A._EnvironmentModule__EnvironmentModule_closure14, A._EnvironmentModule__EnvironmentModule_closure15, A._EnvironmentModule__EnvironmentModule_closure16, A._EvaluateVisitor_closure19, A._EvaluateVisitor_closure20, A._EvaluateVisitor_closure21, A._EvaluateVisitor_closure22, A._EvaluateVisitor_closure23, A._EvaluateVisitor_closure24, A._EvaluateVisitor_closure25, A._EvaluateVisitor_closure26, A._EvaluateVisitor_closure27, A._EvaluateVisitor_closure28, A._EvaluateVisitor__closure6, A._EvaluateVisitor__loadModule__closure1, A._EvaluateVisitor__combineCss_closure5, A._EvaluateVisitor__combineCss_closure6, A._EvaluateVisitor__combineCss_closure7, A._EvaluateVisitor__extendModules_closure3, A._EvaluateVisitor__topologicalModules_visitModule1, A._EvaluateVisitor__scopeForAtRoot_closure11, A._EvaluateVisitor__scopeForAtRoot_closure12, A._EvaluateVisitor__scopeForAtRoot_closure13, A._EvaluateVisitor__scopeForAtRoot_closure14, A._EvaluateVisitor__scopeForAtRoot_closure15, A._EvaluateVisitor__scopeForAtRoot_closure16, A._EvaluateVisitor_visitDeclaration_closure3, A._EvaluateVisitor_visitEachRule_closure5, A._EvaluateVisitor_visitEachRule_closure6, A._EvaluateVisitor_visitEachRule__closure1, A._EvaluateVisitor_visitEachRule___closure1, A._EvaluateVisitor_visitAtRule_closure5, A._EvaluateVisitor_visitAtRule_closure7, A._EvaluateVisitor_visitForRule__closure1, A._EvaluateVisitor_visitForwardRule_closure3, A._EvaluateVisitor_visitForwardRule_closure4, A._EvaluateVisitor_visitIfRule__closure1, A._EvaluateVisitor__visitDynamicImport__closure7, A._EvaluateVisitor__visitDynamicImport__closure8, A._EvaluateVisitor__visitDynamicImport__closure9, A._EvaluateVisitor_visitIncludeRule_closure10, A._EvaluateVisitor_visitMediaRule_closure5, A._EvaluateVisitor_visitMediaRule_closure7, A._EvaluateVisitor_visitStyleRule_closure17, A._EvaluateVisitor_visitStyleRule_closure21, A._EvaluateVisitor_visitStyleRule_closure22, A._EvaluateVisitor_visitSupportsRule_closure4, A._EvaluateVisitor_visitUseRule_closure1, A._EvaluateVisitor_visitWhileRule__closure1, A._EvaluateVisitor_visitBinaryOperationExpression_closure_recommendation1, A._EvaluateVisitor_visitListExpression_closure1, A._EvaluateVisitor__runUserDefinedCallable____closure1, A._EvaluateVisitor__runBuiltInCallable_closure4, A._EvaluateVisitor__evaluateArguments_closure7, A._EvaluateVisitor__evaluateArguments_closure8, A._EvaluateVisitor__evaluateArguments_closure10, A._EvaluateVisitor__evaluateMacroArguments_closure7, A._EvaluateVisitor__evaluateMacroArguments_closure8, A._EvaluateVisitor__evaluateMacroArguments_closure10, A._EvaluateVisitor_visitStringExpression_closure1, A._EvaluateVisitor_visitCssAtRule_closure4, A._EvaluateVisitor_visitCssKeyframeBlock_closure4, A._EvaluateVisitor_visitCssMediaRule_closure5, A._EvaluateVisitor_visitCssMediaRule_closure7, A._EvaluateVisitor_visitCssStyleRule_closure4, A._EvaluateVisitor_visitCssSupportsRule_closure4, A._EvaluateVisitor__performInterpolation_closure1, A._EvaluateVisitor__withoutSlash_recommendation1, A._EvaluateVisitor__stackFrame_closure1, A._EvaluateVisitor__stackTrace_closure1, A._ImportedCssVisitor_visitCssAtRule_closure1, A._ImportedCssVisitor_visitCssMediaRule_closure1, A._ImportedCssVisitor_visitCssStyleRule_closure1, A._ImportedCssVisitor_visitCssSupportsRule_closure1, A.EveryCssVisitor_visitCssAtRule_closure0, A.EveryCssVisitor_visitCssKeyframeBlock_closure0, A.EveryCssVisitor_visitCssMediaRule_closure0, A.EveryCssVisitor_visitCssStyleRule_closure0, A.EveryCssVisitor_visitCssStylesheet_closure0, A.EveryCssVisitor_visitCssSupportsRule_closure0, A.exceptionClass__closure, A.exceptionClass__closure0, A.exceptionClass__closure1, A.ExtensionStore_extensionsWhereTarget_closure0, A.ExtensionStore_addExtensions_closure2, A.ExtensionStore_addExtensions__closure2, A.ExtensionStore_addExtensions__closure3, A.ExtensionStore__extendComplex_closure0, A.ExtensionStore__extendComplex__closure0, A.ExtensionStore__extendCompound_closure2, A.ExtensionStore__extendCompound_closure3, A.ExtensionStore__extendCompound_closure4, A.ExtensionStore__extendSimple_withoutPseudo0, A.ExtensionStore__extendSimple_closure1, A.ExtensionStore__extendSimple_closure2, A.ExtensionStore__extendPseudo_closure4, A.ExtensionStore__extendPseudo_closure5, A.ExtensionStore__extendPseudo_closure6, A.ExtensionStore__extendPseudo_closure7, A.ExtensionStore__extendPseudo_closure8, A.ExtensionStore__trim_closure1, A.ExtensionStore__trim_closure2, A.FilesystemImporter_canonicalize_closure0, A.functionClass__closure, A.functionClass__closure0, A.unifyComplex_closure0, A._weaveParents_closure4, A._weaveParents_closure5, A._weaveParents_closure6, A._mustUnify_closure0, A._mustUnify__closure0, A.paths__closure0, A.paths___closure0, A.listIsSuperselector_closure0, A.listIsSuperselector__closure0, A.complexIsSuperselector_closure1, A.complexIsSuperselector_closure2, A._selectorPseudoIsSuperselector_closure6, A._selectorPseudoIsSuperselector_closure7, A._selectorPseudoIsSuperselector_closure8, A._selectorPseudoIsSuperselector_closure9, A._selectorPseudoIsSuperselector_closure10, A._selectorPseudoIsSuperselector__closure0, A._selectorPseudoIsSuperselector___closure1, A._selectorPseudoIsSuperselector___closure2, A._selectorPseudoIsSuperselector_closure11, A._selectorPseudoIsSuperselector_closure12, A._selectorPseudoArgs_closure1, A._selectorPseudoArgs_closure2, A.globalFunctions_closure0, A.IDSelector_unify_closure0, A.IfRuleClause$__closure0, A.IfRuleClause$___closure0, A.immutableMapToDartMap_closure, A.NodeImporter__tryPath_closure0, A.ImportCache_humanize_closure2, A.ImportCache_humanize_closure3, A.ImportCache_humanize_closure4, A.Interpolation_toString_closure0, A._realCasePath_helper0, A._realCasePath_helper__closure0, A.render_closure0, A._parseFunctions__closure, A._parseFunctions___closure0, A._parseFunctions__closure0, A._parseFunctions__closure1, A._parseFunctions___closure, A._parseImporter_closure, A._parseImporter__closure, A._parseImporter___closure, A.ListExpression_toString_closure0, A._length_closure2, A._nth_closure0, A._setNth_closure0, A._join_closure0, A._append_closure2, A._zip_closure0, A._zip__closure2, A._zip__closure3, A._zip__closure4, A._index_closure2, A._separator_closure0, A._isBracketed_closure0, A._slash_closure0, A.SelectorList_asSassList_closure0, A.SelectorList_resolveParentSelectors_closure0, A.SelectorList_resolveParentSelectors__closure0, A.SelectorList__complexContainsParentSelector_closure0, A.SelectorList__complexContainsParentSelector__closure0, A.SelectorList__resolveParentSelectorsCompound_closure2, A.SelectorList__resolveParentSelectorsCompound_closure3, A.SelectorList__resolveParentSelectorsCompound_closure4, A.SelectorList_withAdditionalCombinators_closure0, A.legacyListClass_closure, A.legacyListClass__closure, A.legacyListClass_closure1, A.legacyListClass_closure2, A.legacyListClass_closure4, A.listClass__closure, A.SassList_isBlank_closure0, A.MapExpression_toString_closure0, A._get_closure0, A._set_closure1, A._set__closure2, A._set_closure2, A._set__closure1, A._merge_closure1, A._merge_closure2, A._merge__closure0, A._deepMerge_closure0, A._deepRemove_closure0, A._deepRemove__closure0, A._remove_closure1, A._remove_closure2, A._keys_closure0, A._values_closure0, A._hasKey_closure0, A._modify_modifyNestedMap0, A.legacyMapClass_closure, A.legacyMapClass__closure, A.legacyMapClass__closure0, A.legacyMapClass_closure2, A.legacyMapClass_closure3, A.legacyMapClass_closure4, A.mapClass__closure, A.mapClass__closure0, A._ceil_closure0, A._clamp_closure0, A._floor_closure0, A._max_closure0, A._min_closure0, A._round_closure0, A._abs_closure0, A._hypot_closure0, A._hypot__closure0, A._log_closure0, A._pow_closure0, A._sqrt_closure0, A._acos_closure0, A._asin_closure0, A._atan_closure0, A._atan2_closure0, A._cos_closure0, A._sin_closure0, A._tan_closure0, A._compatible_closure0, A._isUnitless_closure0, A._unit_closure0, A._percentage_closure0, A._randomFunction_closure0, A._div_closure0, A._numberFunction_closure0, A.global_closure57, A.global_closure58, A.global_closure59, A.global_closure60, A.local_closure1, A.local_closure2, A.local__closure0, A.listDir__closure1, A.listDir__closure2, A.listDir_closure_list0, A.listDir__list_closure0, A.ModifiableCssNode_hasFollowingSibling_closure0, A.legacyNullClass__closure, A.legacyNumberClass_closure, A.legacyNumberClass_closure0, A.legacyNumberClass_closure2, A._parseNumber_closure, A._parseNumber_closure0, A.numberClass__closure, A.numberClass__closure0, A.numberClass__closure1, A.numberClass__closure2, A.numberClass__closure3, A.numberClass__closure4, A.numberClass__closure5, A.numberClass__closure6, A.numberClass__closure7, A.numberClass__closure8, A.numberClass__closure9, A.numberClass__closure12, A.numberClass__closure13, A.numberClass__closure14, A.numberClass__closure15, A.numberClass__closure16, A.numberClass__closure17, A.numberClass__closure18, A.numberClass__closure19, A.SassNumber__coerceOrConvertValue_closure3, A.SassNumber__coerceOrConvertValue_closure5, A.SassNumber_multiplyUnits_closure3, A.SassNumber_multiplyUnits_closure5, A.SassNumber__areAnyConvertible_closure0, A.SassNumber__canonicalizeUnitList_closure0, A.SassNumber_unitSuggestion_closure1, A.SassNumber_unitSuggestion_closure2, A.ParentStatement_closure0, A.ParentStatement__closure0, A.Parser_scanIdentChar_matches0, A._PrefixedKeys_iterator_closure0, A.PseudoSelector_specificity__closure1, A.PseudoSelector_specificity__closure2, A.PseudoSelector_unify_closure0, A.JSClassExtension_setCustomInspect_closure, A._wrapMain_closure, A._wrapMain_closure0, A._IsBogusVisitor_visitComplexSelector_closure0, A._IsUselessVisitor_visitComplexSelector_closure0, A._nest_closure0, A._nest__closure1, A._append_closure1, A._append__closure1, A._append___closure0, A._extend_closure0, A._replace_closure0, A._unify_closure0, A._isSuperselector_closure0, A._simpleSelectors_closure0, A._simpleSelectors__closure0, A._parse_closure0, A.serialize_closure0, A._SerializeVisitor_visitList_closure2, A._SerializeVisitor_visitList_closure3, A._SerializeVisitor_visitList_closure4, A._SerializeVisitor_visitMap_closure0, A._SerializeVisitor_visitSelectorList_closure0, A.SimpleSelector_isSuperselector_closure0, A.SimpleSelector_isSuperselector__closure0, A.SingleUnitSassNumber__coerceToUnit_closure0, A.SingleUnitSassNumber__coerceValueToUnit_closure0, A.SingleUnitSassNumber_multiplyUnits_closure1, A.SourceMapBuffer_buildSourceMap_closure0, A.updateSourceSpanPrototype_closure, A.updateSourceSpanPrototype_closure0, A.updateSourceSpanPrototype_closure1, A.updateSourceSpanPrototype_closure2, A.updateSourceSpanPrototype_closure3, A.updateSourceSpanPrototype_closure4, A.updateSourceSpanPrototype_closure5, A.StatementSearchVisitor_visitIfRule_closure1, A.StatementSearchVisitor_visitIfRule__closure2, A.StatementSearchVisitor_visitIfRule_closure2, A.StatementSearchVisitor_visitIfRule__closure1, A.StatementSearchVisitor_visitChildren_closure0, A.module_closure9, A.module__closure2, A.module__closure3, A._unquote_closure0, A._quote_closure0, A._length_closure1, A._insert_closure0, A._index_closure1, A._slice_closure0, A._toUpperCase_closure0, A._toLowerCase_closure0, A._uniqueId_closure0, A.legacyStringClass_closure, A.legacyStringClass_closure0, A.stringClass__closure, A.stringClass__closure0, A.stringClass__closure1, A.stringClass__closure2, A.stringClass__closure3, A.StylesheetParser_parse__closure2, A.StylesheetParser__expression_addSingleExpression0, A.StylesheetParser__expression_addOperator0, A.StylesheetParser__unicodeRange_closure1, A.StylesheetParser__unicodeRange_closure2, A.StylesheetParser_trySpecialFunction_closure0, A.TerseLogger_summarize_closure1, A.TerseLogger_summarize_closure2, A._UnprefixedKeys_iterator_closure1, A._UnprefixedKeys_iterator_closure2, A._exactlyOne_closure0, A.futureToPromise__closure0, A.indent_closure0, A.flattenVertically_closure1, A.flattenVertically_closure2, A.valueClass__closure, A.valueClass__closure0, A.valueClass__closure1, A.valueClass__closure2, A.valueClass__closure3, A.valueClass__closure4, A.valueClass__closure5, A.valueClass__closure7, A.valueClass__closure8, A.valueClass__closure9, A.valueClass__closure10, A.valueClass__closure11, A.valueClass__closure12, A.valueClass__closure13, A.valueClass__closure15, A.valueClass__closure16]);
  99588. _inheritMany(A.Closure2Args, [A._CastListBase_sort_closure, A.CastMap_forEach_closure, A.Primitives_functionNoSuchMethod_closure, A.JsLinkedHashMap_addAll_closure, A.initHooks_closure0, A._awaitOnObject_closure0, A._wrapJsFunctionForAsync_closure, A.Future_wait_handleError, A._Future__chainForeignFuture_closure0, A.Stream_Stream$fromFuture_closure0, A._HashMap_addAll_closure, A.HashMap_HashMap$from_closure, A.LinkedHashMap_LinkedHashMap$from_closure, A.MapBase_mapToString_closure, A.MapMixin_addAll_closure, A._JsonStringifier_writeMap_closure, A.NoSuchMethodError_toString_closure, A.Uri__parseIPv4Address_error, A.Uri_parseIPv6Address_error, A.Uri_parseIPv6Address_parseHex, A._createTables_build, A.Parser_parse_closure, A.StreamQueue__ensureListening_closure1, A.futureToPromise_closure, A.PathMap__create_closure, A.IfRule_toString_closure, A.ComplexSelector_specificity_closure, A.CompoundSelector_specificity_closure, A.ExtensionStore_addExtensions_closure, A.ExtensionStore_addExtensions__closure1, A.ExtensionStore_clone_closure, A._weaveParents_closure, A.paths_closure, A._updateComponents_updateRgb, A._deepMergeImpl_closure, A._nest__closure0, A._append__closure0, A.StylesheetParser__declarationOrBuffer_closure, A.StylesheetParser__declarationOrBuffer_closure0, A.StylesheetParser__styleRule_closure, A.StylesheetParser__propertyOrVariableDeclaration_closure, A.StylesheetParser__propertyOrVariableDeclaration_closure0, A.StylesheetParser__atRootRule_closure, A.StylesheetParser__atRootRule_closure0, A.StylesheetParser__eachRule_closure, A.StylesheetParser__functionRule_closure, A.StylesheetParser__forRule_closure0, A.StylesheetParser__includeRule_closure, A.StylesheetParser_mediaRule_closure, A.StylesheetParser__mixinRule_closure, A.StylesheetParser_mozDocumentRule_closure, A.StylesheetParser_supportsRule_closure, A.StylesheetParser__whileRule_closure, A.StylesheetParser_unknownAtRule_closure, A.StylesheetGraph__recanonicalizeImportsForNode_closure, A.longestCommonSubsequence_backtrack, A.mapAddAll2_closure, A.SassMap_asList_closure, A.SassNumber_plus_closure, A.SassNumber_minus_closure, A.SassNumber__canonicalMultiplier_closure, A._EvaluateVisitor__closure2, A._EvaluateVisitor__evaluateArguments_closure5, A._EvaluateVisitor__evaluateMacroArguments_closure5, A._EvaluateVisitor__addRestMap_closure0, A._EvaluateVisitor__closure, A._EvaluateVisitor__evaluateArguments_closure1, A._EvaluateVisitor__evaluateMacroArguments_closure1, A._EvaluateVisitor__addRestMap_closure, A.SingleMapping_toJson_closure0, A.Highlighter__collateLines_closure0, A.Frame_Frame$parseV8_closure_parseLocation, A.TransformByHandlers_transformByHandlers__closure1, A.RateLimit__debounceAggregate_closure, A._EvaluateVisitor__closure8, A._EvaluateVisitor__evaluateArguments_closure13, A._EvaluateVisitor__evaluateMacroArguments_closure13, A._EvaluateVisitor__addRestMap_closure2, A._updateComponents_updateRgb0, A.legacyColorClass_closure4, A.legacyColorClass_closure5, A.legacyColorClass_closure6, A.legacyColorClass_closure7, A.colorClass__closure, A.colorClass__closure0, A._parseFunctions_closure0, A.ComplexSelector_specificity_closure0, A.CompoundSelector_specificity_closure0, A._EvaluateVisitor__closure5, A._EvaluateVisitor__evaluateArguments_closure9, A._EvaluateVisitor__evaluateMacroArguments_closure9, A._EvaluateVisitor__addRestMap_closure1, A.ExtensionStore_addExtensions_closure1, A.ExtensionStore_addExtensions__closure4, A.ExtensionStore_clone_closure0, A._weaveParents_closure3, A.paths_closure0, A.IfRule_toString_closure0, A.render_closure1, A._parseFunctions_closure, A.legacyListClass_closure0, A.legacyListClass_closure3, A.listClass__closure0, A._deepMergeImpl_closure0, A.legacyMapClass_closure0, A.legacyMapClass_closure1, A.mapClass__closure1, A.SassMap_asList_closure0, A.main_closure0, A.main_closure1, A.legacyNumberClass_closure1, A.legacyNumberClass_closure3, A.numberClass__closure10, A.numberClass__closure11, A.SassNumber_plus_closure0, A.SassNumber_minus_closure0, A.SassNumber__canonicalMultiplier_closure0, A.JSClassExtension_get_defineMethod_closure, A.JSClassExtension_get_defineGetter_closure, A.main_printError, A._nest__closure2, A._append__closure2, A.legacyStringClass_closure1, A.StylesheetParser__declarationOrBuffer_closure1, A.StylesheetParser__declarationOrBuffer_closure2, A.StylesheetParser__styleRule_closure0, A.StylesheetParser__propertyOrVariableDeclaration_closure1, A.StylesheetParser__propertyOrVariableDeclaration_closure2, A.StylesheetParser__atRootRule_closure1, A.StylesheetParser__atRootRule_closure2, A.StylesheetParser__eachRule_closure0, A.StylesheetParser__functionRule_closure0, A.StylesheetParser__forRule_closure2, A.StylesheetParser__includeRule_closure0, A.StylesheetParser_mediaRule_closure0, A.StylesheetParser__mixinRule_closure0, A.StylesheetParser_mozDocumentRule_closure0, A.StylesheetParser_supportsRule_closure0, A.StylesheetParser__whileRule_closure0, A.StylesheetParser_unknownAtRule_closure0, A.futureToPromise_closure0, A.futureToPromise__closure1, A.objectToMap_closure, A.longestCommonSubsequence_backtrack0, A.mapAddAll2_closure0, A.valueClass__closure6, A.valueClass__closure14]);
  99589. _inherit(A.CastList, A._CastListBase);
  99590. _inherit(A.MapBase, A.MapMixin);
  99591. _inheritMany(A.MapBase, [A.CastMap, A.JsLinkedHashMap, A._HashMap, A.UnmodifiableMapBase, A.MergedMapView, A.MergedMapView0]);
  99592. _inheritMany(A.Error, [A.LateError, A.TypeError, A.JsNoSuchMethodError, A.UnknownJsTypeError, A.RuntimeError, A._Error, A.JsonUnsupportedObjectError, A.AssertionError, A.NullThrownError, A.ArgumentError, A.NoSuchMethodError, A.UnsupportedError, A.UnimplementedError, A.StateError, A.ConcurrentModificationError, A.CyclicInitializationError]);
  99593. _inherit(A.ListBase, A._ListBase_Object_ListMixin);
  99594. _inherit(A.UnmodifiableListBase, A.ListBase);
  99595. _inheritMany(A.UnmodifiableListBase, [A.CodeUnits, A.UnmodifiableListView]);
  99596. _inheritMany(A.Closure0Args, [A.nullFuture_closure, A._AsyncRun__scheduleImmediateJsOverride_internalCallback, A._AsyncRun__scheduleImmediateWithSetImmediate_internalCallback, A._TimerImpl_internalCallback, A._TimerImpl$periodic_closure, A._Future__addListener_closure, A._Future__prependListeners_closure, A._Future__chainForeignFuture_closure1, A._Future__asyncCompleteWithValue_closure, A._Future__chainFuture_closure, A._Future__asyncCompleteError_closure, A._Future__propagateToListeners_handleWhenCompleteCallback, A._Future__propagateToListeners_handleValueCallback, A._Future__propagateToListeners_handleError, A.Stream_length_closure0, A._StreamController__subscribe_closure, A._StreamController__recordCancel_complete, A._AddStreamState_cancel_closure, A._BufferingStreamSubscription__sendError_sendError, A._BufferingStreamSubscription__sendDone_sendDone, A._PendingEvents_schedule_closure, A._CustomZone_bindCallback_closure, A._CustomZone_bindCallbackGuarded_closure, A._rootHandleError_closure, A._RootZone_bindCallback_closure, A._RootZone_bindCallbackGuarded_closure, A.Utf8Decoder__decoder_closure, A.Utf8Decoder__decoderNonfatal_closure, A.Parser__setOption_closure, A.StreamGroup_add_closure, A.StreamGroup_add_closure0, A.StreamGroup__listenToStream_closure, A.StreamQueue__ensureListening_closure0, A.ReplAdapter_runAsync_closure, A.ParsedPath__splitExtension_closure0, A.PseudoSelector_specificity_closure, A.AsyncEnvironment_setVariable_closure, A.AsyncEnvironment_setVariable_closure1, A.AsyncImportCache_canonicalize_closure, A.AsyncImportCache_canonicalize_closure0, A.AsyncImportCache__canonicalize_closure, A.AsyncImportCache_importCanonical_closure, A.Environment_setVariable_closure, A.Environment_setVariable_closure1, A.ExecutableOptions__parser_closure, A.ExecutableOptions_interactive_closure, A.ExtensionStore__registerSelector_closure, A.ExtensionStore_addExtension_closure, A.ExtensionStore_addExtension_closure0, A.ExtensionStore_addExtension_closure1, A.ExtensionStore__extendExistingExtensions_closure, A.ExtensionStore__extendExistingExtensions_closure0, A.ExtensionStore_addExtensions___closure, A.ImportCache_canonicalize_closure, A.ImportCache_canonicalize_closure0, A.ImportCache__canonicalize_closure, A.ImportCache_importCanonical_closure, A.resolveImportPath_closure, A.resolveImportPath_closure0, A._tryPathAsDirectory_closure, A._realCasePath_helper_closure, A._readFile_closure, A.writeFile_closure, A.deleteFile_closure, A.fileExists_closure, A.dirExists_closure, A.ensureDir_closure, A.listDir_closure, A.modificationTime_closure, A.watchDir_closure3, A.watchDir__closure, A.AtRootQueryParser_parse_closure, A.KeyframeSelectorParser_parse_closure, A.MediaQueryParser_parse_closure, A.Parser__parseIdentifier_closure, A.SassParser_children_closure, A.SelectorParser_parse_closure, A.SelectorParser_parseCompoundSelector_closure, A.StylesheetParser_parse_closure, A.StylesheetParser_parse__closure, A.StylesheetParser_parseArgumentDeclaration_closure, A.StylesheetParser_parseVariableDeclaration_closure, A.StylesheetParser_parseUseRule_closure, A.StylesheetParser__parseSingleProduction_closure, A.StylesheetParser__statement_closure, A.StylesheetParser_variableDeclarationWithoutNamespace_closure, A.StylesheetParser_variableDeclarationWithoutNamespace_closure0, A.StylesheetParser__forRule_closure, A.StylesheetParser__memberList_closure, A.StylesheetParser__expression_resetState, A.StylesheetParser__expression_resolveOneOperation, A.StylesheetParser__expression_resolveOperations, A.StylesheetParser__expression_resolveSpaceExpressions, A.StylesheetParser_expressionUntilComma_closure, A.StylesheetParser_namespacedExpression_closure, A.StylesheetParser__expressionUntilComparison_closure, A.StylesheetParser__publicIdentifier_closure, A.StylesheetGraph_modifiedSince_transitiveModificationTime_closure, A.StylesheetGraph__add_closure, A.StylesheetGraph_addCanonical_closure, A.StylesheetGraph_reload_closure, A.StylesheetGraph__nodeFor_closure, A.StylesheetGraph__nodeFor_closure0, A.SassNumber__coerceOrConvertValue_compatibilityException, A.SassNumber__coerceOrConvertValue_closure0, A.SassNumber__coerceOrConvertValue_closure2, A.SassNumber_multiplyUnits_closure0, A.SassNumber_multiplyUnits_closure2, A.SingleUnitSassNumber_multiplyUnits_closure0, A._EvaluateVisitor__closure4, A._EvaluateVisitor_run_closure0, A._EvaluateVisitor__loadModule_closure1, A._EvaluateVisitor__loadModule_closure2, A._EvaluateVisitor__execute_closure0, A._EvaluateVisitor__extendModules_closure2, A._EvaluateVisitor_visitAtRootRule_closure2, A._EvaluateVisitor_visitAtRootRule_closure3, A._EvaluateVisitor_visitAtRootRule_closure4, A._EvaluateVisitor__scopeForAtRoot__closure0, A._EvaluateVisitor_visitContentRule_closure0, A._EvaluateVisitor_visitDeclaration_closure2, A._EvaluateVisitor_visitEachRule_closure4, A._EvaluateVisitor_visitExtendRule_closure0, A._EvaluateVisitor_visitAtRule_closure3, A._EvaluateVisitor_visitAtRule__closure0, A._EvaluateVisitor_visitForRule_closure4, A._EvaluateVisitor_visitForRule_closure5, A._EvaluateVisitor_visitForRule_closure6, A._EvaluateVisitor_visitForRule_closure7, A._EvaluateVisitor_visitForRule_closure8, A._EvaluateVisitor_visitIfRule_closure0, A._EvaluateVisitor__visitDynamicImport_closure0, A._EvaluateVisitor__visitDynamicImport__closure6, A._EvaluateVisitor_visitIncludeRule_closure3, A._EvaluateVisitor_visitIncludeRule_closure4, A._EvaluateVisitor_visitIncludeRule_closure5, A._EvaluateVisitor_visitIncludeRule__closure0, A._EvaluateVisitor_visitIncludeRule___closure0, A._EvaluateVisitor_visitIncludeRule____closure0, A._EvaluateVisitor_visitMediaRule_closure3, A._EvaluateVisitor_visitMediaRule__closure0, A._EvaluateVisitor_visitMediaRule___closure0, A._EvaluateVisitor__visitMediaQueries_closure0, A._EvaluateVisitor_visitStyleRule_closure7, A._EvaluateVisitor_visitStyleRule_closure8, A._EvaluateVisitor_visitStyleRule_closure10, A._EvaluateVisitor_visitStyleRule_closure11, A._EvaluateVisitor_visitStyleRule_closure12, A._EvaluateVisitor_visitStyleRule__closure0, A._EvaluateVisitor_visitSupportsRule_closure1, A._EvaluateVisitor_visitSupportsRule__closure0, A._EvaluateVisitor_visitVariableDeclaration_closure2, A._EvaluateVisitor_visitVariableDeclaration_closure3, A._EvaluateVisitor_visitVariableDeclaration_closure4, A._EvaluateVisitor_visitWarnRule_closure0, A._EvaluateVisitor_visitWhileRule_closure0, A._EvaluateVisitor_visitBinaryOperationExpression_closure0, A._EvaluateVisitor_visitVariableExpression_closure0, A._EvaluateVisitor_visitUnaryOperationExpression_closure0, A._EvaluateVisitor__visitCalculationValue_closure0, A._EvaluateVisitor_visitFunctionExpression_closure1, A._EvaluateVisitor_visitFunctionExpression_closure2, A._EvaluateVisitor_visitInterpolatedFunctionExpression_closure0, A._EvaluateVisitor__runUserDefinedCallable_closure0, A._EvaluateVisitor__runUserDefinedCallable__closure0, A._EvaluateVisitor__runUserDefinedCallable___closure0, A._EvaluateVisitor__runFunctionCallable_closure0, A._EvaluateVisitor__runBuiltInCallable_closure1, A._EvaluateVisitor__verifyArguments_closure0, A._EvaluateVisitor_visitCssAtRule_closure1, A._EvaluateVisitor_visitCssKeyframeBlock_closure1, A._EvaluateVisitor_visitCssMediaRule_closure3, A._EvaluateVisitor_visitCssMediaRule__closure0, A._EvaluateVisitor_visitCssMediaRule___closure0, A._EvaluateVisitor_visitCssStyleRule_closure1, A._EvaluateVisitor_visitCssStyleRule__closure0, A._EvaluateVisitor_visitCssSupportsRule_closure1, A._EvaluateVisitor_visitCssSupportsRule__closure0, A._EvaluateVisitor__serialize_closure0, A._EvaluateVisitor__expressionNode_closure0, A._EvaluateVisitor__closure1, A._EvaluateVisitor_run_closure, A._EvaluateVisitor_runExpression_closure, A._EvaluateVisitor_runExpression__closure, A._EvaluateVisitor_runStatement_closure, A._EvaluateVisitor_runStatement__closure, A._EvaluateVisitor__loadModule_closure, A._EvaluateVisitor__loadModule_closure0, A._EvaluateVisitor__execute_closure, A._EvaluateVisitor__extendModules_closure0, A._EvaluateVisitor_visitAtRootRule_closure, A._EvaluateVisitor_visitAtRootRule_closure0, A._EvaluateVisitor_visitAtRootRule_closure1, A._EvaluateVisitor__scopeForAtRoot__closure, A._EvaluateVisitor_visitContentRule_closure, A._EvaluateVisitor_visitDeclaration_closure0, A._EvaluateVisitor_visitEachRule_closure1, A._EvaluateVisitor_visitExtendRule_closure, A._EvaluateVisitor_visitAtRule_closure0, A._EvaluateVisitor_visitAtRule__closure, A._EvaluateVisitor_visitForRule_closure, A._EvaluateVisitor_visitForRule_closure0, A._EvaluateVisitor_visitForRule_closure1, A._EvaluateVisitor_visitForRule_closure2, A._EvaluateVisitor_visitForRule_closure3, A._EvaluateVisitor_visitIfRule_closure, A._EvaluateVisitor__visitDynamicImport_closure, A._EvaluateVisitor__visitDynamicImport__closure2, A._EvaluateVisitor_visitIncludeRule_closure, A._EvaluateVisitor_visitIncludeRule_closure0, A._EvaluateVisitor_visitIncludeRule_closure1, A._EvaluateVisitor_visitIncludeRule__closure, A._EvaluateVisitor_visitIncludeRule___closure, A._EvaluateVisitor_visitIncludeRule____closure, A._EvaluateVisitor_visitMediaRule_closure0, A._EvaluateVisitor_visitMediaRule__closure, A._EvaluateVisitor_visitMediaRule___closure, A._EvaluateVisitor__visitMediaQueries_closure, A._EvaluateVisitor_visitStyleRule_closure, A._EvaluateVisitor_visitStyleRule_closure0, A._EvaluateVisitor_visitStyleRule_closure2, A._EvaluateVisitor_visitStyleRule_closure3, A._EvaluateVisitor_visitStyleRule_closure4, A._EvaluateVisitor_visitStyleRule__closure, A._EvaluateVisitor_visitSupportsRule_closure, A._EvaluateVisitor_visitSupportsRule__closure, A._EvaluateVisitor_visitVariableDeclaration_closure, A._EvaluateVisitor_visitVariableDeclaration_closure0, A._EvaluateVisitor_visitVariableDeclaration_closure1, A._EvaluateVisitor_visitWarnRule_closure, A._EvaluateVisitor_visitWhileRule_closure, A._EvaluateVisitor_visitBinaryOperationExpression_closure, A._EvaluateVisitor_visitVariableExpression_closure, A._EvaluateVisitor_visitUnaryOperationExpression_closure, A._EvaluateVisitor__visitCalculationValue_closure, A._EvaluateVisitor_visitFunctionExpression_closure, A._EvaluateVisitor_visitFunctionExpression_closure0, A._EvaluateVisitor_visitInterpolatedFunctionExpression_closure, A._EvaluateVisitor__runUserDefinedCallable_closure, A._EvaluateVisitor__runUserDefinedCallable__closure, A._EvaluateVisitor__runUserDefinedCallable___closure, A._EvaluateVisitor__runFunctionCallable_closure, A._EvaluateVisitor__runBuiltInCallable_closure, A._EvaluateVisitor__verifyArguments_closure, A._EvaluateVisitor_visitCssAtRule_closure, A._EvaluateVisitor_visitCssKeyframeBlock_closure, A._EvaluateVisitor_visitCssMediaRule_closure0, A._EvaluateVisitor_visitCssMediaRule__closure, A._EvaluateVisitor_visitCssMediaRule___closure, A._EvaluateVisitor_visitCssStyleRule_closure, A._EvaluateVisitor_visitCssStyleRule__closure, A._EvaluateVisitor_visitCssSupportsRule_closure, A._EvaluateVisitor_visitCssSupportsRule__closure, A._EvaluateVisitor__serialize_closure, A._EvaluateVisitor__expressionNode_closure, A._SerializeVisitor_visitCssComment_closure, A._SerializeVisitor_visitCssAtRule_closure, A._SerializeVisitor_visitCssMediaRule_closure, A._SerializeVisitor_visitCssImport_closure, A._SerializeVisitor_visitCssImport__closure, A._SerializeVisitor_visitCssKeyframeBlock_closure, A._SerializeVisitor_visitCssStyleRule_closure, A._SerializeVisitor_visitCssSupportsRule_closure, A._SerializeVisitor_visitCssDeclaration_closure, A._SerializeVisitor_visitCssDeclaration_closure0, A._SerializeVisitor__write_closure, A._SerializeVisitor__visitChildren_closure, A._SerializeVisitor__visitChildren_closure0, A.SingleMapping_SingleMapping$fromEntries_closure, A.SingleMapping_SingleMapping$fromEntries_closure0, A.Highlighter_closure, A.Highlighter__writeFileStart_closure, A.Highlighter__writeMultilineHighlights_closure, A.Highlighter__writeMultilineHighlights_closure0, A.Highlighter__writeMultilineHighlights_closure1, A.Highlighter__writeMultilineHighlights_closure2, A.Highlighter__writeMultilineHighlights__closure, A.Highlighter__writeMultilineHighlights__closure0, A.Highlighter__writeHighlightedText_closure, A.Highlighter__writeIndicator_closure, A.Highlighter__writeIndicator_closure0, A.Highlighter__writeIndicator_closure1, A.Highlighter__writeLabel_closure, A.Highlighter__writeLabel_closure0, A.Highlighter__writeSidebar_closure, A._Highlight_closure, A.Frame_Frame$parseVM_closure, A.Frame_Frame$parseV8_closure, A.Frame_Frame$_parseFirefoxEval_closure, A.Frame_Frame$parseFirefox_closure, A.Frame_Frame$parseFriendly_closure, A.LazyTrace_terse_closure, A.Trace_Trace$from_closure, A.TransformByHandlers_transformByHandlers_closure, A.TransformByHandlers_transformByHandlers__closure0, A.TransformByHandlers_transformByHandlers__closure2, A.RateLimit__debounceAggregate_closure_emit, A.RateLimit__debounceAggregate__closure, A.argumentListClass_closure, A.AsyncEnvironment_setVariable_closure2, A.AsyncEnvironment_setVariable_closure4, A._EvaluateVisitor__closure10, A._EvaluateVisitor_run_closure2, A._EvaluateVisitor__loadModule_closure5, A._EvaluateVisitor__loadModule_closure6, A._EvaluateVisitor__execute_closure2, A._EvaluateVisitor__extendModules_closure6, A._EvaluateVisitor_visitAtRootRule_closure8, A._EvaluateVisitor_visitAtRootRule_closure9, A._EvaluateVisitor_visitAtRootRule_closure10, A._EvaluateVisitor__scopeForAtRoot__closure2, A._EvaluateVisitor_visitContentRule_closure2, A._EvaluateVisitor_visitDeclaration_closure6, A._EvaluateVisitor_visitEachRule_closure10, A._EvaluateVisitor_visitExtendRule_closure2, A._EvaluateVisitor_visitAtRule_closure9, A._EvaluateVisitor_visitAtRule__closure2, A._EvaluateVisitor_visitForRule_closure14, A._EvaluateVisitor_visitForRule_closure15, A._EvaluateVisitor_visitForRule_closure16, A._EvaluateVisitor_visitForRule_closure17, A._EvaluateVisitor_visitForRule_closure18, A._EvaluateVisitor_visitIfRule_closure2, A._EvaluateVisitor__visitDynamicImport_closure2, A._EvaluateVisitor__visitDynamicImport__closure14, A._EvaluateVisitor_visitIncludeRule_closure11, A._EvaluateVisitor_visitIncludeRule_closure12, A._EvaluateVisitor_visitIncludeRule_closure13, A._EvaluateVisitor_visitIncludeRule__closure2, A._EvaluateVisitor_visitIncludeRule___closure2, A._EvaluateVisitor_visitIncludeRule____closure2, A._EvaluateVisitor_visitMediaRule_closure9, A._EvaluateVisitor_visitMediaRule__closure2, A._EvaluateVisitor_visitMediaRule___closure2, A._EvaluateVisitor__visitMediaQueries_closure2, A._EvaluateVisitor_visitStyleRule_closure23, A._EvaluateVisitor_visitStyleRule_closure24, A._EvaluateVisitor_visitStyleRule_closure26, A._EvaluateVisitor_visitStyleRule_closure27, A._EvaluateVisitor_visitStyleRule_closure28, A._EvaluateVisitor_visitStyleRule__closure2, A._EvaluateVisitor_visitSupportsRule_closure5, A._EvaluateVisitor_visitSupportsRule__closure2, A._EvaluateVisitor_visitVariableDeclaration_closure8, A._EvaluateVisitor_visitVariableDeclaration_closure9, A._EvaluateVisitor_visitVariableDeclaration_closure10, A._EvaluateVisitor_visitWarnRule_closure2, A._EvaluateVisitor_visitWhileRule_closure2, A._EvaluateVisitor_visitBinaryOperationExpression_closure2, A._EvaluateVisitor_visitVariableExpression_closure2, A._EvaluateVisitor_visitUnaryOperationExpression_closure2, A._EvaluateVisitor__visitCalculationValue_closure2, A._EvaluateVisitor_visitFunctionExpression_closure5, A._EvaluateVisitor_visitFunctionExpression_closure6, A._EvaluateVisitor_visitInterpolatedFunctionExpression_closure2, A._EvaluateVisitor__runUserDefinedCallable_closure2, A._EvaluateVisitor__runUserDefinedCallable__closure2, A._EvaluateVisitor__runUserDefinedCallable___closure2, A._EvaluateVisitor__runFunctionCallable_closure2, A._EvaluateVisitor__runBuiltInCallable_closure5, A._EvaluateVisitor__verifyArguments_closure2, A._EvaluateVisitor_visitCssAtRule_closure5, A._EvaluateVisitor_visitCssKeyframeBlock_closure5, A._EvaluateVisitor_visitCssMediaRule_closure9, A._EvaluateVisitor_visitCssMediaRule__closure2, A._EvaluateVisitor_visitCssMediaRule___closure2, A._EvaluateVisitor_visitCssStyleRule_closure5, A._EvaluateVisitor_visitCssStyleRule__closure2, A._EvaluateVisitor_visitCssSupportsRule_closure5, A._EvaluateVisitor_visitCssSupportsRule__closure2, A._EvaluateVisitor__serialize_closure2, A._EvaluateVisitor__expressionNode_closure2, A.AsyncImportCache_canonicalize_closure1, A.AsyncImportCache_canonicalize_closure2, A.AsyncImportCache__canonicalize_closure0, A.AsyncImportCache_importCanonical_closure0, A.AtRootQueryParser_parse_closure0, A.legacyBooleanClass_closure, A.booleanClass_closure, A.colorClass_closure, A.compileAsync_closure, A.compileStringAsync_closure, A.Environment_setVariable_closure2, A.Environment_setVariable_closure4, A._EvaluateVisitor__closure7, A._EvaluateVisitor_run_closure1, A._EvaluateVisitor__loadModule_closure3, A._EvaluateVisitor__loadModule_closure4, A._EvaluateVisitor__execute_closure1, A._EvaluateVisitor__extendModules_closure4, A._EvaluateVisitor_visitAtRootRule_closure5, A._EvaluateVisitor_visitAtRootRule_closure6, A._EvaluateVisitor_visitAtRootRule_closure7, A._EvaluateVisitor__scopeForAtRoot__closure1, A._EvaluateVisitor_visitContentRule_closure1, A._EvaluateVisitor_visitDeclaration_closure4, A._EvaluateVisitor_visitEachRule_closure7, A._EvaluateVisitor_visitExtendRule_closure1, A._EvaluateVisitor_visitAtRule_closure6, A._EvaluateVisitor_visitAtRule__closure1, A._EvaluateVisitor_visitForRule_closure9, A._EvaluateVisitor_visitForRule_closure10, A._EvaluateVisitor_visitForRule_closure11, A._EvaluateVisitor_visitForRule_closure12, A._EvaluateVisitor_visitForRule_closure13, A._EvaluateVisitor_visitIfRule_closure1, A._EvaluateVisitor__visitDynamicImport_closure1, A._EvaluateVisitor__visitDynamicImport__closure10, A._EvaluateVisitor_visitIncludeRule_closure7, A._EvaluateVisitor_visitIncludeRule_closure8, A._EvaluateVisitor_visitIncludeRule_closure9, A._EvaluateVisitor_visitIncludeRule__closure1, A._EvaluateVisitor_visitIncludeRule___closure1, A._EvaluateVisitor_visitIncludeRule____closure1, A._EvaluateVisitor_visitMediaRule_closure6, A._EvaluateVisitor_visitMediaRule__closure1, A._EvaluateVisitor_visitMediaRule___closure1, A._EvaluateVisitor__visitMediaQueries_closure1, A._EvaluateVisitor_visitStyleRule_closure15, A._EvaluateVisitor_visitStyleRule_closure16, A._EvaluateVisitor_visitStyleRule_closure18, A._EvaluateVisitor_visitStyleRule_closure19, A._EvaluateVisitor_visitStyleRule_closure20, A._EvaluateVisitor_visitStyleRule__closure1, A._EvaluateVisitor_visitSupportsRule_closure3, A._EvaluateVisitor_visitSupportsRule__closure1, A._EvaluateVisitor_visitVariableDeclaration_closure5, A._EvaluateVisitor_visitVariableDeclaration_closure6, A._EvaluateVisitor_visitVariableDeclaration_closure7, A._EvaluateVisitor_visitWarnRule_closure1, A._EvaluateVisitor_visitWhileRule_closure1, A._EvaluateVisitor_visitBinaryOperationExpression_closure1, A._EvaluateVisitor_visitVariableExpression_closure1, A._EvaluateVisitor_visitUnaryOperationExpression_closure1, A._EvaluateVisitor__visitCalculationValue_closure1, A._EvaluateVisitor_visitFunctionExpression_closure3, A._EvaluateVisitor_visitFunctionExpression_closure4, A._EvaluateVisitor_visitInterpolatedFunctionExpression_closure1, A._EvaluateVisitor__runUserDefinedCallable_closure1, A._EvaluateVisitor__runUserDefinedCallable__closure1, A._EvaluateVisitor__runUserDefinedCallable___closure1, A._EvaluateVisitor__runFunctionCallable_closure1, A._EvaluateVisitor__runBuiltInCallable_closure3, A._EvaluateVisitor__verifyArguments_closure1, A._EvaluateVisitor_visitCssAtRule_closure3, A._EvaluateVisitor_visitCssKeyframeBlock_closure3, A._EvaluateVisitor_visitCssMediaRule_closure6, A._EvaluateVisitor_visitCssMediaRule__closure1, A._EvaluateVisitor_visitCssMediaRule___closure1, A._EvaluateVisitor_visitCssStyleRule_closure3, A._EvaluateVisitor_visitCssStyleRule__closure1, A._EvaluateVisitor_visitCssSupportsRule_closure3, A._EvaluateVisitor_visitCssSupportsRule__closure1, A._EvaluateVisitor__serialize_closure1, A._EvaluateVisitor__expressionNode_closure1, A.exceptionClass_closure, A.ExtensionStore__registerSelector_closure0, A.ExtensionStore_addExtension_closure2, A.ExtensionStore_addExtension_closure3, A.ExtensionStore_addExtension_closure4, A.ExtensionStore__extendExistingExtensions_closure1, A.ExtensionStore__extendExistingExtensions_closure2, A.ExtensionStore_addExtensions___closure0, A.functionClass_closure, A.NodeImporter__tryPath_closure, A.ImportCache_canonicalize_closure1, A.ImportCache_canonicalize_closure2, A.ImportCache__canonicalize_closure0, A.ImportCache_importCanonical_closure0, A._realCasePath_helper_closure0, A.KeyframeSelectorParser_parse_closure0, A.render_closure, A._parseFunctions____closure, A._parseFunctions___closure1, A._parseImporter____closure, A._parseImporter___closure0, A.listClass_closure, A.mapClass_closure, A.MediaQueryParser_parse_closure0, A._readFile_closure0, A.fileExists_closure0, A.dirExists_closure0, A.listDir_closure0, A.NodeToDartLogger_warn_closure, A.NodeToDartLogger_debug_closure, A.legacyNullClass_closure, A.numberClass_closure, A.SassNumber__coerceOrConvertValue_compatibilityException0, A.SassNumber__coerceOrConvertValue_closure4, A.SassNumber__coerceOrConvertValue_closure6, A.SassNumber_multiplyUnits_closure4, A.SassNumber_multiplyUnits_closure6, A.Parser__parseIdentifier_closure0, A.PseudoSelector_specificity_closure0, A.main_closure, A.SassParser_children_closure0, A.SelectorParser_parse_closure0, A.SelectorParser_parseCompoundSelector_closure0, A._SerializeVisitor_visitCssComment_closure0, A._SerializeVisitor_visitCssAtRule_closure0, A._SerializeVisitor_visitCssMediaRule_closure0, A._SerializeVisitor_visitCssImport_closure0, A._SerializeVisitor_visitCssImport__closure0, A._SerializeVisitor_visitCssKeyframeBlock_closure0, A._SerializeVisitor_visitCssStyleRule_closure0, A._SerializeVisitor_visitCssSupportsRule_closure0, A._SerializeVisitor_visitCssDeclaration_closure1, A._SerializeVisitor_visitCssDeclaration_closure2, A._SerializeVisitor__write_closure0, A._SerializeVisitor__visitChildren_closure1, A._SerializeVisitor__visitChildren_closure2, A.SingleUnitSassNumber_multiplyUnits_closure2, A.stringClass_closure, A.StylesheetParser_parse_closure0, A.StylesheetParser_parse__closure1, A.StylesheetParser_parseArgumentDeclaration_closure0, A.StylesheetParser__parseSingleProduction_closure0, A.StylesheetParser_parseSignature_closure, A.StylesheetParser__statement_closure0, A.StylesheetParser_variableDeclarationWithoutNamespace_closure1, A.StylesheetParser_variableDeclarationWithoutNamespace_closure2, A.StylesheetParser__forRule_closure1, A.StylesheetParser__memberList_closure0, A.StylesheetParser__expression_resetState0, A.StylesheetParser__expression_resolveOneOperation0, A.StylesheetParser__expression_resolveOperations0, A.StylesheetParser__expression_resolveSpaceExpressions0, A.StylesheetParser_expressionUntilComma_closure0, A.StylesheetParser_namespacedExpression_closure0, A.StylesheetParser__expressionUntilComparison_closure0, A.StylesheetParser__publicIdentifier_closure0, A.resolveImportPath_closure1, A.resolveImportPath_closure2, A._tryPathAsDirectory_closure0, A.valueClass_closure]);
  99597. _inheritMany(A.EfficientLengthIterable, [A.ListIterable, A.EmptyIterable, A.LinkedHashMapKeyIterable, A._HashMapKeyIterable, A._MapBaseValueIterable]);
  99598. _inheritMany(A.ListIterable, [A.SubListIterable, A.MappedListIterable, A.ReversedListIterable, A.ListQueue, A._GeneratorIterable]);
  99599. _inherit(A.EfficientLengthMappedIterable, A.MappedIterable);
  99600. _inheritMany(A.Iterator, [A.MappedIterator, A.WhereIterator, A.TakeIterator, A.SkipIterator, A.SkipWhileIterator]);
  99601. _inherit(A.EfficientLengthTakeIterable, A.TakeIterable);
  99602. _inherit(A.EfficientLengthSkipIterable, A.SkipIterable);
  99603. _inherit(A.EfficientLengthFollowedByIterable, A.FollowedByIterable);
  99604. _inheritMany(A.MapView, [A._UnmodifiableMapView_MapView__UnmodifiableMapMixin, A.PathMap]);
  99605. _inherit(A.UnmodifiableMapView, A._UnmodifiableMapView_MapView__UnmodifiableMapMixin);
  99606. _inherit(A.ConstantMapView, A.UnmodifiableMapView);
  99607. _inheritMany(A.ConstantMap, [A.ConstantStringMap, A.GeneralConstantMap]);
  99608. _inherit(A.Instantiation1, A.Instantiation);
  99609. _inherit(A.NullError, A.TypeError);
  99610. _inheritMany(A.TearOffClosure, [A.StaticClosure, A.BoundClosure]);
  99611. _inheritMany(A.IterableBase, [A._AllMatchesIterable, A._SyncStarIterable, A._EmptyUnmodifiableSet_IterableBase_UnmodifiableSetMixin, A._PrefixedKeys, A._UnprefixedKeys, A._PrefixedKeys0, A._UnprefixedKeys0]);
  99612. _inherit(A.NativeTypedArray, A.NativeTypedData);
  99613. _inheritMany(A.NativeTypedArray, [A._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin, A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin]);
  99614. _inherit(A._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin, A._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin);
  99615. _inherit(A.NativeTypedArrayOfDouble, A._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin);
  99616. _inherit(A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin, A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin);
  99617. _inherit(A.NativeTypedArrayOfInt, A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin);
  99618. _inheritMany(A.NativeTypedArrayOfInt, [A.NativeInt16List, A.NativeInt32List, A.NativeInt8List, A.NativeUint16List, A.NativeUint32List, A.NativeUint8ClampedList, A.NativeUint8List]);
  99619. _inherit(A._TypeError, A._Error);
  99620. _inheritMany(A._Completer, [A._AsyncCompleter, A._SyncCompleter]);
  99621. _inheritMany(A._StreamController, [A._AsyncStreamController, A._SyncStreamController]);
  99622. _inheritMany(A.Stream, [A._StreamImpl, A._ForwardingStream, A._CompleterStream]);
  99623. _inherit(A._ControllerStream, A._StreamImpl);
  99624. _inheritMany(A._BufferingStreamSubscription, [A._ControllerSubscription, A._ForwardingStreamSubscription]);
  99625. _inherit(A._StreamControllerAddStreamState, A._AddStreamState);
  99626. _inheritMany(A._DelayedEvent, [A._DelayedData, A._DelayedError]);
  99627. _inherit(A._ExpandStream, A._ForwardingStream);
  99628. _inheritMany(A._Zone, [A._CustomZone, A._RootZone]);
  99629. _inherit(A._IdentityHashMap, A._HashMap);
  99630. _inheritMany(A.JsLinkedHashMap, [A._LinkedIdentityHashMap, A._LinkedCustomHashMap]);
  99631. _inherit(A._SetBase, A.__SetBase_Object_SetMixin);
  99632. _inheritMany(A._SetBase, [A._LinkedHashSet, A.__UnmodifiableSet__SetBase__UnmodifiableSetMixin]);
  99633. _inherit(A._LinkedIdentityHashSet, A._LinkedHashSet);
  99634. _inherit(A._UnmodifiableSet, A.__UnmodifiableSet__SetBase__UnmodifiableSetMixin);
  99635. _inheritMany(A.Codec, [A.Encoding, A.Base64Codec, A.JsonCodec]);
  99636. _inheritMany(A.Encoding, [A.AsciiCodec, A.Utf8Codec]);
  99637. _inherit(A.Converter, A.StreamTransformerBase);
  99638. _inheritMany(A.Converter, [A._UnicodeSubsetEncoder, A.Base64Encoder, A.JsonEncoder, A.Utf8Encoder, A.Utf8Decoder]);
  99639. _inherit(A.AsciiEncoder, A._UnicodeSubsetEncoder);
  99640. _inherit(A.ByteConversionSink, A.ChunkedConversionSink);
  99641. _inheritMany(A.ByteConversionSink, [A.ByteConversionSinkBase, A._Utf8StringSinkAdapter]);
  99642. _inherit(A._Base64EncoderSink, A.ByteConversionSinkBase);
  99643. _inherit(A._Utf8Base64EncoderSink, A._Base64EncoderSink);
  99644. _inherit(A.JsonCyclicError, A.JsonUnsupportedObjectError);
  99645. _inherit(A._JsonStringStringifier, A._JsonStringifier);
  99646. _inherit(A.StringConversionSinkBase, A.StringConversionSinkMixin);
  99647. _inherit(A._StringSinkConversionSink, A.StringConversionSinkBase);
  99648. _inherit(A._StringCallbackSink, A._StringSinkConversionSink);
  99649. _inheritMany(A.ArgumentError, [A.RangeError, A.IndexError]);
  99650. _inherit(A._DataUri, A._Uri);
  99651. _inherit(A.ArgParserException, A.FormatException);
  99652. _inherit(A.EmptyUnmodifiableSet, A._EmptyUnmodifiableSet_IterableBase_UnmodifiableSetMixin);
  99653. _inherit(A.QueueList, A._QueueList_Object_ListMixin);
  99654. _inherit(A._CastQueueList, A.QueueList);
  99655. _inheritMany(A._DelegatingIterableBase, [A.DelegatingSet, A._MapKeySet__DelegatingIterableBase_UnmodifiableSetMixin]);
  99656. _inherit(A._UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin, A.DelegatingSet);
  99657. _inherit(A.UnmodifiableSetView, A._UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin);
  99658. _inherit(A.MapKeySet, A._MapKeySet__DelegatingIterableBase_UnmodifiableSetMixin);
  99659. _inheritMany(A.NodeJsError, [A.JsAssertionError, A.JsRangeError, A.JsReferenceError, A.JsSyntaxError, A.JsTypeError, A.JsSystemError]);
  99660. _inheritMany(A.Socket, [A.TTYReadStream, A.TTYWriteStream]);
  99661. _inherit(A.InternalStyle, A.Style);
  99662. _inheritMany(A.InternalStyle, [A.PosixStyle, A.UrlStyle, A.WindowsStyle]);
  99663. _inherit(A.CssNode, A.AstNode);
  99664. _inheritMany(A.CssNode, [A.ModifiableCssNode, A.CssParentNode]);
  99665. _inheritMany(A.ModifiableCssNode, [A.ModifiableCssParentNode, A.ModifiableCssComment, A.ModifiableCssDeclaration, A.ModifiableCssImport]);
  99666. _inheritMany(A.ModifiableCssParentNode, [A.ModifiableCssAtRule, A.ModifiableCssKeyframeBlock, A.ModifiableCssMediaRule, A.ModifiableCssStyleRule, A.ModifiableCssStylesheet, A.ModifiableCssSupportsRule]);
  99667. _inherit(A._IsInvisibleVisitor, A.__IsInvisibleVisitor_Object_EveryCssVisitor);
  99668. _inherit(A.CssStylesheet, A.CssParentNode);
  99669. _inheritMany(A._Enum, [A.BinaryOperator, A.UnaryOperator, A.AttributeOperator, A.Combinator, A.ExtendMode, A.Syntax, A.CalculationOperator, A.ListSeparator, A.OutputStyle, A.LineFeed, A.AttributeOperator0, A.BinaryOperator0, A.CalculationOperator0, A.Combinator0, A.ListSeparator0, A.ExtendMode0, A.OutputStyle0, A.LineFeed0, A.Syntax0, A.UnaryOperator0]);
  99670. _inheritMany(A.ParentStatement, [A.AtRootRule, A.AtRule, A.CallableDeclaration, A.Declaration, A.EachRule, A.ForRule, A.MediaRule, A.StyleRule, A.Stylesheet, A.SupportsRule, A.WhileRule]);
  99671. _inheritMany(A.CallableDeclaration, [A.ContentBlock, A.FunctionRule, A.MixinRule]);
  99672. _inheritMany(A.IfRuleClause, [A.IfClause, A.ElseClause]);
  99673. _inherit(A._HasContentVisitor, A.__HasContentVisitor_Object_StatementSearchVisitor);
  99674. _inherit(A._IsInvisibleVisitor0, A.__IsInvisibleVisitor_Object_AnySelectorVisitor);
  99675. _inherit(A._IsBogusVisitor, A.__IsBogusVisitor_Object_AnySelectorVisitor);
  99676. _inherit(A._IsUselessVisitor, A.__IsUselessVisitor_Object_AnySelectorVisitor);
  99677. _inheritMany(A.Selector, [A.SimpleSelector, A.ComplexSelector, A.CompoundSelector, A.SelectorList]);
  99678. _inheritMany(A.SimpleSelector, [A.AttributeSelector, A.ClassSelector, A.IDSelector, A.ParentSelector, A.PlaceholderSelector, A.PseudoSelector, A.TypeSelector, A.UniversalSelector]);
  99679. _inherit(A.ExplicitConfiguration, A.Configuration);
  99680. _inheritMany(A.SourceSpanException, [A.SassException, A.SourceSpanFormatException, A.SassException0]);
  99681. _inheritMany(A.SassException, [A.MultiSpanSassException, A.SassRuntimeException, A.SassFormatException]);
  99682. _inherit(A.MultiSpanSassRuntimeException, A.MultiSpanSassException);
  99683. _inherit(A.MultiSpanSassScriptException, A.SassScriptException);
  99684. _inherit(A.MergedExtension, A.Extension);
  99685. _inherit(A.Importer, A.AsyncImporter);
  99686. _inherit(A.FilesystemImporter, A.Importer);
  99687. _inheritMany(A.Parser, [A.AtRootQueryParser, A.StylesheetParser, A.KeyframeSelectorParser, A.MediaQueryParser, A.SelectorParser]);
  99688. _inheritMany(A.StylesheetParser, [A.ScssParser, A.SassParser]);
  99689. _inherit(A.CssParser, A.ScssParser);
  99690. _inheritMany(A.UnmodifiableMapBase, [A.LimitedMapView, A.PrefixedMapView, A.PublicMemberMapView, A.UnprefixedMapView, A.LimitedMapView0, A.PrefixedMapView0, A.PublicMemberMapView0, A.UnprefixedMapView0]);
  99691. _inheritMany(A.Value, [A.SassList, A.SassBoolean, A.SassCalculation, A.SassColor, A.SassFunction, A.SassMap, A._SassNull, A.SassNumber, A.SassString]);
  99692. _inherit(A.SassArgumentList, A.SassList);
  99693. _inheritMany(A.SassNumber, [A.ComplexSassNumber, A.SingleUnitSassNumber, A.UnitlessSassNumber]);
  99694. _inherit(A._FindDependenciesVisitor, A.__FindDependenciesVisitor_Object_RecursiveStatementVisitor);
  99695. _inherit(A.SingleMapping, A.Mapping);
  99696. _inherit(A.FileLocation, A.SourceLocationMixin);
  99697. _inheritMany(A.SourceSpanMixin, [A._FileSpan, A.SourceSpanBase]);
  99698. _inherit(A.SourceSpanWithContext, A.SourceSpanBase);
  99699. _inherit(A.StringScannerException, A.SourceSpanFormatException);
  99700. _inheritMany(A.StringScanner, [A.LineScanner, A.SpanScanner]);
  99701. _inheritMany(A.Value0, [A.SassList0, A.SassBoolean0, A.SassCalculation0, A.SassColor0, A.SassNumber0, A.SassFunction0, A.SassMap0, A._SassNull0, A.SassString0]);
  99702. _inherit(A.SassArgumentList0, A.SassList0);
  99703. _inheritMany(A.AsyncImporter0, [A.NodeToDartAsyncImporter, A.NodeToDartAsyncFileImporter, A.Importer0]);
  99704. _inheritMany(A.Parser1, [A.AtRootQueryParser0, A.StylesheetParser0, A.KeyframeSelectorParser0, A.MediaQueryParser0, A.SelectorParser0]);
  99705. _inheritMany(A.ParentStatement0, [A.AtRootRule0, A.AtRule0, A.CallableDeclaration0, A.Declaration0, A.EachRule0, A.ForRule0, A.MediaRule0, A.StyleRule0, A.Stylesheet0, A.SupportsRule0, A.WhileRule0]);
  99706. _inherit(A.CssNode0, A.AstNode0);
  99707. _inheritMany(A.CssNode0, [A.ModifiableCssNode0, A.CssParentNode0]);
  99708. _inheritMany(A.ModifiableCssNode0, [A.ModifiableCssParentNode0, A.ModifiableCssComment0, A.ModifiableCssDeclaration0, A.ModifiableCssImport0]);
  99709. _inheritMany(A.ModifiableCssParentNode0, [A.ModifiableCssAtRule0, A.ModifiableCssKeyframeBlock0, A.ModifiableCssMediaRule0, A.ModifiableCssStyleRule0, A.ModifiableCssStylesheet0, A.ModifiableCssSupportsRule0]);
  99710. _inheritMany(A.Selector0, [A.SimpleSelector0, A.ComplexSelector0, A.CompoundSelector0, A.SelectorList0]);
  99711. _inheritMany(A.SimpleSelector0, [A.AttributeSelector0, A.ClassSelector0, A.IDSelector0, A.ParentSelector0, A.PlaceholderSelector0, A.PseudoSelector0, A.TypeSelector0, A.UniversalSelector0]);
  99712. _inherit(A.CompileStringOptions, A.CompileOptions);
  99713. _inheritMany(A.SassNumber0, [A.ComplexSassNumber0, A.SingleUnitSassNumber0, A.UnitlessSassNumber0]);
  99714. _inherit(A.ExplicitConfiguration0, A.Configuration0);
  99715. _inheritMany(A.CallableDeclaration0, [A.ContentBlock0, A.FunctionRule0, A.MixinRule0]);
  99716. _inheritMany(A.StylesheetParser0, [A.ScssParser0, A.SassParser0]);
  99717. _inherit(A.CssParser0, A.ScssParser0);
  99718. _inherit(A._NodeException, A.JsError);
  99719. _inheritMany(A.SassException0, [A.MultiSpanSassException0, A.SassRuntimeException0, A.SassFormatException0]);
  99720. _inherit(A.MultiSpanSassRuntimeException0, A.MultiSpanSassException0);
  99721. _inherit(A.MultiSpanSassScriptException0, A.SassScriptException0);
  99722. _inheritMany(A.Importer0, [A.NodeToDartFileImporter, A.FilesystemImporter0, A.NoOpImporter, A.NodeToDartImporter]);
  99723. _inheritMany(A.IfRuleClause0, [A.IfClause0, A.ElseClause0]);
  99724. _inherit(A.MergedExtension0, A.Extension0);
  99725. _inherit(A._HasContentVisitor0, A.__HasContentVisitor_Object_StatementSearchVisitor0);
  99726. _inherit(A._IsInvisibleVisitor1, A.__IsInvisibleVisitor_Object_EveryCssVisitor0);
  99727. _inherit(A._IsInvisibleVisitor2, A.__IsInvisibleVisitor_Object_AnySelectorVisitor0);
  99728. _inherit(A._IsBogusVisitor0, A.__IsBogusVisitor_Object_AnySelectorVisitor0);
  99729. _inherit(A._IsUselessVisitor0, A.__IsUselessVisitor_Object_AnySelectorVisitor0);
  99730. _inherit(A.CssStylesheet0, A.CssParentNode0);
  99731. _mixin(A.UnmodifiableListBase, A.UnmodifiableListMixin);
  99732. _mixin(A.__CastListBase__CastIterableBase_ListMixin, A.ListMixin);
  99733. _mixin(A._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin, A.ListMixin);
  99734. _mixin(A._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin, A.FixedLengthListMixin);
  99735. _mixin(A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin, A.ListMixin);
  99736. _mixin(A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin, A.FixedLengthListMixin);
  99737. _mixin(A._AsyncStreamController, A._AsyncStreamControllerDispatch);
  99738. _mixin(A._SyncStreamController, A._SyncStreamControllerDispatch);
  99739. _mixin(A.UnmodifiableMapBase, A._UnmodifiableMapMixin);
  99740. _mixin(A._ListBase_Object_ListMixin, A.ListMixin);
  99741. _mixin(A._UnmodifiableMapView_MapView__UnmodifiableMapMixin, A._UnmodifiableMapMixin);
  99742. _mixin(A.__SetBase_Object_SetMixin, A.SetMixin);
  99743. _mixin(A.__UnmodifiableSet__SetBase__UnmodifiableSetMixin, A._UnmodifiableSetMixin);
  99744. _mixin(A._EmptyUnmodifiableSet_IterableBase_UnmodifiableSetMixin, A.UnmodifiableSetMixin);
  99745. _mixin(A._QueueList_Object_ListMixin, A.ListMixin);
  99746. _mixin(A._UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin, A.UnmodifiableSetMixin);
  99747. _mixin(A._MapKeySet__DelegatingIterableBase_UnmodifiableSetMixin, A.UnmodifiableSetMixin);
  99748. _mixin(A.__IsInvisibleVisitor_Object_EveryCssVisitor, A.EveryCssVisitor);
  99749. _mixin(A.__HasContentVisitor_Object_StatementSearchVisitor, A.StatementSearchVisitor);
  99750. _mixin(A.__IsBogusVisitor_Object_AnySelectorVisitor, A.AnySelectorVisitor);
  99751. _mixin(A.__IsInvisibleVisitor_Object_AnySelectorVisitor, A.AnySelectorVisitor);
  99752. _mixin(A.__IsUselessVisitor_Object_AnySelectorVisitor, A.AnySelectorVisitor);
  99753. _mixin(A.__FindDependenciesVisitor_Object_RecursiveStatementVisitor, A.RecursiveStatementVisitor);
  99754. _mixin(A.__HasContentVisitor_Object_StatementSearchVisitor0, A.StatementSearchVisitor0);
  99755. _mixin(A.__IsInvisibleVisitor_Object_EveryCssVisitor0, A.EveryCssVisitor0);
  99756. _mixin(A.__IsBogusVisitor_Object_AnySelectorVisitor0, A.AnySelectorVisitor0);
  99757. _mixin(A.__IsInvisibleVisitor_Object_AnySelectorVisitor0, A.AnySelectorVisitor0);
  99758. _mixin(A.__IsUselessVisitor_Object_AnySelectorVisitor0, A.AnySelectorVisitor0);
  99759. })();
  99760. var init = {
  99761. typeUniverse: {eC: new Map(), tR: {}, eT: {}, tPV: {}, sEA: []},
  99762. mangledGlobalNames: {int: "int", double: "double", num: "num", String: "String", bool: "bool", Null: "Null", List: "List"},
  99763. mangledNames: {},
  99764. types: ["~()", "Null()", "Future<Null>()", "Value0(List<Value0>)", "Value(List<Value>)", "String(String)", "bool(CssNode0)", "bool(CssNode)", "bool(String)", "bool(Object?)", "SassNumber0(List<Value0>)", "SassNumber(List<Value>)", "int()", "bool(SimpleSelector0)", "bool(SimpleSelector)", "bool(ComplexSelector0)", "bool(ComplexSelector)", "SassString(List<Value>)", "SassString0(List<Value0>)", "SassBoolean(List<Value>)", "SassBoolean0(List<Value0>)", "SassList(List<Value>)", "SassList0(List<Value0>)", "SassColor0(List<Value0>)", "SassColor(List<Value>)", "JSClass0()", "bool()", "~(Object?)", "Null(~())", "double(double)", "String()", "FileSpan()", "bool(int?)", "Future<Null>(Future<~>())", "Value(Value)", "SassMap(List<Value>)", "Value0(Value0)", "SassMap0(List<Value0>)", "Future<~>()", "Value?()", "Value()", "Value0?()", "String?()", "bool(num,num)", "SelectorList()", "SelectorList0()", "String(Object)", "Value0()", "bool(ComplexSelectorComponent)", "bool(Value0)", "List<String>()", "bool(ComplexSelectorComponent0)", "ValueExpression(Value)", "~(Value)", "double(double,double)", "~(Value0,Value0)", "~(Value0)", "bool(int)", "ValueExpression0(Value0)", "~(Value,Value)", "double(SassColor0)", "~(Module0<Callable0>)", "bool(SelectorList)", "ComplexSelector(ComplexSelector)", "Null(Object,StackTrace)", "bool(Value)", "Null(@)", "Future<Value?>()", "Future<Value>()", "~(Module<Callable>)", "bool(SelectorList0)", "ComplexSelector0(ComplexSelector0)", "~(Object,StackTrace)", "Future<Value0>()", "Future<Value0?>()", "Frame()", "Object()", "Declaration0(List<Statement0>,FileSpan)", "int(Uri)", "Future<Value0?>(Statement0)", "Value0?(Statement0)", "double(Value)", "Null(_NodeSassColor,num)", "double(Value0)", "Tuple3<Importer,Uri,Uri>?()", "Stylesheet?()", "@()", "Null([Object?])", "~(String,Value0)", "List<CssMediaQuery0>?(List<CssMediaQuery0>)", "Declaration(List<Statement>,FileSpan)", "Value?(Statement)", "SassRuntimeException0(AstNode0)", "Frame(String)", "SassRuntimeException(AstNode)", "Future<Value0>(List<Value0>)", "Future<Value?>(Statement)", "List<CssMediaQuery>?(List<CssMediaQuery>)", "@(@)", "~(String,Value)", "String(@)", "Future<String>(Object?)", "Uri(Uri)", "~(String)", "int(SassColor0)", "Map<ComplexSelector,Extension>()", "~(~())", "int(Object?)", "Map<ComplexSelector0,Extension0>()", "Callable0?()", "bool(Module0<Callable0>)", "~(@)", "bool(Module<AsyncCallable>)", "Iterable<String>(Module0<Callable0>)", "~(String,Object?)", "bool(@)", "Iterable<String>(Module<AsyncCallable>)", "int(_NodeSassColor)", "~(Object)", "AtRootQuery()", "List<CssMediaQuery>()", "Statement()", "String(Expression0)", "String(Expression)", "bool(ModifiableCssNode0)", "List<CssMediaQuery0>()", "Statement0()", "Iterable<String>(Module<Callable>)", "Callable?()", "bool(ModifiableCssNode)", "AtRootQuery0()", "AsyncCallable0?()", "String(String{color:@})", "bool(Object)", "bool(Module0<AsyncCallable0>)", "AsyncCallable?()", "Iterable<String>(Module0<AsyncCallable0>)", "Null(Module<AsyncCallable>)", "bool(Module<Callable>)", "bool(_Highlight)", "Null(Module0<AsyncCallable0>)", "AtRule0(List<Statement0>,FileSpan)", "bool(Import0)", "Future<NodeCompileResult>()", "bool(Statement0)", "Set<0^>()<Object?>", "~(@,@)", "Future<Tuple3<AsyncImporter,Uri,Uri>?>()", "List<Extension>()", "SelectorList(Value)", "SelectorList(SelectorList,SelectorList)", "String(Value0)", "Uri?/()", "bool(Import)", "SassNumber0(SassNumber0,Object,Object[String?])", "Uri?()", "AtRootRule0(List<Statement0>,FileSpan)", "bool(Statement)", "0&(@[@])", "Uri(String)", "~(Object?,Object?)", "bool(Object?,Object?)", "double?(String,num{assertPercent:bool,checkPercent:bool,checkUnitless:bool})", "AsyncCallable?(Module<AsyncCallable>)", "Iterable<String>()", "Iterable<String>(String)", "Iterable<String>(@)", "DateTime()", "~(String[~])", "bool(SassNumber0,String)", "Future<Tuple3<AsyncImporter0,Uri,Uri>?>()", "int(int)", "List<Extension0>()", "Frame(Tuple2<String,AstNode0>)", "ImmutableList(SassNumber0)", "String(SassNumber0)", "AstNode0?()", "Future<Value>(List<Value>)", "String(_NodeException)", "~(Object[StackTrace?])", "bool(Queue<Object?>)", "Trace(String)", "SassNumber0()", "int(@,@)", "VariableDeclaration()", "Value0?(Value0)", "bool(SassNumber0)", "Null(_NodeSassMap,int,Object)", "bool(ForwardRule0)", "AtRootRule(List<Statement>,FileSpan)", "bool(UseRule0)", "Map<String,AsyncCallable>(Module<AsyncCallable>)", "Future<SassNumber0>()", "int(SourceLocation)", "String(FileSpan)", "Object(_NodeSassMap,int)", "AtRule(List<Statement>,FileSpan)", "bool(ModifiableCssParentNode0)", "String(int)", "List<ExtensionStore0>()", "Callable?(Module<Callable>)", "MapKeySet<Module<Callable>>(Map<Module<Callable>,AstNode>)", "~(Module0<AsyncCallable0>)", "Object(Object)", "SassNumber()", "@(Value0,num)", "Entry(Entry)", "double(double,double?,num)", "int(double)", "bool(String?)", "AstNode0(AstNode0)", "double(double,String)", "int(int,double?)", "Map<String,AsyncCallable0>(Module0<AsyncCallable0>)", "AstNode(AstNode)", "SassFunction(List<Value>)", "Map<String,Callable0>(Module0<Callable0>)", "MapKeySet<Module0<AsyncCallable0>>(Map<Module0<AsyncCallable0>,AstNode0>)", "~(Module<AsyncCallable>)", "AsyncCallable0?(Module0<AsyncCallable0>)", "FileLocation(FileSpan)", "MapKeySet<Module0<Callable0>>(Map<Module0<Callable0>,AstNode0>)", "List<ExtensionStore>()", "~(Uint8List,String,int)", "bool(ModifiableCssParentNode)", "SelectorList0(SelectorList0,SelectorList0)", "Future<~>?()", "~([Object?])", "bool(Frame)", "SelectorList0(Value0)", "Trace()", "~(String,@)", "Future<SassNumber>()", "Callable0?(Module0<Callable0>)", "bool(UseRule)", "bool(ForwardRule)", "Map<String,Callable>(Module<Callable>)", "Value0(int)", "String(Frame)", "int(ComplexSelector)", "~(String,Function)", "Future<Object>()", "int(Frame)", "int(ComplexSelector0)", "double(SassNumber0,SassNumber0[String?,String?])", "MapKeySet<Module<AsyncCallable>>(Map<Module<AsyncCallable>,AstNode>)", "AstNode?()", "String(SassNumber)", "~(Iterable<ExtensionStore>)", "Frame(Tuple2<String,AstNode>)", "~(Iterable<ExtensionStore0>)", "Tuple3<Importer0,Uri,Uri>?()", "SassNumber0(SassNumber0,SassNumber0[String?,String?])", "AsyncImporter0(Object?)", "SassFunction0(List<Value0>)", "double(SassNumber0,Object,Object[String?])", "CssValue<Value>(Expression)", "Value?(Value)", "Module<Callable>(Module<Callable>)", "CssValue<String>(Interpolation)", "EvaluateResult()", "UserDefinedCallable<Environment>(ContentBlock)", "~(List<Value>)", "Value(Expression)", "~(ContentBlock)", "~(List<Statement>)", "~(CssMediaQuery)", "~(MapEntry<Value,Value>)", "SourceFile()", "SourceFile?(int)", "String?(SourceFile?)", "int(_Line)", "CssValue<String>(Interpolation{trim:bool,warnForColor:bool})", "Object(_Line)", "Object(_Highlight)", "int(_Highlight,_Highlight)", "List<_Line>(MapEntry<Object,List<_Highlight>>)", "SourceSpanWithContext()", "List<Frame>(Trace)", "int(Trace)", "Future<Value>(Expression)", "String(Trace)", "~(String,Option)", "UserDefinedCallable<AsyncEnvironment>(ContentBlock)", "Frame(String,String)", "Future<CssValue<String>>(Interpolation)", "Future<Value?>(Value)", "Frame(Frame)", "Object?(Object?)", "@(@,String)", "Null(Function,Function)", "String(Argument0)", "String(String?)", "SassArgumentList0(Object,Object,Object[String?])", "ImmutableMap(SassArgumentList0)", "Future<CssValue<Value>>(Expression)", "Module<AsyncCallable>(Module<AsyncCallable>)", "Value0?(Module0<AsyncCallable0>)", "Module0<AsyncCallable0>?(Module0<AsyncCallable0>)", "Future<EvaluateResult>()", "Future<~>(List<Value>)", "FileSpan?(MapEntry<Module0<AsyncCallable0>,AstNode0>)", "Map<String,Value0>(Module0<AsyncCallable0>)", "Map<String,AstNode0>(Module0<AsyncCallable0>)", "Future<CssValue<String>>(Interpolation{trim:bool,warnForColor:bool})", "SingleUnitSassNumber(double)", "Future<CssValue0<String>>(Interpolation0{trim:bool,warnForColor:bool})", "Uint8List(@,@)", "SassScriptException()", "bool(String?,String?)", "~(Uri,StylesheetNode?)", "DateTime(StylesheetNode)", "Future<~>(List<Value0>)", "int(String?)", "StringExpression(Interpolation)", "Future<EvaluateResult0>()", "~(BinaryOperator)", "Module0<AsyncCallable0>(Module0<AsyncCallable0>)", "~(Expression)", "WhileRule(List<Statement>,FileSpan)", "int(int,int)", "Future<CssValue0<Value0>>(Expression0)", "MixinRule(List<Statement>,FileSpan)", "MediaRule(List<Statement>,FileSpan)", "Future<Value0?>(Value0)", "ContentBlock(List<Statement>,FileSpan)", "String(Argument)", "Future<CssValue0<String>>(Interpolation0)", "Expression(Expression)", "ForRule(List<Statement>,FileSpan)", "FunctionRule(List<Statement>,FileSpan)", "EachRule(List<Statement>,FileSpan)", "StyleRule(List<Statement>,FileSpan)", "UserDefinedCallable0<AsyncEnvironment0>(ContentBlock0)", "~(String,int?)", "UseRule()", "ArgumentDeclaration()", "VariableDeclaration(VariableDeclaration)", "Statement?()", "Stylesheet()", "String(Tuple2<Expression,Expression>)", "Future<Value0>(Expression0)", "Expression({bracketList:bool,singleEquals:bool,until:bool()?})", "Statement({root:bool})", "String(int,IfClause)", "CompoundSelector()", "~(String,int)", "String(BuiltInCallable)", "~(Symbol0,@)", "Future<Stylesheet0?>()", "bool(Tuple3<AsyncImporter0,Uri,Uri>)", "Uri(Tuple3<AsyncImporter0,Uri,Uri>)", "Uri(Tuple3<Importer,Uri,Uri>)", "0&(Object[Object?])", "bool(Tuple3<Importer,Uri,Uri>)", "Expression0(Expression0)", "SassString(String)", "Null(@,StackTrace)", "~(int,@)", "int(int,ComplexSelectorComponent)", "SassString(int)", "SassString(SimpleSelector)", "0&(List<Value0>)", "Null(_NodeSassColor,num?[num?,num?,num?,SassColor0?])", "Value(Object)", "double(_NodeSassColor)", "SassNumber(Value)", "SassColor0(Object,_Channels)", "SassColor0(SassColor0,_Channels)", "SassMap(SassMap)", "String(Combinator)", "SassMap(Value)", "~(@,StackTrace)", "AsyncImporter0(NodeImporter0)", "0&(@)", "~([Future<~>?])", "int(int,ComplexSelectorComponent0)", "String(Combinator0)", "int(int,SimpleSelector0)", "String(MapEntry<String,ConfiguredValue0>)", "String(BuiltInCallable0)", "bool(List<Value>)", "List<Value>(Value)", "Value0?(Module0<Callable0>)", "Module0<Callable0>?(Module0<Callable0>)", "Future<@>()", "0&(List<Value>)", "FileSpan?(MapEntry<Module0<Callable0>,AstNode0>)", "Map<String,Value0>(Module0<Callable0>)", "Map<String,AstNode0>(Module0<Callable0>)", "String(Value)", "@(String)", "CssValue0<String>(Interpolation0{trim:bool,warnForColor:bool})", "Null(@,@)", "~(List<Value0>)", "Object(Value0)", "EvaluateResult0()", "Module0<Callable0>(Module0<Callable0>)", "CssValue0<Value0>(Expression0)", "SelectorList?(PseudoSelector)", "bool(PseudoSelector)", "CssValue0<String>(Interpolation0)", "bool(List<Iterable<ComplexSelectorComponent>>)", "UserDefinedCallable0<Environment0>(ContentBlock0)", "Value0(Expression0)", "bool(Queue<List<ComplexSelectorComponent>>)", "FileSpan(_NodeException)", "bool(Extension0)", "Set<ModifiableCssValue0<SelectorList0>>()", "List<ComplexSelectorComponent>?(List<ComplexSelectorComponent>,List<ComplexSelectorComponent>)", "~(SimpleSelector,Set<ModifiableCssValue<SelectorList>>)", "~(SimpleSelector0,Map<ComplexSelector0,Extension0>)", "~(ComplexSelector0,Extension0)", "Null(Map<SimpleSelector0,Map<ComplexSelector0,Extension0>>)", "Map<SimpleSelector0,Map<ComplexSelector0,Extension0>>?(List<Extension0>)", "~(Set<ModifiableCssValue0<SelectorList0>>)", "Iterable<ComplexSelector0>(List<ComplexSelector0>)", "PseudoSelector(ComplexSelector)", "List<SimpleSelector0>(Extender0)", "List<Extender0>?(SimpleSelector0)", "List<Extender0>(PseudoSelector0)", "List<List<Extender0>>(List<Extender0>)", "List<ComplexSelector0>(ComplexSelector0)", "PseudoSelector0(ComplexSelector0)", "~(SimpleSelector0,Set<ModifiableCssValue0<SelectorList0>>)", "SassFunction0(Object,String,Value0(List<Value0>))", "List<ComplexSelectorComponent0>?(List<ComplexSelectorComponent0>,List<ComplexSelectorComponent0>)", "bool(Queue<List<ComplexSelectorComponent0>>)", "bool(List<Iterable<ComplexSelectorComponent0>>)", "List<ComplexSelector>(ComplexSelector)", "bool(PseudoSelector0)", "SelectorList0?(PseudoSelector0)", "String(int,IfClause0)", "List<List<Extender>>(List<Extender>)", "List<Extender>(PseudoSelector)", "~(Object?,Object,Object?)", "Tuple2<String,String>(String)", "List<Extender>?(SimpleSelector)", "Stylesheet0?()", "bool(Tuple3<Importer0,Uri,Uri>)", "Uri(Tuple3<Importer0,Uri,Uri>)", "Null(RenderResult)", "JSFunction0(JSFunction0)", "Object?(Object,String,String[Object?])", "Null(Object)", "int(int,SimpleSelector)", "List<Value0>(Value0)", "bool(List<Value0>)", "SassList0(ComplexSelector0)", "Iterable<ComplexSelector0>(ComplexSelector0)", "SimpleSelector0(SimpleSelector0)", "Null(_NodeSassList,int?[bool?,SassList0?])", "List<SimpleSelector>(Extender)", "Object(_NodeSassList,int)", "Null(_NodeSassList,int,Object)", "bool(_NodeSassList)", "Null(_NodeSassList,bool)", "int(_NodeSassList)", "SassList0(Object[Object?,_ConstructorOptions?])", "Iterable<ComplexSelector>(List<ComplexSelector>)", "String(Tuple2<Expression0,Expression0>)", "SassMap0(Value0)", "SassMap0(SassMap0)", "Null(_NodeSassMap,int?[SassMap0?])", "SassNumber0(int)", "~(Set<ModifiableCssValue<SelectorList>>)", "int(_NodeSassMap)", "Map<SimpleSelector,Map<ComplexSelector,Extension>>?(List<Extension>)", "SassMap0(Object[ImmutableMap?])", "ImmutableMap(SassMap0)", "@(SassMap0,Object)", "SassNumber0(Value0)", "Value0(Object)", "~(String,WarnOptions)", "~(String,DebugOptions)", "Null(_NodeSassNumber,num?[String?,SassNumber0?])", "double(_NodeSassNumber)", "Null(_NodeSassNumber,num)", "String(_NodeSassNumber)", "Null(_NodeSassNumber,String)", "SassNumber0(Object,num[Object?])", "double(SassNumber0)", "Null(Map<SimpleSelector,Map<ComplexSelector,Extension>>)", "int?(SassNumber0)", "~(ComplexSelector,Extension)", "int(SassNumber0[String?])", "double(SassNumber0,num,num[String?])", "SassNumber0(SassNumber0[String?])", "SassNumber0(SassNumber0,String[String?])", "~(SimpleSelector,Map<ComplexSelector,Extension>)", "Set<ModifiableCssValue<SelectorList>>()", "bool(Extension)", "List<WatchEvent>(List<WatchEvent>)", "Future<~>(String)", "SassScriptException0()", "_Future<@>(@)", "String(Object,@,@[@])", "ArgParser()", "~(String,StackTrace?)", "Map<String,AstNode>(Module<Callable>)", "Map<String,Value>(Module<Callable>)", "SassString0(SimpleSelector0)", "CompoundSelector0()", "~(CssMediaQuery0)", "~(MapEntry<Value0,Value0>)", "SingleUnitSassNumber0(double)", "FileSpan?(MapEntry<Module<Callable>,AstNode>)", "JSUrl0?(FileSpan)", "Module<Callable>?(Module<Callable>)", "Value?(Module<Callable>)", "SassString0(int)", "SassString0(String)", "Null(_NodeSassString,String?[SassString0?])", "String(_NodeSassString)", "Null(_NodeSassString,String)", "SassString0(Object[Object?,_ConstructorOptions1?])", "String(SassString0)", "bool(SassString0)", "int(SassString0)", "int(SassString0,Value0[String?])", "Statement0({root:bool})", "String(MapEntry<String,ConfiguredValue>)", "Stylesheet0()", "Statement0?()", "VariableDeclaration0(VariableDeclaration0)", "ArgumentDeclaration0()", "Tuple2<String,ArgumentDeclaration0>()", "VariableDeclaration0()", "Uri(Tuple3<AsyncImporter,Uri,Uri>)", "StyleRule0(List<Statement0>,FileSpan)", "bool(Tuple3<AsyncImporter,Uri,Uri>)", "EachRule0(List<Statement0>,FileSpan)", "FunctionRule0(List<Statement0>,FileSpan)", "ForRule0(List<Statement0>,FileSpan)", "ContentBlock0(List<Statement0>,FileSpan)", "MediaRule0(List<Statement0>,FileSpan)", "MixinRule0(List<Statement0>,FileSpan)", "Future<Stylesheet?>()", "SupportsRule0(List<Statement0>,FileSpan)", "WhileRule0(List<Statement0>,FileSpan)", "~(Expression0)", "~(BinaryOperator0)", "StringExpression0(Interpolation0)", "Null(~(Object?),~(Object?))", "ImmutableList(Value0)", "String?(Value0)", "int(Value0,Value0[String?])", "SassBoolean0(Value0[String?])", "SassColor0(Value0[String?])", "SassFunction0(Value0[String?])", "SassMap0(Value0[String?])", "SassNumber0(Value0[String?])", "SassString0(Value0[String?])", "SassMap0?(Value0)", "bool(Value0,Object?)", "int(Value0[Object?])", "Map<String,AstNode>(Module<AsyncCallable>)", "Map<String,Value>(Module<AsyncCallable>)", "FileSpan?(MapEntry<Module<AsyncCallable>,AstNode>)", "~(Zone?,ZoneDelegate?,Zone,Object,StackTrace)", "0^(Zone?,ZoneDelegate?,Zone,0^())<Object?>", "0^(Zone?,ZoneDelegate?,Zone,0^(1^),1^)<Object?Object?>", "0^(Zone?,ZoneDelegate?,Zone,0^(1^,2^),1^,2^)<Object?Object?Object?>", "0^()(Zone,ZoneDelegate,Zone,0^())<Object?>", "0^(1^)(Zone,ZoneDelegate,Zone,0^(1^))<Object?Object?>", "0^(1^,2^)(Zone,ZoneDelegate,Zone,0^(1^,2^))<Object?Object?Object?>", "AsyncError?(Zone,ZoneDelegate,Zone,Object,StackTrace?)", "~(Zone?,ZoneDelegate?,Zone,~())", "Timer(Zone,ZoneDelegate,Zone,Duration,~())", "Timer(Zone,ZoneDelegate,Zone,Duration,~(Timer))", "~(Zone,ZoneDelegate,Zone,String)", "Zone(Zone?,ZoneDelegate?,Zone,ZoneSpecification?,Map<Object?,Object?>?)", "Module<AsyncCallable>?(Module<AsyncCallable>)", "0^(0^,0^)<num>", "Value?(Module<AsyncCallable>)", "SimpleSelector(SimpleSelector)", "Iterable<ComplexSelector>(ComplexSelector)", "~(Object,StackTrace,EventSink<0^>)<Object?>", "List<0^>(0^,List<0^>?)<Object?>", "NodeCompileResult(String[CompileOptions?])", "NodeCompileResult(String[CompileStringOptions?])", "Promise(String[CompileOptions?])", "Promise(String[CompileStringOptions?])", "Importer0(Object?)", "List<Object?>(Object?)", "~(RenderOptions,~(Object?,RenderResult?))", "RenderResult(RenderOptions)", "Future<~>(List<String>)", "Uri(JSUrl0)", "JSUrl0(Uri)", "String(String[String?,String?,String?,String?,String?,String?,String?,String?,String?,String?,String?,String?,String?,String?])", "SassList(ComplexSelector)", "int(num)", "SupportsRule(List<Statement>,FileSpan)"],
  99765. interceptorsByTag: null,
  99766. leafTags: null,
  99767. arrayRti: Symbol("$ti")
  99768. };
  99769. A._Universe_addRules(init.typeUniverse, JSON.parse('{"PlainJavaScriptObject":"LegacyJavaScriptObject","UnknownJavaScriptObject":"LegacyJavaScriptObject","JavaScriptFunction":"LegacyJavaScriptObject","Stdin":"LegacyJavaScriptObject","Stdout":"LegacyJavaScriptObject","ReadlineModule":"LegacyJavaScriptObject","ReadlineOptions":"LegacyJavaScriptObject","ReadlineInterface":"LegacyJavaScriptObject","BufferModule":"LegacyJavaScriptObject","BufferConstants":"LegacyJavaScriptObject","Buffer":"LegacyJavaScriptObject","ConsoleModule":"LegacyJavaScriptObject","Console":"LegacyJavaScriptObject","EventEmitter":"LegacyJavaScriptObject","FS":"LegacyJavaScriptObject","FSConstants":"LegacyJavaScriptObject","FSWatcher":"LegacyJavaScriptObject","ReadStream":"LegacyJavaScriptObject","ReadStreamOptions":"LegacyJavaScriptObject","WriteStream":"LegacyJavaScriptObject","WriteStreamOptions":"LegacyJavaScriptObject","FileOptions":"LegacyJavaScriptObject","StatOptions":"LegacyJavaScriptObject","MkdirOptions":"LegacyJavaScriptObject","RmdirOptions":"LegacyJavaScriptObject","WatchOptions":"LegacyJavaScriptObject","WatchFileOptions":"LegacyJavaScriptObject","Stats":"LegacyJavaScriptObject","Promise":"LegacyJavaScriptObject","Date":"LegacyJavaScriptObject","JsError":"LegacyJavaScriptObject","Atomics":"LegacyJavaScriptObject","Modules":"LegacyJavaScriptObject","Module1":"LegacyJavaScriptObject","Net":"LegacyJavaScriptObject","Socket":"LegacyJavaScriptObject","NetAddress":"LegacyJavaScriptObject","NetServer":"LegacyJavaScriptObject","NodeJsError":"LegacyJavaScriptObject","JsAssertionError":"LegacyJavaScriptObject","JsRangeError":"LegacyJavaScriptObject","JsReferenceError":"LegacyJavaScriptObject","JsSyntaxError":"LegacyJavaScriptObject","JsTypeError":"LegacyJavaScriptObject","JsSystemError":"LegacyJavaScriptObject","Process":"LegacyJavaScriptObject","CPUUsage":"LegacyJavaScriptObject","Release":"LegacyJavaScriptObject","StreamModule":"LegacyJavaScriptObject","Readable":"LegacyJavaScriptObject","Writable":"LegacyJavaScriptObject","Duplex":"LegacyJavaScriptObject","Transform":"LegacyJavaScriptObject","WritableOptions":"LegacyJavaScriptObject","ReadableOptions":"LegacyJavaScriptObject","Immediate":"LegacyJavaScriptObject","Timeout":"LegacyJavaScriptObject","TTY":"LegacyJavaScriptObject","TTYReadStream":"LegacyJavaScriptObject","TTYWriteStream":"LegacyJavaScriptObject","Util":"LegacyJavaScriptObject","JSArray0":"LegacyJavaScriptObject","Chokidar":"LegacyJavaScriptObject","ChokidarOptions":"LegacyJavaScriptObject","ChokidarWatcher":"LegacyJavaScriptObject","JSFunction":"LegacyJavaScriptObject","NodeImporterResult":"LegacyJavaScriptObject","RenderContext":"LegacyJavaScriptObject","RenderContextOptions":"LegacyJavaScriptObject","RenderContextResult":"LegacyJavaScriptObject","RenderContextResultStats":"LegacyJavaScriptObject","JSClass":"LegacyJavaScriptObject","JSUrl":"LegacyJavaScriptObject","_PropertyDescriptor":"LegacyJavaScriptObject","JSArray1":"LegacyJavaScriptObject","Chokidar0":"LegacyJavaScriptObject","ChokidarOptions0":"LegacyJavaScriptObject","ChokidarWatcher0":"LegacyJavaScriptObject","_NodeSassColor":"LegacyJavaScriptObject","_Channels":"LegacyJavaScriptObject","CompileOptions":"LegacyJavaScriptObject","CompileStringOptions":"LegacyJavaScriptObject","NodeCompileResult":"LegacyJavaScriptObject","_NodeException":"LegacyJavaScriptObject","Exports":"LegacyJavaScriptObject","LoggerNamespace":"LegacyJavaScriptObject","Fiber":"LegacyJavaScriptObject","FiberClass":"LegacyJavaScriptObject","JSFunction0":"LegacyJavaScriptObject","ImmutableList":"LegacyJavaScriptObject","ImmutableMap":"LegacyJavaScriptObject","NodeImporter0":"LegacyJavaScriptObject","CanonicalizeOptions":"LegacyJavaScriptObject","NodeImporterResult0":"LegacyJavaScriptObject","NodeImporterResult1":"LegacyJavaScriptObject","_NodeSassList":"LegacyJavaScriptObject","_ConstructorOptions":"LegacyJavaScriptObject","WarnOptions":"LegacyJavaScriptObject","DebugOptions":"LegacyJavaScriptObject","NodeLogger":"LegacyJavaScriptObject","_NodeSassMap":"LegacyJavaScriptObject","_NodeSassNumber":"LegacyJavaScriptObject","_ConstructorOptions0":"LegacyJavaScriptObject","JSClass0":"LegacyJavaScriptObject","RenderContext0":"LegacyJavaScriptObject","RenderContextOptions0":"LegacyJavaScriptObject","RenderContextResult0":"LegacyJavaScriptObject","RenderContextResultStats0":"LegacyJavaScriptObject","RenderOptions":"LegacyJavaScriptObject","RenderResult":"LegacyJavaScriptObject","RenderResultStats":"LegacyJavaScriptObject","_Exports":"LegacyJavaScriptObject","_NodeSassString":"LegacyJavaScriptObject","_ConstructorOptions1":"LegacyJavaScriptObject","Types":"LegacyJavaScriptObject","JSUrl0":"LegacyJavaScriptObject","_PropertyDescriptor0":"LegacyJavaScriptObject","NativeFloat32List":"NativeTypedArrayOfDouble","JSBool":{"bool":[]},"JSNull":{"Null":[]},"LegacyJavaScriptObject":{"Promise":[],"JsSystemError":[],"_NodeSassColor":[],"_Channels":[],"CompileOptions":[],"CompileStringOptions":[],"NodeCompileResult":[],"_NodeException":[],"Fiber":[],"JSFunction0":[],"ImmutableList":[],"ImmutableMap":[],"NodeImporter0":[],"NodeImporterResult0":[],"NodeImporterResult1":[],"_NodeSassList":[],"_ConstructorOptions":[],"WarnOptions":[],"DebugOptions":[],"_NodeSassMap":[],"_NodeSassNumber":[],"_ConstructorOptions0":[],"JSClass0":[],"RenderContextOptions0":[],"RenderOptions":[],"RenderResult":[],"_NodeSassString":[],"_ConstructorOptions1":[],"JSUrl0":[]},"JSArray":{"List":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"JSUnmodifiableArray":{"JSArray":["1"],"List":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"JSNumber":{"double":[],"num":[],"Comparable":["num"]},"JSInt":{"double":[],"int":[],"num":[],"Comparable":["num"]},"JSNumNotInt":{"double":[],"num":[],"Comparable":["num"]},"JSString":{"String":[],"Comparable":["String"]},"_CastIterableBase":{"Iterable":["2"]},"CastIterable":{"_CastIterableBase":["1","2"],"Iterable":["2"],"Iterable.E":"2"},"_EfficientLengthCastIterable":{"CastIterable":["1","2"],"_CastIterableBase":["1","2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"Iterable.E":"2"},"_CastListBase":{"ListMixin":["2"],"List":["2"],"_CastIterableBase":["1","2"],"EfficientLengthIterable":["2"],"Iterable":["2"]},"CastList":{"_CastListBase":["1","2"],"ListMixin":["2"],"List":["2"],"_CastIterableBase":["1","2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"Iterable.E":"2","ListMixin.E":"2"},"CastSet":{"Set":["2"],"_CastIterableBase":["1","2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"Iterable.E":"2"},"CastMap":{"MapMixin":["3","4"],"Map":["3","4"],"MapMixin.K":"3","MapMixin.V":"4"},"LateError":{"Error":[]},"CodeUnits":{"ListMixin":["int"],"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"],"ListMixin.E":"int"},"EfficientLengthIterable":{"Iterable":["1"]},"ListIterable":{"EfficientLengthIterable":["1"],"Iterable":["1"]},"SubListIterable":{"ListIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1","ListIterable.E":"1"},"MappedIterable":{"Iterable":["2"],"Iterable.E":"2"},"EfficientLengthMappedIterable":{"MappedIterable":["1","2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"Iterable.E":"2"},"MappedListIterable":{"ListIterable":["2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"Iterable.E":"2","ListIterable.E":"2"},"WhereIterable":{"Iterable":["1"],"Iterable.E":"1"},"ExpandIterable":{"Iterable":["2"],"Iterable.E":"2"},"TakeIterable":{"Iterable":["1"],"Iterable.E":"1"},"EfficientLengthTakeIterable":{"TakeIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"SkipIterable":{"Iterable":["1"],"Iterable.E":"1"},"EfficientLengthSkipIterable":{"SkipIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"SkipWhileIterable":{"Iterable":["1"],"Iterable.E":"1"},"EmptyIterable":{"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"FollowedByIterable":{"Iterable":["1"],"Iterable.E":"1"},"EfficientLengthFollowedByIterable":{"FollowedByIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"WhereTypeIterable":{"Iterable":["1"],"Iterable.E":"1"},"UnmodifiableListBase":{"ListMixin":["1"],"List":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"ReversedListIterable":{"ListIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1","ListIterable.E":"1"},"Symbol":{"Symbol0":[]},"ConstantMapView":{"UnmodifiableMapView":["1","2"],"Map":["1","2"]},"ConstantMap":{"Map":["1","2"]},"ConstantStringMap":{"ConstantMap":["1","2"],"Map":["1","2"]},"_ConstantMapKeyIterable":{"Iterable":["1"],"Iterable.E":"1"},"GeneralConstantMap":{"ConstantMap":["1","2"],"Map":["1","2"]},"Instantiation":{"Function":[]},"Instantiation1":{"Function":[]},"NullError":{"TypeError":[],"Error":[]},"JsNoSuchMethodError":{"Error":[]},"UnknownJsTypeError":{"Error":[]},"NullThrownFromJavaScriptException":{"Exception":[]},"_StackTrace":{"StackTrace":[]},"Closure":{"Function":[]},"Closure0Args":{"Function":[]},"Closure2Args":{"Function":[]},"TearOffClosure":{"Function":[]},"StaticClosure":{"Function":[]},"BoundClosure":{"Function":[]},"RuntimeError":{"Error":[]},"JsLinkedHashMap":{"MapMixin":["1","2"],"Map":["1","2"],"MapMixin.K":"1","MapMixin.V":"2"},"LinkedHashMapKeyIterable":{"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"_MatchImplementation":{"RegExpMatch":[],"Match":[]},"_AllMatchesIterable":{"Iterable":["RegExpMatch"],"Iterable.E":"RegExpMatch"},"StringMatch":{"Match":[]},"_StringAllMatchesIterable":{"Iterable":["Match"],"Iterable.E":"Match"},"NativeTypedArray":{"JavaScriptIndexingBehavior":["1"]},"NativeTypedArrayOfDouble":{"ListMixin":["double"],"JavaScriptIndexingBehavior":["double"],"List":["double"],"EfficientLengthIterable":["double"],"Iterable":["double"],"ListMixin.E":"double"},"NativeTypedArrayOfInt":{"ListMixin":["int"],"JavaScriptIndexingBehavior":["int"],"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"]},"NativeInt16List":{"NativeTypedArrayOfInt":[],"ListMixin":["int"],"JavaScriptIndexingBehavior":["int"],"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"],"ListMixin.E":"int"},"NativeInt32List":{"NativeTypedArrayOfInt":[],"ListMixin":["int"],"JavaScriptIndexingBehavior":["int"],"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"],"ListMixin.E":"int"},"NativeInt8List":{"NativeTypedArrayOfInt":[],"ListMixin":["int"],"JavaScriptIndexingBehavior":["int"],"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"],"ListMixin.E":"int"},"NativeUint16List":{"NativeTypedArrayOfInt":[],"ListMixin":["int"],"JavaScriptIndexingBehavior":["int"],"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"],"ListMixin.E":"int"},"NativeUint32List":{"NativeTypedArrayOfInt":[],"ListMixin":["int"],"JavaScriptIndexingBehavior":["int"],"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"],"ListMixin.E":"int"},"NativeUint8ClampedList":{"NativeTypedArrayOfInt":[],"ListMixin":["int"],"JavaScriptIndexingBehavior":["int"],"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"],"ListMixin.E":"int"},"NativeUint8List":{"NativeTypedArrayOfInt":[],"ListMixin":["int"],"Uint8List":[],"JavaScriptIndexingBehavior":["int"],"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"],"ListMixin.E":"int"},"_Type":{"Type":[]},"_Error":{"Error":[]},"_TypeError":{"TypeError":[],"Error":[]},"AsyncError":{"Error":[]},"_Future":{"Future":["1"]},"_SyncStarIterable":{"Iterable":["1"],"Iterable.E":"1"},"_AsyncCompleter":{"_Completer":["1"]},"_SyncCompleter":{"_Completer":["1"]},"_StreamController":{"EventSink":["1"]},"_AsyncStreamController":{"_StreamController":["1"],"EventSink":["1"]},"_SyncStreamController":{"_StreamController":["1"],"EventSink":["1"]},"_ControllerStream":{"_StreamImpl":["1"],"Stream":["1"],"Stream.T":"1"},"_ControllerSubscription":{"_BufferingStreamSubscription":["1"],"StreamSubscription":["1"],"_BufferingStreamSubscription.T":"1"},"_BufferingStreamSubscription":{"StreamSubscription":["1"],"_BufferingStreamSubscription.T":"1"},"_StreamImpl":{"Stream":["1"]},"_ForwardingStream":{"Stream":["2"]},"_ForwardingStreamSubscription":{"_BufferingStreamSubscription":["2"],"StreamSubscription":["2"],"_BufferingStreamSubscription.T":"2"},"_ExpandStream":{"_ForwardingStream":["1","2"],"Stream":["2"],"Stream.T":"2"},"_ZoneSpecification":{"ZoneSpecification":[]},"_ZoneDelegate":{"ZoneDelegate":[]},"_Zone":{"Zone":[]},"_CustomZone":{"Zone":[]},"_RootZone":{"Zone":[]},"Queue":{"EfficientLengthIterable":["1"],"Iterable":["1"]},"_HashMap":{"MapMixin":["1","2"],"Map":["1","2"],"MapMixin.K":"1","MapMixin.V":"2"},"_IdentityHashMap":{"_HashMap":["1","2"],"MapMixin":["1","2"],"Map":["1","2"],"MapMixin.K":"1","MapMixin.V":"2"},"_HashMapKeyIterable":{"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"_LinkedIdentityHashMap":{"JsLinkedHashMap":["1","2"],"MapMixin":["1","2"],"Map":["1","2"],"MapMixin.K":"1","MapMixin.V":"2"},"_LinkedCustomHashMap":{"JsLinkedHashMap":["1","2"],"MapMixin":["1","2"],"Map":["1","2"],"MapMixin.K":"1","MapMixin.V":"2"},"_LinkedHashSet":{"_SetBase":["1"],"SetMixin":["1"],"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"_LinkedIdentityHashSet":{"_LinkedHashSet":["1"],"_SetBase":["1"],"SetMixin":["1"],"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"UnmodifiableListView":{"ListMixin":["1"],"List":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"ListMixin.E":"1"},"IterableBase":{"Iterable":["1"]},"ListBase":{"ListMixin":["1"],"List":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"MapBase":{"MapMixin":["1","2"],"Map":["1","2"]},"MapMixin":{"Map":["1","2"]},"UnmodifiableMapBase":{"MapMixin":["1","2"],"Map":["1","2"]},"_MapBaseValueIterable":{"EfficientLengthIterable":["2"],"Iterable":["2"],"Iterable.E":"2"},"MapView":{"Map":["1","2"]},"UnmodifiableMapView":{"Map":["1","2"]},"ListQueue":{"ListIterable":["1"],"Queue":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1","ListIterable.E":"1"},"_SetBase":{"SetMixin":["1"],"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"_UnmodifiableSet":{"_SetBase":["1"],"SetMixin":["1"],"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"AsciiCodec":{"Codec":["String","List<int>"]},"_UnicodeSubsetEncoder":{"Converter":["String","List<int>"]},"AsciiEncoder":{"Converter":["String","List<int>"]},"Base64Codec":{"Codec":["List<int>","String"]},"Base64Encoder":{"Converter":["List<int>","String"]},"Encoding":{"Codec":["String","List<int>"]},"JsonUnsupportedObjectError":{"Error":[]},"JsonCyclicError":{"Error":[]},"JsonCodec":{"Codec":["Object?","String"]},"JsonEncoder":{"Converter":["Object?","String"]},"Utf8Codec":{"Codec":["String","List<int>"]},"Utf8Encoder":{"Converter":["String","List<int>"]},"Utf8Decoder":{"Converter":["List<int>","String"]},"DateTime":{"Comparable":["DateTime"]},"double":{"num":[],"Comparable":["num"]},"Duration":{"Comparable":["Duration"]},"int":{"num":[],"Comparable":["num"]},"List":{"EfficientLengthIterable":["1"],"Iterable":["1"]},"num":{"Comparable":["num"]},"RegExpMatch":{"Match":[]},"Set":{"EfficientLengthIterable":["1"],"Iterable":["1"]},"String":{"Comparable":["String"]},"AssertionError":{"Error":[]},"TypeError":{"Error":[]},"NullThrownError":{"Error":[]},"ArgumentError":{"Error":[]},"RangeError":{"Error":[]},"IndexError":{"RangeError":[],"Error":[]},"NoSuchMethodError":{"Error":[]},"UnsupportedError":{"Error":[]},"UnimplementedError":{"Error":[]},"StateError":{"Error":[]},"ConcurrentModificationError":{"Error":[]},"OutOfMemoryError":{"Error":[]},"StackOverflowError":{"Error":[]},"CyclicInitializationError":{"Error":[]},"_Exception":{"Exception":[]},"FormatException":{"Exception":[]},"_GeneratorIterable":{"ListIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1","ListIterable.E":"1"},"_StringStackTrace":{"StackTrace":[]},"Runes":{"Iterable":["int"],"Iterable.E":"int"},"_Uri":{"Uri":[]},"_SimpleUri":{"Uri":[]},"_DataUri":{"Uri":[]},"ArgParserException":{"FormatException":[],"Exception":[]},"ErrorResult":{"Result":["0&"]},"ValueResult":{"Result":["1"]},"_CompleterStream":{"Stream":["1"],"Stream.T":"1"},"_NextRequest":{"_EventRequest":["1"]},"EmptyUnmodifiableSet":{"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"QueueList":{"ListMixin":["1"],"List":["1"],"Queue":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"ListMixin.E":"1","QueueList.E":"1"},"_CastQueueList":{"QueueList":["2"],"ListMixin":["2"],"List":["2"],"Queue":["2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"ListMixin.E":"2","QueueList.E":"2"},"UnmodifiableSetView":{"DelegatingSet":["1"],"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"MapKeySet":{"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"_DelegatingIterableBase":{"Iterable":["1"]},"DelegatingSet":{"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"PathException":{"Exception":[]},"PathMap":{"Map":["String?","1"]},"PosixStyle":{"InternalStyle":[]},"UrlStyle":{"InternalStyle":[]},"WindowsStyle":{"InternalStyle":[]},"ModifiableCssAtRule":{"ModifiableCssParentNode":[],"CssAtRule":[],"ModifiableCssNode":[],"CssParentNode":[],"CssNode":[],"AstNode":[]},"ModifiableCssComment":{"ModifiableCssNode":[],"CssComment":[],"CssNode":[],"AstNode":[]},"ModifiableCssDeclaration":{"ModifiableCssNode":[],"CssNode":[],"AstNode":[]},"ModifiableCssImport":{"ModifiableCssNode":[],"CssImport":[],"CssNode":[],"AstNode":[]},"ModifiableCssKeyframeBlock":{"ModifiableCssParentNode":[],"ModifiableCssNode":[],"CssParentNode":[],"CssNode":[],"AstNode":[]},"ModifiableCssMediaRule":{"ModifiableCssParentNode":[],"CssMediaRule":[],"ModifiableCssNode":[],"CssParentNode":[],"CssNode":[],"AstNode":[]},"ModifiableCssNode":{"CssNode":[],"AstNode":[]},"ModifiableCssParentNode":{"ModifiableCssNode":[],"CssParentNode":[],"CssNode":[],"AstNode":[]},"ModifiableCssStyleRule":{"ModifiableCssParentNode":[],"CssStyleRule":[],"ModifiableCssNode":[],"CssParentNode":[],"CssNode":[],"AstNode":[]},"ModifiableCssStylesheet":{"ModifiableCssParentNode":[],"CssStylesheet":[],"ModifiableCssNode":[],"CssParentNode":[],"CssNode":[],"AstNode":[]},"ModifiableCssSupportsRule":{"ModifiableCssParentNode":[],"CssSupportsRule":[],"ModifiableCssNode":[],"CssParentNode":[],"CssNode":[],"AstNode":[]},"ModifiableCssValue":{"CssValue":["1"],"AstNode":[]},"CssNode":{"AstNode":[]},"CssParentNode":{"CssNode":[],"AstNode":[]},"CssStylesheet":{"CssParentNode":[],"CssNode":[],"AstNode":[]},"CssValue":{"AstNode":[]},"_FakeAstNode":{"AstNode":[]},"Argument":{"AstNode":[]},"ArgumentDeclaration":{"AstNode":[]},"ArgumentInvocation":{"AstNode":[]},"ConfiguredVariable":{"AstNode":[]},"BinaryOperationExpression":{"Expression":[],"AstNode":[]},"BooleanExpression":{"Expression":[],"AstNode":[]},"CalculationExpression":{"Expression":[],"AstNode":[]},"ColorExpression":{"Expression":[],"AstNode":[]},"FunctionExpression":{"Expression":[],"AstNode":[]},"IfExpression":{"Expression":[],"AstNode":[]},"InterpolatedFunctionExpression":{"Expression":[],"AstNode":[]},"ListExpression":{"Expression":[],"AstNode":[]},"MapExpression":{"Expression":[],"AstNode":[]},"NullExpression":{"Expression":[],"AstNode":[]},"NumberExpression":{"Expression":[],"AstNode":[]},"ParenthesizedExpression":{"Expression":[],"AstNode":[]},"SelectorExpression":{"Expression":[],"AstNode":[]},"StringExpression":{"Expression":[],"AstNode":[]},"SupportsExpression":{"Expression":[],"AstNode":[]},"UnaryOperationExpression":{"Expression":[],"AstNode":[]},"ValueExpression":{"Expression":[],"AstNode":[]},"VariableExpression":{"Expression":[],"AstNode":[]},"DynamicImport":{"Import":[],"AstNode":[]},"StaticImport":{"Import":[],"AstNode":[]},"Interpolation":{"AstNode":[]},"AtRootRule":{"Statement":[],"AstNode":[]},"AtRule":{"Statement":[],"AstNode":[]},"CallableDeclaration":{"Statement":[],"AstNode":[]},"ContentBlock":{"Statement":[],"AstNode":[]},"ContentRule":{"Statement":[],"AstNode":[]},"DebugRule":{"Statement":[],"AstNode":[]},"Declaration":{"Statement":[],"AstNode":[]},"EachRule":{"Statement":[],"AstNode":[]},"ErrorRule":{"Statement":[],"AstNode":[]},"ExtendRule":{"Statement":[],"AstNode":[]},"ForRule":{"Statement":[],"AstNode":[]},"ForwardRule":{"Statement":[],"AstNode":[]},"FunctionRule":{"Statement":[],"AstNode":[]},"IfRule":{"Statement":[],"AstNode":[]},"ImportRule":{"Statement":[],"AstNode":[]},"IncludeRule":{"Statement":[],"AstNode":[]},"LoudComment":{"Statement":[],"AstNode":[]},"MediaRule":{"Statement":[],"AstNode":[]},"MixinRule":{"Statement":[],"AstNode":[]},"_HasContentVisitor":{"StatementSearchVisitor":["bool"],"StatementSearchVisitor.T":"bool"},"ParentStatement":{"Statement":[],"AstNode":[]},"ReturnRule":{"Statement":[],"AstNode":[]},"SilentComment":{"Statement":[],"AstNode":[]},"StyleRule":{"Statement":[],"AstNode":[]},"Stylesheet":{"Statement":[],"AstNode":[]},"SupportsRule":{"Statement":[],"AstNode":[]},"UseRule":{"Statement":[],"AstNode":[]},"VariableDeclaration":{"Statement":[],"AstNode":[]},"WarnRule":{"Statement":[],"AstNode":[]},"WhileRule":{"Statement":[],"AstNode":[]},"SupportsAnything":{"AstNode":[]},"SupportsDeclaration":{"AstNode":[]},"SupportsFunction":{"AstNode":[]},"SupportsInterpolation":{"AstNode":[]},"SupportsNegation":{"AstNode":[]},"SupportsOperation":{"AstNode":[]},"AttributeSelector":{"SimpleSelector":[]},"ClassSelector":{"SimpleSelector":[]},"IDSelector":{"SimpleSelector":[]},"ParentSelector":{"SimpleSelector":[]},"PlaceholderSelector":{"SimpleSelector":[]},"PseudoSelector":{"SimpleSelector":[]},"TypeSelector":{"SimpleSelector":[]},"UniversalSelector":{"SimpleSelector":[]},"_EnvironmentModule0":{"Module":["AsyncCallable"]},"AsyncBuiltInCallable":{"AsyncCallable":[]},"BuiltInCallable":{"Callable":[],"AsyncBuiltInCallable":[],"AsyncCallable":[]},"PlainCssCallable":{"Callable":[],"AsyncCallable":[]},"UserDefinedCallable":{"Callable":[],"AsyncCallable":[]},"ExplicitConfiguration":{"Configuration":[]},"_EnvironmentModule":{"Module":["Callable"]},"SassRuntimeException":{"Exception":[]},"SassException":{"Exception":[]},"MultiSpanSassException":{"Exception":[]},"MultiSpanSassRuntimeException":{"SassRuntimeException":[],"Exception":[]},"SassFormatException":{"SourceSpanFormatException":[],"FormatException":[],"Exception":[]},"UsageException":{"Exception":[]},"EmptyExtensionStore":{"ExtensionStore":[]},"MergedExtension":{"Extension":[]},"Importer":{"AsyncImporter":[]},"FilesystemImporter":{"Importer":[],"AsyncImporter":[]},"BuiltInModule":{"Module":["1"]},"ForwardedModuleView":{"Module":["1"]},"ShadowedModuleView":{"Module":["1"]},"LimitedMapView":{"MapMixin":["1","2"],"Map":["1","2"],"MapMixin.K":"1","MapMixin.V":"2"},"MergedMapView":{"MapMixin":["1","2"],"Map":["1","2"],"MapMixin.K":"1","MapMixin.V":"2"},"MultiSpan":{"FileSpan":[],"SourceSpanWithContext":[],"SourceSpan":[],"Comparable":["SourceSpan"]},"PrefixedMapView":{"MapMixin":["String","1"],"Map":["String","1"],"MapMixin.K":"String","MapMixin.V":"1"},"_PrefixedKeys":{"Iterable":["String"],"Iterable.E":"String"},"PublicMemberMapView":{"MapMixin":["String","1"],"Map":["String","1"],"MapMixin.K":"String","MapMixin.V":"1"},"UnprefixedMapView":{"MapMixin":["String","1"],"Map":["String","1"],"MapMixin.K":"String","MapMixin.V":"1"},"_UnprefixedKeys":{"Iterable":["String"],"Iterable.E":"String"},"SassArgumentList":{"SassList":[],"Value":[]},"SassBoolean":{"Value":[]},"SassCalculation":{"Value":[]},"SassColor":{"Value":[]},"SassFunction":{"Value":[]},"SassList":{"Value":[]},"SassMap":{"Value":[]},"_SassNull":{"Value":[]},"SassNumber":{"Value":[]},"ComplexSassNumber":{"SassNumber":[],"Value":[]},"SingleUnitSassNumber":{"SassNumber":[],"Value":[]},"UnitlessSassNumber":{"SassNumber":[],"Value":[]},"SassString":{"Value":[]},"_EvaluationContext0":{"EvaluationContext":[]},"_EvaluationContext":{"EvaluationContext":[]},"Entry":{"Comparable":["Entry"]},"FileLocation":{"SourceLocation":[],"Comparable":["SourceLocation"]},"FileSpan":{"SourceSpanWithContext":[],"SourceSpan":[],"Comparable":["SourceSpan"]},"_FileSpan":{"FileSpan":[],"SourceSpanWithContext":[],"SourceSpan":[],"Comparable":["SourceSpan"]},"SourceLocation":{"Comparable":["SourceLocation"]},"SourceLocationMixin":{"SourceLocation":[],"Comparable":["SourceLocation"]},"SourceSpan":{"Comparable":["SourceSpan"]},"SourceSpanBase":{"SourceSpan":[],"Comparable":["SourceSpan"]},"SourceSpanException":{"Exception":[]},"SourceSpanFormatException":{"FormatException":[],"Exception":[]},"SourceSpanMixin":{"SourceSpan":[],"Comparable":["SourceSpan"]},"SourceSpanWithContext":{"SourceSpan":[],"Comparable":["SourceSpan"]},"Chain":{"StackTrace":[]},"LazyTrace":{"Trace":[],"StackTrace":[]},"Trace":{"StackTrace":[]},"UnparsedFrame":{"Frame":[]},"StringScannerException":{"SourceSpanFormatException":[],"FormatException":[],"Exception":[]},"SupportsAnything0":{"AstNode0":[]},"Argument0":{"AstNode0":[]},"ArgumentDeclaration0":{"AstNode0":[]},"ArgumentInvocation0":{"AstNode0":[]},"SassArgumentList0":{"SassList0":[],"Value0":[]},"NodeToDartAsyncImporter":{"AsyncImporter0":[]},"AsyncBuiltInCallable0":{"AsyncCallable0":[]},"_EnvironmentModule2":{"Module0":["AsyncCallable0"]},"_EvaluationContext2":{"EvaluationContext0":[]},"NodeToDartAsyncFileImporter":{"AsyncImporter0":[]},"AtRootRule0":{"Statement0":[],"AstNode0":[]},"ModifiableCssAtRule0":{"ModifiableCssParentNode0":[],"CssAtRule0":[],"ModifiableCssNode0":[],"CssParentNode0":[],"CssNode0":[],"AstNode0":[]},"AtRule0":{"Statement0":[],"AstNode0":[]},"AttributeSelector0":{"SimpleSelector0":[]},"BinaryOperationExpression0":{"Expression0":[],"AstNode0":[]},"BooleanExpression0":{"Expression0":[],"AstNode0":[]},"SassBoolean0":{"Value0":[]},"BuiltInCallable0":{"Callable0":[],"AsyncBuiltInCallable0":[],"AsyncCallable0":[]},"BuiltInModule0":{"Module0":["1"]},"CalculationExpression0":{"Expression0":[],"AstNode0":[]},"SassCalculation0":{"Value0":[]},"CallableDeclaration0":{"Statement0":[],"AstNode0":[]},"ClassSelector0":{"SimpleSelector0":[]},"ColorExpression0":{"Expression0":[],"AstNode0":[]},"SassColor0":{"Value0":[]},"ModifiableCssComment0":{"ModifiableCssNode0":[],"CssComment0":[],"CssNode0":[],"AstNode0":[]},"ComplexSassNumber0":{"SassNumber0":[],"Value0":[]},"ExplicitConfiguration0":{"Configuration0":[]},"ConfiguredVariable0":{"AstNode0":[]},"ContentBlock0":{"Statement0":[],"AstNode0":[]},"ContentRule0":{"Statement0":[],"AstNode0":[]},"DebugRule0":{"Statement0":[],"AstNode0":[]},"ModifiableCssDeclaration0":{"ModifiableCssNode0":[],"CssNode0":[],"AstNode0":[]},"Declaration0":{"Statement0":[],"AstNode0":[]},"SupportsDeclaration0":{"AstNode0":[]},"DynamicImport0":{"Import0":[],"AstNode0":[]},"EachRule0":{"Statement0":[],"AstNode0":[]},"EmptyExtensionStore0":{"ExtensionStore0":[]},"_EnvironmentModule1":{"Module0":["Callable0"]},"ErrorRule0":{"Statement0":[],"AstNode0":[]},"_EvaluationContext1":{"EvaluationContext0":[]},"SassRuntimeException0":{"Exception":[]},"SassException0":{"Exception":[]},"MultiSpanSassException0":{"Exception":[]},"MultiSpanSassRuntimeException0":{"SassRuntimeException0":[],"Exception":[]},"SassFormatException0":{"SourceSpanFormatException":[],"FormatException":[],"Exception":[]},"ExtendRule0":{"Statement0":[],"AstNode0":[]},"NodeToDartFileImporter":{"Importer0":[],"AsyncImporter0":[]},"FilesystemImporter0":{"Importer0":[],"AsyncImporter0":[]},"ForRule0":{"Statement0":[],"AstNode0":[]},"ForwardRule0":{"Statement0":[],"AstNode0":[]},"ForwardedModuleView0":{"Module0":["1"]},"FunctionExpression0":{"Expression0":[],"AstNode0":[]},"SupportsFunction0":{"AstNode0":[]},"SassFunction0":{"Value0":[]},"FunctionRule0":{"Statement0":[],"AstNode0":[]},"IDSelector0":{"SimpleSelector0":[]},"IfExpression0":{"Expression0":[],"AstNode0":[]},"IfRule0":{"Statement0":[],"AstNode0":[]},"ModifiableCssImport0":{"ModifiableCssNode0":[],"CssImport0":[],"CssNode0":[],"AstNode0":[]},"ImportRule0":{"Statement0":[],"AstNode0":[]},"Importer0":{"AsyncImporter0":[]},"IncludeRule0":{"Statement0":[],"AstNode0":[]},"InterpolatedFunctionExpression0":{"Expression0":[],"AstNode0":[]},"Interpolation0":{"AstNode0":[]},"SupportsInterpolation0":{"AstNode0":[]},"ModifiableCssKeyframeBlock0":{"ModifiableCssParentNode0":[],"ModifiableCssNode0":[],"CssParentNode0":[],"CssNode0":[],"AstNode0":[]},"LimitedMapView0":{"MapMixin":["1","2"],"Map":["1","2"],"MapMixin.K":"1","MapMixin.V":"2"},"ListExpression0":{"Expression0":[],"AstNode0":[]},"SassList0":{"Value0":[]},"LoudComment0":{"Statement0":[],"AstNode0":[]},"MapExpression0":{"Expression0":[],"AstNode0":[]},"SassMap0":{"Value0":[]},"ModifiableCssMediaRule0":{"ModifiableCssParentNode0":[],"CssMediaRule0":[],"ModifiableCssNode0":[],"CssParentNode0":[],"CssNode0":[],"AstNode0":[]},"MediaRule0":{"Statement0":[],"AstNode0":[]},"MergedExtension0":{"Extension0":[]},"MergedMapView0":{"MapMixin":["1","2"],"Map":["1","2"],"MapMixin.K":"1","MapMixin.V":"2"},"MixinRule0":{"Statement0":[],"AstNode0":[]},"_HasContentVisitor0":{"StatementSearchVisitor0":["bool"],"StatementSearchVisitor0.T":"bool"},"MultiSpan0":{"FileSpan":[],"SourceSpanWithContext":[],"SourceSpan":[],"Comparable":["SourceSpan"]},"SupportsNegation0":{"AstNode0":[]},"NoOpImporter":{"Importer0":[],"AsyncImporter0":[]},"_FakeAstNode0":{"AstNode0":[]},"CssNode0":{"AstNode0":[]},"CssParentNode0":{"CssNode0":[],"AstNode0":[]},"ModifiableCssNode0":{"CssNode0":[],"AstNode0":[]},"ModifiableCssParentNode0":{"ModifiableCssNode0":[],"CssParentNode0":[],"CssNode0":[],"AstNode0":[]},"NullExpression0":{"Expression0":[],"AstNode0":[]},"_SassNull0":{"Value0":[]},"NumberExpression0":{"Expression0":[],"AstNode0":[]},"SassNumber0":{"Value0":[]},"SupportsOperation0":{"AstNode0":[]},"ParentSelector0":{"SimpleSelector0":[]},"ParentStatement0":{"Statement0":[],"AstNode0":[]},"ParenthesizedExpression0":{"Expression0":[],"AstNode0":[]},"PlaceholderSelector0":{"SimpleSelector0":[]},"PlainCssCallable0":{"Callable0":[],"AsyncCallable0":[]},"PrefixedMapView0":{"MapMixin":["String","1"],"Map":["String","1"],"MapMixin.K":"String","MapMixin.V":"1"},"_PrefixedKeys0":{"Iterable":["String"],"Iterable.E":"String"},"PseudoSelector0":{"SimpleSelector0":[]},"PublicMemberMapView0":{"MapMixin":["String","1"],"Map":["String","1"],"MapMixin.K":"String","MapMixin.V":"1"},"ReturnRule0":{"Statement0":[],"AstNode0":[]},"SelectorExpression0":{"Expression0":[],"AstNode0":[]},"ShadowedModuleView0":{"Module0":["1"]},"SilentComment0":{"Statement0":[],"AstNode0":[]},"SingleUnitSassNumber0":{"SassNumber0":[],"Value0":[]},"StaticImport0":{"Import0":[],"AstNode0":[]},"StringExpression0":{"Expression0":[],"AstNode0":[]},"SassString0":{"Value0":[]},"ModifiableCssStyleRule0":{"ModifiableCssParentNode0":[],"CssStyleRule0":[],"ModifiableCssNode0":[],"CssParentNode0":[],"CssNode0":[],"AstNode0":[]},"StyleRule0":{"Statement0":[],"AstNode0":[]},"CssStylesheet0":{"CssParentNode0":[],"CssNode0":[],"AstNode0":[]},"ModifiableCssStylesheet0":{"ModifiableCssParentNode0":[],"CssStylesheet0":[],"ModifiableCssNode0":[],"CssParentNode0":[],"CssNode0":[],"AstNode0":[]},"Stylesheet0":{"Statement0":[],"AstNode0":[]},"SupportsExpression0":{"Expression0":[],"AstNode0":[]},"ModifiableCssSupportsRule0":{"ModifiableCssParentNode0":[],"CssSupportsRule0":[],"ModifiableCssNode0":[],"CssParentNode0":[],"CssNode0":[],"AstNode0":[]},"SupportsRule0":{"Statement0":[],"AstNode0":[]},"NodeToDartImporter":{"Importer0":[],"AsyncImporter0":[]},"TypeSelector0":{"SimpleSelector0":[]},"UnaryOperationExpression0":{"Expression0":[],"AstNode0":[]},"UnitlessSassNumber0":{"SassNumber0":[],"Value0":[]},"UniversalSelector0":{"SimpleSelector0":[]},"UnprefixedMapView0":{"MapMixin":["String","1"],"Map":["String","1"],"MapMixin.K":"String","MapMixin.V":"1"},"_UnprefixedKeys0":{"Iterable":["String"],"Iterable.E":"String"},"UseRule0":{"Statement0":[],"AstNode0":[]},"UserDefinedCallable0":{"Callable0":[],"AsyncCallable0":[]},"CssValue0":{"AstNode0":[]},"ValueExpression0":{"Expression0":[],"AstNode0":[]},"ModifiableCssValue0":{"CssValue0":["1"],"AstNode0":[]},"VariableExpression0":{"Expression0":[],"AstNode0":[]},"VariableDeclaration0":{"Statement0":[],"AstNode0":[]},"WarnRule0":{"Statement0":[],"AstNode0":[]},"WhileRule0":{"Statement0":[],"AstNode0":[]},"Uint8List":{"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"]},"Expression":{"AstNode":[]},"Import":{"AstNode":[]},"Statement":{"AstNode":[]},"Callable":{"AsyncCallable":[]},"Callable0":{"AsyncCallable0":[]},"Expression0":{"AstNode0":[]},"Import0":{"AstNode0":[]},"Statement0":{"AstNode0":[]}}'));
  99770. A._Universe_addErasedTypes(init.typeUniverse, JSON.parse('{"ArrayIterator":1,"ListIterator":1,"MappedIterator":2,"WhereIterator":1,"ExpandIterator":2,"TakeIterator":1,"SkipIterator":1,"SkipWhileIterator":1,"EmptyIterator":1,"FollowedByIterator":1,"FixedLengthListMixin":1,"UnmodifiableListMixin":1,"UnmodifiableListBase":1,"__CastListBase__CastIterableBase_ListMixin":2,"LinkedHashMapKeyIterator":1,"NativeTypedArray":1,"EventSink":1,"_SyncStarIterator":1,"StreamTransformerBase":2,"_SyncStreamControllerDispatch":1,"_AsyncStreamControllerDispatch":1,"_AddStreamState":1,"_StreamControllerAddStreamState":1,"_DelayedEvent":1,"_DelayedData":1,"_PendingEvents":1,"_StreamIterator":1,"_ZoneFunction":1,"Queue":1,"_HashMapKeyIterator":1,"_LinkedHashSetIterator":1,"IterableBase":1,"ListBase":1,"MapBase":2,"UnmodifiableMapBase":2,"_MapBaseValueIterator":2,"_UnmodifiableMapMixin":2,"MapView":2,"_ListQueueIterator":1,"_UnmodifiableSetMixin":1,"_ListBase_Object_ListMixin":1,"_UnmodifiableMapView_MapView__UnmodifiableMapMixin":2,"__SetBase_Object_SetMixin":1,"__UnmodifiableSet__SetBase__UnmodifiableSetMixin":1,"ChunkedConversionSink":1,"_StringSinkConversionSink":1,"Iterator":1,"Expando":1,"_EventRequest":1,"_EmptyUnmodifiableSet_IterableBase_UnmodifiableSetMixin":1,"DefaultEquality":1,"IterableEquality":1,"ListEquality":1,"MapEquality":2,"_QueueList_Object_ListMixin":1,"UnmodifiableSetMixin":1,"_UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin":1,"_DelegatingIterableBase":1,"_MapKeySet__DelegatingIterableBase_UnmodifiableSetMixin":1,"ParentStatement":1,"ParentStatement0":1}'));
  99771. var string$ = {
  99772. x0a_BUG_: "\n\nBUG: This should include a source span!",
  99773. x0a_Morex20: "\n\nMore info and automated migrator: https://sass-lang.com/d/slash-div",
  99774. x0a_Morex3a: "\n\nMore info: https://sass-lang.com/d/function-units",
  99775. x0a_See_: "\n\nSee https://sass-lang.com/d/function-units",
  99776. x0a_To_p: "\n\nTo preserve current behavior: math.random(math.div($limit, 1",
  99777. x0a_but_: "\n\nbut you may have intended it to mean:\n\n ",
  99778. x0aRun_i: "\nRun in verbose mode to see all warnings.",
  99779. x0aThis_: "\nThis will be an error in Dart Sass 2.0.0.\n\nMore info: https://sass-lang.com/d/bogus-combinators",
  99780. x0aYou_m: "\nYou may not @extend the same selector from within different media queries.",
  99781. x20It_wi: " It will be omitted from the generated CSS.",
  99782. x20be_an: " be an extender.\nThis will be an error in Dart Sass 2.0.0.\n\nMore info: https://sass-lang.com/d/bogus-combinators",
  99783. x20in_in: " in interpolation here.\nIt may end up represented as ",
  99784. x20is_as: " is asynchronous.\nThis is probably caused by a bug in a Sass plugin.",
  99785. x20is_av: " is available from multiple global modules.",
  99786. x20is_de: " is deprecated.\n\nTo preserve current behavior: ",
  99787. x20is_noa: " is not a valid selector: it must be a string,\na list of strings, or a list of lists of strings.",
  99788. x20is_nov: " is not valid CSS.\nThis will be an error in Dart Sass 2.0.0.\n\nMore info: https://sass-lang.com/d/bogus-combinators",
  99789. x20must_: " must not be greater than the number of characters in the file, ",
  99790. x20repet: " repetitive deprecation warnings omitted.",
  99791. x20to_cl: " to clarify that it's meant to be a binary operation, or wrap\nit in parentheses to make it a unary operation. This will be an error in future\nversions of Sass.\n\nMore info and automated migrator: https://sass-lang.com/d/strict-unary",
  99792. x20to_co: " to color.opacity() is deprecated.\n\nRecommendation: ",
  99793. x20was_a: ' was already loaded, so it can\'t be configured using "with".',
  99794. x20was_n: " was not declared with !default in the @used module.",
  99795. x20was_p: " was passed both by position and by name.",
  99796. x21globa: "!global isn't allowed for variables in other modules.",
  99797. x22x20is_ix0a: '" is invalid CSS.\nThis will be an error in Dart Sass 2.0.0.\n\nMore info: https://sass-lang.com/d/bogus-combinators',
  99798. x22x20is_ix20: '" is invalid CSS. It will be omitted from the generated CSS.\nThis will be an error in Dart Sass 2.0.0.\n\nMore info: https://sass-lang.com/d/bogus-combinators',
  99799. x22x20is_n: '" is not a valid Sass identifier.\n\nRecommendation: add an "as" clause to define an explicit namespace.',
  99800. x22x20is_o: "\" is only valid for nesting and shouldn't\nhave children other than style rules.",
  99801. x22x26__ma: '"&" may only used at the beginning of a compound selector.',
  99802. x22x29__If: "\").\nIf you really want to use the color value here, use '",
  99803. x22x2b__an: '"+" and "-" must be surrounded by whitespace in calculations.',
  99804. x22packa: '"package:" URLs aren\'t supported on this platform.',
  99805. x24css_a: "$css and $module may not both be passed at once.",
  99806. x24list1: "$list1, $list2, $separator: auto, $bracketed: auto",
  99807. x24selec: "$selectors: At least one selector must be passed.",
  99808. x24separ: '$separator: Must be "space", "comma", "slash", or "auto".',
  99809. x28__isn: "() isn't in the sass:color module.\n\nRecommendation: color.adjust(",
  99810. x29x0a_Morx20: ")\n\nMore info and automated migrator: https://sass-lang.com/d/slash-div",
  99811. x29x0a_Morx3a: ")\n\nMore info: https://sass-lang.com/documentation/functions/color#",
  99812. x29x20in_a: ") in a future release.\n\nRecommendation: math.random(math.div($limit, 1",
  99813. x29x20is_d: ") is deprecated.\n\nTo preserve current behavior: ",
  99814. x29x20to_cg: ") to color.grayscale() is deprecated.\n\nRecommendation: ",
  99815. x29x20to_ci: ") to color.invert() is deprecated.\n\nRecommendation: ",
  99816. x29x29__Mo: "))\n\nMore info: https://sass-lang.com/d/function-units",
  99817. x2c_whic: ', which will likely produce invalid CSS.\nAlways quote color names when using them as strings or map keys (for example, "',
  99818. x2e_Rela: ".\nRelative canonical URLs are deprecated and will eventually be disallowed.\n",
  99819. x3d_____: "===== asynchronous gap ===========================\n",
  99820. x40_moz_: "@-moz-document is deprecated and support will be removed in Dart Sass 2.0.0.\n\nFor details, see https://sass-lang.com/d/moz-document.",
  99821. x40conte: "@content is only allowed within mixin declarations.",
  99822. x40elsei: "@elseif is deprecated and will not be supported in future Sass versions.\n\nRecommendation: @else if",
  99823. x40exten: "@extend may only be used within style rules.",
  99824. x40forwa: "@forward rules must be written before any other rules.",
  99825. x40funct: "@function if($condition, $if-true, $if-false) {",
  99826. x40use_r: "@use rules must be written before any other rules.",
  99827. A_list: "A list with more than one element must have an explicit separator.",
  99828. ABCDEF: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",
  99829. An_impa: "An importer may not have a findFileUrl method as well as canonicalize and load methods.",
  99830. An_impu: "An importer must have either canonicalize and load methods, or a findFileUrl method.",
  99831. As_of_R: "As of Dart Sass 2.0.0, !global assignments won't be able to declare new variables.\n\nRecommendation: add `",
  99832. As_of_S: "As of Dart Sass 2.0.0, !global assignments won't be able to declare new variables.\n\nSince this assignment is at the root of the stylesheet, the !global flag is\nunnecessary and can safely be removed.",
  99833. At_rul: "At-rules may not be used within nested declarations.",
  99834. Cannotff: "Cannot extract a file path from a URI with a fragment component",
  99835. Cannotfq: "Cannot extract a file path from a URI with a query component",
  99836. Cannotn: "Cannot extract a non-Windows file path from a file URI with an authority",
  99837. Comple: "ComplexSassNumber.hasPossiblyCompatibleUnits is not implemented.",
  99838. Could_: 'Could not find an option with short name "-',
  99839. CssNod: "CssNodes must have a CssStylesheet transitive parent node.",
  99840. Declarm: "Declarations may only be used within style rules.",
  99841. Declarwa: 'Declarations whose names begin with "--" may not be nested.',
  99842. Declarwu: 'Declarations whose names begin with "--" must have StringExpression values (was `',
  99843. Either: "Either options.data or options.file must be set.",
  99844. Entrie: "Entries may not be removed from MergedMapView.",
  99845. Error_: "Error handler must accept one Object or one Object and a StackTrace as arguments, and return a value of the returned future's type",
  99846. Evalua: "Evaluation handles @include and its content block together.",
  99847. Expand: "Expandos are not allowed on strings, numbers, booleans or null",
  99848. Expectn: "Expected number, variable, function, or calculation.",
  99849. Expectv: "Expected variable, mixin, or function name",
  99850. Functi: "Functions may not be declared in control directives.",
  99851. HSL_pa: "HSL parameters may not be passed along with HWB parameters.",
  99852. If_con: "If conditions is longer than one element, conjunction may not be null.",
  99853. If_par: "If parsedAsCustomProperty is true, value must contain a SassString (was `",
  99854. In_Sas: 'In Sass, "&&" means two copies of the parent selector. You probably want to use "and" instead.',
  99855. Indent: "Indenting at the beginning of the document is illegal.",
  99856. Interpn: "Interpolation isn't allowed in namespaces.",
  99857. Interpp: "Interpolation isn't allowed in plain CSS.",
  99858. Invali: 'Invalid return value for custom function "',
  99859. It_s_n: "It's not clear which file to import. Found:\n",
  99860. May_on: "May only contains Strings or Expressions.",
  99861. Media_: "Media rules may not be used within nested declarations.",
  99862. Mixinsb: "Mixins may not be declared in control directives.",
  99863. Mixinscf: "Mixins may not contain function declarations.",
  99864. Mixinscm: "Mixins may not contain mixin declarations.",
  99865. Modulel: "Module loop: this module is already being loaded.",
  99866. Modulen: "Module namespaces aren't allowed in plain CSS.",
  99867. Nested: "Nested declarations aren't allowed in plain CSS.",
  99868. New_en: "New entries may not be added to MergedMapView.",
  99869. No_Sasc: "No Sass callable is currently being evaluated.",
  99870. No_Sass: "No Sass stylesheet is currently being evaluated.",
  99871. NoSour: "NoSourceMapBuffer.buildSourceMap() is not supported.",
  99872. Only_2: "Only 2 slash-separated elements allowed, but ",
  99873. Only_oa: "Only one argument may be passed to the plain-CSS invert() function.",
  99874. Only_op: "Only one positional argument is allowed. All other arguments must be passed by name.",
  99875. Other_: "Other modules' members can't be defined with !global.",
  99876. Passin: "Passing a string to call() is deprecated and will be illegal in Dart Sass 2.0.0.\n\nRecommendation: call(get-function(",
  99877. Placeh: "Placeholder selectors aren't allowed here.",
  99878. Plain_: "Plain CSS functions don't support keyword arguments.",
  99879. Positi: "Positional arguments must come before keyword arguments.",
  99880. Privat: "Private members can't be accessed from outside their modules.",
  99881. RGB_pa: "RGB parameters may not be passed along with ",
  99882. Sass_v: "Sass variables aren't allowed in plain CSS.",
  99883. Silent: "Silent comments aren't allowed in plain CSS.",
  99884. Style_: "Style rules may not be used within nested declarations.",
  99885. Suppor: "Supports rules may not be used within nested declarations.",
  99886. The_Ex: "The ExtensionStore and CssStylesheet passed to cloneCssStylesheet() must come from the same compilation.",
  99887. The_ca: "The canonicalize() method must return a URL.",
  99888. The_fie: "The findFileUrl() method must return a URL.",
  99889. The_fiu: 'The findFileUrl() must return a URL with scheme file://, was "',
  99890. The_gi: "The given LineScannerState was not returned by this LineScanner.",
  99891. The_lo: "The load() function must return an object with contents and syntax fields.",
  99892. The_pa: "The parent selector isn't allowed in plain CSS.",
  99893. The_sa: "The same variable may only be configured once.",
  99894. The_ta: 'The target selector was not found.\nUse "@extend ',
  99895. There_: "There's already a module with namespace \"",
  99896. This_d: 'This declaration has no argument named "$',
  99897. This_f: "This function isn't allowed in plain CSS.",
  99898. This_ma: 'This module and the new module both define a variable named "$',
  99899. This_mw: 'This module was already loaded, so it can\'t be configured using "with".',
  99900. This_s: "This selector doesn't have any properties and won't be rendered.",
  99901. This_v: "This variable was not declared with !default in the @used module.",
  99902. Top_le: 'Top-level selectors may not contain the parent selector "&".',
  99903. Using__i: "Using / for division is deprecated and will be removed in Dart Sass 2.0.0.\n\nRecommendation: ",
  99904. Using__o: "Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.\n\nRecommendation: ",
  99905. Using_c: "Using color.alpha() for a Microsoft filter is deprecated.\n\nRecommendation: ",
  99906. Variab_: "Variable keyword argument map must have string keys.\n",
  99907. Variabs: "Variable keyword arguments must be a map (was ",
  99908. You_ma: "You may not @extend selectors across media queries.",
  99909. You_pr: "You probably don't mean to use the color value ",
  99910. x60_inst: "` instead.\nSee https://sass-lang.com/d/extend-compound for details.\n",
  99911. addExt_: "addExtension() can't be called for a const ExtensionStore.",
  99912. addExts: "addExtensions() can't be called for a const ExtensionStore.",
  99913. addSel: "addSelector() can't be called for a const ExtensionStore.",
  99914. compou: "compound selectors may no longer be extended.\nConsider `@extend ",
  99915. conten: "content-exists() may only be called within a mixin.",
  99916. leadin: "leadingCombinators and components may not both be empty.",
  99917. math_d: "math.div() will only support number arguments in a future release.\nUse list.slash() instead for a slash separator.",
  99918. math_r: "math.random() will no longer ignore $limit units (",
  99919. must_b: "must be a UniversalSelector or a TypeSelector",
  99920. parsed: 'parsedAsCustomProperty must be false if name doesn\'t begin with "--".',
  99921. semico: "semicolons aren't allowed in the indented syntax.",
  99922. throug: "through() must return false for at least one parent of "
  99923. };
  99924. var type$ = (function rtii() {
  99925. var findType = A.findType;
  99926. return {
  99927. $env_1_1_String: findType("@<String>"),
  99928. ArgParser: findType("ArgParser"),
  99929. Argument: findType("Argument"),
  99930. ArgumentDeclaration: findType("ArgumentDeclaration"),
  99931. ArgumentDeclaration_2: findType("ArgumentDeclaration0"),
  99932. Argument_2: findType("Argument0"),
  99933. AstNode: findType("AstNode"),
  99934. AstNode_2: findType("AstNode0"),
  99935. AsyncBuiltInCallable: findType("AsyncBuiltInCallable"),
  99936. AsyncBuiltInCallable_2: findType("AsyncBuiltInCallable0"),
  99937. AsyncCallable: findType("AsyncCallable"),
  99938. AsyncCallable_2: findType("AsyncCallable0"),
  99939. AsyncImporter: findType("AsyncImporter0"),
  99940. BuiltInCallable: findType("BuiltInCallable"),
  99941. BuiltInCallable_2: findType("BuiltInCallable0"),
  99942. BuiltInModule_AsyncCallable: findType("BuiltInModule<AsyncCallable>"),
  99943. BuiltInModule_AsyncCallable_2: findType("BuiltInModule0<AsyncCallable0>"),
  99944. BuiltInModule_Callable: findType("BuiltInModule<Callable>"),
  99945. BuiltInModule_Callable_2: findType("BuiltInModule0<Callable0>"),
  99946. Callable: findType("Callable"),
  99947. Callable_2: findType("Callable0"),
  99948. ChangeType: findType("ChangeType"),
  99949. Combinator: findType("Combinator"),
  99950. Combinator_2: findType("Combinator0"),
  99951. Comparable_dynamic: findType("Comparable<@>"),
  99952. Comparable_nullable_Object: findType("Comparable<Object?>"),
  99953. CompileResult: findType("CompileResult"),
  99954. CompileResult_2: findType("CompileResult0"),
  99955. ComplexSelector: findType("ComplexSelector"),
  99956. ComplexSelectorComponent: findType("ComplexSelectorComponent"),
  99957. ComplexSelectorComponent_2: findType("ComplexSelectorComponent0"),
  99958. ComplexSelector_2: findType("ComplexSelector0"),
  99959. Configuration: findType("Configuration"),
  99960. Configuration_2: findType("Configuration0"),
  99961. ConfiguredValue: findType("ConfiguredValue"),
  99962. ConfiguredValue_2: findType("ConfiguredValue0"),
  99963. ConfiguredVariable: findType("ConfiguredVariable"),
  99964. ConfiguredVariable_2: findType("ConfiguredVariable0"),
  99965. ConstantMapView_Symbol_dynamic: findType("ConstantMapView<Symbol0,@>"),
  99966. ConstantStringMap_String_Null: findType("ConstantStringMap<String,Null>"),
  99967. ConstantStringMap_String_double: findType("ConstantStringMap<String,double>"),
  99968. CssAtRule: findType("CssAtRule"),
  99969. CssAtRule_2: findType("CssAtRule0"),
  99970. CssComment: findType("CssComment"),
  99971. CssComment_2: findType("CssComment0"),
  99972. CssImport: findType("CssImport"),
  99973. CssImport_2: findType("CssImport0"),
  99974. CssMediaQuery: findType("CssMediaQuery"),
  99975. CssMediaQuery_2: findType("CssMediaQuery0"),
  99976. CssMediaRule: findType("CssMediaRule"),
  99977. CssMediaRule_2: findType("CssMediaRule0"),
  99978. CssParentNode: findType("CssParentNode"),
  99979. CssParentNode_2: findType("CssParentNode0"),
  99980. CssStyleRule: findType("CssStyleRule"),
  99981. CssStyleRule_2: findType("CssStyleRule0"),
  99982. CssStylesheet: findType("CssStylesheet"),
  99983. CssStylesheet_2: findType("CssStylesheet0"),
  99984. CssSupportsRule: findType("CssSupportsRule"),
  99985. CssSupportsRule_2: findType("CssSupportsRule0"),
  99986. CssValue_List_String: findType("CssValue<List<String>>"),
  99987. CssValue_List_String_2: findType("CssValue0<List<String>>"),
  99988. CssValue_SelectorList: findType("CssValue<SelectorList>"),
  99989. CssValue_SelectorList_2: findType("CssValue0<SelectorList0>"),
  99990. CssValue_String: findType("CssValue<String>"),
  99991. CssValue_String_2: findType("CssValue0<String>"),
  99992. CssValue_Value: findType("CssValue<Value>"),
  99993. CssValue_Value_2: findType("CssValue0<Value0>"),
  99994. DateTime: findType("DateTime"),
  99995. EfficientLengthIterable_dynamic: findType("EfficientLengthIterable<@>"),
  99996. Error: findType("Error"),
  99997. EvaluateResult: findType("EvaluateResult"),
  99998. EvaluateResult_2: findType("EvaluateResult0"),
  99999. EvaluationContext: findType("EvaluationContext"),
  100000. EvaluationContext_2: findType("EvaluationContext0"),
  100001. Exception: findType("Exception"),
  100002. Expression: findType("Expression"),
  100003. Expression_2: findType("Expression0"),
  100004. Extender: findType("Extender"),
  100005. Extender_2: findType("Extender0"),
  100006. Extension: findType("Extension"),
  100007. Extension_2: findType("Extension0"),
  100008. FileSpan: findType("FileSpan"),
  100009. FormatException: findType("FormatException"),
  100010. Frame: findType("Frame"),
  100011. Function: findType("Function"),
  100012. FutureOr_EvaluateResult: findType("EvaluateResult/"),
  100013. FutureOr_EvaluateResult_2: findType("EvaluateResult0/"),
  100014. FutureOr_nullable_Uri: findType("Uri?/"),
  100015. Future_dynamic: findType("Future<@>"),
  100016. Future_void: findType("Future<~>"),
  100017. IfClause: findType("IfClause"),
  100018. IfClause_2: findType("IfClause0"),
  100019. ImmutableList: findType("ImmutableList"),
  100020. ImmutableMap: findType("ImmutableMap"),
  100021. Import: findType("Import"),
  100022. Import_2: findType("Import0"),
  100023. Importer: findType("Importer0"),
  100024. ImporterResult: findType("ImporterResult"),
  100025. ImporterResult_2: findType("ImporterResult0"),
  100026. InternalStyle: findType("InternalStyle"),
  100027. Interpolation: findType("Interpolation"),
  100028. InterpolationBuffer: findType("InterpolationBuffer"),
  100029. InterpolationBuffer_2: findType("InterpolationBuffer0"),
  100030. Interpolation_2: findType("Interpolation0"),
  100031. Iterable_ComplexSelectorComponent: findType("Iterable<ComplexSelectorComponent>"),
  100032. Iterable_ComplexSelectorComponent_2: findType("Iterable<ComplexSelectorComponent0>"),
  100033. Iterable_dynamic: findType("Iterable<@>"),
  100034. JSArray_Argument: findType("JSArray<Argument>"),
  100035. JSArray_Argument_2: findType("JSArray<Argument0>"),
  100036. JSArray_AstNode: findType("JSArray<AstNode>"),
  100037. JSArray_AstNode_2: findType("JSArray<AstNode0>"),
  100038. JSArray_AsyncBuiltInCallable: findType("JSArray<AsyncBuiltInCallable>"),
  100039. JSArray_AsyncBuiltInCallable_2: findType("JSArray<AsyncBuiltInCallable0>"),
  100040. JSArray_AsyncCallable: findType("JSArray<AsyncCallable>"),
  100041. JSArray_AsyncCallable_2: findType("JSArray<AsyncCallable0>"),
  100042. JSArray_AsyncImporter: findType("JSArray<AsyncImporter0>"),
  100043. JSArray_AsyncImporter_2: findType("JSArray<AsyncImporter>"),
  100044. JSArray_BinaryOperator: findType("JSArray<BinaryOperator>"),
  100045. JSArray_BinaryOperator_2: findType("JSArray<BinaryOperator0>"),
  100046. JSArray_BuiltInCallable: findType("JSArray<BuiltInCallable>"),
  100047. JSArray_BuiltInCallable_2: findType("JSArray<BuiltInCallable0>"),
  100048. JSArray_Callable: findType("JSArray<Callable>"),
  100049. JSArray_Callable_2: findType("JSArray<Callable0>"),
  100050. JSArray_Combinator: findType("JSArray<Combinator>"),
  100051. JSArray_Combinator_2: findType("JSArray<Combinator0>"),
  100052. JSArray_ComplexSelector: findType("JSArray<ComplexSelector>"),
  100053. JSArray_ComplexSelectorComponent: findType("JSArray<ComplexSelectorComponent>"),
  100054. JSArray_ComplexSelectorComponent_2: findType("JSArray<ComplexSelectorComponent0>"),
  100055. JSArray_ComplexSelector_2: findType("JSArray<ComplexSelector0>"),
  100056. JSArray_ConfiguredVariable: findType("JSArray<ConfiguredVariable>"),
  100057. JSArray_ConfiguredVariable_2: findType("JSArray<ConfiguredVariable0>"),
  100058. JSArray_CssMediaQuery: findType("JSArray<CssMediaQuery>"),
  100059. JSArray_CssMediaQuery_2: findType("JSArray<CssMediaQuery0>"),
  100060. JSArray_CssNode: findType("JSArray<CssNode>"),
  100061. JSArray_CssNode_2: findType("JSArray<CssNode0>"),
  100062. JSArray_Entry: findType("JSArray<Entry>"),
  100063. JSArray_Expression: findType("JSArray<Expression>"),
  100064. JSArray_Expression_2: findType("JSArray<Expression0>"),
  100065. JSArray_Extender: findType("JSArray<Extender>"),
  100066. JSArray_Extender_2: findType("JSArray<Extender0>"),
  100067. JSArray_Extension: findType("JSArray<Extension>"),
  100068. JSArray_ExtensionStore: findType("JSArray<ExtensionStore>"),
  100069. JSArray_ExtensionStore_2: findType("JSArray<ExtensionStore0>"),
  100070. JSArray_Extension_2: findType("JSArray<Extension0>"),
  100071. JSArray_ForwardRule: findType("JSArray<ForwardRule>"),
  100072. JSArray_ForwardRule_2: findType("JSArray<ForwardRule0>"),
  100073. JSArray_Frame: findType("JSArray<Frame>"),
  100074. JSArray_IfClause: findType("JSArray<IfClause>"),
  100075. JSArray_IfClause_2: findType("JSArray<IfClause0>"),
  100076. JSArray_Import: findType("JSArray<Import>"),
  100077. JSArray_Import_2: findType("JSArray<Import0>"),
  100078. JSArray_Importer: findType("JSArray<Importer0>"),
  100079. JSArray_Importer_2: findType("JSArray<Importer>"),
  100080. JSArray_Iterable_ComplexSelectorComponent: findType("JSArray<Iterable<ComplexSelectorComponent>>"),
  100081. JSArray_Iterable_ComplexSelectorComponent_2: findType("JSArray<Iterable<ComplexSelectorComponent0>>"),
  100082. JSArray_JSFunction: findType("JSArray<JSFunction0>"),
  100083. JSArray_List_ComplexSelector: findType("JSArray<List<ComplexSelector>>"),
  100084. JSArray_List_ComplexSelectorComponent: findType("JSArray<List<ComplexSelectorComponent>>"),
  100085. JSArray_List_ComplexSelectorComponent_2: findType("JSArray<List<ComplexSelectorComponent0>>"),
  100086. JSArray_List_ComplexSelector_2: findType("JSArray<List<ComplexSelector0>>"),
  100087. JSArray_List_Extender: findType("JSArray<List<Extender>>"),
  100088. JSArray_List_Extender_2: findType("JSArray<List<Extender0>>"),
  100089. JSArray_List_Iterable_ComplexSelectorComponent: findType("JSArray<List<Iterable<ComplexSelectorComponent>>>"),
  100090. JSArray_List_Iterable_ComplexSelectorComponent_2: findType("JSArray<List<Iterable<ComplexSelectorComponent0>>>"),
  100091. JSArray_Map_String_AstNode: findType("JSArray<Map<String,AstNode>>"),
  100092. JSArray_Map_String_AstNode_2: findType("JSArray<Map<String,AstNode0>>"),
  100093. JSArray_Map_String_AsyncCallable: findType("JSArray<Map<String,AsyncCallable>>"),
  100094. JSArray_Map_String_AsyncCallable_2: findType("JSArray<Map<String,AsyncCallable0>>"),
  100095. JSArray_Map_String_Callable: findType("JSArray<Map<String,Callable>>"),
  100096. JSArray_Map_String_Callable_2: findType("JSArray<Map<String,Callable0>>"),
  100097. JSArray_Map_String_Value: findType("JSArray<Map<String,Value>>"),
  100098. JSArray_Map_String_Value_2: findType("JSArray<Map<String,Value0>>"),
  100099. JSArray_ModifiableCssImport: findType("JSArray<ModifiableCssImport>"),
  100100. JSArray_ModifiableCssImport_2: findType("JSArray<ModifiableCssImport0>"),
  100101. JSArray_ModifiableCssNode: findType("JSArray<ModifiableCssNode>"),
  100102. JSArray_ModifiableCssNode_2: findType("JSArray<ModifiableCssNode0>"),
  100103. JSArray_ModifiableCssParentNode: findType("JSArray<ModifiableCssParentNode>"),
  100104. JSArray_ModifiableCssParentNode_2: findType("JSArray<ModifiableCssParentNode0>"),
  100105. JSArray_Module_AsyncCallable: findType("JSArray<Module<AsyncCallable>>"),
  100106. JSArray_Module_AsyncCallable_2: findType("JSArray<Module0<AsyncCallable0>>"),
  100107. JSArray_Module_Callable: findType("JSArray<Module<Callable>>"),
  100108. JSArray_Module_Callable_2: findType("JSArray<Module0<Callable0>>"),
  100109. JSArray_Object: findType("JSArray<Object>"),
  100110. JSArray_PseudoSelector: findType("JSArray<PseudoSelector>"),
  100111. JSArray_PseudoSelector_2: findType("JSArray<PseudoSelector0>"),
  100112. JSArray_SassList: findType("JSArray<SassList>"),
  100113. JSArray_SassList_2: findType("JSArray<SassList0>"),
  100114. JSArray_SimpleSelector: findType("JSArray<SimpleSelector>"),
  100115. JSArray_SimpleSelector_2: findType("JSArray<SimpleSelector0>"),
  100116. JSArray_Statement: findType("JSArray<Statement>"),
  100117. JSArray_Statement_2: findType("JSArray<Statement0>"),
  100118. JSArray_String: findType("JSArray<String>"),
  100119. JSArray_StylesheetNode: findType("JSArray<StylesheetNode>"),
  100120. JSArray_TargetEntry: findType("JSArray<TargetEntry>"),
  100121. JSArray_TargetLineEntry: findType("JSArray<TargetLineEntry>"),
  100122. JSArray_Trace: findType("JSArray<Trace>"),
  100123. JSArray_Tuple2_Expression_Expression: findType("JSArray<Tuple2<Expression,Expression>>"),
  100124. JSArray_Tuple2_Expression_Expression_2: findType("JSArray<Tuple2<Expression0,Expression0>>"),
  100125. JSArray_Tuple2_String_AstNode: findType("JSArray<Tuple2<String,AstNode>>"),
  100126. JSArray_Tuple2_String_AstNode_2: findType("JSArray<Tuple2<String,AstNode0>>"),
  100127. JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value: findType("JSArray<Tuple2<ArgumentDeclaration,Value(List<Value>)>>"),
  100128. JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2: findType("JSArray<Tuple2<ArgumentDeclaration0,Value0(List<Value0>)>>"),
  100129. JSArray_Tuple4_of_Uri_and_bool_and_Importer_and_nullable_Uri: findType("JSArray<Tuple4<Uri,bool,Importer,Uri?>>"),
  100130. JSArray_Uri: findType("JSArray<Uri>"),
  100131. JSArray_UseRule: findType("JSArray<UseRule>"),
  100132. JSArray_UseRule_2: findType("JSArray<UseRule0>"),
  100133. JSArray_Value: findType("JSArray<Value>"),
  100134. JSArray_Value_2: findType("JSArray<Value0>"),
  100135. JSArray_WatchEvent: findType("JSArray<WatchEvent>"),
  100136. JSArray__Highlight: findType("JSArray<_Highlight>"),
  100137. JSArray__Line: findType("JSArray<_Line>"),
  100138. JSArray_dynamic: findType("JSArray<@>"),
  100139. JSArray_int: findType("JSArray<int>"),
  100140. JSArray_nullable_String: findType("JSArray<String?>"),
  100141. JSClass: findType("JSClass0"),
  100142. JSFunction: findType("JSFunction0"),
  100143. JSNull: findType("JSNull"),
  100144. JSUrl: findType("JSUrl0"),
  100145. JavaScriptFunction: findType("JavaScriptFunction"),
  100146. JavaScriptIndexingBehavior_dynamic: findType("JavaScriptIndexingBehavior<@>"),
  100147. JsLinkedHashMap_Symbol_dynamic: findType("JsLinkedHashMap<Symbol0,@>"),
  100148. JsSystemError: findType("JsSystemError"),
  100149. LimitedMapView_String_ConfiguredValue: findType("LimitedMapView<String,ConfiguredValue>"),
  100150. LimitedMapView_String_ConfiguredValue_2: findType("LimitedMapView0<String,ConfiguredValue0>"),
  100151. List_ComplexSelectorComponent: findType("List<ComplexSelectorComponent>"),
  100152. List_ComplexSelectorComponent_2: findType("List<ComplexSelectorComponent0>"),
  100153. List_CssMediaQuery: findType("List<CssMediaQuery>"),
  100154. List_CssMediaQuery_2: findType("List<CssMediaQuery0>"),
  100155. List_Extension: findType("List<Extension>"),
  100156. List_ExtensionStore: findType("List<ExtensionStore>"),
  100157. List_ExtensionStore_2: findType("List<ExtensionStore0>"),
  100158. List_Extension_2: findType("List<Extension0>"),
  100159. List_List_ComplexSelectorComponent: findType("List<List<ComplexSelectorComponent>>"),
  100160. List_List_ComplexSelectorComponent_2: findType("List<List<ComplexSelectorComponent0>>"),
  100161. List_Module_AsyncCallable: findType("List<Module<AsyncCallable>>"),
  100162. List_Module_AsyncCallable_2: findType("List<Module0<AsyncCallable0>>"),
  100163. List_Module_Callable: findType("List<Module<Callable>>"),
  100164. List_Module_Callable_2: findType("List<Module0<Callable0>>"),
  100165. List_String: findType("List<String>"),
  100166. List_Value: findType("List<Value>"),
  100167. List_Value_2: findType("List<Value0>"),
  100168. List_WatchEvent: findType("List<WatchEvent>"),
  100169. List_dynamic: findType("List<@>"),
  100170. List_int: findType("List<int>"),
  100171. List_nullable_Object: findType("List<Object?>"),
  100172. MapKeySet_Module_AsyncCallable: findType("MapKeySet<Module<AsyncCallable>>"),
  100173. MapKeySet_Module_AsyncCallable_2: findType("MapKeySet<Module0<AsyncCallable0>>"),
  100174. MapKeySet_Module_Callable: findType("MapKeySet<Module<Callable>>"),
  100175. MapKeySet_Module_Callable_2: findType("MapKeySet<Module0<Callable0>>"),
  100176. MapKeySet_SimpleSelector: findType("MapKeySet<SimpleSelector>"),
  100177. MapKeySet_SimpleSelector_2: findType("MapKeySet<SimpleSelector0>"),
  100178. MapKeySet_String: findType("MapKeySet<String>"),
  100179. MapKeySet_nullable_Object: findType("MapKeySet<Object?>"),
  100180. Map_ComplexSelector_Extension: findType("Map<ComplexSelector,Extension>"),
  100181. Map_ComplexSelector_Extension_2: findType("Map<ComplexSelector0,Extension0>"),
  100182. Map_String_AstNode: findType("Map<String,AstNode>"),
  100183. Map_String_AstNode_2: findType("Map<String,AstNode0>"),
  100184. Map_String_AsyncCallable: findType("Map<String,AsyncCallable>"),
  100185. Map_String_AsyncCallable_2: findType("Map<String,AsyncCallable0>"),
  100186. Map_String_Callable: findType("Map<String,Callable>"),
  100187. Map_String_Callable_2: findType("Map<String,Callable0>"),
  100188. Map_String_Value: findType("Map<String,Value>"),
  100189. Map_String_Value_2: findType("Map<String,Value0>"),
  100190. Map_String_dynamic: findType("Map<String,@>"),
  100191. Map_dynamic_dynamic: findType("Map<@,@>"),
  100192. MappedIterable_String_Frame: findType("MappedIterable<String,Frame>"),
  100193. MappedListIterable_Frame_Frame: findType("MappedListIterable<Frame,Frame>"),
  100194. MappedListIterable_String_String: findType("MappedListIterable<String,String>"),
  100195. MappedListIterable_String_Trace: findType("MappedListIterable<String,Trace>"),
  100196. MappedListIterable_String_Value: findType("MappedListIterable<String,Value>"),
  100197. MappedListIterable_String_Value_2: findType("MappedListIterable<String,Value0>"),
  100198. MappedListIterable_String_dynamic: findType("MappedListIterable<String,@>"),
  100199. MediaQuerySuccessfulMergeResult: findType("MediaQuerySuccessfulMergeResult"),
  100200. MediaQuerySuccessfulMergeResult_2: findType("MediaQuerySuccessfulMergeResult0"),
  100201. MixinRule: findType("MixinRule"),
  100202. MixinRule_2: findType("MixinRule0"),
  100203. ModifiableCssAtRule: findType("ModifiableCssAtRule"),
  100204. ModifiableCssAtRule_2: findType("ModifiableCssAtRule0"),
  100205. ModifiableCssKeyframeBlock: findType("ModifiableCssKeyframeBlock"),
  100206. ModifiableCssKeyframeBlock_2: findType("ModifiableCssKeyframeBlock0"),
  100207. ModifiableCssMediaRule: findType("ModifiableCssMediaRule"),
  100208. ModifiableCssMediaRule_2: findType("ModifiableCssMediaRule0"),
  100209. ModifiableCssNode: findType("ModifiableCssNode"),
  100210. ModifiableCssNode_2: findType("ModifiableCssNode0"),
  100211. ModifiableCssParentNode: findType("ModifiableCssParentNode"),
  100212. ModifiableCssParentNode_2: findType("ModifiableCssParentNode0"),
  100213. ModifiableCssStyleRule: findType("ModifiableCssStyleRule"),
  100214. ModifiableCssStyleRule_2: findType("ModifiableCssStyleRule0"),
  100215. ModifiableCssSupportsRule: findType("ModifiableCssSupportsRule"),
  100216. ModifiableCssSupportsRule_2: findType("ModifiableCssSupportsRule0"),
  100217. ModifiableCssValue_SelectorList: findType("ModifiableCssValue<SelectorList>"),
  100218. ModifiableCssValue_SelectorList_2: findType("ModifiableCssValue0<SelectorList0>"),
  100219. Module_AsyncCallable: findType("Module<AsyncCallable>"),
  100220. Module_AsyncCallable_2: findType("Module0<AsyncCallable0>"),
  100221. Module_Callable: findType("Module<Callable>"),
  100222. Module_Callable_2: findType("Module0<Callable0>"),
  100223. NativeTypedArrayOfDouble: findType("NativeTypedArrayOfDouble"),
  100224. NativeTypedArrayOfInt: findType("NativeTypedArrayOfInt"),
  100225. NativeUint8List: findType("NativeUint8List"),
  100226. Never: findType("0&"),
  100227. NodeCompileResult: findType("NodeCompileResult"),
  100228. NodeImporter: findType("NodeImporter0"),
  100229. NodeImporterResult: findType("NodeImporterResult0"),
  100230. NodeImporterResult_2: findType("NodeImporterResult1"),
  100231. Null: findType("Null"),
  100232. Object: findType("Object"),
  100233. Option: findType("Option"),
  100234. PathMap_Stream_WatchEvent: findType("PathMap<Stream<WatchEvent>>"),
  100235. PathMap_String: findType("PathMap<String>"),
  100236. PathMap_nullable_String: findType("PathMap<String?>"),
  100237. Promise: findType("Promise"),
  100238. PseudoSelector: findType("PseudoSelector"),
  100239. PseudoSelector_2: findType("PseudoSelector0"),
  100240. RangeError: findType("RangeError"),
  100241. RegExpMatch: findType("RegExpMatch"),
  100242. RenderContextOptions: findType("RenderContextOptions0"),
  100243. RenderResult: findType("RenderResult"),
  100244. Result_String: findType("Result<String>"),
  100245. Runes: findType("Runes"),
  100246. SassArgumentList: findType("SassArgumentList"),
  100247. SassArgumentList_2: findType("SassArgumentList0"),
  100248. SassBoolean: findType("SassBoolean"),
  100249. SassBoolean_2: findType("SassBoolean0"),
  100250. SassColor: findType("SassColor"),
  100251. SassColor_2: findType("SassColor0"),
  100252. SassList: findType("SassList"),
  100253. SassList_2: findType("SassList0"),
  100254. SassMap: findType("SassMap"),
  100255. SassMap_2: findType("SassMap0"),
  100256. SassNumber: findType("SassNumber"),
  100257. SassNumber_2: findType("SassNumber0"),
  100258. SassRuntimeException: findType("SassRuntimeException"),
  100259. SassRuntimeException_2: findType("SassRuntimeException0"),
  100260. SassString: findType("SassString"),
  100261. SassString_2: findType("SassString0"),
  100262. SelectorList: findType("SelectorList"),
  100263. SelectorList_2: findType("SelectorList0"),
  100264. Set_ModifiableCssValue_SelectorList: findType("Set<ModifiableCssValue<SelectorList>>"),
  100265. Set_ModifiableCssValue_SelectorList_2: findType("Set<ModifiableCssValue0<SelectorList0>>"),
  100266. SimpleSelector: findType("SimpleSelector"),
  100267. SimpleSelector_2: findType("SimpleSelector0"),
  100268. SourceFile: findType("SourceFile"),
  100269. SourceLocation: findType("SourceLocation"),
  100270. SourceSpan: findType("SourceSpan"),
  100271. SourceSpanFormatException: findType("SourceSpanFormatException"),
  100272. SourceSpanWithContext: findType("SourceSpanWithContext"),
  100273. SpanColorFormat: findType("SpanColorFormat"),
  100274. SpanColorFormat_2: findType("SpanColorFormat0"),
  100275. StackTrace: findType("StackTrace"),
  100276. Statement: findType("Statement"),
  100277. Statement_2: findType("Statement0"),
  100278. StaticImport: findType("StaticImport"),
  100279. StaticImport_2: findType("StaticImport0"),
  100280. StreamCompleter_WatchEvent: findType("StreamCompleter<WatchEvent>"),
  100281. StreamGroup_WatchEvent: findType("StreamGroup<WatchEvent>"),
  100282. StreamQueue_String: findType("StreamQueue<String>"),
  100283. Stream_WatchEvent: findType("Stream<WatchEvent>"),
  100284. String: findType("String"),
  100285. StylesheetNode: findType("StylesheetNode"),
  100286. Symbol: findType("Symbol0"),
  100287. Timer: findType("Timer"),
  100288. Trace: findType("Trace"),
  100289. Tuple2_Expression_Expression: findType("Tuple2<Expression,Expression>"),
  100290. Tuple2_Expression_Expression_2: findType("Tuple2<Expression0,Expression0>"),
  100291. Tuple2_ModifiableCssStylesheet_ExtensionStore: findType("Tuple2<ModifiableCssStylesheet,ExtensionStore>"),
  100292. Tuple2_ModifiableCssStylesheet_ExtensionStore_2: findType("Tuple2<ModifiableCssStylesheet0,ExtensionStore0>"),
  100293. Tuple2_PseudoSelector_int: findType("Tuple2<PseudoSelector,int>"),
  100294. Tuple2_PseudoSelector_int_2: findType("Tuple2<PseudoSelector0,int>"),
  100295. Tuple2_SassNumber_SassNumber: findType("Tuple2<SassNumber,SassNumber>"),
  100296. Tuple2_SassNumber_SassNumber_2: findType("Tuple2<SassNumber0,SassNumber0>"),
  100297. Tuple2_String_ArgumentDeclaration: findType("Tuple2<String,ArgumentDeclaration0>"),
  100298. Tuple2_String_AstNode: findType("Tuple2<String,AstNode>"),
  100299. Tuple2_String_AstNode_2: findType("Tuple2<String,AstNode0>"),
  100300. Tuple2_String_SourceSpan: findType("Tuple2<String,SourceSpan>"),
  100301. Tuple2_String_String: findType("Tuple2<String,String>"),
  100302. Tuple2_Uri_bool: findType("Tuple2<Uri,bool>"),
  100303. Tuple2_of_ArgumentDeclaration_and_FutureOr_Value_Function_List_Value: findType("Tuple2<ArgumentDeclaration,Value/(List<Value>)>"),
  100304. Tuple2_of_ArgumentDeclaration_and_FutureOr_Value_Function_List_Value_2: findType("Tuple2<ArgumentDeclaration0,Value0/(List<Value0>)>"),
  100305. Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value: findType("Tuple2<ArgumentDeclaration,Value(List<Value>)>"),
  100306. Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2: findType("Tuple2<ArgumentDeclaration0,Value0(List<Value0>)>"),
  100307. Tuple2_of_ExtensionStore_and_Map_of_CssValue_SelectorList_and_ModifiableCssValue_SelectorList: findType("Tuple2<ExtensionStore,Map<CssValue<SelectorList>,ModifiableCssValue<SelectorList>>>"),
  100308. Tuple2_of_ExtensionStore_and_Map_of_CssValue_SelectorList_and_ModifiableCssValue_SelectorList_2: findType("Tuple2<ExtensionStore0,Map<CssValue0<SelectorList0>,ModifiableCssValue0<SelectorList0>>>"),
  100309. Tuple2_of_List_Expression_and_Map_String_Expression: findType("Tuple2<List<Expression>,Map<String,Expression>>"),
  100310. Tuple2_of_List_Expression_and_Map_String_Expression_2: findType("Tuple2<List<Expression0>,Map<String,Expression0>>"),
  100311. Tuple2_of_List_Uri_and_List_Uri: findType("Tuple2<List<Uri>,List<Uri>>"),
  100312. Tuple2_of_Map_of_Uri_and_nullable_StylesheetNode_and_Map_of_Uri_and_nullable_StylesheetNode: findType("Tuple2<Map<Uri,StylesheetNode?>,Map<Uri,StylesheetNode?>>"),
  100313. Tuple2_of_Set_String_and_Set_String: findType("Tuple2<Set<String>,Set<String>>"),
  100314. Tuple3_AsyncImporter_Uri_Uri: findType("Tuple3<AsyncImporter,Uri,Uri>"),
  100315. Tuple3_AsyncImporter_Uri_Uri_2: findType("Tuple3<AsyncImporter0,Uri,Uri>"),
  100316. Tuple3_Importer_Uri_Uri: findType("Tuple3<Importer,Uri,Uri>"),
  100317. Tuple3_Importer_Uri_Uri_2: findType("Tuple3<Importer0,Uri,Uri>"),
  100318. Tuple4_of_Uri_and_bool_and_AsyncImporter_and_nullable_Uri: findType("Tuple4<Uri,bool,AsyncImporter,Uri?>"),
  100319. Tuple4_of_Uri_and_bool_and_AsyncImporter_and_nullable_Uri_2: findType("Tuple4<Uri,bool,AsyncImporter0,Uri?>"),
  100320. Tuple4_of_Uri_and_bool_and_Importer_and_nullable_Uri: findType("Tuple4<Uri,bool,Importer,Uri?>"),
  100321. Tuple4_of_Uri_and_bool_and_Importer_and_nullable_Uri_2: findType("Tuple4<Uri,bool,Importer0,Uri?>"),
  100322. Type: findType("Type"),
  100323. TypeError: findType("TypeError"),
  100324. Uint8List: findType("Uint8List"),
  100325. UnknownJavaScriptObject: findType("UnknownJavaScriptObject"),
  100326. UnmodifiableListView_CssNode: findType("UnmodifiableListView<CssNode>"),
  100327. UnmodifiableListView_CssNode_2: findType("UnmodifiableListView<CssNode0>"),
  100328. UnmodifiableListView_ForwardRule: findType("UnmodifiableListView<ForwardRule>"),
  100329. UnmodifiableListView_ForwardRule_2: findType("UnmodifiableListView<ForwardRule0>"),
  100330. UnmodifiableListView_ModifiableCssNode: findType("UnmodifiableListView<ModifiableCssNode>"),
  100331. UnmodifiableListView_ModifiableCssNode_2: findType("UnmodifiableListView<ModifiableCssNode0>"),
  100332. UnmodifiableListView_String: findType("UnmodifiableListView<String>"),
  100333. UnmodifiableListView_UseRule: findType("UnmodifiableListView<UseRule>"),
  100334. UnmodifiableListView_UseRule_2: findType("UnmodifiableListView<UseRule0>"),
  100335. UnmodifiableMapView_String_ArgParser: findType("UnmodifiableMapView<String,ArgParser>"),
  100336. UnmodifiableMapView_String_ConfiguredValue: findType("UnmodifiableMapView<String,ConfiguredValue>"),
  100337. UnmodifiableMapView_String_ConfiguredValue_2: findType("UnmodifiableMapView<String,ConfiguredValue0>"),
  100338. UnmodifiableMapView_String_Option: findType("UnmodifiableMapView<String,Option>"),
  100339. UnmodifiableMapView_String_Value: findType("UnmodifiableMapView<String,Value>"),
  100340. UnmodifiableMapView_String_Value_2: findType("UnmodifiableMapView<String,Value0>"),
  100341. UnmodifiableMapView_of_Uri_and_nullable_StylesheetNode: findType("UnmodifiableMapView<Uri,StylesheetNode?>"),
  100342. UnmodifiableMapView_of_nullable_String_and_String: findType("UnmodifiableMapView<String?,String>"),
  100343. UnmodifiableMapView_of_nullable_String_and_nullable_String: findType("UnmodifiableMapView<String?,String?>"),
  100344. UnmodifiableSetView_String: findType("UnmodifiableSetView<String>"),
  100345. UnmodifiableSetView_StylesheetNode: findType("UnmodifiableSetView<StylesheetNode>"),
  100346. UnprefixedMapView_ConfiguredValue: findType("UnprefixedMapView<ConfiguredValue>"),
  100347. UnprefixedMapView_ConfiguredValue_2: findType("UnprefixedMapView0<ConfiguredValue0>"),
  100348. Uri: findType("Uri"),
  100349. UseRule: findType("UseRule"),
  100350. UserDefinedCallable_AsyncEnvironment: findType("UserDefinedCallable<AsyncEnvironment>"),
  100351. UserDefinedCallable_AsyncEnvironment_2: findType("UserDefinedCallable0<AsyncEnvironment0>"),
  100352. UserDefinedCallable_Environment: findType("UserDefinedCallable<Environment>"),
  100353. UserDefinedCallable_Environment_2: findType("UserDefinedCallable0<Environment0>"),
  100354. Value: findType("Value"),
  100355. Value_2: findType("Value0"),
  100356. Value_Function_List_Value: findType("Value(List<Value>)"),
  100357. Value_Function_List_Value_2: findType("Value0(List<Value0>)"),
  100358. VariableDeclaration: findType("VariableDeclaration"),
  100359. VariableDeclaration_2: findType("VariableDeclaration0"),
  100360. WatchEvent: findType("WatchEvent"),
  100361. WhereIterable_List_Iterable_ComplexSelectorComponent: findType("WhereIterable<List<Iterable<ComplexSelectorComponent>>>"),
  100362. WhereIterable_List_Iterable_ComplexSelectorComponent_2: findType("WhereIterable<List<Iterable<ComplexSelectorComponent0>>>"),
  100363. WhereIterable_String: findType("WhereIterable<String>"),
  100364. WhereTypeIterable_PseudoSelector: findType("WhereTypeIterable<PseudoSelector>"),
  100365. WhereTypeIterable_PseudoSelector_2: findType("WhereTypeIterable<PseudoSelector0>"),
  100366. WhereTypeIterable_String: findType("WhereTypeIterable<String>"),
  100367. _ArgumentResults: findType("_ArgumentResults0"),
  100368. _ArgumentResults_2: findType("_ArgumentResults2"),
  100369. _AsyncCompleter_Object: findType("_AsyncCompleter<Object>"),
  100370. _AsyncCompleter_Stream_WatchEvent: findType("_AsyncCompleter<Stream<WatchEvent>>"),
  100371. _AsyncCompleter_String: findType("_AsyncCompleter<String>"),
  100372. _AsyncCompleter_nullable_Object: findType("_AsyncCompleter<Object?>"),
  100373. _CompleterStream_WatchEvent: findType("_CompleterStream<WatchEvent>"),
  100374. _EventRequest_dynamic: findType("_EventRequest<@>"),
  100375. _Future_Object: findType("_Future<Object>"),
  100376. _Future_Stream_WatchEvent: findType("_Future<Stream<WatchEvent>>"),
  100377. _Future_String: findType("_Future<String>"),
  100378. _Future_bool: findType("_Future<bool>"),
  100379. _Future_dynamic: findType("_Future<@>"),
  100380. _Future_int: findType("_Future<int>"),
  100381. _Future_nullable_Object: findType("_Future<Object?>"),
  100382. _Future_void: findType("_Future<~>"),
  100383. _Highlight: findType("_Highlight"),
  100384. _IdentityHashMap_dynamic_dynamic: findType("_IdentityHashMap<@,@>"),
  100385. _LinkedIdentityHashMap_SimpleSelector_int: findType("_LinkedIdentityHashMap<SimpleSelector,int>"),
  100386. _LinkedIdentityHashMap_SimpleSelector_int_2: findType("_LinkedIdentityHashMap<SimpleSelector0,int>"),
  100387. _LinkedIdentityHashSet_ComplexSelector: findType("_LinkedIdentityHashSet<ComplexSelector>"),
  100388. _LinkedIdentityHashSet_ComplexSelector_2: findType("_LinkedIdentityHashSet<ComplexSelector0>"),
  100389. _LinkedIdentityHashSet_Extension: findType("_LinkedIdentityHashSet<Extension>"),
  100390. _LinkedIdentityHashSet_Extension_2: findType("_LinkedIdentityHashSet<Extension0>"),
  100391. _LoadedStylesheet: findType("_LoadedStylesheet0"),
  100392. _LoadedStylesheet_2: findType("_LoadedStylesheet2"),
  100393. _MapEntry: findType("_MapEntry"),
  100394. _NodeException: findType("_NodeException"),
  100395. _UnmodifiableSet_String: findType("_UnmodifiableSet<String>"),
  100396. bool: findType("bool"),
  100397. double: findType("double"),
  100398. dynamic: findType("@"),
  100399. dynamic_Function: findType("@()"),
  100400. dynamic_Function_Object: findType("@(Object)"),
  100401. dynamic_Function_Object_StackTrace: findType("@(Object,StackTrace)"),
  100402. int: findType("int"),
  100403. legacy_Never: findType("0&*"),
  100404. legacy_Object: findType("Object*"),
  100405. nullable_AstNode: findType("AstNode?"),
  100406. nullable_AstNode_2: findType("AstNode0?"),
  100407. nullable_FileSpan: findType("FileSpan?"),
  100408. nullable_Future_Null: findType("Future<Null>?"),
  100409. nullable_Future_void: findType("Future<~>?"),
  100410. nullable_ImporterResult: findType("ImporterResult0?"),
  100411. nullable_Object: findType("Object?"),
  100412. nullable_SourceFile: findType("SourceFile?"),
  100413. nullable_SourceSpan: findType("SourceSpan?"),
  100414. nullable_StreamSubscription_WatchEvent: findType("StreamSubscription<WatchEvent>?"),
  100415. nullable_String: findType("String?"),
  100416. nullable_Stylesheet: findType("Stylesheet?"),
  100417. nullable_StylesheetNode: findType("StylesheetNode?"),
  100418. nullable_Stylesheet_2: findType("Stylesheet0?"),
  100419. nullable_Tuple2_String_String: findType("Tuple2<String,String>?"),
  100420. nullable_Tuple3_AsyncImporter_Uri_Uri: findType("Tuple3<AsyncImporter,Uri,Uri>?"),
  100421. nullable_Tuple3_AsyncImporter_Uri_Uri_2: findType("Tuple3<AsyncImporter0,Uri,Uri>?"),
  100422. nullable_Tuple3_Importer_Uri_Uri: findType("Tuple3<Importer,Uri,Uri>?"),
  100423. nullable_Tuple3_Importer_Uri_Uri_2: findType("Tuple3<Importer0,Uri,Uri>?"),
  100424. nullable_Uri: findType("Uri?"),
  100425. nullable_Value: findType("Value?"),
  100426. nullable_Value_2: findType("Value0?"),
  100427. nullable__ConstructorOptions: findType("_ConstructorOptions?"),
  100428. nullable__ConstructorOptions_2: findType("_ConstructorOptions0?"),
  100429. nullable__ConstructorOptions_3: findType("_ConstructorOptions1?"),
  100430. nullable__Highlight: findType("_Highlight?"),
  100431. nullable__LoadedStylesheet: findType("_LoadedStylesheet0?"),
  100432. nullable__LoadedStylesheet_2: findType("_LoadedStylesheet2?"),
  100433. num: findType("num"),
  100434. void: findType("~"),
  100435. void_Function_Object: findType("~(Object)"),
  100436. void_Function_Object_StackTrace: findType("~(Object,StackTrace)")
  100437. };
  100438. })();
  100439. (function constants() {
  100440. var makeConstList = hunkHelpers.makeConstList;
  100441. B.Interceptor_methods = J.Interceptor.prototype;
  100442. B.JSArray_methods = J.JSArray.prototype;
  100443. B.JSBool_methods = J.JSBool.prototype;
  100444. B.JSInt_methods = J.JSInt.prototype;
  100445. B.JSNumber_methods = J.JSNumber.prototype;
  100446. B.JSString_methods = J.JSString.prototype;
  100447. B.JavaScriptFunction_methods = J.JavaScriptFunction.prototype;
  100448. B.JavaScriptObject_methods = J.JavaScriptObject.prototype;
  100449. B.NativeUint32List_methods = A.NativeUint32List.prototype;
  100450. B.NativeUint8List_methods = A.NativeUint8List.prototype;
  100451. B.PlainJavaScriptObject_methods = J.PlainJavaScriptObject.prototype;
  100452. B.UnknownJavaScriptObject_methods = J.UnknownJavaScriptObject.prototype;
  100453. B.AsciiEncoder_127 = new A.AsciiEncoder(127);
  100454. B.C_EmptyUnmodifiableSet1 = new A.EmptyUnmodifiableSet(A.findType("EmptyUnmodifiableSet<String>"));
  100455. B.AtRootQuery_UsS = new A.AtRootQuery(false, B.C_EmptyUnmodifiableSet1, false, true);
  100456. B.AtRootQuery_UsS0 = new A.AtRootQuery0(false, B.C_EmptyUnmodifiableSet1, false, true);
  100457. B.AttributeOperator_8aB = new A.AttributeOperator("*=", "substring");
  100458. B.AttributeOperator_8aB0 = new A.AttributeOperator0("*=", "substring");
  100459. B.AttributeOperator_BGd = new A.AttributeOperator("$=", "suffix");
  100460. B.AttributeOperator_BGd0 = new A.AttributeOperator0("$=", "suffix");
  100461. B.AttributeOperator_ES6 = new A.AttributeOperator("=", "equal");
  100462. B.AttributeOperator_ES60 = new A.AttributeOperator0("=", "equal");
  100463. B.AttributeOperator_eot = new A.AttributeOperator("^=", "prefix");
  100464. B.AttributeOperator_eot0 = new A.AttributeOperator0("^=", "prefix");
  100465. B.AttributeOperator_ivT = new A.AttributeOperator("|=", "dash");
  100466. B.AttributeOperator_ivT0 = new A.AttributeOperator0("|=", "dash");
  100467. B.AttributeOperator_r60 = new A.AttributeOperator("~=", "include");
  100468. B.AttributeOperator_r600 = new A.AttributeOperator0("~=", "include");
  100469. B.BinaryOperator_6pl = new A.BinaryOperator("times", "*", 6, "times");
  100470. B.BinaryOperator_6pl0 = new A.BinaryOperator0("times", "*", 6, "times");
  100471. B.BinaryOperator_KlB = new A.BinaryOperator("minus", "-", 5, "minus");
  100472. B.BinaryOperator_KlB0 = new A.BinaryOperator0("minus", "-", 5, "minus");
  100473. B.BinaryOperator_PHH = new A.BinaryOperator("modulo", "%", 6, "modulo");
  100474. B.BinaryOperator_PHH0 = new A.BinaryOperator0("modulo", "%", 6, "modulo");
  100475. B.BinaryOperator_Vr9 = new A.BinaryOperator("not equals", "!=", 3, "notEquals");
  100476. B.BinaryOperator_Vr90 = new A.BinaryOperator0("not equals", "!=", 3, "notEquals");
  100477. B.BinaryOperator_Wma = new A.BinaryOperator("greater than or equals", ">=", 4, "greaterThanOrEquals");
  100478. B.BinaryOperator_Wma0 = new A.BinaryOperator0("greater than or equals", ">=", 4, "greaterThanOrEquals");
  100479. B.BinaryOperator_and_and_2_and = new A.BinaryOperator("and", "and", 2, "and");
  100480. B.BinaryOperator_and_and_2_and0 = new A.BinaryOperator0("and", "and", 2, "and");
  100481. B.BinaryOperator_apg = new A.BinaryOperator("less than", "<", 4, "lessThan");
  100482. B.BinaryOperator_apg0 = new A.BinaryOperator0("less than", "<", 4, "lessThan");
  100483. B.BinaryOperator_axY = new A.BinaryOperator("single equals", "=", 0, "singleEquals");
  100484. B.BinaryOperator_axY0 = new A.BinaryOperator0("single equals", "=", 0, "singleEquals");
  100485. B.BinaryOperator_cw1 = new A.BinaryOperator("greater than", ">", 4, "greaterThan");
  100486. B.BinaryOperator_cw10 = new A.BinaryOperator0("greater than", ">", 4, "greaterThan");
  100487. B.BinaryOperator_nZh = new A.BinaryOperator("equals", "==", 3, "equals");
  100488. B.BinaryOperator_nZh0 = new A.BinaryOperator0("equals", "==", 3, "equals");
  100489. B.BinaryOperator_oqF = new A.BinaryOperator("less than or equals", "<=", 4, "lessThanOrEquals");
  100490. B.BinaryOperator_oqF0 = new A.BinaryOperator0("less than or equals", "<=", 4, "lessThanOrEquals");
  100491. B.BinaryOperator_or_or_1_or = new A.BinaryOperator("or", "or", 1, "or");
  100492. B.BinaryOperator_or_or_1_or0 = new A.BinaryOperator0("or", "or", 1, "or");
  100493. B.BinaryOperator_qbf = new A.BinaryOperator("plus", "+", 5, "plus");
  100494. B.BinaryOperator_qbf0 = new A.BinaryOperator0("plus", "+", 5, "plus");
  100495. B.BinaryOperator_qpm = new A.BinaryOperator("divided by", "/", 6, "dividedBy");
  100496. B.BinaryOperator_qpm0 = new A.BinaryOperator0("divided by", "/", 6, "dividedBy");
  100497. B.CONSTANT = new A.Instantiation1(A.math0__max$closure(), A.findType("Instantiation1<int>"));
  100498. B.C_AsciiCodec = new A.AsciiCodec();
  100499. B.C_AsciiGlyphSet = new A.AsciiGlyphSet();
  100500. B.C_Base64Encoder = new A.Base64Encoder();
  100501. B.C_Base64Codec = new A.Base64Codec();
  100502. B.C_DefaultEquality = new A.DefaultEquality();
  100503. B.C_EmptyExtensionStore = new A.EmptyExtensionStore();
  100504. B.C_EmptyExtensionStore0 = new A.EmptyExtensionStore0();
  100505. B.C_EmptyIterator = new A.EmptyIterator();
  100506. B.C_EmptyUnmodifiableSet = new A.EmptyUnmodifiableSet(A.findType("EmptyUnmodifiableSet<SimpleSelector>"));
  100507. B.C_EmptyUnmodifiableSet0 = new A.EmptyUnmodifiableSet(A.findType("EmptyUnmodifiableSet<SimpleSelector0>"));
  100508. B.C_IterableEquality = new A.IterableEquality();
  100509. B.C_JS_CONST = function getTagFallback(o) {
  100510. var s = Object.prototype.toString.call(o);
  100511. return s.substring(8, s.length - 1);
  100512. };
  100513. B.C_JS_CONST0 = function() {
  100514. var toStringFunction = Object.prototype.toString;
  100515. function getTag(o) {
  100516. var s = toStringFunction.call(o);
  100517. return s.substring(8, s.length - 1);
  100518. }
  100519. function getUnknownTag(object, tag) {
  100520. if (/^HTML[A-Z].*Element$/.test(tag)) {
  100521. var name = toStringFunction.call(object);
  100522. if (name == "[object Object]") return null;
  100523. return "HTMLElement";
  100524. }
  100525. }
  100526. function getUnknownTagGenericBrowser(object, tag) {
  100527. if (self.HTMLElement && object instanceof HTMLElement) return "HTMLElement";
  100528. return getUnknownTag(object, tag);
  100529. }
  100530. function prototypeForTag(tag) {
  100531. if (typeof window == "undefined") return null;
  100532. if (typeof window[tag] == "undefined") return null;
  100533. var constructor = window[tag];
  100534. if (typeof constructor != "function") return null;
  100535. return constructor.prototype;
  100536. }
  100537. function discriminator(tag) { return null; }
  100538. var isBrowser = typeof navigator == "object";
  100539. return {
  100540. getTag: getTag,
  100541. getUnknownTag: isBrowser ? getUnknownTagGenericBrowser : getUnknownTag,
  100542. prototypeForTag: prototypeForTag,
  100543. discriminator: discriminator };
  100544. };
  100545. B.C_JS_CONST6 = function(getTagFallback) {
  100546. return function(hooks) {
  100547. if (typeof navigator != "object") return hooks;
  100548. var ua = navigator.userAgent;
  100549. if (ua.indexOf("DumpRenderTree") >= 0) return hooks;
  100550. if (ua.indexOf("Chrome") >= 0) {
  100551. function confirm(p) {
  100552. return typeof window == "object" && window[p] && window[p].name == p;
  100553. }
  100554. if (confirm("Window") && confirm("HTMLElement")) return hooks;
  100555. }
  100556. hooks.getTag = getTagFallback;
  100557. };
  100558. };
  100559. B.C_JS_CONST1 = function(hooks) {
  100560. if (typeof dartExperimentalFixupGetTag != "function") return hooks;
  100561. hooks.getTag = dartExperimentalFixupGetTag(hooks.getTag);
  100562. };
  100563. B.C_JS_CONST2 = function(hooks) {
  100564. var getTag = hooks.getTag;
  100565. var prototypeForTag = hooks.prototypeForTag;
  100566. function getTagFixed(o) {
  100567. var tag = getTag(o);
  100568. if (tag == "Document") {
  100569. if (!!o.xmlVersion) return "!Document";
  100570. return "!HTMLDocument";
  100571. }
  100572. return tag;
  100573. }
  100574. function prototypeForTagFixed(tag) {
  100575. if (tag == "Document") return null;
  100576. return prototypeForTag(tag);
  100577. }
  100578. hooks.getTag = getTagFixed;
  100579. hooks.prototypeForTag = prototypeForTagFixed;
  100580. };
  100581. B.C_JS_CONST5 = function(hooks) {
  100582. var userAgent = typeof navigator == "object" ? navigator.userAgent : "";
  100583. if (userAgent.indexOf("Firefox") == -1) return hooks;
  100584. var getTag = hooks.getTag;
  100585. var quickMap = {
  100586. "BeforeUnloadEvent": "Event",
  100587. "DataTransfer": "Clipboard",
  100588. "GeoGeolocation": "Geolocation",
  100589. "Location": "!Location",
  100590. "WorkerMessageEvent": "MessageEvent",
  100591. "XMLDocument": "!Document"};
  100592. function getTagFirefox(o) {
  100593. var tag = getTag(o);
  100594. return quickMap[tag] || tag;
  100595. }
  100596. hooks.getTag = getTagFirefox;
  100597. };
  100598. B.C_JS_CONST4 = function(hooks) {
  100599. var userAgent = typeof navigator == "object" ? navigator.userAgent : "";
  100600. if (userAgent.indexOf("Trident/") == -1) return hooks;
  100601. var getTag = hooks.getTag;
  100602. var quickMap = {
  100603. "BeforeUnloadEvent": "Event",
  100604. "DataTransfer": "Clipboard",
  100605. "HTMLDDElement": "HTMLElement",
  100606. "HTMLDTElement": "HTMLElement",
  100607. "HTMLPhraseElement": "HTMLElement",
  100608. "Position": "Geoposition"
  100609. };
  100610. function getTagIE(o) {
  100611. var tag = getTag(o);
  100612. var newTag = quickMap[tag];
  100613. if (newTag) return newTag;
  100614. if (tag == "Object") {
  100615. if (window.DataView && (o instanceof window.DataView)) return "DataView";
  100616. }
  100617. return tag;
  100618. }
  100619. function prototypeForTagIE(tag) {
  100620. var constructor = window[tag];
  100621. if (constructor == null) return null;
  100622. return constructor.prototype;
  100623. }
  100624. hooks.getTag = getTagIE;
  100625. hooks.prototypeForTag = prototypeForTagIE;
  100626. };
  100627. B.C_JS_CONST3 = function(hooks) { return hooks; }
  100628. ;
  100629. B.C_JsonCodec = new A.JsonCodec();
  100630. B.C_ListEquality0 = new A.ListEquality();
  100631. B.C_ListEquality = new A.ListEquality();
  100632. B.C_MapEquality = new A.MapEquality();
  100633. B.C_OutOfMemoryError = new A.OutOfMemoryError();
  100634. B.C_SentinelValue = new A.SentinelValue();
  100635. B.C_UnicodeGlyphSet = new A.UnicodeGlyphSet();
  100636. B.C_Utf8Codec = new A.Utf8Codec();
  100637. B.C_Utf8Encoder = new A.Utf8Encoder();
  100638. B.C__DelayedDone = new A._DelayedDone();
  100639. B.C__HasContentVisitor = new A._HasContentVisitor();
  100640. B.C__HasContentVisitor0 = new A._HasContentVisitor0();
  100641. B.C__IsUselessVisitor = new A._IsUselessVisitor();
  100642. B.C__IsUselessVisitor0 = new A._IsUselessVisitor0();
  100643. B.C__JSRandom = new A._JSRandom();
  100644. B.C__Required = new A._Required();
  100645. B.C__RootZone = new A._RootZone();
  100646. B.C__SassNull = new A._SassNull();
  100647. B.C__SassNull0 = new A._SassNull0();
  100648. B.CalculationOperator_2bx = new A.CalculationOperator("minus", "-", 1, "minus");
  100649. B.CalculationOperator_2bx0 = new A.CalculationOperator0("minus", "-", 1, "minus");
  100650. B.CalculationOperator_IyK = new A.CalculationOperator("plus", "+", 1, "plus");
  100651. B.CalculationOperator_IyK0 = new A.CalculationOperator0("plus", "+", 1, "plus");
  100652. B.CalculationOperator_OvN = new A.CalculationOperator("divided by", "/", 2, "dividedBy");
  100653. B.CalculationOperator_OvN0 = new A.CalculationOperator0("divided by", "/", 2, "dividedBy");
  100654. B.CalculationOperator_jFr = new A.CalculationOperator("times", "*", 2, "times");
  100655. B.CalculationOperator_jFr0 = new A.CalculationOperator0("times", "*", 2, "times");
  100656. B.ChangeType_add = new A.ChangeType("add");
  100657. B.ChangeType_modify = new A.ChangeType("modify");
  100658. B.ChangeType_remove = new A.ChangeType("remove");
  100659. B.Combinator_4QF = new A.Combinator("+", "nextSibling");
  100660. B.Combinator_4QF0 = new A.Combinator0("+", "nextSibling");
  100661. B.Combinator_Cht = new A.Combinator(">", "child");
  100662. B.Combinator_Cht0 = new A.Combinator0(">", "child");
  100663. B.Combinator_Htt = new A.Combinator("~", "followingSibling");
  100664. B.Combinator_Htt0 = new A.Combinator0("~", "followingSibling");
  100665. B.List_empty = A._setArrayType(makeConstList([]), type$.JSArray_String);
  100666. B.Map_empty11 = new A.ConstantStringMap(0, {}, B.List_empty, A.findType("ConstantStringMap<String,ConfiguredValue>"));
  100667. B.Configuration_Map_empty_null = new A.Configuration(B.Map_empty11, null);
  100668. B.Map_empty12 = new A.ConstantStringMap(0, {}, B.List_empty, A.findType("ConstantStringMap<String,ConfiguredValue0>"));
  100669. B.Configuration_Map_empty_null0 = new A.Configuration0(B.Map_empty12, null);
  100670. B.Duration_0 = new A.Duration(0);
  100671. B.ExtendMode_allTargets_allTargets = new A.ExtendMode("allTargets", "allTargets");
  100672. B.ExtendMode_allTargets_allTargets0 = new A.ExtendMode0("allTargets", "allTargets");
  100673. B.ExtendMode_normal_normal = new A.ExtendMode("normal", "normal");
  100674. B.ExtendMode_normal_normal0 = new A.ExtendMode0("normal", "normal");
  100675. B.ExtendMode_replace_replace = new A.ExtendMode("replace", "replace");
  100676. B.ExtendMode_replace_replace0 = new A.ExtendMode0("replace", "replace");
  100677. B.JsonEncoder_null = new A.JsonEncoder(null);
  100678. B.LineFeed_SsD = new A.LineFeed0("lf", "\n", "lf");
  100679. B.LineFeed_gg4 = new A.LineFeed0("crlf", "\r\n", "crlf");
  100680. B.LineFeed_lf = new A.LineFeed("lf");
  100681. B.LineFeed_oyU = new A.LineFeed0("cr", "\r", "cr");
  100682. B.LineFeed_t2a = new A.LineFeed0("lfcr", "\n\r", "lfcr");
  100683. B.ListSeparator_EVt = new A.ListSeparator("space", " ", "space");
  100684. B.ListSeparator_EVt0 = new A.ListSeparator0("space", " ", "space");
  100685. B.ListSeparator_rXA = new A.ListSeparator("comma", ",", "comma");
  100686. B.ListSeparator_rXA0 = new A.ListSeparator0("comma", ",", "comma");
  100687. B.ListSeparator_undecided_null_undecided = new A.ListSeparator("undecided", null, "undecided");
  100688. B.ListSeparator_undecided_null_undecided0 = new A.ListSeparator0("undecided", null, "undecided");
  100689. B.ListSeparator_zg9 = new A.ListSeparator("slash", "/", "slash");
  100690. B.ListSeparator_zg90 = new A.ListSeparator0("slash", "/", "slash");
  100691. B.List_2Vk = A._setArrayType(makeConstList([0, 0, 32776, 33792, 1, 10240, 0, 0]), type$.JSArray_int);
  100692. B.List_Opy = A._setArrayType(makeConstList(["em", "ex", "ch", "rem", "vw", "vh", "vmin", "vmax", "cm", "mm", "q", "in", "pt", "pc", "px"]), type$.JSArray_String);
  100693. B.Map_Op0VJ = new A.ConstantStringMap(15, {em: null, ex: null, ch: null, rem: null, vw: null, vh: null, vmin: null, vmax: null, cm: null, mm: null, q: null, in: null, pt: null, pc: null, px: null}, B.List_Opy, type$.ConstantStringMap_String_Null);
  100694. B.Set_Opyzl = new A._UnmodifiableSet(B.Map_Op0VJ, type$._UnmodifiableSet_String);
  100695. B.List_deg_grad_rad_turn = A._setArrayType(makeConstList(["deg", "grad", "rad", "turn"]), type$.JSArray_String);
  100696. B.Map_EGso3 = new A.ConstantStringMap(4, {deg: null, grad: null, rad: null, turn: null}, B.List_deg_grad_rad_turn, type$.ConstantStringMap_String_Null);
  100697. B.Set_EGJh = new A._UnmodifiableSet(B.Map_EGso3, type$._UnmodifiableSet_String);
  100698. B.List_s_ms = A._setArrayType(makeConstList(["s", "ms"]), type$.JSArray_String);
  100699. B.Map_maDht = new A.ConstantStringMap(2, {s: null, ms: null}, B.List_s_ms, type$.ConstantStringMap_String_Null);
  100700. B.Set_maSD = new A._UnmodifiableSet(B.Map_maDht, type$._UnmodifiableSet_String);
  100701. B.List_hz_khz = A._setArrayType(makeConstList(["hz", "khz"]), type$.JSArray_String);
  100702. B.Map_kfoGx = new A.ConstantStringMap(2, {hz: null, khz: null}, B.List_hz_khz, type$.ConstantStringMap_String_Null);
  100703. B.Set_kfn1 = new A._UnmodifiableSet(B.Map_kfoGx, type$._UnmodifiableSet_String);
  100704. B.List_dpi_dpcm_dppx = A._setArrayType(makeConstList(["dpi", "dpcm", "dppx"]), type$.JSArray_String);
  100705. B.Map_H20 = new A.ConstantStringMap(3, {dpi: null, dpcm: null, dppx: null}, B.List_dpi_dpcm_dppx, type$.ConstantStringMap_String_Null);
  100706. B.Set_H2nB4 = new A._UnmodifiableSet(B.Map_H20, type$._UnmodifiableSet_String);
  100707. B.List_AqW = A._setArrayType(makeConstList([B.Set_Opyzl, B.Set_EGJh, B.Set_maSD, B.Set_kfn1, B.Set_H2nB4]), A.findType("JSArray<Set<String>>"));
  100708. B.List_CVk = A._setArrayType(makeConstList([0, 0, 65490, 45055, 65535, 34815, 65534, 18431]), type$.JSArray_int);
  100709. B.List_IoD = A._setArrayType(makeConstList([B.Combinator_4QF]), type$.JSArray_Combinator);
  100710. B.List_IoD0 = A._setArrayType(makeConstList([B.Combinator_4QF0]), type$.JSArray_Combinator_2);
  100711. B.List_JYB = A._setArrayType(makeConstList([0, 0, 26624, 1023, 65534, 2047, 65534, 2047]), type$.JSArray_int);
  100712. B.List_Kw1 = A._setArrayType(makeConstList([B.Combinator_Htt]), type$.JSArray_Combinator);
  100713. B.List_Kw10 = A._setArrayType(makeConstList([B.Combinator_Htt0]), type$.JSArray_Combinator_2);
  100714. B.List_empty10 = A._setArrayType(makeConstList([]), type$.JSArray_Argument);
  100715. B.List_empty22 = A._setArrayType(makeConstList([]), type$.JSArray_Argument_2);
  100716. B.List_empty24 = A._setArrayType(makeConstList([]), type$.JSArray_AsyncCallable_2);
  100717. B.List_empty25 = A._setArrayType(makeConstList([]), type$.JSArray_AsyncImporter);
  100718. B.List_empty0 = A._setArrayType(makeConstList([]), type$.JSArray_Combinator);
  100719. B.List_empty13 = A._setArrayType(makeConstList([]), type$.JSArray_Combinator_2);
  100720. B.List_empty1 = A._setArrayType(makeConstList([]), type$.JSArray_ComplexSelector);
  100721. B.List_empty14 = A._setArrayType(makeConstList([]), type$.JSArray_ComplexSelector_2);
  100722. B.List_empty2 = A._setArrayType(makeConstList([]), type$.JSArray_ComplexSelectorComponent);
  100723. B.List_empty15 = A._setArrayType(makeConstList([]), type$.JSArray_ComplexSelectorComponent_2);
  100724. B.List_empty8 = A._setArrayType(makeConstList([]), type$.JSArray_ConfiguredVariable);
  100725. B.List_empty20 = A._setArrayType(makeConstList([]), type$.JSArray_ConfiguredVariable_2);
  100726. B.List_empty3 = A._setArrayType(makeConstList([]), type$.JSArray_CssNode);
  100727. B.List_empty16 = A._setArrayType(makeConstList([]), type$.JSArray_CssNode_2);
  100728. B.List_empty9 = A._setArrayType(makeConstList([]), type$.JSArray_Expression);
  100729. B.List_empty21 = A._setArrayType(makeConstList([]), type$.JSArray_Expression_2);
  100730. B.List_empty5 = A._setArrayType(makeConstList([]), type$.JSArray_Extension);
  100731. B.List_empty17 = A._setArrayType(makeConstList([]), type$.JSArray_Extension_2);
  100732. B.List_empty23 = A._setArrayType(makeConstList([]), type$.JSArray_Importer);
  100733. B.List_empty6 = A._setArrayType(makeConstList([]), A.findType("JSArray<Module<0&>>"));
  100734. B.List_empty18 = A._setArrayType(makeConstList([]), A.findType("JSArray<Module0<0&>>"));
  100735. B.List_empty12 = A._setArrayType(makeConstList([]), type$.JSArray_Statement);
  100736. B.List_empty7 = A._setArrayType(makeConstList([]), type$.JSArray_Value);
  100737. B.List_empty19 = A._setArrayType(makeConstList([]), type$.JSArray_Value_2);
  100738. B.List_empty4 = A._setArrayType(makeConstList([]), type$.JSArray_int);
  100739. B.List_empty11 = A._setArrayType(makeConstList([]), type$.JSArray_dynamic);
  100740. B.List_gRj = A._setArrayType(makeConstList([0, 0, 32722, 12287, 65534, 34815, 65534, 18431]), type$.JSArray_int);
  100741. B.List_nxB = A._setArrayType(makeConstList([0, 0, 24576, 1023, 65534, 34815, 65534, 18431]), type$.JSArray_int);
  100742. B.List_qFt = A._setArrayType(makeConstList([0, 0, 27858, 1023, 65534, 51199, 65535, 32767]), type$.JSArray_int);
  100743. B.List_qNA = A._setArrayType(makeConstList([0, 0, 32754, 11263, 65534, 34815, 65534, 18431]), type$.JSArray_int);
  100744. B.List_qg40 = A._setArrayType(makeConstList([0, 0, 32722, 12287, 65535, 34815, 65534, 18431]), type$.JSArray_int);
  100745. B.List_qg4 = A._setArrayType(makeConstList([0, 0, 65490, 12287, 65535, 34815, 65534, 18431]), type$.JSArray_int);
  100746. B.List_K2O = A._setArrayType(makeConstList(["in", "cm", "pc", "mm", "q", "pt", "px", "deg", "grad", "rad", "turn", "s", "ms", "Hz", "kHz", "dpi", "dpcm", "dppx"]), type$.JSArray_String);
  100747. B.List_aha = A._setArrayType(makeConstList(["in", "cm", "pc", "mm", "q", "pt", "px"]), type$.JSArray_String);
  100748. B.Map_ahsJO = new A.ConstantStringMap(7, {in: 1, cm: 0.39370078740157477, pc: 0.16666666666666666, mm: 0.03937007874015748, q: 0.00984251968503937, pt: 0.013888888888888888, px: 0.010416666666666666}, B.List_aha, type$.ConstantStringMap_String_double);
  100749. B.Map_ahM6L = new A.ConstantStringMap(7, {in: 2.54, cm: 1, pc: 0.42333333333333334, mm: 0.1, q: 0.025, pt: 0.035277777777777776, px: 0.026458333333333334}, B.List_aha, type$.ConstantStringMap_String_double);
  100750. B.Map_ahNsa = new A.ConstantStringMap(7, {in: 6, cm: 2.3622047244094486, pc: 1, mm: 0.2362204724409449, q: 0.05905511811023623, pt: 0.08333333333333333, px: 0.0625}, B.List_aha, type$.ConstantStringMap_String_double);
  100751. B.Map_ahPSt = new A.ConstantStringMap(7, {in: 25.4, cm: 10, pc: 4.233333333333333, mm: 1, q: 0.25, pt: 0.35277777777777775, px: 0.26458333333333334}, B.List_aha, type$.ConstantStringMap_String_double);
  100752. B.Map_ahgya = new A.ConstantStringMap(7, {in: 101.6, cm: 40, pc: 16.933333333333334, mm: 4, q: 1, pt: 1.411111111111111, px: 1.0583333333333333}, B.List_aha, type$.ConstantStringMap_String_double);
  100753. B.Map_ahGvh = new A.ConstantStringMap(7, {in: 72, cm: 28.346456692913385, pc: 12, mm: 2.834645669291339, q: 0.7086614173228347, pt: 1, px: 0.75}, B.List_aha, type$.ConstantStringMap_String_double);
  100754. B.Map_ahkuc = new A.ConstantStringMap(7, {in: 96, cm: 37.79527559055118, pc: 16, mm: 3.7795275590551185, q: 0.9448818897637796, pt: 1.3333333333333333, px: 1}, B.List_aha, type$.ConstantStringMap_String_double);
  100755. B.Map_EGyvr = new A.ConstantStringMap(4, {deg: 1, grad: 0.9, rad: 57.29577951308232, turn: 360}, B.List_deg_grad_rad_turn, type$.ConstantStringMap_String_double);
  100756. B.Map_EGfqB = new A.ConstantStringMap(4, {deg: 1.1111111111111112, grad: 1, rad: 63.66197723675813, turn: 400}, B.List_deg_grad_rad_turn, type$.ConstantStringMap_String_double);
  100757. B.Map_EGswR = new A.ConstantStringMap(4, {deg: 0.017453292519943295, grad: 0.015707963267948967, rad: 1, turn: 6.283185307179586}, B.List_deg_grad_rad_turn, type$.ConstantStringMap_String_double);
  100758. B.Map_EGY2F = new A.ConstantStringMap(4, {deg: 0.002777777777777778, grad: 0.0025, rad: 0.15915494309189535, turn: 1}, B.List_deg_grad_rad_turn, type$.ConstantStringMap_String_double);
  100759. B.Map_ma2bi = new A.ConstantStringMap(2, {s: 1, ms: 0.001}, B.List_s_ms, type$.ConstantStringMap_String_double);
  100760. B.Map_maDht0 = new A.ConstantStringMap(2, {s: 1000, ms: 1}, B.List_s_ms, type$.ConstantStringMap_String_double);
  100761. B.List_Hz_kHz = A._setArrayType(makeConstList(["Hz", "kHz"]), type$.JSArray_String);
  100762. B.Map_0IpUe = new A.ConstantStringMap(2, {Hz: 1, kHz: 1000}, B.List_Hz_kHz, type$.ConstantStringMap_String_double);
  100763. B.Map_0IVs0 = new A.ConstantStringMap(2, {Hz: 0.001, kHz: 1}, B.List_Hz_kHz, type$.ConstantStringMap_String_double);
  100764. B.Map_H2OWd = new A.ConstantStringMap(3, {dpi: 1, dpcm: 2.54, dppx: 96}, B.List_dpi_dpcm_dppx, type$.ConstantStringMap_String_double);
  100765. B.Map_H24em = new A.ConstantStringMap(3, {dpi: 0.39370078740157477, dpcm: 1, dppx: 37.79527559055118}, B.List_dpi_dpcm_dppx, type$.ConstantStringMap_String_double);
  100766. B.Map_H25Om = new A.ConstantStringMap(3, {dpi: 0.010416666666666666, dpcm: 0.026458333333333334, dppx: 1}, B.List_dpi_dpcm_dppx, type$.ConstantStringMap_String_double);
  100767. B.Map_K2BWj = new A.ConstantStringMap(18, {in: B.Map_ahsJO, cm: B.Map_ahM6L, pc: B.Map_ahNsa, mm: B.Map_ahPSt, q: B.Map_ahgya, pt: B.Map_ahGvh, px: B.Map_ahkuc, deg: B.Map_EGyvr, grad: B.Map_EGfqB, rad: B.Map_EGswR, turn: B.Map_EGY2F, s: B.Map_ma2bi, ms: B.Map_maDht0, Hz: B.Map_0IpUe, kHz: B.Map_0IVs0, dpi: B.Map_H2OWd, dpcm: B.Map_H24em, dppx: B.Map_H25Om}, B.List_K2O, A.findType("ConstantStringMap<String,Map<String,double>>"));
  100768. B.List_U8g = A._setArrayType(makeConstList(["length", "angle", "time", "frequency", "pixel density"]), type$.JSArray_String);
  100769. B.Map_U8AHF = new A.ConstantStringMap(5, {length: B.List_aha, angle: B.List_deg_grad_rad_turn, time: B.List_s_ms, frequency: B.List_Hz_kHz, "pixel density": B.List_dpi_dpcm_dppx}, B.List_U8g, A.findType("ConstantStringMap<String,List<String>>"));
  100770. B.Map_empty0 = new A.ConstantStringMap(0, {}, B.List_empty, A.findType("ConstantStringMap<String,AstNode>"));
  100771. B.Map_empty7 = new A.ConstantStringMap(0, {}, B.List_empty, A.findType("ConstantStringMap<String,AstNode0>"));
  100772. B.Map_empty2 = new A.ConstantStringMap(0, {}, B.List_empty, A.findType("ConstantStringMap<String,Expression>"));
  100773. B.Map_empty9 = new A.ConstantStringMap(0, {}, B.List_empty, A.findType("ConstantStringMap<String,Expression0>"));
  100774. B.Map_empty3 = new A.ConstantStringMap(0, {}, B.List_empty, A.findType("ConstantStringMap<String,Module<AsyncCallable>>"));
  100775. B.Map_empty = new A.ConstantStringMap(0, {}, B.List_empty, A.findType("ConstantStringMap<String,Module<Callable>>"));
  100776. B.Map_empty10 = new A.ConstantStringMap(0, {}, B.List_empty, A.findType("ConstantStringMap<String,Module0<AsyncCallable0>>"));
  100777. B.Map_empty6 = new A.ConstantStringMap(0, {}, B.List_empty, A.findType("ConstantStringMap<String,Module0<Callable0>>"));
  100778. B.Map_empty1 = new A.ConstantStringMap(0, {}, B.List_empty, A.findType("ConstantStringMap<String,Value>"));
  100779. B.Map_empty8 = new A.ConstantStringMap(0, {}, B.List_empty, A.findType("ConstantStringMap<String,Value0>"));
  100780. B.List_empty26 = A._setArrayType(makeConstList([]), A.findType("JSArray<Symbol0>"));
  100781. B.Map_empty4 = new A.ConstantStringMap(0, {}, B.List_empty26, A.findType("ConstantStringMap<Symbol0,@>"));
  100782. B.List_empty27 = A._setArrayType(makeConstList([]), type$.JSArray_nullable_String);
  100783. B.Map_empty5 = new A.ConstantStringMap(0, {}, B.List_empty27, A.findType("ConstantStringMap<String?,String>"));
  100784. B.OptionType_YwU = new A.OptionType("OptionType.single");
  100785. B.OptionType_nMZ = new A.OptionType("OptionType.flag");
  100786. B.OptionType_qyr = new A.OptionType("OptionType.multiple");
  100787. B.OutputStyle_0 = new A.OutputStyle("expanded");
  100788. B.OutputStyle_00 = new A.OutputStyle0("expanded");
  100789. B.OutputStyle_1 = new A.OutputStyle("compressed");
  100790. B.OutputStyle_10 = new A.OutputStyle0("compressed");
  100791. B.SassBoolean_false = new A.SassBoolean(false);
  100792. B.SassBoolean_false0 = new A.SassBoolean0(false);
  100793. B.SassBoolean_true = new A.SassBoolean(true);
  100794. B.SassBoolean_true0 = new A.SassBoolean0(true);
  100795. B.SassList_Sof = new A.SassList(B.List_empty7, B.ListSeparator_rXA, false);
  100796. B.SassList_Sof0 = new A.SassList(B.List_empty7, B.ListSeparator_rXA, true);
  100797. B.SassList_Sof1 = new A.SassList0(B.List_empty19, B.ListSeparator_rXA0, false);
  100798. B.SassList_Sof2 = new A.SassList0(B.List_empty19, B.ListSeparator_rXA0, true);
  100799. B.SassList_nj9 = new A.SassList0(B.List_empty19, B.ListSeparator_undecided_null_undecided0, false);
  100800. B.Map_empty13 = new A.ConstantStringMap(0, {}, B.List_empty7, A.findType("ConstantStringMap<Value,Value>"));
  100801. B.SassMap_Map_empty = new A.SassMap(B.Map_empty13);
  100802. B.Map_empty14 = new A.ConstantStringMap(0, {}, B.List_empty19, A.findType("ConstantStringMap<Value0,Value0>"));
  100803. B.SassMap_Map_empty0 = new A.SassMap0(B.Map_empty14);
  100804. B.Map_2Vaha = new A.GeneralConstantMap([91, null, 46, null, 35, null, 37, null, 58, null, 38, null, 42, null, 124, null], A.findType("GeneralConstantMap<int,Null>"));
  100805. B.Set_2Vk2 = new A._UnmodifiableSet(B.Map_2Vaha, A.findType("_UnmodifiableSet<int>"));
  100806. B.List_is_matches_where = A._setArrayType(makeConstList(["is", "matches", "where"]), type$.JSArray_String);
  100807. B.Map_YEyLX = new A.ConstantStringMap(3, {is: null, matches: null, where: null}, B.List_is_matches_where, type$.ConstantStringMap_String_Null);
  100808. B.Set_YEQji = new A._UnmodifiableSet(B.Map_YEyLX, type$._UnmodifiableSet_String);
  100809. B.List_empty28 = A._setArrayType(makeConstList([]), type$.JSArray_CssMediaQuery);
  100810. B.Map_empty15 = new A.ConstantStringMap(0, {}, B.List_empty28, A.findType("ConstantStringMap<CssMediaQuery,Null>"));
  100811. B.Set_empty0 = new A._UnmodifiableSet(B.Map_empty15, A.findType("_UnmodifiableSet<CssMediaQuery>"));
  100812. B.List_empty29 = A._setArrayType(makeConstList([]), type$.JSArray_CssMediaQuery_2);
  100813. B.Map_empty16 = new A.ConstantStringMap(0, {}, B.List_empty29, A.findType("ConstantStringMap<CssMediaQuery0,Null>"));
  100814. B.Set_empty4 = new A._UnmodifiableSet(B.Map_empty16, A.findType("_UnmodifiableSet<CssMediaQuery0>"));
  100815. B.List_empty30 = A._setArrayType(makeConstList([]), type$.JSArray_Module_AsyncCallable);
  100816. B.Map_empty17 = new A.ConstantStringMap(0, {}, B.List_empty30, A.findType("ConstantStringMap<Module<AsyncCallable>,Null>"));
  100817. B.Set_empty1 = new A._UnmodifiableSet(B.Map_empty17, A.findType("_UnmodifiableSet<Module<AsyncCallable>>"));
  100818. B.List_empty31 = A._setArrayType(makeConstList([]), type$.JSArray_Module_Callable);
  100819. B.Map_empty18 = new A.ConstantStringMap(0, {}, B.List_empty31, A.findType("ConstantStringMap<Module<Callable>,Null>"));
  100820. B.Set_empty = new A._UnmodifiableSet(B.Map_empty18, A.findType("_UnmodifiableSet<Module<Callable>>"));
  100821. B.List_empty32 = A._setArrayType(makeConstList([]), type$.JSArray_Module_AsyncCallable_2);
  100822. B.Map_empty19 = new A.ConstantStringMap(0, {}, B.List_empty32, A.findType("ConstantStringMap<Module0<AsyncCallable0>,Null>"));
  100823. B.Set_empty5 = new A._UnmodifiableSet(B.Map_empty19, A.findType("_UnmodifiableSet<Module0<AsyncCallable0>>"));
  100824. B.List_empty33 = A._setArrayType(makeConstList([]), type$.JSArray_Module_Callable_2);
  100825. B.Map_empty20 = new A.ConstantStringMap(0, {}, B.List_empty33, A.findType("ConstantStringMap<Module0<Callable0>,Null>"));
  100826. B.Set_empty3 = new A._UnmodifiableSet(B.Map_empty20, A.findType("_UnmodifiableSet<Module0<Callable0>>"));
  100827. B.List_empty34 = A._setArrayType(makeConstList([]), type$.JSArray_StylesheetNode);
  100828. B.Map_empty21 = new A.ConstantStringMap(0, {}, B.List_empty34, A.findType("ConstantStringMap<StylesheetNode,Null>"));
  100829. B.Set_empty2 = new A._UnmodifiableSet(B.Map_empty21, A.findType("_UnmodifiableSet<StylesheetNode>"));
  100830. B.StderrLogger_false = new A.StderrLogger(false);
  100831. B.StderrLogger_false0 = new A.StderrLogger0(false);
  100832. B.Symbol__evaluationContext = new A.Symbol("_evaluationContext");
  100833. B.Symbol__inImportRule = new A.Symbol("_inImportRule");
  100834. B.Symbol_call = new A.Symbol("call");
  100835. B.Syntax_CSS_css = new A.Syntax("CSS", "css");
  100836. B.Syntax_CSS_css0 = new A.Syntax0("CSS", "css");
  100837. B.Syntax_SCSS_scss = new A.Syntax("SCSS", "scss");
  100838. B.Syntax_SCSS_scss0 = new A.Syntax0("SCSS", "scss");
  100839. B.Syntax_Sass_sass = new A.Syntax("Sass", "sass");
  100840. B.Syntax_Sass_sass0 = new A.Syntax0("Sass", "sass");
  100841. B.List_empty35 = A._setArrayType(makeConstList([]), A.findType("JSArray<CssValue<SelectorList>>"));
  100842. B.Map_empty22 = new A.ConstantStringMap(0, {}, B.List_empty35, A.findType("ConstantStringMap<CssValue<SelectorList>,ModifiableCssValue<SelectorList>>"));
  100843. B.Tuple2_EmptyExtensionStore_Map_empty = new A.Tuple2(B.C_EmptyExtensionStore, B.Map_empty22, type$.Tuple2_of_ExtensionStore_and_Map_of_CssValue_SelectorList_and_ModifiableCssValue_SelectorList);
  100844. B.List_empty36 = A._setArrayType(makeConstList([]), A.findType("JSArray<CssValue0<SelectorList0>>"));
  100845. B.Map_empty23 = new A.ConstantStringMap(0, {}, B.List_empty36, A.findType("ConstantStringMap<CssValue0<SelectorList0>,ModifiableCssValue0<SelectorList0>>"));
  100846. B.Tuple2_EmptyExtensionStore_Map_empty0 = new A.Tuple2(B.C_EmptyExtensionStore0, B.Map_empty23, type$.Tuple2_of_ExtensionStore_and_Map_of_CssValue_SelectorList_and_ModifiableCssValue_SelectorList_2);
  100847. B.Type_Null_Yyn = A.typeLiteral("Null");
  100848. B.Type_Object_xQ6 = A.typeLiteral("Object");
  100849. B.UnaryOperator_Ix1 = new A.UnaryOperator("divide", "/", "divide");
  100850. B.UnaryOperator_Ix10 = new A.UnaryOperator0("divide", "/", "divide");
  100851. B.UnaryOperator_TLI = new A.UnaryOperator("minus", "-", "minus");
  100852. B.UnaryOperator_TLI0 = new A.UnaryOperator0("minus", "-", "minus");
  100853. B.UnaryOperator_gg4 = new A.UnaryOperator("plus", "+", "plus");
  100854. B.UnaryOperator_gg40 = new A.UnaryOperator0("plus", "+", "plus");
  100855. B.UnaryOperator_not_not_not = new A.UnaryOperator("not", "not", "not");
  100856. B.UnaryOperator_not_not_not0 = new A.UnaryOperator0("not", "not", "not");
  100857. B.Utf8Decoder_false = new A.Utf8Decoder(false);
  100858. B._ColorFormatEnum_hslFunction = new A._ColorFormatEnum("hslFunction");
  100859. B._ColorFormatEnum_hslFunction0 = new A._ColorFormatEnum0("hslFunction");
  100860. B._ColorFormatEnum_rgbFunction = new A._ColorFormatEnum("rgbFunction");
  100861. B._ColorFormatEnum_rgbFunction0 = new A._ColorFormatEnum0("rgbFunction");
  100862. B._IsBogusVisitor_false = new A._IsBogusVisitor(false);
  100863. B._IsBogusVisitor_false0 = new A._IsBogusVisitor0(false);
  100864. B._IsBogusVisitor_true = new A._IsBogusVisitor(true);
  100865. B._IsBogusVisitor_true0 = new A._IsBogusVisitor0(true);
  100866. B._IsInvisibleVisitor_false = new A._IsInvisibleVisitor0(false);
  100867. B._IsInvisibleVisitor_false0 = new A._IsInvisibleVisitor2(false);
  100868. B._IsInvisibleVisitor_false_false = new A._IsInvisibleVisitor(false, false);
  100869. B._IsInvisibleVisitor_false_false0 = new A._IsInvisibleVisitor1(false, false);
  100870. B._IsInvisibleVisitor_true = new A._IsInvisibleVisitor0(true);
  100871. B._IsInvisibleVisitor_true0 = new A._IsInvisibleVisitor2(true);
  100872. B._IsInvisibleVisitor_true_false = new A._IsInvisibleVisitor(true, false);
  100873. B._IsInvisibleVisitor_true_false0 = new A._IsInvisibleVisitor1(true, false);
  100874. B._IsInvisibleVisitor_true_true = new A._IsInvisibleVisitor(true, true);
  100875. B._IsInvisibleVisitor_true_true0 = new A._IsInvisibleVisitor1(true, true);
  100876. B._IterationMarker_null_2 = new A._IterationMarker(null, 2);
  100877. B._PathDirection_8Gl = new A._PathDirection("at root");
  100878. B._PathDirection_988 = new A._PathDirection("below root");
  100879. B._PathDirection_FIw = new A._PathDirection("reaches root");
  100880. B._PathDirection_ZGD = new A._PathDirection("above root");
  100881. B._PathRelation_different = new A._PathRelation("different");
  100882. B._PathRelation_equal = new A._PathRelation("equal");
  100883. B._PathRelation_inconclusive = new A._PathRelation("inconclusive");
  100884. B._PathRelation_within = new A._PathRelation("within");
  100885. B._SingletonCssMediaQueryMergeResult_empty = new A._SingletonCssMediaQueryMergeResult("empty");
  100886. B._SingletonCssMediaQueryMergeResult_empty0 = new A._SingletonCssMediaQueryMergeResult0("empty");
  100887. B._SingletonCssMediaQueryMergeResult_unrepresentable = new A._SingletonCssMediaQueryMergeResult("unrepresentable");
  100888. B._SingletonCssMediaQueryMergeResult_unrepresentable0 = new A._SingletonCssMediaQueryMergeResult0("unrepresentable");
  100889. B._StreamGroupState_canceled = new A._StreamGroupState("canceled");
  100890. B._StreamGroupState_dormant = new A._StreamGroupState("dormant");
  100891. B._StreamGroupState_listening = new A._StreamGroupState("listening");
  100892. B._StreamGroupState_paused = new A._StreamGroupState("paused");
  100893. B._StringStackTrace_3uE = new A._StringStackTrace("");
  100894. B._ZoneFunction_3bB = new A._ZoneFunction(B.C__RootZone, A.async___rootCreatePeriodicTimer$closure());
  100895. B._ZoneFunction_7G2 = new A._ZoneFunction(B.C__RootZone, A.async___rootRegisterBinaryCallback$closure());
  100896. B._ZoneFunction_Eeh = new A._ZoneFunction(B.C__RootZone, A.async___rootRegisterUnaryCallback$closure());
  100897. B._ZoneFunction_NMc = new A._ZoneFunction(B.C__RootZone, A.async___rootHandleUncaughtError$closure());
  100898. B._ZoneFunction__RootZone__rootCreateTimer = new A._ZoneFunction(B.C__RootZone, A.async___rootCreateTimer$closure());
  100899. B._ZoneFunction__RootZone__rootErrorCallback = new A._ZoneFunction(B.C__RootZone, A.async___rootErrorCallback$closure());
  100900. B._ZoneFunction__RootZone__rootFork = new A._ZoneFunction(B.C__RootZone, A.async___rootFork$closure());
  100901. B._ZoneFunction__RootZone__rootPrint = new A._ZoneFunction(B.C__RootZone, A.async___rootPrint$closure());
  100902. B._ZoneFunction__RootZone__rootRegisterCallback = new A._ZoneFunction(B.C__RootZone, A.async___rootRegisterCallback$closure());
  100903. B._ZoneFunction__RootZone__rootRun = new A._ZoneFunction(B.C__RootZone, A.async___rootRun$closure());
  100904. B._ZoneFunction__RootZone__rootRunBinary = new A._ZoneFunction(B.C__RootZone, A.async___rootRunBinary$closure());
  100905. B._ZoneFunction__RootZone__rootRunUnary = new A._ZoneFunction(B.C__RootZone, A.async___rootRunUnary$closure());
  100906. B._ZoneFunction__RootZone__rootScheduleMicrotask = new A._ZoneFunction(B.C__RootZone, A.async___rootScheduleMicrotask$closure());
  100907. B._ZoneSpecification_ALf = new A._ZoneSpecification(null, null, null, null, null, null, null, null, null, null, null, null, null);
  100908. })();
  100909. (function staticFields() {
  100910. $._JS_INTEROP_INTERCEPTOR_TAG = null;
  100911. $.printToZone = null;
  100912. $.Primitives__identityHashCodeProperty = null;
  100913. $.BoundClosure__receiverFieldNameCache = null;
  100914. $.BoundClosure__interceptorFieldNameCache = null;
  100915. $.getTagFunction = null;
  100916. $.alternateTagFunction = null;
  100917. $.prototypeForTagFunction = null;
  100918. $.dispatchRecordsForInstanceTags = null;
  100919. $.interceptorsForUncacheableTags = null;
  100920. $.initNativeDispatchFlag = null;
  100921. $._nextCallback = null;
  100922. $._lastCallback = null;
  100923. $._lastPriorityCallback = null;
  100924. $._isInCallbackLoop = false;
  100925. $.Zone__current = B.C__RootZone;
  100926. $._RootZone__rootDelegate = null;
  100927. $._toStringVisiting = A._setArrayType([], type$.JSArray_Object);
  100928. $._fs = null;
  100929. $._currentUriBase = null;
  100930. $._current = null;
  100931. $._subselectorPseudos = A.LinkedHashSet_LinkedHashSet$_literal(["is", "matches", "where", "any", "nth-child", "nth-last-child"], type$.String);
  100932. $._rootishPseudoClasses = A.LinkedHashSet_LinkedHashSet$_literal(["root", "scope", "host", "host-context"], type$.String);
  100933. $._features = A.LinkedHashSet_LinkedHashSet$_literal(["global-variable-shadowing", "extend-selector-pseudoclass", "units-level-3", "at-error", "custom-property"], type$.String);
  100934. $._realCaseCache = function() {
  100935. var t1 = type$.String;
  100936. return A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  100937. }();
  100938. $._selectorPseudoClasses = A.LinkedHashSet_LinkedHashSet$_literal(["not", "is", "matches", "where", "current", "any", "has", "host", "host-context"], type$.String);
  100939. $._selectorPseudoElements = A.LinkedHashSet_LinkedHashSet$_literal(["slotted"], type$.String);
  100940. $._glyphs = B.C_UnicodeGlyphSet;
  100941. $._rootishPseudoClasses0 = A.LinkedHashSet_LinkedHashSet$_literal(["root", "scope", "host", "host-context"], type$.String);
  100942. $._realCaseCache0 = function() {
  100943. var t1 = type$.String;
  100944. return A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  100945. }();
  100946. $._features0 = A.LinkedHashSet_LinkedHashSet$_literal(["global-variable-shadowing", "extend-selector-pseudoclass", "units-level-3", "at-error", "custom-property"], type$.String);
  100947. $._selectorPseudoClasses0 = A.LinkedHashSet_LinkedHashSet$_literal(["not", "is", "matches", "where", "current", "any", "has", "host", "host-context"], type$.String);
  100948. $._selectorPseudoElements0 = A.LinkedHashSet_LinkedHashSet$_literal(["slotted"], type$.String);
  100949. $._subselectorPseudos0 = A.LinkedHashSet_LinkedHashSet$_literal(["is", "matches", "where", "any", "nth-child", "nth-last-child"], type$.String);
  100950. })();
  100951. (function lazyInitializers() {
  100952. var _lazyFinal = hunkHelpers.lazyFinal,
  100953. _lazy = hunkHelpers.lazy;
  100954. _lazyFinal($, "DART_CLOSURE_PROPERTY_NAME", "$get$DART_CLOSURE_PROPERTY_NAME", () => A.getIsolateAffinityTag("_$dart_dartClosure"));
  100955. _lazyFinal($, "nullFuture", "$get$nullFuture", () => B.C__RootZone.run$1$1(0, new A.nullFuture_closure(), A.findType("Future<Null>")));
  100956. _lazyFinal($, "TypeErrorDecoder_noSuchMethodPattern", "$get$TypeErrorDecoder_noSuchMethodPattern", () => A.TypeErrorDecoder_extractPattern(A.TypeErrorDecoder_provokeCallErrorOn({
  100957. toString: function() {
  100958. return "$receiver$";
  100959. }
  100960. })));
  100961. _lazyFinal($, "TypeErrorDecoder_notClosurePattern", "$get$TypeErrorDecoder_notClosurePattern", () => A.TypeErrorDecoder_extractPattern(A.TypeErrorDecoder_provokeCallErrorOn({$method$: null,
  100962. toString: function() {
  100963. return "$receiver$";
  100964. }
  100965. })));
  100966. _lazyFinal($, "TypeErrorDecoder_nullCallPattern", "$get$TypeErrorDecoder_nullCallPattern", () => A.TypeErrorDecoder_extractPattern(A.TypeErrorDecoder_provokeCallErrorOn(null)));
  100967. _lazyFinal($, "TypeErrorDecoder_nullLiteralCallPattern", "$get$TypeErrorDecoder_nullLiteralCallPattern", () => A.TypeErrorDecoder_extractPattern(function() {
  100968. var $argumentsExpr$ = "$arguments$";
  100969. try {
  100970. null.$method$($argumentsExpr$);
  100971. } catch (e) {
  100972. return e.message;
  100973. }
  100974. }()));
  100975. _lazyFinal($, "TypeErrorDecoder_undefinedCallPattern", "$get$TypeErrorDecoder_undefinedCallPattern", () => A.TypeErrorDecoder_extractPattern(A.TypeErrorDecoder_provokeCallErrorOn(void 0)));
  100976. _lazyFinal($, "TypeErrorDecoder_undefinedLiteralCallPattern", "$get$TypeErrorDecoder_undefinedLiteralCallPattern", () => A.TypeErrorDecoder_extractPattern(function() {
  100977. var $argumentsExpr$ = "$arguments$";
  100978. try {
  100979. (void 0).$method$($argumentsExpr$);
  100980. } catch (e) {
  100981. return e.message;
  100982. }
  100983. }()));
  100984. _lazyFinal($, "TypeErrorDecoder_nullPropertyPattern", "$get$TypeErrorDecoder_nullPropertyPattern", () => A.TypeErrorDecoder_extractPattern(A.TypeErrorDecoder_provokePropertyErrorOn(null)));
  100985. _lazyFinal($, "TypeErrorDecoder_nullLiteralPropertyPattern", "$get$TypeErrorDecoder_nullLiteralPropertyPattern", () => A.TypeErrorDecoder_extractPattern(function() {
  100986. try {
  100987. null.$method$;
  100988. } catch (e) {
  100989. return e.message;
  100990. }
  100991. }()));
  100992. _lazyFinal($, "TypeErrorDecoder_undefinedPropertyPattern", "$get$TypeErrorDecoder_undefinedPropertyPattern", () => A.TypeErrorDecoder_extractPattern(A.TypeErrorDecoder_provokePropertyErrorOn(void 0)));
  100993. _lazyFinal($, "TypeErrorDecoder_undefinedLiteralPropertyPattern", "$get$TypeErrorDecoder_undefinedLiteralPropertyPattern", () => A.TypeErrorDecoder_extractPattern(function() {
  100994. try {
  100995. (void 0).$method$;
  100996. } catch (e) {
  100997. return e.message;
  100998. }
  100999. }()));
  101000. _lazyFinal($, "_AsyncRun__scheduleImmediateClosure", "$get$_AsyncRun__scheduleImmediateClosure", () => A._AsyncRun__initializeScheduleImmediate());
  101001. _lazyFinal($, "Future__nullFuture", "$get$Future__nullFuture", () => A.findType("_Future<Null>")._as($.$get$nullFuture()));
  101002. _lazyFinal($, "Future__falseFuture", "$get$Future__falseFuture", () => A._Future$zoneValue(false, B.C__RootZone, type$.bool));
  101003. _lazyFinal($, "_RootZone__rootMap", "$get$_RootZone__rootMap", () => {
  101004. var t1 = type$.dynamic;
  101005. return A.HashMap_HashMap(t1, t1);
  101006. });
  101007. _lazyFinal($, "Utf8Decoder__decoder", "$get$Utf8Decoder__decoder", () => new A.Utf8Decoder__decoder_closure().call$0());
  101008. _lazyFinal($, "Utf8Decoder__decoderNonfatal", "$get$Utf8Decoder__decoderNonfatal", () => new A.Utf8Decoder__decoderNonfatal_closure().call$0());
  101009. _lazyFinal($, "_Base64Decoder__inverseAlphabet", "$get$_Base64Decoder__inverseAlphabet", () => A.NativeInt8List__create1(A._ensureNativeList(A._setArrayType([-2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -1, -2, -2, -2, -2, -2, 62, -2, 62, -2, 63, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -2, -2, -2, -1, -2, -2, -2, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -2, -2, -2, -2, 63, -2, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, -2, -2, -2, -2, -2], type$.JSArray_int))));
  101010. _lazyFinal($, "_Uri__isWindowsCached", "$get$_Uri__isWindowsCached", () => typeof process != "undefined" && Object.prototype.toString.call(process) == "[object process]" && process.platform == "win32");
  101011. _lazyFinal($, "_Uri__needsNoEncoding", "$get$_Uri__needsNoEncoding", () => A.RegExp_RegExp("^[\\-\\.0-9A-Z_a-z~]*$", false));
  101012. _lazy($, "_hasErrorStackProperty", "$get$_hasErrorStackProperty", () => new Error().stack != void 0);
  101013. _lazyFinal($, "_hashSeed", "$get$_hashSeed", () => A.objectHashCode(B.Type_Object_xQ6));
  101014. _lazyFinal($, "_scannerTables", "$get$_scannerTables", () => A._createTables());
  101015. _lazyFinal($, "Option__invalidChars", "$get$Option__invalidChars", () => A.RegExp_RegExp("[ \\t\\r\\n\"'\\\\/]", false));
  101016. _lazyFinal($, "alwaysValid", "$get$alwaysValid", () => new A.alwaysValid_closure());
  101017. _lazyFinal($, "readline", "$get$readline", () => self.readline);
  101018. _lazyFinal($, "windows", "$get$windows", () => A.Context_Context($.$get$Style_windows()));
  101019. _lazyFinal($, "url", "$get$url", () => A.Context_Context($.$get$Style_url()));
  101020. _lazyFinal($, "context", "$get$context", () => new A.Context(type$.InternalStyle._as($.$get$Style_platform()), null));
  101021. _lazyFinal($, "Style_posix", "$get$Style_posix", () => new A.PosixStyle(A.RegExp_RegExp("/", false), A.RegExp_RegExp("[^/]$", false), A.RegExp_RegExp("^/", false)));
  101022. _lazyFinal($, "Style_windows", "$get$Style_windows", () => new A.WindowsStyle(A.RegExp_RegExp("[/\\\\]", false), A.RegExp_RegExp("[^/\\\\]$", false), A.RegExp_RegExp("^(\\\\\\\\[^\\\\]+\\\\[^\\\\/]+|[a-zA-Z]:[/\\\\])", false), A.RegExp_RegExp("^[/\\\\](?![/\\\\])", false)));
  101023. _lazyFinal($, "Style_url", "$get$Style_url", () => new A.UrlStyle(A.RegExp_RegExp("/", false), A.RegExp_RegExp("(^[a-zA-Z][-+.a-zA-Z\\d]*://|[^/])$", false), A.RegExp_RegExp("[a-zA-Z][-+.a-zA-Z\\d]*://[^/]*", false), A.RegExp_RegExp("^/", false)));
  101024. _lazyFinal($, "Style_platform", "$get$Style_platform", () => A.Style__getPlatformStyle());
  101025. _lazyFinal($, "IfExpression_declaration", "$get$IfExpression_declaration", () => A.ArgumentDeclaration_ArgumentDeclaration$parse(string$.x40funct, null));
  101026. _lazyFinal($, "colorsByName", "$get$colorsByName", () => {
  101027. var _null = null;
  101028. return A.LinkedHashMap_LinkedHashMap$_literal(["yellowgreen", A.SassColor$rgb(154, 205, 50, _null), "yellow", A.SassColor$rgb(255, 255, 0, _null), "whitesmoke", A.SassColor$rgb(245, 245, 245, _null), "white", A.SassColor$rgb(255, 255, 255, _null), "wheat", A.SassColor$rgb(245, 222, 179, _null), "violet", A.SassColor$rgb(238, 130, 238, _null), "turquoise", A.SassColor$rgb(64, 224, 208, _null), "transparent", A.SassColor$rgb(0, 0, 0, 0), "tomato", A.SassColor$rgb(255, 99, 71, _null), "thistle", A.SassColor$rgb(216, 191, 216, _null), "teal", A.SassColor$rgb(0, 128, 128, _null), "tan", A.SassColor$rgb(210, 180, 140, _null), "steelblue", A.SassColor$rgb(70, 130, 180, _null), "springgreen", A.SassColor$rgb(0, 255, 127, _null), "snow", A.SassColor$rgb(255, 250, 250, _null), "slategrey", A.SassColor$rgb(112, 128, 144, _null), "slategray", A.SassColor$rgb(112, 128, 144, _null), "slateblue", A.SassColor$rgb(106, 90, 205, _null), "skyblue", A.SassColor$rgb(135, 206, 235, _null), "silver", A.SassColor$rgb(192, 192, 192, _null), "sienna", A.SassColor$rgb(160, 82, 45, _null), "seashell", A.SassColor$rgb(255, 245, 238, _null), "seagreen", A.SassColor$rgb(46, 139, 87, _null), "sandybrown", A.SassColor$rgb(244, 164, 96, _null), "salmon", A.SassColor$rgb(250, 128, 114, _null), "saddlebrown", A.SassColor$rgb(139, 69, 19, _null), "royalblue", A.SassColor$rgb(65, 105, 225, _null), "rosybrown", A.SassColor$rgb(188, 143, 143, _null), "red", A.SassColor$rgb(255, 0, 0, _null), "rebeccapurple", A.SassColor$rgb(102, 51, 153, _null), "purple", A.SassColor$rgb(128, 0, 128, _null), "powderblue", A.SassColor$rgb(176, 224, 230, _null), "plum", A.SassColor$rgb(221, 160, 221, _null), "pink", A.SassColor$rgb(255, 192, 203, _null), "peru", A.SassColor$rgb(205, 133, 63, _null), "peachpuff", A.SassColor$rgb(255, 218, 185, _null), "papayawhip", A.SassColor$rgb(255, 239, 213, _null), "palevioletred", A.SassColor$rgb(219, 112, 147, _null), "paleturquoise", A.SassColor$rgb(175, 238, 238, _null), "palegreen", A.SassColor$rgb(152, 251, 152, _null), "palegoldenrod", A.SassColor$rgb(238, 232, 170, _null), "orchid", A.SassColor$rgb(218, 112, 214, _null), "orangered", A.SassColor$rgb(255, 69, 0, _null), "orange", A.SassColor$rgb(255, 165, 0, _null), "olivedrab", A.SassColor$rgb(107, 142, 35, _null), "olive", A.SassColor$rgb(128, 128, 0, _null), "oldlace", A.SassColor$rgb(253, 245, 230, _null), "navy", A.SassColor$rgb(0, 0, 128, _null), "navajowhite", A.SassColor$rgb(255, 222, 173, _null), "moccasin", A.SassColor$rgb(255, 228, 181, _null), "mistyrose", A.SassColor$rgb(255, 228, 225, _null), "mintcream", A.SassColor$rgb(245, 255, 250, _null), "midnightblue", A.SassColor$rgb(25, 25, 112, _null), "mediumvioletred", A.SassColor$rgb(199, 21, 133, _null), "mediumturquoise", A.SassColor$rgb(72, 209, 204, _null), "mediumspringgreen", A.SassColor$rgb(0, 250, 154, _null), "mediumslateblue", A.SassColor$rgb(123, 104, 238, _null), "mediumseagreen", A.SassColor$rgb(60, 179, 113, _null), "mediumpurple", A.SassColor$rgb(147, 112, 219, _null), "mediumorchid", A.SassColor$rgb(186, 85, 211, _null), "mediumblue", A.SassColor$rgb(0, 0, 205, _null), "mediumaquamarine", A.SassColor$rgb(102, 205, 170, _null), "maroon", A.SassColor$rgb(128, 0, 0, _null), "magenta", A.SassColor$rgb(255, 0, 255, _null), "linen", A.SassColor$rgb(250, 240, 230, _null), "limegreen", A.SassColor$rgb(50, 205, 50, _null), "lime", A.SassColor$rgb(0, 255, 0, _null), "lightyellow", A.SassColor$rgb(255, 255, 224, _null), "lightsteelblue", A.SassColor$rgb(176, 196, 222, _null), "lightslategrey", A.SassColor$rgb(119, 136, 153, _null), "lightslategray", A.SassColor$rgb(119, 136, 153, _null), "lightskyblue", A.SassColor$rgb(135, 206, 250, _null), "lightseagreen", A.SassColor$rgb(32, 178, 170, _null), "lightsalmon", A.SassColor$rgb(255, 160, 122, _null), "lightpink", A.SassColor$rgb(255, 182, 193, _null), "lightgrey", A.SassColor$rgb(211, 211, 211, _null), "lightgreen", A.SassColor$rgb(144, 238, 144, _null), "lightgray", A.SassColor$rgb(211, 211, 211, _null), "lightgoldenrodyellow", A.SassColor$rgb(250, 250, 210, _null), "lightcyan", A.SassColor$rgb(224, 255, 255, _null), "lightcoral", A.SassColor$rgb(240, 128, 128, _null), "lightblue", A.SassColor$rgb(173, 216, 230, _null), "lemonchiffon", A.SassColor$rgb(255, 250, 205, _null), "lawngreen", A.SassColor$rgb(124, 252, 0, _null), "lavenderblush", A.SassColor$rgb(255, 240, 245, _null), "lavender", A.SassColor$rgb(230, 230, 250, _null), "khaki", A.SassColor$rgb(240, 230, 140, _null), "ivory", A.SassColor$rgb(255, 255, 240, _null), "indigo", A.SassColor$rgb(75, 0, 130, _null), "indianred", A.SassColor$rgb(205, 92, 92, _null), "hotpink", A.SassColor$rgb(255, 105, 180, _null), "honeydew", A.SassColor$rgb(240, 255, 240, _null), "grey", A.SassColor$rgb(128, 128, 128, _null), "greenyellow", A.SassColor$rgb(173, 255, 47, _null), "green", A.SassColor$rgb(0, 128, 0, _null), "gray", A.SassColor$rgb(128, 128, 128, _null), "goldenrod", A.SassColor$rgb(218, 165, 32, _null), "gold", A.SassColor$rgb(255, 215, 0, _null), "ghostwhite", A.SassColor$rgb(248, 248, 255, _null), "gainsboro", A.SassColor$rgb(220, 220, 220, _null), "fuchsia", A.SassColor$rgb(255, 0, 255, _null), "forestgreen", A.SassColor$rgb(34, 139, 34, _null), "floralwhite", A.SassColor$rgb(255, 250, 240, _null), "firebrick", A.SassColor$rgb(178, 34, 34, _null), "dodgerblue", A.SassColor$rgb(30, 144, 255, _null), "dimgrey", A.SassColor$rgb(105, 105, 105, _null), "dimgray", A.SassColor$rgb(105, 105, 105, _null), "deepskyblue", A.SassColor$rgb(0, 191, 255, _null), "deeppink", A.SassColor$rgb(255, 20, 147, _null), "darkviolet", A.SassColor$rgb(148, 0, 211, _null), "darkturquoise", A.SassColor$rgb(0, 206, 209, _null), "darkslategrey", A.SassColor$rgb(47, 79, 79, _null), "darkslategray", A.SassColor$rgb(47, 79, 79, _null), "darkslateblue", A.SassColor$rgb(72, 61, 139, _null), "darkseagreen", A.SassColor$rgb(143, 188, 143, _null), "darksalmon", A.SassColor$rgb(233, 150, 122, _null), "darkred", A.SassColor$rgb(139, 0, 0, _null), "darkorchid", A.SassColor$rgb(153, 50, 204, _null), "darkorange", A.SassColor$rgb(255, 140, 0, _null), "darkolivegreen", A.SassColor$rgb(85, 107, 47, _null), "darkmagenta", A.SassColor$rgb(139, 0, 139, _null), "darkkhaki", A.SassColor$rgb(189, 183, 107, _null), "darkgrey", A.SassColor$rgb(169, 169, 169, _null), "darkgreen", A.SassColor$rgb(0, 100, 0, _null), "darkgray", A.SassColor$rgb(169, 169, 169, _null), "darkgoldenrod", A.SassColor$rgb(184, 134, 11, _null), "darkcyan", A.SassColor$rgb(0, 139, 139, _null), "darkblue", A.SassColor$rgb(0, 0, 139, _null), "cyan", A.SassColor$rgb(0, 255, 255, _null), "crimson", A.SassColor$rgb(220, 20, 60, _null), "cornsilk", A.SassColor$rgb(255, 248, 220, _null), "cornflowerblue", A.SassColor$rgb(100, 149, 237, _null), "coral", A.SassColor$rgb(255, 127, 80, _null), "chocolate", A.SassColor$rgb(210, 105, 30, _null), "chartreuse", A.SassColor$rgb(127, 255, 0, _null), "cadetblue", A.SassColor$rgb(95, 158, 160, _null), "burlywood", A.SassColor$rgb(222, 184, 135, _null), "brown", A.SassColor$rgb(165, 42, 42, _null), "blueviolet", A.SassColor$rgb(138, 43, 226, _null), "blue", A.SassColor$rgb(0, 0, 255, _null), "blanchedalmond", A.SassColor$rgb(255, 235, 205, _null), "black", A.SassColor$rgb(0, 0, 0, _null), "bisque", A.SassColor$rgb(255, 228, 196, _null), "beige", A.SassColor$rgb(245, 245, 220, _null), "azure", A.SassColor$rgb(240, 255, 255, _null), "aquamarine", A.SassColor$rgb(127, 255, 212, _null), "aqua", A.SassColor$rgb(0, 255, 255, _null), "antiquewhite", A.SassColor$rgb(250, 235, 215, _null), "aliceblue", A.SassColor$rgb(240, 248, 255, _null)], type$.String, type$.SassColor);
  101029. });
  101030. _lazyFinal($, "namesByColor", "$get$namesByColor", () => {
  101031. var t2, t3,
  101032. t1 = A.LinkedHashMap_LinkedHashMap$_empty(type$.SassColor, type$.String);
  101033. for (t2 = $.$get$colorsByName(), t2 = t2.get$entries(t2), t2 = t2.get$iterator(t2); t2.moveNext$0();) {
  101034. t3 = t2.get$current(t2);
  101035. t1.$indexSet(0, t3.value, t3.key);
  101036. }
  101037. return t1;
  101038. });
  101039. _lazyFinal($, "ExecutableOptions__separatorBar", "$get$ExecutableOptions__separatorBar", () => A.isWindows() ? "=" : "\u2501");
  101040. _lazyFinal($, "ExecutableOptions__parser", "$get$ExecutableOptions__parser", () => new A.ExecutableOptions__parser_closure().call$0());
  101041. _lazyFinal($, "globalFunctions", "$get$globalFunctions", () => {
  101042. var t1 = type$.BuiltInCallable,
  101043. t2 = A.List_List$of($.$get$global0(), true, t1);
  101044. B.JSArray_methods.addAll$1(t2, $.$get$global1());
  101045. B.JSArray_methods.addAll$1(t2, $.$get$global2());
  101046. B.JSArray_methods.addAll$1(t2, $.$get$global3());
  101047. B.JSArray_methods.addAll$1(t2, $.$get$global4());
  101048. B.JSArray_methods.addAll$1(t2, $.$get$global5());
  101049. B.JSArray_methods.addAll$1(t2, $.$get$global());
  101050. t2.push(A.BuiltInCallable$function("if", "$condition, $if-true, $if-false", new A.globalFunctions_closure(), null));
  101051. return A.UnmodifiableListView$(t2, t1);
  101052. });
  101053. _lazyFinal($, "coreModules", "$get$coreModules", () => A.UnmodifiableListView$(A._setArrayType([$.$get$module(), $.$get$module0(), $.$get$module1(), $.$get$module2(), $.$get$module3(), $.$get$module4()], A.findType("JSArray<BuiltInModule<Callable>>")), type$.BuiltInModule_Callable));
  101054. _lazyFinal($, "_microsoftFilterStart", "$get$_microsoftFilterStart", () => A.RegExp_RegExp("^[a-zA-Z]+\\s*=", false));
  101055. _lazyFinal($, "global", "$get$global0", () => {
  101056. var _s27_ = "$red, $green, $blue, $alpha",
  101057. _s19_ = "$red, $green, $blue",
  101058. _s37_ = "$hue, $saturation, $lightness, $alpha",
  101059. _s29_ = "$hue, $saturation, $lightness",
  101060. _s17_ = "$hue, $saturation",
  101061. _s15_ = "$color, $amount",
  101062. t1 = type$.String,
  101063. t2 = type$.Value_Function_List_Value;
  101064. return A.UnmodifiableListView$(A._setArrayType([$.$get$_red(), $.$get$_green(), $.$get$_blue(), $.$get$_mix(), A.BuiltInCallable$overloadedFunction("rgb", A.LinkedHashMap_LinkedHashMap$_literal([_s27_, new A.global_closure(), _s19_, new A.global_closure0(), "$color, $alpha", new A.global_closure1(), "$channels", new A.global_closure2()], t1, t2)), A.BuiltInCallable$overloadedFunction("rgba", A.LinkedHashMap_LinkedHashMap$_literal([_s27_, new A.global_closure3(), _s19_, new A.global_closure4(), "$color, $alpha", new A.global_closure5(), "$channels", new A.global_closure6()], t1, t2)), A._function4("invert", "$color, $weight: 100%", new A.global_closure7()), $.$get$_hue(), $.$get$_saturation(), $.$get$_lightness(), $.$get$_complement(), A.BuiltInCallable$overloadedFunction("hsl", A.LinkedHashMap_LinkedHashMap$_literal([_s37_, new A.global_closure8(), _s29_, new A.global_closure9(), _s17_, new A.global_closure10(), "$channels", new A.global_closure11()], t1, t2)), A.BuiltInCallable$overloadedFunction("hsla", A.LinkedHashMap_LinkedHashMap$_literal([_s37_, new A.global_closure12(), _s29_, new A.global_closure13(), _s17_, new A.global_closure14(), "$channels", new A.global_closure15()], t1, t2)), A._function4("grayscale", "$color", new A.global_closure16()), A._function4("adjust-hue", "$color, $degrees", new A.global_closure17()), A._function4("lighten", _s15_, new A.global_closure18()), A._function4("darken", _s15_, new A.global_closure19()), A.BuiltInCallable$overloadedFunction("saturate", A.LinkedHashMap_LinkedHashMap$_literal(["$amount", new A.global_closure20(), "$color, $amount", new A.global_closure21()], t1, t2)), A._function4("desaturate", _s15_, new A.global_closure22()), A._function4("opacify", _s15_, A.color0___opacify$closure()), A._function4("fade-in", _s15_, A.color0___opacify$closure()), A._function4("transparentize", _s15_, A.color0___transparentize$closure()), A._function4("fade-out", _s15_, A.color0___transparentize$closure()), A.BuiltInCallable$overloadedFunction("alpha", A.LinkedHashMap_LinkedHashMap$_literal(["$color", new A.global_closure23(), "$args...", new A.global_closure24()], t1, t2)), A._function4("opacity", "$color", new A.global_closure25()), $.$get$_ieHexStr(), $.$get$_adjust().withName$1("adjust-color"), $.$get$_scale().withName$1("scale-color"), $.$get$_change().withName$1("change-color")], type$.JSArray_BuiltInCallable), type$.BuiltInCallable);
  101065. });
  101066. _lazyFinal($, "module", "$get$module", () => {
  101067. var _s9_ = "lightness",
  101068. _s10_ = "saturation",
  101069. _s6_ = "$color", _s5_ = "alpha",
  101070. t1 = type$.String,
  101071. t2 = type$.Value_Function_List_Value;
  101072. return A.BuiltInModule$("color", A._setArrayType([$.$get$_red(), $.$get$_green(), $.$get$_blue(), $.$get$_mix(), A._function4("invert", "$color, $weight: 100%", new A.module_closure0()), $.$get$_hue(), $.$get$_saturation(), $.$get$_lightness(), $.$get$_complement(), A._removedColorFunction("adjust-hue", "hue", false), A._removedColorFunction("lighten", _s9_, false), A._removedColorFunction("darken", _s9_, true), A._removedColorFunction("saturate", _s10_, false), A._removedColorFunction("desaturate", _s10_, true), A._function4("grayscale", _s6_, new A.module_closure1()), A.BuiltInCallable$overloadedFunction("hwb", A.LinkedHashMap_LinkedHashMap$_literal(["$hue, $whiteness, $blackness, $alpha: 1", new A.module_closure2(), "$channels", new A.module_closure3()], t1, t2)), A._function4("whiteness", _s6_, new A.module_closure4()), A._function4("blackness", _s6_, new A.module_closure5()), A._removedColorFunction("opacify", _s5_, false), A._removedColorFunction("fade-in", _s5_, false), A._removedColorFunction("transparentize", _s5_, true), A._removedColorFunction("fade-out", _s5_, true), A.BuiltInCallable$overloadedFunction(_s5_, A.LinkedHashMap_LinkedHashMap$_literal(["$color", new A.module_closure6(), "$args...", new A.module_closure7()], t1, t2)), A._function4("opacity", _s6_, new A.module_closure8()), $.$get$_adjust(), $.$get$_scale(), $.$get$_change(), $.$get$_ieHexStr()], type$.JSArray_Callable), null, null, type$.Callable);
  101073. });
  101074. _lazyFinal($, "_red", "$get$_red", () => A._function4("red", "$color", new A._red_closure()));
  101075. _lazyFinal($, "_green", "$get$_green", () => A._function4("green", "$color", new A._green_closure()));
  101076. _lazyFinal($, "_blue", "$get$_blue", () => A._function4("blue", "$color", new A._blue_closure()));
  101077. _lazyFinal($, "_mix", "$get$_mix", () => A._function4("mix", "$color1, $color2, $weight: 50%", new A._mix_closure()));
  101078. _lazyFinal($, "_hue", "$get$_hue", () => A._function4("hue", "$color", new A._hue_closure()));
  101079. _lazyFinal($, "_saturation", "$get$_saturation", () => A._function4("saturation", "$color", new A._saturation_closure()));
  101080. _lazyFinal($, "_lightness", "$get$_lightness", () => A._function4("lightness", "$color", new A._lightness_closure()));
  101081. _lazyFinal($, "_complement", "$get$_complement", () => A._function4("complement", "$color", new A._complement_closure()));
  101082. _lazyFinal($, "_adjust", "$get$_adjust", () => A._function4("adjust", "$color, $kwargs...", new A._adjust_closure()));
  101083. _lazyFinal($, "_scale", "$get$_scale", () => A._function4("scale", "$color, $kwargs...", new A._scale_closure()));
  101084. _lazyFinal($, "_change", "$get$_change", () => A._function4("change", "$color, $kwargs...", new A._change_closure()));
  101085. _lazyFinal($, "_ieHexStr", "$get$_ieHexStr", () => A._function4("ie-hex-str", "$color", new A._ieHexStr_closure()));
  101086. _lazyFinal($, "global0", "$get$global1", () => A.UnmodifiableListView$(A._setArrayType([$.$get$_length0(), $.$get$_nth(), $.$get$_setNth(), $.$get$_join(), $.$get$_append0(), $.$get$_zip(), $.$get$_index0(), $.$get$_isBracketed(), $.$get$_separator().withName$1("list-separator")], type$.JSArray_BuiltInCallable), type$.BuiltInCallable));
  101087. _lazyFinal($, "module0", "$get$module0", () => A.BuiltInModule$("list", A._setArrayType([$.$get$_length0(), $.$get$_nth(), $.$get$_setNth(), $.$get$_join(), $.$get$_append0(), $.$get$_zip(), $.$get$_index0(), $.$get$_isBracketed(), $.$get$_separator(), $.$get$_slash()], type$.JSArray_Callable), null, null, type$.Callable));
  101088. _lazyFinal($, "_length", "$get$_length0", () => A._function3("length", "$list", new A._length_closure0()));
  101089. _lazyFinal($, "_nth", "$get$_nth", () => A._function3("nth", "$list, $n", new A._nth_closure()));
  101090. _lazyFinal($, "_setNth", "$get$_setNth", () => A._function3("set-nth", "$list, $n, $value", new A._setNth_closure()));
  101091. _lazyFinal($, "_join", "$get$_join", () => A._function3("join", string$.x24list1, new A._join_closure()));
  101092. _lazyFinal($, "_append", "$get$_append0", () => A._function3("append", "$list, $val, $separator: auto", new A._append_closure0()));
  101093. _lazyFinal($, "_zip", "$get$_zip", () => A._function3("zip", "$lists...", new A._zip_closure()));
  101094. _lazyFinal($, "_index", "$get$_index0", () => A._function3("index", "$list, $value", new A._index_closure0()));
  101095. _lazyFinal($, "_separator", "$get$_separator", () => A._function3("separator", "$list", new A._separator_closure()));
  101096. _lazyFinal($, "_isBracketed", "$get$_isBracketed", () => A._function3("is-bracketed", "$list", new A._isBracketed_closure()));
  101097. _lazyFinal($, "_slash", "$get$_slash", () => A._function3("slash", "$elements...", new A._slash_closure()));
  101098. _lazyFinal($, "global1", "$get$global2", () => A.UnmodifiableListView$(A._setArrayType([$.$get$_get().withName$1("map-get"), $.$get$_merge().withName$1("map-merge"), $.$get$_remove().withName$1("map-remove"), $.$get$_keys().withName$1("map-keys"), $.$get$_values().withName$1("map-values"), $.$get$_hasKey().withName$1("map-has-key")], type$.JSArray_BuiltInCallable), type$.BuiltInCallable));
  101099. _lazyFinal($, "module1", "$get$module1", () => A.BuiltInModule$("map", A._setArrayType([$.$get$_get(), $.$get$_set(), $.$get$_merge(), $.$get$_remove(), $.$get$_keys(), $.$get$_values(), $.$get$_hasKey(), $.$get$_deepMerge(), $.$get$_deepRemove()], type$.JSArray_Callable), null, null, type$.Callable));
  101100. _lazyFinal($, "_get", "$get$_get", () => A._function2("get", "$map, $key, $keys...", new A._get_closure()));
  101101. _lazyFinal($, "_set", "$get$_set", () => A.BuiltInCallable$overloadedFunction("set", A.LinkedHashMap_LinkedHashMap$_literal(["$map, $key, $value", new A._set_closure(), "$map, $args...", new A._set_closure0()], type$.String, type$.Value_Function_List_Value)));
  101102. _lazyFinal($, "_merge", "$get$_merge", () => A.BuiltInCallable$overloadedFunction("merge", A.LinkedHashMap_LinkedHashMap$_literal(["$map1, $map2", new A._merge_closure(), "$map1, $args...", new A._merge_closure0()], type$.String, type$.Value_Function_List_Value)));
  101103. _lazyFinal($, "_deepMerge", "$get$_deepMerge", () => A._function2("deep-merge", "$map1, $map2", new A._deepMerge_closure()));
  101104. _lazyFinal($, "_deepRemove", "$get$_deepRemove", () => A._function2("deep-remove", "$map, $key, $keys...", new A._deepRemove_closure()));
  101105. _lazyFinal($, "_remove", "$get$_remove", () => A.BuiltInCallable$overloadedFunction("remove", A.LinkedHashMap_LinkedHashMap$_literal(["$map", new A._remove_closure(), "$map, $key, $keys...", new A._remove_closure0()], type$.String, type$.Value_Function_List_Value)));
  101106. _lazyFinal($, "_keys", "$get$_keys", () => A._function2("keys", "$map", new A._keys_closure()));
  101107. _lazyFinal($, "_values", "$get$_values", () => A._function2("values", "$map", new A._values_closure()));
  101108. _lazyFinal($, "_hasKey", "$get$_hasKey", () => A._function2("has-key", "$map, $key, $keys...", new A._hasKey_closure()));
  101109. _lazyFinal($, "global2", "$get$global3", () => A.UnmodifiableListView$(A._setArrayType([$.$get$_abs(), $.$get$_ceil(), $.$get$_floor(), $.$get$_max(), $.$get$_min(), $.$get$_percentage(), $.$get$_randomFunction(), $.$get$_round(), $.$get$_unit(), $.$get$_compatible().withName$1("comparable"), $.$get$_isUnitless().withName$1("unitless")], type$.JSArray_BuiltInCallable), type$.BuiltInCallable));
  101110. _lazyFinal($, "module2", "$get$module2", () => {
  101111. var _null = null;
  101112. return A.BuiltInModule$("math", A._setArrayType([$.$get$_abs(), $.$get$_acos(), $.$get$_asin(), $.$get$_atan(), $.$get$_atan2(), $.$get$_ceil(), $.$get$_clamp(), $.$get$_cos(), $.$get$_compatible(), $.$get$_floor(), $.$get$_hypot(), $.$get$_isUnitless(), $.$get$_log(), $.$get$_max(), $.$get$_min(), $.$get$_percentage(), $.$get$_pow(), $.$get$_randomFunction(), $.$get$_round(), $.$get$_sin(), $.$get$_sqrt(), $.$get$_tan(), $.$get$_unit(), $.$get$_div()], type$.JSArray_Callable), _null, A.LinkedHashMap_LinkedHashMap$_literal(["e", A.SassNumber_SassNumber(2.718281828459045, _null), "pi", A.SassNumber_SassNumber(3.141592653589793, _null), "epsilon", A.SassNumber_SassNumber(2220446049250313e-31, _null), "max-safe-integer", A.SassNumber_SassNumber(9007199254740991, _null), "min-safe-integer", A.SassNumber_SassNumber(-9007199254740991, _null), "max-number", A.SassNumber_SassNumber(17976931348623157e292, _null), "min-number", A.SassNumber_SassNumber(5e-324, _null)], type$.String, type$.Value), type$.Callable);
  101113. });
  101114. _lazyFinal($, "_ceil", "$get$_ceil", () => A._numberFunction("ceil", new A._ceil_closure()));
  101115. _lazyFinal($, "_clamp", "$get$_clamp", () => A._function1("clamp", "$min, $number, $max", new A._clamp_closure()));
  101116. _lazyFinal($, "_floor", "$get$_floor", () => A._numberFunction("floor", new A._floor_closure()));
  101117. _lazyFinal($, "_max", "$get$_max", () => A._function1("max", "$numbers...", new A._max_closure()));
  101118. _lazyFinal($, "_min", "$get$_min", () => A._function1("min", "$numbers...", new A._min_closure()));
  101119. _lazyFinal($, "_round", "$get$_round", () => A._numberFunction("round", new A._round_closure()));
  101120. _lazyFinal($, "_abs", "$get$_abs", () => A._numberFunction("abs", new A._abs_closure()));
  101121. _lazyFinal($, "_hypot", "$get$_hypot", () => A._function1("hypot", "$numbers...", new A._hypot_closure()));
  101122. _lazyFinal($, "_log", "$get$_log", () => A._function1("log", "$number, $base: null", new A._log_closure()));
  101123. _lazyFinal($, "_pow", "$get$_pow", () => A._function1("pow", "$base, $exponent", new A._pow_closure()));
  101124. _lazyFinal($, "_sqrt", "$get$_sqrt", () => A._function1("sqrt", "$number", new A._sqrt_closure()));
  101125. _lazyFinal($, "_acos", "$get$_acos", () => A._function1("acos", "$number", new A._acos_closure()));
  101126. _lazyFinal($, "_asin", "$get$_asin", () => A._function1("asin", "$number", new A._asin_closure()));
  101127. _lazyFinal($, "_atan", "$get$_atan", () => A._function1("atan", "$number", new A._atan_closure()));
  101128. _lazyFinal($, "_atan2", "$get$_atan2", () => A._function1("atan2", "$y, $x", new A._atan2_closure()));
  101129. _lazyFinal($, "_cos", "$get$_cos", () => A._function1("cos", "$number", new A._cos_closure()));
  101130. _lazyFinal($, "_sin", "$get$_sin", () => A._function1("sin", "$number", new A._sin_closure()));
  101131. _lazyFinal($, "_tan", "$get$_tan", () => A._function1("tan", "$number", new A._tan_closure()));
  101132. _lazyFinal($, "_compatible", "$get$_compatible", () => A._function1("compatible", "$number1, $number2", new A._compatible_closure()));
  101133. _lazyFinal($, "_isUnitless", "$get$_isUnitless", () => A._function1("is-unitless", "$number", new A._isUnitless_closure()));
  101134. _lazyFinal($, "_unit", "$get$_unit", () => A._function1("unit", "$number", new A._unit_closure()));
  101135. _lazyFinal($, "_percentage", "$get$_percentage", () => A._function1("percentage", "$number", new A._percentage_closure()));
  101136. _lazyFinal($, "_random", "$get$_random0", () => A.Random_Random());
  101137. _lazyFinal($, "_randomFunction", "$get$_randomFunction", () => A._function1("random", "$limit: null", new A._randomFunction_closure()));
  101138. _lazyFinal($, "_div", "$get$_div", () => A._function1("div", "$number1, $number2", new A._div_closure()));
  101139. _lazyFinal($, "global3", "$get$global", () => A.UnmodifiableListView$(A._setArrayType([A._function5("feature-exists", "$feature", new A.global_closure26()), A._function5("inspect", "$value", new A.global_closure27()), A._function5("type-of", "$value", new A.global_closure28()), A._function5("keywords", "$args", new A.global_closure29())], type$.JSArray_BuiltInCallable), type$.BuiltInCallable));
  101140. _lazyFinal($, "local", "$get$local", () => A.UnmodifiableListView$(A._setArrayType([A._function5("calc-name", "$calc", new A.local_closure()), A._function5("calc-args", "$calc", new A.local_closure0())], type$.JSArray_BuiltInCallable), type$.BuiltInCallable));
  101141. _lazyFinal($, "global4", "$get$global4", () => A.UnmodifiableListView$(A._setArrayType([$.$get$_isSuperselector(), $.$get$_simpleSelectors(), $.$get$_parse().withName$1("selector-parse"), $.$get$_nest().withName$1("selector-nest"), $.$get$_append().withName$1("selector-append"), $.$get$_extend().withName$1("selector-extend"), $.$get$_replace().withName$1("selector-replace"), $.$get$_unify().withName$1("selector-unify")], type$.JSArray_BuiltInCallable), type$.BuiltInCallable));
  101142. _lazyFinal($, "module3", "$get$module3", () => A.BuiltInModule$("selector", A._setArrayType([$.$get$_isSuperselector(), $.$get$_simpleSelectors(), $.$get$_parse(), $.$get$_nest(), $.$get$_append(), $.$get$_extend(), $.$get$_replace(), $.$get$_unify()], type$.JSArray_Callable), null, null, type$.Callable));
  101143. _lazyFinal($, "_nest", "$get$_nest", () => A._function0("nest", "$selectors...", new A._nest_closure()));
  101144. _lazyFinal($, "_append0", "$get$_append", () => A._function0("append", "$selectors...", new A._append_closure()));
  101145. _lazyFinal($, "_extend", "$get$_extend", () => A._function0("extend", "$selector, $extendee, $extender", new A._extend_closure()));
  101146. _lazyFinal($, "_replace", "$get$_replace", () => A._function0("replace", "$selector, $original, $replacement", new A._replace_closure()));
  101147. _lazyFinal($, "_unify", "$get$_unify", () => A._function0("unify", "$selector1, $selector2", new A._unify_closure()));
  101148. _lazyFinal($, "_isSuperselector", "$get$_isSuperselector", () => A._function0("is-superselector", "$super, $sub", new A._isSuperselector_closure()));
  101149. _lazyFinal($, "_simpleSelectors", "$get$_simpleSelectors", () => A._function0("simple-selectors", "$selector", new A._simpleSelectors_closure()));
  101150. _lazyFinal($, "_parse", "$get$_parse", () => A._function0("parse", "$selector", new A._parse_closure()));
  101151. _lazyFinal($, "_random0", "$get$_random", () => A.Random_Random());
  101152. _lazy($, "_previousUniqueId", "$get$_previousUniqueId", () => $.$get$_random().nextInt$1(A._asInt(A.pow(36, 6))));
  101153. _lazyFinal($, "global5", "$get$global5", () => A.UnmodifiableListView$(A._setArrayType([$.$get$_unquote(), $.$get$_quote(), $.$get$_toUpperCase(), $.$get$_toLowerCase(), $.$get$_uniqueId(), $.$get$_length().withName$1("str-length"), $.$get$_insert().withName$1("str-insert"), $.$get$_index().withName$1("str-index"), $.$get$_slice().withName$1("str-slice")], type$.JSArray_BuiltInCallable), type$.BuiltInCallable));
  101154. _lazyFinal($, "module4", "$get$module4", () => A.BuiltInModule$("string", A._setArrayType([$.$get$_unquote(), $.$get$_quote(), $.$get$_toUpperCase(), $.$get$_toLowerCase(), $.$get$_length(), $.$get$_insert(), $.$get$_index(), $.$get$_slice(), $.$get$_uniqueId(), A._function("split", "$string, $separator, $limit: null", new A.module_closure())], type$.JSArray_Callable), null, null, type$.Callable));
  101155. _lazyFinal($, "_unquote", "$get$_unquote", () => A._function("unquote", "$string", new A._unquote_closure()));
  101156. _lazyFinal($, "_quote", "$get$_quote", () => A._function("quote", "$string", new A._quote_closure()));
  101157. _lazyFinal($, "_length0", "$get$_length", () => A._function("length", "$string", new A._length_closure()));
  101158. _lazyFinal($, "_insert", "$get$_insert", () => A._function("insert", "$string, $insert, $index", new A._insert_closure()));
  101159. _lazyFinal($, "_index0", "$get$_index", () => A._function("index", "$string, $substring", new A._index_closure()));
  101160. _lazyFinal($, "_slice", "$get$_slice", () => A._function("slice", "$string, $start-at, $end-at: -1", new A._slice_closure()));
  101161. _lazyFinal($, "_toUpperCase", "$get$_toUpperCase", () => A._function("to-upper-case", "$string", new A._toUpperCase_closure()));
  101162. _lazyFinal($, "_toLowerCase", "$get$_toLowerCase", () => A._function("to-lower-case", "$string", new A._toLowerCase_closure()));
  101163. _lazyFinal($, "_uniqueId", "$get$_uniqueId", () => A._function("unique-id", "", new A._uniqueId_closure()));
  101164. _lazyFinal($, "stderr", "$get$stderr", () => new A.Stderr(J.get$stderr$x(self.process)));
  101165. _lazyFinal($, "Logger_quiet", "$get$Logger_quiet", () => new A._QuietLogger());
  101166. _lazyFinal($, "_disallowedFunctionNames", "$get$_disallowedFunctionNames", () => {
  101167. var t1 = $.$get$globalFunctions();
  101168. t1 = t1.map$1$1(t1, new A._disallowedFunctionNames_closure(), type$.String).toSet$0(0);
  101169. t1.add$1(0, "if");
  101170. t1.remove$1(0, "rgb");
  101171. t1.remove$1(0, "rgba");
  101172. t1.remove$1(0, "hsl");
  101173. t1.remove$1(0, "hsla");
  101174. t1.remove$1(0, "grayscale");
  101175. t1.remove$1(0, "invert");
  101176. t1.remove$1(0, "alpha");
  101177. t1.remove$1(0, "opacity");
  101178. t1.remove$1(0, "saturate");
  101179. return t1;
  101180. });
  101181. _lazyFinal($, "_epsilon", "$get$_epsilon", () => A.pow(10, -11));
  101182. _lazyFinal($, "_inverseEpsilon", "$get$_inverseEpsilon", () => A.pow(10, 11));
  101183. _lazyFinal($, "_noSourceUrl", "$get$_noSourceUrl", () => A.Uri_parse("-"));
  101184. _lazyFinal($, "_traces", "$get$_traces", () => A.Expando$());
  101185. _lazyFinal($, "_typesByUnit", "$get$_typesByUnit", () => {
  101186. var t2, t3, t4,
  101187. t1 = type$.String;
  101188. t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  101189. for (t2 = B.Map_U8AHF.get$entries(B.Map_U8AHF), t2 = t2.get$iterator(t2); t2.moveNext$0();) {
  101190. t3 = t2.get$current(t2);
  101191. for (t4 = J.get$iterator$ax(t3.value), t3 = t3.key; t4.moveNext$0();)
  101192. t1.$indexSet(0, t4.get$current(t4), t3);
  101193. }
  101194. return t1;
  101195. });
  101196. _lazyFinal($, "_knownCompatibilitiesByUnit", "$get$_knownCompatibilitiesByUnit", () => {
  101197. var _i, set, t2,
  101198. t1 = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, A.findType("Set<String>"));
  101199. for (_i = 0; _i < 5; ++_i) {
  101200. set = B.List_AqW[_i];
  101201. for (t2 = set.get$iterator(set); t2.moveNext$0();)
  101202. t1.$indexSet(0, t2.get$current(t2), set);
  101203. }
  101204. return t1;
  101205. });
  101206. _lazyFinal($, "_emptyQuoted", "$get$_emptyQuoted", () => A.SassString$("", true));
  101207. _lazyFinal($, "_emptyUnquoted", "$get$_emptyUnquoted", () => A.SassString$("", false));
  101208. _lazyFinal($, "maxInt32", "$get$maxInt32", () => A._asInt(A.pow(2, 31)) - 1);
  101209. _lazyFinal($, "minInt32", "$get$minInt32", () => -A._asInt(A.pow(2, 31)));
  101210. _lazyFinal($, "_vmFrame", "$get$_vmFrame", () => A.RegExp_RegExp("^#\\d+\\s+(\\S.*) \\((.+?)((?::\\d+){0,2})\\)$", false));
  101211. _lazyFinal($, "_v8Frame", "$get$_v8Frame", () => A.RegExp_RegExp("^\\s*at (?:(\\S.*?)(?: \\[as [^\\]]+\\])? \\((.*)\\)|(.*))$", false));
  101212. _lazyFinal($, "_v8UrlLocation", "$get$_v8UrlLocation", () => A.RegExp_RegExp("^(.*?):(\\d+)(?::(\\d+))?$|native$", false));
  101213. _lazyFinal($, "_v8EvalLocation", "$get$_v8EvalLocation", () => A.RegExp_RegExp("^eval at (?:\\S.*?) \\((.*)\\)(?:, .*?:\\d+:\\d+)?$", false));
  101214. _lazyFinal($, "_firefoxEvalLocation", "$get$_firefoxEvalLocation", () => A.RegExp_RegExp("(\\S+)@(\\S+) line (\\d+) >.* (Function|eval):\\d+:\\d+", false));
  101215. _lazyFinal($, "_firefoxSafariFrame", "$get$_firefoxSafariFrame", () => A.RegExp_RegExp("^(?:([^@(/]*)(?:\\(.*\\))?((?:/[^/]*)*)(?:\\(.*\\))?@)?(.*?):(\\d*)(?::(\\d*))?$", false));
  101216. _lazyFinal($, "_friendlyFrame", "$get$_friendlyFrame", () => A.RegExp_RegExp("^(\\S+)(?: (\\d+)(?::(\\d+))?)?\\s+([^\\d].*)$", false));
  101217. _lazyFinal($, "_asyncBody", "$get$_asyncBody", () => A.RegExp_RegExp("<(<anonymous closure>|[^>]+)_async_body>", false));
  101218. _lazyFinal($, "_initialDot", "$get$_initialDot", () => A.RegExp_RegExp("^\\.", false));
  101219. _lazyFinal($, "Frame__uriRegExp", "$get$Frame__uriRegExp", () => A.RegExp_RegExp("^[a-zA-Z][-+.a-zA-Z\\d]*://", false));
  101220. _lazyFinal($, "Frame__windowsRegExp", "$get$Frame__windowsRegExp", () => A.RegExp_RegExp("^([a-zA-Z]:[\\\\/]|\\\\\\\\)", false));
  101221. _lazyFinal($, "_terseRegExp", "$get$_terseRegExp", () => A.RegExp_RegExp("(-patch)?([/\\\\].*)?$", false));
  101222. _lazyFinal($, "_v8Trace", "$get$_v8Trace", () => A.RegExp_RegExp("\\n ?at ", false));
  101223. _lazyFinal($, "_v8TraceLine", "$get$_v8TraceLine", () => A.RegExp_RegExp(" ?at ", false));
  101224. _lazyFinal($, "_firefoxEvalTrace", "$get$_firefoxEvalTrace", () => A.RegExp_RegExp("@\\S+ line \\d+ >.* (Function|eval):\\d+:\\d+", false));
  101225. _lazyFinal($, "_firefoxSafariTrace", "$get$_firefoxSafariTrace", () => A.RegExp_RegExp("^(([.0-9A-Za-z_$/<]|\\(.*\\))*@)?[^\\s]*:\\d*$", true));
  101226. _lazyFinal($, "_friendlyTrace", "$get$_friendlyTrace", () => A.RegExp_RegExp("^[^\\s<][^\\s]*( \\d+(:\\d+)?)?[ \\t]+[^\\s]+$", true));
  101227. _lazyFinal($, "vmChainGap", "$get$vmChainGap", () => A.RegExp_RegExp("^<asynchronous suspension>\\n?$", true));
  101228. _lazyFinal($, "_newlineRegExp", "$get$_newlineRegExp", () => A.RegExp_RegExp("\\r\\n?|\\n", false));
  101229. _lazyFinal($, "argumentListClass", "$get$argumentListClass", () => new A.argumentListClass_closure().call$0());
  101230. _lazyFinal($, "_filesystemImporter", "$get$_filesystemImporter", () => A.FilesystemImporter$("."));
  101231. _lazyFinal($, "legacyBooleanClass", "$get$legacyBooleanClass", () => new A.legacyBooleanClass_closure().call$0());
  101232. _lazyFinal($, "booleanClass", "$get$booleanClass", () => new A.booleanClass_closure().call$0());
  101233. _lazyFinal($, "_microsoftFilterStart0", "$get$_microsoftFilterStart0", () => A.RegExp_RegExp("^[a-zA-Z]+\\s*=", false));
  101234. _lazyFinal($, "global6", "$get$global7", () => {
  101235. var _s27_ = "$red, $green, $blue, $alpha",
  101236. _s19_ = "$red, $green, $blue",
  101237. _s37_ = "$hue, $saturation, $lightness, $alpha",
  101238. _s29_ = "$hue, $saturation, $lightness",
  101239. _s17_ = "$hue, $saturation",
  101240. _s15_ = "$color, $amount",
  101241. t1 = type$.String,
  101242. t2 = type$.Value_Function_List_Value_2;
  101243. return A.UnmodifiableListView$(A._setArrayType([$.$get$_red0(), $.$get$_green0(), $.$get$_blue0(), $.$get$_mix0(), A.BuiltInCallable$overloadedFunction0("rgb", A.LinkedHashMap_LinkedHashMap$_literal([_s27_, new A.global_closure30(), _s19_, new A.global_closure31(), "$color, $alpha", new A.global_closure32(), "$channels", new A.global_closure33()], t1, t2)), A.BuiltInCallable$overloadedFunction0("rgba", A.LinkedHashMap_LinkedHashMap$_literal([_s27_, new A.global_closure34(), _s19_, new A.global_closure35(), "$color, $alpha", new A.global_closure36(), "$channels", new A.global_closure37()], t1, t2)), A._function11("invert", "$color, $weight: 100%", new A.global_closure38()), $.$get$_hue0(), $.$get$_saturation0(), $.$get$_lightness0(), $.$get$_complement0(), A.BuiltInCallable$overloadedFunction0("hsl", A.LinkedHashMap_LinkedHashMap$_literal([_s37_, new A.global_closure39(), _s29_, new A.global_closure40(), _s17_, new A.global_closure41(), "$channels", new A.global_closure42()], t1, t2)), A.BuiltInCallable$overloadedFunction0("hsla", A.LinkedHashMap_LinkedHashMap$_literal([_s37_, new A.global_closure43(), _s29_, new A.global_closure44(), _s17_, new A.global_closure45(), "$channels", new A.global_closure46()], t1, t2)), A._function11("grayscale", "$color", new A.global_closure47()), A._function11("adjust-hue", "$color, $degrees", new A.global_closure48()), A._function11("lighten", _s15_, new A.global_closure49()), A._function11("darken", _s15_, new A.global_closure50()), A.BuiltInCallable$overloadedFunction0("saturate", A.LinkedHashMap_LinkedHashMap$_literal(["$amount", new A.global_closure51(), "$color, $amount", new A.global_closure52()], t1, t2)), A._function11("desaturate", _s15_, new A.global_closure53()), A._function11("opacify", _s15_, A.color2___opacify$closure()), A._function11("fade-in", _s15_, A.color2___opacify$closure()), A._function11("transparentize", _s15_, A.color2___transparentize$closure()), A._function11("fade-out", _s15_, A.color2___transparentize$closure()), A.BuiltInCallable$overloadedFunction0("alpha", A.LinkedHashMap_LinkedHashMap$_literal(["$color", new A.global_closure54(), "$args...", new A.global_closure55()], t1, t2)), A._function11("opacity", "$color", new A.global_closure56()), $.$get$_ieHexStr0(), $.$get$_adjust0().withName$1("adjust-color"), $.$get$_scale0().withName$1("scale-color"), $.$get$_change0().withName$1("change-color")], type$.JSArray_BuiltInCallable_2), type$.BuiltInCallable_2);
  101244. });
  101245. _lazyFinal($, "module5", "$get$module5", () => {
  101246. var _s9_ = "lightness",
  101247. _s10_ = "saturation",
  101248. _s6_ = "$color", _s5_ = "alpha",
  101249. t1 = type$.String,
  101250. t2 = type$.Value_Function_List_Value_2;
  101251. return A.BuiltInModule$0("color", A._setArrayType([$.$get$_red0(), $.$get$_green0(), $.$get$_blue0(), $.$get$_mix0(), A._function11("invert", "$color, $weight: 100%", new A.module_closure10()), $.$get$_hue0(), $.$get$_saturation0(), $.$get$_lightness0(), $.$get$_complement0(), A._removedColorFunction0("adjust-hue", "hue", false), A._removedColorFunction0("lighten", _s9_, false), A._removedColorFunction0("darken", _s9_, true), A._removedColorFunction0("saturate", _s10_, false), A._removedColorFunction0("desaturate", _s10_, true), A._function11("grayscale", _s6_, new A.module_closure11()), A.BuiltInCallable$overloadedFunction0("hwb", A.LinkedHashMap_LinkedHashMap$_literal(["$hue, $whiteness, $blackness, $alpha: 1", new A.module_closure12(), "$channels", new A.module_closure13()], t1, t2)), A._function11("whiteness", _s6_, new A.module_closure14()), A._function11("blackness", _s6_, new A.module_closure15()), A._removedColorFunction0("opacify", _s5_, false), A._removedColorFunction0("fade-in", _s5_, false), A._removedColorFunction0("transparentize", _s5_, true), A._removedColorFunction0("fade-out", _s5_, true), A.BuiltInCallable$overloadedFunction0(_s5_, A.LinkedHashMap_LinkedHashMap$_literal(["$color", new A.module_closure16(), "$args...", new A.module_closure17()], t1, t2)), A._function11("opacity", _s6_, new A.module_closure18()), $.$get$_adjust0(), $.$get$_scale0(), $.$get$_change0(), $.$get$_ieHexStr0()], type$.JSArray_Callable_2), null, null, type$.Callable_2);
  101252. });
  101253. _lazyFinal($, "_red0", "$get$_red0", () => A._function11("red", "$color", new A._red_closure0()));
  101254. _lazyFinal($, "_green0", "$get$_green0", () => A._function11("green", "$color", new A._green_closure0()));
  101255. _lazyFinal($, "_blue0", "$get$_blue0", () => A._function11("blue", "$color", new A._blue_closure0()));
  101256. _lazyFinal($, "_mix0", "$get$_mix0", () => A._function11("mix", "$color1, $color2, $weight: 50%", new A._mix_closure0()));
  101257. _lazyFinal($, "_hue0", "$get$_hue0", () => A._function11("hue", "$color", new A._hue_closure0()));
  101258. _lazyFinal($, "_saturation0", "$get$_saturation0", () => A._function11("saturation", "$color", new A._saturation_closure0()));
  101259. _lazyFinal($, "_lightness0", "$get$_lightness0", () => A._function11("lightness", "$color", new A._lightness_closure0()));
  101260. _lazyFinal($, "_complement0", "$get$_complement0", () => A._function11("complement", "$color", new A._complement_closure0()));
  101261. _lazyFinal($, "_adjust0", "$get$_adjust0", () => A._function11("adjust", "$color, $kwargs...", new A._adjust_closure0()));
  101262. _lazyFinal($, "_scale0", "$get$_scale0", () => A._function11("scale", "$color, $kwargs...", new A._scale_closure0()));
  101263. _lazyFinal($, "_change0", "$get$_change0", () => A._function11("change", "$color, $kwargs...", new A._change_closure0()));
  101264. _lazyFinal($, "_ieHexStr0", "$get$_ieHexStr0", () => A._function11("ie-hex-str", "$color", new A._ieHexStr_closure0()));
  101265. _lazyFinal($, "legacyColorClass", "$get$legacyColorClass", () => {
  101266. var t1 = A.createJSClass("sass.types.Color", new A.legacyColorClass_closure());
  101267. A.JSClassExtension_defineMethods(t1, A.LinkedHashMap_LinkedHashMap$_literal(["getR", new A.legacyColorClass_closure0(), "getG", new A.legacyColorClass_closure1(), "getB", new A.legacyColorClass_closure2(), "getA", new A.legacyColorClass_closure3(), "setR", new A.legacyColorClass_closure4(), "setG", new A.legacyColorClass_closure5(), "setB", new A.legacyColorClass_closure6(), "setA", new A.legacyColorClass_closure7()], type$.String, type$.Function));
  101268. return t1;
  101269. });
  101270. _lazyFinal($, "colorClass", "$get$colorClass", () => new A.colorClass_closure().call$0());
  101271. _lazyFinal($, "colorsByName0", "$get$colorsByName0", () => {
  101272. var _null = null;
  101273. return A.LinkedHashMap_LinkedHashMap$_literal(["yellowgreen", A.SassColor$rgb0(154, 205, 50, _null), "yellow", A.SassColor$rgb0(255, 255, 0, _null), "whitesmoke", A.SassColor$rgb0(245, 245, 245, _null), "white", A.SassColor$rgb0(255, 255, 255, _null), "wheat", A.SassColor$rgb0(245, 222, 179, _null), "violet", A.SassColor$rgb0(238, 130, 238, _null), "turquoise", A.SassColor$rgb0(64, 224, 208, _null), "transparent", A.SassColor$rgb0(0, 0, 0, 0), "tomato", A.SassColor$rgb0(255, 99, 71, _null), "thistle", A.SassColor$rgb0(216, 191, 216, _null), "teal", A.SassColor$rgb0(0, 128, 128, _null), "tan", A.SassColor$rgb0(210, 180, 140, _null), "steelblue", A.SassColor$rgb0(70, 130, 180, _null), "springgreen", A.SassColor$rgb0(0, 255, 127, _null), "snow", A.SassColor$rgb0(255, 250, 250, _null), "slategrey", A.SassColor$rgb0(112, 128, 144, _null), "slategray", A.SassColor$rgb0(112, 128, 144, _null), "slateblue", A.SassColor$rgb0(106, 90, 205, _null), "skyblue", A.SassColor$rgb0(135, 206, 235, _null), "silver", A.SassColor$rgb0(192, 192, 192, _null), "sienna", A.SassColor$rgb0(160, 82, 45, _null), "seashell", A.SassColor$rgb0(255, 245, 238, _null), "seagreen", A.SassColor$rgb0(46, 139, 87, _null), "sandybrown", A.SassColor$rgb0(244, 164, 96, _null), "salmon", A.SassColor$rgb0(250, 128, 114, _null), "saddlebrown", A.SassColor$rgb0(139, 69, 19, _null), "royalblue", A.SassColor$rgb0(65, 105, 225, _null), "rosybrown", A.SassColor$rgb0(188, 143, 143, _null), "red", A.SassColor$rgb0(255, 0, 0, _null), "rebeccapurple", A.SassColor$rgb0(102, 51, 153, _null), "purple", A.SassColor$rgb0(128, 0, 128, _null), "powderblue", A.SassColor$rgb0(176, 224, 230, _null), "plum", A.SassColor$rgb0(221, 160, 221, _null), "pink", A.SassColor$rgb0(255, 192, 203, _null), "peru", A.SassColor$rgb0(205, 133, 63, _null), "peachpuff", A.SassColor$rgb0(255, 218, 185, _null), "papayawhip", A.SassColor$rgb0(255, 239, 213, _null), "palevioletred", A.SassColor$rgb0(219, 112, 147, _null), "paleturquoise", A.SassColor$rgb0(175, 238, 238, _null), "palegreen", A.SassColor$rgb0(152, 251, 152, _null), "palegoldenrod", A.SassColor$rgb0(238, 232, 170, _null), "orchid", A.SassColor$rgb0(218, 112, 214, _null), "orangered", A.SassColor$rgb0(255, 69, 0, _null), "orange", A.SassColor$rgb0(255, 165, 0, _null), "olivedrab", A.SassColor$rgb0(107, 142, 35, _null), "olive", A.SassColor$rgb0(128, 128, 0, _null), "oldlace", A.SassColor$rgb0(253, 245, 230, _null), "navy", A.SassColor$rgb0(0, 0, 128, _null), "navajowhite", A.SassColor$rgb0(255, 222, 173, _null), "moccasin", A.SassColor$rgb0(255, 228, 181, _null), "mistyrose", A.SassColor$rgb0(255, 228, 225, _null), "mintcream", A.SassColor$rgb0(245, 255, 250, _null), "midnightblue", A.SassColor$rgb0(25, 25, 112, _null), "mediumvioletred", A.SassColor$rgb0(199, 21, 133, _null), "mediumturquoise", A.SassColor$rgb0(72, 209, 204, _null), "mediumspringgreen", A.SassColor$rgb0(0, 250, 154, _null), "mediumslateblue", A.SassColor$rgb0(123, 104, 238, _null), "mediumseagreen", A.SassColor$rgb0(60, 179, 113, _null), "mediumpurple", A.SassColor$rgb0(147, 112, 219, _null), "mediumorchid", A.SassColor$rgb0(186, 85, 211, _null), "mediumblue", A.SassColor$rgb0(0, 0, 205, _null), "mediumaquamarine", A.SassColor$rgb0(102, 205, 170, _null), "maroon", A.SassColor$rgb0(128, 0, 0, _null), "magenta", A.SassColor$rgb0(255, 0, 255, _null), "linen", A.SassColor$rgb0(250, 240, 230, _null), "limegreen", A.SassColor$rgb0(50, 205, 50, _null), "lime", A.SassColor$rgb0(0, 255, 0, _null), "lightyellow", A.SassColor$rgb0(255, 255, 224, _null), "lightsteelblue", A.SassColor$rgb0(176, 196, 222, _null), "lightslategrey", A.SassColor$rgb0(119, 136, 153, _null), "lightslategray", A.SassColor$rgb0(119, 136, 153, _null), "lightskyblue", A.SassColor$rgb0(135, 206, 250, _null), "lightseagreen", A.SassColor$rgb0(32, 178, 170, _null), "lightsalmon", A.SassColor$rgb0(255, 160, 122, _null), "lightpink", A.SassColor$rgb0(255, 182, 193, _null), "lightgrey", A.SassColor$rgb0(211, 211, 211, _null), "lightgreen", A.SassColor$rgb0(144, 238, 144, _null), "lightgray", A.SassColor$rgb0(211, 211, 211, _null), "lightgoldenrodyellow", A.SassColor$rgb0(250, 250, 210, _null), "lightcyan", A.SassColor$rgb0(224, 255, 255, _null), "lightcoral", A.SassColor$rgb0(240, 128, 128, _null), "lightblue", A.SassColor$rgb0(173, 216, 230, _null), "lemonchiffon", A.SassColor$rgb0(255, 250, 205, _null), "lawngreen", A.SassColor$rgb0(124, 252, 0, _null), "lavenderblush", A.SassColor$rgb0(255, 240, 245, _null), "lavender", A.SassColor$rgb0(230, 230, 250, _null), "khaki", A.SassColor$rgb0(240, 230, 140, _null), "ivory", A.SassColor$rgb0(255, 255, 240, _null), "indigo", A.SassColor$rgb0(75, 0, 130, _null), "indianred", A.SassColor$rgb0(205, 92, 92, _null), "hotpink", A.SassColor$rgb0(255, 105, 180, _null), "honeydew", A.SassColor$rgb0(240, 255, 240, _null), "grey", A.SassColor$rgb0(128, 128, 128, _null), "greenyellow", A.SassColor$rgb0(173, 255, 47, _null), "green", A.SassColor$rgb0(0, 128, 0, _null), "gray", A.SassColor$rgb0(128, 128, 128, _null), "goldenrod", A.SassColor$rgb0(218, 165, 32, _null), "gold", A.SassColor$rgb0(255, 215, 0, _null), "ghostwhite", A.SassColor$rgb0(248, 248, 255, _null), "gainsboro", A.SassColor$rgb0(220, 220, 220, _null), "fuchsia", A.SassColor$rgb0(255, 0, 255, _null), "forestgreen", A.SassColor$rgb0(34, 139, 34, _null), "floralwhite", A.SassColor$rgb0(255, 250, 240, _null), "firebrick", A.SassColor$rgb0(178, 34, 34, _null), "dodgerblue", A.SassColor$rgb0(30, 144, 255, _null), "dimgrey", A.SassColor$rgb0(105, 105, 105, _null), "dimgray", A.SassColor$rgb0(105, 105, 105, _null), "deepskyblue", A.SassColor$rgb0(0, 191, 255, _null), "deeppink", A.SassColor$rgb0(255, 20, 147, _null), "darkviolet", A.SassColor$rgb0(148, 0, 211, _null), "darkturquoise", A.SassColor$rgb0(0, 206, 209, _null), "darkslategrey", A.SassColor$rgb0(47, 79, 79, _null), "darkslategray", A.SassColor$rgb0(47, 79, 79, _null), "darkslateblue", A.SassColor$rgb0(72, 61, 139, _null), "darkseagreen", A.SassColor$rgb0(143, 188, 143, _null), "darksalmon", A.SassColor$rgb0(233, 150, 122, _null), "darkred", A.SassColor$rgb0(139, 0, 0, _null), "darkorchid", A.SassColor$rgb0(153, 50, 204, _null), "darkorange", A.SassColor$rgb0(255, 140, 0, _null), "darkolivegreen", A.SassColor$rgb0(85, 107, 47, _null), "darkmagenta", A.SassColor$rgb0(139, 0, 139, _null), "darkkhaki", A.SassColor$rgb0(189, 183, 107, _null), "darkgrey", A.SassColor$rgb0(169, 169, 169, _null), "darkgreen", A.SassColor$rgb0(0, 100, 0, _null), "darkgray", A.SassColor$rgb0(169, 169, 169, _null), "darkgoldenrod", A.SassColor$rgb0(184, 134, 11, _null), "darkcyan", A.SassColor$rgb0(0, 139, 139, _null), "darkblue", A.SassColor$rgb0(0, 0, 139, _null), "cyan", A.SassColor$rgb0(0, 255, 255, _null), "crimson", A.SassColor$rgb0(220, 20, 60, _null), "cornsilk", A.SassColor$rgb0(255, 248, 220, _null), "cornflowerblue", A.SassColor$rgb0(100, 149, 237, _null), "coral", A.SassColor$rgb0(255, 127, 80, _null), "chocolate", A.SassColor$rgb0(210, 105, 30, _null), "chartreuse", A.SassColor$rgb0(127, 255, 0, _null), "cadetblue", A.SassColor$rgb0(95, 158, 160, _null), "burlywood", A.SassColor$rgb0(222, 184, 135, _null), "brown", A.SassColor$rgb0(165, 42, 42, _null), "blueviolet", A.SassColor$rgb0(138, 43, 226, _null), "blue", A.SassColor$rgb0(0, 0, 255, _null), "blanchedalmond", A.SassColor$rgb0(255, 235, 205, _null), "black", A.SassColor$rgb0(0, 0, 0, _null), "bisque", A.SassColor$rgb0(255, 228, 196, _null), "beige", A.SassColor$rgb0(245, 245, 220, _null), "azure", A.SassColor$rgb0(240, 255, 255, _null), "aquamarine", A.SassColor$rgb0(127, 255, 212, _null), "aqua", A.SassColor$rgb0(0, 255, 255, _null), "antiquewhite", A.SassColor$rgb0(250, 235, 215, _null), "aliceblue", A.SassColor$rgb0(240, 248, 255, _null)], type$.String, type$.SassColor_2);
  101274. });
  101275. _lazyFinal($, "namesByColor0", "$get$namesByColor0", () => {
  101276. var t2, t3,
  101277. t1 = A.LinkedHashMap_LinkedHashMap$_empty(type$.SassColor_2, type$.String);
  101278. for (t2 = $.$get$colorsByName0(), t2 = t2.get$entries(t2), t2 = t2.get$iterator(t2); t2.moveNext$0();) {
  101279. t3 = t2.get$current(t2);
  101280. t1.$indexSet(0, t3.value, t3.key);
  101281. }
  101282. return t1;
  101283. });
  101284. _lazyFinal($, "_disallowedFunctionNames0", "$get$_disallowedFunctionNames0", () => {
  101285. var t1 = $.$get$globalFunctions0();
  101286. t1 = t1.map$1$1(t1, new A._disallowedFunctionNames_closure0(), type$.String).toSet$0(0);
  101287. t1.add$1(0, "if");
  101288. t1.remove$1(0, "rgb");
  101289. t1.remove$1(0, "rgba");
  101290. t1.remove$1(0, "hsl");
  101291. t1.remove$1(0, "hsla");
  101292. t1.remove$1(0, "grayscale");
  101293. t1.remove$1(0, "invert");
  101294. t1.remove$1(0, "alpha");
  101295. t1.remove$1(0, "opacity");
  101296. t1.remove$1(0, "saturate");
  101297. return t1;
  101298. });
  101299. _lazyFinal($, "exceptionClass", "$get$exceptionClass", () => new A.exceptionClass_closure().call$0());
  101300. _lazyFinal($, "_filesystemImporter0", "$get$_filesystemImporter0", () => A.FilesystemImporter$("."));
  101301. _lazyFinal($, "functionClass", "$get$functionClass", () => new A.functionClass_closure().call$0());
  101302. _lazyFinal($, "globalFunctions0", "$get$globalFunctions0", () => {
  101303. var t1 = type$.BuiltInCallable_2,
  101304. t2 = A.List_List$of($.$get$global7(), true, t1);
  101305. B.JSArray_methods.addAll$1(t2, $.$get$global8());
  101306. B.JSArray_methods.addAll$1(t2, $.$get$global9());
  101307. B.JSArray_methods.addAll$1(t2, $.$get$global10());
  101308. B.JSArray_methods.addAll$1(t2, $.$get$global11());
  101309. B.JSArray_methods.addAll$1(t2, $.$get$global12());
  101310. B.JSArray_methods.addAll$1(t2, $.$get$global6());
  101311. t2.push(A.BuiltInCallable$function0("if", "$condition, $if-true, $if-false", new A.globalFunctions_closure0(), null));
  101312. return A.UnmodifiableListView$(t2, t1);
  101313. });
  101314. _lazyFinal($, "coreModules0", "$get$coreModules0", () => A.UnmodifiableListView$(A._setArrayType([$.$get$module5(), $.$get$module6(), $.$get$module7(), $.$get$module8(), $.$get$module9(), $.$get$module10()], A.findType("JSArray<BuiltInModule0<Callable0>>")), type$.BuiltInModule_Callable_2));
  101315. _lazyFinal($, "IfExpression_declaration0", "$get$IfExpression_declaration0", () => A.ArgumentDeclaration_ArgumentDeclaration$parse0(string$.x40funct, null));
  101316. _lazyFinal($, "global7", "$get$global8", () => A.UnmodifiableListView$(A._setArrayType([$.$get$_length2(), $.$get$_nth0(), $.$get$_setNth0(), $.$get$_join0(), $.$get$_append2(), $.$get$_zip0(), $.$get$_index2(), $.$get$_isBracketed0(), $.$get$_separator0().withName$1("list-separator")], type$.JSArray_BuiltInCallable_2), type$.BuiltInCallable_2));
  101317. _lazyFinal($, "module6", "$get$module6", () => A.BuiltInModule$0("list", A._setArrayType([$.$get$_length2(), $.$get$_nth0(), $.$get$_setNth0(), $.$get$_join0(), $.$get$_append2(), $.$get$_zip0(), $.$get$_index2(), $.$get$_isBracketed0(), $.$get$_separator0(), $.$get$_slash0()], type$.JSArray_Callable_2), null, null, type$.Callable_2));
  101318. _lazyFinal($, "_length1", "$get$_length2", () => A._function10("length", "$list", new A._length_closure2()));
  101319. _lazyFinal($, "_nth0", "$get$_nth0", () => A._function10("nth", "$list, $n", new A._nth_closure0()));
  101320. _lazyFinal($, "_setNth0", "$get$_setNth0", () => A._function10("set-nth", "$list, $n, $value", new A._setNth_closure0()));
  101321. _lazyFinal($, "_join0", "$get$_join0", () => A._function10("join", string$.x24list1, new A._join_closure0()));
  101322. _lazyFinal($, "_append1", "$get$_append2", () => A._function10("append", "$list, $val, $separator: auto", new A._append_closure2()));
  101323. _lazyFinal($, "_zip0", "$get$_zip0", () => A._function10("zip", "$lists...", new A._zip_closure0()));
  101324. _lazyFinal($, "_index1", "$get$_index2", () => A._function10("index", "$list, $value", new A._index_closure2()));
  101325. _lazyFinal($, "_separator0", "$get$_separator0", () => A._function10("separator", "$list", new A._separator_closure0()));
  101326. _lazyFinal($, "_isBracketed0", "$get$_isBracketed0", () => A._function10("is-bracketed", "$list", new A._isBracketed_closure0()));
  101327. _lazyFinal($, "_slash0", "$get$_slash0", () => A._function10("slash", "$elements...", new A._slash_closure0()));
  101328. _lazyFinal($, "legacyListClass", "$get$legacyListClass", () => {
  101329. var t1 = A.createJSClass("sass.types.List", new A.legacyListClass_closure());
  101330. A.JSClassExtension_defineMethods(t1, A.LinkedHashMap_LinkedHashMap$_literal(["getValue", new A.legacyListClass_closure0(), "setValue", new A.legacyListClass_closure1(), "getSeparator", new A.legacyListClass_closure2(), "setSeparator", new A.legacyListClass_closure3(), "getLength", new A.legacyListClass_closure4()], type$.String, type$.Function));
  101331. return t1;
  101332. });
  101333. _lazyFinal($, "listClass", "$get$listClass", () => new A.listClass_closure().call$0());
  101334. _lazyFinal($, "Logger_quiet0", "$get$Logger_quiet0", () => new A._QuietLogger0());
  101335. _lazyFinal($, "global8", "$get$global9", () => A.UnmodifiableListView$(A._setArrayType([$.$get$_get0().withName$1("map-get"), $.$get$_merge0().withName$1("map-merge"), $.$get$_remove0().withName$1("map-remove"), $.$get$_keys0().withName$1("map-keys"), $.$get$_values0().withName$1("map-values"), $.$get$_hasKey0().withName$1("map-has-key")], type$.JSArray_BuiltInCallable_2), type$.BuiltInCallable_2));
  101336. _lazyFinal($, "module7", "$get$module7", () => A.BuiltInModule$0("map", A._setArrayType([$.$get$_get0(), $.$get$_set0(), $.$get$_merge0(), $.$get$_remove0(), $.$get$_keys0(), $.$get$_values0(), $.$get$_hasKey0(), $.$get$_deepMerge0(), $.$get$_deepRemove0()], type$.JSArray_Callable_2), null, null, type$.Callable_2));
  101337. _lazyFinal($, "_get0", "$get$_get0", () => A._function9("get", "$map, $key, $keys...", new A._get_closure0()));
  101338. _lazyFinal($, "_set0", "$get$_set0", () => A.BuiltInCallable$overloadedFunction0("set", A.LinkedHashMap_LinkedHashMap$_literal(["$map, $key, $value", new A._set_closure1(), "$map, $args...", new A._set_closure2()], type$.String, type$.Value_Function_List_Value_2)));
  101339. _lazyFinal($, "_merge0", "$get$_merge0", () => A.BuiltInCallable$overloadedFunction0("merge", A.LinkedHashMap_LinkedHashMap$_literal(["$map1, $map2", new A._merge_closure1(), "$map1, $args...", new A._merge_closure2()], type$.String, type$.Value_Function_List_Value_2)));
  101340. _lazyFinal($, "_deepMerge0", "$get$_deepMerge0", () => A._function9("deep-merge", "$map1, $map2", new A._deepMerge_closure0()));
  101341. _lazyFinal($, "_deepRemove0", "$get$_deepRemove0", () => A._function9("deep-remove", "$map, $key, $keys...", new A._deepRemove_closure0()));
  101342. _lazyFinal($, "_remove0", "$get$_remove0", () => A.BuiltInCallable$overloadedFunction0("remove", A.LinkedHashMap_LinkedHashMap$_literal(["$map", new A._remove_closure1(), "$map, $key, $keys...", new A._remove_closure2()], type$.String, type$.Value_Function_List_Value_2)));
  101343. _lazyFinal($, "_keys0", "$get$_keys0", () => A._function9("keys", "$map", new A._keys_closure0()));
  101344. _lazyFinal($, "_values0", "$get$_values0", () => A._function9("values", "$map", new A._values_closure0()));
  101345. _lazyFinal($, "_hasKey0", "$get$_hasKey0", () => A._function9("has-key", "$map, $key, $keys...", new A._hasKey_closure0()));
  101346. _lazyFinal($, "legacyMapClass", "$get$legacyMapClass", () => {
  101347. var t1 = A.createJSClass("sass.types.Map", new A.legacyMapClass_closure());
  101348. A.JSClassExtension_defineMethods(t1, A.LinkedHashMap_LinkedHashMap$_literal(["getKey", new A.legacyMapClass_closure0(), "getValue", new A.legacyMapClass_closure1(), "getLength", new A.legacyMapClass_closure2(), "setKey", new A.legacyMapClass_closure3(), "setValue", new A.legacyMapClass_closure4()], type$.String, type$.Function));
  101349. return t1;
  101350. });
  101351. _lazyFinal($, "mapClass", "$get$mapClass", () => new A.mapClass_closure().call$0());
  101352. _lazyFinal($, "global9", "$get$global10", () => A.UnmodifiableListView$(A._setArrayType([$.$get$_abs0(), $.$get$_ceil0(), $.$get$_floor0(), $.$get$_max0(), $.$get$_min0(), $.$get$_percentage0(), $.$get$_randomFunction0(), $.$get$_round0(), $.$get$_unit0(), $.$get$_compatible0().withName$1("comparable"), $.$get$_isUnitless0().withName$1("unitless")], type$.JSArray_BuiltInCallable_2), type$.BuiltInCallable_2));
  101353. _lazyFinal($, "module8", "$get$module8", () => {
  101354. var _null = null;
  101355. return A.BuiltInModule$0("math", A._setArrayType([$.$get$_abs0(), $.$get$_acos0(), $.$get$_asin0(), $.$get$_atan0(), $.$get$_atan20(), $.$get$_ceil0(), $.$get$_clamp0(), $.$get$_cos0(), $.$get$_compatible0(), $.$get$_floor0(), $.$get$_hypot0(), $.$get$_isUnitless0(), $.$get$_log0(), $.$get$_max0(), $.$get$_min0(), $.$get$_percentage0(), $.$get$_pow0(), $.$get$_randomFunction0(), $.$get$_round0(), $.$get$_sin0(), $.$get$_sqrt0(), $.$get$_tan0(), $.$get$_unit0(), $.$get$_div0()], type$.JSArray_Callable_2), _null, A.LinkedHashMap_LinkedHashMap$_literal(["e", A.SassNumber_SassNumber0(2.718281828459045, _null), "pi", A.SassNumber_SassNumber0(3.141592653589793, _null), "epsilon", A.SassNumber_SassNumber0(2220446049250313e-31, _null), "max-safe-integer", A.SassNumber_SassNumber0(9007199254740991, _null), "min-safe-integer", A.SassNumber_SassNumber0(-9007199254740991, _null), "max-number", A.SassNumber_SassNumber0(17976931348623157e292, _null), "min-number", A.SassNumber_SassNumber0(5e-324, _null)], type$.String, type$.Value_2), type$.Callable_2);
  101356. });
  101357. _lazyFinal($, "_ceil0", "$get$_ceil0", () => A._numberFunction0("ceil", new A._ceil_closure0()));
  101358. _lazyFinal($, "_clamp0", "$get$_clamp0", () => A._function8("clamp", "$min, $number, $max", new A._clamp_closure0()));
  101359. _lazyFinal($, "_floor0", "$get$_floor0", () => A._numberFunction0("floor", new A._floor_closure0()));
  101360. _lazyFinal($, "_max0", "$get$_max0", () => A._function8("max", "$numbers...", new A._max_closure0()));
  101361. _lazyFinal($, "_min0", "$get$_min0", () => A._function8("min", "$numbers...", new A._min_closure0()));
  101362. _lazyFinal($, "_round0", "$get$_round0", () => A._numberFunction0("round", new A._round_closure0()));
  101363. _lazyFinal($, "_abs0", "$get$_abs0", () => A._numberFunction0("abs", new A._abs_closure0()));
  101364. _lazyFinal($, "_hypot0", "$get$_hypot0", () => A._function8("hypot", "$numbers...", new A._hypot_closure0()));
  101365. _lazyFinal($, "_log0", "$get$_log0", () => A._function8("log", "$number, $base: null", new A._log_closure0()));
  101366. _lazyFinal($, "_pow0", "$get$_pow0", () => A._function8("pow", "$base, $exponent", new A._pow_closure0()));
  101367. _lazyFinal($, "_sqrt0", "$get$_sqrt0", () => A._function8("sqrt", "$number", new A._sqrt_closure0()));
  101368. _lazyFinal($, "_acos0", "$get$_acos0", () => A._function8("acos", "$number", new A._acos_closure0()));
  101369. _lazyFinal($, "_asin0", "$get$_asin0", () => A._function8("asin", "$number", new A._asin_closure0()));
  101370. _lazyFinal($, "_atan0", "$get$_atan0", () => A._function8("atan", "$number", new A._atan_closure0()));
  101371. _lazyFinal($, "_atan20", "$get$_atan20", () => A._function8("atan2", "$y, $x", new A._atan2_closure0()));
  101372. _lazyFinal($, "_cos0", "$get$_cos0", () => A._function8("cos", "$number", new A._cos_closure0()));
  101373. _lazyFinal($, "_sin0", "$get$_sin0", () => A._function8("sin", "$number", new A._sin_closure0()));
  101374. _lazyFinal($, "_tan0", "$get$_tan0", () => A._function8("tan", "$number", new A._tan_closure0()));
  101375. _lazyFinal($, "_compatible0", "$get$_compatible0", () => A._function8("compatible", "$number1, $number2", new A._compatible_closure0()));
  101376. _lazyFinal($, "_isUnitless0", "$get$_isUnitless0", () => A._function8("is-unitless", "$number", new A._isUnitless_closure0()));
  101377. _lazyFinal($, "_unit0", "$get$_unit0", () => A._function8("unit", "$number", new A._unit_closure0()));
  101378. _lazyFinal($, "_percentage0", "$get$_percentage0", () => A._function8("percentage", "$number", new A._percentage_closure0()));
  101379. _lazyFinal($, "_random1", "$get$_random2", () => A.Random_Random());
  101380. _lazyFinal($, "_randomFunction0", "$get$_randomFunction0", () => A._function8("random", "$limit: null", new A._randomFunction_closure0()));
  101381. _lazyFinal($, "_div0", "$get$_div0", () => A._function8("div", "$number1, $number2", new A._div_closure0()));
  101382. _lazyFinal($, "global10", "$get$global6", () => A.UnmodifiableListView$(A._setArrayType([A._function12("feature-exists", "$feature", new A.global_closure57()), A._function12("inspect", "$value", new A.global_closure58()), A._function12("type-of", "$value", new A.global_closure59()), A._function12("keywords", "$args", new A.global_closure60())], type$.JSArray_BuiltInCallable_2), type$.BuiltInCallable_2));
  101383. _lazyFinal($, "local0", "$get$local0", () => A.UnmodifiableListView$(A._setArrayType([A._function12("calc-name", "$calc", new A.local_closure1()), A._function12("calc-args", "$calc", new A.local_closure2())], type$.JSArray_BuiltInCallable_2), type$.BuiltInCallable_2));
  101384. _lazyFinal($, "stderr0", "$get$stderr0", () => new A.Stderr0(J.get$stderr$x(self.process)));
  101385. _lazyFinal($, "legacyNullClass", "$get$legacyNullClass", () => new A.legacyNullClass_closure().call$0());
  101386. _lazyFinal($, "_epsilon0", "$get$_epsilon0", () => A.pow(10, -11));
  101387. _lazyFinal($, "_inverseEpsilon0", "$get$_inverseEpsilon0", () => A.pow(10, 11));
  101388. _lazyFinal($, "legacyNumberClass", "$get$legacyNumberClass", () => {
  101389. var t1 = A.createJSClass("sass.types.Number", new A.legacyNumberClass_closure());
  101390. A.JSClassExtension_defineMethods(t1, A.LinkedHashMap_LinkedHashMap$_literal(["getValue", new A.legacyNumberClass_closure0(), "setValue", new A.legacyNumberClass_closure1(), "getUnit", new A.legacyNumberClass_closure2(), "setUnit", new A.legacyNumberClass_closure3()], type$.String, type$.Function));
  101391. return t1;
  101392. });
  101393. _lazyFinal($, "numberClass", "$get$numberClass", () => new A.numberClass_closure().call$0());
  101394. _lazyFinal($, "_typesByUnit0", "$get$_typesByUnit0", () => {
  101395. var t2, t3, t4,
  101396. t1 = type$.String;
  101397. t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  101398. for (t2 = B.Map_U8AHF.get$entries(B.Map_U8AHF), t2 = t2.get$iterator(t2); t2.moveNext$0();) {
  101399. t3 = t2.get$current(t2);
  101400. for (t4 = J.get$iterator$ax(t3.value), t3 = t3.key; t4.moveNext$0();)
  101401. t1.$indexSet(0, t4.get$current(t4), t3);
  101402. }
  101403. return t1;
  101404. });
  101405. _lazyFinal($, "global11", "$get$global11", () => A.UnmodifiableListView$(A._setArrayType([$.$get$_isSuperselector0(), $.$get$_simpleSelectors0(), $.$get$_parse0().withName$1("selector-parse"), $.$get$_nest0().withName$1("selector-nest"), $.$get$_append1().withName$1("selector-append"), $.$get$_extend0().withName$1("selector-extend"), $.$get$_replace0().withName$1("selector-replace"), $.$get$_unify0().withName$1("selector-unify")], type$.JSArray_BuiltInCallable_2), type$.BuiltInCallable_2));
  101406. _lazyFinal($, "module9", "$get$module9", () => A.BuiltInModule$0("selector", A._setArrayType([$.$get$_isSuperselector0(), $.$get$_simpleSelectors0(), $.$get$_parse0(), $.$get$_nest0(), $.$get$_append1(), $.$get$_extend0(), $.$get$_replace0(), $.$get$_unify0()], type$.JSArray_Callable_2), null, null, type$.Callable_2));
  101407. _lazyFinal($, "_nest0", "$get$_nest0", () => A._function7("nest", "$selectors...", new A._nest_closure0()));
  101408. _lazyFinal($, "_append2", "$get$_append1", () => A._function7("append", "$selectors...", new A._append_closure1()));
  101409. _lazyFinal($, "_extend0", "$get$_extend0", () => A._function7("extend", "$selector, $extendee, $extender", new A._extend_closure0()));
  101410. _lazyFinal($, "_replace0", "$get$_replace0", () => A._function7("replace", "$selector, $original, $replacement", new A._replace_closure0()));
  101411. _lazyFinal($, "_unify0", "$get$_unify0", () => A._function7("unify", "$selector1, $selector2", new A._unify_closure0()));
  101412. _lazyFinal($, "_isSuperselector0", "$get$_isSuperselector0", () => A._function7("is-superselector", "$super, $sub", new A._isSuperselector_closure0()));
  101413. _lazyFinal($, "_simpleSelectors0", "$get$_simpleSelectors0", () => A._function7("simple-selectors", "$selector", new A._simpleSelectors_closure0()));
  101414. _lazyFinal($, "_parse0", "$get$_parse0", () => A._function7("parse", "$selector", new A._parse_closure0()));
  101415. _lazyFinal($, "_knownCompatibilitiesByUnit0", "$get$_knownCompatibilitiesByUnit0", () => {
  101416. var _i, set, t2,
  101417. t1 = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, A.findType("Set<String>"));
  101418. for (_i = 0; _i < 5; ++_i) {
  101419. set = B.List_AqW[_i];
  101420. for (t2 = set.get$iterator(set); t2.moveNext$0();)
  101421. t1.$indexSet(0, t2.get$current(t2), set);
  101422. }
  101423. return t1;
  101424. });
  101425. _lazyFinal($, "_random2", "$get$_random1", () => A.Random_Random());
  101426. _lazy($, "_previousUniqueId0", "$get$_previousUniqueId0", () => $.$get$_random1().nextInt$1(A._asInt(A.pow(36, 6))));
  101427. _lazyFinal($, "global12", "$get$global12", () => A.UnmodifiableListView$(A._setArrayType([$.$get$_unquote0(), $.$get$_quote0(), $.$get$_toUpperCase0(), $.$get$_toLowerCase0(), $.$get$_uniqueId0(), $.$get$_length1().withName$1("str-length"), $.$get$_insert0().withName$1("str-insert"), $.$get$_index1().withName$1("str-index"), $.$get$_slice0().withName$1("str-slice")], type$.JSArray_BuiltInCallable_2), type$.BuiltInCallable_2));
  101428. _lazyFinal($, "module10", "$get$module10", () => A.BuiltInModule$0("string", A._setArrayType([$.$get$_unquote0(), $.$get$_quote0(), $.$get$_toUpperCase0(), $.$get$_toLowerCase0(), $.$get$_length1(), $.$get$_insert0(), $.$get$_index1(), $.$get$_slice0(), $.$get$_uniqueId0(), A._function6("split", "$string, $separator, $limit: null", new A.module_closure9())], type$.JSArray_Callable_2), null, null, type$.Callable_2));
  101429. _lazyFinal($, "_unquote0", "$get$_unquote0", () => A._function6("unquote", "$string", new A._unquote_closure0()));
  101430. _lazyFinal($, "_quote0", "$get$_quote0", () => A._function6("quote", "$string", new A._quote_closure0()));
  101431. _lazyFinal($, "_length2", "$get$_length1", () => A._function6("length", "$string", new A._length_closure1()));
  101432. _lazyFinal($, "_insert0", "$get$_insert0", () => A._function6("insert", "$string, $insert, $index", new A._insert_closure0()));
  101433. _lazyFinal($, "_index2", "$get$_index1", () => A._function6("index", "$string, $substring", new A._index_closure1()));
  101434. _lazyFinal($, "_slice0", "$get$_slice0", () => A._function6("slice", "$string, $start-at, $end-at: -1", new A._slice_closure0()));
  101435. _lazyFinal($, "_toUpperCase0", "$get$_toUpperCase0", () => A._function6("to-upper-case", "$string", new A._toUpperCase_closure0()));
  101436. _lazyFinal($, "_toLowerCase0", "$get$_toLowerCase0", () => A._function6("to-lower-case", "$string", new A._toLowerCase_closure0()));
  101437. _lazyFinal($, "_uniqueId0", "$get$_uniqueId0", () => A._function6("unique-id", "", new A._uniqueId_closure0()));
  101438. _lazyFinal($, "legacyStringClass", "$get$legacyStringClass", () => {
  101439. var t1 = A.createJSClass("sass.types.String", new A.legacyStringClass_closure());
  101440. A.JSClassExtension_defineMethods(t1, A.LinkedHashMap_LinkedHashMap$_literal(["getValue", new A.legacyStringClass_closure0(), "setValue", new A.legacyStringClass_closure1()], type$.String, type$.Function));
  101441. return t1;
  101442. });
  101443. _lazyFinal($, "stringClass", "$get$stringClass", () => new A.stringClass_closure().call$0());
  101444. _lazyFinal($, "_emptyQuoted0", "$get$_emptyQuoted0", () => A.SassString$0("", true));
  101445. _lazyFinal($, "_emptyUnquoted0", "$get$_emptyUnquoted0", () => A.SassString$0("", false));
  101446. _lazyFinal($, "_jsThrow", "$get$_jsThrow", () => new self.Function("error", "throw error;"));
  101447. _lazyFinal($, "_isUndefined", "$get$_isUndefined", () => new self.Function("value", "return value === undefined;"));
  101448. _lazyFinal($, "_noSourceUrl0", "$get$_noSourceUrl0", () => A.Uri_parse("-"));
  101449. _lazyFinal($, "_traces0", "$get$_traces0", () => A.Expando$());
  101450. _lazyFinal($, "valueClass", "$get$valueClass", () => new A.valueClass_closure().call$0());
  101451. })();
  101452. (function nativeSupport() {
  101453. !function() {
  101454. var intern = function(s) {
  101455. var o = {};
  101456. o[s] = 1;
  101457. return Object.keys(hunkHelpers.convertToFastObject(o))[0];
  101458. };
  101459. init.getIsolateTag = function(name) {
  101460. return intern("___dart_" + name + init.isolateTag);
  101461. };
  101462. var tableProperty = "___dart_isolate_tags_";
  101463. var usedProperties = Object[tableProperty] || (Object[tableProperty] = Object.create(null));
  101464. var rootProperty = "_ZxYxX";
  101465. for (var i = 0;; i++) {
  101466. var property = intern(rootProperty + "_" + i + "_");
  101467. if (!(property in usedProperties)) {
  101468. usedProperties[property] = 1;
  101469. init.isolateTag = property;
  101470. break;
  101471. }
  101472. }
  101473. init.dispatchPropertyName = init.getIsolateTag("dispatch_record");
  101474. }();
  101475. hunkHelpers.setOrUpdateInterceptorsByTag({ArrayBuffer: J.Interceptor, DataView: A.NativeTypedData, ArrayBufferView: A.NativeTypedData, Float32Array: A.NativeTypedArrayOfDouble, Float64Array: A.NativeTypedArrayOfDouble, Int16Array: A.NativeInt16List, Int32Array: A.NativeInt32List, Int8Array: A.NativeInt8List, Uint16Array: A.NativeUint16List, Uint32Array: A.NativeUint32List, Uint8ClampedArray: A.NativeUint8ClampedList, CanvasPixelArray: A.NativeUint8ClampedList, Uint8Array: A.NativeUint8List});
  101476. hunkHelpers.setOrUpdateLeafTags({ArrayBuffer: true, DataView: true, ArrayBufferView: false, Float32Array: true, Float64Array: true, Int16Array: true, Int32Array: true, Int8Array: true, Uint16Array: true, Uint32Array: true, Uint8ClampedArray: true, CanvasPixelArray: true, Uint8Array: false});
  101477. A.NativeTypedArray.$nativeSuperclassTag = "ArrayBufferView";
  101478. A._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin.$nativeSuperclassTag = "ArrayBufferView";
  101479. A._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin.$nativeSuperclassTag = "ArrayBufferView";
  101480. A.NativeTypedArrayOfDouble.$nativeSuperclassTag = "ArrayBufferView";
  101481. A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin.$nativeSuperclassTag = "ArrayBufferView";
  101482. A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin.$nativeSuperclassTag = "ArrayBufferView";
  101483. A.NativeTypedArrayOfInt.$nativeSuperclassTag = "ArrayBufferView";
  101484. })();
  101485. Function.prototype.call$0 = function() {
  101486. return this();
  101487. };
  101488. Function.prototype.call$1 = function(a) {
  101489. return this(a);
  101490. };
  101491. Function.prototype.call$2 = function(a, b) {
  101492. return this(a, b);
  101493. };
  101494. Function.prototype.call$3$1 = function(a) {
  101495. return this(a);
  101496. };
  101497. Function.prototype.call$2$1 = function(a) {
  101498. return this(a);
  101499. };
  101500. Function.prototype.call$1$1 = function(a) {
  101501. return this(a);
  101502. };
  101503. Function.prototype.call$3 = function(a, b, c) {
  101504. return this(a, b, c);
  101505. };
  101506. Function.prototype.call$4 = function(a, b, c, d) {
  101507. return this(a, b, c, d);
  101508. };
  101509. Function.prototype.call$3$3 = function(a, b, c) {
  101510. return this(a, b, c);
  101511. };
  101512. Function.prototype.call$2$2 = function(a, b) {
  101513. return this(a, b);
  101514. };
  101515. Function.prototype.call$6 = function(a, b, c, d, e, f) {
  101516. return this(a, b, c, d, e, f);
  101517. };
  101518. Function.prototype.call$5 = function(a, b, c, d, e) {
  101519. return this(a, b, c, d, e);
  101520. };
  101521. Function.prototype.call$1$0 = function() {
  101522. return this();
  101523. };
  101524. Function.prototype.call$2$0 = function() {
  101525. return this();
  101526. };
  101527. Function.prototype.call$2$3 = function(a, b, c) {
  101528. return this(a, b, c);
  101529. };
  101530. Function.prototype.call$1$2 = function(a, b) {
  101531. return this(a, b);
  101532. };
  101533. convertAllToFastObject(holders);
  101534. convertToFastObject($);
  101535. (function(callback) {
  101536. if (typeof document === "undefined") {
  101537. callback(null);
  101538. return;
  101539. }
  101540. if (typeof document.currentScript != "undefined") {
  101541. callback(document.currentScript);
  101542. return;
  101543. }
  101544. var scripts = document.scripts;
  101545. function onLoad(event) {
  101546. for (var i = 0; i < scripts.length; ++i)
  101547. scripts[i].removeEventListener("load", onLoad, false);
  101548. callback(event.target);
  101549. }
  101550. for (var i = 0; i < scripts.length; ++i)
  101551. scripts[i].addEventListener("load", onLoad, false);
  101552. })(function(currentScript) {
  101553. init.currentScript = currentScript;
  101554. var callMain = A.main1;
  101555. if (typeof dartMainRunner === "function")
  101556. dartMainRunner(callMain, []);
  101557. else
  101558. callMain([]);
  101559. });
  101560. })();
  101561. }